aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2019-01-19 16:24:52 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2019-01-19 16:24:52 +0000
commitc16c4e516e52798a688af478eea474df093ed16b (patch)
tree202f6450f55be40fede79f714068fa8b448918be /os/hal/templates
parent675ee683d06e63f41f03179cfb035ab43c059738 (diff)
downloadChibiOS-c16c4e516e52798a688af478eea474df093ed16b.tar.gz
ChibiOS-c16c4e516e52798a688af478eea474df093ed16b.tar.bz2
ChibiOS-c16c4e516e52798a688af478eea474df093ed16b.zip
Cleanup in PAL driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12559 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/templates')
-rw-r--r--os/hal/templates/hal_pal_lld.c7
-rw-r--r--os/hal/templates/hal_pal_lld.h13
2 files changed, 9 insertions, 11 deletions
diff --git a/os/hal/templates/hal_pal_lld.c b/os/hal/templates/hal_pal_lld.c
index 9d7df5286..6cf21942c 100644
--- a/os/hal/templates/hal_pal_lld.c
+++ b/os/hal/templates/hal_pal_lld.c
@@ -52,15 +52,10 @@
/**
* @brief STM32 I/O ports configuration.
- * @details Ports A-D(E, F, G, H) clocks enabled.
- *
- * @param[in] config the STM32 ports configuration
*
* @notapi
*/
-void _pal_lld_init(const PALConfig *config) {
-
- (void)config;
+void _pal_lld_init(void) {
}
diff --git a/os/hal/templates/hal_pal_lld.h b/os/hal/templates/hal_pal_lld.h
index 51752e07f..5934e8a83 100644
--- a/os/hal/templates/hal_pal_lld.h
+++ b/os/hal/templates/hal_pal_lld.h
@@ -31,6 +31,10 @@
/* Unsupported modes and specific modes */
/*===========================================================================*/
+/* Specifies palInit() without parameter, required until all platforms will
+ be updated to the new style.*/
+#define PAL_NEW_INIT
+
/*===========================================================================*/
/* I/O Ports Types and constants. */
/*===========================================================================*/
@@ -141,11 +145,9 @@ typedef uint32_t iopadid_t;
/**
* @brief Low level PAL subsystem initialization.
*
- * @param[in] config architecture-dependent ports configuration
- *
* @notapi
*/
-#define pal_lld_init(config) _pal_lld_init(config)
+#define pal_lld_init() _pal_lld_init()
/**
* @brief Reads the physical I/O port states.
@@ -426,14 +428,15 @@ typedef uint32_t iopadid_t;
&_pal_events[0]; (void)line
#if !defined(__DOXYGEN__)
-extern const PALConfig pal_default_config;
+#if (PAL_USE_WAIT == TRUE) || (PAL_USE_CALLBACKS == TRUE)
extern palevent_t _pal_events[1];
#endif
+#endif
#ifdef __cplusplus
extern "C" {
#endif
- void _pal_lld_init(const PALConfig *config);
+ void _pal_lld_init(void);
void _pal_lld_setgroupmode(ioportid_t port,
ioportmask_t mask,
iomode_t mode);