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

📄 types.h

📁 PWM产生程序
💻 H
字号:
/* * libtu/types.h * * Copyright (c) Tuomo Valkonen 1999-2002.  * * You may distribute and modify this library under the terms of either * the Clarified Artistic License or the GNU LGPL, version 2.1 or later. */#ifndef LIBTU_TYPES_H#define LIBTU_TYPES_H#include <sys/types.h>#ifndef TRUE#define TRUE 1#endif#ifndef FALSE#define FALSE 0#endif#ifndef NULL#define NULL ((void*)0)#endif#ifndef LIBTU_TYPEDEF_UXXX /* All systems seem to define these whichever way they want to  * despite -D_*_SOURCE etc. so there is no easy way to know whether  * they can be typedef'd or not. Unless you want to go through using  * autoconf or similar methods. ==> Just stick to #define. :-(  */  #ifndef uchar#define uchar unsigned char#endif#ifndef ushort#define ushort unsigned short#endif#ifndef uint#define uint unsigned int#endif#ifndef ulong#define ulong unsigned long#endif#else /* LIBTU_TYPEDEF_UXXX */#ifndef uchartypedef unsigned char uchar;#endif#ifndef ushorttypedef unsigned short ushort;#endif#ifndef uinttypedef unsigned int uint;#endif#ifndef ulongtypedef unsigned long ulong;#endif #endif /* LIBTU_TYPEDEF_UXXX */#ifndef LIBTU_TYPEDEF_BOOL#ifndef bool#define bool int#endif #else /* LIBTU_TYPEDEF_BOOL */#ifndef booltypedef int bool;#endif #endif /* LIBTU_TYPEDEF_BOOL */#endif /* LIBTU_TYPES_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -