diff options
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/platforms/STM32/hal_lld.c | 2 | ||||
-rw-r--r-- | os/hal/platforms/STM32/pal_lld.c | 2 | ||||
-rw-r--r-- | os/hal/platforms/STM32/pal_lld.h | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/os/hal/platforms/STM32/hal_lld.c b/os/hal/platforms/STM32/hal_lld.c index 25d4b4d57..2a22fcd0b 100644 --- a/os/hal/platforms/STM32/hal_lld.c +++ b/os/hal/platforms/STM32/hal_lld.c @@ -42,7 +42,7 @@ * @brief PAL setup.
* @details Digital I/O ports static configuration as defined in @p board.h.
*/
-const STM32GPIOConfig pal_default_config =
+const PALConfig pal_default_config =
{
{VAL_GPIOAODR, VAL_GPIOACRL, VAL_GPIOACRH},
{VAL_GPIOBODR, VAL_GPIOBCRL, VAL_GPIOBCRH},
diff --git a/os/hal/platforms/STM32/pal_lld.c b/os/hal/platforms/STM32/pal_lld.c index 69bd3ecab..4ddb13359 100644 --- a/os/hal/platforms/STM32/pal_lld.c +++ b/os/hal/platforms/STM32/pal_lld.c @@ -82,7 +82,7 @@ *
* @param[in] config the STM32 ports configuration
*/
-void _pal_lld_init(const STM32GPIOConfig *config) {
+void _pal_lld_init(const PALConfig *config) {
/*
* Enables the GPIO related clocks.
diff --git a/os/hal/platforms/STM32/pal_lld.h b/os/hal/platforms/STM32/pal_lld.h index fb276877d..a299bce70 100644 --- a/os/hal/platforms/STM32/pal_lld.h +++ b/os/hal/platforms/STM32/pal_lld.h @@ -86,7 +86,7 @@ typedef struct { /** @brief Port G setup data.*/
stm32_gpio_setup_t PGData;
#endif
-} STM32GPIOConfig;
+} PALConfig;
/**
* @brief Width, in bits, of an I/O port.
@@ -289,12 +289,12 @@ typedef GPIO_TypeDef * ioportid_t; */
#define pal_lld_writepad(port, pad, bit) pal_lld_writegroup(port, 1, pad, bit)
-extern const STM32GPIOConfig pal_default_config;
+extern const PALConfig pal_default_config;
#ifdef __cplusplus
extern "C" {
#endif
- void _pal_lld_init(const STM32GPIOConfig *config);
+ void _pal_lld_init(const PALConfig *config);
void _pal_lld_setgroupmode(ioportid_t port,
ioportmask_t mask,
uint_fast8_t mode);
|