Board specific definitions for the Waspmote PRO v1.2 board.  
More...
#include "cpu.h"
#include "waspmote_pinmap.h"
Go to the source code of this file.
|  | 
| void | board_init (void) | 
|  | Initialize board specific hardware, including clock, LEDs and std-IO. 
 | 
|  | 
| #define | STDIO_UART_BAUDRATE   (9600U) | 
|  | As the CPU is too slow to handle 115200 baud, we set the default baudrate to 9600 for this board. 
 | 
|  | 
|  | 
| 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) | 
|  | 
|  | 
| #define | LED_PANIC   LED_RED_ON | 
|  | 
|  | 
| #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 | 
|  | 
|  | 
| #define | CPU_ATMEGA_CLK_SCALE_INIT   CPU_ATMEGA_CLK_SCALE_DIV1 | 
|  | 
|  | 
| 
 WarningThis configuration is not actually compatible with xtimer. Sadly, no compatible clock frequency can be generated with the given core frequency 
 | 
| #define | XTIMER_WIDTH   (16) | 
|  | 
| #define | XTIMER_HZ   (230400LU) | 
|  | 
| #define | XTIMER_BACKOFF   (80) | 
|  | 
| #define | XTIMER_ISR_BACKOFF   (120) | 
|  | 
|  | 
| #define | CONFIG_ZTIMER_USEC_TYPE   ZTIMER_TYPE_PERIPH_TIMER | 
|  | 
| #define | CONFIG_ZTIMER_USEC_DEV   (TIMER_DEV(0)) | 
|  | 
| #define | CONFIG_ZTIMER_USEC_FREQ   (230400LU) | 
|  | 
| #define | CONFIG_ZTIMER_USEC_WIDTH   (16) | 
|  | 
◆ 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 139 of file 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 142 of file board.h.
 
 
◆ SET_MUX_GPS
Value:                                     MUX_PW_ENABLE_PORT; MUX_PW_ON; \
                                     MUX0_ENABLE_PORT; MUX1_ENABLE_PORT; \
                                     MUX0_OFF; MUX1_ON
Definition at line 133 of file board.h.
 
 
◆ SET_MUX_SOCKET0
Value:                                     MUX_PW_ENABLE_PORT; MUX_PW_ON; \
                                     MUX_USB_XBEE_ENABLE_PORT; \
                                     MUX_USB_XBEE_ON
Definition at line 148 of file board.h.
 
 
◆ SET_MUX_SOCKET1
Value:                                     MUX_PW_ENABLE_PORT; MUX_PW_ON; \
                                     MUX0_ENABLE_PORT; MUX1_ENABLE_PORT; \
                                     MUX0_ON; MUX1_ON
Definition at line 136 of file 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 145 of file board.h.