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

📄 mos.h

📁 MANTIS是由科罗拉多大学开发的传感器网络嵌入式操作系统。 这是mantis的0.9.5版本的源码。
💻 H
字号:
//  This file is part of MANTIS OS, Operating System//  See http://mantis.cs.colorado.edu/////  Copyright (C) 2003,2004,2005 University of Colorado, Boulder////  This program is free software; you can redistribute it and/or//  modify it under the terms of the mos license (see file LICENSE)/** @file mos.h * @author Jeff Rose * @date 05/12/2004 * @brief Some system wide stuff that many files will want to include. */#ifndef _MOS_H_#define _MOS_H_#include <inttypes.h>#ifndef SCONS#include "config.h"#endif#ifdef ARCH_AVR#include <avr/io.h>#include <avr/signal.h>#include <avr/interrupt.h>#include <avr/pgmspace.h>#endif#ifdef PLATFORM_TELOSB#include <io.h>#endif#ifdef ARCH_MICRO#include "plat_dep.h"#ifdef _STDIO_H_#error "Do not include stdio.h, use printf.h for printf()"#endif// we really don't want to include stdio.h#define _STDIO_H_typedef uint8_t boolean;/* Define some functions for easier I/O. */#else#include <stdbool.h>typedef uint8_t boolean;#endif#ifndef TRUE#define TRUE  1#endif#ifndef true#define true  1#endif#ifndef FALSE#define FALSE 0#endif#ifndef false#define false 0#endif#ifndef NULL#define NULL 0#endif/* Uncomment the following line and recompile MOS if you do not want MOS to use * dynamically-allocated memory. *///#define MOS_NO_USE_DYNAMIC_MEMORY/* Uncomment to enable functions for debugging locks in multithreaded programs. *///#define DEBUG_LOCKING#endif

⌨️ 快捷键说明

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