Now using the correct header file with all port definitions
This commit is contained in:
@@ -8,20 +8,13 @@
|
|||||||
//**********************************************************************
|
//**********************************************************************
|
||||||
//**********************************************************************
|
//**********************************************************************
|
||||||
|
|
||||||
#include <at89c55.h>
|
#include <at89c51ed2.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#define TICK_RATE 100
|
#define TICK_RATE 100
|
||||||
#define NPER (0x10000 - (20000000 / 12 / TICK_RATE))
|
#define NPER (0x10000 - (20000000 / 12 / TICK_RATE))
|
||||||
|
|
||||||
// Missing port definitions
|
|
||||||
__sbit __at (0xC4) P4_4;
|
|
||||||
__sbit __at (0xC3) P4_3;
|
|
||||||
__sbit __at (0xC2) P4_2;
|
|
||||||
__sbit __at (0xC1) P4_1;
|
|
||||||
__sbit __at (0xC0) P4_0;
|
|
||||||
|
|
||||||
// I/O definitions
|
// I/O definitions
|
||||||
#define BUTTON_1 P3_2
|
#define BUTTON_1 P3_2
|
||||||
#define BUTTON_2 P3_3
|
#define BUTTON_2 P3_3
|
||||||
|
Reference in New Issue
Block a user