Skip to content

Commit

Permalink
nxdt_devoptab: update file layout
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkMatterCore committed Nov 1, 2024
1 parent 94f0312 commit f817ec5
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ BUILD_TIMESTAMP := $(strip $(shell date --utc '+%Y-%m-%d %T UTC'))

TARGET := ${APP_TITLE}
BUILD := build
SOURCES := source source/core source/core/fatfs source/core/devoptab source/tasks source/utils source/views
SOURCES := source source/core source/core/devoptab source/core/devoptab/fatfs source/tasks source/utils source/views
DATA := data
ICON := romfs/icon/${APP_TITLE}.jpg
INCLUDES := include
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "../../defines.h"
#include "../../../defines.h"

/*---------------------------------------------------------------------------/
/ Configurations of FatFs Module
Expand Down
2 changes: 1 addition & 1 deletion include/core/devoptab/nxdt_devoptab.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "../pfs.h"
#include "../hfs.h"
#include "../romfs.h"
#include "../fatfs/ff.h"
#include "fatfs/ff.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion source/core/bis_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const char *bisStorageGet##property##ByBisPartitionId(u8 bis_partition_id) { \
/* Type definitions. */

typedef struct {
u8 bis_partition_id; ///< FsBisPartitionId.
u8 bis_partition_id; ///< FsBisPartitionId.
const char *gpt_name;
const char *sysinit_name;
const char *devoptab_mount_name;
Expand Down
1 change: 0 additions & 1 deletion source/core/devoptab/fat_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <core/nxdt_utils.h>
#include <core/devoptab/nxdt_devoptab.h>
#include <core/devoptab/ro_dev.h>
#include <core/fatfs/ff.h>

/* Helper macros. */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#include <core/nxdt_utils.h>
#include <core/bis_storage.h>

#include <core/fatfs/ff.h> /* Obtains integer types */
#include <core/fatfs/diskio.h> /* Declarations of disk functions */
#include <core/devoptab/fatfs/ff.h> /* Obtains integer types */
#include <core/devoptab/fatfs/diskio.h> /* Declarations of disk functions */

/*-----------------------------------------------------------------------*/
/* Get Drive Status */
Expand Down
4 changes: 2 additions & 2 deletions source/core/fatfs/ff.c → source/core/devoptab/fatfs/ff.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@


#include <string.h>
#include <core/fatfs/ff.h> /* Declarations of FatFs API */
#include <core/fatfs/diskio.h> /* Declarations of device I/O functions */
#include <core/devoptab/fatfs/ff.h> /* Declarations of FatFs API */
#include <core/devoptab/fatfs/diskio.h> /* Declarations of device I/O functions */


/*--------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* A Sample Code of User Provided OS Dependent Functions for FatFs */
/*------------------------------------------------------------------------*/

#include <core/fatfs/ff.h>
#include <core/devoptab/fatfs/ff.h>


#if FF_USE_LFN == 3 /* Use dynamic memory allocation */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/


#include <core/fatfs/ff.h>
#include <core/devoptab/fatfs/ff.h>

#if FF_USE_LFN != 0 /* This module will be blanked if in non-LFN configuration */

Expand Down
1 change: 0 additions & 1 deletion todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ todo:

others: check todo with grep
others: dump verification via no-intro
others: fatfs browser for emmc partitions

reminder:

Expand Down

0 comments on commit f817ec5

Please sign in to comment.