mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-06-10 11:59:05 +02:00
Add weak init callback.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -235,6 +235,11 @@ bool wait_button() {
|
|||||||
req_button_pending = false;
|
req_button_pending = false;
|
||||||
return timeout || cancel_button;
|
return timeout || cancel_button;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__attribute__((weak)) int picokey_init() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool set_rtc = false;
|
bool set_rtc = false;
|
||||||
@@ -393,6 +398,10 @@ int main(void) {
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef ENABLE_EMULATION
|
||||||
|
picokey_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef ESP_PLATFORM
|
#ifdef ESP_PLATFORM
|
||||||
xTaskCreatePinnedToCore(core0_loop, "core0", 4096*ITF_TOTAL*2, NULL, CONFIG_TINYUSB_TASK_PRIORITY - 1, &hcore0, ESP32_CORE0);
|
xTaskCreatePinnedToCore(core0_loop, "core0", 4096*ITF_TOTAL*2, NULL, CONFIG_TINYUSB_TASK_PRIORITY - 1, &hcore0, ESP32_CORE0);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user