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

[Sleepy] sleep and wakeup pin correction for the brd4186c #112

Merged
merged 1 commit into from
Mar 24, 2023
Merged
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
27 changes: 21 additions & 6 deletions matter/efr32/efr32mg24/BRD4186C/config/brd4186c.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
#ifndef _BRD4186C_H_
#define _BRD4186C_H_

#ifndef LOGGING_STATS
#define WAKE_INDICATOR_PIN PIN(D, 3)
#endif
#ifdef EXP_BOARD
#define WAKE_INDICATOR_PIN PIN(A, 5)
#else
#define WAKE_INDICATOR_PIN PIN(D, 2)
#endif /* EXP_BOARD */
#endif /* LOGGING_STATS */

#ifdef LOGGING_STATS
#define LOGGING_WAKE_INDICATOR_PIN PIN(D, 3)
#define LOGGING_STATS_PORT gpioPortD
#define LOGGING_STATS_PIN 03
#endif
#ifdef EXP_BOARD
#define LOGGING_WAKE_INDICATOR_PIN PIN(A, 5)
#define LOGGING_STATS_PORT gpioPortA
#define LOGGING_STATS_PIN 05
#else
#define LOGGING_WAKE_INDICATOR_PIN PIN(D, 2)
#define LOGGING_STATS_PORT gpioPortD
#define LOGGING_STATS_PIN 02
#endif /* EXP_BOARD */
#endif /* LOGGING_STAT */

#ifdef RS911X_WIFI
// SPI ports and pins
Expand All @@ -32,7 +43,11 @@

#define WFX_RESET_PIN PIN(A, 6)
#define WFX_INTERRUPT_PIN PIN(A, 7)
#ifdef EXP_BOARD
#define WFX_SLEEP_CONFIRM_PIN PIN(D, 2) /* Exp hdr 7 */
#else
#define WFX_SLEEP_CONFIRM_PIN PIN(A, 5) /* Exp hdr 7 */
#endif /* EXP_BOARD */
#define SL_WFX_HOST_PINOUT_SPI_IRQ 5

#else /* WF200 */
Expand Down