motolibs.h

来自「A few drivers for the Motorola C380 s ce」· C头文件 代码 · 共 31 行

H
31
字号
#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 + =
减小字号Ctrl + -
显示快捷键?