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

📄 main.h

📁 modbus RTU 的AVR单片机C语言程序。 单片机mega16,编译器ICCAVR。
💻 H
字号:
//ICC-AVR application builder : 2004-10-27 10:06:29
// Target : M16
// Crystal: 8.0000Mhz

#include <iom16v.h>
#include <macros.h>
#include "eeprom.h"
#include "stdio.h"
#include "string.h"
#include <math.h>

typedef unsigned char	uint8;
typedef signed	 char 	int8;
typedef unsigned int	uint16;
typedef signed 	 int	int16;
typedef unsigned long	uint32;
typedef signed	 long	int32;

#define	sendEnable()	(PORTB |= BIT(7))
#define receEnable()	(PORTB &= ~BIT(7))

#define	blinkLed()		(PORTB ^= BIT(6))

//main.c
extern uint32 tickCount;

//function
//init.c
void varInit(void);
void port_init(void);
void init_devices(void);


#include "modbus16.h"

⌨️ 快捷键说明

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