head._h

来自「一个单片机的完整开发程序AVR的」· _H 代码 · 共 13 行

_H
13
字号
#include <iom8v.h>
#include <macros.h>

#define work_state() PORTC|=BIT(PC4)         //pwr=1: the RF in work state
#define wait_state() PORTC&=~BIT(PC4)        //pwr=0: the RF in wait state
#define send_state() PORTC|=BIT(PC2)         //txen=1:the RF in send state 
#define rece_state() PORTC&=~BIT(PC2)        //txen=0:the RF in receive state 
#define set_wr       PORTB|=BIT(PB4)			     //wr  =PB4
#define clr_wr       PORTB&=~BIT(PB4)   					
#define set_data     PORTB|=BIT(PB3)				//data=PB3
#define clr_data 	 PORTB&=~BIT(PB3)							
#define set_cs   	 PORTD|=BIT(PD7)				//cs  =PD7	
#define clr_cs   	 PORTD&=~BIT(PD7)

⌨️ 快捷键说明

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