Skip to content

Commit

Permalink
Merge pull request #20279 from keestux/add-sara-sff-status
Browse files Browse the repository at this point in the history
boards/sodaq-sara-sff: add status pin for SARA
  • Loading branch information
dylad authored Jun 1, 2024
2 parents 893fab9 + 08862b2 commit a67793d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boards/sodaq-sara-sff/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ void board_init(void)
SARA_R4XX_PWR_ON_ON;
gpio_init(SARA_R4XX_PWR_ON_PIN, GPIO_IN);

/* The SARA pin V_INT is available as SARA_STATUS_PIN.
*/
gpio_init(SARA_STATUS_PIN, GPIO_IN);

/* Disable GPS by default */
GPS_ENABLE_OFF;
gpio_init(GPS_ENABLE_PIN, GPIO_OUT);
Expand Down
2 changes: 2 additions & 0 deletions boards/sodaq-sara-sff/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ extern "C" {
#define SARA_R4XX_PWR_ON_OFF (SARA_R4XX_PWR_ON_PORT.OUTCLR.reg = SARA_R4XX_PWR_ON_MASK)
/** @} */

#define SARA_STATUS_PIN GPIO_PIN(PA, 28) /**< This is the V_INT of the board */

/**
* @name INT_MAG
*
Expand Down

0 comments on commit a67793d

Please sign in to comment.