OXYGENHUB
◆ riscv-1 x16-emulator / src / vera_spi.h
335 B · Objective-C · last changed main: while the CPU waits in WAI, step the machine to its next event at once 15 days ago source blame history raw
03a3459e Andy McCall 1
// Commander X16 Emulator
2
// Copyright (c) 2019 Michael Steil
3
// All rights reserved. License: 2-clause BSD
4
5
#include <inttypes.h>
8e8d9cad Andy McCall ↶ 6
#include <stdbool.h>
03a3459e Andy McCall 7
8
void vera_spi_init();
9
void vera_spi_step(int mhz, int clocks);
8e8d9cad Andy McCall ↶ 10
bool vera_spi_busy(void);
03a3459e Andy McCall 11
uint8_t vera_spi_read(uint8_t address);
12
void vera_spi_write(uint8_t address, uint8_t value);