drv_systick.h 272 B

1234567891011121314
  1. #ifndef __HAL_SYSTICK_H
  2. #define __HAL_SYSTICK_H
  3. #include <stdint.h>
  4. #define SYSTICK_EXT_CLOCK_1MS_CNT (SystemCoreClock / 1000)
  5. void drv_systick_init(void);
  6. uint32_t get_systick_ms(void);
  7. void drv_delay_us(uint32_t nus);
  8. void drv_delay_ms(uint16_t nms);
  9. #endif