stm32-tiny042.h 787 B

1234567891011121314151617181920212223242526272829
  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 Tiny042
  8. * This is my spare-time project. It is a minimalist USB board for STM32F0x2.
  9. * OSHPark:
  10. * https://oshpark.com/shared_projects/rBnfauMK
  11. * GitHub:
  12. * https://github.com/dword1511/stm32-tiny042.git
  13. */
  14. #define BOARD_USE_DEBUG_PINS_AS_GPIO false
  15. #define BOARD_RCC_LED RCC_GPIOA
  16. #define BOARD_PORT_LED GPIOA
  17. #define BOARD_PIN_LED GPIO14
  18. #define BOARD_LED_HIGH_IS_BUSY false /* Only LED, high active, use as idle. */
  19. /* STM32F0x2 has internal USB pullup. */
  20. /* Currently you can only use SPI1, since it has highest clock. */
  21. #endif /* __BOARD_H__ */