mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-20 10:08:33 -04:00
Update Renesas GCC compiler ports (#135)
* Add RX200 GCC compiler Signed-off-by: Dinh Van Nam <vannam.dinh.xt@renesas.com> * Update GCC compiler for: * RX600v2 * RX600 * RX100 Signed-off-by: Dinh Van Nam <vannam.dinh.xt@renesas.com> * Use configINCLUDE_PLATFORM_H_INSTEAD_OF_IODEFINE_H flag * Use configINCLUDE_PLATFORM_H_INSTEAD_OF_IODEFINE_H flag RX100, RX200 Co-authored-by: Dinh Van Nam <vannam.dinh.xt@renesas.com>
This commit is contained in:
parent
0afc048cf2
commit
1d8df4752e
8 changed files with 689 additions and 12 deletions
|
@ -37,7 +37,15 @@
|
|||
#include "string.h"
|
||||
|
||||
/* Hardware specifics. */
|
||||
#include "iodefine.h"
|
||||
#if ( configINCLUDE_PLATFORM_H_INSTEAD_OF_IODEFINE_H == 1 )
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#else /* configINCLUDE_PLATFORM_H_INSTEAD_OF_IODEFINE_H */
|
||||
|
||||
#include "iodefine.h"
|
||||
|
||||
#endif /* configINCLUDE_PLATFORM_H_INSTEAD_OF_IODEFINE_H */
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
@ -67,13 +75,27 @@ static void prvStartFirstTask( void ) __attribute__((naked));
|
|||
* restoring of registers). Written in asm code as direct register access is
|
||||
* required.
|
||||
*/
|
||||
#if ( configINCLUDE_PLATFORM_H_INSTEAD_OF_IODEFINE_H == 1 )
|
||||
R_BSP_PRAGMA_INTERRUPT( vSoftwareInterruptISR, VECT( ICU, SWINT ) )
|
||||
R_BSP_ATTRIB_INTERRUPT void vSoftwareInterruptISR( void ) __attribute__( ( naked ) );
|
||||
#else /* configINCLUDE_PLATFORM_H_INSTEAD_OF_IODEFINE_H */
|
||||
void vSoftwareInterruptISR( void ) __attribute__((naked));
|
||||
#endif /* configINCLUDE_PLATFORM_H_INSTEAD_OF_IODEFINE_H */
|
||||
|
||||
/*
|
||||
* The tick interrupt handler.
|
||||
* The tick ISR handler. The peripheral used is configured by the application
|
||||
* via a hook/callback function.
|
||||
*/
|
||||
void vTickISR( void ) __attribute__((interrupt));
|
||||
#if ( configINCLUDE_PLATFORM_H_INSTEAD_OF_IODEFINE_H == 1 )
|
||||
|
||||
R_BSP_PRAGMA_INTERRUPT( vTickISR, _VECT( configTICK_VECTOR ) )
|
||||
R_BSP_ATTRIB_INTERRUPT void vTickISR( void ); /* Do not add __attribute__( ( interrupt ) ). */
|
||||
|
||||
#else /* configINCLUDE_PLATFORM_H_INSTEAD_OF_IODEFINE_H */
|
||||
|
||||
void vTickISR( void ) __attribute__( ( interrupt ) );
|
||||
|
||||
#endif /* configINCLUDE_PLATFORM_H_INSTEAD_OF_IODEFINE_H */
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
extern void *pxCurrentTCB;
|
||||
|
@ -393,6 +415,9 @@ uint32_t ulPortGetIPL( void )
|
|||
|
||||
void vPortSetIPL( uint32_t ulNewIPL )
|
||||
{
|
||||
/* Avoid compiler warning about unreferenced parameter. */
|
||||
( void ) ulNewIPL;
|
||||
|
||||
__asm volatile
|
||||
(
|
||||
"PUSH R5 \n" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue