Modify some settings of OS and Ether

- Change default setting of CMSIS-RTOS RTX for Cortex-A9 to align with Cortex-M.
 - Change the interrupt priority of Ether driver to align with other drivers.
pull/802/head
Masao Hamanaka 2014-12-18 18:41:33 +09:00
parent e91e953a60
commit 0279c2a2ee
2 changed files with 8 additions and 8 deletions

View File

@ -269,7 +269,7 @@ void ethernetext_set_link_mode(int32_t link) {
int ethernet_init() { int ethernet_init() {
ethernet_cfg_t ethcfg; ethernet_cfg_t ethcfg;
ethcfg.int_priority = 0; ethcfg.int_priority = 5;
ethcfg.recv_cb = NULL; ethcfg.recv_cb = NULL;
ethcfg.ether_mac = NULL; ethcfg.ether_mac = NULL;
ethernetext_init(&ethcfg); ethernetext_init(&ethcfg);

View File

@ -90,7 +90,7 @@
// <1=> Privileged mode // <1=> Privileged mode
// <i> Default: Privileged mode // <i> Default: Privileged mode
#ifndef OS_RUNPRIV #ifndef OS_RUNPRIV
#define OS_RUNPRIV 0 #define OS_RUNPRIV 1
#endif #endif
// </h> // </h>
@ -107,7 +107,11 @@
// <i> Defines the timer clock value. // <i> Defines the timer clock value.
// <i> Default: 12000000 (12MHz) // <i> Default: 12000000 (12MHz)
#ifndef OS_CLOCK #ifndef OS_CLOCK
# if defined(TARGET_RZ_A1H)
#define OS_CLOCK 12000000 #define OS_CLOCK 12000000
# else
# error "no target defined"
# endif
#endif #endif
// <o>Timer tick value [us] <1-1000000> // <o>Timer tick value [us] <1-1000000>
@ -161,7 +165,7 @@
// <i> Defines stack size for Timer thread. // <i> Defines stack size for Timer thread.
// <i> Default: 200 // <i> Default: 200
#ifndef OS_TIMERSTKSZ #ifndef OS_TIMERSTKSZ
#define OS_TIMERSTKSZ 400 #define OS_TIMERSTKSZ WORDS_STACK_SIZE
#endif #endif
// <o>Timer Callback Queue size <1-32> // <o>Timer Callback Queue size <1-32>
@ -194,7 +198,7 @@
// Define max. number system mutexes that are used to protect // Define max. number system mutexes that are used to protect
// the arm standard runtime library. For microlib they are not used. // the arm standard runtime library. For microlib they are not used.
#ifndef OS_MUTEXCNT #ifndef OS_MUTEXCNT
#define OS_MUTEXCNT 8 #define OS_MUTEXCNT 12
#endif #endif
/*---------------------------------------------------------------------------- /*----------------------------------------------------------------------------
@ -216,10 +220,6 @@ void os_idle_demon (void) {
for (;;) { for (;;) {
/* HERE: include optional user code to be executed when no thread runs.*/ /* HERE: include optional user code to be executed when no thread runs.*/
#if 0
__DSB();
__WFI();
#endif
} }
} }