Skip to content

Commit 08862b2

Browse files
committed
boards/sodaq-sara-sff: add status pin for SARA
1 parent 6c6d2f9 commit 08862b2

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

boards/sodaq-sara-sff/board.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ void board_init(void)
3838
SARA_R4XX_PWR_ON_ON;
3939
gpio_init(SARA_R4XX_PWR_ON_PIN, GPIO_IN);
4040

41+
/* The SARA pin V_INT is available as SARA_STATUS_PIN.
42+
*/
43+
gpio_init(SARA_STATUS_PIN, GPIO_IN);
44+
4145
/* Disable GPS by default */
4246
GPS_ENABLE_OFF;
4347
gpio_init(GPS_ENABLE_PIN, GPIO_OUT);

boards/sodaq-sara-sff/include/board.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ extern "C" {
146146
#define SARA_R4XX_PWR_ON_OFF (SARA_R4XX_PWR_ON_PORT.OUTCLR.reg = SARA_R4XX_PWR_ON_MASK)
147147
/** @} */
148148

149+
#define SARA_STATUS_PIN GPIO_PIN(PA, 28) /**< This is the V_INT of the board */
150+
149151
/**
150152
* @name INT_MAG
151153
*

0 commit comments

Comments
 (0)