Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MAX44000 PWM_Tone_Library nexpaq_mdk
Fork of LED_Demo by
flash_journal_strategy_sequential.h
00001 /* 00002 * Copyright (c) 2006-2016, ARM Limited, All Rights Reserved 00003 * SPDX-License-Identifier: Apache-2.0 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); you may 00006 * not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 00013 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 00018 #ifndef __FLASH_JOURNAL_STRATEGY_SEQUENTIAL_H__ 00019 #define __FLASH_JOURNAL_STRATEGY_SEQUENTIAL_H__ 00020 00021 #ifdef __cplusplus 00022 extern "C" { 00023 #endif // __cplusplus 00024 00025 #include "flash-journal/flash_journal.h" 00026 00027 int32_t flashJournalStrategySequential_initialize(FlashJournal_t *journal, 00028 ARM_DRIVER_STORAGE *mtd, 00029 const FlashJournal_Ops_t *ops, 00030 FlashJournal_Callback_t callback); 00031 FlashJournal_Status_t flashJournalStrategySequential_getInfo(FlashJournal_t *journal, FlashJournal_Info_t *info); 00032 int32_t flashJournalStrategySequential_read(FlashJournal_t *journal, void *blob, size_t n); 00033 int32_t flashJournalStrategySequential_log(FlashJournal_t *journal, const void *blob, size_t n); 00034 int32_t flashJournalStrategySequential_commit(FlashJournal_t *journal); 00035 int32_t flashJournalStrategySequential_reset(FlashJournal_t *journal); 00036 00037 static const FlashJournal_Ops_t FLASH_JOURNAL_STRATEGY_SEQUENTIAL = { 00038 flashJournalStrategySequential_initialize, 00039 flashJournalStrategySequential_getInfo, 00040 flashJournalStrategySequential_read, 00041 flashJournalStrategySequential_log, 00042 flashJournalStrategySequential_commit, 00043 flashJournalStrategySequential_reset 00044 }; 00045 00046 #ifdef __cplusplus 00047 } 00048 #endif // __cplusplus 00049 00050 #endif /* __FLASH_JOURNAL_STRATEGY_SEQUENTIAL_H__ */
Generated on Tue Jul 12 2022 12:28:31 by
1.7.2
