mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-24 04:43:36 +00:00
msp432p401lp-cc256x: fix delay_ms implementation
This commit is contained in:
parent
64d059d526
commit
4472ec1633
@ -547,7 +547,8 @@ static void init_systick(void){
|
||||
|
||||
static void delay_ms(uint32_t ms){
|
||||
uint32_t delay_until = systick + ms;
|
||||
while (systick < delay_until);
|
||||
// assumes mcu runs fast enough to check once every ms
|
||||
while (systick != delay_until);
|
||||
}
|
||||
|
||||
uint32_t hal_time_ms(void){
|
||||
|
Loading…
x
Reference in New Issue
Block a user