- adaptions to PCB Hend-Control, Rev.0
git-svn-id: http://moon:8086/svn/projects/HendiControl@152 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
@@ -10,11 +10,10 @@
|
||||
|
||||
void port_init()
|
||||
{
|
||||
DDRB = 0x03;
|
||||
DDRC = 0x01;
|
||||
PORTB = 0x03;
|
||||
PORTC = 0x01;
|
||||
|
||||
DDRD = 0xFC;
|
||||
DDRB = 0x06;
|
||||
PORTD = 0xC0;
|
||||
PORTB = 0x04;
|
||||
}
|
||||
|
||||
typedef struct _sPort_t
|
||||
@@ -26,11 +25,14 @@ typedef struct _sPort_t
|
||||
|
||||
const Port_t portItems[NUM_ITEMS] =
|
||||
{
|
||||
{0x05, 0, 1},
|
||||
{0x05, 1, 1},
|
||||
{0x05, 2, 1},
|
||||
{0x08, 0, 1},
|
||||
{0x06, 1, 1},
|
||||
{0x0B, 6, 1},
|
||||
{0x0B, 7, 1},
|
||||
{0x0B, 2, 1},
|
||||
{0x0B, 3, 1},
|
||||
{0x0B, 4, 1},
|
||||
{0x0B, 5, 1},
|
||||
{0x05, 1, 1},
|
||||
};
|
||||
|
||||
void portSet(int portItem, int enable)
|
||||
|
||||
Reference in New Issue
Block a user