当前位置:网站首页>STM32H743IIT6 study notes 03 - using third-party components FreeRTOS
STM32H743IIT6 study notes 03 - using third-party components FreeRTOS
2022-08-05 12:02:00 【fire red cloud】
STM32H743IIT6学习笔记——使用第三方组件FreeRTOS
CubeMX配置
- The use of external high speed clock
- 配置时钟树
- 使能FreeRTOS

- 配置FreeRTOS内核(使用默认配置)

- USE_PREEMPTION:
- CPU_CLOCK_HZ:
- TICK_RATE_HZ:
- MAX_PRIORITIES:
- MINIMAL_STACK_SIZE:
- MAX_TASK_NAME_LEN:
- USE_16_BIT_TICKS:
- IDLE_SHOULD_YIELD:
- USE_MUTEXES:
- USE_COUNTING_SEMAPHORES:
- QUEUE_REGISTRY_SIZE:
- USE_APPLICATION_TASK_TAG:
- ENABLE_BACKWARD_COMPATIBILITY:
- USE_PORT_OPTIMISED_TASK_SELECTION:
- USE_TICKLESS_IDLE:
- USE_TASK_NOTIFICATIONS:
- 添加任务

- 添加LED闪烁任务
低优先级、动态分配内存,栈大小128*4个字节
- 添加shell处理任务(The next articlelettershell)

- 配置LED引脚以及USART1外设
- 生成代码
- 编译
- 在
freertos.c中添加代码
- LED
/* USER CODE END Header_LEDHandler */
void LEDHandler(void *argument)
{
/* USER CODE BEGIN LEDHandler */
/* Infinite loop */
for(;;)
{
HAL_GPIO_TogglePin(GPIOB,LED0_Pin);
HAL_GPIO_TogglePin(GPIOB,LED1_Pin);
osDelay(500);
}
/* USER CODE END LEDHandler */
}
- shellhandler
/* USER CODE END Header_ShellHandler */
void ShellHandler(void *argument)
{
/* USER CODE BEGIN ShellHandler */
/* Infinite loop */
for(;;)
{
printf("ShellHandler\r\n");
osDelay(1000);
}
/* USER CODE END ShellHandler */
}
- 在
usart.c中添加printf的重定向函数
/* USER CODE BEGIN 1 */
int fputc(int ch,FILE *f)
{
while((USART1->ISR&0x40)==0){
}
USART1->TDR = (uint8_t)ch;
return ch;
}
/* USER CODE END 1 */
使能MicroLib

编译,下载、验证

边栏推荐
- 基于NSQ搭建高可用分布式消息队列
- 二:OpenCV图片叠加逻辑运算
- Cesium.js 地形挖洞
- Official release 2022 Nanjing Zhibo Expo is scheduled to be held in Xinzhuang National Exhibition in October
- Grid Infrastructure Installation Fails with Error
- Keras 分割网络自定义评估函数 - mean iou
- 码率vs.分辨率,哪一个更重要?
- Quick Check of OGC WebGIS Common Service Standards (WMS/WMTS/TMS/WFS)
- Shang Silicon Valley-JUC
- Digital-intelligent supply chain system in the household appliance industry: efficiently integrate the supply chain and enhance the core competitiveness of household appliance enterprises
猜你喜欢

碘乙酰胺在Desthiobiotin-Iodoacetamide试剂中的作用?

码率vs.分辨率,哪一个更重要?

C语言例题-计算常量e的值
Shang Silicon Valley-JVM-Performance Monitoring and Tuning (P302~P381)

Small household appliance industry supply chain collaborative management system: help enterprises break through market competition and strengthen the rapid response capability of the supply chain

该不该将单体架构迁移到微服务?

CC2530之ADC采集

Shang Silicon Valley-JUC

For high performance, large scale model training, this combination "career"

Two: OpenCV image overlay logical operation
随机推荐
Grid Infrastructure Installation Fails with Error
解决 json.dump 报错:TypeError - Object of type xxx is not JSON serializable
2022.08.01_每日一题
623. 在二叉树中增加一行 : 简单二叉树遍历运用题
Three.js 点击模型,高亮发光模型外轮廓
关注微信公众号,自动登陆网站
Digital-intelligent supply chain system in the household appliance industry: efficiently integrate the supply chain and enhance the core competitiveness of household appliance enterprises
C语言例题-计算常量e的值
PMP每日一练 | 考试不迷路-8.5(包含敏捷+多选)
todolist案列——原生js
不是吧?还有人不会定位线上MySQL慢查询问题?
Byte Qiu Zhao confused me on both sides, and asked me under what circumstances would the SYN message be discarded?
2022.08.03_每日一题
796. 子矩阵的和
ansible-playbook配置ssh互信
Wingide 快捷键
【HMS core】【FAQ】Health Kit, Ads kit, Push Kit Typical Questions Collection 5
Shang Silicon Valley-JVM-Memory and Garbage Collection (P1~P203)
【Untitled】
Huawei Analysis & Intermodal Activities to Help You Improve Overall Game Payments