mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-28 00:51:25 +02:00
Introducing EF_PHY to store PHY (VIDPID and LED no.).
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -67,9 +67,14 @@
|
||||
#define EF_SKDFS 0x6045
|
||||
#define EF_META 0xE010
|
||||
|
||||
#ifndef ENABLE_EMULATION
|
||||
#define EF_VP 0xE020
|
||||
#endif
|
||||
#define EF_PHY 0xE020
|
||||
|
||||
#define PHY_VID 0x0
|
||||
#define PHY_PID 0x2
|
||||
#define PHY_LED_GPIO 0x4
|
||||
#define PHY_LED_MODE 0x5
|
||||
|
||||
#define PHY_MAX_SIZE 6
|
||||
|
||||
#define MAX_DEPTH 4
|
||||
|
||||
@@ -129,4 +134,8 @@ extern int meta_delete(uint16_t fid);
|
||||
extern int meta_add(uint16_t fid, const uint8_t *data, uint16_t len);
|
||||
extern int delete_file(file_t *ef);
|
||||
|
||||
#ifndef ENABLE_EMULATION
|
||||
extern file_t *ef_phy;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user