IAR For AVR 精確延時
實現(xiàn)的方法:
本文引用地址:http://m.butianyuan.cn/article/201612/325109.htm建立一個delay.h的頭文件:
#ifndef __IAR_DELAY_H
#define __IAR_DELAY_H
#include
#define
#define
#define
#define
#endif
注意: __delay_cycles(x),x必須是常量或則是常量表達式,如果是變量則編譯報錯!
EEPW首頁 > 嵌入式系統(tǒng) > 設計應用 > IAR For AVR 精確延時
實現(xiàn)的方法:
本文引用地址:http://m.butianyuan.cn/article/201612/325109.htm建立一個delay.h的頭文件:
#ifndef __IAR_DELAY_H
#define __IAR_DELAY_H
#include
#define
#define
#define
#define
#endif
注意: __delay_cycles(x),x必須是常量或則是常量表達式,如果是變量則編譯報錯!
評論