-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
766 additions
and
444 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#ifndef __CONFIG_H__ | ||
#define __CONFIG_H__ | ||
|
||
/* Global configuration options for PicoMemcard */ | ||
#define TUD_MOUNT_TIMEOUT 3000 // max time (in ms) before giving up on MSC mode (USB) and starting memcard simulation | ||
#define MSC_WRITE_SYNC_TIMEOUT 1 * 1000 // time (in ms) expired since last MSC write before exporting RAM disk into LFS | ||
#define IDLE_AUTOSYNC_TIMEOUT 5 * 1000 // time (in ms) the memory card must be inactive before automatic sync from RAM to LFS | ||
#define MEMCARD_FILE_NAME "memcard.mcr" // name of memory card file image | ||
|
||
/* Board targeted by build */ | ||
#define PICO | ||
//#define RP2040ZERO | ||
|
||
|
||
/* PSX Interface Pinout */ | ||
#ifdef PICO | ||
#define PIN_DAT 5 | ||
#define PIN_CMD PIN_DAT + 1 // must be immediately after PIN_DAT | ||
#define PIN_SEL PIN_CMD + 1 // must be immediately after PIN_CMD | ||
#define PIN_CLK PIN_SEL + 1 // must be immediately after PIN_SEL | ||
#define PIN_ACK 9 | ||
#endif | ||
|
||
#ifdef RP2040ZERO | ||
#define PIN_DAT 9 | ||
#define PIN_CMD PIN_DAT + 1 // must be immediately after PIN_DAT | ||
#define PIN_SEL PIN_CMD + 1 // must be immediately after PIN_CMD | ||
#define PIN_CLK PIN_SEL + 1 // must be immediately after PIN_SEL | ||
#define PIN_ACK 13 | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef __LED_H__ | ||
#define __LED_H__ | ||
|
||
#include "pico/stdlib.h" | ||
|
||
void led_init(); | ||
void led_output_sync_status(bool out_of_sync); | ||
void led_blink_error(int amount); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.