Made ROM programming more robust now that we are not using interrupts for the control

This commit is contained in:
2020-12-22 02:31:33 +01:00
parent 279a81716a
commit b638db4f95
4 changed files with 136 additions and 238 deletions

View File

@@ -18,17 +18,6 @@ typedef enum {
CONTROL_CLOCK_HIGH
} ControlState;
typedef struct {
uint8_t programming;
uint16_t length;
uint8_t* data;
} Eeprom;
typedef struct {
uint8_t received;
uint8_t c;
} Input;
typedef struct {
uint8_t dirty;
uint8_t action;
@@ -45,19 +34,14 @@ typedef struct {
ControlState state;
uint8_t memory_config;
Storage storage;
Input input;
Eeprom eeprom;
} Control;
uint16_t read_address();
void write_data(uint8_t value);
uint8_t read_data();
void control_program_eeprom(uint8_t* data, uint16_t length);
void control_execute_state();
void control_reset();
uint8_t control_receive_program(uint8_t byte);
void send_key(uint8_t c);
#endif