Skip to content

Commit e47392f

Browse files
Stub the new HAL introduced for modpower.
1 parent fdbbcf1 commit e47392f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/microbithal_js.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,26 @@ int microbit_hal_temperature(void) {
7676
return mp_js_hal_temperature();
7777
}
7878

79+
void microbit_hal_power_clear_wake_sources(void) {
80+
// Stub, unsupported.
81+
}
82+
83+
void microbit_hal_power_wake_on_button(int button, bool wake_on_active) {
84+
// Stub, unsupported.
85+
}
86+
87+
void microbit_hal_power_wake_on_pin(int pin, bool wake_on_active) {
88+
// Stub, unsupported.
89+
}
90+
91+
void microbit_hal_power_off(void) {
92+
// Stub, unsupported.
93+
}
94+
95+
void microbit_hal_power_deep_sleep(bool wake_on_ms, uint32_t ms) {
96+
// Stub, unsupported.
97+
}
98+
7999
void microbit_hal_pin_set_pull(int pin, int pull) {
80100
//pin_obj[pin]->setPull(pin_pull_mode_mapping[pull]);
81101
//pin_pull_state[pin] = pull;

0 commit comments

Comments
 (0)