Skip to content

Commit

Permalink
RISC-V-Qemu-virt: Add assert macros in FreeRTOSConfig (FreeRTOS#777)
Browse files Browse the repository at this point in the history
vAssertCalled() is already defined in main.c. We need to set the
related macros in FreeRTOSConfig header as well, or the boundary
checking through assert could not be executed
  • Loading branch information
OscarShiang authored Jan 18, 2022
1 parent 1ce4d78 commit 0744c28
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion FreeRTOS/Demo/RISC-V-Qemu-virt_GCC/FreeRTOSConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* https://www.FreeRTOS.org
* https://www.github.com/FreeRTOS
* https://github.com/FreeRTOS
*
*/

Expand Down Expand Up @@ -67,6 +67,11 @@
#define configGENERATE_RUN_TIME_STATS 0
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1

/* Assert definitions. */
void vAssertCalled( void );
#define configASSERT_DEFINED 1
#define configASSERT( x ) do { if ( !(x) ) vAssertCalled(); } while(0)

/* Co-routine definitions. */
#define configUSE_CO_ROUTINES 0
#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
Expand Down

0 comments on commit 0744c28

Please sign in to comment.