FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/bsp/rtc/rtc_process.c @ 159:3c42e6e5fc04
gsm-fw/bsp/rtc: initial import from Leonardo TCS211 semi-src
| author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
|---|---|
| date | Sun, 17 Nov 2013 22:10:10 +0000 |
| parents | |
| children | 98be4841eeb7 |
comparison
equal
deleted
inserted
replaced
| 158:97b671efff9c | 159:3c42e6e5fc04 |
|---|---|
| 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 |
