mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-16 15:08:15 +08:00
修改了Web后台的部分界面,增加了HAmqtt中的总电量传感器,后台新增mqtt上报频率设置
This commit is contained in:
79
mico-os/MiCO/system/system_internal.h
Normal file
79
mico-os/MiCO/system/system_internal.h
Normal file
@@ -0,0 +1,79 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file system.h
|
||||
* @author William Xu
|
||||
* @version V1.0.0
|
||||
* @date 22-July-2015
|
||||
* @brief This file provide internal function prototypes for for mico system.
|
||||
******************************************************************************
|
||||
*
|
||||
* UNPUBLISHED PROPRIETARY SOURCE CODE
|
||||
* Copyright (c) 2016 MXCHIP Inc.
|
||||
*
|
||||
* The contents of this file may not be disclosed to third parties, copied or
|
||||
* duplicated in any form, in whole or in part, without the prior written
|
||||
* permission of MXCHIP Corporation.
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "system.h"
|
||||
|
||||
#ifndef MICO_SYSTEM_LOG_INFO_DISABLE
|
||||
#define system_log(M, ...) custom_log("SYSTEM", M, ##__VA_ARGS__)
|
||||
#define system_log_trace() custom_log_trace("SYSTEM")
|
||||
#else
|
||||
#define system_log(M, ...)
|
||||
#define system_log_trace()
|
||||
#endif
|
||||
|
||||
/* Define MICO service thread stack size */
|
||||
#define STACK_SIZE_LOCAL_CONFIG_SERVER_THREAD 0x400
|
||||
#define STACK_SIZE_LOCAL_CONFIG_CLIENT_THREAD 0x1650
|
||||
#define STACK_SIZE_NTP_CLIENT_THREAD 0x450
|
||||
#define STACK_SIZE_mico_system_MONITOR_THREAD 0x300
|
||||
|
||||
#define EASYLINK_BYPASS_NO (0)
|
||||
#define EASYLINK_BYPASS (1)
|
||||
#define EASYLINK_SOFT_AP_BYPASS (2)
|
||||
|
||||
|
||||
|
||||
#define SYS_MAGIC_NUMBR (0xA43E2165)
|
||||
|
||||
typedef struct _mico_Context_t
|
||||
{
|
||||
/*Flash content*/
|
||||
system_config_t flashContentInRam;
|
||||
mico_mutex_t flashContentInRam_mutex;
|
||||
|
||||
void * user_config_data;
|
||||
uint32_t user_config_data_size;
|
||||
|
||||
/*Running status*/
|
||||
system_status_wlan_t micoStatus;
|
||||
} system_context_t;
|
||||
|
||||
OSStatus system_notification_init( system_context_t * const inContext);
|
||||
|
||||
OSStatus system_network_daemen_start( system_context_t * const inContext );
|
||||
|
||||
OSStatus system_discovery_init( system_context_t * const inContext );
|
||||
|
||||
void system_connect_wifi_normal( system_context_t * const inContext );
|
||||
|
||||
void system_connect_wifi_fast( system_context_t * const inContext);
|
||||
|
||||
|
||||
|
||||
OSStatus MICORestoreMFG ( void );
|
||||
|
||||
OSStatus MICOReadConfiguration ( system_context_t * const inContext );
|
||||
|
||||
system_context_t *system_context( void );
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /*extern "C" */
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user