You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
569 B
39 lines
569 B
#include "stdafx.h"
|
|
#include "ports.h"
|
|
|
|
void Port_Init( void )
|
|
{
|
|
XBYTE SFRPAGE_SAVE = SFRPAGE;
|
|
|
|
SFRPAGE = CONFIG_PAGE;
|
|
|
|
XBR0 = 0x00;
|
|
XBR1 = 0x00;
|
|
XBR2 = 0x40;
|
|
|
|
P0MDOUT = 0x00;
|
|
P0 = ~P0MDOUT;
|
|
|
|
P1MDOUT = 0x00;
|
|
P1 = ~P1MDOUT;
|
|
|
|
P2MDOUT = 0x00;
|
|
P2 = ~P2MDOUT;
|
|
|
|
P3MDOUT = 0x00;
|
|
P3 = ~P3MDOUT;
|
|
|
|
P4MDOUT = 0x00;
|
|
P4 = ~P4MDOUT;
|
|
|
|
P5MDOUT = 0x00;
|
|
P5 = ~P5MDOUT;
|
|
|
|
P6MDOUT = 0x00;
|
|
P6 = ~P6MDOUT;
|
|
|
|
P7MDOUT = 0x00;
|
|
P7 = ~P7MDOUT;
|
|
|
|
SFRPAGE = SFRPAGE_SAVE;
|
|
}
|