Added two config options to the FreeRTOSConfig file to get the demo running again. Fixed a typo in a file. Added a section to the link file (#940)

Co-authored-by: Soren Ptak <skptak@amazon.com>
This commit is contained in:
Soren Ptak
2023-03-05 20:43:35 -08:00
committed by GitHub
co-authored by Soren Ptak
parent 408c3841ea
commit 93a35f87d2
3 changed files with 14 additions and 2 deletions
@@ -148,7 +148,7 @@ standard names. */
/* Normal assert() semantics without relying on the provision of an assert.h /* Normal assert() semantics without relying on the provision of an assert.h
header file. */ header file. */
#define configASSERT( x ) if( ( x ) == 0UL ) { portDISABLE_INTERRUPTS(); for( ;; ); } #define configASSERT( x ) if( ! ( x ) ) { portDISABLE_INTERRUPTS(); for( ;; ); }
/* LED not used at present, so just increment a variable to keep a count of the /* LED not used at present, so just increment a variable to keep a count of the
number of times the LED would otherwise have been toggled. */ number of times the LED would otherwise have been toggled. */
@@ -166,6 +166,11 @@ solely for the purpose of ensuring parameters are passed into tasks correctly. *
#define configREG_TEST_TASK_3_PARAMETER ( ( void * ) 0x12345678 ) #define configREG_TEST_TASK_3_PARAMETER ( ( void * ) 0x12345678 )
#define configREG_TEST_TASK_4_PARAMETER ( ( void * ) 0x87654321 ) #define configREG_TEST_TASK_4_PARAMETER ( ( void * ) 0x87654321 )
/* Ensure that all system calls are coming from the kernel
Additionally allow unprivileged tasks to have critical sections. */
#define configENFORCE_SYSTEM_CALLS_FROM_KERNEL_ONLY 1
#define configALLOW_UNPRIVILEGED_CRITICAL_SECTIONS 1
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
@@ -156,6 +156,13 @@ SECTIONS
PROVIDE_HIDDEN (__fini_array_end = .); PROVIDE_HIDDEN (__fini_array_end = .);
. = ALIGN(4); . = ALIGN(4);
/* Set start of system calls to here */
__syscalls_flash_start__ = .;
/* Place all FreeRTOS System calls here */
*(freertos_system_calls)
__syscalls_flash_end__ = .;
/* Mark the end of the system calls */
. = ALIGN(4); . = ALIGN(4);
*(.text*) /* all remaining code */ *(.text*) /* all remaining code */
@@ -4,7 +4,7 @@
* Version: V2.0 * Version: V2.0
* Date: 16 August 2013 * Date: 16 August 2013
* *
/* Copyright (c) 2011 - 2013 ARM LIMITED * Copyright (c) 2011 - 2013 ARM LIMITED
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without