Loading...
Searching...
No Matches
board.h File Reference

Board specific definitions for the SODAQ ONE board. More...

Detailed Description

Board specific definitions for the SODAQ ONE board.

Author
Kees Bakker kees@.nosp@m.soda.nosp@m.q.com

Definition in file board.h.

#include "cpu.h"
#include "board_common.h"
#include "periph/gpio.h"
+ Include dependency graph for board.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

LED pin definitions and handlers

#define LED0_PIN   GPIO_PIN(PA, 15)
 
#define LED0_PORT   PORT->Group[PA]
 
#define LED0_MASK   (1 << 15)
 
#define LED0_OFF   (LED0_PORT.OUTSET.reg = LED0_MASK)
 
#define LED0_ON   (LED0_PORT.OUTCLR.reg = LED0_MASK)
 
#define LED0_TOGGLE   (LED0_PORT.OUTTGL.reg = LED0_MASK)
 
#define LED1_PIN   GPIO_PIN(PB, 10)
 
#define LED1_PORT   PORT->Group[PB]
 
#define LED1_MASK   (1 << 10)
 
#define LED1_OFF   (LED1_PORT.OUTSET.reg = LED1_MASK)
 
#define LED1_ON   (LED1_PORT.OUTCLR.reg = LED1_MASK)
 
#define LED1_TOGGLE   (LED1_PORT.OUTTGL.reg = LED1_MASK)
 
#define LED2_PIN   GPIO_PIN(PB, 11)
 
#define LED2_PORT   PORT->Group[PB]
 
#define LED2_MASK   (1 << 11)
 
#define LED2_OFF   (LED2_PORT.OUTSET.reg = LED2_MASK)
 
#define LED2_ON   (LED2_PORT.OUTCLR.reg = LED2_MASK)
 
#define LED2_TOGGLE   (LED2_PORT.OUTTGL.reg = LED2_MASK)
 

User button

#define BTN0_PIN   GPIO_PIN(PA, 16)
 
#define BTN0_MODE   GPIO_IN
 

GPS Time Pulse

#define GPS_TIMEPULSE_PIN   GPIO_PIN(PA, 14)
 
#define GPS_TIMEPULSE_MODE   GPIO_IN
 

GPS Enable

#define GPS_ENABLE_PIN   GPIO_PIN(PA, 18)
 
#define GPS_ENABLE_PORT   PORT->Group[PA]
 
#define GPS_ENABLE_MASK   (1 << 18)
 
#define GPS_ENABLE_ON   (GPS_ENABLE_PORT.OUTSET.reg = GPS_ENABLE_MASK)
 
#define GPS_ENABLE_OFF   (GPS_ENABLE_PORT.OUTCLR.reg = GPS_ENABLE_MASK)
 

LORA Reset

#define LORA_RESET_PIN   GPIO_PIN(PA, 4)
 
#define LORA_RESET_PORT   PORT->Group[PA]
 
#define LORA_RESET_MASK   (1 << 4)
 
#define LORA_RESET_OFF   (LORA_RESET_PORT.OUTSET.reg = LORA_RESET_MASK)
 
#define LORA_RESET_ON   (LORA_RESET_PORT.OUTCLR.reg = LORA_RESET_MASK)
 
#define LORA_RESET_TOGGLE   (LORA_RESET_PORT.OUTTGL.reg = LORA_RESET_MASK)
 

Macro Definition Documentation

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN

Definition at line 67 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(PA, 16)

Definition at line 66 of file board.h.

◆ GPS_ENABLE_MASK

#define GPS_ENABLE_MASK   (1 << 18)

Definition at line 85 of file board.h.

◆ GPS_ENABLE_OFF

#define GPS_ENABLE_OFF   (GPS_ENABLE_PORT.OUTCLR.reg = GPS_ENABLE_MASK)

Definition at line 88 of file board.h.

◆ GPS_ENABLE_ON

#define GPS_ENABLE_ON   (GPS_ENABLE_PORT.OUTSET.reg = GPS_ENABLE_MASK)

Definition at line 87 of file board.h.

◆ GPS_ENABLE_PIN

#define GPS_ENABLE_PIN   GPIO_PIN(PA, 18)

Definition at line 82 of file board.h.

◆ GPS_ENABLE_PORT

#define GPS_ENABLE_PORT   PORT->Group[PA]

Definition at line 84 of file board.h.

◆ GPS_TIMEPULSE_MODE

#define GPS_TIMEPULSE_MODE   GPIO_IN

Definition at line 75 of file board.h.

◆ GPS_TIMEPULSE_PIN

#define GPS_TIMEPULSE_PIN   GPIO_PIN(PA, 14)

Definition at line 74 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (1 << 15)

Definition at line 37 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (LED0_PORT.OUTSET.reg = LED0_MASK)

Definition at line 39 of file board.h.

◆ LED0_ON

#define LED0_ON   (LED0_PORT.OUTCLR.reg = LED0_MASK)

Definition at line 40 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PA, 15)

Definition at line 34 of file board.h.

◆ LED0_PORT

#define LED0_PORT   PORT->Group[PA]

Definition at line 36 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   (LED0_PORT.OUTTGL.reg = LED0_MASK)

Definition at line 41 of file board.h.

◆ LED1_MASK

#define LED1_MASK   (1 << 10)

Definition at line 46 of file board.h.

◆ LED1_OFF

#define LED1_OFF   (LED1_PORT.OUTSET.reg = LED1_MASK)

Definition at line 48 of file board.h.

◆ LED1_ON

#define LED1_ON   (LED1_PORT.OUTCLR.reg = LED1_MASK)

Definition at line 49 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(PB, 10)

Definition at line 43 of file board.h.

◆ LED1_PORT

#define LED1_PORT   PORT->Group[PB]

Definition at line 45 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   (LED1_PORT.OUTTGL.reg = LED1_MASK)

Definition at line 50 of file board.h.

◆ LED2_MASK

#define LED2_MASK   (1 << 11)

Definition at line 55 of file board.h.

◆ LED2_OFF

#define LED2_OFF   (LED2_PORT.OUTSET.reg = LED2_MASK)

Definition at line 57 of file board.h.

◆ LED2_ON

#define LED2_ON   (LED2_PORT.OUTCLR.reg = LED2_MASK)

Definition at line 58 of file board.h.

◆ LED2_PIN

#define LED2_PIN   GPIO_PIN(PB, 11)

Definition at line 52 of file board.h.

◆ LED2_PORT

#define LED2_PORT   PORT->Group[PB]

Definition at line 54 of file board.h.

◆ LED2_TOGGLE

#define LED2_TOGGLE   (LED2_PORT.OUTTGL.reg = LED2_MASK)

Definition at line 59 of file board.h.

◆ LORA_RESET_MASK

#define LORA_RESET_MASK   (1 << 4)

Definition at line 98 of file board.h.

◆ LORA_RESET_OFF

#define LORA_RESET_OFF   (LORA_RESET_PORT.OUTSET.reg = LORA_RESET_MASK)

Definition at line 100 of file board.h.

◆ LORA_RESET_ON

#define LORA_RESET_ON   (LORA_RESET_PORT.OUTCLR.reg = LORA_RESET_MASK)

Definition at line 101 of file board.h.

◆ LORA_RESET_PIN

#define LORA_RESET_PIN   GPIO_PIN(PA, 4)

Definition at line 95 of file board.h.

◆ LORA_RESET_PORT

#define LORA_RESET_PORT   PORT->Group[PA]

Definition at line 97 of file board.h.

◆ LORA_RESET_TOGGLE

#define LORA_RESET_TOGGLE   (LORA_RESET_PORT.OUTTGL.reg = LORA_RESET_MASK)

Definition at line 102 of file board.h.