wuzhl2018 / cx_sch
在嵌入式软件开发当中,常常第一步就是设计整个系统的架构。有基于OS的,也有裸机的。我们先拿裸机说事儿,我想很多人在做单片机的裸机开发(甚至基于OS)时脑海里根本没有设计架构的想法,从来都是while(1)循环到底,能写点状态机已经算是基础扎实的人物了。那么问题来了,while(1)是什么?在嵌入式设计模式里是怎么给while(1)定义的。《C嵌入式编程设计模式》一书中将while(1)称之为“超循环模式”,也就是嵌入式的入门傻瓜模式。在此模式下即使有前台监听也势必会导致系统实时性傻逼,从硬件上分析:while(1)的高CPU占用率也使得功耗大大提高。当然存在即合理,超循环模式在安全性和可靠性上是非常占优势的。结构简单也易于理解,这对于安全性能要求较高的系统上还是非常具有吸引力的
☆13Updated 5 years ago
Alternatives and similar repositories for cx_sch:
Users that are interested in cx_sch are comparing it to the libraries listed below
- 在单片机裸机开发中,通常延时功能函数是以同步阻塞方式实现,的确在很多设备驱动中需要同步阻塞来匹配硬件时序,但这只能存在于硬件驱动层,应用层开发时使用阻塞延时便大大降低了系统实时性和安全性,不可预测就是一块心病。为此我分享出一段由朋友:流星原创的event_delay异步延时…☆21Updated 5 years ago
- 在嵌入式开发中离不开设备通信,而在通信中稳定性最高的莫过于环形缓冲区算法,当读取速度大于写入速度时,在环形缓冲区的支持下不会丢掉任何一个字节(硬件问题除外)。从.H文件中可看到Ringbuff的数据结构,当中有读写地址以及有效未读数据大小,以及读状态等。 向外部提供的AP…☆18Updated 5 years ago
- ARM-GCC下STM32F1工程模板,运行OSAL操作系统☆23Updated 7 years ago
- 小型系统 单片机的 软件事件框架 软件定时 基于事件驱动☆11Updated 7 years ago
- Designed with Micriμm's renowned quality, scalability and reliability, the purpose of μC/ CPU is to provide a clean, organized ANSI C imp…☆57Updated 3 years ago
- Small yet powerful state machine coroutine library☆39Updated 10 months ago
- Synchronous Asynchronous Log Output Framework(同步异步日志输出框架)☆21Updated 5 years ago
- MOE is an event-driven OS for 8/16/32-bit MCUs. MOE means "Minds Of Embedded system", It’s also the name of my lovely baby daughter☆68Updated 5 years ago
- stm32f10x系列基础服务框架,作为stm32的工程模板和硬件驱动。项目集成kernel io fs shell tcpip等基础服务框架☆26Updated 2 years ago
- A little fail-safe filesystem designed for microcontrollers☆27Updated last month
- Small GUI Library of MCUs☆65Updated 10 years ago
- RT-Thread操作系统的FreeRTOS兼容层 | FreeRTOS Application Compatibility Layer (ACL) for RT-Thread☆29Updated 6 months ago
- awtk-aworks-rt1052☆33Updated 3 years ago
- 基于NOR Flash的轻量级文件数据存储方案。主要为i.MX RT系列设计,也可轻松移植到其他MCU平台☆28Updated last year
- RT-Thread peripheral samples☆23Updated 3 months ago
- 在 FreeRTOS 上使用 POSIX 接口,使用POSIX接口作为嵌入式软件隔离层,以STM32为例☆12Updated last year
- 一个用C语言实现功能丰富但简单的有限状态机(FSM)。☆31Updated 10 months ago
- 魔笛F1 RT-Thread学习平台是专门为rt-thread做的一款开发板,由本人进行了3年多的持续例程更新。为了方便大家学习,现在讲所有软、硬件(包含pcb源文件)资料公开。☆34Updated 7 years ago
- c语言面向对象☆12Updated 6 years ago
- TI OSAL on Visual Studio☆24Updated 5 years ago
- GUI component for RT-Thread☆28Updated last year
- 基于Linux的kfifo移植到STM32☆29Updated 6 years ago
- Community Activities in RT-Thread☆38Updated 2 years ago
- A component used to make bootloader quickly☆34Updated 5 months ago
- The ulog flash plugin by EasyFlash. | 基于 EasyFlash 的 ulog 插件☆13Updated last year
- SL_SDK provides an easy-to-use software framework with united HAL and OSAL, also including a runtime environment to speed-up development …☆89Updated 2 years ago
- The embedded Finite State Machine (FSM) Facility that can be used to model and control a reactive or stateful system. The system can be r…☆19Updated 7 years ago
- libcsv is a small, simple and fast CSV library written in pure ANSI C89 that can read and write CSV data. | libcsv是用纯ANSI C89编写的小型、简单、快速的…☆36Updated 6 years ago
- Ultralightweight JSON parser in ANSI C☆21Updated last year
- 基于RT-Thread,运行在嵌入式上的高并发高性能FTP服务器☆36Updated 9 months ago