This repository has been archived on 2023-07-17. You can view files and clone it, but cannot push or open issues or pull requests.
bl_mcu_sdk/examples/peripherals/mtimer/main.c
jzlv d6fab307bf [update] update lhal, soc and demos
* Add flash driver and init in boards.
* Add timeout for all poll wait apis
* Add 808 d0 startup to bringup
* Update lhal device tables
* Update demos
2022-11-18 16:30:00 +08:00

18 lines
249 B
C

#include "bflb_mtimer.h"
#include "board.h"
void systick_isr()
{
static uint32_t tick = 0;
tick++;
printf("tick:%d\r\n", tick);
}
int main(void)
{
board_init();
bflb_mtimer_config(1000000, systick_isr);
while (1) {
}
}