Line 54... |
Line 54... |
|
|
#include <stdlib.h>
|
#include <stdlib.h>
|
#include <string.h>
|
#include <string.h>
|
|
|
/* Architecture specific header files. */
|
/* Architecture specific header files. */
|
|
#include "support.h"
|
#include "spr_defs.h"
|
#include "spr_defs.h"
|
|
|
/* Scheduler header files. */
|
/* Scheduler header files. */
|
#include "FreeRTOS.h"
|
#include "FreeRTOS.h"
|
#include "task.h"
|
#include "task.h"
|
Line 84... |
Line 85... |
/* Demo application task priorities. */
|
/* Demo application task priorities. */
|
#define mainCHECK_TASK_PRIORITY ( tskIDLE_PRIORITY + 4 )
|
#define mainCHECK_TASK_PRIORITY ( tskIDLE_PRIORITY + 4 )
|
#define mainBLOCK_Q_PRIORITY ( tskIDLE_PRIORITY + 2 )
|
#define mainBLOCK_Q_PRIORITY ( tskIDLE_PRIORITY + 2 )
|
#define mainLED_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 )
|
#define mainLED_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 )
|
#define mainCOM_TEST_PRIORITY ( tskIDLE_PRIORITY + 1 )
|
#define mainCOM_TEST_PRIORITY ( tskIDLE_PRIORITY + 1 )
|
#define mainLCD_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 )
|
|
|
|
#define mainPRINT_STACK_SIZE ( ( unsigned short ) 64 )
|
#define mainPRINT_STACK_SIZE ( ( unsigned short ) 64 )
|
#define mainDEBUG_LOG_BUFFER_SIZE ( ( unsigned short ) 256 )
|
|
|
|
/* How often should we check the other tasks? */
|
/* How often should we check the other tasks? */
|
#define mainCHECK_TASK_CYCLE_TIME ( 3000 )
|
#define mainCHECK_TASK_CYCLE_TIME ( 3000 )
|
|
|
/* Baud rate used by the comtest tasks. */
|
/* Baud rate used by the comtest tasks. */
|
Line 233... |
Line 232... |
// GPIO Initialize
|
// GPIO Initialize
|
gpio_init(0);
|
gpio_init(0);
|
|
|
// set low 8 port is outout
|
// set low 8 port is outout
|
set_gpio_direction(0, 0xFFFFFF00);
|
set_gpio_direction(0, 0xFFFFFF00);
|
|
|
|
// enable IC/DC if present
|
|
cache_init();
|
}
|
}
|
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
|
|
void vApplicationIdleHook( void )
|
void vApplicationIdleHook( void )
|
{
|
{
|