mirror of https://github.com/ARMmbed/mbed-os.git
commit
9abcbf6acf
|
@ -47,7 +47,7 @@ static void initialize(const ticker_data_t *ticker)
|
|||
|
||||
uint8_t frequency_shifts = 0;
|
||||
for (uint8_t i = 31; i > 0; --i) {
|
||||
if ((1 << i) == frequency) {
|
||||
if ((1U << i) == frequency) {
|
||||
frequency_shifts = i;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -55,8 +55,6 @@ __NO_RETURN void osRtxIdleThread(void *argument)
|
|||
|
||||
__NO_RETURN uint32_t osRtxErrorNotify(uint32_t code, void *object_id)
|
||||
{
|
||||
osThreadId_t tid = osThreadGetId();
|
||||
|
||||
switch (code) {
|
||||
case osRtxErrorStackUnderflow:
|
||||
// Stack underflow detected for thread (thread_id=object_id)
|
||||
|
|
Loading…
Reference in New Issue