add LPC4337
Fork of FastIO by
Diff: FastIO_Unsupported.h
- Revision:
- 17:87872fcf8586
- Parent:
- 2:1a6ed4b84590
diff -r a56c0e7ebf7f -r 87872fcf8586 FastIO_Unsupported.h --- a/FastIO_Unsupported.h Sat Jul 11 14:27:43 2015 +0000 +++ b/FastIO_Unsupported.h Sat Jul 11 14:38:29 2015 +0000 @@ -4,15 +4,15 @@ DigitalInOut *_pin; } fastio_vars; -#define INIT_PIN container._pin = new DigitalInOut(pin) -#define DESTROY_PIN delete(container._pin) +#define INIT_PIN this->container._pin = new DigitalInOut(pin) +#define DESTROY_PIN delete(this->container._pin) -#define SET_DIR_INPUT container._pin->input() -#define SET_DIR_OUTPUT container._pin->output() -#define SET_MODE(pull) container._pin->mode(pull) +#define SET_DIR_INPUT this->container._pin->input() +#define SET_DIR_OUTPUT this->container._pin->output() +#define SET_MODE(pull) this->container._pin->mode(pull) -#define WRITE_PIN_SET container._pin->write(1) -#define WRITE_PIN_CLR container._pin->write(0) +#define WRITE_PIN_SET this->container._pin->write(1) +#define WRITE_PIN_CLR this->container._pin->write(0) -#define READ_PIN container._pin->read() +#define READ_PIN this->container._pin->read()