Replacement for regular GPIO (DigitalIn, DigitalOut, DigitalInOut) classes which has superior speed. (modified for use opendrain in stm32)
Fork of FastIO by
Diff: FastIO_KLXX.h
- Revision:
- 2:1a6ed4b84590
- Parent:
- 0:d394ebd01052
--- a/FastIO_KLXX.h Wed Jul 02 06:01:51 2014 +0000 +++ b/FastIO_KLXX.h Fri Jul 04 17:28:45 2014 +0000 @@ -12,6 +12,7 @@ #define PCR ((__IO uint32_t*)(PORTA_BASE + pin)) #define INIT_PIN container.mask = PINMASK; pin_function(pin, 1) +#define DESTROY_PIN #define SET_DIR_INPUT (PORT_BASE->PDDR &= ~PINMASK) #define SET_DIR_OUTPUT (PORT_BASE->PDDR |= PINMASK)