📄 include.h
字号:
/*******************************************************************************************************
* This file shall be included in all source files (*.c). No other library inclusions are required. *
*******************************************************************************************************
* Compiler: AVR-GCC *
* Target platform: CCXX00 + any ATMEGA MCU *
* Author: WangChaoyan * *
*
*******************************************************************************************************/
#ifndef _INCLUDE_H
#define _INCLUDE_H
#include "common.h"
// Useful stuff
#define BM(n) (1 << (n))
#define BF(x,b,s) (((x) & (b)) >> (s))
#define MIN(n,m) (((n) < (m)) ? (n) : (m))
#define MAX(n,m) (((n) < (m)) ? (m) : (n))
#define ABS(n) ((n < 0) ? -(n) : (n))
// Dynamic function pointer
typedef void (*VFPTR)(void);
//-------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------
// Standard GCC include files for AVR
#include <avr/io.h>
#include <avr/pgmspace.h>
#include <avr/interrupt.h>
#include <string.h>
#include <avr/wdt.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include "hal_CCxx00DB.h"
// HAL include files
#include "hal.h"
#include "regssrf04.h"
#include "halsrf04.h"
//#define _DEBUG_
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -