stm32-vserprog-v2.h 761 B

12345678910111213141516171819202122232425262728
  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 definitions for STM32 VSerprog V2
  8. * Eagle files are in the "pcb" folder.
  9. */
  10. #define BOARD_USE_DEBUG_PINS_AS_GPIO true /* We have to disable JTAG / SWD to access PB3 */
  11. #define BOARD_RCC_LED RCC_GPIOA
  12. #define BOARD_PORT_LED GPIOA
  13. #define BOARD_PIN_LED GPIO0
  14. #define BOARD_LED_HIGH_IS_BUSY true
  15. #define BOARD_RCC_USB_PULLUP RCC_GPIOB
  16. #define BOARD_PORT_USB_PULLUP GPIOB
  17. #define BOARD_PIN_USB_PULLUP GPIO3
  18. #define BOARD_USB_HIGH_IS_PULLUP true
  19. /* Currently you can only use SPI1, since it has highest clock. */
  20. #endif /* __BOARD_H__ */