#ifndef __IO_74HC595_H__
#define __IO_74HC595_H__
//#include <stdio.h>
#include "NUC1xx.h"
#include "Driver\DrvGPIO.h"
//#include "Driver\DrvI2C.h"
#include "Driver\DrvSYS.h"
#define SetBit_SER() DrvGPIO_SetBit(E_GPA,15) //595的数据为1
#define ClrBit_SER() DrvGPIO_ClrBit(E_GPA,15) //595的数据为0
#define SetBit_SRCLK() DrvGPIO_SetBit(E_GPA,13) //数据输入时钟线拉高
#define ClrBit_SRCLK() DrvGPIO_ClrBit(E_GPA,13) //数据输入时钟线拉低
#define SetBit_LATCLK() DrvGPIO_SetBit(E_GPA,14) //数据锁存时钟线拉高
#define ClrBit_LATCLK() DrvGPIO_ClrBit(E_GPA,14) //数据锁存时钟线拉低
extern uint32_t SendByte_Hc595(uint32_t dat);
#endif
|