aboutsummaryrefslogtreecommitdiffstats
path: root/src/sam3x8e/spi.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-12-25 10:33:24 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-01-07 19:30:17 -0500
commit5b91c7a68d958b08227538ac99cb74e5ae7283e4 (patch)
tree90f319ba03c1322526ceb25a0ee2419968c81455 /src/sam3x8e/spi.c
parentecba3e9a19236c04e93ff102bc5cde55fdc906ad (diff)
downloadkutter-5b91c7a68d958b08227538ac99cb74e5ae7283e4.tar.gz
kutter-5b91c7a68d958b08227538ac99cb74e5ae7283e4.tar.xz
kutter-5b91c7a68d958b08227538ac99cb74e5ae7283e4.zip
sam3x8e: Pass the gpio id directly to gpio_peripheral()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/sam3x8e/spi.c')
-rw-r--r--src/sam3x8e/spi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sam3x8e/spi.c b/src/sam3x8e/spi.c
index 81e7b653..91b28e34 100644
--- a/src/sam3x8e/spi.c
+++ b/src/sam3x8e/spi.c
@@ -19,9 +19,9 @@ static void
spi_init(void)
{
/* Configure SCK, MISO and MOSI */
- gpio_peripheral('A', PIO_PA25A_SPI0_MISO, 'A', 0); // Arduino 74
- gpio_peripheral('A', PIO_PA26A_SPI0_MOSI, 'A', 0); // Arduino 75
- gpio_peripheral('A', PIO_PA27A_SPI0_SPCK, 'A', 0); // Arduino 76
+ gpio_peripheral(GPIO('A', 25), 'A', 0); // Arduino 74
+ gpio_peripheral(GPIO('A', 26), 'A', 0); // Arduino 75
+ gpio_peripheral(GPIO('A', 27), 'A', 0); // Arduino 76
// Enable SPI clocks
if (!(PMC->PMC_PCSR0 & (1u << PERIPH_ID))) {