⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 delay.h

📁 Sigma SMP8634 Mrua v. 2.8.2.0
💻 H
字号:
#ifndef __DELAY_H___#define __DELAY_H__#include "rmdef/rmdef.h"/* DELAY Method: * *  Assumes that the inner loop will take 2 cycles *    - 1 for conditional check *    - 1 for the increment. * *    Be careful.  This delay has potential overflow problems depending *    on the frequency of the CPU, ...  It is recommended to not exceed *    1000000 for the input argument (x) => 1 second worth of delay. */#define DELAY_US(x) delay_us(x);#define DELAY_MS(x)    DELAY_US((x*1000));void delay_set_cpu_freq_mhz(RMuint32 freq);void delay_us(RMuint32 period_us);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -