diff options
author | Julian Oes <joes@student.ethz.ch> | 2013-01-10 15:35:47 -0800 |
---|---|---|
committer | Julian Oes <joes@student.ethz.ch> | 2013-01-10 15:35:47 -0800 |
commit | 5e20dd173612611724dcbd5ab5c9a15dfb0a33e1 (patch) | |
tree | c7a8dcbeef9055e1789e3de66e58ee81202a0cc9 /apps/drivers/px4io/uploader.h | |
parent | d957f8e00424e65b76bb5121c3f6549e0c2786cb (diff) | |
download | px4-firmware-5e20dd173612611724dcbd5ab5c9a15dfb0a33e1.tar.gz px4-firmware-5e20dd173612611724dcbd5ab5c9a15dfb0a33e1.tar.bz2 px4-firmware-5e20dd173612611724dcbd5ab5c9a15dfb0a33e1.zip |
Added support for IO bootloader revision 3 on FMU
Diffstat (limited to 'apps/drivers/px4io/uploader.h')
-rw-r--r-- | apps/drivers/px4io/uploader.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/drivers/px4io/uploader.h b/apps/drivers/px4io/uploader.h index 8d41992f8..b8a3a2794 100644 --- a/apps/drivers/px4io/uploader.h +++ b/apps/drivers/px4io/uploader.h @@ -64,21 +64,25 @@ private: PROTO_CHIP_VERIFY = 0x24, PROTO_PROG_MULTI = 0x27, PROTO_READ_MULTI = 0x28, + PROTO_GET_CRC = 0x29, PROTO_REBOOT = 0x30, INFO_BL_REV = 1, /**< bootloader protocol revision */ - BL_REV = 2, /**< supported bootloader protocol */ + BL_REV = 3, /**< supported bootloader protocol */ INFO_BOARD_ID = 2, /**< board type */ INFO_BOARD_REV = 3, /**< board revision */ INFO_FLASH_SIZE = 4, /**< max firmware size in bytes */ PROG_MULTI_MAX = 60, /**< protocol max is 255, must be multiple of 4 */ READ_MULTI_MAX = 60, /**< protocol max is 255, something overflows with >= 64 */ + }; int _io_fd; int _fw_fd; + uint32_t bl_rev; /**< bootloader revision */ + void log(const char *fmt, ...); int recv(uint8_t &c, unsigned timeout = 1000); @@ -91,7 +95,8 @@ private: int get_info(int param, uint32_t &val); int erase(); int program(); - int verify(); + int verify_rev2(); + int verify_rev3(); int reboot(); int compare(bool &identical); }; |