Waspmote PRO v1.2

Board specific files for the Waspmote PRO v1.2 board. More...

Detailed Description

Board specific files for the Waspmote PRO v1.2 board.

Files

file  waspmote-pro/include/board.h
 Board specific definitions for the Waspmote PRO v1.2 board.
 
file  boards/waspmote-pro/include/periph_conf.h
 Peripheral MCU configuration for the Waspmote PRO v1.2 board.
 
file  waspmote_pinmap.h
 Mapping from MCU pins to Waspmote pins.
 

Macros

#define UART_STDIO_BAUDRATE   (9600U)
 As the CPU is too slow to handle 115200 baud, we set the default baudrate to 9600 for this board.
 
#define AVR_CONTEXT_SWAP_INIT
 Context swap defines Setup to use PB5 which is pin change interrupt 5 This emulates a software triggered interrupt. More...
 

Functions

void board_init (void)
 Initialize board specific hardware, including clock, LEDs and std-IO.
 

LED pin definitions

Use the UART 0 for STDIO on this board, if the XBee socket is not being used

#define LED0_PORT   PORTD
 
#define LED1_PORT   PORTC
 
#define LED0_PIN   (1 << 6)
 
#define LED1_PIN   (1 << 1)
 

Macros for controlling the on-board LEDs.

#define LED0_ENABLE_PORT   DDRD |= (1 << DDD6)
 
#define LED0_ON   LED0_PORT |= LED0_PIN
 
#define LED0_OFF   LED0_PORT &= ~LED0_PIN
 
#define LED0_TOGGLE   LED0_PORT ^= LED0_PIN;
 
#define LED1_ENABLE_PORT   DDRC |= (1 << DDC1)
 
#define LED1_ON   LED1_PORT |= LED1_PIN
 
#define LED1_OFF   LED1_PORT &= ~LED1_PIN
 
#define LED1_TOGGLE   LED1_PORT ^= LED1_PIN;
 
#define LED_GREEN_ON   LED1_ON
 
#define LED_GREEN_OFF   LED1_OFF
 
#define LED_GREEN_TOGGLE   LED1_TOGGLE
 
#define LED_RED_ON   LED0_ON
 
#define LED_RED_OFF   LED0_OFF
 
#define LED_RED_TOGGLE   LED0_TOGGLE
 

Macros for controlling the on-board MUXes.

#define MUX_PW_PORT   PORTD
 
#define MUX0_PORT   PORTB
 
#define MUX1_PORT   PORTB
 
#define MUX_USB_XBEE_PORT   PORTD
 
#define MUX_PW_PIN   (1 << 7)
 
#define MUX0_PIN   (1 << 6)
 
#define MUX1_PIN   (1 << 7)
 
#define MUX_USB_XBEE_PIN   (1 << 5)
 
#define MUX_PW_ENABLE_PORT   DDRD |= (1 << DDD7);
 
#define MUX_PW_ON   MUX_PW_PORT |= MUX_PW_PIN
 
#define MUX_PW_OFF   MUX_PW_PORT &= ~MUX_PW_PIN
 
#define MUX0_ENABLE_PORT   DDRB |= (1 << DDB6)
 
#define MUX0_ON   MUX0_PORT |= MUX0_PIN
 
#define MUX0_OFF   MUX0_PORT &= ~MUX0_PIN
 
#define MUX1_ENABLE_PORT   DDRB |= (1 << DDB7)
 
#define MUX1_ON   MUX1_PORT |= MUX1_PIN
 
#define MUX1_OFF   MUX1_PORT &= ~MUX1_PIN
 
#define MUX_USB_XBEE_ENABLE_PORT   DDRD |= (1 << DDD5)
 
#define MUX_USB_XBEE_ON   MUX_USB_XBEE_PORT |= MUX_USB_XBEE_PIN
 
#define MUX_USB_XBEE_OFF   MUX_USB_XBEE_PORT &= ~MUX_USB_XBEE_PIN
 
#define SET_MUX_GPS
 
#define SET_MUX_SOCKET1
 
#define SET_MUX_AUX1_MODULE
 
#define SET_MUX_AUX2_MODULE
 
#define SET_MUX_USB_MODULE
 
#define SET_MUX_SOCKET0
 

xtimer configuration values

#define XTIMER_WIDTH   (16)
 
#define XTIMER_HZ   (62500UL)
 
#define XTIMER_BACKOFF   (40)
 

Macro Definition Documentation

◆ AVR_CONTEXT_SWAP_INIT

#define AVR_CONTEXT_SWAP_INIT
Value:
do { \
DDRB |= (1 << PB5); \
PCICR |= (1 << PCIE0); \
PCMSK0 |= (1 << PCINT5); \
} while (0)

Context swap defines Setup to use PB5 which is pin change interrupt 5 This emulates a software triggered interrupt.

Definition at line 153 of file waspmote-pro/include/board.h.

◆ SET_MUX_AUX1_MODULE

#define SET_MUX_AUX1_MODULE
Value:
MUX_PW_ENABLE_PORT; MUX_PW_ON; \
MUX0_ENABLE_PORT; MUX1_ENABLE_PORT; \
MUX0_ON; MUX1_OFF

Definition at line 134 of file waspmote-pro/include/board.h.

◆ SET_MUX_AUX2_MODULE

#define SET_MUX_AUX2_MODULE
Value:
MUX_PW_ENABLE_PORT; MUX_PW_ON; \
MUX0_ENABLE_PORT; MUX1_ENABLE_PORT; \
MUX0_OFF; MUX1_OFF

Definition at line 137 of file waspmote-pro/include/board.h.

◆ SET_MUX_GPS

#define SET_MUX_GPS
Value:
MUX_PW_ENABLE_PORT; MUX_PW_ON; \
MUX0_ENABLE_PORT; MUX1_ENABLE_PORT; \
MUX0_OFF; MUX1_ON

Definition at line 128 of file waspmote-pro/include/board.h.

◆ SET_MUX_SOCKET0

#define SET_MUX_SOCKET0
Value:
MUX_PW_ENABLE_PORT; MUX_PW_ON; \
MUX_USB_XBEE_ENABLE_PORT; \
MUX_USB_XBEE_ON

Definition at line 143 of file waspmote-pro/include/board.h.

◆ SET_MUX_SOCKET1

#define SET_MUX_SOCKET1
Value:
MUX_PW_ENABLE_PORT; MUX_PW_ON; \
MUX0_ENABLE_PORT; MUX1_ENABLE_PORT; \
MUX0_ON; MUX1_ON

Definition at line 131 of file waspmote-pro/include/board.h.

◆ SET_MUX_USB_MODULE

#define SET_MUX_USB_MODULE
Value:
MUX_PW_ENABLE_PORT; MUX_PW_ON; \
MUX_USB_XBEE_ENABLE_PORT; \
MUX_USB_XBEE_OFF

Definition at line 140 of file waspmote-pro/include/board.h.