Basic definitions for the TelosB board.
More...
#include "cpu.h"
Go to the source code of this file.
|
#define | STDIO_UART_BAUDRATE (9600) |
|
|
#define | XTIMER_WIDTH (16) |
|
#define | XTIMER_BACKOFF (40) |
|
|
#define | LED0_PIN GPIO_PIN(4, 0) |
|
#define | LED1_PIN GPIO_PIN(4, 1) |
|
#define | LED2_PIN GPIO_PIN(4, 2) |
|
#define | LED_OUT_REG P5OUT |
|
#define | LED0_MASK (0x10) |
|
#define | LED1_MASK (0x20) |
|
#define | LED2_MASK (0x40) |
|
#define | LED0_ON (LED_OUT_REG &=~LED0_MASK) |
|
#define | LED0_OFF (LED_OUT_REG |= LED0_MASK) |
|
#define | LED0_TOGGLE (LED_OUT_REG ^= LED0_MASK) |
|
#define | LED1_ON (LED_OUT_REG &=~LED1_MASK) |
|
#define | LED1_OFF (LED_OUT_REG |= LED1_MASK) |
|
#define | LED1_TOGGLE (LED_OUT_REG ^= LED1_MASK) |
|
#define | LED2_ON (LED_OUT_REG &=~LED2_MASK) |
|
#define | LED2_OFF (LED_OUT_REG |= LED2_MASK) |
|
#define | LED2_TOGGLE (LED_OUT_REG ^= LED2_MASK) |
|
◆ CONFIG_ZTIMER_PERIPH_TIMER_FORCE_CONVERSION
#define CONFIG_ZTIMER_PERIPH_TIMER_FORCE_CONVERSION 1 |
Force frequency conversion to be used.
Otherwise ztimer would assume that it can run the 1 MHz clock from the timer configured at 1 MHz without conversion. But the actual frequency the timer will run at will be detected at runtime and, due to inaccuracy of the internal oscillator, will indeed require frequency conversion.
Definition at line 68 of file board.h.