FreeCalypso > hg > fc-tourmaline
comparison src/cs/services/fcbm/fcbm_powerkey_if.c @ 230:baa738eeb842
FCBM code implemented in first pass
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Sat, 01 May 2021 10:05:53 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 229:7ec0ae23ce76 | 230:baa738eeb842 |
|---|---|
| 1 /* | |
| 2 * This module implements the long-press-PWON interface for FCBM. | |
| 3 */ | |
| 4 | |
| 5 #include "fcbm/fcbm_func_i.h" | |
| 6 #include "fcbm/fcbm_send_msg.h" | |
| 7 #include "kpd/kpd_api.h" | |
| 8 | |
| 9 static void press_func(T_KPD_VIRTUAL_KEY_ID key) | |
| 10 { | |
| 11 fcbm_message_to_task(FCBM_START_PHONE); | |
| 12 } | |
| 13 | |
| 14 static void release_func(void) | |
| 15 { | |
| 16 } | |
| 17 | |
| 18 void fcbm_setup_long_pwon(void) | |
| 19 { | |
| 20 KP_Init(press_func, release_func); | |
| 21 } |
