drivers: gpio: Add samv71 defines
Enable samv71 MCU gpio specifics. Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
parent
c1cb5ea540
commit
4a1bb71694
1 changed files with 6 additions and 2 deletions
|
@ -78,7 +78,9 @@ static int gpio_sam_config_pin(Pio * const pio, u32_t mask, int flags)
|
|||
pio->PIO_PUDR = mask;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_SOC_SERIES_SAM4S) || defined(CONFIG_SOC_SERIES_SAME70)
|
||||
#if defined(CONFIG_SOC_SERIES_SAM4S) || \
|
||||
defined(CONFIG_SOC_SERIES_SAME70) || \
|
||||
defined(CONFIG_SOC_SERIES_SAMV71)
|
||||
/* Setup Pull-down resistor. */
|
||||
if ((flags & GPIO_PUD_MASK) == GPIO_PUD_PULL_DOWN) {
|
||||
pio->PIO_PPDER = mask;
|
||||
|
@ -94,7 +96,9 @@ static int gpio_sam_config_pin(Pio * const pio, u32_t mask, int flags)
|
|||
} else {
|
||||
pio->PIO_SCIFSR = mask;
|
||||
}
|
||||
#elif defined(CONFIG_SOC_SERIES_SAM4S) || defined(CONFIG_SOC_SERIES_SAME70)
|
||||
#elif defined(CONFIG_SOC_SERIES_SAM4S) || \
|
||||
defined(CONFIG_SOC_SERIES_SAME70) || \
|
||||
defined(CONFIG_SOC_SERIES_SAMV71)
|
||||
/* Setup debounce. */
|
||||
if (flags & GPIO_INT_DEBOUNCE) {
|
||||
pio->PIO_IFSCER = mask;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue