arch/mips/src/pic32mz/pic32mz-gpio.c: Use LAT instead of PORT when writing.

This commit is contained in:
Ouss4
2019-06-28 09:51:19 -06:00
committed by Gregory Nutt
parent 4f9623a520
commit 87499ba3ec
+2 -2
View File
@@ -290,11 +290,11 @@ void pic32mz_gpiowrite(pinset_t pinset, bool value)
if (value)
{
putreg32(1 << pin, base + PIC32MZ_IOPORT_PORTSET_OFFSET);
putreg32(1 << pin, base + PIC32MZ_IOPORT_LATSET_OFFSET);
}
else
{
putreg32(1 << pin, base + PIC32MZ_IOPORT_PORTCLR_OFFSET);
putreg32(1 << pin, base + PIC32MZ_IOPORT_LATCLR_OFFSET);
}
}
}