aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/px4io/uploader.h
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-07-31 11:37:32 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-07-31 11:37:32 +0200
commit93a822fee4d1245bd74800781e2638efc147c4e8 (patch)
tree16cd8abca9691af516ff2a2b43cef60d31907865 /src/drivers/px4io/uploader.h
parent1b3a775e1b8341cdc32e7c9a497acba9da5a9802 (diff)
parent75dfb0d84d73e56d624c062ba3f35b88505a2f93 (diff)
downloadpx4-firmware-93a822fee4d1245bd74800781e2638efc147c4e8.tar.gz
px4-firmware-93a822fee4d1245bd74800781e2638efc147c4e8.tar.bz2
px4-firmware-93a822fee4d1245bd74800781e2638efc147c4e8.zip
Merged master
Diffstat (limited to 'src/drivers/px4io/uploader.h')
-rw-r--r--src/drivers/px4io/uploader.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/drivers/px4io/uploader.h b/src/drivers/px4io/uploader.h
index 55f63eef9..e17523413 100644
--- a/src/drivers/px4io/uploader.h
+++ b/src/drivers/px4io/uploader.h
@@ -74,20 +74,19 @@ private:
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 */
+ PROG_MULTI_MAX = 248, /**< protocol max is 255, must be multiple of 4 */
};
int _io_fd;
int _fw_fd;
- uint32_t bl_rev; /**< bootloader revision */
+ uint32_t bl_rev; /**< bootloader revision */
void log(const char *fmt, ...);
- int recv(uint8_t &c, unsigned timeout);
- int recv(uint8_t *p, unsigned count);
+ int recv_byte_with_timeout(uint8_t *c, unsigned timeout);
+ int recv_bytes(uint8_t *p, unsigned count);
void drain();
int send(uint8_t c);
int send(uint8_t *p, unsigned count);