esp-idf/components/freertos
Ivan Grokhotkov e3ffcd22d5 Merge branch 'feature/init_refactoring' into 'master'
Startup flow refactoring

This set of commits changes the startup code in a way that lets the application choose if/when to initialize WiFi/BT.

Application entry point is now a more familiar `main()` function. This function is executed in its own task. Application may choose to do some initialization from main function, create some tasks and then return from `main`. Simple applications may choose to do all their work from `main`.

Additionally this MR splits event handling code into two parts. 

- One part is a set of standard handlers for WiFi and DHCP events. Most applications will use this set of handlers, and it is made available via new `esp_event_process_default` function. 
- Another part is the default implementation of event handling loop. Some applications may choose to use default event loop through `esp_event_loop_` set of APIs, which start an event handling task and call user-provided event callback from this task. Other applications may create an event queue and implement event loop themselves. In this case application has to provide `esp_event_send` function. In this case the implementation provided by `esp_event_loop_` module is unused.

esp-idf-template has been updated to match this set of changes: https://github.com/espressif/esp-idf-template/tree/feature/init_refactoring
BT example has also been updated.

We need to provide examples of both event handling approaches. This will be done in a separate follow-up MR.

See merge request !112
2016-09-26 17:06:12 +08:00
..
include/freertos Merge branch 'master' into feature/menuconfig_cpu_frequency_option 2016-09-20 17:22:18 +08:00
component.mk Name component makefiles component.mk instead of Makefile 2016-09-08 13:41:19 +10:00
croutine.c Initial public version 2016-08-17 23:08:22 +08:00
event_groups.c Add static initializers for muxes, add mutex init to vPortCPUAcquireMutex 2016-08-22 17:36:32 +08:00
FreeRTOS-openocd.c Add files I forgot (FreeRTOS-openocd.c and panic.h) 2016-08-24 17:30:53 +08:00
gdbstub.c Only modify headers in soc/ . 2016-09-14 13:47:28 +08:00
gdbstub.h Initial public version 2016-08-17 23:08:22 +08:00
heap_regions_debug.c FreeRTOS: temporary solution for memory canaries and memory debug 2016-09-07 21:52:24 +08:00
heap_regions.c FreeRTOS: temporary solution for memory canaries and memory debug 2016-09-07 21:52:24 +08:00
Kconfig FreeRTOS: temporary solution for memory canaries and memory debug 2016-09-07 21:52:24 +08:00
license.txt Initial public version 2016-08-17 23:08:22 +08:00
list.c Initial public version 2016-08-17 23:08:22 +08:00
panic.c Fix a spelling mistake in panic message, add carriage return to stack canary message 2016-09-26 11:18:43 +08:00
port.c Add working portASSERT_IF_IN_ISR function, fix enter_critical thing even better. 2016-09-09 17:15:50 +08:00
portasm.S Initial public version 2016-08-17 23:08:22 +08:00
queue.c components/freertos: fix a bug with an uninitialised return value 2016-09-26 15:57:54 +08:00
readme_smp.txt 'Merge branch 'thread_local_storage_delete_callbacks' into 'master' 2016-08-24 13:30:30 +08:00
readme_xtensa.txt Initial public version 2016-08-17 23:08:22 +08:00
stdint.readme Initial public version 2016-08-17 23:08:22 +08:00
tasks.c Spinlocks already come initialized. Remove the code that would essentially re-initialize them at runtime 2016-09-23 17:46:16 +08:00
timers.c Add static initializers for muxes, add mutex init to vPortCPUAcquireMutex 2016-08-22 17:36:32 +08:00
xtensa_context.S Initial public version 2016-08-17 23:08:22 +08:00
xtensa_init.c Initial public version 2016-08-17 23:08:22 +08:00
xtensa_intr_asm.S Initial public version 2016-08-17 23:08:22 +08:00
xtensa_intr.c Initial public version 2016-08-17 23:08:22 +08:00
xtensa_overlay_os_hook.c Initial public version 2016-08-17 23:08:22 +08:00
xtensa_vectors.S Initial public version 2016-08-17 23:08:22 +08:00
xtensa_vectors.S-new Initial public version 2016-08-17 23:08:22 +08:00
xtensa_vectors.S-old Initial public version 2016-08-17 23:08:22 +08:00