Board specific definitions for the pyboard board. More...
Board specific definitions for the pyboard board.
Definition in file board.h.
#include <stdint.h>#include "cpu.h"
Include dependency graph for board.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | BTN_B1_PIN GPIO_PIN(PORT_B, 3) |
| User button. | |
Functions | |
| void | board_init (void) |
| Initialize board specific hardware, including clock, LEDs and stdio. | |
LED pin definitions and handlers | |
| #define | LED0_PIN GPIO_PIN(PORT_B, 4) |
| #define | LED0_MASK (1 << 4) |
| #define | LED0_ON (GPIOB->BSRR = LED0_MASK) |
| #define | LED0_OFF (GPIOB->BSRR = (LED0_MASK << 16)) |
| #define | LED0_TOGGLE (GPIOB->ODR ^= LED0_MASK) |