mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-28 17:11:23 +02:00
Pack file struct for.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -113,7 +113,6 @@ void process_fci(const file_t *pe, int fmd) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#define MAX_DYNAMIC_FILES 128
|
|
||||||
uint16_t dynamic_files = 0;
|
uint16_t dynamic_files = 0;
|
||||||
file_t dynamic_file[MAX_DYNAMIC_FILES];
|
file_t dynamic_file[MAX_DYNAMIC_FILES];
|
||||||
|
|
||||||
|
|||||||
@@ -69,15 +69,17 @@
|
|||||||
|
|
||||||
#define MAX_DEPTH 4
|
#define MAX_DEPTH 4
|
||||||
|
|
||||||
|
#define MAX_DYNAMIC_FILES 256
|
||||||
|
|
||||||
typedef struct file {
|
typedef struct file {
|
||||||
const uint16_t fid;
|
|
||||||
const uint8_t parent; //entry number in the whole table!!
|
|
||||||
const uint8_t *name;
|
const uint8_t *name;
|
||||||
|
uint8_t *data; //should include 2 bytes len at begining
|
||||||
|
const uint16_t fid;
|
||||||
|
const uint8_t acl[7];
|
||||||
|
const uint8_t parent; //entry number in the whole table!!
|
||||||
const uint8_t type;
|
const uint8_t type;
|
||||||
const uint8_t ef_structure;
|
const uint8_t ef_structure;
|
||||||
uint8_t *data; //should include 2 bytes len at begining
|
} __attribute__ ((packed)) file_t;
|
||||||
const uint8_t acl[7];
|
|
||||||
} file_t;
|
|
||||||
|
|
||||||
extern bool file_has_data(file_t *);
|
extern bool file_has_data(file_t *);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user