mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-19 00:13:21 +08:00
修改了Web后台的部分界面,增加了HAmqtt中的总电量传感器,后台新增mqtt上报频率设置
This commit is contained in:
37
mico-os/platform/MCU/MW3xx/IAR/data_init3.c
Normal file
37
mico-os/platform/MCU/MW3xx/IAR/data_init3.c
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user