mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Update Fujitsu port files - work in progress.
This commit is contained in:
parent
ba4d636307
commit
7e6a2b0bd5
|
@ -219,8 +219,8 @@ portBASE_TYPE xPortStartScheduler( void )
|
||||||
|
|
||||||
void vPortEndScheduler( void )
|
void vPortEndScheduler( void )
|
||||||
{
|
{
|
||||||
/* It is unlikely that the AVR port will get stopped. If required simply
|
/* Not implemented - unlikely to ever be required as there is nothing to
|
||||||
disable the tick interrupt here. */
|
return to. */
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
@ -229,6 +229,8 @@ void vPortEndScheduler( void )
|
||||||
*/
|
*/
|
||||||
static void prvSetupTimerInterrupt( void )
|
static void prvSetupTimerInterrupt( void )
|
||||||
{
|
{
|
||||||
|
/* The peripheral clock divided by 32 is used by the timer. */
|
||||||
|
const unsigned portSHORT usReloadValue = ( unsigned portSHORT ) ( ( ( configPER_CLOCK_HZ / configTICK_RATE_HZ ) / 32UL ) - 1UL );
|
||||||
|
|
||||||
TMCSR0_CNTE=0; /* Count Disable */
|
TMCSR0_CNTE=0; /* Count Disable */
|
||||||
TMCSR0_CSL=0x2; /* CLKP/32 */
|
TMCSR0_CSL=0x2; /* CLKP/32 */
|
||||||
|
@ -236,8 +238,7 @@ static void prvSetupTimerInterrupt( void )
|
||||||
TMCSR0_RELD=1; /* Reload */
|
TMCSR0_RELD=1; /* Reload */
|
||||||
|
|
||||||
TMCSR0_UF=0; /* Clear underflow flag */
|
TMCSR0_UF=0; /* Clear underflow flag */
|
||||||
//TMRLR0=0x1F3; /* Tick = 1 ms*/
|
TMRLR0=usReloadValue;
|
||||||
TMRLR0=0x1387; /* Tick = 10 ms*/
|
|
||||||
TMCSR0_INTE=1; /* Interrupt Enable */
|
TMCSR0_INTE=1; /* Interrupt Enable */
|
||||||
TMCSR0_CNTE=1; /* Count Enable */
|
TMCSR0_CNTE=1; /* Count Enable */
|
||||||
TMCSR0_TRG=1; /* Trigger */
|
TMCSR0_TRG=1; /* Trigger */
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
#define portLONG long
|
#define portLONG long
|
||||||
#define portSHORT int
|
#define portSHORT int
|
||||||
#define portSTACK_TYPE unsigned portSHORT
|
#define portSTACK_TYPE unsigned portSHORT
|
||||||
#define portBASE_TYPE char
|
#define portBASE_TYPE long
|
||||||
|
|
||||||
/* This is required since SOFTUNE doesn't support inline directive as is. */
|
/* This is required since SOFTUNE doesn't support inline directive as is. */
|
||||||
#define inline
|
#define inline
|
||||||
|
|
Loading…
Reference in a new issue