Arduino gameboy cart reader software, using https://github.com/insidegadgets/GBCartRead
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
307 B
20 lines
307 B
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
enum spi_divider {
|
|
SPI_DIV4,
|
|
SPI_DIV16,
|
|
SPI_DIV64,
|
|
SPI_DIV128,
|
|
|
|
// Double speed
|
|
SPI_DIV2,
|
|
SPI_DIV8,
|
|
SPI_DIV32,
|
|
SPI_DIV64_2
|
|
};
|
|
|
|
void spi_init(const enum spi_divider divider);
|
|
void spi_off(void);
|
|
uint8_t spi_transfer(const uint8_t data);
|
|
|