修改了Web后台的部分界面,增加了HAmqtt中的总电量传感器,后台新增mqtt上报频率设置

This commit is contained in:
OOP
2025-03-03 21:49:41 +08:00
parent e1e00b60ce
commit 9f9d4c7a56
4468 changed files with 1473046 additions and 10728 deletions

View File

@@ -0,0 +1,85 @@
/**
******************************************************************************
* @file spi_flash_platform.c
* @author William Xu
* @version V1.0.0
* @date 16-Sep-2014
* @brief This file provides all the headers of flash operation functions.
******************************************************************************
* 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.
******************************************************************************
*/
#include "spi_flash_platform_interface.h"
#include "mico_platform.h"
#if defined ( USE_MICO_SPI_FLASH )
int sflash_platform_init ( /*@shared@*/ void* peripheral_id, /*@out@*/ void** platform_peripheral_out )
{
UNUSED_PARAMETER( peripheral_id ); /* Unused due to single SPI Flash */
if ( kNoErr != MicoSpiInitialize( &mico_spi_flash ) )
{
/*@-mustdefine@*/ /* Lint: failed - do not define platform peripheral */
return -1;
/*@+mustdefine@*/
}
if( platform_peripheral_out != NULL)
*platform_peripheral_out = NULL;
return 0;
}
extern int sflash_platform_send_recv ( const void* platform_peripheral, /*@in@*/ /*@out@*/ sflash_platform_message_segment_t* segments, unsigned int num_segments )
{
UNUSED_PARAMETER( platform_peripheral );
if ( kNoErr != MicoSpiTransfer( &mico_spi_flash, (mico_spi_message_segment_t*) segments, (uint16_t) num_segments ) )
{
return -1;
}
return 0;
}
int sflash_platform_deinit( void )
{
if ( kNoErr != MicoSpiFinalize( &mico_spi_flash ) )
{
/*@-mustdefine@*/ /* Lint: failed - do not define platform peripheral */
return -1;
/*@+mustdefine@*/
}
return 0;
}
#else
int sflash_platform_init( /*@shared@*/ void* peripheral_id, /*@out@*/ void** platform_peripheral_out )
{
UNUSED_PARAMETER( peripheral_id );
UNUSED_PARAMETER( platform_peripheral_out );
return -1;
}
extern int sflash_platform_send_recv( const void* platform_peripheral, /*@in@*//*@out@*/sflash_platform_message_segment_t* segments, unsigned int num_segments )
{
UNUSED_PARAMETER( platform_peripheral );
UNUSED_PARAMETER( segments );
UNUSED_PARAMETER( num_segments );
return -1;
}
int sflash_platform_deinit( void )
{
return -1;
}
#endif