mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-12-27 05:21:55 +01:00
wait for previous command
This commit is contained in:
parent
612fc5bec5
commit
27fe9b6d7b
@ -38,6 +38,7 @@ static bool sc64_wait_cpu_busy (void) {
|
||||
}
|
||||
|
||||
static bool sc64_execute_cmd (uint8_t cmd, uint32_t *args, uint32_t *result) {
|
||||
sc64_wait_cpu_busy();
|
||||
if (args != NULL) {
|
||||
pi_io_write(&SC64_REGS->DATA[0], args[0]);
|
||||
pi_io_write(&SC64_REGS->DATA[1], args[1]);
|
||||
|
Loading…
Reference in New Issue
Block a user