mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
rename common_area typedef and global
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user