We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 40e9f41 + 64d3bd8 commit 9abcbf6Copy full SHA for 9abcbf6
hal/mbed_ticker_api.c
@@ -47,7 +47,7 @@ static void initialize(const ticker_data_t *ticker)
47
48
uint8_t frequency_shifts = 0;
49
for (uint8_t i = 31; i > 0; --i) {
50
- if ((1 << i) == frequency) {
+ if ((1U << i) == frequency) {
51
frequency_shifts = i;
52
break;
53
}
rtos/TARGET_CORTEX/mbed_rtx_handlers.c
@@ -55,8 +55,6 @@ __NO_RETURN void osRtxIdleThread(void *argument)
55
56
__NO_RETURN uint32_t osRtxErrorNotify(uint32_t code, void *object_id)
57
{
58
- osThreadId_t tid = osThreadGetId();
59
-
60
switch (code) {
61
case osRtxErrorStackUnderflow:
62
// Stack underflow detected for thread (thread_id=object_id)
0 commit comments