FreeCalypso > hg > fc-tourmaline
comparison src/cs/drivers/drv_app/fchg/fchg_messages.c @ 256:aec644728174
FCHG BSIM: ETM connection implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 13 May 2021 02:37:14 +0000 |
parents | 4e78acac3d88 |
children | 7420959e02ec |
comparison
equal
deleted
inserted
replaced
255:1a4413c4eb7e | 256:aec644728174 |
---|---|
2 * Incoming message dispatch for the FCHG task is implemented here. | 2 * Incoming message dispatch for the FCHG task is implemented here. |
3 */ | 3 */ |
4 | 4 |
5 #include "fchg/fchg_env.h" | 5 #include "fchg/fchg_env.h" |
6 #include "fchg/fchg_func_i.h" | 6 #include "fchg/fchg_func_i.h" |
7 #include "fchg/bsim_func_i.h" | |
7 #include "rv/rv_general.h" | 8 #include "rv/rv_general.h" |
8 #include "rvf/rvf_api.h" | 9 #include "rvf/rvf_api.h" |
9 #include "rvm/rvm_use_id_list.h" | 10 #include "rvm/rvm_use_id_list.h" |
10 | 11 |
11 void pwr_process_message(T_RV_HDR *msg_ptr) | 12 void pwr_process_message(T_RV_HDR *msg_ptr) |
24 pwr_charger_unplug(); | 25 pwr_charger_unplug(); |
25 return; | 26 return; |
26 case PWR_ADC_IND: | 27 case PWR_ADC_IND: |
27 pwr_process_adc((struct pwr_adc_ind_s *) msg_ptr); | 28 pwr_process_adc((struct pwr_adc_ind_s *) msg_ptr); |
28 return; | 29 return; |
30 case ETM_DATA_READY: | |
31 bsim_process_etm((T_ETM_DATA_READY *) msg_ptr); | |
32 return; | |
29 default: | 33 default: |
30 rvf_send_trace("FCHG task: Received an unknown message", 38, | 34 rvf_send_trace("FCHG task: Received an unknown message", 38, |
31 NULL_PARAM, RV_TRACE_LEVEL_DEBUG_HIGH, | 35 NULL_PARAM, RV_TRACE_LEVEL_DEBUG_HIGH, |
32 FCHG_USE_ID); | 36 FCHG_USE_ID); |
33 } | 37 } |