| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #ifndef __BOARD_H__
- #define __BOARD_H__
- //在此处修改所使用的引脚
- //LED
- #define LED_BLUE_GPIO GPIOB
- #define LED_BLUE_PIN GPIO_PIN_4
- //BLE_EN
- #define BLE_EN_GPIO GPIOA
- #define BLE_EN_PIN GPIO_PIN_3
- //CAN
- #define CAN_GPIO GPIOA
- #define CAN_H_PIN GPIO_PIN_12
- #define CAN_L_PIN GPIO_PIN_11
- //KEY
- #define KEY_GPIO GPIOA
- #define KEY_PIN GPIO_PIN_4
- //ADC
- #define ADC_GPIO GPIOA
- #define ADC_PIN GPIO_PIN_1
- //SPI
- #define SPI1_GPIO GPIOA
- #define SPI1_CLK_GPIO GPIOA
- #define SPI1_CLK_PIN GPIO_PIN_5
- #define SPI1_MISO_GPIO GPIOA
- #define SPI1_MISO_PIN GPIO_PIN_6
- #define SPI1_MOSI_GPIO GPIOA
- #define SPI1_MOSI_PIN GPIO_PIN_7
- #define SPI1_CS_GPIO GPIOA
- #define SPI1_CS_PIN GPIO_PIN_2
- #define SPI1_INT_GPIO GPIOA
- #define SPI1_INT_PIN GPIO_PIN_0
- //UART
- #define UART1_GPIO GPIOA
- #define UART1_TX_PIN GPIO_PIN_9
- #define UART1_RX_PIN GPIO_PIN_10
- #endif //__BOARD_H__
|