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

📄 led_flash.h

📁 这是应用在AVR单片机上的小型操作系统。在任务级别运行。成功运行在ATmega16上。
💻 H
字号:
//LED_FLASH.h : header file for the MySch project
//
///////////////////////////////////////////////////////
//用于测试闪灯代码

//#ifndef _LED_FLASH_H_
//#define _LED_FLASH_H_

#ifndef __AVR_ATmega16__
#define __AVR_ATmega16__
#endif


#include <io.h>
#include <wdt.h>
#include <sleep.h>
#include <Interrupt.h>
#include <sig-avr.h>
#include <inttypes.h>

/////////////////////////////////////////////////////////////////////////////
//MySch


// Misc #defines
#define LED_ON sbi(PORTB,0)
#define LED_OFF cbi(PORTB,0)
#define LED_ON1 sbi(PORTB,1)
#define LED_OFF1 cbi(PORTB,1)

⌨️ 快捷键说明

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