Revert "Remove coroutines (#874)" (#1019)

* Revert "Remove coroutines (#874)"

This reverts commit 569c78fd8c.

* Update freertos Kernel submodule to latest head

* Remove temporary files

* Fix MingW demos and spell check

* Fix manifest version; fix headers

* Add ignore files and paths to core-checker.py

* Fix copyright in remaining files

* Fix PR check build failure

1. Remove defining `inline` in Makefile. This was causing build
   warnings.
2. Ensure that the linker removed unused functions from various
   compilation units.
3. Update the linker script so that all the functions are correctly
   placed in FLASH section.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>

---------

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
Aniruddha Kanhere 2023-06-09 15:25:48 -07:00 committed by GitHub
parent 9ccae851e7
commit 1277ba1661
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
605 changed files with 11240 additions and 3628 deletions

View file

@ -79,6 +79,9 @@ readable ASCII form. See the notes in the implementation of vTaskList() within
FreeRTOS/Source/tasks.c for limitations. */
#define configUSE_STATS_FORMATTING_FUNCTIONS 1
/* Co-routine definitions. */
#define configUSE_CO_ROUTINES 0
#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
/* Software timer definitions. */
#define configUSE_TIMERS 1
@ -128,7 +131,7 @@ header file. */
#define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ); }
/* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS
standard names. Defining the constants removes the need to edit the vector
standard names. Defining the constants removes the need to edit the vector
table in order to install the RTOS interrupt handlers. */
#define xPortPendSVHandler PendSV_Handler
#define vPortSVCHandler SVC_Handler

View file

@ -158,10 +158,10 @@ void vApplicationTickHook( void )
#if( mainCREATE_SIMPLE_BLINKY_DEMO_ONLY == 0 )
{
extern void vFullDemoTickHook( void );
/* The full demo includes some tests that execute in an interrupt
context, and the tick hook is used for this purpose. */
vFullDemoTickHook();
vFullDemoTickHook();
}
#endif
}
@ -349,7 +349,7 @@ static void ProcessButtonEvt(uint8_t uc_button)
}
}
// [main_button1_evnt_process]
#ifdef LED1_GPIO
#ifdef LED1_GPIO
else {
// [main_button2_evnt_process]
g_b_led1_active = !g_b_led1_active;
@ -402,7 +402,7 @@ static void Button1_Handler(uint32_t id, uint32_t mask)
*
* Handle process led2 status change.
*/
// [main_button2_handler]
// [main_button2_handler]
static void Button2_Handler(uint32_t id, uint32_t mask)
{
if (PIN_PUSHBUTTON_2_ID == id && PIN_PUSHBUTTON_2_MASK == mask) {