当前位置:网站首页>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 .
边栏推荐
- 深入浅出node模板解析错误escape is not a function
- PTA tiantisai l1-078 teacher Ji's return (15 points) detailed explanation
- npm命令--安装依赖包--用法/详解
- HotSpot VM
- The most detailed and comprehensive update content and all functions of guitar pro 8.0
- Yyds dry inventory automatic lighting system based on CC2530 (ZigBee)
- Yyds dry goods inventory OSI & tcp/ip
- Fedora/REHL 安装 semanage
- [HBZ share] reasons for slow addition and deletion of ArrayList and fast query
- Can CDC pull the Oracle table in full
猜你喜欢
View workflow
CADD课程学习(8)-- 化合物库虚拟筛选(Virtual Screening)
The most detailed and comprehensive update content and all functions of guitar pro 8.0
Jd.com 2: how to prevent oversold in the deduction process of commodity inventory?
Mysql database storage engine
Basic explanation of turtle module - draw curve
Execution order of scripts bound to game objects
R note prophet
Overturn your cognition? The nature of get and post requests
[Chongqing Guangdong education] engineering fluid mechanics reference materials of southwestjiaotonguniversity
随机推荐
[try to hack] John hash cracking tool
Practical development of member management applet 06 introduction to life cycle function and user-defined method
【Try to Hack】john哈希破解工具
R note prophet
Lagrange polynomial
Lambda expression learning
P2102 floor tile laying (DFS & greed)
NPM command -- install dependent packages -- Usage / explanation
SharedPreferences 源码分析
Hashlimit rate control
Deep learning framework installation (tensorflow & pytorch & paddlepaddle)
JVM garbage collector concept
Platformio create libopencm3 + FreeRTOS project
Canal synchronizes MySQL data changes to Kafka (CentOS deployment)
Lombok原理和同时使⽤@Data和@Builder 的坑
我想问一下 按照现在mysql-cdc的设计,全量阶段,如果某一个chunk的binlog回填阶段,
coreldraw2022新版本新功能介绍cdr2022
Yyds dry goods inventory OSI & tcp/ip
Fedora/REHL 安装 semanage
npm命令--安装依赖包--用法/详解