- 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:
2019-03-29 21:33:32 +00:00
parent 3ff77ccb66
commit a7a46940b5
10 changed files with 119 additions and 86 deletions
+11 -9
View File
@@ -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)