maple-mini.h 987 B

1234567891011121314151617181920212223242526272829303132
  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 Maple Mini
  8. * Although originally developed by Leaf Labs, its compatible clones are once everywhere.
  9. * WiKi:
  10. * http://leaflabs.com/docs/hardware/maple-mini.html (removed, see web archives)
  11. * GitHub:
  12. * https://github.com/leaflabs/maplemini.git
  13. */
  14. #define BOARD_USE_DEBUG_PINS_AS_GPIO false
  15. #define BOARD_RCC_LED RCC_GPIOB
  16. #define BOARD_PORT_LED GPIOB
  17. #define BOARD_PIN_LED GPIO1
  18. #define BOARD_LED_HIGH_IS_BUSY false /* We only have IDLE LED on it, which is active high. */
  19. #define BOARD_RCC_USB_PULLUP RCC_GPIOB
  20. #define BOARD_PORT_USB_PULLUP GPIOB
  21. #define BOARD_PIN_USB_PULLUP GPIO9
  22. #define BOARD_USB_HIGH_IS_PULLUP false /* Active low */
  23. /* Currently you can only use SPI1, since it has highest clock. */
  24. #endif /* __BOARD_H__ */