board.h 1000 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef __BOARD_H__
  2. #define __BOARD_H__
  3. //在此处修改所使用的引脚
  4. //LED
  5. #define LED_BLUE_GPIO GPIOB
  6. #define LED_BLUE_PIN GPIO_PIN_4
  7. //BLE_EN
  8. #define BLE_EN_GPIO GPIOA
  9. #define BLE_EN_PIN GPIO_PIN_3
  10. //CAN
  11. #define CAN_GPIO GPIOA
  12. #define CAN_H_PIN GPIO_PIN_12
  13. #define CAN_L_PIN GPIO_PIN_11
  14. //KEY
  15. #define KEY_GPIO GPIOA
  16. #define KEY_PIN GPIO_PIN_4
  17. //ADC
  18. #define ADC_GPIO GPIOA
  19. #define ADC_PIN GPIO_PIN_1
  20. //SPI
  21. #define SPI1_GPIO GPIOA
  22. #define SPI1_CLK_GPIO GPIOA
  23. #define SPI1_CLK_PIN GPIO_PIN_5
  24. #define SPI1_MISO_GPIO GPIOA
  25. #define SPI1_MISO_PIN GPIO_PIN_6
  26. #define SPI1_MOSI_GPIO GPIOA
  27. #define SPI1_MOSI_PIN GPIO_PIN_7
  28. #define SPI1_CS_GPIO GPIOA
  29. #define SPI1_CS_PIN GPIO_PIN_2
  30. #define SPI1_INT_GPIO GPIOA
  31. #define SPI1_INT_PIN GPIO_PIN_0
  32. //UART
  33. #define UART1_GPIO GPIOA
  34. #define UART1_TX_PIN GPIO_PIN_9
  35. #define UART1_RX_PIN GPIO_PIN_10
  36. #endif //__BOARD_H__