diff options
author | edolomb <none@example.com> | 2018-01-24 16:48:06 +0000 |
---|---|---|
committer | edolomb <none@example.com> | 2018-01-24 16:48:06 +0000 |
commit | 64cad6ba0e96124009423503866f17e93ab6386e (patch) | |
tree | 4f8016b2cfbd3a4b7e4260a0a999639e716b249d | |
parent | 5c5fb3ee69a6f58d1110edc15dfc7464b49dfdd9 (diff) | |
download | ChibiOS-64cad6ba0e96124009423503866f17e93ab6386e.tar.gz ChibiOS-64cad6ba0e96124009423503866f17e93ab6386e.tar.bz2 ChibiOS-64cad6ba0e96124009423503866f17e93ab6386e.zip |
Fixed bugs
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11399 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/boards/ATSAMA5D2_XULT/board.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/os/hal/boards/ATSAMA5D2_XULT/board.c b/os/hal/boards/ATSAMA5D2_XULT/board.c index d3f113889..a3c476cc8 100644 --- a/os/hal/boards/ATSAMA5D2_XULT/board.c +++ b/os/hal/boards/ATSAMA5D2_XULT/board.c @@ -128,15 +128,11 @@ void boardInit(void) { /* Configuring all PIO B pads with default configuration. */
#if SAMA_HAS_PIOB
#if SAMA_HAL_IS_SECURE
- _PIOA->PIO_PIO_[SAMA_PIOB].S_PIO_SIOSR = 0xFFFFFFFF;
- _PIOA->PIO_PIO_[SAMA_PIOB].S_PIO_SIONR = 0x0;
+ _PIOA->PIO_PIO_[SAMA_PIOB].S_PIO_SIOSR = SAMA_DEFAULT_SIOSR;
+ _PIOA->PIO_PIO_[SAMA_PIOB].S_PIO_SIONR = SAMA_DEFAULT_SIONR;
+#endif /* SAMA_HAL_IS_SECURE */
_PIOA->PIO_PIO_[SAMA_PIOB].S_PIO_MSKR = SAMA_DEFAULT_MSKR;
_PIOA->PIO_PIO_[SAMA_PIOB].S_PIO_CFGR = SAMA_DEFAULT_CFGR;
-#endif /* SAMA_HAL_IS_SECURE */
- _PIOA->PIO_PIO_[SAMA_PIOB].S_PIO_SIOSR = 0x0;
- _PIOA->PIO_PIO_[SAMA_PIOB].S_PIO_SIONR = 0xFFFFFFFF;
- _PIOA->PIO_IO_GROUP[SAMA_PIOB].PIO_MSKR = SAMA_DEFAULT_MSKR;
- _PIOA->PIO_IO_GROUP[SAMA_PIOB].PIO_CFGR = SAMA_DEFAULT_CFGR;
#endif /* SAMA_HAS_PIOB */
/* Configuring all PIO C pads with default configuration. */
|