bexus_sysclock.c 287 B

123456789101112
  1. #include "bexus_sysclock.h"
  2. volatile uint32_t sysTickCounter = 0;
  3. volatile uint32_t lastCoreClock = 0;
  4. extern uint32_t systicklast;
  5. extern TIM_HandleTypeDef htim1;
  6. extern void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim);
  7. uint32_t millis() {
  8. return sysTickCounter;
  9. }