permanent memory
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user