diff --git a/306-controller_interface.X/middleware/eeprom.c b/306-controller_interface.X/middleware/eeprom.c index 48c8a58..e3041d6 100644 --- a/306-controller_interface.X/middleware/eeprom.c +++ b/306-controller_interface.X/middleware/eeprom.c @@ -31,7 +31,7 @@ void MEM_init(){ CAR_CST.CONTROL_MAX_SPEED_BW = 0; CAR_CST.JOYSTICK_MODE = 0; - CAR_CST.JOYSTICK_PARAM1 = 100; + CAR_CST.JOYSTICK_PARAM1 = 10; CAR_CST.JOYSTICK_PARAM2 = 1; CAR_CST.JOYSTICK_ALIVE_TIME = 10; @@ -105,6 +105,10 @@ void MEM_init(){ } } +void MEM_reset() { + MEM_write_1_byte(0x0, 0x0); +} + void MEM_write_1_byte(uint8_t address, uint8_t data) { DATAEE_WriteByte(address, data); } diff --git a/306-controller_interface.X/middleware/eeprom.h b/306-controller_interface.X/middleware/eeprom.h index 62a0ee6..dbf0bb8 100644 --- a/306-controller_interface.X/middleware/eeprom.h +++ b/306-controller_interface.X/middleware/eeprom.h @@ -12,6 +12,7 @@ #include "../mcc_generated_files/mcc.h" void MEM_init(); +void MEM_reset(); void MEM_write_1_byte(uint8_t address, uint8_t data); void MEM_write_4_byte(uint8_t address, uint32_t data); uint8_t MEM_read_1_byte(uint8_t address); diff --git a/306-controller_interface.X/nbproject/configurations.xml b/306-controller_interface.X/nbproject/configurations.xml index 3dc5c26..81887fd 100644 --- a/306-controller_interface.X/nbproject/configurations.xml +++ b/306-controller_interface.X/nbproject/configurations.xml @@ -216,7 +216,6 @@ - @@ -239,7 +238,7 @@ - + @@ -778,7 +777,7 @@ - +