comparison bsp/rtc/rtc_process.c @ 0:75a11d740a02

initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 09 Jun 2016 00:02:41 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:75a11d740a02
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 "../../riviera/rvf/rvf_api.h"
18 #include "../../riviera/rv/rv_general.h"
19 #include "../../riviera/rvm/rvm_use_id_list.h"
20 #include "rtc_messages_i.h"
21 #include "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 }