⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 motolibs.h

📁 A few drivers for the Motorola C380 s celluar phone hardware with a simple test application. It s co
💻 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 + -