Files

29 lines
448 B
C
Raw Permalink Normal View History

2025-03-18 19:34:19 +08:00
#ifndef __CONFIG_H__
#define __CONFIG_H__
#include "stdint.h"
2025-03-18 22:49:46 +08:00
// #define NDEBUG //取消断言
#include <assert.h> // 断言库
2025-03-18 19:34:19 +08:00
#include <intrins.h>
#include <STC15.H>
2025-03-18 22:49:46 +08:00
#define FOSC 30000000UL // 定义系统频率
2025-03-18 19:34:19 +08:00
typedef uint32_t u32;
typedef uint16_t u16;
typedef uint8_t u8;
#define True 1
#define False 0
2025-03-20 16:36:10 +08:00
//#define NULL 0
2025-03-18 22:49:46 +08:00
sbit SDA = P2 ^ 7;
sbit SCL = P2 ^ 6;
2025-03-18 19:34:19 +08:00
2025-03-21 03:21:53 +08:00
#define AUTO_STOP_POWER 1 // 自动停止功率阈值
2025-03-18 19:34:19 +08:00
#endif