9ceb218f80
Co-authored-by: Cursor <cursoragent@cursor.com>
101 lines
1.7 KiB
C
101 lines
1.7 KiB
C
/**
|
|
* @file fatfs_init.c
|
|
* @brief FATFS 初始化模块桩实现(功能待实现)
|
|
*
|
|
* 本文件为 fatfs_init.h 中声明的函数提供桩实现。
|
|
* 所有函数提供安全默认行为,待 FATFS 功能完整移植后再替换为真实实现。
|
|
*/
|
|
|
|
#include "fatfs_init.h"
|
|
#include <stddef.h>
|
|
|
|
void fatfs_init(void)
|
|
{
|
|
/* FATFS 尚未初始化 */
|
|
}
|
|
|
|
void fatfs_action(void)
|
|
{
|
|
/* 无操作 */
|
|
}
|
|
|
|
#if FATFS_SHELL_RM_CAT_EN
|
|
U8_T u8_file_clear_action(U8_T u8_type, U8_T u8_action, U8_T u8_flag)
|
|
{
|
|
(void)u8_type;
|
|
(void)u8_action;
|
|
(void)u8_flag;
|
|
return 0;
|
|
}
|
|
|
|
U8_T u8_file_set_cat_cmd(char *path)
|
|
{
|
|
(void)path;
|
|
return 0;
|
|
}
|
|
|
|
U8_T u8_file_card_action(U8_T action, const char *card_num, U32_T balance)
|
|
{
|
|
(void)action;
|
|
(void)card_num;
|
|
(void)balance;
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
U8_T cache_add_log(const char *format, ...)
|
|
{
|
|
(void)format;
|
|
return 0;
|
|
}
|
|
|
|
U8_T cache_add_card(const char *card_num, U32_T balance)
|
|
{
|
|
(void)card_num;
|
|
(void)balance;
|
|
return 0;
|
|
}
|
|
|
|
U8_T cache_add_fault(const void *fault_data)
|
|
{
|
|
(void)fault_data;
|
|
return 0;
|
|
}
|
|
|
|
U8_T cache_add_order(const void *order_data)
|
|
{
|
|
(void)order_data;
|
|
return 0;
|
|
}
|
|
|
|
void cache_process_all(void)
|
|
{
|
|
/* 无缓存数据待处理 */
|
|
}
|
|
|
|
void cache_clear_all(void)
|
|
{
|
|
/* 无缓存数据待清除 */
|
|
}
|
|
|
|
U8_T fatfs_set_write_disable_flag(U8_T flag_mask, U8_T enable)
|
|
{
|
|
(void)flag_mask;
|
|
(void)enable;
|
|
return 0;
|
|
}
|
|
|
|
U8_T fatfs_get_write_disable_flag(U8_T flag_mask)
|
|
{
|
|
(void)flag_mask;
|
|
return 0;
|
|
}
|
|
|
|
void v_app_fatfs_log_real_file_name(char *fileName, int len, int pathEn)
|
|
{
|
|
if (fileName != NULL && len > 0) {
|
|
fileName[0] = '\0';
|
|
}
|
|
(void)pathEn;
|
|
}
|