附上uart.h
#ifndef _UART__H
#define _UART__H
#define uint unsigned int
#define uchar unsigned char
void uart_init();//´®¿Ú³õʼ»¯º¯Êý
void uart_Interrupt();//´®¿ÚÖжϺ¯Êý
void Send(uint dat);//´®¿Ú×Ö·û·¢Ëͺ¯Êý
extern uint enable;//´®¿Ú¿ª¹Ø¿ØÖÆ룬1Ϊ´ò¿ª
#endif
附上adc.h
#ifndef _ADC__H
#define _ADC__H
#include
#include
#define uint unsigned int
#define uchar unsigned char
#define ad0_7 P1 //ADÊý¾Ý¿Ú
void start_ad(void);
unsigned int read_ad();
#endif
附上uart.h
#ifndef _UART__H
#define _UART__H
#define uint unsigned int
#define uchar unsigned char
void uart_init();//´®¿Ú³õʼ»¯º¯Êý
void uart_Interrupt();//´®¿ÚÖжϺ¯Êý
void Send(uint dat);//´®¿Ú×Ö·û·¢Ëͺ¯Êý
extern uint enable;//´®¿Ú¿ª¹Ø¿ØÖÆ룬1Ϊ´ò¿ª
#endif
附上adc.h
#ifndef _ADC__H
#define _ADC__H
#include
#include
#define uint unsigned int
#define uchar unsigned char
#define ad0_7 P1 //ADÊý¾Ý¿Ú
void start_ad(void);
unsigned int read_ad();
#endif
举报