-
6-3:将FreeRTOS移植到stm32f103c8t6
资源介绍
Keil version: v5.23.0.0
FreeRTOS version: v9.0.0
Hardware Board: Base on STM32F103C8T6
LED0 at PB7
LED1 at PB8
USART1_TX GPIOA.9
USART1_RX GPIOA.10
/******************************************************************************
* Copyright (C), 2017-2018, Doris Tech. Co., Ltd.
* FileName: README.txt
* Author : Doris
* Version : 1.0
* Date : 2018/5/11
* Description:
* Create 4 applications, start_task, key_task, task1_task and task2_task.
* start_task: create other 3 tasks.
* key_task : scan pressed key.
* task1_task: task 1.
* task2_task: task 2.
* KEY1 :PA1, resume task1.
* KEY2 :PA2, suspend task2.
* KEY_UP:PA3, suspend task1.
* KEY :PA4, Int. resume task2.
* History:
*
* 1 tab == 4 spaces!
******************************************************************************/
task1_task will delete task2_task after running 5 times.
Note:
Learn details from STM32F103 FreeRTOS开发手册V1.1.pdf in chapter 6.5.1.
IMPORTANT: THE OFFICIAL DEMO CODE IS DIFFERENT WITH THE MANUAL!!!!