DigitalIoPin: Fine
This commit is contained in:
parent
c662936689
commit
8977eeb8f6
@ -7,10 +7,6 @@
|
|||||||
|
|
||||||
#include "DigitalIoPin.h"
|
#include "DigitalIoPin.h"
|
||||||
|
|
||||||
// Remove this when code will be reworked.
|
|
||||||
#ifndef DIGITALIOPIN_NOT_FIXED
|
|
||||||
// Remove this when code will be reworked.
|
|
||||||
|
|
||||||
DigitalIoPin::DigitalIoPin (int port, int pin, bool input, bool pullup,
|
DigitalIoPin::DigitalIoPin (int port, int pin, bool input, bool pullup,
|
||||||
bool invert)
|
bool invert)
|
||||||
{
|
{
|
||||||
@ -65,7 +61,3 @@ DigitalIoPin::write (bool value)
|
|||||||
assert (!(_io._input));
|
assert (!(_io._input));
|
||||||
Chip_GPIO_SetPinState (LPC_GPIO, _io._port, _io._pin, ((_io._invert) ? !value : value));
|
Chip_GPIO_SetPinState (LPC_GPIO, _io._port, _io._pin, ((_io._invert) ? !value : value));
|
||||||
}
|
}
|
||||||
|
|
||||||
//Remove this when code will be reworked.
|
|
||||||
#endif /* DIGITALIOPIN_NOT_FIXED */
|
|
||||||
//Remove this when code will be reworked.
|
|
||||||
|
|||||||
@ -8,11 +8,6 @@
|
|||||||
#ifndef DIGITALIOPIN_H_
|
#ifndef DIGITALIOPIN_H_
|
||||||
#define DIGITALIOPIN_H_
|
#define DIGITALIOPIN_H_
|
||||||
|
|
||||||
// Remove this when code will be reworked.
|
|
||||||
#define DIGITALIOPIN_NOT_FIXED
|
|
||||||
#ifndef DIGITALIOPIN_NOT_FIXED
|
|
||||||
// Remove this when code will be reworked.
|
|
||||||
|
|
||||||
#define UINT8_MAX_VALUE 255
|
#define UINT8_MAX_VALUE 255
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@ -45,8 +40,4 @@ private:
|
|||||||
void setIoPin ();
|
void setIoPin ();
|
||||||
};
|
};
|
||||||
|
|
||||||
//Remove this when code will be reworked.
|
|
||||||
#endif /* DIGITALIOPIN_NOT_FIXED */
|
|
||||||
//Remove this when code will be reworked.
|
|
||||||
|
|
||||||
#endif /* DIGITALIOPIN_H_ */
|
#endif /* DIGITALIOPIN_H_ */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user