注:本课件参考朱有鹏老师单片机系列课程课件
本章节主要的内容分为如下的几大部分
一、熟悉ucos2目录结构
原始结构: 这里主要包含应用层的app目录,底软相关的BSP目录,ucos相关的uc目录,串口相关的usart目录,其他编译生成的文件。
移植后的结构: 这里主要是删除了编译后生成的文件夹,生成了工程相关的lst、out、project文件,新增了CMSIS文件夹和STM32F10x_stdPeriph_driver.
这里对于新增的这两个文件夹进行一个解释:
CMSIS 这是arm的微控制器软件接口标准,作用是向下负责于内核和各个外设打交道,向上提供实时操作系统用户程序调用的接口,详细可参考:
CMSIS到底是个什么东西
STM32F10x_stdPeriph_driver:使用标准外设驱动
二、工程建立
目前没有开发板,不能进行debug,所以目前的侧重点是在使用source insight 进行代码熟悉,以及ucos的学习