FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/bsp/rtc/rtc_env.c @ 160:dbfc9ff4e8d2
gsm-fw: starting to compile RTC code
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 17 Nov 2013 22:52:52 +0000 |
parents | 3c42e6e5fc04 |
children |
comparison
equal
deleted
inserted
replaced
159:3c42e6e5fc04 | 160:dbfc9ff4e8d2 |
---|---|
1 /********************************************************************************/ | 1 /******************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* File Name: rtc_env.c */ | 3 /* File Name: rtc_env.c */ |
4 /* */ | 4 /* */ |
5 /* Purpose: This file contains routines that will be called in order */ | 5 /* Purpose: This file contains routines that will be called in order */ |
6 /* to: */ | 6 /* to: */ |
7 /* - notify the Riviera manager of the RTC's Memory */ | 7 /* - notify the Riviera manager of the RTC's Memory */ |
8 /* Banks requirements, */ | 8 /* Banks requirements, */ |
9 /* - initialize all the RTC's data structures, */ | 9 /* - initialize all the RTC's data structures, */ |
10 /* */ | 10 /* */ |
11 /* Note: None. */ | 11 /* Note: None. */ |
12 /* */ | 12 /* */ |
13 /* Revision History: */ | 13 /* Revision History: */ |
14 /* 03/22/01 Laurent Sollier Create. */ | 14 /* 03/22/01 Laurent Sollier Create. */ |
15 /* */ | 15 /* */ |
16 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved */ | 16 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved */ |
17 /* */ | 17 /* */ |
18 /********************************************************************************/ | 18 /******************************************************************************/ |
19 | 19 |
20 #include "rvm/rvm_priorities.h" | 20 #include "../../riviera/rvm/rvm_priorities.h" |
21 #include "rvm/rvm_use_id_list.h" | 21 #include "../../riviera/rvm/rvm_use_id_list.h" |
22 #include "rtc/rtc_env.h" | 22 #include "rtc_env.h" |
23 #include "rtc/rtc_i.h" | 23 #include "rtc_i.h" |
24 #include "rtc/rtc_api.h" | 24 #include "rtc_api.h" |
25 #include <string.h> | 25 #include <string.h> |
26 | 26 |
27 | 27 |
28 /* Define a pointer to the RTC environment control block */ | 28 /* Define a pointer to the RTC environment control block */ |
29 T_RTC_ENV_CTRL_BLK *rtc_env_ctrl_blk = NULL; | 29 T_RTC_ENV_CTRL_BLK *rtc_env_ctrl_blk = NULL; |
56 ******************************************************************************/ | 56 ******************************************************************************/ |
57 T_RVM_RETURN rtc_get_info(T_RVM_INFO_SWE* swe_info) | 57 T_RVM_RETURN rtc_get_info(T_RVM_INFO_SWE* swe_info) |
58 { | 58 { |
59 /* SWE info */ | 59 /* SWE info */ |
60 swe_info->swe_type = RVM_SWE_TYPE_4; | 60 swe_info->swe_type = RVM_SWE_TYPE_4; |
61 swe_info->type_info.type4.swe_use_id = RTC_USE_ID; | 61 swe_info->type_info.type4.swe_use_id = RTC_USE_ID; |
62 memcpy( swe_info->type_info.type4.swe_name, "RTC", sizeof("RTC") ); | 62 memcpy( swe_info->type_info.type4.swe_name, "RTC", sizeof("RTC") ); |
63 | 63 |
64 swe_info->type_info.type4.stack_size = RTC_STACK_SIZE; | 64 swe_info->type_info.type4.stack_size = RTC_STACK_SIZE; |
65 swe_info->type_info.type4.priority = RVM_RTC_TASK_PRIORITY; | 65 swe_info->type_info.type4.priority = RVM_RTC_TASK_PRIORITY; |
66 | 66 |