comparison src/cs/services/etm/etm_tmcore.c @ 247:12b20090b46a

ETM: add phone-on command to FCBM
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 09 May 2021 21:04:52 +0000
parents d25af5b7e773
children
comparison
equal deleted inserted replaced
246:d25af5b7e773 247:12b20090b46a
33 #include "spi/spi_drv.h" 33 #include "spi/spi_drv.h"
34 extern void tr_etm_init(unsigned int mask); 34 extern void tr_etm_init(unsigned int mask);
35 35
36 /* FreeCalypso addition for KPD_PWR testing */ 36 /* FreeCalypso addition for KPD_PWR testing */
37 #include "kpd/kpd_power_api.h" 37 #include "kpd/kpd_power_api.h"
38
39 /* Further FreeCalypso addition: phone-on command */
40 #ifdef RVM_FCBM_SWE
41 #include "fcbm/fcbm_send_msg.h"
42 #endif
38 43
39 // Version of the ETM CORE module 44 // Version of the ETM CORE module
40 // See the file etm_version.h 45 // See the file etm_version.h
41 46
42 /****************************************************************************** 47 /******************************************************************************
348 (Kp.pressed)(KPD_PWR); 353 (Kp.pressed)(KPD_PWR);
349 break; 354 break;
350 case 6: 355 case 6:
351 (Kp.released)(); 356 (Kp.released)();
352 break; 357 break;
358 /* Further FreeCalypso addition: phone-on command */
359 #ifdef RVM_FCBM_SWE
360 case 7:
361 fcbm_message_to_task(FCBM_START_PHONE);
362 break;
363 #endif
353 default: 364 default:
354 error = ETM_NOSYS; 365 error = ETM_NOSYS;
355 } 366 }
356 367
357 if (error < 0) 368 if (error < 0)