移植FreeRTOS一定要修改startup_stm32f10x_hd.s的启动文件吗?
来源:互联网 发布:上升三法选股公式源码 编辑:程序博客网 时间:2024/05/22 03:49
在Cortex M使用FreeRTOS时,建立工程项目,经常会应为start_xxx.s与port.c、portasm.s中的中断函数名不同困惑:是在start_xxx.s修改为:vPortSVCHandler/xPortPendSVHandler/xPortSysTickHandler?还是在port.c、portasm.s 修改为SVC_Handler/PendSV_Handler/SysTick_Handler?不管怎么样,都要修改文件,造成移植不便。
为了解决这个不便,可以在FreeRTOSConfig.h文件中增加下列几行:
/* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS
standard names. */
#define vPortSVCHandler SVC_Handler#define xPortPendSVHandler PendSV_Handler#define xPortSysTickHandler SysTick_Handler
即修改配置文件,可避免修改芯片厂商提供的库文件和FreeRTOS移植接口文件。
阅读全文
0 0
- 移植FreeRTOS一定要修改startup_stm32f10x_hd.s的启动文件吗?
- stm32的启动文件--startup_stm32f10x_hd.s
- STM32F107启动文件分析(startup_stm32f10x_hd.s)
- STM32启动文件——startup_stm32f10x_hd.s
- STM32启动文件——startup_stm32f10x_hd.s
- STM32启动文件——startup_stm32f10x_hd.s
- ST意法半导体官方库启动文件 startup_stm32f10x_hd.s的分析
- MDK + STM32固件库 启动文件startup_stm32f10x_hd.s功用及注释
- IAR + STM32固件库 启动文件startup_stm32f10x_hd.s功用及注释
- STM32启动文件初探之startup_stm32f10x_hd.s(Reset_Handler函数)
- MDK + STM32固件库 启动文件startup_stm32f10x_hd.s功用及注释
- startup_stm32f10x_hd.s的错误
- startup_stm32f10x_hd.s启动代码分析
- stm32笔记:启动代码startup_stm32f10x_hd.s注解
- stm32 启动代码startup_stm32f10x_hd.s注解
- startup_stm32f10x_hd.s 讲解
- STM32移植FreeRTOS的Tips
- FreeRTOS在STM32F405RGT6的移植
- 'React/RCTBundleURLProvider.h’ file not found
- YUV转RGB(NV21-ARGB)的Neon优化代码
- iOS--UIWebView设置backgroundColor无效问题
- Python陷阱
- 南阳OJ 1204 魔法少女
- 移植FreeRTOS一定要修改startup_stm32f10x_hd.s的启动文件吗?
- Java中类加载机制和反射技术
- strtok小记
- java HttpGet HttpPost区别
- HDU3038 How Many Answers Are Wrong (加权并查集)
- Android的按钮Button单击事件及监听器的实现方式
- jQuery操作checkbox选择
- JSP中的编码设置
- Android Studio开发中常见问题及解决(三)