Contiki 3.x
system_ADuCRF101.h
Go to the documentation of this file.
1 /**
2  * Copyright (c) 2014, Analog Devices, Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted (subject to the limitations in the
6  * disclaimer below) provided that the following conditions are met:
7  *
8  * - Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * - Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * - Neither the name of Analog Devices, Inc. nor the names of its
17  * contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
21  * GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
22  * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
23  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
24  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
29  * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
30  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
31  * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
32  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33  */
34 /**
35 @file system_ADuCRF101.h
36 @brief: CMSIS Cortex-M3 Device Peripheral Access Layer Header File
37  for the ADuCRF101
38 @version v0.2
39 @author PAD CSE group, Analog Devices Inc
40 @date March 09th 2012
41 **/
42 
43 
44 #ifndef __SYSTEM_ADUCRF101_H__
45 #define __SYSTEM_ADUCRF101_H__
46 
47 #ifdef __cplusplus
48  extern "C" {
49 #endif
50 
51 /**
52  * @brief Initialize the system
53  *
54  * @return none
55  *
56  * Setup the microcontroller system.
57  * Initialize the System and update the SystemCoreClock variable.
58  */
59 extern void SystemInit (void);
60 
61 /**
62  * @brief Update internal SystemCoreClock variable
63  *
64  * @return none
65  *
66  * Updates the internal SystemCoreClock with current core
67  * Clock retrieved from cpu registers.
68  */
69 extern void SystemCoreClockUpdate (void);
70 
71 
72 /**
73  * @brief Sets the system external clock frequency
74  *
75  * @param ExtClkFreq External clock frequency in Hz
76  * @return none
77  *
78  * Sets the clock frequency of the source connected to P0.5 clock input source
79  */
80 extern void SetSystemExtClkFreq (uint32_t ExtClkFreq);
81 
82 
83 /**
84  * @brief Gets the system external clock frequency
85  *
86  * @return External Clock frequency
87  *
88  * Gets the clock frequency of the source connected to P0.5 clock input source
89  */
90 extern uint32_t GetSystemExtClkFreq (void);
91 
92 
93 #ifdef __cplusplus
94 }
95 #endif
96 
97 #endif /* __SYSTEM_ADUCRF101_H__ */
98 
void SystemInit(void)
Initialize the system.
void SetSystemExtClkFreq(uint32_t ExtClkFreq)
Sets the system external clock frequency.
uint32_t GetSystemExtClkFreq(void)
Gets the system external clock frequency.
void SystemCoreClockUpdate(void)
Update internal SystemCoreClock variable.