35 lines
609 B
C
35 lines
609 B
C
/**
|
|
* @file web_ctrl.h
|
|
* @brief WiFi + HTTP 网页控制步进电机
|
|
*
|
|
* 连接 WiFi "ICE" (密码 12345678), 启动 HTTP 服务器,
|
|
* 通过网页控制 Emm_V5 步进电机。
|
|
*/
|
|
|
|
#ifndef WEB_CTRL_H
|
|
#define WEB_CTRL_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef EDC_DEBUG_WEB
|
|
|
|
/**
|
|
* @brief 初始化 WiFi (STA 模式) 并启动 HTTP 服务器
|
|
* @note 阻塞直到 WiFi 连接成功, 然后启动 HTTP 服务器
|
|
*/
|
|
void web_ctrl_init(void);
|
|
|
|
#else /* !EDC_DEBUG_WEB */
|
|
|
|
#define web_ctrl_init() ((void)0)
|
|
|
|
#endif /* EDC_DEBUG_WEB */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* WEB_CTRL_H */
|