Renamed for consistency.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12347 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
parent
dc7ae21c74
commit
8bd7175893
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @file mfs.c
|
||||
* @file hal_mfs.c
|
||||
* @brief Managed Flash Storage module code.
|
||||
* @details This module manages a flash partition as a generic storage where
|
||||
* arbitrary data records can be created, updated, deleted and
|
||||
|
@ -30,7 +30,7 @@
|
|||
* banks (where possible) caused by power loss during operations.
|
||||
* Both operations are transparent to the user.
|
||||
*
|
||||
* @addtogroup MFS
|
||||
* @addtogroup HAL_MFS
|
||||
* @{
|
||||
*/
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
|||
|
||||
#include "hal.h"
|
||||
|
||||
#include "mfs.h"
|
||||
#include "hal_mfs.h"
|
||||
|
||||
/*===========================================================================*/
|
||||
/* Driver local definitions. */
|
|
@ -18,15 +18,15 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @file mfs.h
|
||||
* @file hal_mfs.h
|
||||
* @brief Managed Flash Storage module header.
|
||||
*
|
||||
* @addtogroup MFS
|
||||
* @addtogroup HAL_MFS
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef MFS_H
|
||||
#define MFS_H
|
||||
#ifndef HAL_MFS_H
|
||||
#define HAL_MFS_H
|
||||
|
||||
#include "hal_flash.h"
|
||||
|
||||
|
@ -364,7 +364,7 @@ extern "C" {
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* MFS_H */
|
||||
#endif /* HAL_MFS_H */
|
||||
|
||||
/** @} */
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
# List of all the MFS subsystem files.
|
||||
MFSSRC := $(CHIBIOS)/os/hal/lib/complex/mfs/mfs.c
|
||||
MFSSRC := $(CHIBIOS)/os/hal/lib/complex/mfs/hal_mfs.c
|
||||
|
||||
# Required include directories
|
||||
MFSINC := $(CHIBIOS)/os/hal/lib/complex/mfs
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @file flash_device.c
|
||||
* @file hal_flash_device.c
|
||||
* @brief Micron N25Q serial flash driver code.
|
||||
*
|
||||
* @addtogroup MICRON_N25Q
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @file flash_device.h
|
||||
* @file hal_flash_device.h
|
||||
* @brief Micron N25Q serial flash driver header.
|
||||
*
|
||||
* @addtogroup MICRON_N25Q
|
||||
|
|
|
@ -15,11 +15,11 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @file m25q.c
|
||||
* @brief M25Q serial flash driver code.
|
||||
* @file hal_serial_nor.c
|
||||
* @brief Serial NOR serial flash driver code.
|
||||
*
|
||||
* @addtogroup M25Q
|
||||
* @ingroup M25Q
|
||||
* @addtogroup HAL_SERIAL_NOR
|
||||
* @ingroup HAL_SERIAL_NOR
|
||||
* @{
|
||||
*/
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
<value>mfs_</value>
|
||||
</code_prefix>
|
||||
<global_definitions>
|
||||
<value><![CDATA[#include "mfs.h"
|
||||
<value><![CDATA[#include "hal_mfs.h"
|
||||
|
||||
#define TEST_SUITE_NAME "ChibiOS/HAL MFS Test Suite"
|
||||
|
||||
|
@ -53,7 +53,7 @@ flash_error_t bank_verify_erased(mfs_bank_t bank);
|
|||
void test_print_mfs_info(void);]]></value>
|
||||
</global_definitions>
|
||||
<global_code>
|
||||
<value><![CDATA[#include "mfs.h"
|
||||
<value><![CDATA[#include "hal_mfs.h"
|
||||
|
||||
MFSDriver mfs1;
|
||||
uint8_t mfs_buffer[512];
|
||||
|
@ -128,7 +128,7 @@ flash_error_t bank_verify_erased(mfs_bank_t bank) {
|
|||
</condition>
|
||||
<shared_code>
|
||||
<value><![CDATA[#include <string.h>
|
||||
#include "mfs.h"
|
||||
#include "hal_mfs.h"
|
||||
|
||||
static const uint8_t pattern1[] = {
|
||||
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
||||
|
@ -879,7 +879,7 @@ test_assert(bank_verify_erased(MFS_BANK_0) == FLASH_NO_ERROR, "bank 0 not erased
|
|||
<value />
|
||||
</condition>
|
||||
<shared_code>
|
||||
<value><![CDATA[#include "mfs.h"]]></value>
|
||||
<value><![CDATA[#include "hal_mfs.h"]]></value>
|
||||
</shared_code>
|
||||
<cases>
|
||||
<case>
|
||||
|
|
|
@ -61,7 +61,7 @@ const testsuite_t mfs_test_suite = {
|
|||
/* Shared code. */
|
||||
/*===========================================================================*/
|
||||
|
||||
#include "mfs.h"
|
||||
#include "hal_mfs.h"
|
||||
|
||||
MFSDriver mfs1;
|
||||
uint8_t mfs_buffer[512];
|
||||
|
|
|
@ -46,7 +46,7 @@ extern "C" {
|
|||
/* Shared definitions. */
|
||||
/*===========================================================================*/
|
||||
|
||||
#include "mfs.h"
|
||||
#include "hal_mfs.h"
|
||||
|
||||
#define TEST_SUITE_NAME "ChibiOS/HAL MFS Test Suite"
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include <string.h>
|
||||
#include "mfs.h"
|
||||
#include "hal_mfs.h"
|
||||
|
||||
static const uint8_t pattern1[] = {
|
||||
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
* Shared code.
|
||||
****************************************************************************/
|
||||
|
||||
#include "mfs.h"
|
||||
#include "hal_mfs.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Test cases.
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "hal.h"
|
||||
|
||||
#include "hal_serial_nor.h"
|
||||
#include "mfs.h"
|
||||
#include "hal_mfs.h"
|
||||
|
||||
#include "mfs_test_root.h"
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ include $(CHIBIOS)/tools/mk/autobuild.mk
|
|||
include $(CHIBIOS)/test/lib/test.mk
|
||||
include $(CHIBIOS)/test/mfs/mfs_test.mk
|
||||
include $(CHIBIOS)/os/hal/lib/complex/serial_nor/devices/micron_n25q/hal_flash_device.mk
|
||||
include $(CHIBIOS)/os/hal/lib/complex/mfs/mfs.mk
|
||||
include $(CHIBIOS)/os/hal/lib/complex/mfs/hal_mfs.mk
|
||||
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
|
Loading…
Reference in New Issue