- 博客(5)
- 收藏
- 关注
原创 CMD 文件各个段的含义
初始化的段包括:.text 代码段 ; .cinit 全局与静态变量初始值 .econst 常数 .switch switch表达式 .pinit 全局构造函数表 未初始化的段包括:.ebss 全局与静态变量 .stack堆栈空间 ...
2018-04-02 13:22:50
1293
转载 为什么要用typedef定义结构体别名
定义一个结构体,比如说:struct STU{ int age; struct STU *next;};然后我想定义一个结构体类型的指针,应该是struct STU *p;或者定义一个普通的结构体变量struct STU a;比较麻烦,用typedef后typedef struct STU{ int age; struct STU *next;}linklist;那么现在l...
2018-04-02 12:32:03
8166
5
原创 DSP delay延时函数
.def _DSP28x_usDelay .sect "ramfuncs" .global __DSP28x_usDelay_DSP28x_usDelay: SUB ACC,#1 BF _DSP28x_usDelay,GEQ ;; Loop if ACC >= 0 LRETR .def _DS...
2018-04-02 12:24:59
10939
1
原创 #ifdef __cplusplus extern "C" { #endif //一段代码 #ifdef __cplusplus } #endif 解读
一般的样式是这样的:#ifdef __cplusplusextern "C"{#endif.......#ifdef __cplusplus}#endif首先,__cplusplus是cpp中的自定义宏,那么定义了这个宏的话表示这是一段cpp的代码,也就是说,上面的代码的含义是:如果这是一段cpp的代码,那么加入"extern "C"{" 和 " }"处理其中的代码,其中{ }内部的代码是通过...
2018-04-02 11:45:08
854
转载 DSP的GPIO介绍
TI文档: TSM320X2833X System control and interrupt regerence guide ----- SPRUFBO0~87 共88个I/O端口,其中GPIO0~GPIO31可以配置成8个核心中断。28335的GPIO口可以分为三组,分别为A口(GPIO0~GPIO31),B口(GPIO32~GPIO63)和C口(GPIO64~GPIO87)。1 GPXCTR...
2018-04-02 09:41:50
5953
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人