drivers/wifi: Switch WINC1500 to new GPIO API
Use new API to configure and interact with GPIOs. Move GPIO initialization from sample into driver. The existing physical/line level control has been kept rather than converting to logical level signals. Also improve error messages. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> Signed-off-by: Johann Fischer <j.fischer@phytec.de> Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
97106bf95e
commit
a40e9d3762
6 changed files with 81 additions and 97 deletions
|
@ -1,27 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2016 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef ZEPHYR_INCLUDE_DRIVERS_WIFI_WINC1500_H_
|
||||
#define ZEPHYR_INCLUDE_DRIVERS_WIFI_WINC1500_H_
|
||||
|
||||
#include <device.h>
|
||||
|
||||
enum winc1500_gpio_index {
|
||||
WINC1500_GPIO_IDX_CHIP_EN = 0,
|
||||
WINC1500_GPIO_IDX_IRQN,
|
||||
WINC1500_GPIO_IDX_RESET_N,
|
||||
|
||||
WINC1500_GPIO_IDX_MAX
|
||||
};
|
||||
|
||||
struct winc1500_gpio_configuration {
|
||||
struct device *dev;
|
||||
u32_t pin;
|
||||
};
|
||||
|
||||
struct winc1500_gpio_configuration *winc1500_configure_gpios(void);
|
||||
|
||||
#endif /* ZEPHYR_INCLUDE_DRIVERS_WIFI_WINC1500_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue