... Chip_GPIO_Init(LPC_GPIO); Chip_IOCON_Init(LPC_IOCON); //p0.27 Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 27, (IOCON_FUNC0)); Chip_GPIO_SetPinDIR(LPC_GPIO, 0, 27, true); Chip_GPIO_SetPinOutLow(LPC_GPIO, 0, 27); //stays low (default) Chip_GPIO_SetPinOutHigh(LPC_GPIO, 0, 27); //switches to high OK //p0.28 Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 28, (IOCON_FUNC0)); Chip_GPIO_SetPinDIR(LPC_GPIO, 0, 28, true); Chip_GPIO_SetPinOutLow(LPC_GPIO, 0, 28); //stays low (default) Chip_GPIO_SetPinOutHigh(LPC_GPIO, 0, 28); //STAYS LOW ... |