当前位置:网站首页>Embedded development program framework
Embedded development program framework
2022-07-06 04:36:00 【Please trust me】
List of articles
framework design
stay 《 The code of 》 The first 5 In the chapter , Program design is divided into these levels :
- The first 1 layer : software system , It's the whole system 、 Whole procedure
- The first 2 layer : Break down into subsystems or packages . For example, we can split it into : Input subsystem 、 Display subsystem 、 Business system
- The first 3 layer : Decompose into classes . stay C There are no classes in the language , You can use structures to describe subsystems .
- The first 4 layer : Decompose into subroutines : Implement those structures ( There are function pointers in the structure ).
Concept of framework

It means that our code is convenient for upper developers to read , We need to encapsulate the underlying driver , Buffer through the middle layer , So that the upper layer can easily call at the same time , Engineers who write business bare metal can also easily understand our code design . In fact, it is a very simple logic of engineering programming . adopt .c File to achieve a certain function , adopt .h The document states . So the main function main You can pass .h Header file to call .c File implementation function .
summary
There's no code this time , So sorry . Later code will be used in practice , Just pay attention to understanding logic .
边栏推荐
- 满足多元需求:捷码打造3大一站式开发套餐,助力高效开发
- 2/13 review Backpack + monotonic queue variant
- Visio draws Tai Chi
- Is the mode of education together - on campus + off campus reliable
- Lombok原理和同时使⽤@Data和@Builder 的坑
- MySQL learning record 13 database connection pool, pooling technology, DBCP, c3p0
- MySQL reported an error datetime (0) null
- Slow SQL fetching and analysis of MySQL database
- Query the number and size of records in each table in MySQL database
- Basic use of MySQL (it is recommended to read and recite the content)
猜你喜欢

Deep learning framework installation (tensorflow & pytorch & paddlepaddle)
![[Chongqing Guangdong education] engineering fluid mechanics reference materials of southwestjiaotonguniversity](/img/ac/93a64e59592e3d083a771b993d6884.jpg)
[Chongqing Guangdong education] engineering fluid mechanics reference materials of southwestjiaotonguniversity
![[Yu Yue education] reference materials of complex variable function and integral transformation of Northwestern Polytechnic University](/img/22/ead74bc121a64910ef6ef374cd029b.png)
[Yu Yue education] reference materials of complex variable function and integral transformation of Northwestern Polytechnic University

R note prophet

canal同步mysql数据变化到kafka(centos部署)

Yyds dry inventory automatic lighting system based on CC2530 (ZigBee)

Unity screen coordinates ugui coordinates world coordinates conversion between three coordinate systems

Visio draw fan

Execution order of scripts bound to game objects

How to solve the problem of slow downloading from foreign NPM official servers—— Teach you two ways to switch to Taobao NPM image server
随机推荐
web工程导入了mysql驱动jar包却无法加载到驱动的问题
也算是學習中的小總結
Uva1592 Database
SQL注入漏洞(MSSQL注入)
[Chongqing Guangdong education] Suzhou University English film and Television Appreciation reference materials
tengine 内核参数
Lagrange polynomial
C'est un petit résumé de l'étude.
满足多元需求:捷码打造3大一站式开发套餐,助力高效开发
2328. 网格图中递增路径的数目(记忆化搜索)
Execution order of scripts bound to game objects
ETCD数据库源码分析——etcdserver bootstrap初始化存储
[Zhao Yuqiang] deploy kubernetes cluster with binary package
Recommendation system (IX) PNN model (product based neural networks)
HotSpot VM
Guitar Pro 8.0最详细全面的更新内容及全部功能介绍
VNCTF2022 WriteUp
Ue5 small knowledge freezerendering view rendered objects in the cone
View workflow
It is also a small summary in learning