mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-14 08:48:51 +00:00
18 lines
261 B
C
18 lines
261 B
C
#include "bflb_mtimer.h"
|
|
|
|
void systick_isr()
|
|
{
|
|
static uint32_t tick = 0;
|
|
tick++;
|
|
printf("tick:%d\r\n", tick);
|
|
}
|
|
|
|
extern void board_init(void);
|
|
|
|
int main(void)
|
|
{
|
|
board_init();
|
|
bflb_mtimer_config(1000000, systick_isr);
|
|
while (1) {
|
|
}
|
|
}
|