stm32-jz01v20.h 701 B

123456789101112131415161718192021222324252627
  1. #ifndef __BOARD_H__
  2. #define __BOARD_H__
  3. #include <stdbool.h>
  4. #include <libopencm3/stm32/rcc.h>
  5. #include <libopencm3/stm32/gpio.h>
  6. /*
  7. * Board bought from https://detail.tmall.com/item.htm?id=554703784397
  8. */
  9. #define BOARD_USE_DEBUG_PINS_AS_GPIO false
  10. #define BOARD_RCC_LED RCC_GPIOB
  11. #define BOARD_PORT_LED GPIOB
  12. #define BOARD_PIN_LED GPIO8
  13. #define BOARD_LED_HIGH_IS_BUSY false
  14. #define BOARD_RCC_USB_PULLUP RCC_GPIOA
  15. #define BOARD_PORT_USB_PULLUP GPIOA
  16. #define BOARD_PIN_USB_PULLUP GPIO8
  17. #define BOARD_USB_HIGH_IS_PULLUP true
  18. /* Currently you can only use SPI1, since it has highest clock. */
  19. #endif /* __BOARD_H__ */