From c16c4e516e52798a688af478eea474df093ed16b Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 19 Jan 2019 16:24:52 +0000 Subject: Cleanup in PAL driver. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12559 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/hal/templates/hal_pal_lld.c | 7 +------ os/hal/templates/hal_pal_lld.h | 13 ++++++++----- 2 files changed, 9 insertions(+), 11 deletions(-) (limited to 'os/hal/templates') 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); -- cgit v1.2.3