Go to the source code of this file.
Macros | |
#define | PA0_INPUT_ENABLE 0 |
#define | PA1_INPUT_ENABLE 0 |
#define | PA2_INPUT_ENABLE 0 |
#define | PA3_INPUT_ENABLE 0 |
#define | PA4_INPUT_ENABLE 0 |
#define | PA5_INPUT_ENABLE 0 |
#define | PA6_INPUT_ENABLE 0 |
#define | PA7_INPUT_ENABLE 1 |
#define | PA0_OUTPUT_ENABLE 0 |
#define | PA1_OUTPUT_ENABLE 0 |
#define | PA2_OUTPUT_ENABLE 0 |
#define | PA3_OUTPUT_ENABLE 0 |
#define | PA4_OUTPUT_ENABLE 0 |
#define | PA5_OUTPUT_ENABLE 0 |
#define | PA6_OUTPUT_ENABLE 0 |
#define | PA7_OUTPUT_ENABLE 0 |
#define | PA0_DATA_STRENGTH 1 |
#define | PA1_DATA_STRENGTH 1 |
#define | PA2_DATA_STRENGTH 1 |
#define | PA3_DATA_STRENGTH 1 |
#define | PA4_DATA_STRENGTH 1 |
#define | PA5_DATA_STRENGTH 1 |
#define | PA6_DATA_STRENGTH 1 |
#define | PA7_DATA_STRENGTH 1 |
#define | PA0_DATA_OUT 0 |
#define | PA1_DATA_OUT 0 |
#define | PA2_DATA_OUT 0 |
#define | PA3_DATA_OUT 0 |
#define | PA4_DATA_OUT 0 |
#define | PA5_DATA_OUT 0 |
#define | PA6_DATA_OUT 0 |
#define | PA7_DATA_OUT 0 |
#define | PA0_FUNC AS_GPIO |
#define | PA1_FUNC AS_GPIO |
#define | PA2_FUNC AS_GPIO |
#define | PA3_FUNC AS_GPIO |
#define | PA4_FUNC AS_GPIO |
#define | PA5_FUNC AS_GPIO |
#define | PA6_FUNC AS_GPIO |
#define | PA7_FUNC AS_SWIRE |
#define | PULL_WAKEUP_SRC_PA0 0 |
#define | PULL_WAKEUP_SRC_PA1 0 |
#define | PULL_WAKEUP_SRC_PA2 0 |
#define | PULL_WAKEUP_SRC_PA3 0 |
#define | PULL_WAKEUP_SRC_PA4 0 |
#define | PULL_WAKEUP_SRC_PA5 0 |
#define | PULL_WAKEUP_SRC_PA6 0 |
#define | PULL_WAKEUP_SRC_PA7 PM_PIN_PULLUP_1M |
#define | PB0_INPUT_ENABLE 0 |
#define | PB1_INPUT_ENABLE 0 |
#define | PB2_INPUT_ENABLE 0 |
#define | PB3_INPUT_ENABLE 0 |
#define | PB4_INPUT_ENABLE 0 |
#define | PB5_INPUT_ENABLE 0 |
#define | PB6_INPUT_ENABLE 0 |
#define | PB7_INPUT_ENABLE 0 |
#define | PB0_OUTPUT_ENABLE 0 |
#define | PB1_OUTPUT_ENABLE 0 |
#define | PB2_OUTPUT_ENABLE 0 |
#define | PB3_OUTPUT_ENABLE 0 |
#define | PB4_OUTPUT_ENABLE 0 |
#define | PB5_OUTPUT_ENABLE 0 |
#define | PB6_OUTPUT_ENABLE 0 |
#define | PB7_OUTPUT_ENABLE 0 |
#define | PB0_DATA_STRENGTH 1 |
#define | PB1_DATA_STRENGTH 1 |
#define | PB2_DATA_STRENGTH 1 |
#define | PB3_DATA_STRENGTH 1 |
#define | PB4_DATA_STRENGTH 1 |
#define | PB5_DATA_STRENGTH 1 |
#define | PB6_DATA_STRENGTH 1 |
#define | PB7_DATA_STRENGTH 1 |
#define | PB0_DATA_OUT 0 |
#define | PB1_DATA_OUT 0 |
#define | PB2_DATA_OUT 0 |
#define | PB3_DATA_OUT 0 |
#define | PB4_DATA_OUT 0 |
#define | PB5_DATA_OUT 0 |
#define | PB6_DATA_OUT 0 |
#define | PB7_DATA_OUT 0 |
#define | PB0_FUNC AS_GPIO |
#define | PB1_FUNC AS_GPIO |
#define | PB2_FUNC AS_GPIO |
#define | PB3_FUNC AS_GPIO |
#define | PB4_FUNC AS_GPIO |
#define | PB5_FUNC AS_GPIO |
#define | PB6_FUNC AS_GPIO |
#define | PB7_FUNC AS_GPIO |
#define | PULL_WAKEUP_SRC_PB0 0 |
#define | PULL_WAKEUP_SRC_PB1 0 |
#define | PULL_WAKEUP_SRC_PB2 0 |
#define | PULL_WAKEUP_SRC_PB3 0 |
#define | PULL_WAKEUP_SRC_PB4 0 |
#define | PULL_WAKEUP_SRC_PB5 0 |
#define | PULL_WAKEUP_SRC_PB6 0 |
#define | PULL_WAKEUP_SRC_PB7 0 |
#define | PC0_INPUT_ENABLE 0 |
#define | PC1_INPUT_ENABLE 0 |
#define | PC2_INPUT_ENABLE 0 |
#define | PC3_INPUT_ENABLE 0 |
#define | PC4_INPUT_ENABLE 0 |
#define | PC5_INPUT_ENABLE 0 |
#define | PC6_INPUT_ENABLE 0 |
#define | PC7_INPUT_ENABLE 0 |
#define | PC0_OUTPUT_ENABLE 0 |
#define | PC1_OUTPUT_ENABLE 0 |
#define | PC2_OUTPUT_ENABLE 0 |
#define | PC3_OUTPUT_ENABLE 0 |
#define | PC4_OUTPUT_ENABLE 0 |
#define | PC5_OUTPUT_ENABLE 0 |
#define | PC6_OUTPUT_ENABLE 0 |
#define | PC7_OUTPUT_ENABLE 0 |
#define | PC0_DATA_STRENGTH 1 |
#define | PC1_DATA_STRENGTH 1 |
#define | PC2_DATA_STRENGTH 1 |
#define | PC3_DATA_STRENGTH 1 |
#define | PC4_DATA_STRENGTH 1 |
#define | PC5_DATA_STRENGTH 1 |
#define | PC6_DATA_STRENGTH 1 |
#define | PC7_DATA_STRENGTH 1 |
#define | PC0_DATA_OUT 0 |
#define | PC1_DATA_OUT 0 |
#define | PC2_DATA_OUT 0 |
#define | PC3_DATA_OUT 0 |
#define | PC4_DATA_OUT 0 |
#define | PC5_DATA_OUT 0 |
#define | PC6_DATA_OUT 0 |
#define | PC7_DATA_OUT 0 |
#define | PC0_FUNC AS_GPIO |
#define | PC1_FUNC AS_GPIO |
#define | PC2_FUNC AS_GPIO |
#define | PC3_FUNC AS_GPIO |
#define | PC4_FUNC AS_GPIO |
#define | PC5_FUNC AS_GPIO |
#define | PC6_FUNC AS_GPIO |
#define | PC7_FUNC AS_GPIO |
#define | PULL_WAKEUP_SRC_PC0 0 |
#define | PULL_WAKEUP_SRC_PC1 0 |
#define | PULL_WAKEUP_SRC_PC2 0 |
#define | PULL_WAKEUP_SRC_PC3 0 |
#define | PULL_WAKEUP_SRC_PC4 0 |
#define | PULL_WAKEUP_SRC_PC5 0 |
#define | PULL_WAKEUP_SRC_PC6 0 |
#define | PULL_WAKEUP_SRC_PC7 0 |
#define | PD0_INPUT_ENABLE 0 |
#define | PD1_INPUT_ENABLE 0 |
#define | PD2_INPUT_ENABLE 0 |
#define | PD3_INPUT_ENABLE 0 |
#define | PD4_INPUT_ENABLE 0 |
#define | PD5_INPUT_ENABLE 0 |
#define | PD6_INPUT_ENABLE 0 |
#define | PD7_INPUT_ENABLE 0 |
#define | PD0_OUTPUT_ENABLE 0 |
#define | PD1_OUTPUT_ENABLE 0 |
#define | PD2_OUTPUT_ENABLE 0 |
#define | PD3_OUTPUT_ENABLE 0 |
#define | PD4_OUTPUT_ENABLE 0 |
#define | PD5_OUTPUT_ENABLE 0 |
#define | PD6_OUTPUT_ENABLE 0 |
#define | PD7_OUTPUT_ENABLE 0 |
#define | PD0_DATA_STRENGTH 1 |
#define | PD1_DATA_STRENGTH 1 |
#define | PD2_DATA_STRENGTH 1 |
#define | PD3_DATA_STRENGTH 1 |
#define | PD4_DATA_STRENGTH 1 |
#define | PD5_DATA_STRENGTH 1 |
#define | PD6_DATA_STRENGTH 1 |
#define | PD7_DATA_STRENGTH 1 |
#define | PD0_DATA_OUT 0 |
#define | PD1_DATA_OUT 0 |
#define | PD2_DATA_OUT 0 |
#define | PD3_DATA_OUT 0 |
#define | PD4_DATA_OUT 0 |
#define | PD5_DATA_OUT 0 |
#define | PD6_DATA_OUT 0 |
#define | PD7_DATA_OUT 0 |
#define | PD0_FUNC AS_GPIO |
#define | PD1_FUNC AS_GPIO |
#define | PD2_FUNC AS_GPIO |
#define | PD3_FUNC AS_GPIO |
#define | PD4_FUNC AS_GPIO |
#define | PD5_FUNC AS_GPIO |
#define | PD6_FUNC AS_GPIO |
#define | PD7_FUNC AS_GPIO |
#define | PULL_WAKEUP_SRC_PD0 0 |
#define | PULL_WAKEUP_SRC_PD1 0 |
#define | PULL_WAKEUP_SRC_PD2 0 |
#define | PULL_WAKEUP_SRC_PD3 0 |
#define | PULL_WAKEUP_SRC_PD4 0 |
#define | PULL_WAKEUP_SRC_PD5 0 |
#define | PULL_WAKEUP_SRC_PD6 0 |
#define | PULL_WAKEUP_SRC_PD7 0 |
#define | PE0_INPUT_ENABLE 1 |
#define | PE1_INPUT_ENABLE 1 |
#define | PE2_INPUT_ENABLE 1 |
#define | PE3_INPUT_ENABLE 1 |
#define | PE0_OUTPUT_ENABLE 0 |
#define | PE1_OUTPUT_ENABLE 0 |
#define | PE2_OUTPUT_ENABLE 0 |
#define | PE3_OUTPUT_ENABLE 0 |
#define | PE0_DATA_STRENGTH 1 |
#define | PE1_DATA_STRENGTH 1 |
#define | PE2_DATA_STRENGTH 1 |
#define | PE3_DATA_STRENGTH 1 |
#define | PE0_DATA_OUT 0 |
#define | PE1_DATA_OUT 0 |
#define | PE2_DATA_OUT 0 |
#define | PE3_DATA_OUT 0 |
#define | PE0_FUNC AS_MSPI |
#define | PE1_FUNC AS_MSPI |
#define | PE2_FUNC AS_MSPI |
#define | PE3_FUNC AS_MSPI |
#define | GPIO_PA0_PULL_FLOAT do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val &= ~0x03; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
Define GPIO setting. More... | |
#define | GPIO_PA0_PULL_UP_1M do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val &= ~0x02; val |= 0x01; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define | GPIO_PA0_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val |= 0x02; val &= ~0x01; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define | GPIO_PA0_PULL_UP_10K do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val |= 0x03; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define | GPIO_PA0_PULL_TOGGLE do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val ^= 0x01; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define | GPIO_PA1_PULL_FLOAT do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val &= ~0x0C; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define | GPIO_PA1_PULL_UP_1M do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val &= ~0x08; val |= 0x04; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define | GPIO_PA1_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val |= 0x08; val &= ~0x04; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define | GPIO_PA1_PULL_UP_10K do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val |= 0x0C; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define | GPIO_PA1_PULL_TOGGLE do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val ^= 0x04; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define | GPIO_PA2_PULL_FLOAT do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val &= ~0x30; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define | GPIO_PA2_PULL_UP_1M do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val &= ~0x20; val |= 0x10; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define | GPIO_PA2_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val |= 0x20; val &= ~0x10; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define | GPIO_PA2_PULL_UP_10K do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val |= 0x30; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define | GPIO_PA2_PULL_TOGGLE do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val ^= 0x10; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define | GPIO_PA3_PULL_FLOAT do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val &= ~0xC0; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define | GPIO_PA3_PULL_UP_1M do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val &= ~0x80; val |= 0x40; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define | GPIO_PA3_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val |= 0x80; val &= ~0x40; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define | GPIO_PA3_PULL_UP_10K do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val |= 0xC0; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define | GPIO_PA3_PULL_TOGGLE do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val ^= 0x40; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define | GPIO_PA4_PULL_FLOAT do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val &= ~0x03; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PA4_PULL_UP_1M do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val &= ~0x02; val |= 0x01; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PA4_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val |= 0x02; val &= ~0x01; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PA4_PULL_UP_10K do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val |= 0x03; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PA4_PULL_TOGGLE do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val ^= 0x01; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PA5_PULL_FLOAT do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val &= ~0x0C; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PA5_PULL_UP_1M do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val &= ~0x08; val |= 0x04; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PA5_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val |= 0x08; val &= ~0x04; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PA5_PULL_UP_10K do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val |= 0x0C; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PA5_PULL_TOGGLE do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val ^= 0x04; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PA6_PULL_FLOAT do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val &= ~0x30; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PA6_PULL_UP_1M do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val &= ~0x20; val |= 0x10; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PA6_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val |= 0x20; val &= ~0x10; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PA6_PULL_UP_10K do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val |= 0x30; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PA6_PULL_TOGGLE do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val ^= 0x10; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PA7_PULL_FLOAT do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val &= ~0xC0; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PA7_PULL_UP_1M do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val &= ~0x80; val |= 0x40; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PA7_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val |= 0x80; val &= ~0x40; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PA7_PULL_UP_10K do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val |= 0xC0; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PA7_PULL_TOGGLE do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val ^= 0x40; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define | GPIO_PB0_PULL_FLOAT do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val &= ~0x03; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB0_PULL_UP_1M do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val &= ~0x02; val |= 0x01; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB0_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val |= 0x02; val &= ~0x01; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB0_PULL_UP_10K do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val |= 0x03; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB0_PULL_TOGGLE do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val ^= 0x01; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB1_PULL_FLOAT do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val &= ~0x0C; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB1_PULL_UP_1M do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val &= ~0x08; val |= 0x04; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB1_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val |= 0x08; val &= ~0x04; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB1_PULL_UP_10K do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val |= 0x0C; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB1_PULL_TOGGLE do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val ^= 0x04; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB2_PULL_FLOAT do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val &= ~0x30; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB2_PULL_UP_1M do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val &= ~0x20; val |= 0x10; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB2_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val |= 0x20; val &= ~0x10; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB2_PULL_UP_10K do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val |= 0x30; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB2_PULL_TOGGLE do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val ^= 0x10; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB3_PULL_FLOAT do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val &= ~0xC0; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB3_PULL_UP_1M do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val &= ~0x80; val |= 0x40; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB3_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val |= 0x80; val &= ~0x40; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB3_PULL_UP_10K do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val |= 0xC0; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB3_PULL_TOGGLE do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val ^= 0x40; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define | GPIO_PB4_PULL_FLOAT do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val &= ~0x03; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PB4_PULL_UP_1M do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val &= ~0x02; val |= 0x01; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PB4_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val |= 0x02; val &= ~0x01; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PB4_PULL_UP_10K do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val |= 0x03; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PB4_PULL_TOGGLE do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val ^= 0x01; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PB5_PULL_FLOAT do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val &= ~0x0C; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PB5_PULL_UP_1M do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val &= ~0x08; val |= 0x04; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PB5_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val |= 0x08; val &= ~0x04; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PB5_PULL_UP_10K do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val |= 0x0C; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PB5_PULL_TOGGLE do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val ^= 0x04; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PB6_PULL_FLOAT do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val &= ~0x30; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PB6_PULL_UP_1M do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val &= ~0x20; val |= 0x10; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PB6_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val |= 0x20; val &= ~0x10; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PB6_PULL_UP_10K do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val |= 0x30; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PB6_PULL_TOGGLE do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val ^= 0x10; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PB7_PULL_FLOAT do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val &= ~0xC0; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PB7_PULL_UP_1M do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val &= ~0x80; val |= 0x40; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PB7_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val |= 0x80; val &= ~0x40; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PB7_PULL_UP_10K do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val |= 0xC0; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PB7_PULL_TOGGLE do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val ^= 0x40; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define | GPIO_PC0_PULL_FLOAT do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val &= ~0x03; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC0_PULL_UP_1M do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val &= ~0x02; val |= 0x01; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC0_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val |= 0x02; val &= ~0x01; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC0_PULL_UP_10K do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val |= 0x03; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC0_PULL_TOGGLE do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val ^= 0x01; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC1_PULL_FLOAT do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val &= ~0x0C; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC1_PULL_UP_1M do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val &= ~0x08; val |= 0x04; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC1_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val |= 0x08; val &= ~0x04; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC1_PULL_UP_10K do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val |= 0x0C; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC1_PULL_TOGGLE do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val ^= 0x04; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC2_PULL_FLOAT do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val &= ~0x30; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC2_PULL_UP_1M do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val &= ~0x20; val |= 0x10; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC2_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val |= 0x20; val &= ~0x10; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC2_PULL_UP_10K do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val |= 0x30; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC2_PULL_TOGGLE do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val ^= 0x10; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC3_PULL_FLOAT do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val &= ~0xC0; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC3_PULL_UP_1M do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val &= ~0x80; val |= 0x40; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC3_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val |= 0x80; val &= ~0x40; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC3_PULL_UP_10K do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val |= 0xC0; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC3_PULL_TOGGLE do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val ^= 0x40; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define | GPIO_PC4_PULL_FLOAT do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val &= ~0x03; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PC4_PULL_UP_1M do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val &= ~0x02; val |= 0x01; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PC4_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val |= 0x02; val &= ~0x01; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PC4_PULL_UP_10K do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val |= 0x03; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PC4_PULL_TOGGLE do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val ^= 0x01; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PC5_PULL_FLOAT do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val &= ~0x0C; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PC5_PULL_UP_1M do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val &= ~0x08; val |= 0x04; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PC5_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val |= 0x08; val &= ~0x04; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PC5_PULL_UP_10K do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val |= 0x0C; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PC5_PULL_TOGGLE do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val ^= 0x04; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PC6_PULL_FLOAT do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val &= ~0x30; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PC6_PULL_UP_1M do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val &= ~0x20; val |= 0x10; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PC6_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val |= 0x20; val &= ~0x10; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PC6_PULL_UP_10K do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val |= 0x30; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PC6_PULL_TOGGLE do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val ^= 0x10; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PC7_PULL_FLOAT do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val &= ~0xC0; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PC7_PULL_UP_1M do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val &= ~0x80; val |= 0x40; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PC7_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val |= 0x80; val &= ~0x40; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PC7_PULL_UP_10K do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val |= 0xC0; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PC7_PULL_TOGGLE do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val ^= 0x40; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define | GPIO_PD0_PULL_FLOAT do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val &= ~0x03; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD0_PULL_UP_1M do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val &= ~0x02; val |= 0x01; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD0_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val |= 0x02; val &= ~0x01; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD0_PULL_UP_10K do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val |= 0x03; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD0_PULL_TOGGLE do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val ^= 0x01; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD1_PULL_FLOAT do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val &= ~0x0C; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD1_PULL_UP_1M do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val &= ~0x08; val |= 0x04; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD1_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val |= 0x08; val &= ~0x04; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD1_PULL_UP_10K do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val |= 0x0C; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD1_PULL_TOGGLE do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val ^= 0x04; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD2_PULL_FLOAT do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val &= ~0x30; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD2_PULL_UP_1M do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val &= ~0x20; val |= 0x10; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD2_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val |= 0x20; val &= ~0x10; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD2_PULL_UP_10K do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val |= 0x30; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD2_PULL_TOGGLE do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val ^= 0x10; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD3_PULL_FLOAT do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val &= ~0xC0; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD3_PULL_UP_1M do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val &= ~0x80; val |= 0x40; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD3_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val |= 0x80; val &= ~0x40; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD3_PULL_UP_10K do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val |= 0xC0; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD3_PULL_TOGGLE do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val ^= 0x40; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define | GPIO_PD4_PULL_FLOAT do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val &= ~0x03; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PD4_PULL_UP_1M do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val &= ~0x02; val |= 0x01; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PD4_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val |= 0x02; val &= ~0x01; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PD4_PULL_UP_10K do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val |= 0x03; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PD4_PULL_TOGGLE do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val ^= 0x01; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PD5_PULL_FLOAT do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val &= ~0x0C; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PD5_PULL_UP_1M do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val &= ~0x08; val |= 0x04; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PD5_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val |= 0x08; val &= ~0x04; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PD5_PULL_UP_10K do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val |= 0x0C; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PD5_PULL_TOGGLE do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val ^= 0x04; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PD6_PULL_FLOAT do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val &= ~0x30; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PD6_PULL_UP_1M do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val &= ~0x20; val |= 0x10; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PD6_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val |= 0x20; val &= ~0x10; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PD6_PULL_UP_10K do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val |= 0x30; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PD6_PULL_TOGGLE do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val ^= 0x10; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PD7_PULL_FLOAT do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val &= ~0xC0; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PD7_PULL_UP_1M do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val &= ~0x80; val |= 0x40; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PD7_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val |= 0x80; val &= ~0x40; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PD7_PULL_UP_10K do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val |= 0xC0; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PD7_PULL_TOGGLE do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val ^= 0x40; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define | GPIO_PA0_OUTPUT_LOW ( (*(volatile unsigned char *)0x800583) &= (~0x01) ) |
#define | GPIO_PA0_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800583) |= 0x01 ) |
#define | GPIO_PA0_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800583) ^= 0x01 ) |
#define | GPIO_PA1_OUTPUT_LOW ( (*(volatile unsigned char *)0x800583) &= (~0x02) ) |
#define | GPIO_PA1_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800583) |= 0x02 ) |
#define | GPIO_PA1_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800583) ^= 0x02 ) |
#define | GPIO_PA2_OUTPUT_LOW ( (*(volatile unsigned char *)0x800583) &= (~0x04) ) |
#define | GPIO_PA2_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800583) |= 0x04 ) |
#define | GPIO_PA2_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800583) ^= 0x04 ) |
#define | GPIO_PA3_OUTPUT_LOW ( (*(volatile unsigned char *)0x800583) &= (~0x08) ) |
#define | GPIO_PA3_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800583) |= 0x08 ) |
#define | GPIO_PA3_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800583) ^= 0x08 ) |
#define | GPIO_PA4_OUTPUT_LOW ( (*(volatile unsigned char *)0x800583) &= (~0x10) ) |
#define | GPIO_PA4_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800583) |= 0x10 ) |
#define | GPIO_PA4_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800583) ^= 0x10 ) |
#define | GPIO_PA5_OUTPUT_LOW ( (*(volatile unsigned char *)0x800583) &= (~0x20) ) |
#define | GPIO_PA5_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800583) |= 0x20 ) |
#define | GPIO_PA5_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800583) ^= 0x20 ) |
#define | GPIO_PA6_OUTPUT_LOW ( (*(volatile unsigned char *)0x800583) &= (~0x40) ) |
#define | GPIO_PA6_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800583) |= 0x40 ) |
#define | GPIO_PA6_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800583) ^= 0x40 ) |
#define | GPIO_PA7_OUTPUT_LOW ( (*(volatile unsigned char *)0x800583) &= (~0x80) ) |
#define | GPIO_PA7_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800583) |= 0x80 ) |
#define | GPIO_PA7_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800583) ^= 0x80 ) |
#define | GPIO_PB0_OUTPUT_LOW ( (*(volatile unsigned char *)0x80058b) &= (~0x01) ) |
#define | GPIO_PB0_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80058b) |= 0x01 ) |
#define | GPIO_PB0_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80058b) ^= 0x01 ) |
#define | GPIO_PB1_OUTPUT_LOW ( (*(volatile unsigned char *)0x80058b) &= (~0x02) ) |
#define | GPIO_PB1_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80058b) |= 0x02 ) |
#define | GPIO_PB1_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80058b) ^= 0x02 ) |
#define | GPIO_PB2_OUTPUT_LOW ( (*(volatile unsigned char *)0x80058b) &= (~0x04) ) |
#define | GPIO_PB2_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80058b) |= 0x04 ) |
#define | GPIO_PB2_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80058b) ^= 0x04 ) |
#define | GPIO_PB3_OUTPUT_LOW ( (*(volatile unsigned char *)0x80058b) &= (~0x08) ) |
#define | GPIO_PB3_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80058b) |= 0x08 ) |
#define | GPIO_PB3_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80058b) ^= 0x08 ) |
#define | GPIO_PB4_OUTPUT_LOW ( (*(volatile unsigned char *)0x80058b) &= (~0x10) ) |
#define | GPIO_PB4_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80058b) |= 0x10 ) |
#define | GPIO_PB4_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80058b) ^= 0x10 ) |
#define | GPIO_PB5_OUTPUT_LOW ( (*(volatile unsigned char *)0x80058b) &= (~0x20) ) |
#define | GPIO_PB5_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80058b) |= 0x20 ) |
#define | GPIO_PB5_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80058b) ^= 0x20 ) |
#define | GPIO_PB6_OUTPUT_LOW ( (*(volatile unsigned char *)0x80058b) &= (~0x40) ) |
#define | GPIO_PB6_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80058b) |= 0x40 ) |
#define | GPIO_PB6_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80058b) ^= 0x40 ) |
#define | GPIO_PB7_OUTPUT_LOW ( (*(volatile unsigned char *)0x80058b) &= (~0x80) ) |
#define | GPIO_PB7_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80058b) |= 0x80 ) |
#define | GPIO_PB7_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80058b) ^= 0x80 ) |
#define | GPIO_PC0_OUTPUT_LOW ( (*(volatile unsigned char *)0x800593) &= (~0x01) ) |
#define | GPIO_PC0_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800593) |= 0x01 ) |
#define | GPIO_PC0_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800593) ^= 0x01 ) |
#define | GPIO_PC1_OUTPUT_LOW ( (*(volatile unsigned char *)0x800593) &= (~0x02) ) |
#define | GPIO_PC1_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800593) |= 0x02 ) |
#define | GPIO_PC1_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800593) ^= 0x02 ) |
#define | GPIO_PC2_OUTPUT_LOW ( (*(volatile unsigned char *)0x800593) &= (~0x04) ) |
#define | GPIO_PC2_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800593) |= 0x04 ) |
#define | GPIO_PC2_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800593) ^= 0x04 ) |
#define | GPIO_PC3_OUTPUT_LOW ( (*(volatile unsigned char *)0x800593) &= (~0x08) ) |
#define | GPIO_PC3_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800593) |= 0x08 ) |
#define | GPIO_PC3_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800593) ^= 0x08 ) |
#define | GPIO_PC4_OUTPUT_LOW ( (*(volatile unsigned char *)0x800593) &= (~0x10) ) |
#define | GPIO_PC4_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800593) |= 0x10 ) |
#define | GPIO_PC4_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800593) ^= 0x10 ) |
#define | GPIO_PC5_OUTPUT_LOW ( (*(volatile unsigned char *)0x800593) &= (~0x20) ) |
#define | GPIO_PC5_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800593) |= 0x20 ) |
#define | GPIO_PC5_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800593) ^= 0x20 ) |
#define | GPIO_PC6_OUTPUT_LOW ( (*(volatile unsigned char *)0x800593) &= (~0x40) ) |
#define | GPIO_PC6_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800593) |= 0x40 ) |
#define | GPIO_PC6_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800593) ^= 0x40 ) |
#define | GPIO_PC7_OUTPUT_LOW ( (*(volatile unsigned char *)0x800593) &= (~0x80) ) |
#define | GPIO_PC7_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800593) |= 0x80 ) |
#define | GPIO_PC7_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800593) ^= 0x80 ) |
#define | GPIO_PD0_OUTPUT_LOW ( (*(volatile unsigned char *)0x80059b) &= (~0x01) ) |
#define | GPIO_PD0_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80059b) |= 0x01 ) |
#define | GPIO_PD0_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80059b) ^= 0x01 ) |
#define | GPIO_PD1_OUTPUT_LOW ( (*(volatile unsigned char *)0x80059b) &= (~0x02) ) |
#define | GPIO_PD1_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80059b) |= 0x02 ) |
#define | GPIO_PD1_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80059b) ^= 0x02 ) |
#define | GPIO_PD2_OUTPUT_LOW ( (*(volatile unsigned char *)0x80059b) &= (~0x04) ) |
#define | GPIO_PD2_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80059b) |= 0x04 ) |
#define | GPIO_PD2_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80059b) ^= 0x04 ) |
#define | GPIO_PD3_OUTPUT_LOW ( (*(volatile unsigned char *)0x80059b) &= (~0x08) ) |
#define | GPIO_PD3_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80059b) |= 0x08 ) |
#define | GPIO_PD3_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80059b) ^= 0x08 ) |
#define | GPIO_PD4_OUTPUT_LOW ( (*(volatile unsigned char *)0x80059b) &= (~0x10) ) |
#define | GPIO_PD4_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80059b) |= 0x10 ) |
#define | GPIO_PD4_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80059b) ^= 0x10 ) |
#define | GPIO_PD5_OUTPUT_LOW ( (*(volatile unsigned char *)0x80059b) &= (~0x20) ) |
#define | GPIO_PD5_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80059b) |= 0x20 ) |
#define | GPIO_PD5_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80059b) ^= 0x20 ) |
#define | GPIO_PD6_OUTPUT_LOW ( (*(volatile unsigned char *)0x80059b) &= (~0x40) ) |
#define | GPIO_PD6_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80059b) |= 0x40 ) |
#define | GPIO_PD6_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80059b) ^= 0x40 ) |
#define | GPIO_PD7_OUTPUT_LOW ( (*(volatile unsigned char *)0x80059b) &= (~0x80) ) |
#define | GPIO_PD7_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80059b) |= 0x80 ) |
#define | GPIO_PD7_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80059b) ^= 0x80 ) |
#define PA0_INPUT_ENABLE 0 |
#define PA1_INPUT_ENABLE 0 |
#define PA2_INPUT_ENABLE 0 |
#define PA3_INPUT_ENABLE 0 |
#define PA4_INPUT_ENABLE 0 |
#define PA5_INPUT_ENABLE 0 |
#define PA6_INPUT_ENABLE 0 |
#define PA7_INPUT_ENABLE 1 |
#define PA0_OUTPUT_ENABLE 0 |
#define PA1_OUTPUT_ENABLE 0 |
#define PA2_OUTPUT_ENABLE 0 |
#define PA3_OUTPUT_ENABLE 0 |
#define PA4_OUTPUT_ENABLE 0 |
#define PA5_OUTPUT_ENABLE 0 |
#define PA6_OUTPUT_ENABLE 0 |
#define PA7_OUTPUT_ENABLE 0 |
#define PA0_DATA_STRENGTH 1 |
#define PA1_DATA_STRENGTH 1 |
#define PA2_DATA_STRENGTH 1 |
#define PA3_DATA_STRENGTH 1 |
#define PA4_DATA_STRENGTH 1 |
#define PA5_DATA_STRENGTH 1 |
#define PA6_DATA_STRENGTH 1 |
#define PA7_DATA_STRENGTH 1 |
#define PA0_DATA_OUT 0 |
#define PA1_DATA_OUT 0 |
#define PA2_DATA_OUT 0 |
#define PA3_DATA_OUT 0 |
#define PA4_DATA_OUT 0 |
#define PA5_DATA_OUT 0 |
#define PA6_DATA_OUT 0 |
#define PA7_DATA_OUT 0 |
#define PA0_FUNC AS_GPIO |
#define PA1_FUNC AS_GPIO |
#define PA2_FUNC AS_GPIO |
#define PA3_FUNC AS_GPIO |
#define PA4_FUNC AS_GPIO |
#define PA5_FUNC AS_GPIO |
#define PA6_FUNC AS_GPIO |
#define PA7_FUNC AS_SWIRE |
#define PULL_WAKEUP_SRC_PA0 0 |
#define PULL_WAKEUP_SRC_PA1 0 |
#define PULL_WAKEUP_SRC_PA2 0 |
#define PULL_WAKEUP_SRC_PA3 0 |
#define PULL_WAKEUP_SRC_PA4 0 |
#define PULL_WAKEUP_SRC_PA5 0 |
#define PULL_WAKEUP_SRC_PA6 0 |
#define PULL_WAKEUP_SRC_PA7 PM_PIN_PULLUP_1M |
#define PB0_INPUT_ENABLE 0 |
#define PB1_INPUT_ENABLE 0 |
#define PB2_INPUT_ENABLE 0 |
#define PB3_INPUT_ENABLE 0 |
#define PB4_INPUT_ENABLE 0 |
#define PB5_INPUT_ENABLE 0 |
#define PB6_INPUT_ENABLE 0 |
#define PB7_INPUT_ENABLE 0 |
#define PB0_OUTPUT_ENABLE 0 |
#define PB1_OUTPUT_ENABLE 0 |
#define PB2_OUTPUT_ENABLE 0 |
#define PB3_OUTPUT_ENABLE 0 |
#define PB4_OUTPUT_ENABLE 0 |
#define PB5_OUTPUT_ENABLE 0 |
#define PB6_OUTPUT_ENABLE 0 |
#define PB7_OUTPUT_ENABLE 0 |
#define PB0_DATA_STRENGTH 1 |
#define PB1_DATA_STRENGTH 1 |
#define PB2_DATA_STRENGTH 1 |
#define PB3_DATA_STRENGTH 1 |
#define PB4_DATA_STRENGTH 1 |
#define PB5_DATA_STRENGTH 1 |
#define PB6_DATA_STRENGTH 1 |
#define PB7_DATA_STRENGTH 1 |
#define PB0_DATA_OUT 0 |
#define PB1_DATA_OUT 0 |
#define PB2_DATA_OUT 0 |
#define PB3_DATA_OUT 0 |
#define PB4_DATA_OUT 0 |
#define PB5_DATA_OUT 0 |
#define PB6_DATA_OUT 0 |
#define PB7_DATA_OUT 0 |
#define PB0_FUNC AS_GPIO |
#define PB1_FUNC AS_GPIO |
#define PB2_FUNC AS_GPIO |
#define PB3_FUNC AS_GPIO |
#define PB4_FUNC AS_GPIO |
#define PB5_FUNC AS_GPIO |
#define PB6_FUNC AS_GPIO |
#define PB7_FUNC AS_GPIO |
#define PULL_WAKEUP_SRC_PB0 0 |
#define PULL_WAKEUP_SRC_PB1 0 |
#define PULL_WAKEUP_SRC_PB2 0 |
#define PULL_WAKEUP_SRC_PB3 0 |
#define PULL_WAKEUP_SRC_PB4 0 |
#define PULL_WAKEUP_SRC_PB5 0 |
#define PULL_WAKEUP_SRC_PB6 0 |
#define PULL_WAKEUP_SRC_PB7 0 |
#define PC0_INPUT_ENABLE 0 |
#define PC1_INPUT_ENABLE 0 |
#define PC2_INPUT_ENABLE 0 |
#define PC3_INPUT_ENABLE 0 |
#define PC4_INPUT_ENABLE 0 |
#define PC5_INPUT_ENABLE 0 |
#define PC6_INPUT_ENABLE 0 |
#define PC7_INPUT_ENABLE 0 |
#define PC0_OUTPUT_ENABLE 0 |
#define PC1_OUTPUT_ENABLE 0 |
#define PC2_OUTPUT_ENABLE 0 |
#define PC3_OUTPUT_ENABLE 0 |
#define PC4_OUTPUT_ENABLE 0 |
#define PC5_OUTPUT_ENABLE 0 |
#define PC6_OUTPUT_ENABLE 0 |
#define PC7_OUTPUT_ENABLE 0 |
#define PC0_DATA_STRENGTH 1 |
#define PC1_DATA_STRENGTH 1 |
#define PC2_DATA_STRENGTH 1 |
#define PC3_DATA_STRENGTH 1 |
#define PC4_DATA_STRENGTH 1 |
#define PC5_DATA_STRENGTH 1 |
#define PC6_DATA_STRENGTH 1 |
#define PC7_DATA_STRENGTH 1 |
#define PC0_DATA_OUT 0 |
#define PC1_DATA_OUT 0 |
#define PC2_DATA_OUT 0 |
#define PC3_DATA_OUT 0 |
#define PC4_DATA_OUT 0 |
#define PC5_DATA_OUT 0 |
#define PC6_DATA_OUT 0 |
#define PC7_DATA_OUT 0 |
#define PC0_FUNC AS_GPIO |
#define PC1_FUNC AS_GPIO |
#define PC2_FUNC AS_GPIO |
#define PC3_FUNC AS_GPIO |
#define PC4_FUNC AS_GPIO |
#define PC5_FUNC AS_GPIO |
#define PC6_FUNC AS_GPIO |
#define PC7_FUNC AS_GPIO |
#define PULL_WAKEUP_SRC_PC0 0 |
#define PULL_WAKEUP_SRC_PC1 0 |
#define PULL_WAKEUP_SRC_PC2 0 |
#define PULL_WAKEUP_SRC_PC3 0 |
#define PULL_WAKEUP_SRC_PC4 0 |
#define PULL_WAKEUP_SRC_PC5 0 |
#define PULL_WAKEUP_SRC_PC6 0 |
#define PULL_WAKEUP_SRC_PC7 0 |
#define PD0_INPUT_ENABLE 0 |
#define PD1_INPUT_ENABLE 0 |
#define PD2_INPUT_ENABLE 0 |
#define PD3_INPUT_ENABLE 0 |
#define PD4_INPUT_ENABLE 0 |
#define PD5_INPUT_ENABLE 0 |
#define PD6_INPUT_ENABLE 0 |
#define PD7_INPUT_ENABLE 0 |
#define PD0_OUTPUT_ENABLE 0 |
#define PD1_OUTPUT_ENABLE 0 |
#define PD2_OUTPUT_ENABLE 0 |
#define PD3_OUTPUT_ENABLE 0 |
#define PD4_OUTPUT_ENABLE 0 |
#define PD5_OUTPUT_ENABLE 0 |
#define PD6_OUTPUT_ENABLE 0 |
#define PD7_OUTPUT_ENABLE 0 |
#define PD0_DATA_STRENGTH 1 |
#define PD1_DATA_STRENGTH 1 |
#define PD2_DATA_STRENGTH 1 |
#define PD3_DATA_STRENGTH 1 |
#define PD4_DATA_STRENGTH 1 |
#define PD5_DATA_STRENGTH 1 |
#define PD6_DATA_STRENGTH 1 |
#define PD7_DATA_STRENGTH 1 |
#define PD0_DATA_OUT 0 |
#define PD1_DATA_OUT 0 |
#define PD2_DATA_OUT 0 |
#define PD3_DATA_OUT 0 |
#define PD4_DATA_OUT 0 |
#define PD5_DATA_OUT 0 |
#define PD6_DATA_OUT 0 |
#define PD7_DATA_OUT 0 |
#define PD0_FUNC AS_GPIO |
#define PD1_FUNC AS_GPIO |
#define PD2_FUNC AS_GPIO |
#define PD3_FUNC AS_GPIO |
#define PD4_FUNC AS_GPIO |
#define PD5_FUNC AS_GPIO |
#define PD6_FUNC AS_GPIO |
#define PD7_FUNC AS_GPIO |
#define PULL_WAKEUP_SRC_PD0 0 |
#define PULL_WAKEUP_SRC_PD1 0 |
#define PULL_WAKEUP_SRC_PD2 0 |
#define PULL_WAKEUP_SRC_PD3 0 |
#define PULL_WAKEUP_SRC_PD4 0 |
#define PULL_WAKEUP_SRC_PD5 0 |
#define PULL_WAKEUP_SRC_PD6 0 |
#define PULL_WAKEUP_SRC_PD7 0 |
#define PE0_INPUT_ENABLE 1 |
#define PE1_INPUT_ENABLE 1 |
#define PE2_INPUT_ENABLE 1 |
#define PE3_INPUT_ENABLE 1 |
#define PE0_OUTPUT_ENABLE 0 |
#define PE1_OUTPUT_ENABLE 0 |
#define PE2_OUTPUT_ENABLE 0 |
#define PE3_OUTPUT_ENABLE 0 |
#define PE0_DATA_STRENGTH 1 |
#define PE1_DATA_STRENGTH 1 |
#define PE2_DATA_STRENGTH 1 |
#define PE3_DATA_STRENGTH 1 |
#define PE0_DATA_OUT 0 |
#define PE1_DATA_OUT 0 |
#define PE2_DATA_OUT 0 |
#define PE3_DATA_OUT 0 |
#define PE0_FUNC AS_MSPI |
#define PE1_FUNC AS_MSPI |
#define PE2_FUNC AS_MSPI |
#define PE3_FUNC AS_MSPI |
#define GPIO_PA0_PULL_FLOAT do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val &= ~0x03; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
Define GPIO setting.
#define GPIO_PA0_PULL_UP_1M do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val &= ~0x02; val |= 0x01; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define GPIO_PA0_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val |= 0x02; val &= ~0x01; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define GPIO_PA0_PULL_UP_10K do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val |= 0x03; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define GPIO_PA0_PULL_TOGGLE do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val ^= 0x01; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define GPIO_PA1_PULL_FLOAT do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val &= ~0x0C; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define GPIO_PA1_PULL_UP_1M do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val &= ~0x08; val |= 0x04; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define GPIO_PA1_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val |= 0x08; val &= ~0x04; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define GPIO_PA1_PULL_UP_10K do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val |= 0x0C; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define GPIO_PA1_PULL_TOGGLE do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val ^= 0x04; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define GPIO_PA2_PULL_FLOAT do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val &= ~0x30; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define GPIO_PA2_PULL_UP_1M do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val &= ~0x20; val |= 0x10; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define GPIO_PA2_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val |= 0x20; val &= ~0x10; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define GPIO_PA2_PULL_UP_10K do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val |= 0x30; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define GPIO_PA2_PULL_TOGGLE do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val ^= 0x10; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define GPIO_PA3_PULL_FLOAT do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val &= ~0xC0; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define GPIO_PA3_PULL_UP_1M do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val &= ~0x80; val |= 0x40; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define GPIO_PA3_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val |= 0x80; val &= ~0x40; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define GPIO_PA3_PULL_UP_10K do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val |= 0xC0; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define GPIO_PA3_PULL_TOGGLE do{ unsigned char val = analog_read(areg_0e_pa0_pa3_pull); val ^= 0x40; analog_write(areg_0e_pa0_pa3_pull, val); }while(0) |
#define GPIO_PA4_PULL_FLOAT do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val &= ~0x03; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PA4_PULL_UP_1M do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val &= ~0x02; val |= 0x01; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PA4_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val |= 0x02; val &= ~0x01; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PA4_PULL_UP_10K do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val |= 0x03; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PA4_PULL_TOGGLE do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val ^= 0x01; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PA5_PULL_FLOAT do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val &= ~0x0C; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PA5_PULL_UP_1M do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val &= ~0x08; val |= 0x04; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PA5_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val |= 0x08; val &= ~0x04; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PA5_PULL_UP_10K do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val |= 0x0C; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PA5_PULL_TOGGLE do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val ^= 0x04; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PA6_PULL_FLOAT do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val &= ~0x30; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PA6_PULL_UP_1M do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val &= ~0x20; val |= 0x10; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PA6_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val |= 0x20; val &= ~0x10; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PA6_PULL_UP_10K do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val |= 0x30; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PA6_PULL_TOGGLE do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val ^= 0x10; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PA7_PULL_FLOAT do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val &= ~0xC0; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PA7_PULL_UP_1M do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val &= ~0x80; val |= 0x40; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PA7_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val |= 0x80; val &= ~0x40; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PA7_PULL_UP_10K do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val |= 0xC0; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PA7_PULL_TOGGLE do{ unsigned char val = analog_read(areg_0f_pa4_pa7_pull); val ^= 0x40; analog_write(areg_0f_pa4_pa7_pull, val); }while(0) |
#define GPIO_PB0_PULL_FLOAT do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val &= ~0x03; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB0_PULL_UP_1M do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val &= ~0x02; val |= 0x01; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB0_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val |= 0x02; val &= ~0x01; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB0_PULL_UP_10K do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val |= 0x03; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB0_PULL_TOGGLE do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val ^= 0x01; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB1_PULL_FLOAT do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val &= ~0x0C; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB1_PULL_UP_1M do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val &= ~0x08; val |= 0x04; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB1_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val |= 0x08; val &= ~0x04; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB1_PULL_UP_10K do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val |= 0x0C; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB1_PULL_TOGGLE do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val ^= 0x04; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB2_PULL_FLOAT do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val &= ~0x30; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB2_PULL_UP_1M do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val &= ~0x20; val |= 0x10; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB2_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val |= 0x20; val &= ~0x10; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB2_PULL_UP_10K do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val |= 0x30; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB2_PULL_TOGGLE do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val ^= 0x10; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB3_PULL_FLOAT do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val &= ~0xC0; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB3_PULL_UP_1M do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val &= ~0x80; val |= 0x40; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB3_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val |= 0x80; val &= ~0x40; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB3_PULL_UP_10K do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val |= 0xC0; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB3_PULL_TOGGLE do{ unsigned char val = analog_read(areg_10_pb0_pb3_pull); val ^= 0x40; analog_write(areg_10_pb0_pb3_pull, val); }while(0) |
#define GPIO_PB4_PULL_FLOAT do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val &= ~0x03; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PB4_PULL_UP_1M do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val &= ~0x02; val |= 0x01; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PB4_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val |= 0x02; val &= ~0x01; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PB4_PULL_UP_10K do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val |= 0x03; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PB4_PULL_TOGGLE do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val ^= 0x01; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PB5_PULL_FLOAT do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val &= ~0x0C; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PB5_PULL_UP_1M do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val &= ~0x08; val |= 0x04; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PB5_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val |= 0x08; val &= ~0x04; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PB5_PULL_UP_10K do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val |= 0x0C; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PB5_PULL_TOGGLE do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val ^= 0x04; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PB6_PULL_FLOAT do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val &= ~0x30; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PB6_PULL_UP_1M do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val &= ~0x20; val |= 0x10; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PB6_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val |= 0x20; val &= ~0x10; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PB6_PULL_UP_10K do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val |= 0x30; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PB6_PULL_TOGGLE do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val ^= 0x10; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PB7_PULL_FLOAT do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val &= ~0xC0; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PB7_PULL_UP_1M do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val &= ~0x80; val |= 0x40; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PB7_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val |= 0x80; val &= ~0x40; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PB7_PULL_UP_10K do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val |= 0xC0; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PB7_PULL_TOGGLE do{ unsigned char val = analog_read(areg_11_pb4_pb7_pull); val ^= 0x40; analog_write(areg_11_pb4_pb7_pull, val); }while(0) |
#define GPIO_PC0_PULL_FLOAT do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val &= ~0x03; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC0_PULL_UP_1M do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val &= ~0x02; val |= 0x01; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC0_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val |= 0x02; val &= ~0x01; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC0_PULL_UP_10K do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val |= 0x03; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC0_PULL_TOGGLE do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val ^= 0x01; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC1_PULL_FLOAT do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val &= ~0x0C; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC1_PULL_UP_1M do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val &= ~0x08; val |= 0x04; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC1_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val |= 0x08; val &= ~0x04; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC1_PULL_UP_10K do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val |= 0x0C; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC1_PULL_TOGGLE do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val ^= 0x04; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC2_PULL_FLOAT do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val &= ~0x30; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC2_PULL_UP_1M do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val &= ~0x20; val |= 0x10; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC2_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val |= 0x20; val &= ~0x10; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC2_PULL_UP_10K do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val |= 0x30; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC2_PULL_TOGGLE do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val ^= 0x10; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC3_PULL_FLOAT do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val &= ~0xC0; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC3_PULL_UP_1M do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val &= ~0x80; val |= 0x40; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC3_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val |= 0x80; val &= ~0x40; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC3_PULL_UP_10K do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val |= 0xC0; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC3_PULL_TOGGLE do{ unsigned char val = analog_read(areg_12_pc0_pc3_pull); val ^= 0x40; analog_write(areg_12_pc0_pc3_pull, val); }while(0) |
#define GPIO_PC4_PULL_FLOAT do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val &= ~0x03; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PC4_PULL_UP_1M do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val &= ~0x02; val |= 0x01; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PC4_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val |= 0x02; val &= ~0x01; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PC4_PULL_UP_10K do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val |= 0x03; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PC4_PULL_TOGGLE do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val ^= 0x01; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PC5_PULL_FLOAT do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val &= ~0x0C; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PC5_PULL_UP_1M do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val &= ~0x08; val |= 0x04; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PC5_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val |= 0x08; val &= ~0x04; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PC5_PULL_UP_10K do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val |= 0x0C; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PC5_PULL_TOGGLE do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val ^= 0x04; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PC6_PULL_FLOAT do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val &= ~0x30; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PC6_PULL_UP_1M do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val &= ~0x20; val |= 0x10; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PC6_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val |= 0x20; val &= ~0x10; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PC6_PULL_UP_10K do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val |= 0x30; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PC6_PULL_TOGGLE do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val ^= 0x10; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PC7_PULL_FLOAT do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val &= ~0xC0; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PC7_PULL_UP_1M do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val &= ~0x80; val |= 0x40; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PC7_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val |= 0x80; val &= ~0x40; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PC7_PULL_UP_10K do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val |= 0xC0; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PC7_PULL_TOGGLE do{ unsigned char val = analog_read(areg_13_pc4_pc7_pull); val ^= 0x40; analog_write(areg_13_pc4_pc7_pull, val); }while(0) |
#define GPIO_PD0_PULL_FLOAT do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val &= ~0x03; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD0_PULL_UP_1M do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val &= ~0x02; val |= 0x01; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD0_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val |= 0x02; val &= ~0x01; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD0_PULL_UP_10K do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val |= 0x03; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD0_PULL_TOGGLE do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val ^= 0x01; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD1_PULL_FLOAT do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val &= ~0x0C; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD1_PULL_UP_1M do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val &= ~0x08; val |= 0x04; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD1_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val |= 0x08; val &= ~0x04; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD1_PULL_UP_10K do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val |= 0x0C; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD1_PULL_TOGGLE do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val ^= 0x04; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD2_PULL_FLOAT do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val &= ~0x30; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD2_PULL_UP_1M do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val &= ~0x20; val |= 0x10; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD2_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val |= 0x20; val &= ~0x10; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD2_PULL_UP_10K do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val |= 0x30; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD2_PULL_TOGGLE do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val ^= 0x10; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD3_PULL_FLOAT do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val &= ~0xC0; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD3_PULL_UP_1M do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val &= ~0x80; val |= 0x40; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD3_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val |= 0x80; val &= ~0x40; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD3_PULL_UP_10K do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val |= 0xC0; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD3_PULL_TOGGLE do{ unsigned char val = analog_read(areg_14_pd0_pd3_pull); val ^= 0x40; analog_write(areg_14_pd0_pd3_pull, val); }while(0) |
#define GPIO_PD4_PULL_FLOAT do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val &= ~0x03; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PD4_PULL_UP_1M do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val &= ~0x02; val |= 0x01; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PD4_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val |= 0x02; val &= ~0x01; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PD4_PULL_UP_10K do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val |= 0x03; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PD4_PULL_TOGGLE do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val ^= 0x01; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PD5_PULL_FLOAT do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val &= ~0x0C; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PD5_PULL_UP_1M do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val &= ~0x08; val |= 0x04; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PD5_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val |= 0x08; val &= ~0x04; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PD5_PULL_UP_10K do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val |= 0x0C; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PD5_PULL_TOGGLE do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val ^= 0x04; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PD6_PULL_FLOAT do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val &= ~0x30; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PD6_PULL_UP_1M do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val &= ~0x20; val |= 0x10; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PD6_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val |= 0x20; val &= ~0x10; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PD6_PULL_UP_10K do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val |= 0x30; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PD6_PULL_TOGGLE do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val ^= 0x10; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PD7_PULL_FLOAT do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val &= ~0xC0; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PD7_PULL_UP_1M do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val &= ~0x80; val |= 0x40; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PD7_PULL_DOWN_100K do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val |= 0x80; val &= ~0x40; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PD7_PULL_UP_10K do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val |= 0xC0; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PD7_PULL_TOGGLE do{ unsigned char val = analog_read(areg_15_pd4_pd7_pull); val ^= 0x40; analog_write(areg_15_pd4_pd7_pull, val); }while(0) |
#define GPIO_PA0_OUTPUT_LOW ( (*(volatile unsigned char *)0x800583) &= (~0x01) ) |
#define GPIO_PA0_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800583) |= 0x01 ) |
#define GPIO_PA0_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800583) ^= 0x01 ) |
#define GPIO_PA1_OUTPUT_LOW ( (*(volatile unsigned char *)0x800583) &= (~0x02) ) |
#define GPIO_PA1_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800583) |= 0x02 ) |
#define GPIO_PA1_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800583) ^= 0x02 ) |
#define GPIO_PA2_OUTPUT_LOW ( (*(volatile unsigned char *)0x800583) &= (~0x04) ) |
#define GPIO_PA2_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800583) |= 0x04 ) |
#define GPIO_PA2_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800583) ^= 0x04 ) |
#define GPIO_PA3_OUTPUT_LOW ( (*(volatile unsigned char *)0x800583) &= (~0x08) ) |
#define GPIO_PA3_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800583) |= 0x08 ) |
#define GPIO_PA3_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800583) ^= 0x08 ) |
#define GPIO_PA4_OUTPUT_LOW ( (*(volatile unsigned char *)0x800583) &= (~0x10) ) |
#define GPIO_PA4_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800583) |= 0x10 ) |
#define GPIO_PA4_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800583) ^= 0x10 ) |
#define GPIO_PA5_OUTPUT_LOW ( (*(volatile unsigned char *)0x800583) &= (~0x20) ) |
#define GPIO_PA5_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800583) |= 0x20 ) |
#define GPIO_PA5_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800583) ^= 0x20 ) |
#define GPIO_PA6_OUTPUT_LOW ( (*(volatile unsigned char *)0x800583) &= (~0x40) ) |
#define GPIO_PA6_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800583) |= 0x40 ) |
#define GPIO_PA6_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800583) ^= 0x40 ) |
#define GPIO_PA7_OUTPUT_LOW ( (*(volatile unsigned char *)0x800583) &= (~0x80) ) |
#define GPIO_PA7_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800583) |= 0x80 ) |
#define GPIO_PA7_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800583) ^= 0x80 ) |
#define GPIO_PB0_OUTPUT_LOW ( (*(volatile unsigned char *)0x80058b) &= (~0x01) ) |
#define GPIO_PB0_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80058b) |= 0x01 ) |
#define GPIO_PB0_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80058b) ^= 0x01 ) |
#define GPIO_PB1_OUTPUT_LOW ( (*(volatile unsigned char *)0x80058b) &= (~0x02) ) |
#define GPIO_PB1_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80058b) |= 0x02 ) |
#define GPIO_PB1_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80058b) ^= 0x02 ) |
#define GPIO_PB2_OUTPUT_LOW ( (*(volatile unsigned char *)0x80058b) &= (~0x04) ) |
#define GPIO_PB2_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80058b) |= 0x04 ) |
#define GPIO_PB2_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80058b) ^= 0x04 ) |
#define GPIO_PB3_OUTPUT_LOW ( (*(volatile unsigned char *)0x80058b) &= (~0x08) ) |
#define GPIO_PB3_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80058b) |= 0x08 ) |
#define GPIO_PB3_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80058b) ^= 0x08 ) |
#define GPIO_PB4_OUTPUT_LOW ( (*(volatile unsigned char *)0x80058b) &= (~0x10) ) |
#define GPIO_PB4_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80058b) |= 0x10 ) |
#define GPIO_PB4_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80058b) ^= 0x10 ) |
#define GPIO_PB5_OUTPUT_LOW ( (*(volatile unsigned char *)0x80058b) &= (~0x20) ) |
#define GPIO_PB5_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80058b) |= 0x20 ) |
#define GPIO_PB5_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80058b) ^= 0x20 ) |
#define GPIO_PB6_OUTPUT_LOW ( (*(volatile unsigned char *)0x80058b) &= (~0x40) ) |
#define GPIO_PB6_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80058b) |= 0x40 ) |
#define GPIO_PB6_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80058b) ^= 0x40 ) |
#define GPIO_PB7_OUTPUT_LOW ( (*(volatile unsigned char *)0x80058b) &= (~0x80) ) |
#define GPIO_PB7_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80058b) |= 0x80 ) |
#define GPIO_PB7_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80058b) ^= 0x80 ) |
#define GPIO_PC0_OUTPUT_LOW ( (*(volatile unsigned char *)0x800593) &= (~0x01) ) |
#define GPIO_PC0_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800593) |= 0x01 ) |
#define GPIO_PC0_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800593) ^= 0x01 ) |
#define GPIO_PC1_OUTPUT_LOW ( (*(volatile unsigned char *)0x800593) &= (~0x02) ) |
#define GPIO_PC1_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800593) |= 0x02 ) |
#define GPIO_PC1_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800593) ^= 0x02 ) |
#define GPIO_PC2_OUTPUT_LOW ( (*(volatile unsigned char *)0x800593) &= (~0x04) ) |
#define GPIO_PC2_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800593) |= 0x04 ) |
#define GPIO_PC2_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800593) ^= 0x04 ) |
#define GPIO_PC3_OUTPUT_LOW ( (*(volatile unsigned char *)0x800593) &= (~0x08) ) |
#define GPIO_PC3_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800593) |= 0x08 ) |
#define GPIO_PC3_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800593) ^= 0x08 ) |
#define GPIO_PC4_OUTPUT_LOW ( (*(volatile unsigned char *)0x800593) &= (~0x10) ) |
#define GPIO_PC4_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800593) |= 0x10 ) |
#define GPIO_PC4_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800593) ^= 0x10 ) |
#define GPIO_PC5_OUTPUT_LOW ( (*(volatile unsigned char *)0x800593) &= (~0x20) ) |
#define GPIO_PC5_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800593) |= 0x20 ) |
#define GPIO_PC5_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800593) ^= 0x20 ) |
#define GPIO_PC6_OUTPUT_LOW ( (*(volatile unsigned char *)0x800593) &= (~0x40) ) |
#define GPIO_PC6_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800593) |= 0x40 ) |
#define GPIO_PC6_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800593) ^= 0x40 ) |
#define GPIO_PC7_OUTPUT_LOW ( (*(volatile unsigned char *)0x800593) &= (~0x80) ) |
#define GPIO_PC7_OUTPUT_HIGH ( (*(volatile unsigned char *)0x800593) |= 0x80 ) |
#define GPIO_PC7_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x800593) ^= 0x80 ) |
#define GPIO_PD0_OUTPUT_LOW ( (*(volatile unsigned char *)0x80059b) &= (~0x01) ) |
#define GPIO_PD0_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80059b) |= 0x01 ) |
#define GPIO_PD0_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80059b) ^= 0x01 ) |
#define GPIO_PD1_OUTPUT_LOW ( (*(volatile unsigned char *)0x80059b) &= (~0x02) ) |
#define GPIO_PD1_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80059b) |= 0x02 ) |
#define GPIO_PD1_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80059b) ^= 0x02 ) |
#define GPIO_PD2_OUTPUT_LOW ( (*(volatile unsigned char *)0x80059b) &= (~0x04) ) |
#define GPIO_PD2_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80059b) |= 0x04 ) |
#define GPIO_PD2_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80059b) ^= 0x04 ) |
#define GPIO_PD3_OUTPUT_LOW ( (*(volatile unsigned char *)0x80059b) &= (~0x08) ) |
#define GPIO_PD3_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80059b) |= 0x08 ) |
#define GPIO_PD3_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80059b) ^= 0x08 ) |
#define GPIO_PD4_OUTPUT_LOW ( (*(volatile unsigned char *)0x80059b) &= (~0x10) ) |
#define GPIO_PD4_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80059b) |= 0x10 ) |
#define GPIO_PD4_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80059b) ^= 0x10 ) |
#define GPIO_PD5_OUTPUT_LOW ( (*(volatile unsigned char *)0x80059b) &= (~0x20) ) |
#define GPIO_PD5_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80059b) |= 0x20 ) |
#define GPIO_PD5_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80059b) ^= 0x20 ) |
#define GPIO_PD6_OUTPUT_LOW ( (*(volatile unsigned char *)0x80059b) &= (~0x40) ) |
#define GPIO_PD6_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80059b) |= 0x40 ) |
#define GPIO_PD6_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80059b) ^= 0x40 ) |
#define GPIO_PD7_OUTPUT_LOW ( (*(volatile unsigned char *)0x80059b) &= (~0x80) ) |
#define GPIO_PD7_OUTPUT_HIGH ( (*(volatile unsigned char *)0x80059b) |= 0x80 ) |
#define GPIO_PD7_OUTPUT_TOGGLE ( (*(volatile unsigned char *)0x80059b) ^= 0x80 ) |