driver update

This commit is contained in:
Blaise Tine
2020-03-16 18:13:58 -04:00
parent 55e2cb4a76
commit f034b4c63a
6 changed files with 103 additions and 95 deletions

View File

@@ -1,6 +1,8 @@
#pragma once
#include <vx_driver.h>
struct ihex_t {
static constexpr int MAX_LINE_SIZE = 524;
static constexpr int MAX_DATA_SIZE = 255;
@@ -12,4 +14,6 @@ struct ihex_t {
bool is_eof;
};
int parse_ihex_line(char* line, ihex_t* out);
int parse_ihex_line(char* line, ihex_t* out);
int upload_program(vx_device_h device, const char* filename);