資源簡介
RN8302官方應用程序V1.3
代碼片段和文件信息
typedef?unsigned?char?? u8;
typedef?signed?char?? s8;
typedef?unsigned?short?? u16;
typedef?signed?short?? s16;
typedef?unsigned?long?int?? u32;
typedef?signed?long?int?? s32;
typedef?unsigned?short??????WORD;
typedef unsigned?char BOOL;
#define?PinWrite_ADSCLK(x)?? (?(x)???(P0_bit.no6?=?1??PM0_bit.no6?=?1)?:?(PM0_bit.no6?=?0??P0_bit.no6?=?0)?) //
#define?PinMode_ADSCLK(x) (?(x?==?GPIO_MODE_OUT)???(PM0_bit.no6?=?0)?:?(PM0_bit.no6?=?1)?)
#define?PinRead_ADSDI() (P4_bit.no4)
#define?PinWrite_ADSDO(x)?? (?(x)???(P6_bit.no0?=?1??PM6_bit.no0?=?1)?:?(PM6_bit.no0?=?0??P6_bit.no0?=?0)?) //
#define?PinWrite_ADCS(x)?? (?(x)???(P6_bit.no1?=?1??PM6_bit.no1?=?1)?:?(PM6_bit.no1?=?0??P6_bit.no1?=?0??)?)
#define?PinWrite_ADRST(x)?? (?(x)???(P0_bit.no5?=?1??PM0_bit
評論
共有 條評論