diff options
author | edolomb <none@example.com> | 2018-02-26 22:12:48 +0000 |
---|---|---|
committer | edolomb <none@example.com> | 2018-02-26 22:12:48 +0000 |
commit | 64cc5a73ca17a1dbc76987cee7591db6be34a702 (patch) | |
tree | ab616ce257a35249e36de923e22acbb6d6e9e081 /os/hal/boards | |
parent | 0c51b431f291b88062f9303a85e4a69f29ff6ac4 (diff) | |
download | ChibiOS-64cc5a73ca17a1dbc76987cee7591db6be34a702.tar.gz ChibiOS-64cc5a73ca17a1dbc76987cee7591db6be34a702.tar.bz2 ChibiOS-64cc5a73ca17a1dbc76987cee7591db6be34a702.zip |
Configured ETH's pins
git-svn-id: https://svn.code.sf.net/p/chibios/svn2/trunk@11552 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/boards')
-rw-r--r-- | os/hal/boards/ATSAMA5D2_XULT/board.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/os/hal/boards/ATSAMA5D2_XULT/board.c b/os/hal/boards/ATSAMA5D2_XULT/board.c index a3c476cc8..f6138bcd5 100644 --- a/os/hal/boards/ATSAMA5D2_XULT/board.c +++ b/os/hal/boards/ATSAMA5D2_XULT/board.c @@ -96,6 +96,23 @@ static const sama_pio_init_t sama_inits[] = { void __early_init(void) {
sama_clock_init();
+
+ /* Configures ETH's pins */
+#if SAMA_HAL_IS_SECURE
+ palSetGroupMode(PIOB, PAL_PORT_BIT(PIOB_ETH_GTXCK) | PAL_PORT_BIT(PIOB_ETH_GTXEN) |
+ PAL_PORT_BIT(PIOB_ETH_GRXDV) | PAL_PORT_BIT(PIOB_ETH_GRXER) |
+ PAL_PORT_BIT(PIOB_ETH_GRX0) | PAL_PORT_BIT(PIOB_ETH_GRX1) |
+ PAL_PORT_BIT(PIOB_ETH_GTX0) | PAL_PORT_BIT(PIOB_ETH_GTX1) |
+ PAL_PORT_BIT(PIOB_ETH_GMDC) | PAL_PORT_BIT(PIOB_ETH_GMDIO),
+ 0U, PAL_SAMA_FUNC_PERIPH_F | PAL_MODE_SECURE);
+#else
+ palSetGroupMode(PIOB, PAL_PORT_BIT(PIOB_ETH_GTXCK) | PAL_PORT_BIT(PIOB_ETH_GTXEN) |
+ PAL_PORT_BIT(PIOB_ETH_GRXDV) | PAL_PORT_BIT(PIOB_ETH_GRXER) |
+ PAL_PORT_BIT(PIOB_ETH_GRX0) | PAL_PORT_BIT(PIOB_ETH_GRX1) |
+ PAL_PORT_BIT(PIOB_ETH_GTX0) | PAL_PORT_BIT(PIOB_ETH_GTX1) |
+ PAL_PORT_BIT(PIOB_ETH_GMDC) | PAL_PORT_BIT(PIOB_ETH_GMDIO),
+ 0U, PAL_SAMA_FUNC_PERIPH_F);
+#endif
}
/**
|