Files
2025-07-06 14:57:46 -07:00
..
2025-07-06 14:57:46 -07:00
2025-07-06 14:57:46 -07:00
2025-07-06 14:57:46 -07:00
2025-07-06 14:57:46 -07:00
2025-07-06 14:57:46 -07:00
2025-07-06 14:57:46 -07:00
2025-07-06 14:57:46 -07:00
2025-07-06 14:57:46 -07:00
2025-07-06 14:57:46 -07:00
2025-07-06 14:57:46 -07:00
2025-07-06 14:57:46 -07:00
2025-07-06 14:57:46 -07:00

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Before compiling, delete *.launch file and Debug folder


// PD0  CAN1-RX
// PD1  CAN1-TX

// PA2  UART2-TX
// PA3  UART2-RX

// PA5  SPI1_SCK
// PA6  SPI1_MISO
// PA7  SPI1_MOSI
// PE3  CS_I2C/SPI
// PE0  MEMS_INT1
// PE1  MEMS_INT2

// PC14  OSC32 IN
// PC15  OSC32 OUT

// PA0  User Button
// PD12  LED Green
// PD13  LED Orange
// PD14  LED Red
// PD15  LED Blue

#define GPIOAEN    (1U<<0)  // Enable clock of GPIOA
#define GPIOBEN    (1U<<1)  // Enable clock of GPIOB
#define GPIOCEN    (1U<<2)  // Enable clock of GPIOC
#define GPIODEN    (1U<<3)  // Enable clock of GPIOD

//#define PIN12      (1U<<12) // Set PIN12 to 1
//#define PIN13      (1U<<13) // Set PIN13 to 1
//#define PIN14      (1U<<14) // Set PIN14 to 1
//#define PIN15      (1U<<15) // Set PIN15 to 1