WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
los_runstop.h
浏览该文件的文档.
1/* ----------------------------------------------------------------------------
2 * Copyright (c) Huawei Technologies Co., Ltd. 2013-2019. All rights reserved.
3 * Description: Runstop HeadFile
4 * Author: Huawei LiteOS Team
5 * Create: 2013-01-01
6 * Redistribution and use in source and binary forms, with or without modification,
7 * are permitted provided that the following conditions are met:
8 * 1. Redistributions of source code must retain the above copyright notice, this list of
9 * conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, this list
11 * of conditions and the following disclaimer in the documentation and/or other materials
12 * provided with the distribution.
13 * 3. Neither the name of the copyright holder nor the names of its contributors may be used
14 * to endorse or promote products derived from this software without specific prior written
15 * permission.
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
20 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
23 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
25 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
26 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 * --------------------------------------------------------------------------- */
28
34#ifndef _LOS_RUNSTOP_H
35#define _LOS_RUNSTOP_H
36
37#include "los_typedef.h"
38
39#ifdef __cplusplus
40extern "C" {
41#endif /* __cplusplus */
42
65
89typedef INT32 (*FLASH_READ_FUNC)(VOID *memAddr, size_t start, size_t size);
90
114typedef INT32 (*FLASH_WRITE_FUNC)(VOID *memAddr, size_t start, size_t size);
115
122typedef struct tagRunstopParam {
123 RUNSTOP_CALLBACK_FUNC pfIdleWakeupCallback; /* < Wake up callback function, called in idle task */
124 RUNSTOP_CALLBACK_FUNC pfWakeupCallback; /* < Wake up callback function */
125 RUNSTOP_CALLBACK_FUNC pfImageDoneCallback; /* < Image done callback function, called just after memory is stored */
126 FLASH_READ_FUNC pfFlashReadFunc; /* < An abstract function for reading data from a certain flash */
127 FLASH_WRITE_FUNC pfFlashWriteFunc; /* < An abstract function for writing data to a certain flash */
128 size_t uwFlashReadAlignSize; /* < Block align size when reading data from a certain flash */
129 size_t uwFlashEraseAlignSize; /* < Block align size when erasing data in a certain flash */
130 size_t uwFlashWriteAlignSize; /* < Block align size when writing data to a certain flash */
131 UINTPTR uwWowFlashAddr; /* < The flash starting address to which the memory is to be
132 stored, the address should be flash write-alignment length
133 aligned */
134 UINTPTR uwImageFlashAddr; /* < The flash starting address where the whole application image
135 is burned */
137
160extern VOID LOS_MakeImage(const RUNSTOP_PARAM_S *runstopParam);
161
162#ifdef __cplusplus
163}
164#endif /* __cplusplus */
165
166#endif /* _LOS_RUNSTOP_H */
INT32(* FLASH_WRITE_FUNC)(void *memAddr, size_t start, size_t size)
Define the type of a flash-writing function.
Definition los_runstop.h:114
struct tagRunstopParam RUNSTOP_PARAM_S
void(* RUNSTOP_CALLBACK_FUNC)(void)
Define the type of a runstop callback function.
Definition los_runstop.h:64
INT32(* FLASH_READ_FUNC)(void *memAddr, size_t start, size_t size)
Define the type of a flash-reading function.
Definition los_runstop.h:89
void LOS_MakeImage(const RUNSTOP_PARAM_S *runstopParam)
Store the memory image on a flash.
signed int INT32
Definition los_typedef.h:55
#define VOID
Definition los_typedef.h:88
unsigned int UINTPTR
Definition los_typedef.h:74
Definition los_runstop.h:122
UINTPTR uwImageFlashAddr
Definition los_runstop.h:134
RUNSTOP_CALLBACK_FUNC pfIdleWakeupCallback
Definition los_runstop.h:123
FLASH_READ_FUNC pfFlashReadFunc
Definition los_runstop.h:126
FLASH_WRITE_FUNC pfFlashWriteFunc
Definition los_runstop.h:127
size_t uwFlashEraseAlignSize
Definition los_runstop.h:129
RUNSTOP_CALLBACK_FUNC pfImageDoneCallback
Definition los_runstop.h:125
RUNSTOP_CALLBACK_FUNC pfWakeupCallback
Definition los_runstop.h:124
size_t uwFlashWriteAlignSize
Definition los_runstop.h:130
UINTPTR uwWowFlashAddr
Definition los_runstop.h:131
size_t uwFlashReadAlignSize
Definition los_runstop.h:128