Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boards/sodaq-sara-sff: add status pin for SARA #20279

Merged
merged 1 commit into from
Jun 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading