comparison src/cs/drivers/drv_app/fchg/fchg_task.c @ 338:1c711302732a

FCHG: complete enough to attempt linking into fw build
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 14 Dec 2017 22:03:48 +0000
parents 0df0668f8bea
children
comparison
equal deleted inserted replaced
337:0df0668f8bea 338:1c711302732a
44 /* If an event related to mailbox 0 is received, then */ 44 /* If an event related to mailbox 0 is received, then */
45 if (received_event & RVF_TASK_MBOX_0_EVT_MASK) 45 if (received_event & RVF_TASK_MBOX_0_EVT_MASK)
46 { 46 {
47 /* Read the message in the driver mailbox and delegate action..*/ 47 /* Read the message in the driver mailbox and delegate action..*/
48 msg_ptr = (T_RV_HDR *) rvf_read_mbox(FCHG_MAILBOX); 48 msg_ptr = (T_RV_HDR *) rvf_read_mbox(FCHG_MAILBOX);
49 pwr_process_message(msg_ptr); 49 if (msg_ptr) {
50 pwr_process_message(msg_ptr);
51 rvf_free_buf ((void *) msg_ptr);
52 }
50 } 53 }
51 54
52 /* Timers */ 55 /* Timers */
53 if (received_event & RVF_TIMER_0_EVT_MASK) 56 if (received_event & RVF_TIMER_0_EVT_MASK)
54 pwr_handle_timer(); 57 pwr_handle_timer();