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

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

Detailed Description

Board specific definitions for the SODAQ ExpLoRer board.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file board.h.

#include "cpu.h"
#include "board_common.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_ON   (LED0_PORT.OUTSET.reg = LED0_MASK)
 
#define LED0_OFF   (LED0_PORT.OUTCLR.reg = LED0_MASK)
 
#define LED0_TOGGLE   (LED0_PORT.OUTTGL.reg = LED0_MASK)
 

User button

#define BTN0_PIN   GPIO_PIN(PA, 14)
 
#define BTN0_MODE   GPIO_IN_PU
 

RN2483 configuration

#define RN2XX3_PARAM_UART   UART_DEV(2)
 
#define RN2XX3_PARAM_PIN_RESET   GPIO_PIN(PA, 7)
 

Macro Definition Documentation

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Definition at line 48 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(PA, 14)

Definition at line 47 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (1 << 21)

Definition at line 36 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 38 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PA, 21)

Definition at line 33 of file board.h.

◆ LED0_PORT

#define LED0_PORT   PORT->Group[PA]

Definition at line 35 of file board.h.

◆ LED0_TOGGLE

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

Definition at line 40 of file board.h.

◆ RN2XX3_PARAM_PIN_RESET

#define RN2XX3_PARAM_PIN_RESET   GPIO_PIN(PA, 7)

Definition at line 56 of file board.h.

◆ RN2XX3_PARAM_UART

#define RN2XX3_PARAM_UART   UART_DEV(2)

Definition at line 55 of file board.h.