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

📄 config.h

📁 在WinAVR下的ST7565圖形點陣的驅動程序
💻 H
字号:

//包含所需头文件
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <avr/io.h>
#include <avr/wdt.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>
#include <avr/pgmspace.h>
#include <compat/ina90.h>
#include <util/twi.h>
#include <util/delay.h>


/*------宏定义------*/
typedef signed char     int8;
typedef	unsigned char   uint8;
typedef signed int      int16;
typedef unsigned int    uint16;
typedef signed long     int32;
typedef unsigned long   uint32;

#define BIT(x)	(1<<(x))
#define NOP()	asm("nop")
#define WDR() 	asm("wdr")

#ifndef TRUE
	#define TRUE 	1
#endif

#ifndef FALSE
	#define FALSE	0
#endif

#ifndef OK
	#define OK		1
#endif

#ifndef NO_OK
	#define NO_OK		0
#endif


#define UART_BAUD_RATE  19200
#define UBRR_VALUE      ((F_CPU/16)/UART_BAUD_RATE-1)

#define FCLK_IO         (F_CPU)
#define TIMER0_TICK     0.01
#define TIMER0_DATA     (FCLK_IO*TIMER0_TICK/1024)


#define EE_D80_COCO    	0x10
#define EE_D80_MU_ID   	0x12

#define EE_VOLUME_STORE  0x20



#define USE_SOUND_EQ


/******************************************************************
 I/O Define
******************************************************************/


// System Flag Bits Define 
typedef struct
{
    unsigned RxValid    		:1;
    unsigned UartAcked  		:1;
    unsigned KeyValid   		:1;
	unsigned DARR80_InSync		:1;
    unsigned Unused     		:4;
} SysFlag_t;

extern SysFlag_t SysFlag;

extern uint8 KeyValue;

#include "Board_Func.h"
#include "ISR_Func.h"
//#include "iPodControl.h"
#include "LCD_ST7565.h"
#include "PushButtonProc.h"
//#include "FM_Func.h"
//#include "dsp_cs48540.h"
//#include "darr80_func.h"
//#include "SPDIF_cs8416.h"
//#include "soundseting.h"




⌨️ 快捷键说明

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