gpio_configurePin(0, 0, 0x100, 0)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
LeCa_2156671
Level 4
Level 4
First like received First like given

Hi, boontmwf_mmfae

   We have a question about BCM20736S enter deep sleep.

   In APP of "RTC", when enter deep sleep, there is one configuration to P0 as below:

// Demo going into deep sleep with wake after 5s.

  if (num_timeouts_since_boot++ >= 10)

  {

  // If its been ~10s of ADV, configure timed wake and

  // enter deep sleep right now.

  ble_trace0("Entering deep sleep.");

  gpio_configurePin(0, 0, 0x100, 0);

  // Configure the low power manager to enter deep sleep.

  devLpmConfig.disconnectedLowPowerMode = DEV_LPM_DISC_LOW_POWER_MODES_HID_OFF;

  ...

  ....}

  The P0 is must configured before enter deep sleep ? or not ?

  Why ??

   tks@

0 Likes
1 Solution
3 Replies
BoonT_56
Employee
Employee
500 likes received 250 likes received 100 likes received

P0 is usually configured as an input pin to a toggle switch/button to wake up from sleeping. This is done before entering sleep mode. What is the issue you are facing?

0 Likes

If we do not need P0 to wake up BMC20736, could we disable this P0 ?

tks

0 Likes

Yes you may.