- Embedded Systems Architecture
- Daniele Lacamera
- 185字
- 2021-06-25 21:55:05
Source code organization
The code base should contain all the source code, third-party libraries, data, scripts, and automations needed to build the final image. It is a good idea to keep self-contained libraries in separate directories, so that they can be easily updated to newer versions by replacing the subdirectory itself. Makefiles and other scripts can be placed in the project's root directory. Application code should be short and synthetic, and access the modules abstracting the macro functionalities. Functional modules should describe a process while hiding the details of the underlying implementation, such as reading data from a sensor after it has been properly sampled and processed. Aiming for small, self-contained, and adequately abstracted modules also makes the components of the architecture easier to test. Keeping the majority of the logic for the application components separated from their hardware-specific implementation improves portability across different platforms, and allows us to change the peripherals and the interfaces used on the target even during the development phase. Abstracting too much, though, impacts costs, in terms of development effort and resources needed, so the right balance should be researched.
- pcDuino開發(fā)實戰(zhàn)
- Puppet實戰(zhàn)
- 高性能Linux服務(wù)器構(gòu)建實戰(zhàn):運維監(jiān)控、性能調(diào)優(yōu)與集群應(yīng)用
- 玩到極致 iPhone 4S完全攻略
- 嵌入式實時操作系統(tǒng)μC/OS原理與實踐
- Windows 7案例教程
- Kali Linux 2018:Windows Penetration Testing
- 新編電腦辦公(Windows 10+ Office 2013版)從入門到精通
- Vim 8文本處理實戰(zhàn)
- 鴻蒙操作系統(tǒng)設(shè)計原理與架構(gòu)
- Web Penetration Testing with Kali Linux(Third Edition)
- OpenHarmony開發(fā)與實踐:基于紅莓RK2206開發(fā)板
- Linux操作系統(tǒng)案例教程(第2版)
- Implementing Domain-Specific Languages with Xtext and Xtend(Second Edition)
- 操作系統(tǒng)之哲學(xué)原理第2版