configuration
This commit is contained in:
parent
ba6ac21069
commit
f409d3fb22
@ -75,6 +75,11 @@ static uint16_t swap(uint16_t i) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// active waiting, use only during initialization!
|
||||||
|
static void eepromActiveDelay(uint8_t delay_ms) {
|
||||||
|
activeDelay(delay_ms);
|
||||||
|
}
|
||||||
|
|
||||||
void eepromWrite(uint16_t addr, uint8_t *buf, uint8_t len) {
|
void eepromWrite(uint16_t addr, uint8_t *buf, uint8_t len) {
|
||||||
t_spiMsg msg = {
|
t_spiMsg msg = {
|
||||||
.s.cmd = EEPROM_WRITE,
|
.s.cmd = EEPROM_WRITE,
|
||||||
@ -145,10 +150,6 @@ void eepromWriteConfigBlock(uint8_t blockNum, t_configBlock *srcConfigBlock) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// active waiting, use only during initialization!
|
|
||||||
static void eepromActiveDelay(uint8_t delay_ms) {
|
|
||||||
activeDelay(delay_ms);
|
|
||||||
}
|
|
||||||
|
|
||||||
void eepromInit() {
|
void eepromInit() {
|
||||||
__EEPROM_CS(HIGH);
|
__EEPROM_CS(HIGH);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user