port._c
来自「使用Mega128单片机编写的液晶、串口、菜单的C程序。」· _C 代码 · 共 26 行
_C
26 行
#include <iom128v.h>
#include <macros.h>
#include "port.h"
#include "stdtypes.h"
void port_init(void)
{
PORTA = 0x00;
DDRA = 0xFF;
PORTB = 0x00;
DDRB = 0xFF;
PORTC = 0x10; //m103 output only
DDRC = 0x10;
PORTD = 0x00;
DDRD = 0x00;
PORTE = 0x00;
DDRE = 0x00;
PORTF = 0x04;
DDRF = 0x0C;
PORTG = 0x03;
DDRG = 0x03;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?