mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-15 18:11:21 +08:00
08656c3034
1. 新增 crypto, onchip_Flash, soft_i2c 驱动 2. 新增 oneshot 配网功能 3. 完善 I2C, UART, SPI, WIFI 等基本驱动 4. 更新 Kconfig 配置,用户交互更加友好 5. 屏蔽 末尾 80 内存,无法作为栈使用。
28 lines
558 B
C
28 lines
558 B
C
/*
|
|
* Copyright (c) 2006-2018, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2019-01-25 winner micro
|
|
*/
|
|
|
|
#ifndef DRV_ONESHOT_H__
|
|
#define DRV_ONESHOT_H__
|
|
|
|
typedef enum{
|
|
WM_UDP,
|
|
WM_APSOCKET,
|
|
WM_APWEB
|
|
}WM_ONESHOT_MODE;
|
|
|
|
|
|
typedef void (*wm_oneshot_callback)(int state, unsigned char *ssid, unsigned char *key);
|
|
|
|
extern int wm_oneshot_start(WM_ONESHOT_MODE mode, wm_oneshot_callback callback);
|
|
extern int wm_oneshot_stop(void);
|
|
extern int wm_oneshot_get(void);
|
|
|
|
#endif
|