📄 main.c
字号:
/*********************************************************************************************
* File: main.c
* Author: embest
* Desc: c main entry
* History:
*********************************************************************************************/
/*--- include files ---*/
#include "44blib.h"
#include "44b.h"
/*--- function declare ---*/
int main(void);
/*--- extern function ---*/
extern void Test_Timer(void);
extern void Test_WDTimer(void);
/*--- function code ---*/
/*********************************************************************************************
* name: main
* func: c code entry
* para: none
* ret: none
* modify:
* comment:
*********************************************************************************************/
int main(void)
{
volatile char input_char;
sys_init(); /* Initial 44B0X's Interrupt,Port and UART */
/******************/
/* user interface */
/******************/
uart_printf("------------------------------------------\n");
uart_printf(" Timer Test Example \n");
uart_printf("------------------------------------------\n");
do{
uart_printf("\n---------<<Timer0>> Test--------------\n");
uart_printf("Y/y to continue,any key to skip it.\n");
input_char = uart_getch();
if(input_char == 'Y' || input_char == 'y')
Test_Timer();
uart_printf("\n---------<<Watchdog Timer>> Test-----------\n");
uart_printf("Y/y to continue,any key to skip it.\n");
input_char = uart_getch();
if(input_char == 'Y' || input_char == 'y')
Test_WDTimer();
}while(uart_getch());
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -