Zolertia Z1 board configuration.
More...
#include <stdint.h>
#include "cpu.h"
Go to the source code of this file.
|
#define | XTIMER_WIDTH (16) |
|
#define | XTIMER_BACKOFF (40) |
|
|
#define | LED0_PIN GPIO_PIN(5, 4) |
|
#define | LED1_PIN GPIO_PIN(5, 6) |
|
#define | LED2_PIN GPIO_PIN(5, 5) |
|
#define | LED_OUT_REG P5OUT |
|
#define | LED0_MASK (0x10) |
|
#define | LED1_MASK (0x40) |
|
#define | LED2_MASK (0x20) |
|
#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) |
|
|
#define | BTN0_PIN GPIO_PIN(2, 5) |
|
#define | BTN0_MASK (0x20) |
|
#define | BTN0_MODE GPIO_IN |
|
#define | BTN0_PRESSED ((BTN0_PIN & BTN0_MASK) == 0) |
|
#define | BTN0_RELEASED ((BTN0_PIN & BTN0_MASK) != 0) |
|
◆ MSP430_INITIAL_CPU_SPEED
#define MSP430_INITIAL_CPU_SPEED 8000000uL |
- Todo:
- Move this to the periph_conf.h
Definition at line 58 of file board.h.