版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/m0_37697335/article/details/90201575
1、startup_ARMCM3.s
汇编编写的启动文件,由ARM统一提供。
2、system_ARMCM3.c
是 C 语言编写的跟时钟相关的文件。
3、rtdef.h
#define rt_inline static __inline
内联标识符定义,详细说明:http://www.cnblogs.com/tyroneren/p/6264520.html。
#define ALIGN(n) __attribute__((aligned(n)))
__attribute((aligned (n))),此属性指定了指定类型的变量的最小对齐(以字节为单位)。如果结构中有成员的长度大于n,则按照最大成员的长度来对齐。详细说明:https://www.cnblogs.com/ransn/p/5081198.html。或https://blog.csdn.net/fengbingchun/article/details/81321419
#define RT_ALIGN(size, align) (((size) + (align) - 1) & ~((align) - 1))
#define RT_ALIGN_DOWN(size, align) ((size) & ~((align) - 1))
详细解释:https://blog.csdn.net/reille/article/details/6329195
4、