added driver sim
This commit is contained in:
15
driver/sw/utils.h
Normal file
15
driver/sw/utils.h
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
struct ihex_t {
|
||||
static constexpr int MAX_LINE_SIZE = 524;
|
||||
static constexpr int MAX_DATA_SIZE = 255;
|
||||
uint8_t data[MAX_DATA_SIZE];
|
||||
uint32_t address;
|
||||
uint32_t data_size;
|
||||
uint32_t offset;
|
||||
bool has_offset;
|
||||
bool is_eof;
|
||||
};
|
||||
|
||||
int parse_ihex_line(char* line, ihex_t* out);
|
||||
Reference in New Issue
Block a user