VERA driver rewrite
This commit is contained in:
parent
59e15a5c42
commit
fdf3be48b2
|
@ -47,8 +47,10 @@ void vera_mem_write(uint32_t dest, void *src, size_t length) {
|
||||||
vera_address_select(0);
|
vera_address_select(0);
|
||||||
vera_address_set(dest | AUTO_INC_1);
|
vera_address_set(dest | AUTO_INC_1);
|
||||||
|
|
||||||
|
uint8_t *source = src;
|
||||||
|
|
||||||
for (size_t count = 0; count < length; count += 1) {
|
for (size_t count = 0; count < length; count += 1) {
|
||||||
vera_data_0_write(*((uint8_t *)(src)));
|
vera_data_0_write(*(source + count));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue