diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@gmail.com> | 2017-09-17 21:00:56 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@gmail.com> | 2017-09-17 21:00:56 +0000 |
commit | 908373b487072d551d98059af63ce362dcc652fa (patch) | |
tree | b37d5e6d5ee09d692c5c17419b40d589ef7b80ff /os/hal/ports/SAMA/SAMA5D2x | |
parent | 0d45b1da6ee631dfe581304ba8abd3994c4896a8 (diff) | |
download | ChibiOS-908373b487072d551d98059af63ce362dcc652fa.tar.gz ChibiOS-908373b487072d551d98059af63ce362dcc652fa.tar.bz2 ChibiOS-908373b487072d551d98059af63ce362dcc652fa.zip |
Added PAL driver
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10630 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/SAMA/SAMA5D2x')
-rw-r--r-- | os/hal/ports/SAMA/SAMA5D2x/platform.mk | 1 | ||||
-rw-r--r-- | os/hal/ports/SAMA/SAMA5D2x/sama_registry.h | 19 |
2 files changed, 19 insertions, 1 deletions
diff --git a/os/hal/ports/SAMA/SAMA5D2x/platform.mk b/os/hal/ports/SAMA/SAMA5D2x/platform.mk index 091b6f507..8cc24582d 100644 --- a/os/hal/ports/SAMA/SAMA5D2x/platform.mk +++ b/os/hal/ports/SAMA/SAMA5D2x/platform.mk @@ -22,5 +22,6 @@ endif # Drivers compatible with the platform.
include $(CHIBIOS)/os/hal/ports/SAMA/LLD/DMAv1/driver.mk
+include $(CHIBIOS)/os/hal/ports/SAMA/LLD/PIOv1/driver.mk
include $(CHIBIOS)/os/hal/ports/SAMA/LLD/SPIv1/driver.mk
include $(CHIBIOS)/os/hal/ports/SAMA/LLD/USARTv1/driver.mk
diff --git a/os/hal/ports/SAMA/SAMA5D2x/sama_registry.h b/os/hal/ports/SAMA/SAMA5D2x/sama_registry.h index 35d5e0057..24d10ed48 100644 --- a/os/hal/ports/SAMA/SAMA5D2x/sama_registry.h +++ b/os/hal/ports/SAMA/SAMA5D2x/sama_registry.h @@ -54,10 +54,27 @@ /* PIO attributes.*/
#define SAMA_HAS_PIOA TRUE
+#if SAMA_HAL_IS_SECURE
+#define PIOA_BASE 0xFC039000U
+#else
+#define PIOA_BASE 0xFC038000U
+#endif
+
#define SAMA_HAS_PIOB TRUE
+#if SAMA_HAL_IS_SECURE
+#define PIOB_BASE 0xFC039040U
+#else
+#define PIOB_BASE 0xFC038040U
+#endif
+
#define SAMA_HAS_PIOC TRUE
-#define SAMA_HAS_PIOD FALSE
+#if SAMA_HAL_IS_SECURE
+#define PIOC_BASE 0xFC039080U
+#else
+#define PIOC_BASE 0xFC038080U
+#endif
+#define SAMA_HAS_PIOD FALSE
/** @} */
#endif /* SAMA_REGISTRY_H */
|