diff --git a/libraries/mbed/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/ethernet_api.c b/libraries/mbed/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/ethernet_api.c index 9eee766f1a..30394cbf5f 100644 --- a/libraries/mbed/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/ethernet_api.c +++ b/libraries/mbed/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/ethernet_api.c @@ -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); diff --git a/libraries/rtos/rtx/TARGET_CORTEX_A/RTX_Conf_CA.c b/libraries/rtos/rtx/TARGET_CORTEX_A/RTX_Conf_CA.c index 37fa755ce6..348ec91da4 100644 --- a/libraries/rtos/rtx/TARGET_CORTEX_A/RTX_Conf_CA.c +++ b/libraries/rtos/rtx/TARGET_CORTEX_A/RTX_Conf_CA.c @@ -90,7 +90,7 @@ // <1=> Privileged mode // Default: Privileged mode #ifndef OS_RUNPRIV - #define OS_RUNPRIV 0 + #define OS_RUNPRIV 1 #endif // @@ -107,7 +107,11 @@ // Defines the timer clock value. // Default: 12000000 (12MHz) #ifndef OS_CLOCK +# if defined(TARGET_RZ_A1H) #define OS_CLOCK 12000000 +# else +# error "no target defined" +# endif #endif // Timer tick value [us] <1-1000000> @@ -161,7 +165,7 @@ // Defines stack size for Timer thread. // Default: 200 #ifndef OS_TIMERSTKSZ - #define OS_TIMERSTKSZ 400 + #define OS_TIMERSTKSZ WORDS_STACK_SIZE #endif // 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 } }