fix delay ms & delay 10us

This commit is contained in:
2025-08-13 20:15:17 +08:00
parent 0939eae851
commit 17413f4cc2
4 changed files with 83 additions and 87 deletions

View File

@@ -18,16 +18,19 @@
/* configure systick */
void systick_config(void);
/* delay a time in 10 microseconds */
void delay_10us(uint32_t count);
/* delay a time in milliseconds */
void delay_ms(uint32_t count);
/* delay a time in microseconds */
void delay_us(uint32_t count);
/* decrement delay counters */
void delay_decrement(void);
/* delay function that doesn't interfere with SysTick interrupt */
void delay_ms_safe(uint32_t count);
// /* delay function that doesn't interfere with SysTick interrupt */
// void delay_ms_safe(uint32_t count);
/* delay a time in microseconds (safe version) */
void delay_us_safe(uint32_t count);
// /* delay a time in microseconds (safe version) */
// void delay_us_safe(uint32_t count);
#endif /* SYS_TICK_H */