soc: arm: silabs: remove soc_gpio_configure wrapper
It would be better to use GPIO_PinModeSet() functions directly in the drivers. Signed-off-by: Pawel Czarnecki <pczarnecki@antmicro.com>
This commit is contained in:
parent
1d5a387637
commit
e8d3673c13
9 changed files with 28 additions and 37 deletions
|
@ -1,5 +1,5 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
zephyr_sources(soc.c soc_gpio.c)
|
||||
zephyr_sources(soc.c)
|
||||
|
||||
zephyr_sources_ifdef(CONFIG_PM soc_power.c)
|
||||
|
|
|
@ -168,7 +168,7 @@ static void swo_init(void)
|
|||
#endif
|
||||
#endif /* _SILICON_LABS_32B_SERIES_2 */
|
||||
|
||||
soc_gpio_configure(&pin_swo);
|
||||
GPIO_PinModeSet(pin_swo.port, pin_swo.pin, pin_swo.mode, pin_swo.out);
|
||||
}
|
||||
#endif /* CONFIG_LOG_BACKEND_SWO */
|
||||
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2017 Christian Taedcke
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/** @file
|
||||
* @brief Silabs EXX32 MCU family General Purpose Input Output (GPIO)
|
||||
* module HAL driver.
|
||||
*/
|
||||
|
||||
#include "soc_gpio.h"
|
||||
|
||||
void soc_gpio_configure(const struct soc_gpio_pin *pin)
|
||||
{
|
||||
GPIO_PinModeSet(pin->port, pin->pin, pin->mode, pin->out);
|
||||
}
|
|
@ -25,12 +25,6 @@ struct soc_gpio_pin {
|
|||
unsigned int out; /** out register value */
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Configure GPIO pin
|
||||
* @param[in] pin configuration data
|
||||
*/
|
||||
void soc_gpio_configure(const struct soc_gpio_pin *pin);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue