indent cleanup
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include <stdint.h>
|
||||
#include <avr/io.h>
|
||||
#include <util/delay.h> /* for _delay_ms() */
|
||||
#include <avr/interrupt.h>
|
||||
#include <avr/interrupt.h>
|
||||
|
||||
|
||||
#include "config.h"
|
||||
@@ -62,7 +62,7 @@ void system_init(void)
|
||||
|
||||
system.reset_irq = RESET_IRQ_OFF;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void system_send_snes_reset()
|
||||
{
|
||||
@@ -87,13 +87,13 @@ void system_send_snes_irq()
|
||||
}
|
||||
|
||||
void system_snes_irq_off()
|
||||
{
|
||||
{
|
||||
snes_irq_off();
|
||||
system.irq_line = IRQ_OFF;
|
||||
}
|
||||
|
||||
void system_snes_irq_on()
|
||||
{
|
||||
{
|
||||
snes_irq_on();
|
||||
system.irq_line = IRQ_ON;
|
||||
}
|
||||
@@ -106,13 +106,15 @@ void system_set_bus_avr()
|
||||
system.bus_mode = MODE_AVR;
|
||||
}
|
||||
|
||||
void system_set_wr_disable(){
|
||||
void system_set_wr_disable()
|
||||
{
|
||||
snes_wr_disable();
|
||||
system.wr_line = WR_DISABLE;
|
||||
info_P(PSTR("Disable SNES WR\n"));
|
||||
}
|
||||
|
||||
void system_set_wr_enable(){
|
||||
void system_set_wr_enable()
|
||||
{
|
||||
snes_wr_enable();
|
||||
system.wr_line = WR_ENABLE;
|
||||
info_P(PSTR("Enable SNES WR\n"));
|
||||
@@ -125,7 +127,7 @@ void system_set_bus_snes()
|
||||
info_P(PSTR("Activate SNES bus\n"));
|
||||
}
|
||||
|
||||
void system_set_rom_mode(usb_transaction_t *usb_trans)
|
||||
void system_set_rom_mode(usb_transaction_t * usb_trans)
|
||||
{
|
||||
if (usb_trans->req_bank_size == 0x8000) {
|
||||
snes_lorom();
|
||||
@@ -153,34 +155,39 @@ void system_set_rom_hirom()
|
||||
info_P(PSTR("Set SNES hirom \n"));
|
||||
}
|
||||
|
||||
char* system_status_helper(uint8_t val){
|
||||
if (val)
|
||||
return "ON";
|
||||
char *system_status_helper(uint8_t val)
|
||||
{
|
||||
if (val)
|
||||
return "ON";
|
||||
else
|
||||
return "OFF";
|
||||
}
|
||||
|
||||
char* system_status_bus(uint8_t val){
|
||||
if (val)
|
||||
return "SNES";
|
||||
char *system_status_bus(uint8_t val)
|
||||
{
|
||||
if (val)
|
||||
return "SNES";
|
||||
else
|
||||
return "AVR";
|
||||
}
|
||||
|
||||
char* system_status_rom(uint8_t val){
|
||||
if (val)
|
||||
return "HIROM";
|
||||
char *system_status_rom(uint8_t val)
|
||||
{
|
||||
if (val)
|
||||
return "HIROM";
|
||||
else
|
||||
return "LOROM";
|
||||
}
|
||||
|
||||
void system_status(){
|
||||
info_P(PSTR("\nBus Mode %s\n"),system_status_bus(system.bus_mode));
|
||||
info_P(PSTR("Rom Mode %s\n"),system_status_rom(system.rom_mode));
|
||||
info_P(PSTR("Reset Line %s\n"),system_status_helper(system.reset_line));
|
||||
info_P(PSTR("IRQ Line %s\n"),system_status_helper(system.irq_line));
|
||||
info_P(PSTR("WR Line %s\n"),system_status_helper(system.wr_line));
|
||||
info_P(PSTR("Reset IRQ %s\n"),system_status_helper(system.reset_irq));
|
||||
info_P(PSTR("SNES Reset 0x%02x\n"),system.snes_reset_count);
|
||||
info_P(PSTR("AVR Reset 0x%02x\n"),system.avr_reset_count);
|
||||
}
|
||||
void system_status()
|
||||
{
|
||||
info_P(PSTR("\nBus Mode %s\n"), system_status_bus(system.bus_mode));
|
||||
info_P(PSTR("Rom Mode %s\n"), system_status_rom(system.rom_mode));
|
||||
info_P(PSTR("Reset Line %s\n"),
|
||||
system_status_helper(system.reset_line));
|
||||
info_P(PSTR("IRQ Line %s\n"), system_status_helper(system.irq_line));
|
||||
info_P(PSTR("WR Line %s\n"), system_status_helper(system.wr_line));
|
||||
info_P(PSTR("Reset IRQ %s\n"), system_status_helper(system.reset_irq));
|
||||
info_P(PSTR("SNES Reset 0x%02x\n"), system.snes_reset_count);
|
||||
info_P(PSTR("AVR Reset 0x%02x\n"), system.avr_reset_count);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user