📄 m16io.c
字号:
#include <iom16v.h>
#include <macros.h>
#define PPA01 PORTA|=BIT(PA0)
#define PPA00 PORTA&=~BIT(PA0)
#define PPA11 PORTA|=BIT(PA1)
#define PPA10 PORTA&=~BIT(PA1)
#define PPA21 PORTA|=BIT(PA2)
#define PPA20 PORTA&=~BIT(PA2)
#define PPA31 PORTA|=BIT(PA3)
#define PPA30 PORTA&=~BIT(PA3)
#define PPA41 PORTA|=BIT(PA4)
#define PPA40 PORTA&=~BIT(PA4)
#define PPA51 PORTA|=BIT(PA5)
#define PPA50 PORTA&=~BIT(PA5)
#define PPA61 PORTA|=BIT(PA6)
#define PPA60 PORTA&=~BIT(PA6)
#define PPA71 PORTA|=BIT(PA7)
#define PPA70 PORTA&=~BIT(PA7)
#define PPB01 PORTB|=BIT(PB0)
#define PPB00 PORTB&=~BIT(PB0)
#define PPB11 PORTB|=BIT(PB1)
#define PPB10 PORTB&=~BIT(PB1)
#define PPB21 PORTB|=BIT(PB2)
#define PPB20 PORTB&=~BIT(PB2)
#define PPB31 PORTB|=BIT(PB3)
#define PPB30 PORTB&=~BIT(PB3)
#define PPB41 PORTB|=BIT(PB4)
#define PPB40 PORTB&=~BIT(PB4)
#define PPB51 PORTB|=BIT(PB5)
#define PPB50 PORTB&=~BIT(PB5)
#define PPB61 PORTB|=BIT(PB6)
#define PPB60 PORTB&=~BIT(PB6)
#define PPB71 PORTB|=BIT(PB7)
#define PPB70 PORTB&=~BIT(PB7)
#define PPC01 PORTC|=BIT(PC0)
#define PPC00 PORTC&=~BIT(PC0)
#define PPC11 PORTC|=BIT(PC1)
#define PPC10 PORTC&=~BIT(PC1)
#define PPC21 PORTC|=BIT(PC2)
#define PPC20 PORTC&=~BIT(PC2)
#define PPC31 PORTC|=BIT(PC3)
#define PPC30 PORTC&=~BIT(PC3)
#define PPC41 PORTC|=BIT(PC4)
#define PPC40 PORTC&=~BIT(PC4)
#define PPC51 PORTC|=BIT(PC5)
#define PPC50 PORTC&=~BIT(PC5)
#define PPC61 PORTC|=BIT(PC6)
#define PPC60 PORTC&=~BIT(PC6)
#define PPC71 PORTC|=BIT(PC7)
#define PPC70 PORTC&=~BIT(PC7)
#define PPD01 PORTD|=BIT(PD0)
#define PPD00 PORTD&=~BIT(PD0)
#define PPD11 PORTD|=BIT(PD1)
#define PPD10 PORTD&=~BIT(PD1)
#define PPD21 PORTD|=BIT(PD2)
#define PPD20 PORTD&=~BIT(PD2)
#define PPD31 PORTD|=BIT(PD3)
#define PPD30 PORTD&=~BIT(PD3)
#define PPD41 PORTD|=BIT(PD4)
#define PPD40 PORTD&=~BIT(PD4)
#define PPD51 PORTD|=BIT(PD5)
#define PPD50 PORTD&=~BIT(PD5)
#define PPD61 PORTD|=BIT(PD6)
#define PPD60 PORTD&=~BIT(PD6)
#define PPD71 PORTD|=BIT(PD7)
#define PPD70 PORTD&=~BIT(PD7)
#define DPA01 DDRA|=BIT(PA0)
#define DPA00 DDRA&=~BIT(PA0)
#define DPA11 DDRA|=BIT(PA1)
#define DPA10 DDRA&=~BIT(PA1)
#define DPA21 DDRA|=BIT(PA2)
#define DPA20 DDRA&=~BIT(PA2)
#define DPA31 DDRA|=BIT(PA3)
#define DPA30 DDRA&=~BIT(PA3)
#define DPA41 DDRA|=BIT(PA4)
#define DPA40 DDRA&=~BIT(PA4)
#define DPA51 DDRA|=BIT(PA5)
#define DPA50 DDRA&=~BIT(PA5)
#define DPA61 DDRA|=BIT(PA6)
#define DPA60 DDRA&=~BIT(PA6)
#define DPA71 DDRA|=BIT(PA7)
#define DPA70 DDRA&=~BIT(PA7)
#define DPB01 DBDR|=BIT(PB0)
#define DPB00 DDRB&=~BIT(PB0)
#define DPB11 DDRB|=BIT(PB1)
#define DPB10 DDRB&=~BIT(PB1)
#define DPB21 DDRB|=BIT(PB2)
#define DPB20 DDRB&=~BIT(PB2)
#define DPB31 DDRB|=BIT(PB3)
#define DPB30 DDRB&=~BIT(PB3)
#define DPB41 DDRB|=BIT(PB4)
#define DPB40 DDRB&=~BIT(PB4)
#define DPB51 DDRB|=BIT(PB5)
#define DPB50 DDRB&=~BIT(PB5)
#define DPB61 DDRB|=BIT(PB6)
#define DPB60 DDRB&=~BIT(PB6)
#define DPB71 DDRB|=BIT(PB7)
#define DPB70 DDRB&=~BIT(PB7)
#define DPC01 DDRC|=BIT(PC0)
#define DPC00 DDRC&=~BIT(PC0)
#define DPC11 DDRC|=BIT(PC1)
#define DPC10 DDRC&=~BIT(PC1)
#define DPC21 DDRC|=BIT(PC2)
#define DPC20 DDRC&=~BIT(PC2)
#define DPC31 DDRC|=BIT(PC3)
#define DPC30 DDRC&=~BIT(PC3)
#define DPC41 DDRC|=BIT(PC4)
#define DPC40 DDRC&=~BIT(PC4)
#define DPC51 DDRC|=BIT(PC5)
#define DPC50 DDRC&=~BIT(PC5)
#define DPC61 DDRC|=BIT(PC6)
#define DPC60 DDRC&=~BIT(PC6)
#define DPC71 DDRC|=BIT(PC7)
#define DPC70 DDRC&=~BIT(PC7)
#define DPD01 DDRD|=BIT(PD0)
#define DPD00 DDRD&=~BIT(PD0)
#define DPD11 DDRD|=BIT(PD1)
#define DPD10 DDRD&=~BIT(PD1)
#define DPD21 DDRD|=BIT(PD2)
#define DPD20 DDRD&=~BIT(PD2)
#define DPD31 DDRD|=BIT(PD3)
#define DPD30 DDRD&=~BIT(PD3)
#define DPD41 DDRD|=BIT(PD4)
#define DPD40 DDRD&=~BIT(PD4)
#define DPD51 DDRD|=BIT(PD5)
#define DPD50 DDRD&=~BIT(PD5)
#define DPD61 DDRD|=BIT(PD6)
#define DPD60 DDRD&=~BIT(PD6)
#define DPD71 DDRD|=BIT(PD7)
#define DPD70 DDRD&=~BIT(PD7)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -