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

Board specific definitions for the SODAQ SARA AFF boards. More...

Detailed Description

Board specific definitions for the SODAQ SARA AFF boards.

Author
Leandro Lanzieri leand.nosp@m.ro.l.nosp@m.anzie.nosp@m.ri@h.nosp@m.aw-ha.nosp@m.mbur.nosp@m.g.de

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, 21)
 
#define LED0_PORT   PORT->Group[PA]
 
#define LED0_MASK   (1 << 21)
 
#define LED0_OFF   (LED0_PORT.OUTCLR.reg = LED0_MASK)
 
#define LED0_ON   (LED0_PORT.OUTSET.reg = LED0_MASK)
 
#define LED0_TOGGLE   (LED0_PORT.OUTTGL.reg = LED0_MASK)
 
#define LED1_PIN   GPIO_PIN(PA, 12)
 
#define LED1_PORT   PORT->Group[PA]
 
#define LED1_MASK   (1 << 12)
 
#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 LED_RED_PIN   LED1_PIN
 
#define LED_RED_OFF   LED1_OFF
 
#define LED_RED_ON   LED1_ON
 
#define LED_RED_TOGGLE   LED1_TOGGLE
 
#define LED2_PIN   GPIO_PIN(PB, 15)
 
#define LED2_PORT   PORT->Group[PB]
 
#define LED2_MASK   (1 << 15)
 
#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)
 
#define LED_GREEN_PIN   LED2_PIN
 
#define LED_GREEN_OFF   LED2_OFF
 
#define LED_GREEN_ON   LED2_ON
 
#define LED_GREEN_TOGGLE   LED2_TOGGLE
 
#define LED3_PIN   GPIO_PIN(PA, 13)
 
#define LED3_PORT   PORT->Group[PA]
 
#define LED3_MASK   (1 << 13)
 
#define LED3_OFF   (LED3_PORT.OUTSET.reg = LED3_MASK)
 
#define LED3_ON   (LED3_PORT.OUTCLR.reg = LED3_MASK)
 
#define LED3_TOGGLE   (LED3_PORT.OUTTGL.reg = LED3_MASK)
 
#define LED_BLUE_PIN   LED3_PIN
 
#define LED_BLUE_OFF   LED3_OFF
 
#define LED_BLUE_ON   LED3_ON
 
#define LED_BLUE_TOGGLE   LED3_TOGGLE
 

GPS Time Pulse

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

GPS Enable

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

NB-IoT SARA module

#define NB_IOT_ENABLE_PIN   GPIO_PIN(PA, 27)
 
#define NB_IOT_ENABLE_PORT   PORT->Group[PA]
 
#define NB_IOT_ENABLE_MASK   (1 << 27)
 
#define NB_IOT_ENABLE   (NB_IOT_ENABLE_PORT.OUTSET.reg = NB_IOT_ENABLE_MASK)
 
#define NB_IOT_DISABLE   (NB_IOT_ENABLE_PORT.OUTCLR.reg = NB_IOT_ENABLE_MASK)
 
#define NB_IOT_RESET_PIN   GPIO_PIN(PB, 14)
 
#define NB_IOT_RESET_PORT   PORT->Group[PB]
 
#define NB_IOT_RESET_MASK   (1 << 14)
 
#define NB_IOT_RESET_ON   (NB_IOT_RESET_PORT.OUTSET.reg = NB_IOT_RESET_MASK)
 
#define NB_IOT_RESET_OFF   (NB_IOT_RESET_PORT.OUTCLR.reg = NB_IOT_RESET_MASK)
 
#define NB_IOT_RESET_PIN   GPIO_PIN(PB, 14)
 
#define NB_IOT_RESET_PORT   PORT->Group[PB]
 
#define NB_IOT_RESET_MASK   (1 << 14)
 
#define NB_IOT_RESET_ON   (NB_IOT_RESET_PORT.OUTSET.reg = NB_IOT_RESET_MASK)
 
#define NB_IOT_RESET_OFF   (NB_IOT_RESET_PORT.OUTCLR.reg = NB_IOT_RESET_MASK)
 
#define NB_IOT_TX_EN_PIN   GPIO_PIN(PB, 13)
 
#define NB_IOT_TX_EN_PORT   PORT->Group[PB]
 
#define NB_IOT_TX_EN_MASK   (1 << 13)
 
#define NB_IOT_TX_EN_ON   (NB_IOT_TX_EN_PORT.OUTSET.reg = NB_IOT_TX_EN_MASK)
 
#define NB_IOT_TX_EN_OFF   (NB_IOT_TX_EN_PORT.OUTCLR.reg = NB_IOT_TX_EN_MASK)
 
#define NB_IOT_TOGGLE_PIN   GPIO_PIN(PB, 17)
 
#define NB_IOT_TOGGLE_PORT   PORT->Group[PB]
 
#define NB_IOT_TOGGLE_MASK   (1 << 17)
 
#define NB_IOT_TOGGLE_ON   (NB_IOT_TOGGLE_PORT.OUTSET.reg = NB_IOT_TOGGLE_MASK)
 
#define NB_IOT_TOGGLE_OFF   (NB_IOT_TOGGLE_PORT.OUTCLR.reg = NB_IOT_TOGGLE_MASK)
 

Macro Definition Documentation

◆ GPS_ENABLE_MASK

#define GPS_ENABLE_MASK   (1 << 28)

Definition at line 101 of file board.h.

◆ GPS_ENABLE_OFF

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

Definition at line 104 of file board.h.

◆ GPS_ENABLE_ON

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

Definition at line 103 of file board.h.

◆ GPS_ENABLE_PIN

#define GPS_ENABLE_PIN   GPIO_PIN(PA, 28)

Definition at line 98 of file board.h.

◆ GPS_ENABLE_PORT

#define GPS_ENABLE_PORT   PORT->Group[PA]

Definition at line 100 of file board.h.

◆ GPS_TIMEPULSE_MODE

#define GPS_TIMEPULSE_MODE   GPIO_IN

Definition at line 91 of file board.h.

◆ GPS_TIMEPULSE_PIN

#define GPS_TIMEPULSE_PIN   GPIO_PIN(PA, 7)

Definition at line 90 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (1 << 21)

Definition at line 37 of file board.h.

◆ LED0_OFF

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

Definition at line 39 of file board.h.

◆ LED0_ON

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

Definition at line 40 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PA, 21)

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 << 12)

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(PA, 12)

Definition at line 43 of file board.h.

◆ LED1_PORT

#define LED1_PORT   PORT->Group[PA]

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 << 15)

Definition at line 60 of file board.h.

◆ LED2_OFF

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

Definition at line 62 of file board.h.

◆ LED2_ON

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

Definition at line 63 of file board.h.

◆ LED2_PIN

#define LED2_PIN   GPIO_PIN(PB, 15)

Definition at line 57 of file board.h.

◆ LED2_PORT

#define LED2_PORT   PORT->Group[PB]

Definition at line 59 of file board.h.

◆ LED2_TOGGLE

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

Definition at line 64 of file board.h.

◆ LED3_MASK

#define LED3_MASK   (1 << 13)

Definition at line 74 of file board.h.

◆ LED3_OFF

#define LED3_OFF   (LED3_PORT.OUTSET.reg = LED3_MASK)

Definition at line 76 of file board.h.

◆ LED3_ON

#define LED3_ON   (LED3_PORT.OUTCLR.reg = LED3_MASK)

Definition at line 77 of file board.h.

◆ LED3_PIN

#define LED3_PIN   GPIO_PIN(PA, 13)

Definition at line 71 of file board.h.

◆ LED3_PORT

#define LED3_PORT   PORT->Group[PA]

Definition at line 73 of file board.h.

◆ LED3_TOGGLE

#define LED3_TOGGLE   (LED3_PORT.OUTTGL.reg = LED3_MASK)

Definition at line 78 of file board.h.

◆ LED_BLUE_OFF

#define LED_BLUE_OFF   LED3_OFF

Definition at line 81 of file board.h.

◆ LED_BLUE_ON

#define LED_BLUE_ON   LED3_ON

Definition at line 82 of file board.h.

◆ LED_BLUE_PIN

#define LED_BLUE_PIN   LED3_PIN

Definition at line 80 of file board.h.

◆ LED_BLUE_TOGGLE

#define LED_BLUE_TOGGLE   LED3_TOGGLE

Definition at line 83 of file board.h.

◆ LED_GREEN_OFF

#define LED_GREEN_OFF   LED2_OFF

Definition at line 67 of file board.h.

◆ LED_GREEN_ON

#define LED_GREEN_ON   LED2_ON

Definition at line 68 of file board.h.

◆ LED_GREEN_PIN

#define LED_GREEN_PIN   LED2_PIN

Definition at line 66 of file board.h.

◆ LED_GREEN_TOGGLE

#define LED_GREEN_TOGGLE   LED2_TOGGLE

Definition at line 69 of file board.h.

◆ LED_RED_OFF

#define LED_RED_OFF   LED1_OFF

Definition at line 53 of file board.h.

◆ LED_RED_ON

#define LED_RED_ON   LED1_ON

Definition at line 54 of file board.h.

◆ LED_RED_PIN

#define LED_RED_PIN   LED1_PIN

Definition at line 52 of file board.h.

◆ LED_RED_TOGGLE

#define LED_RED_TOGGLE   LED1_TOGGLE

Definition at line 55 of file board.h.

◆ NB_IOT_DISABLE

#define NB_IOT_DISABLE   (NB_IOT_ENABLE_PORT.OUTCLR.reg = NB_IOT_ENABLE_MASK)

Definition at line 117 of file board.h.

◆ NB_IOT_ENABLE

#define NB_IOT_ENABLE   (NB_IOT_ENABLE_PORT.OUTSET.reg = NB_IOT_ENABLE_MASK)

Definition at line 116 of file board.h.

◆ NB_IOT_ENABLE_MASK

#define NB_IOT_ENABLE_MASK   (1 << 27)

Definition at line 114 of file board.h.

◆ NB_IOT_ENABLE_PIN

#define NB_IOT_ENABLE_PIN   GPIO_PIN(PA, 27)

Definition at line 111 of file board.h.

◆ NB_IOT_ENABLE_PORT

#define NB_IOT_ENABLE_PORT   PORT->Group[PA]

Definition at line 113 of file board.h.

◆ NB_IOT_RESET_MASK [1/2]

#define NB_IOT_RESET_MASK   (1 << 14)

Definition at line 122 of file board.h.

◆ NB_IOT_RESET_MASK [2/2]

#define NB_IOT_RESET_MASK   (1 << 14)

Definition at line 122 of file board.h.

◆ NB_IOT_RESET_OFF [1/2]

#define NB_IOT_RESET_OFF   (NB_IOT_RESET_PORT.OUTCLR.reg = NB_IOT_RESET_MASK)

Definition at line 125 of file board.h.

◆ NB_IOT_RESET_OFF [2/2]

#define NB_IOT_RESET_OFF   (NB_IOT_RESET_PORT.OUTCLR.reg = NB_IOT_RESET_MASK)

Definition at line 125 of file board.h.

◆ NB_IOT_RESET_ON [1/2]

#define NB_IOT_RESET_ON   (NB_IOT_RESET_PORT.OUTSET.reg = NB_IOT_RESET_MASK)

Definition at line 124 of file board.h.

◆ NB_IOT_RESET_ON [2/2]

#define NB_IOT_RESET_ON   (NB_IOT_RESET_PORT.OUTSET.reg = NB_IOT_RESET_MASK)

Definition at line 124 of file board.h.

◆ NB_IOT_RESET_PIN [1/2]

#define NB_IOT_RESET_PIN   GPIO_PIN(PB, 14)

Definition at line 119 of file board.h.

◆ NB_IOT_RESET_PIN [2/2]

#define NB_IOT_RESET_PIN   GPIO_PIN(PB, 14)

Definition at line 119 of file board.h.

◆ NB_IOT_RESET_PORT [1/2]

#define NB_IOT_RESET_PORT   PORT->Group[PB]

Definition at line 121 of file board.h.

◆ NB_IOT_RESET_PORT [2/2]

#define NB_IOT_RESET_PORT   PORT->Group[PB]

Definition at line 121 of file board.h.

◆ NB_IOT_TOGGLE_MASK

#define NB_IOT_TOGGLE_MASK   (1 << 17)

Definition at line 146 of file board.h.

◆ NB_IOT_TOGGLE_OFF

#define NB_IOT_TOGGLE_OFF   (NB_IOT_TOGGLE_PORT.OUTCLR.reg = NB_IOT_TOGGLE_MASK)

Definition at line 149 of file board.h.

◆ NB_IOT_TOGGLE_ON

#define NB_IOT_TOGGLE_ON   (NB_IOT_TOGGLE_PORT.OUTSET.reg = NB_IOT_TOGGLE_MASK)

Definition at line 148 of file board.h.

◆ NB_IOT_TOGGLE_PIN

#define NB_IOT_TOGGLE_PIN   GPIO_PIN(PB, 17)

Definition at line 143 of file board.h.

◆ NB_IOT_TOGGLE_PORT

#define NB_IOT_TOGGLE_PORT   PORT->Group[PB]

Definition at line 145 of file board.h.

◆ NB_IOT_TX_EN_MASK

#define NB_IOT_TX_EN_MASK   (1 << 13)

Definition at line 138 of file board.h.

◆ NB_IOT_TX_EN_OFF

#define NB_IOT_TX_EN_OFF   (NB_IOT_TX_EN_PORT.OUTCLR.reg = NB_IOT_TX_EN_MASK)

Definition at line 141 of file board.h.

◆ NB_IOT_TX_EN_ON

#define NB_IOT_TX_EN_ON   (NB_IOT_TX_EN_PORT.OUTSET.reg = NB_IOT_TX_EN_MASK)

Definition at line 140 of file board.h.

◆ NB_IOT_TX_EN_PIN

#define NB_IOT_TX_EN_PIN   GPIO_PIN(PB, 13)

Definition at line 135 of file board.h.

◆ NB_IOT_TX_EN_PORT

#define NB_IOT_TX_EN_PORT   PORT->Group[PB]

Definition at line 137 of file board.h.