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>
This commit is contained in:
Kevin O'Connor
2018-12-25 11:12:00 -05:00
parent 9a2160f660
commit f0715de004
6 changed files with 52 additions and 39 deletions

View File

@@ -4,14 +4,12 @@
//
// This file may be distributed under the terms of the GNU GPLv3 license.
// Klipper
#include "command.h" // shutdown
#include "sched.h"
#include "autoconf.h" // CONFIG_CLOCK_FREQ
// SAM4E port
#include "sam4e.h"
#include "gpio.h"
#include "command.h" // shutdown
#include "gpio.h" // spi_setup
#include "internal.h" // gpio_set_peripheral
#include "sam4e.h" // USART0
#include "sched.h" // sched_shutdown
#define SSPI_USART0 0
#define SSPI_USART1 1