Board specific definitions for the ST B-L072Z-LRWAN1 board.
More...
Board specific definitions for the ST B-L072Z-LRWAN1 board.
- Author
- Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr
Definition in file board.h.
#include <stdint.h>
#include "cpu.h"
Go to the source code of this file.
|
void | board_init (void) |
| Initialize board specific hardware, including clock, LEDs and std-IO.
|
|
|
#define | XTIMER_WIDTH (16) |
|
|
#define | LED0_PIN GPIO_PIN(PORT_A, 5) |
|
#define | LED0_MASK (1 << 5) |
|
#define | LED0_ON (GPIOA->BSRR = LED0_MASK) |
|
#define | LED0_OFF (GPIOA->BSRR = (LED0_MASK << 16)) |
|
#define | LED0_TOGGLE (GPIOA->ODR ^= LED0_MASK) |
|
#define | LED1_PIN GPIO_PIN(PORT_B, 5) |
|
#define | LED1_MASK (1 << 5) |
|
#define | LED1_ON (GPIOB->BSRR = LED1_MASK) |
|
#define | LED1_OFF (GPIOB->BSRR = (LED1_MASK << 16)) |
|
#define | LED1_TOGGLE (GPIOB->ODR ^= LED1_MASK) |
|
#define | LED2_PIN GPIO_PIN(PORT_B, 6) |
|
#define | LED2_MASK (1 << 6) |
|
#define | LED2_ON (GPIOB->BSRR = LED2_MASK) |
|
#define | LED2_OFF (GPIOB->BSRR = (LED2_MASK << 16)) |
|
#define | LED2_TOGGLE (GPIOB->ODR ^= LED2_MASK) |
|
#define | LED3_PIN GPIO_PIN(PORT_B, 7) |
|
#define | LED3_MASK (1 << 7) |
|
#define | LED3_ON (GPIOB->BSRR = LED3_MASK) |
|
#define | LED3_OFF (GPIOB->BSRR = (LED3_MASK << 16)) |
|
#define | LED3_TOGGLE (GPIOB->ODR ^= LED3_MASK) |
|