File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,12 @@ void timer_oc_irq_handler(void)
49
49
}
50
50
}
51
51
52
- // Reconfigure the HAL tick using a standard timer instead of systick.
52
+ // Overwrite the default ST HAL function (defined as "weak") in order to configure an HW timer
53
+ // used for mbed timeouts only (not used for the Systick configuration).
54
+ // Additional notes:
55
+ // - The default ST HAL_InitTick function initializes the Systick to 1 ms and this is not correct for mbed
56
+ // as the mbed Systick as to be configured to 1 us instead.
57
+ // - Furthermore the Systick is configured by mbed RTOS directly.
53
58
HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority )
54
59
{
55
60
// Enable timer clock
Original file line number Diff line number Diff line change @@ -35,7 +35,12 @@ void timer_irq_handler(void)
35
35
}
36
36
}
37
37
38
- // Reconfigure the HAL tick using a standard timer instead of systick.
38
+ // Overwrite the default ST HAL function (defined as "weak") in order to configure an HW timer
39
+ // used for mbed timeouts only (not used for the Systick configuration).
40
+ // Additional notes:
41
+ // - The default ST HAL_InitTick function initializes the Systick to 1 ms and this is not correct for mbed
42
+ // as the mbed Systick as to be configured to 1 us instead.
43
+ // - Furthermore the Systick is configured by mbed RTOS directly.
39
44
HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority )
40
45
{
41
46
RCC_ClkInitTypeDef RCC_ClkInitStruct ;
You can’t perform that action at this time.
0 commit comments