当前位置:网站首页>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 .
边栏推荐
- [HBZ share] reasons for slow addition and deletion of ArrayList and fast query
- After learning classes and objects, I wrote a date class
- Dynamic programming (tree DP)
- Case of Jiecode empowerment: professional training, technical support, and multiple measures to promote graduates to build smart campus completion system
- P3500 [poi2010]tes intelligence test (two points & offline)
- The value of two date types is subtracted and converted to seconds
- NPM command -- install dependent packages -- Usage / explanation
- Knowledge consolidation source code implementation 3: buffer ringbuffer
- 题解:《单词覆盖还原》、《最长连号》、《小玉买文具》、《小玉家的电费》
- 8. Static file
猜你喜欢

Stable Huawei micro certification, stable Huawei cloud database service practice

One question per day (Mathematics)

How to realize automatic playback of H5 video

查询mysql数据库中各表记录数大小

Ue5 small knowledge points to enable the setting of lumen

Digital children < daily question> (Digital DP)

The implementation of the maize negotiable digital warehouse receipt standard will speed up the asset digitization process of the industry

Recommendation | recommendation of 9 psychotherapy books

The most detailed and comprehensive update content and all functions of guitar pro 8.0

SQL注入漏洞(MSSQL注入)
随机推荐
How to realize automatic playback of H5 video
. Net interprocess communication
Basic explanation of turtle module - draw curve
How to estimate the population with samples? (mean, variance, standard deviation)
Yyds dry inventory automatic lighting system based on CC2530 (ZigBee)
Selection of slow motion function
Sorting out the latest Android interview points in 2022 to help you easily win the offer - attached is the summary of Android intermediate and advanced interview questions in 2022
[05-1, 05-02, 05-03] network protocol
Scala function advanced
Several important classes in unity
Script lifecycle
Uva1592 Database
Digital children < daily question> (Digital DP)
Lombok原理和同时使⽤@Data和@Builder 的坑
CADD课程学习(8)-- 化合物库虚拟筛选(Virtual Screening)
Ue5 small knowledge freezerendering view rendered objects in the cone
Mysql database storage engine
Word cover underline
BOM - location, history, pop-up box, timing
Dynamic programming (tree DP)