mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Committer:
AnnaBridge
Date:
Wed Feb 20 22:31:08 2019 +0000
Revision:
189:f392fc9709a3
Parent:
188:bcfe06ba3d64
mbed library release version 165

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 187:0387e8f68319 1 /* mbed Microcontroller Library
AnnaBridge 187:0387e8f68319 2 * Copyright (c) 2017-2018 Nuvoton
AnnaBridge 187:0387e8f68319 3 *
AnnaBridge 187:0387e8f68319 4 * Licensed under the Apache License, Version 2.0 (the "License");
AnnaBridge 187:0387e8f68319 5 * you may not use this file except in compliance with the License.
AnnaBridge 187:0387e8f68319 6 * You may obtain a copy of the License at
AnnaBridge 187:0387e8f68319 7 *
AnnaBridge 187:0387e8f68319 8 * http://www.apache.org/licenses/LICENSE-2.0
AnnaBridge 187:0387e8f68319 9 *
AnnaBridge 187:0387e8f68319 10 * Unless required by applicable law or agreed to in writing, software
AnnaBridge 187:0387e8f68319 11 * distributed under the License is distributed on an "AS IS" BASIS,
AnnaBridge 187:0387e8f68319 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
AnnaBridge 187:0387e8f68319 13 * See the License for the specific language governing permissions and
AnnaBridge 187:0387e8f68319 14 * limitations under the License.
AnnaBridge 187:0387e8f68319 15 */
AnnaBridge 187:0387e8f68319 16
AnnaBridge 187:0387e8f68319 17 #ifndef STDDRIVER_SECURE_H
AnnaBridge 187:0387e8f68319 18 #define STDDRIVER_SECURE_H
AnnaBridge 187:0387e8f68319 19
AnnaBridge 187:0387e8f68319 20 #include "cmsis.h"
AnnaBridge 187:0387e8f68319 21
AnnaBridge 187:0387e8f68319 22 #ifdef __cplusplus
AnnaBridge 187:0387e8f68319 23 extern "C" {
AnnaBridge 187:0387e8f68319 24 #endif
AnnaBridge 187:0387e8f68319 25
AnnaBridge 187:0387e8f68319 26 /* Secure SYS_ResetModule
AnnaBridge 187:0387e8f68319 27 *
AnnaBridge 187:0387e8f68319 28 * Guard access to secure module from non-secure domain before SYS_ResetModule.
AnnaBridge 187:0387e8f68319 29 * Its synopsis is the same as SYS_ResetModule.
AnnaBridge 187:0387e8f68319 30 */
AnnaBridge 187:0387e8f68319 31 __NONSECURE_ENTRY
AnnaBridge 187:0387e8f68319 32 void SYS_ResetModule_S(uint32_t u32ModuleIndex);
AnnaBridge 187:0387e8f68319 33
AnnaBridge 187:0387e8f68319 34 /* Secure CLK_SetModuleClock
AnnaBridge 187:0387e8f68319 35 *
AnnaBridge 187:0387e8f68319 36 * Guard access to secure module from non-secure domain before CLK_SetModuleClock.
AnnaBridge 187:0387e8f68319 37 * Its synopsis is the same as CLK_SetModuleClock.
AnnaBridge 187:0387e8f68319 38 */
AnnaBridge 187:0387e8f68319 39 __NONSECURE_ENTRY
AnnaBridge 187:0387e8f68319 40 void CLK_SetModuleClock_S(uint32_t u32ModuleIndex, uint32_t u32ClkSrc, uint32_t u32ClkDiv);
AnnaBridge 187:0387e8f68319 41
AnnaBridge 187:0387e8f68319 42 /* Secure CLK_EnableModuleClock
AnnaBridge 187:0387e8f68319 43 *
AnnaBridge 187:0387e8f68319 44 * Guard access to secure module from non-secure domain before CLK_EnableModuleClock.
AnnaBridge 187:0387e8f68319 45 * Its synopsis is the same as CLK_EnableModuleClock.
AnnaBridge 187:0387e8f68319 46 */
AnnaBridge 187:0387e8f68319 47 __NONSECURE_ENTRY
AnnaBridge 187:0387e8f68319 48 void CLK_EnableModuleClock_S(uint32_t u32ModuleIndex);
AnnaBridge 187:0387e8f68319 49
AnnaBridge 187:0387e8f68319 50 /* Secure CLK_DisableModuleClock
AnnaBridge 187:0387e8f68319 51 *
AnnaBridge 187:0387e8f68319 52 * Guard access to secure module from non-secure domain before CLK_DisableModuleClock.
AnnaBridge 187:0387e8f68319 53 * Its synopsis is the same as CLK_DisableModuleClock.
AnnaBridge 187:0387e8f68319 54 */
AnnaBridge 187:0387e8f68319 55 __NONSECURE_ENTRY
AnnaBridge 187:0387e8f68319 56 void CLK_DisableModuleClock_S(uint32_t u32ModuleIndex);
AnnaBridge 187:0387e8f68319 57
AnnaBridge 187:0387e8f68319 58 /* Secure SYS_LockReg
AnnaBridge 187:0387e8f68319 59 *
AnnaBridge 187:0387e8f68319 60 * Guard access to secure module from non-secure domain before SYS_LockReg.
AnnaBridge 187:0387e8f68319 61 * Its synopsis is the same as SYS_LockReg.
AnnaBridge 187:0387e8f68319 62 */
AnnaBridge 187:0387e8f68319 63 __NONSECURE_ENTRY
AnnaBridge 187:0387e8f68319 64 void SYS_LockReg_S(void);
AnnaBridge 187:0387e8f68319 65
AnnaBridge 187:0387e8f68319 66 /* Secure SYS_UnlockReg
AnnaBridge 187:0387e8f68319 67 *
AnnaBridge 187:0387e8f68319 68 * Guard access to secure module from non-secure domain before SYS_UnlockReg.
AnnaBridge 187:0387e8f68319 69 * Its synopsis is the same as SYS_UnlockReg.
AnnaBridge 187:0387e8f68319 70 */
AnnaBridge 187:0387e8f68319 71 __NONSECURE_ENTRY
AnnaBridge 187:0387e8f68319 72 void SYS_UnlockReg_S(void);
AnnaBridge 187:0387e8f68319 73
AnnaBridge 188:bcfe06ba3d64 74 /* Secure CLK_Idle */
AnnaBridge 188:bcfe06ba3d64 75 __NONSECURE_ENTRY
AnnaBridge 188:bcfe06ba3d64 76 void CLK_Idle_S(void);
AnnaBridge 188:bcfe06ba3d64 77
AnnaBridge 188:bcfe06ba3d64 78 /* Secure CLK_PowerDown */
AnnaBridge 188:bcfe06ba3d64 79 __NONSECURE_ENTRY
AnnaBridge 188:bcfe06ba3d64 80 void CLK_PowerDown_S(void);
AnnaBridge 188:bcfe06ba3d64 81
AnnaBridge 187:0387e8f68319 82 #ifdef __cplusplus
AnnaBridge 187:0387e8f68319 83 }
AnnaBridge 187:0387e8f68319 84 #endif
AnnaBridge 187:0387e8f68319 85
AnnaBridge 187:0387e8f68319 86 #endif