You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
529 B

#ifndef _T21_T8_H_
#define _T21_T8_H_
#include "hic.h"
#include "motor.h"
#include "basic_type.h"
#define configTicketUs 1000
#define configDebugLightFlipPeriodMS 300
void t21_config(void); //定时器初始化�?.5s一次中�?
void t21_irq_interrupt(void);//中断触发
void system_module_process_interrupt();
int32_t sleep_ms(int32_t time);
void init_timer1_as_ticketustimer_in32M();
int32_t hal_get_ticket();
int32_t hal_get_irqticket();
uint32_t hal_has_passedms(uint32_t lastticket);
#endif