permanent memory
This commit is contained in:
parent
59edb49d5c
commit
f755095523
@ -31,7 +31,7 @@ void MEM_init(){
|
|||||||
CAR_CST.CONTROL_MAX_SPEED_BW = 0;
|
CAR_CST.CONTROL_MAX_SPEED_BW = 0;
|
||||||
|
|
||||||
CAR_CST.JOYSTICK_MODE = 0;
|
CAR_CST.JOYSTICK_MODE = 0;
|
||||||
CAR_CST.JOYSTICK_PARAM1 = 100;
|
CAR_CST.JOYSTICK_PARAM1 = 10;
|
||||||
CAR_CST.JOYSTICK_PARAM2 = 1;
|
CAR_CST.JOYSTICK_PARAM2 = 1;
|
||||||
CAR_CST.JOYSTICK_ALIVE_TIME = 10;
|
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) {
|
void MEM_write_1_byte(uint8_t address, uint8_t data) {
|
||||||
DATAEE_WriteByte(address, data);
|
DATAEE_WriteByte(address, data);
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
#include "../mcc_generated_files/mcc.h"
|
#include "../mcc_generated_files/mcc.h"
|
||||||
|
|
||||||
void MEM_init();
|
void MEM_init();
|
||||||
|
void MEM_reset();
|
||||||
void MEM_write_1_byte(uint8_t address, uint8_t data);
|
void MEM_write_1_byte(uint8_t address, uint8_t data);
|
||||||
void MEM_write_4_byte(uint8_t address, uint32_t data);
|
void MEM_write_4_byte(uint8_t address, uint32_t data);
|
||||||
uint8_t MEM_read_1_byte(uint8_t address);
|
uint8_t MEM_read_1_byte(uint8_t address);
|
||||||
|
@ -216,7 +216,6 @@
|
|||||||
<property key="debugoptions.debug-startup" value="Use system settings"/>
|
<property key="debugoptions.debug-startup" value="Use system settings"/>
|
||||||
<property key="debugoptions.reset-behaviour" value="Use system settings"/>
|
<property key="debugoptions.reset-behaviour" value="Use system settings"/>
|
||||||
<property key="debugoptions.useswbreakpoints" value="false"/>
|
<property key="debugoptions.useswbreakpoints" value="false"/>
|
||||||
<property key="firmware.download.all" value="false"/>
|
|
||||||
<property key="hwtoolclock.frcindebug" value="false"/>
|
<property key="hwtoolclock.frcindebug" value="false"/>
|
||||||
<property key="memories.aux" value="false"/>
|
<property key="memories.aux" value="false"/>
|
||||||
<property key="memories.bootflash" value="true"/>
|
<property key="memories.bootflash" value="true"/>
|
||||||
@ -239,7 +238,7 @@
|
|||||||
<property key="programoptions.preservedataflash" value="false"/>
|
<property key="programoptions.preservedataflash" value="false"/>
|
||||||
<property key="programoptions.preservedataflash.ranges"
|
<property key="programoptions.preservedataflash.ranges"
|
||||||
value="${programoptions.preservedataflash.ranges}"/>
|
value="${programoptions.preservedataflash.ranges}"/>
|
||||||
<property key="programoptions.preserveeeprom" value="false"/>
|
<property key="programoptions.preserveeeprom" value="true"/>
|
||||||
<property key="programoptions.preserveeeprom.ranges" value="310000-3103ff"/>
|
<property key="programoptions.preserveeeprom.ranges" value="310000-3103ff"/>
|
||||||
<property key="programoptions.preserveprogram.ranges" value=""/>
|
<property key="programoptions.preserveprogram.ranges" value=""/>
|
||||||
<property key="programoptions.preserveprogramrange" value="false"/>
|
<property key="programoptions.preserveprogramrange" value="false"/>
|
||||||
@ -778,7 +777,7 @@
|
|||||||
<property key="programoptions.preservedataflash" value="false"/>
|
<property key="programoptions.preservedataflash" value="false"/>
|
||||||
<property key="programoptions.preservedataflash.ranges"
|
<property key="programoptions.preservedataflash.ranges"
|
||||||
value="${programoptions.preservedataflash.ranges}"/>
|
value="${programoptions.preservedataflash.ranges}"/>
|
||||||
<property key="programoptions.preserveeeprom" value="false"/>
|
<property key="programoptions.preserveeeprom" value="true"/>
|
||||||
<property key="programoptions.preserveeeprom.ranges" value="310000-3103ff"/>
|
<property key="programoptions.preserveeeprom.ranges" value="310000-3103ff"/>
|
||||||
<property key="programoptions.preserveprogram.ranges" value=""/>
|
<property key="programoptions.preserveprogram.ranges" value=""/>
|
||||||
<property key="programoptions.preserveprogramrange" value="false"/>
|
<property key="programoptions.preserveprogramrange" value="false"/>
|
||||||
|
Reference in New Issue
Block a user