mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-20 18:18:32 -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
|
@ -40,8 +40,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 */
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Tasks should start with interrupts enabled and in Supervisor mode, therefore
|
||||
|
@ -89,12 +96,31 @@ static void prvStartFirstTask( void ) __attribute__((naked));
|
|||
* restoring of registers). Written in asm code as direct register access is
|
||||
* required.
|
||||
*/
|
||||
void vPortSoftwareInterruptISR( void ) __attribute__((naked));
|
||||
#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 vPortTickISR( 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 */
|
||||
|
||||
/*
|
||||
* Sets up the periodic ISR used for the RTOS tick using the CMT.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue