mirror of
https://github.com/apache/nuttx.git
synced 2026-08-29 21:30:44 +00:00
arch/mips/src/pic32mz/pic32mz-gpio.c: Use LAT instead of PORT when writing.
This commit is contained in:
parent
4f9623a520
commit
87499ba3ec
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue