本帖最后由 tear086 于 2011-4-4 00:24 编辑
寄存器的设置是参考应用笔记和TRM做得。现在还没有对ADC的输出做滤波。- #ifndef __MAIN_H__
- #define __MAIN_H__
- #include <stdio.h>
- /*********************************************************
- * 系统寄存器映射及库头文件
- *********************************************************/
- #include "NUC1xx.h" // 系统寄存器映射
- #include "DrvSYS.h"
- #include "DrvGPIO.h"
- #include "DrvUART.h"
- /**********************************************************
- * 自定义头文件
- **********************************************************/
- /**********************************************************
- * 自定义宏
- **********************************************************/
- #define APP_DEBUG
- #ifdef APP_DEBUG
- #define PRINT printf
- #else
- #define PRINT
- #endif
- #endif /* __MAIN_H__ */
|