Board specific definitions for the Meshme board.
More...
#include "cpu.h"
#include "periph/gpio.h"
#include "cc2538_eui_primary.h"
Go to the source code of this file.
|
|
void | board_init (void) |
| | Initialize board specific hardware, including clock, LEDs and std-IO.
|
| |
◆ BTN0_MODE
| #define BTN0_MODE GPIO_IN_PU |
Pin mode
Definition at line 59 of file board.h.
◆ BTN0_PIN
| #define BTN0_PIN GPIO_PIN(PORT_C, 7) |
It's routed to PC7 pin
Definition at line 58 of file board.h.
◆ BTN1_MODE
| #define BTN1_MODE GPIO_IN_PU |
Pin mode
Definition at line 67 of file board.h.
◆ BTN1_PIN
| #define BTN1_PIN GPIO_PIN(PORT_C, 6) |
It's routed to PC6 pin
Definition at line 66 of file board.h.
◆ CCA_BACKDOOR_ACTIVE_LEVEL
| #define CCA_BACKDOOR_ACTIVE_LEVEL 0 |
Active when signal is low: 0
Definition at line 80 of file board.h.
◆ CCA_BACKDOOR_ENABLE
| #define CCA_BACKDOOR_ENABLE 1 |
On/Off the backdoor on boot
Definition at line 78 of file board.h.
◆ CCA_BACKDOOR_PORT_A_PIN
| #define CCA_BACKDOOR_PORT_A_PIN 3 |
Boot button is PORT_A, 3 (PA3)
Definition at line 79 of file board.h.
◆ CONFIG_CC2538_RF_OBS_SIG_0_PCX
| #define CONFIG_CC2538_RF_OBS_SIG_0_PCX 3 |
tx active to PC3, it controls the PA
Definition at line 105 of file board.h.
◆ CONFIG_CC2538_RF_OBS_SIG_1_PCX
| #define CONFIG_CC2538_RF_OBS_SIG_1_PCX 2 |
rx active to PC2, it controls the LNA
Definition at line 106 of file board.h.
◆ CONFIG_CC2538_RF_OBS_SIG_2_PCX
| #define CONFIG_CC2538_RF_OBS_SIG_2_PCX 0 |
rssi valid, routed to the on board red LED PC0
Definition at line 107 of file board.h.
◆ HGM_OFF
| #define HGM_OFF gpio_clear(HGM_PIN) |
HGM off handler
Definition at line 111 of file board.h.
◆ HGM_ON
HGM on handler
Definition at line 110 of file board.h.
◆ HGM_PIN
| #define HGM_PIN GPIO_PIN(PORT_D, 2) |
High Gain Mode (HGM) pin
Definition at line 109 of file board.h.
◆ HGM_TOGGLE
| #define HGM_TOGGLE gpio_toggle(HGM_PIN) |
HGM toggle handler
Definition at line 112 of file board.h.
◆ LED0_OFF
LED0 Off handler
Definition at line 35 of file board.h.
◆ LED0_ON
LED0 On handler
Definition at line 34 of file board.h.
◆ LED0_PIN
| #define LED0_PIN GPIO_PIN(PORT_C, 5) |
LED0 (?) routed to PC5 pin
Definition at line 33 of file board.h.
◆ LED0_TOGGLE
| #define LED0_TOGGLE gpio_toggle(LED0_PIN) |
LED0 Toggle handler
Definition at line 36 of file board.h.
◆ LED1_OFF
LED1 Off handler
Definition at line 40 of file board.h.
◆ LED1_ON
LED1 On handler
Definition at line 39 of file board.h.
◆ LED1_PIN
| #define LED1_PIN GPIO_PIN(PORT_C, 4) |
LED1 (green) routed to PC4 pin
Definition at line 38 of file board.h.
◆ LED1_TOGGLE
| #define LED1_TOGGLE gpio_toggle(LED1_PIN) |
LED1 Toggle handler
Definition at line 41 of file board.h.
◆ LED2_OFF
LED2 Off handler
Definition at line 45 of file board.h.
◆ LED2_ON
LED2 On handler
Definition at line 44 of file board.h.
◆ LED2_PIN
| #define LED2_PIN GPIO_PIN(PORT_C, 1) |
LED2 (orange) routed to PC1 pin
Definition at line 43 of file board.h.
◆ LED2_TOGGLE
| #define LED2_TOGGLE gpio_toggle(LED2_PIN) |
LED2 Toggle handler
Definition at line 46 of file board.h.
◆ LED3_OFF
LED3 Off handler
Definition at line 50 of file board.h.
◆ LED3_ON
LED3 On handler
Definition at line 49 of file board.h.
◆ LED3_PIN
| #define LED3_PIN GPIO_PIN(PORT_C, 0) |
LED3 (red) routed to PC0 pin
Definition at line 48 of file board.h.
◆ LED3_TOGGLE
| #define LED3_TOGGLE gpio_toggle(LED3_PIN) |
LED3 Toggle handler
Definition at line 51 of file board.h.
◆ UPDATE_CCA
On/Off Customer Configuration Area should be updated
Definition at line 75 of file board.h.
◆ XTIMER_BACKOFF
| #define XTIMER_BACKOFF (50) |
◆ XTIMER_ISR_BACKOFF
| #define XTIMER_ISR_BACKOFF (40) |
◆ XTIMER_WIDTH
| #define XTIMER_WIDTH (16) |