diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-12-25 11:12:00 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-01-07 19:30:17 -0500 |
commit | f0715de0049b238b4bbcb0389fe5848fd271118e (patch) | |
tree | 92e0476087aba9d2ee51a2d19c2c13e429a85c68 /src/sam4e8e/serial.c | |
parent | 9a2160f660534eecf2b1bb59e9447b7240e7d5d0 (diff) | |
download | kutter-f0715de0049b238b4bbcb0389fe5848fd271118e.tar.gz kutter-f0715de0049b238b4bbcb0389fe5848fd271118e.tar.xz kutter-f0715de0049b238b4bbcb0389fe5848fd271118e.zip |
sam4e8e: Move gpio_set_peripheral() definition from gpio.h to internal.h
Use internal.h in a similar way to the internal.h in sam3x8e. Also,
move the twi pin definitions from internal.h to i2c.c (as they are only
used there).
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/sam4e8e/serial.c')
-rw-r--r-- | src/sam4e8e/serial.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/sam4e8e/serial.c b/src/sam4e8e/serial.c index 7339cbb2..12ae8de9 100644 --- a/src/sam4e8e/serial.c +++ b/src/sam4e8e/serial.c @@ -4,13 +4,10 @@ // // This file may be distributed under the terms of the GNU GPLv3 license. -// CMSIS -#include "sam4e.h" // UART - -// Klipper #include "autoconf.h" // CONFIG_SERIAL_BAUD -#include "board/gpio.h" // gpio_peripheral #include "board/serial_irq.h" // serial_rx_data +#include "internal.h" // gpio_peripheral +#include "sam4e.h" // UART0 #include "sched.h" // DECL_INIT void |