Application of OOP in COTEX-M3 Core Chip Programming
扫码查看
点击上方二维码区域,可以放大扫码查看
原文链接
NETL
NSTL
万方数据
以某自动校时电子钟项目为例,在Cotex-M3内核芯片上采用面向对象编程方法分析项目的业务需求,提取业务逻辑的共性内容,并创建应用程序类.借鉴嵌入式操作系统时间片任务调度的方法,得到一种新的嵌入式项目编程解决方案,在无操作系统的微控制单元(Micro Control Unit,MCU)上实现时间片调度应用程序对象,用以提升程序的条理性,增强代码的可移植性和复用性,便于程序的扩展.
The way how to use OOP(Object-Oriented Programming)method in Cortex-M3 core chip is explained with the pro-ject of developing an automatic adjusting electronic clock as an example.The OOP methods is used in analyzing the business re-quirements of the project,extracting common contents of business logic,and creating application classes.A time slice schedu-ling application object imitating the time slice task scheduling in embedded operating system is implemented on MCU(Micro Control Unit)without operating system,which improves program organization,enhances code portability and reusability,and facilitates program expansion.
OOP(Object Oriented Programming)Cotex-M3 core chiptime sliceembedded operating system