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
- Synchronous Asynchronous Log Output Framework(同步异步日志输出框架)☆21Updated 5 years ago
- 基于NOR Flash的轻量级文件数据存储方案。主要为i.MX RT系列设计,也可轻松移植到其他MCU平台☆27Updated last year
- awtk-aworks-rt1052☆33Updated 3 years ago
- ARM-GCC下STM32F1工程模板,运行OSAL操作系统☆22Updated 7 years ago
- Small GUI Library of MCUs☆65Updated 9 years ago
- RT-Thread peripheral samples☆23Updated 2 months 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
- 小型系统 单片机的 软件事件框架 软件定时 基于事件驱动☆11Updated 7 years ago
- stm32f10x系列基础服务框架,作为stm32的工程模板和硬件驱动。项目集成kernel io fs shell tcpip等基础服务框架☆26Updated 2 years ago
- 用于串口通信或消息的环形队列驱动☆11Updated 5 years ago
- Small yet powerful state machine coroutine library☆39Updated 10 months ago
- 这是一个开源的SWD离线烧写器,非常Mini,带OLED屏,使用STM32F103RET6作为主控,基于ST官方CMSIS-DAP项目进行修改,实现可脱机、可去读保护烧写。该SWD离线烧写器功能特性如下: 1. 使用8M FLASH,可使用虚拟U盘向FLASH放置HEX文…☆14Updated 4 years ago
- A little fail-safe filesystem designed for microcontrollers☆27Updated 2 weeks ago
- 基于Linux的kfifo移植到STM32☆29Updated 6 years ago
- TI OSAL on Visual Studio☆22Updated 5 years ago
- RT-Thread network samples☆12Updated last year
- Versaloon Software Framework -- a tiny pre-emptive event-driven fsm framework for embedded systems☆46Updated 5 years ago
- CherryRingBuffer is an efficient and easy-to-use ringbuffer, especially for dma support.☆45Updated last year
- Python Scripts for RT-Thread/ENV☆59Updated 3 weeks ago
- ringbuffer(环形缓冲区)可以说是嵌入式应用非常常用的数据缓存设计了,LwRB 是国外开发者 MaJerle 维护实现的轻量级 ringbuffer,是一个为嵌入式系统特殊优化设计的 FIFO。1. 纯ANSI C99实现, 数据类型兼容于size_t 2. 与具体…☆20Updated 4 years ago
- GUI component for RT-Thread☆28Updated last year
- ☆25Updated 11 months ago
- ☆22Updated 4 years ago
- A light weight, powerful, customizable, easy-to-use and embeddable mqtt client for RT-Thread☆28Updated 2 years ago
- CDNET Protocol and CDBUS / CDNET C Library (The library is MCU-oriented.)☆111Updated last week
- FSC_STOS是一款基于Cortex-M内核的嵌入式操作系统,针对新手设计,简单易懂。☆40Updated 5 years ago
- WIZnet TCP/IP chips (such as W5500/W5100..) SAL framework implement.☆50Updated 3 months 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