1. 讀取半字(16位)函數(shù)//讀取指定地址的半字(16位數(shù)據(jù))//faddr:讀地址(此地址必須為2的倍數(shù)!!)//返回值:對應(yīng)數(shù)據(jù).u16 STMFLASH_ReadHalfWord(u32 faddr){return *(vu16*)faddr;}2. 不進(jìn)行檢查的直接寫入//不檢查的
file://---by 變成浪子//mega16 7.3728MHz石英晶體 iCCavr6.31a//相關(guān)定義:#define uint unsigned int#define uchar unsigned char#define DS1302_RST 0 //pc0#define DS1
file://---by 變成浪子//mega16 7.3728MHz石英晶體 iCCavr6.31a//相關(guān)定義:#define uint unsigned int#define uchar unsigned char#define DS1302_RST 0 //pc0#define DS1