📄 tool.h
字号:
#ifndef _TOOL_H_
#define _TOOL_H_
#include <math.h>
void delay(int times); //延时函数(毫米)
unsigned long UART_HextoDec(const char *hex);
int UART_DectoHex(unsigned char decimal, char *hex);
int UART_DecaddrtoHexaddr(unsigned int decimaladdr, char *hexaddr);
unsigned int my_atoi(const char *hex);
int VALIDATION_isLeapYear(int year);
int VALIDATION_isDate(char *pDate);
int VALIDATION_isTime(char *pTime);
int select_num(char *temp);
int select_0x(char *temp);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -