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

@@ -9,7 +9,6 @@ struct gpio_out {
uint32_t bit;
};
void gpio_set_peripheral(char bank, uint32_t bit, char ptype, uint32_t pull_up);
struct gpio_out gpio_out_setup(uint8_t pin, uint8_t val);
void gpio_out_reset(struct gpio_out g, uint8_t val);
void gpio_out_toggle_noirq(struct gpio_out g);