diff options
Diffstat (limited to 'lib/chibios/os/common/ext/ADI/ADUCM36x/system_ADuCM361.h')
-rw-r--r-- | lib/chibios/os/common/ext/ADI/ADUCM36x/system_ADuCM361.h | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/lib/chibios/os/common/ext/ADI/ADUCM36x/system_ADuCM361.h b/lib/chibios/os/common/ext/ADI/ADUCM36x/system_ADuCM361.h new file mode 100644 index 000000000..f03d34a32 --- /dev/null +++ b/lib/chibios/os/common/ext/ADI/ADUCM36x/system_ADuCM361.h | |||
@@ -0,0 +1,112 @@ | |||
1 | /**************************************************************************//** | ||
2 | * @file system_ADuCM361.h | ||
3 | * @brief CMSIS Cortex-M3 Device Peripheral Access Layer Header File for | ||
4 | * Device ADuCM361 | ||
5 | * @version V3.10 | ||
6 | * @date 23. November 2012 | ||
7 | * | ||
8 | * @note | ||
9 | * | ||
10 | ******************************************************************************/ | ||
11 | /* Copyright (c) 2012 ARM LIMITED | ||
12 | |||
13 | All rights reserved. | ||
14 | Redistribution and use in source and binary forms, with or without | ||
15 | modification, are permitted provided that the following conditions are met: | ||
16 | - Redistributions of source code must retain the above copyright | ||
17 | notice, this list of conditions and the following disclaimer. | ||
18 | - Redistributions in binary form must reproduce the above copyright | ||
19 | notice, this list of conditions and the following disclaimer in the | ||
20 | documentation and/or other materials provided with the distribution. | ||
21 | - Neither the name of ARM nor the names of its contributors may be used | ||
22 | to endorse or promote products derived from this software without | ||
23 | specific prior written permission. | ||
24 | * | ||
25 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
26 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
27 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
28 | ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE | ||
29 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
30 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
31 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
32 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
33 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
34 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
35 | POSSIBILITY OF SUCH DAMAGE. | ||
36 | |||
37 | Portions Copyright (c) 2017 Analog Devices, Inc. | ||
38 | ---------------------------------------------------------------------------*/ | ||
39 | |||
40 | /** @addtogroup CMSIS | ||
41 | * @{ | ||
42 | */ | ||
43 | |||
44 | /** @addtogroup aducM361_system | ||
45 | * @{ | ||
46 | */ | ||
47 | |||
48 | #ifndef __SYSTEM_ADUCM361_H__ | ||
49 | #define __SYSTEM_ADUCM361_H__ | ||
50 | |||
51 | #ifdef __cplusplus | ||
52 | extern "C" { | ||
53 | #endif | ||
54 | |||
55 | #include <stdint.h> | ||
56 | |||
57 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ | ||
58 | |||
59 | /** | ||
60 | * @brief Initialize the system | ||
61 | * | ||
62 | * @param none | ||
63 | * @return none | ||
64 | * | ||
65 | * Setup the microcontroller system. | ||
66 | * Initialize the System and update the SystemCoreClock variable. | ||
67 | */ | ||
68 | extern void SystemInit (void); | ||
69 | |||
70 | /** | ||
71 | * @brief Update internal SystemCoreClock variable | ||
72 | * | ||
73 | * @param none | ||
74 | * @return none | ||
75 | * | ||
76 | * Updates the internal SystemCoreClock with current core | ||
77 | * Clock retrieved from cpu registers. | ||
78 | */ | ||
79 | extern void SystemCoreClockUpdate (void); | ||
80 | |||
81 | /** | ||
82 | * @brief Sets the system external clock frequency | ||
83 | * | ||
84 | * @param ExtClkFreq External clock frequency in Hz | ||
85 | * @return none | ||
86 | * | ||
87 | * Sets the clock frequency of the source connected to P1.0 clock input source | ||
88 | */ | ||
89 | extern void SetSystemExtClkFreq (uint32_t ExtClkFreq); | ||
90 | |||
91 | /** | ||
92 | * @brief Gets the system external clock frequency | ||
93 | * | ||
94 | * @return External Clock frequency | ||
95 | * | ||
96 | * Gets the clock frequency of the source connected to P1.0 clock input source | ||
97 | */ | ||
98 | extern uint32_t GetSystemExtClkFreq (void); | ||
99 | |||
100 | #ifdef __cplusplus | ||
101 | } | ||
102 | #endif | ||
103 | |||
104 | #endif /* __SYSTEM_ADUCM361_H__ */ | ||
105 | |||
106 | /** | ||
107 | * @} | ||
108 | */ | ||
109 | |||
110 | /** | ||
111 | * @} | ||
112 | */ | ||