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

📄 main.h

📁 LED条屏显示程序,但是对初学者
💻 H
字号:
//ICC-AVR application builder : 2005-11-12 17:11:59
// Target : M16
// Crystal: 8.0000Mhz
// copyright:鲁军波(endylu)
// www.shop34612283.taobao.com
// www.adembed.com

#ifndef MAIN_H
#define MAIN_H

typedef unsigned char       uint8;
typedef unsigned int        uint16;
typedef unsigned long int   uint32;

#define WDP0         0
#define WDP1         1
#define WDP2         2
#define WDE          3

typedef struct FAT_information{
uint8 Relative;               //BPB前的空扇区      不定
uint8 BPB_SecPerClus;         //每簇的扇区数;     不定
uint8 BPB_RsvdSecCnt;         //保留扇区中保留扇区的数目
                              //(FAT12/FAT16保留扇区必须为1,有过2的了;FAT32典型值为32);
uint16 Firstgengmulu;         //根目录首首扇区号
uint16 FirstDateSecter;       //族2的第一个扇区扇区号;

}FAT_INFO;

typedef struct MP3_information{

uint16 NAME[26];
uint8 Name_number;            //长文件名长度
//uint8 DIR_Name[8];            //短文件名
uint8 DIR_FstClusL[2];        //开始簇的簇号(对于FAT16)
uint8 DIR_Filesize[2];        //文件大小 

}MP3_INFO;


#include "SD.h"
#include "FAT.h"
#include "i2c.h"
#include "sta013.h"
#include "key.h"
#include "3310.h"
#include "1770.h"
#include "task.h"
#include "EEPROM.h"
#include "chinese_code.h"

void Delay_us(uint16 time);
void Delay_ms(uint16 time);
void uart_init(void);
void ASCII(uint8 *b,uint8 n);
void main_init(void);

#endif

⌨️ 快捷键说明

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