mega8_0.h

来自「基于AVR平台的C语言开发」· C头文件 代码 · 共 33 行

H
33
字号
//mega8_0.h : header file for the mega8_0 project
//

#ifndef _MEGA8_0_H_
#define _MEGA8_0_H_

#ifndef __AVR_ATmega8__
#define __AVR_ATmega8__
#endif

#define __MCU_CLOCK_FREQUENCY__ _8.0000_MHz

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

/////////////////////////////////////////////////////////////////////////////
//mega8_0
/*
void led(void);
void led_red(void);
*/
unsigned char get_k(void);
void shuma(void);
void led_out(unsigned char a);
SIGNAL(SIG_INTERRUPT0);


#endif

⌨️ 快捷键说明

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