摘要:
http://lwip.wikia.com/wiki/Lwipopts.hMemory management (RAM usage)/** * MEM_LIBC_MALLOC==1: Use malloc/free/realloc provided by your C-library * instead of the lwip internal allocator. Can save code size if you * already use it. */#ifndef MEM_LIBC_MALLOC#define MEM_LIBC_MALLOC 0#endi... 阅读全文
摘要:
http://www.freertos.org/a00111.htmlThe RTOS kernel allocates RAM each time a task, queue, mutex, software timer or semaphore is created.The standard C library malloc() and free() functions can sometimes be used for this purpose, but...they are not always available on embedded systems,they take up va 阅读全文
摘要:
http://www.iar.com/Global/Resources/Developers_Toolbox/Building_and_debugging/Mastering_stack_and_heap_for_system_reliability.pdf1. IntroductionThe stack and the heap are fundamental to an embedded system. Setting up the stack and the heap properly is essential to system stability and reliability. I 阅读全文
摘要:
http://www.st.com/st-web-ui/static/active/cn/resource/technical/document/application_note/DM00036052.pdfLwIP TCP/IP stack demonstration for STM32F4x7 microcontrollersPacket buffer structureLwIP manages packet buffers using a data structure called pbuf.The pbuf structure enables the allocation of a d 阅读全文
摘要:
Task CreationxTaskCreatevTaskDeleteTask ControlvTaskDelayvTaskDelayUntiluxTaskPriorityGetvTaskPrioritySetvTaskSuspendvTaskResumexTaskResumeFromISRKernel ControltaskYIELDtaskENTER_CRITICALtaskEXIT_CRITICALtaskDISABLE_INTERRUPTStaskENABLE_INTERRUPTSvTaskStartSchedulervTaskEndSchedulervTaskSuspendAllxT 阅读全文
摘要:
http://www.freertos.org/a00110.htmlFreeRTOS is customised using a configuration file called FreeRTOSConfig.h. Every FreeRTOS application must have a FreeRTOSConfig.h header file in its pre-processor include path. FreeRTOSConfig.h tailors the RTOS kernel to the application being built. It is therefor 阅读全文
摘要:
http://andyhuzhill.github.io/freertos/2013/07/30/freertostransplant/最近在看一个实时嵌入式操作系统————FreeRTOS, 为什么看它呢?首先它是开源的,其次它的内核最小只需要三个文件task.c、list.c、queue.c,加起来5000多行代码还有很多注释在里面。他的优点网上也有很多介绍的,我也就不多说了,感兴趣的可以去百度google一下。源代码目录结构从FreeRTOS的官方网站可以下载到FreeRTOS的全部源代码。下载下来的压缩包的目录结构类似如下: FreeRTOSV7.4.0/ ... 阅读全文
摘要:
在嵌入式领域中,嵌入式实时操作系统正得到越来越广泛的应用。采用嵌入式实时操作系统(RTOS)可以更合理、更有效地利用CPU的资源,简化应用软件的设计,缩短系统开发时间,更好地保证系统的实时性和可靠性。1简介FreeRTOS是一个迷你操作系统内核的小型嵌入式系统。作为一个轻量级的操作系统,功能包括:任务管理、时间管理、信号量、消息队列、内存管理、记录功能等,可基本满足较小系统的需要。[1]由于RTOS需占用一定的系统资源(尤其是RAM资源),只有μC/OS-II、embOS、salvo、FreeRTOS等少数实时操作系统能在小RAM单片机上运行。相对μC/OS-II、embOS等商业操作系统,F 阅读全文