修改了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,71 @@
/**************************************************
*
* Code that performs copy initialization of global data.
* New style init table.
*
* Copyright 2008 IAR Systems. All rights reserved.
*
* $Revision: 45563 $
*
**************************************************/
#include "data_init3.h"
#pragma language = extended
#pragma build_attribute vfpcc_compatible
#pragma build_attribute arm_thumb_compatible
#pragma build_attribute ropi_compatible
#pragma build_attribute rwpi_compatible
/* Format:
Size1
SrcAddr1-.
DestAddr1 /abs or SBrel)
Size2
SrcAddr2-.
DestAddr2 (abs or SBrel)
...
0
*/
__no_init uint32_t __iar_SB @ r9;
init_fun_t __iar_copy_init2;
#pragma type_attribute=__thumb __interwork
uint32_t const *
__iar_copy_init3(uint32_t const * p);
#pragma type_attribute=__thumb __interwork
uint32_t const *
__iar_copy_init3(uint32_t const * p)
{
uint32_t size;
while ((size = *p++) != 0)
{
uint32_t const * src;
uint32_t d;
uint32_t * dest;
src = (uint32_t*)((char const *)p + *(int32_t *)p);
p++;
d = *p++;
if( d & 1 )
{
d -= 1;
d += __iar_SB;
}
dest = (uint32_t *)d;
do
{
*dest++ = *src++;
size -= 4;
} while (size != 0);
}
return p;
}

View File

@@ -0,0 +1,37 @@
/**************************************************
*
* Global data initialization for use with ilink.
* New style, where each init table routine defines
* its own format.
*
* Copyright 2008 IAR Systems. All rights reserved.
*
* $Revision: 36645 $
*
**************************************************/
#include "data_init3.h"
#pragma language = extended
#pragma build_attribute vfpcc_compatible
#pragma build_attribute arm_thumb_compatible
#pragma build_attribute ropi_compatible
#pragma build_attribute rwpi_compatible
#pragma section = "Region$$Table" __pcrel const
void
__iar_data_init3(void);
void
__iar_data_init3(void)
{
char const * p = __section_begin("Region$$Table");
uint32_t const * pe = __section_end("Region$$Table");
uint32_t const * pi = (uint32_t const *)(p);
while (pi != pe)
{
init_fun_t * fun = (init_fun_t *)((char *)pi + *(int32_t *)pi);
pi++;
pi = fun(pi);
}
}

View File

@@ -0,0 +1,16 @@
/**************************************************
*
* Segment initialization that must be
* performed before main is called, ilink version.
* New style, where each init table routine defines
* its own format.
*
* Copyright 2008 IAR Systems. All rights reserved.
*
* $Revision: 36645 $
*
**************************************************/
#include <stdint.h>
typedef uint32_t const * init_fun_t(uint32_t const *);

View File

@@ -0,0 +1,30 @@
/*###ICF### Section handled by ICF editor, don't touch! ****/
/*-Editor annotation file-*/
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
/*-Specials-*/
/*-Memory Regions-*/
define symbol __ICFEDIT_region_ROM_start__ = 0x1f064000;
define symbol __ICFEDIT_region_ROM_end__ = 0x1f0A9000;
define symbol __ICFEDIT_region_RAM_start__ = 0x0011C000;
define symbol __ICFEDIT_region_RAM_end__ = 0x00128000;
/*-Sizes-*/
/**** End of ICF editor section. ###ICF###*/
define memory mem with size = 4G;
define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
define block heap_start with fixed order{ section .ram_data_end};
initialize by copy { readwrite };
do not initialize { section .noinit };
place at address mem:__ICFEDIT_region_ROM_start__ { section user_header_section };
place in ROM_region { readonly };
place at start of RAM_region {readwrite};
place in RAM_region { block heap_start};
define exported symbol _ram_end_ = __ICFEDIT_region_RAM_end__;

View File

@@ -0,0 +1,62 @@
/**************************************************
*
* Code that performs zero initialization of global data.
* New style init table.
*
* Copyright 2008 IAR Systems. All rights reserved.
*
* $Revision: 45563 $
*
**************************************************/
#include "data_init3.h"
#pragma language=extended
#pragma build_attribute vfpcc_compatible
#pragma build_attribute arm_thumb_compatible
#pragma build_attribute ropi_compatible
#pragma build_attribute rwpi_compatible
/* Format:
Size1
DestAddr1 (abs or SBrel)
Size2
DestAddr2 (abs or SBrel)
...
0
*/
__no_init uint32_t __iar_SB @ r9;
init_fun_t __iar_zero_init2;
#pragma type_attribute=__thumb __interwork
uint32_t const *
__iar_zero_init3(uint32_t const * p);
#pragma type_attribute=__thumb __interwork
uint32_t const *
__iar_zero_init3(uint32_t const * p)
{
uint32_t size;
while ((size = *p++) != 0)
{
uint32_t d = *p++;
uint32_t * dest;
if( d & 1 )
{
d -= 1;
d += __iar_SB;
}
dest = (uint32_t*)d;
do
{
*dest++ = 0;
size -= 4;
} while (size != 0);
}
return p;
}