mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-29 00:11:16 +01:00
drivers/atwinc15x0: add RESET state
This commit is contained in:
parent
dd7da0d3a6
commit
566935af44
@ -59,6 +59,7 @@
|
||||
static void _atwinc15x0_wifi_cb(uint8_t event, void *msg);
|
||||
static void _atwinc15x0_eth_cb(uint8_t type, void *msg, void *ctrl);
|
||||
static int _atwinc15x0_connect(void);
|
||||
static int _atwinc15x0_init(netdev_t *netdev);
|
||||
static int _set_state(atwinc15x0_t *dev, netopt_state_t state);
|
||||
|
||||
/**
|
||||
@ -455,6 +456,10 @@ static int _set_state(atwinc15x0_t *dev, netopt_state_t state)
|
||||
dev->state = state;
|
||||
_atwinc15x0_connect();
|
||||
return sizeof(netopt_state_t);
|
||||
case NETOPT_STATE_RESET:
|
||||
_atwinc15x0_init(&dev->netdev);
|
||||
dev->state = NETOPT_STATE_IDLE;
|
||||
return sizeof(netopt_state_t);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user