mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
e91e953a60
commit
0279c2a2ee
|
|
@ -269,7 +269,7 @@ void ethernetext_set_link_mode(int32_t link) {
|
|||
int ethernet_init() {
|
||||
ethernet_cfg_t ethcfg;
|
||||
|
||||
ethcfg.int_priority = 0;
|
||||
ethcfg.int_priority = 5;
|
||||
ethcfg.recv_cb = NULL;
|
||||
ethcfg.ether_mac = NULL;
|
||||
ethernetext_init(ðcfg);
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@
|
|||
// <1=> Privileged mode
|
||||
// <i> Default: Privileged mode
|
||||
#ifndef OS_RUNPRIV
|
||||
#define OS_RUNPRIV 0
|
||||
#define OS_RUNPRIV 1
|
||||
#endif
|
||||
|
||||
// </h>
|
||||
|
|
@ -107,7 +107,11 @@
|
|||
// <i> Defines the timer clock value.
|
||||
// <i> Default: 12000000 (12MHz)
|
||||
#ifndef OS_CLOCK
|
||||
# if defined(TARGET_RZ_A1H)
|
||||
#define OS_CLOCK 12000000
|
||||
# else
|
||||
# error "no target defined"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
// <o>Timer tick value [us] <1-1000000>
|
||||
|
|
@ -161,7 +165,7 @@
|
|||
// <i> Defines stack size for Timer thread.
|
||||
// <i> Default: 200
|
||||
#ifndef OS_TIMERSTKSZ
|
||||
#define OS_TIMERSTKSZ 400
|
||||
#define OS_TIMERSTKSZ WORDS_STACK_SIZE
|
||||
#endif
|
||||
|
||||
// <o>Timer Callback Queue size <1-32>
|
||||
|
|
@ -194,7 +198,7 @@
|
|||
// Define max. number system mutexes that are used to protect
|
||||
// the arm standard runtime library. For microlib they are not used.
|
||||
#ifndef OS_MUTEXCNT
|
||||
#define OS_MUTEXCNT 8
|
||||
#define OS_MUTEXCNT 12
|
||||
#endif
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
|
|
@ -216,10 +220,6 @@ void os_idle_demon (void) {
|
|||
|
||||
for (;;) {
|
||||
/* HERE: include optional user code to be executed when no thread runs.*/
|
||||
#if 0
|
||||
__DSB();
|
||||
__WFI();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue