Replacement for regular GPIO (DigitalIn, DigitalOut, DigitalInOut) classes which has superior speed. (modified for use opendrain in stm32)
Fork of FastIO by
Diff: FastIO_LPC81X.h
- Revision:
- 2:1a6ed4b84590
- Parent:
- 1:85a4a54f15e3
--- a/FastIO_LPC81X.h Wed Jul 02 06:01:51 2014 +0000 +++ b/FastIO_LPC81X.h Fri Jul 04 17:28:45 2014 +0000 @@ -12,6 +12,7 @@ static void gpio_enable(void); #define INIT_PIN container.mask = PINMASK; container.reg_in = &LPC_GPIO_PORT->PIN0; gpio_enable(); pin_function(pin, 0) +#define DESTROY_PIN #define SET_DIR_INPUT (LPC_GPIO_PORT->DIR0 &= ~PINMASK) #define SET_DIR_OUTPUT (LPC_GPIO_PORT->DIR0 |= PINMASK)