Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wwsmg1
rt-thread
提交
cc32e7aa
R
rt-thread
项目概览
wwsmg1
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cc32e7aa
编写于
5月 14, 2021
作者:
W
Wayne Lin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Follow coding-style and formatting.
上级
4ae3a3a7
变更
39
展开全部
隐藏空白更改
内联
并排
Showing
39 changed file
with
9216 addition
and
9196 deletion
+9216
-9196
bsp/nuvoton/libraries/m2354/CMSIS/Include/arm_math.h
bsp/nuvoton/libraries/m2354/CMSIS/Include/arm_math.h
+5195
-5195
bsp/nuvoton/libraries/m2354/CMSIS/Include/cmsis_compiler.h
bsp/nuvoton/libraries/m2354/CMSIS/Include/cmsis_compiler.h
+221
-206
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_armv8mbl.h
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_armv8mbl.h
+483
-483
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_armv8mml.h
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_armv8mml.h
+723
-723
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_cm0.h
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_cm0.h
+195
-195
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_cm0plus.h
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_cm0plus.h
+214
-214
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_cm3.h
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_cm3.h
+383
-383
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_cm33.h
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_cm33.h
+719
-719
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_cm4.h
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_cm4.h
+457
-457
bsp/nuvoton/libraries/m2354/CMSIS/Include/mpu_armv7.h
bsp/nuvoton/libraries/m2354/CMSIS/Include/mpu_armv7.h
+34
-33
bsp/nuvoton/libraries/m2354/CMSIS/Include/tz_context.h
bsp/nuvoton/libraries/m2354/CMSIS/Include/tz_context.h
+18
-18
bsp/nuvoton/libraries/m2354/USBHostLib/inc/config.h
bsp/nuvoton/libraries/m2354/USBHostLib/inc/config.h
+15
-15
bsp/nuvoton/libraries/m2354/USBHostLib/inc/usbh_lib.h
bsp/nuvoton/libraries/m2354/USBHostLib/inc/usbh_lib.h
+5
-5
bsp/nuvoton/libraries/m2354/USBHostLib/src/usb_core.c
bsp/nuvoton/libraries/m2354/USBHostLib/src/usb_core.c
+8
-8
bsp/nuvoton/libraries/m480/CMSIS/Include/arm_common_tables.h
bsp/nuvoton/libraries/m480/CMSIS/Include/arm_common_tables.h
+4
-4
bsp/nuvoton/libraries/m480/CMSIS/Include/arm_const_structs.h
bsp/nuvoton/libraries/m480/CMSIS/Include/arm_const_structs.h
+31
-31
bsp/nuvoton/libraries/m480/CMSIS/Include/cmsis_armcc_V6.h
bsp/nuvoton/libraries/m480/CMSIS/Include/cmsis_armcc_V6.h
+368
-364
bsp/nuvoton/libraries/m480/Device/Nuvoton/M480/Include/sys_reg.h
...oton/libraries/m480/Device/Nuvoton/M480/Include/sys_reg.h
+3
-3
bsp/nuvoton/libraries/m480/StdDriver/inc/nu_clk.h
bsp/nuvoton/libraries/m480/StdDriver/inc/nu_clk.h
+5
-5
bsp/nuvoton/libraries/m480/StdDriver/inc/nu_trng.h
bsp/nuvoton/libraries/m480/StdDriver/inc/nu_trng.h
+2
-2
bsp/nuvoton/libraries/m480/StdDriver/src/nu_crypto.c
bsp/nuvoton/libraries/m480/StdDriver/src/nu_crypto.c
+23
-23
bsp/nuvoton/libraries/m480/USBHostLib/inc/config.h
bsp/nuvoton/libraries/m480/USBHostLib/inc/config.h
+18
-18
bsp/nuvoton/libraries/m480/USBHostLib/inc/usbh_lib.h
bsp/nuvoton/libraries/m480/USBHostLib/inc/usbh_lib.h
+2
-2
bsp/nuvoton/libraries/m480/USBHostLib/src/ehci.c
bsp/nuvoton/libraries/m480/USBHostLib/src/ehci.c
+25
-25
bsp/nuvoton/libraries/m480/USBHostLib/src/usb_core.c
bsp/nuvoton/libraries/m480/USBHostLib/src/usb_core.c
+5
-5
bsp/nuvoton/libraries/m480/rtt_port/drv_epwm_capture.c
bsp/nuvoton/libraries/m480/rtt_port/drv_epwm_capture.c
+1
-1
bsp/nuvoton/libraries/n9h30/Driver/Source/nu_cap.c
bsp/nuvoton/libraries/n9h30/Driver/Source/nu_cap.c
+1
-1
bsp/nuvoton/libraries/n9h30/UsbHostLib/inc/usbh_lib.h
bsp/nuvoton/libraries/n9h30/UsbHostLib/inc/usbh_lib.h
+1
-1
bsp/nuvoton/libraries/nuc980/Driver/Include/nu_pwm.h
bsp/nuvoton/libraries/nuc980/Driver/Include/nu_pwm.h
+1
-1
bsp/nuvoton/libraries/nuc980/Driver/Include/nu_wwdt.h
bsp/nuvoton/libraries/nuc980/Driver/Include/nu_wwdt.h
+18
-18
bsp/nuvoton/libraries/nuc980/Driver/Source/nu_crypto.c
bsp/nuvoton/libraries/nuc980/Driver/Source/nu_crypto.c
+11
-11
bsp/nuvoton/libraries/nuc980/UsbHostLib/inc/usbh_lib.h
bsp/nuvoton/libraries/nuc980/UsbHostLib/inc/usbh_lib.h
+1
-1
bsp/nuvoton/numaker-m2354/board/NuClockConfig/nutool_clkcfg.h
...nuvoton/numaker-m2354/board/NuClockConfig/nutool_clkcfg.h
+1
-1
bsp/nuvoton/numaker-m2354/board/NuClockConfig/nutool_modclkcfg.c
...oton/numaker-m2354/board/NuClockConfig/nutool_modclkcfg.c
+4
-4
bsp/nuvoton/numaker-m2354/board/NuClockConfig/nutool_modclkcfg.h
...oton/numaker-m2354/board/NuClockConfig/nutool_modclkcfg.h
+1
-1
bsp/nuvoton/numaker-m2354/board/NuPinConfig/nutool_pincfg.c
bsp/nuvoton/numaker-m2354/board/NuPinConfig/nutool_pincfg.c
+17
-17
bsp/nuvoton/numaker-m2354/board/NuPinConfig/nutool_pincfg.h
bsp/nuvoton/numaker-m2354/board/NuPinConfig/nutool_pincfg.h
+1
-1
bsp/nuvoton/numaker-pfm-m487/board/NuPinConfig/nutool_pincfg.c
...uvoton/numaker-pfm-m487/board/NuPinConfig/nutool_pincfg.c
+1
-1
bsp/nuvoton/numaker-pfm-m487/board/NuPinConfig/nutool_pincfg.h
...uvoton/numaker-pfm-m487/board/NuPinConfig/nutool_pincfg.h
+1
-1
未找到文件。
bsp/nuvoton/libraries/m2354/CMSIS/Include/arm_math.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m2354/CMSIS/Include/cmsis_compiler.h
浏览文件 @
cc32e7aa
...
...
@@ -31,21 +31,21 @@
* ARM Compiler 4/5
*/
#if defined ( __CC_ARM )
#include "cmsis_armcc.h"
#include "cmsis_armcc.h"
/*
* ARM Compiler 6 (armclang)
*/
#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
#include "cmsis_armclang.h"
#include "cmsis_armclang.h"
/*
* GNU Compiler
*/
#elif defined ( __GNUC__ )
#include "cmsis_gcc.h"
#include "cmsis_gcc.h"
/*
...
...
@@ -54,298 +54,313 @@
#elif defined ( __ICCARM__ )
#ifndef __ASM
#ifndef __ASM
#define __ASM __asm
#endif
#ifndef __INLINE
#endif
#ifndef __INLINE
#define __INLINE inline
#endif
#ifndef __STATIC_INLINE
#endif
#ifndef __STATIC_INLINE
#define __STATIC_INLINE static inline
#endif
#endif
#include <cmsis_iar.h>
#include <cmsis_iar.h>
/* CMSIS compiler control architecture macros */
#if (__CORE__ == __ARM6M__) || (__CORE__ == __ARM6SM__)
/* CMSIS compiler control architecture macros */
#if (__CORE__ == __ARM6M__) || (__CORE__ == __ARM6SM__)
#ifndef __ARM_ARCH_6M__
#define __ARM_ARCH_6M__ 1
#define __ARM_ARCH_6M__ 1
#endif
#elif (__CORE__ == __ARM7M__)
#elif (__CORE__ == __ARM7M__)
#ifndef __ARM_ARCH_7M__
#define __ARM_ARCH_7M__ 1
#define __ARM_ARCH_7M__ 1
#endif
#elif (__CORE__ == __ARM7EM__)
#elif (__CORE__ == __ARM7EM__)
#ifndef __ARM_ARCH_7EM__
#define __ARM_ARCH_7EM__ 1
#define __ARM_ARCH_7EM__ 1
#endif
#endif
#endif
#ifndef __NO_RETURN
#ifndef __NO_RETURN
#define __NO_RETURN __noreturn
#endif
#ifndef __USED
#endif
#ifndef __USED
#define __USED __root
#endif
#ifndef __WEAK
#endif
#ifndef __WEAK
#define __WEAK __weak
#endif
#ifndef __PACKED
#endif
#ifndef __PACKED
#define __PACKED __packed
#endif
#ifndef __PACKED_STRUCT
#endif
#ifndef __PACKED_STRUCT
#define __PACKED_STRUCT __packed struct
#endif
#ifndef __PACKED_UNION
#endif
#ifndef __PACKED_UNION
#define __PACKED_UNION __packed union
#endif
#ifndef __UNALIGNED_UINT32
/* deprecated */
__packed
struct
T_UINT32
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v)
#endif
#ifndef __UNALIGNED_UINT16_WRITE
__PACKED_STRUCT
T_UINT16_WRITE
{
uint16_t
v
;
};
#define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val))
#endif
#ifndef __UNALIGNED_UINT16_READ
__PACKED_STRUCT
T_UINT16_READ
{
uint16_t
v
;
};
#define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v)
#endif
#ifndef __UNALIGNED_UINT32_WRITE
__PACKED_STRUCT
T_UINT32_WRITE
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val))
#endif
#ifndef __UNALIGNED_UINT32_READ
__PACKED_STRUCT
T_UINT32_READ
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v)
#endif
#ifndef __ALIGNED
#endif
#ifndef __UNALIGNED_UINT32
/* deprecated */
__packed
struct
T_UINT32
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v)
#endif
#ifndef __UNALIGNED_UINT16_WRITE
__PACKED_STRUCT
T_UINT16_WRITE
{
uint16_t
v
;
};
#define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val))
#endif
#ifndef __UNALIGNED_UINT16_READ
__PACKED_STRUCT
T_UINT16_READ
{
uint16_t
v
;
};
#define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v)
#endif
#ifndef __UNALIGNED_UINT32_WRITE
__PACKED_STRUCT
T_UINT32_WRITE
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val))
#endif
#ifndef __UNALIGNED_UINT32_READ
__PACKED_STRUCT
T_UINT32_READ
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v)
#endif
#ifndef __ALIGNED
//#warning No compiler specific solution for __ALIGNED. __ALIGNED is ignored.
#define __ALIGNED(x)
#endif
#ifndef __RESTRICT
#endif
#ifndef __RESTRICT
//#warning No compiler specific solution for __RESTRICT. __RESTRICT is ignored.
#define __RESTRICT
#endif
// Workaround for missing __CLZ intrinsic in
// various versions of the IAR compilers.
// __IAR_FEATURE_CLZ__ should be defined by
// the compiler that supports __CLZ internally.
#if (defined (__ARM_ARCH_6M__)) && (__ARM_ARCH_6M__ == 1) && (!defined (__IAR_FEATURE_CLZ__))
__STATIC_INLINE
uint32_t
__CLZ
(
uint32_t
data
)
#endif
// Workaround for missing __CLZ intrinsic in
// various versions of the IAR compilers.
// __IAR_FEATURE_CLZ__ should be defined by
// the compiler that supports __CLZ internally.
#if (defined (__ARM_ARCH_6M__)) && (__ARM_ARCH_6M__ == 1) && (!defined (__IAR_FEATURE_CLZ__))
__STATIC_INLINE
uint32_t
__CLZ
(
uint32_t
data
)
{
if
(
data
==
0u
)
{
return
32u
;
}
uint32_t
count
=
0
;
uint32_t
mask
=
0x80000000
;
while
((
data
&
mask
)
==
0
)
{
if
(
data
==
0u
)
{
return
32u
;
}
uint32_t
count
=
0
;
uint32_t
mask
=
0x80000000
;
while
((
data
&
mask
)
==
0
)
{
count
+=
1u
;
mask
=
mask
>>
1u
;
}
return
(
count
);
}
#endif
return
(
count
);
}
#endif
/*
* TI ARM Compiler
*/
#elif defined ( __TI_ARM__ )
#include <cmsis_ccs.h>
#include <cmsis_ccs.h>
#ifndef __ASM
#ifndef __ASM
#define __ASM __asm
#endif
#ifndef __INLINE
#endif
#ifndef __INLINE
#define __INLINE inline
#endif
#ifndef __STATIC_INLINE
#endif
#ifndef __STATIC_INLINE
#define __STATIC_INLINE static inline
#endif
#ifndef __NO_RETURN
#endif
#ifndef __NO_RETURN
#define __NO_RETURN __attribute__((noreturn))
#endif
#ifndef __USED
#endif
#ifndef __USED
#define __USED __attribute__((used))
#endif
#ifndef __WEAK
#endif
#ifndef __WEAK
#define __WEAK __attribute__((weak))
#endif
#ifndef __PACKED
#endif
#ifndef __PACKED
#define __PACKED __attribute__((packed))
#endif
#ifndef __PACKED_STRUCT
#endif
#ifndef __PACKED_STRUCT
#define __PACKED_STRUCT struct __attribute__((packed))
#endif
#ifndef __PACKED_UNION
#endif
#ifndef __PACKED_UNION
#define __PACKED_UNION union __attribute__((packed))
#endif
#ifndef __UNALIGNED_UINT32
/* deprecated */
struct
__attribute__
((
packed
))
T_UINT32
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v)
#endif
#ifndef __UNALIGNED_UINT16_WRITE
__PACKED_STRUCT
T_UINT16_WRITE
{
uint16_t
v
;
};
#define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void*)(addr))->v) = (val))
#endif
#ifndef __UNALIGNED_UINT16_READ
__PACKED_STRUCT
T_UINT16_READ
{
uint16_t
v
;
};
#define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v)
#endif
#ifndef __UNALIGNED_UINT32_WRITE
__PACKED_STRUCT
T_UINT32_WRITE
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val))
#endif
#ifndef __UNALIGNED_UINT32_READ
__PACKED_STRUCT
T_UINT32_READ
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v)
#endif
#ifndef __ALIGNED
#endif
#ifndef __UNALIGNED_UINT32
/* deprecated */
struct
__attribute__
((
packed
))
T_UINT32
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v)
#endif
#ifndef __UNALIGNED_UINT16_WRITE
__PACKED_STRUCT
T_UINT16_WRITE
{
uint16_t
v
;
};
#define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void*)(addr))->v) = (val))
#endif
#ifndef __UNALIGNED_UINT16_READ
__PACKED_STRUCT
T_UINT16_READ
{
uint16_t
v
;
};
#define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v)
#endif
#ifndef __UNALIGNED_UINT32_WRITE
__PACKED_STRUCT
T_UINT32_WRITE
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val))
#endif
#ifndef __UNALIGNED_UINT32_READ
__PACKED_STRUCT
T_UINT32_READ
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v)
#endif
#ifndef __ALIGNED
#define __ALIGNED(x) __attribute__((aligned(x)))
#endif
#ifndef __RESTRICT
#endif
#ifndef __RESTRICT
#warning No compiler specific solution for __RESTRICT. __RESTRICT is ignored.
#define __RESTRICT
#endif
#endif
/*
* TASKING Compiler
*/
#elif defined ( __TASKING__ )
/*
* The CMSIS functions have been implemented as intrinsics in the compiler.
* Please use "carm -?i" to get an up to date list of all intrinsics,
* Including the CMSIS ones.
*/
/*
* The CMSIS functions have been implemented as intrinsics in the compiler.
* Please use "carm -?i" to get an up to date list of all intrinsics,
* Including the CMSIS ones.
*/
#ifndef __ASM
#ifndef __ASM
#define __ASM __asm
#endif
#ifndef __INLINE
#endif
#ifndef __INLINE
#define __INLINE inline
#endif
#ifndef __STATIC_INLINE
#endif
#ifndef __STATIC_INLINE
#define __STATIC_INLINE static inline
#endif
#ifndef __NO_RETURN
#endif
#ifndef __NO_RETURN
#define __NO_RETURN __attribute__((noreturn))
#endif
#ifndef __USED
#endif
#ifndef __USED
#define __USED __attribute__((used))
#endif
#ifndef __WEAK
#endif
#ifndef __WEAK
#define __WEAK __attribute__((weak))
#endif
#ifndef __PACKED
#endif
#ifndef __PACKED
#define __PACKED __packed__
#endif
#ifndef __PACKED_STRUCT
#endif
#ifndef __PACKED_STRUCT
#define __PACKED_STRUCT struct __packed__
#endif
#ifndef __PACKED_UNION
#endif
#ifndef __PACKED_UNION
#define __PACKED_UNION union __packed__
#endif
#ifndef __UNALIGNED_UINT32
/* deprecated */
struct
__packed__
T_UINT32
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v)
#endif
#ifndef __UNALIGNED_UINT16_WRITE
__PACKED_STRUCT
T_UINT16_WRITE
{
uint16_t
v
;
};
#define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val))
#endif
#ifndef __UNALIGNED_UINT16_READ
__PACKED_STRUCT
T_UINT16_READ
{
uint16_t
v
;
};
#define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v)
#endif
#ifndef __UNALIGNED_UINT32_WRITE
__PACKED_STRUCT
T_UINT32_WRITE
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val))
#endif
#ifndef __UNALIGNED_UINT32_READ
__PACKED_STRUCT
T_UINT32_READ
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v)
#endif
#ifndef __ALIGNED
#endif
#ifndef __UNALIGNED_UINT32
/* deprecated */
struct
__packed__
T_UINT32
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v)
#endif
#ifndef __UNALIGNED_UINT16_WRITE
__PACKED_STRUCT
T_UINT16_WRITE
{
uint16_t
v
;
};
#define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val))
#endif
#ifndef __UNALIGNED_UINT16_READ
__PACKED_STRUCT
T_UINT16_READ
{
uint16_t
v
;
};
#define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v)
#endif
#ifndef __UNALIGNED_UINT32_WRITE
__PACKED_STRUCT
T_UINT32_WRITE
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val))
#endif
#ifndef __UNALIGNED_UINT32_READ
__PACKED_STRUCT
T_UINT32_READ
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v)
#endif
#ifndef __ALIGNED
#define __ALIGNED(x) __align(x)
#endif
#ifndef __RESTRICT
#endif
#ifndef __RESTRICT
#warning No compiler specific solution for __RESTRICT. __RESTRICT is ignored.
#define __RESTRICT
#endif
#endif
/*
* COSMIC Compiler
*/
#elif defined ( __CSMC__ )
#include <cmsis_csm.h>
#include <cmsis_csm.h>
#ifndef __ASM
#ifndef __ASM
#define __ASM _asm
#endif
#ifndef __INLINE
#endif
#ifndef __INLINE
#define __INLINE inline
#endif
#ifndef __STATIC_INLINE
#endif
#ifndef __STATIC_INLINE
#define __STATIC_INLINE static inline
#endif
#ifndef __NO_RETURN
#endif
#ifndef __NO_RETURN
// NO RETURN is automatically detected hence no warning here
#define __NO_RETURN
#endif
#ifndef __USED
#endif
#ifndef __USED
#warning No compiler specific solution for __USED. __USED is ignored.
#define __USED
#endif
#ifndef __WEAK
#endif
#ifndef __WEAK
#define __WEAK __weak
#endif
#ifndef __PACKED
#endif
#ifndef __PACKED
#define __PACKED @packed
#endif
#ifndef __PACKED_STRUCT
#endif
#ifndef __PACKED_STRUCT
#define __PACKED_STRUCT @packed struct
#endif
#ifndef __PACKED_UNION
#endif
#ifndef __PACKED_UNION
#define __PACKED_UNION @packed union
#endif
#ifndef __UNALIGNED_UINT32
/* deprecated */
@
packed
struct
T_UINT32
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v)
#endif
#ifndef __UNALIGNED_UINT16_WRITE
__PACKED_STRUCT
T_UINT16_WRITE
{
uint16_t
v
;
};
#define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val))
#endif
#ifndef __UNALIGNED_UINT16_READ
__PACKED_STRUCT
T_UINT16_READ
{
uint16_t
v
;
};
#define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v)
#endif
#ifndef __UNALIGNED_UINT32_WRITE
__PACKED_STRUCT
T_UINT32_WRITE
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val))
#endif
#ifndef __UNALIGNED_UINT32_READ
__PACKED_STRUCT
T_UINT32_READ
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v)
#endif
#ifndef __ALIGNED
#endif
#ifndef __UNALIGNED_UINT32
/* deprecated */
@
packed
struct
T_UINT32
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v)
#endif
#ifndef __UNALIGNED_UINT16_WRITE
__PACKED_STRUCT
T_UINT16_WRITE
{
uint16_t
v
;
};
#define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val))
#endif
#ifndef __UNALIGNED_UINT16_READ
__PACKED_STRUCT
T_UINT16_READ
{
uint16_t
v
;
};
#define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr))->v)
#endif
#ifndef __UNALIGNED_UINT32_WRITE
__PACKED_STRUCT
T_UINT32_WRITE
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val))
#endif
#ifndef __UNALIGNED_UINT32_READ
__PACKED_STRUCT
T_UINT32_READ
{
uint32_t
v
;
};
#define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr))->v)
#endif
#ifndef __ALIGNED
#warning No compiler specific solution for __ALIGNED. __ALIGNED is ignored.
#define __ALIGNED(x)
#endif
#ifndef __RESTRICT
#endif
#ifndef __RESTRICT
#warning No compiler specific solution for __RESTRICT. __RESTRICT is ignored.
#define __RESTRICT
#endif
#endif
#else
#error Unknown compiler.
#error Unknown compiler.
#endif
...
...
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_armv8mbl.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_armv8mml.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_cm0.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_cm0plus.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_cm3.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_cm33.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m2354/CMSIS/Include/core_cm4.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m2354/CMSIS/Include/mpu_armv7.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m2354/CMSIS/Include/tz_context.h
浏览文件 @
cc32e7aa
...
...
@@ -26,44 +26,44 @@
* Version 1.0
* Initial Release
*---------------------------------------------------------------------------*/
#ifndef TZ_CONTEXT_H
#define TZ_CONTEXT_H
#include <stdint.h>
#ifndef TZ_MODULEID_T
#define TZ_MODULEID_T
/// \details Data type that identifies secure software modules called by a process.
typedef
uint32_t
TZ_ModuleId_t
;
#define TZ_MODULEID_T
/// \details Data type that identifies secure software modules called by a process.
typedef
uint32_t
TZ_ModuleId_t
;
#endif
/// \details TZ Memory ID identifies an allocated memory slot.
typedef
uint32_t
TZ_MemoryId_t
;
/// Initialize secure context memory system
/// \return execution status (1: success, 0: error)
uint32_t
TZ_InitContextSystem_S
(
void
);
uint32_t
TZ_InitContextSystem_S
(
void
);
/// Allocate context memory for calling secure software modules in TrustZone
/// \param[in] module identifies software modules called from non-secure mode
/// \return value != 0 id TrustZone memory slot identifier
/// \return value 0 no memory available or internal error
TZ_MemoryId_t
TZ_AllocModuleContext_S
(
TZ_ModuleId_t
module
);
TZ_MemoryId_t
TZ_AllocModuleContext_S
(
TZ_ModuleId_t
module
);
/// Free context memory that was previously allocated with \ref TZ_AllocModuleContext_S
/// \param[in] id TrustZone memory slot identifier
/// \return execution status (1: success, 0: error)
uint32_t
TZ_FreeModuleContext_S
(
TZ_MemoryId_t
id
);
uint32_t
TZ_FreeModuleContext_S
(
TZ_MemoryId_t
id
);
/// Load secure context (called on RTOS thread context switch)
/// \param[in] id TrustZone memory slot identifier
/// \return execution status (1: success, 0: error)
uint32_t
TZ_LoadContext_S
(
TZ_MemoryId_t
id
);
uint32_t
TZ_LoadContext_S
(
TZ_MemoryId_t
id
);
/// Store secure context (called on RTOS thread context switch)
/// \param[in] id TrustZone memory slot identifier
/// \return execution status (1: success, 0: error)
uint32_t
TZ_StoreContext_S
(
TZ_MemoryId_t
id
);
uint32_t
TZ_StoreContext_S
(
TZ_MemoryId_t
id
);
#endif // TZ_CONTEXT_H
bsp/nuvoton/libraries/m2354/USBHostLib/inc/config.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m2354/USBHostLib/inc/usbh_lib.h
浏览文件 @
cc32e7aa
...
...
@@ -51,7 +51,7 @@ extern "C"
#define USBH_ERR_DISCONNECTED -259
/*!< USB device was disconnected */
#define USBH_ERR_TRANSACTION -271
/*!< USB transaction timeout, CRC, Bad PID, etc. */
#define USBH_ERR_BABBLE_DETECTED -272
/*!< A
babble
is detected during the transaction */
#define USBH_ERR_BABBLE_DETECTED -272
/*!< A
'babble'
is detected during the transaction */
#define USBH_ERR_DATA_BUFF -274
/*!< Data buffer overrun or underrun */
#define USBH_ERR_CC_NO_ERR -280
/*!< OHCI CC code - no error */
...
...
@@ -145,7 +145,7 @@ extern int usbh_polling_root_hubs(void);
extern
void
usbh_install_conn_callback
(
CONN_FUNC
*
conn_func
,
CONN_FUNC
*
disconn_func
);
extern
void
usbh_suspend
(
void
);
extern
void
usbh_resume
(
void
);
extern
struct
udev_t
*
usbh_find_device
(
char
*
hub_id
,
int
port
);
extern
struct
udev_t
*
usbh_find_device
(
char
*
hub_id
,
int
port
);
/**
* @brief A function return current tick count.
* @return Current tick.
...
...
@@ -161,7 +161,7 @@ extern uint32_t usbh_tick_from_millisecond(uint32_t msec); /* This function mu
/* */
/*------------------------------------------------------------------*/
extern
void
usbh_cdc_init
(
void
);
extern
struct
cdc_dev_t
*
usbh_cdc_get_device_list
(
void
);
extern
struct
cdc_dev_t
*
usbh_cdc_get_device_list
(
void
);
/// @cond HIDDEN_SYMBOLS
extern
int32_t
usbh_cdc_get_line_coding
(
struct
cdc_dev_t
*
cdev
,
struct
line_coding_t
*
line_code
);
extern
int32_t
usbh_cdc_set_line_coding
(
struct
cdc_dev_t
*
cdev
,
struct
line_coding_t
*
line_code
);
...
...
@@ -178,7 +178,7 @@ extern int32_t usbh_cdc_send_data(struct cdc_dev_t *cdev, uint8_t *buff, int bu
/* */
/*------------------------------------------------------------------*/
extern
void
usbh_hid_init
(
void
);
extern
struct
usbhid_dev
*
usbh_hid_get_device_list
(
void
);
extern
struct
usbhid_dev
*
usbh_hid_get_device_list
(
void
);
extern
int32_t
usbh_hid_get_report_descriptor
(
struct
usbhid_dev
*
hdev
,
uint8_t
*
desc_buf
,
int
buf_max_len
);
extern
int32_t
usbh_hid_get_report
(
struct
usbhid_dev
*
hdev
,
int
rtp_typ
,
int
rtp_id
,
uint8_t
*
data
,
int
len
);
extern
int32_t
usbh_hid_set_report
(
struct
usbhid_dev
*
hdev
,
int
rtp_typ
,
int
rtp_id
,
uint8_t
*
data
,
int
len
);
...
...
@@ -211,7 +211,7 @@ extern int usbh_umas_reset_disk(int drv_no);
/*------------------------------------------------------------------*/
extern
void
usbh_uac_init
(
void
);
extern
int
usbh_uac_open
(
struct
uac_dev_t
*
audev
);
extern
struct
uac_dev_t
*
usbh_uac_get_device_list
(
void
);
extern
struct
uac_dev_t
*
usbh_uac_get_device_list
(
void
);
extern
int
usbh_uac_get_channel_number
(
struct
uac_dev_t
*
audev
,
uint8_t
target
);
extern
int
usbh_uac_get_bit_resolution
(
struct
uac_dev_t
*
audev
,
uint8_t
target
,
uint8_t
*
byte_cnt
);
extern
int
usbh_uac_get_sampling_rate
(
struct
uac_dev_t
*
audev
,
uint8_t
target
,
uint32_t
*
srate_list
,
int
max_cnt
,
uint8_t
*
type
);
...
...
bsp/nuvoton/libraries/m2354/USBHostLib/src/usb_core.c
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m480/CMSIS/Include/arm_common_tables.h
浏览文件 @
cc32e7aa
...
...
@@ -2,12 +2,12 @@
* Copyright (C) 2010-2014 ARM Limited. All rights reserved.
*
* $Date: 19. October 2015
* $Revision:
V.1.4.5 a
* $Revision:
V.1.4.5 a
*
* Project:
CMSIS DSP Library
* Title:
arm_common_tables.h
* Project:
CMSIS DSP Library
* Title:
arm_common_tables.h
*
* Description:
This file has extern declaration for common tables like Bitreverse, reciprocal etc which are used across different functions
* Description:
This file has extern declaration for common tables like Bitreverse, reciprocal etc which are used across different functions
*
* Target Processor: Cortex-M4/Cortex-M3
*
...
...
bsp/nuvoton/libraries/m480/CMSIS/Include/arm_const_structs.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m480/CMSIS/Include/cmsis_armcc_V6.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m480/Device/Nuvoton/M480/Include/sys_reg.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m480/StdDriver/inc/nu_clk.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m480/StdDriver/inc/nu_trng.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m480/StdDriver/src/nu_crypto.c
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m480/USBHostLib/inc/config.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m480/USBHostLib/inc/usbh_lib.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m480/USBHostLib/src/ehci.c
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m480/USBHostLib/src/usb_core.c
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/m480/rtt_port/drv_epwm_capture.c
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/n9h30/Driver/Source/nu_cap.c
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/n9h30/UsbHostLib/inc/usbh_lib.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/nuc980/Driver/Include/nu_pwm.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/nuc980/Driver/Include/nu_wwdt.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/nuc980/Driver/Source/nu_crypto.c
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/libraries/nuc980/UsbHostLib/inc/usbh_lib.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/numaker-m2354/board/NuClockConfig/nutool_clkcfg.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/numaker-m2354/board/NuClockConfig/nutool_modclkcfg.c
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/numaker-m2354/board/NuClockConfig/nutool_modclkcfg.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/numaker-m2354/board/NuPinConfig/nutool_pincfg.c
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/numaker-m2354/board/NuPinConfig/nutool_pincfg.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/numaker-pfm-m487/board/NuPinConfig/nutool_pincfg.c
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
bsp/nuvoton/numaker-pfm-m487/board/NuPinConfig/nutool_pincfg.h
浏览文件 @
cc32e7aa
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录