mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
rename common_area typedef and global
This commit is contained in:
parent
bc76c7263e
commit
d56d8f0f65
5 changed files with 38 additions and 38 deletions
|
@ -886,10 +886,10 @@ typedef struct {
|
|||
|
||||
|
||||
// CMD_DEVICE_INFO response packet has flags in arg[0], flag definitions:
|
||||
/* Whether a bootloader that understands the common_area is present */
|
||||
/* Whether a bootloader that understands the g_common_area is present */
|
||||
#define DEVICE_INFO_FLAG_BOOTROM_PRESENT (1<<0)
|
||||
|
||||
/* Whether a osimage that understands the common_area is present */
|
||||
/* Whether a osimage that understands the g_common_area is present */
|
||||
#define DEVICE_INFO_FLAG_OSIMAGE_PRESENT (1<<1)
|
||||
|
||||
/* Set if the bootloader is currently executing */
|
||||
|
|
|
@ -120,7 +120,7 @@
|
|||
#define COMMON_AREA_MAGIC 0x43334d50 // "PM3C"
|
||||
#define COMMON_AREA_COMMAND_NONE 0
|
||||
#define COMMON_AREA_COMMAND_ENTER_FLASH_MODE 1
|
||||
struct common_area {
|
||||
typedef struct {
|
||||
int magic; /* Magic sequence, to distinguish against random uninitialized memory */
|
||||
char version; /* Must be 1 */
|
||||
char command;
|
||||
|
@ -130,6 +130,6 @@ struct common_area {
|
|||
unsigned int button_pressed: 1;
|
||||
} PACKED flags;
|
||||
int arg1, arg2;
|
||||
} PACKED;
|
||||
} PACKED common_area_t;
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue