comparison src/cs/drivers/drv_app/rtc/rtc_process.c @ 0:b6a5e36de839

src/cs: initial import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 15 Jul 2018 04:39:26 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:b6a5e36de839
1 /********************************************************************************/
2 /* */
3 /* File Name: rtc_process.c */
4 /* */
5 /* Purpose: This file contains routine(s) that dispatch and process */
6 /* message(s) received from other entity */
7 /* */
8 /* Note: None. */
9 /* */
10 /* Revision History: */
11 /* 03/22/01 Laurent Sollier Create. */
12 /* */
13 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved */
14 /* */
15 /********************************************************************************/
16
17 #include "rvf/rvf_api.h"
18 #include "rv/rv_general.h"
19 #include "rvm/rvm_use_id_list.h"
20 #include "rtc/rtc_messages_i.h"
21 #include "rtc/rtc_i.h"
22
23
24 void rtc_process(T_RV_HDR * msg_ptr)
25 {
26 switch (msg_ptr->msg_id)
27 {
28 case RTC_ALARM_EVT:
29 rvf_send_trace("RTC: received RTC_ALARM event",29, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_MEDIUM, RTC_USE_ID );
30
31 RTC_ProcessAlarmEvent();
32 /* free memory used for the RTC message */
33 break;
34
35 default:
36 /* Unknow message has been received */
37 rvf_send_trace("RTC: Message received unknown",29,
38 NULL_PARAM,
39 RV_TRACE_LEVEL_ERROR,
40 RTC_USE_ID );
41 break;
42 }
43 }
44
45
46
47
48
49