📄 motolibs.h
字号:
#ifndef MOTO_LIB#define MOTO_LIB#define bool unsigned char#define true 1#define false 0#define byte unsigned char#define hword unsigned short#define word unsigned long#define typed_ptr(a,b) *((volatile a * ) (void * ) (b))#define byte_ptr(a) typed_ptr(byte,a)#define hword_ptr(a) typed_ptr(hword,a)#define word_ptr(a) typed_ptr(word,a)/* Convert number to a hexadecimal string. * num - number to convert * numstr - pointer to the buffer for the first character * chars - number of digits to use */void util_ui32_to_hexasc(word num, char * numstr, byte chars);/* Convert number to a decimal string. * num - number to convert * numstr - pointer to the buffer for the LAST character */char * util_ui32_to_decasc(word num, char * lastch);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -