0
0
Embedded Cprogramming~10 mins

Standby mode behavior in Embedded C - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to enter standby mode.

Embedded C
void enter_standby() {
    [1]();
}
Drag options to blanks, or click blank then click option'
Aenable_standby
Benter_standby_mode
Cstandby_mode_enable
Dstandby_enter
Attempts:
3 left
💡 Hint
Common Mistakes
Using a function that only enables standby but does not enter it.
Confusing enabling with entering standby mode.
2fill in blank
medium

Complete the code to clear the standby flag after waking up.

Embedded C
void clear_standby_flag() {
    [1](STANDBY_FLAG);
}
Drag options to blanks, or click blank then click option'
Aflag_clear
Breset_flag
Cclear_flag
Dremove_flag
Attempts:
3 left
💡 Hint
Common Mistakes
Using a function that resets all flags instead of clearing a specific one.
Using a function that does not exist in the API.
3fill in blank
hard

Fix the error in the code to correctly configure the wakeup source before standby.

Embedded C
void configure_wakeup() {
    [1](WAKEUP_PIN);
}
Drag options to blanks, or click blank then click option'
Aenable_wakeup_source
Bwakeup_enable_source
Cset_wakeup_pin
Dactivate_wakeup
Attempts:
3 left
💡 Hint
Common Mistakes
Using a function that sets the pin but does not enable the wakeup source.
Using a function name that is not part of the standard API.
4fill in blank
hard

Fill both blanks to correctly check and clear the standby flag after wakeup.

Embedded C
if ([1](STANDBY_FLAG)) {
    [2](STANDBY_FLAG);
}
Drag options to blanks, or click blank then click option'
Ais_flag_set
Bclear_flag
Ccheck_flag
Dreset_flag
Attempts:
3 left
💡 Hint
Common Mistakes
Using the same function for both checking and clearing.
Using functions that do not exist or have wrong parameters.
5fill in blank
hard

Fill all three blanks to create a dictionary mapping wakeup pins to their status after standby.

Embedded C
wakeup_status = {{BLANK_4}}: [2] for [3] in wakeup_pins if check_flag([3])
Drag options to blanks, or click blank then click option'
Apin
Bget_pin_status()
Ddict
Attempts:
3 left
💡 Hint
Common Mistakes
Using different variable names inconsistently.
Not calling the function to get pin status properly.