mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-27 15:04:15 +01:00
Fix typos
This commit is contained in:
parent
b501556954
commit
a46358954f
@ -496,6 +496,8 @@ void showCartInfo_GB() {
|
|||||||
void dataIn_GB() {
|
void dataIn_GB() {
|
||||||
// Set to Input
|
// Set to Input
|
||||||
DDRC = 0x00;
|
DDRC = 0x00;
|
||||||
|
// Pullups
|
||||||
|
//PORTC = 0xFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
byte readByte_GB(word myAddress) {
|
byte readByte_GB(word myAddress) {
|
||||||
@ -1173,7 +1175,7 @@ void writeFlash29F_GB(byte MBC, boolean flashErase) {
|
|||||||
writeByte_GB(0x555, 0x10);
|
writeByte_GB(0x555, 0x10);
|
||||||
|
|
||||||
// Set data pins to input
|
// Set data pins to input
|
||||||
dataIn();
|
dataIn_GB();
|
||||||
|
|
||||||
// Set OE/RD(PH6) LOW
|
// Set OE/RD(PH6) LOW
|
||||||
PORTH &= ~(1 << 6);
|
PORTH &= ~(1 << 6);
|
||||||
@ -1198,7 +1200,7 @@ void writeFlash29F_GB(byte MBC, boolean flashErase) {
|
|||||||
|
|
||||||
// Set ROM bank
|
// Set ROM bank
|
||||||
writeByte_GB(0x2000, currBank);
|
writeByte_GB(0x2000, currBank);
|
||||||
dataIn();
|
dataIn_GB();
|
||||||
|
|
||||||
for (unsigned int currAddr = 0x4000; currAddr < 0x7FFF; currAddr += 512) {
|
for (unsigned int currAddr = 0x4000; currAddr < 0x7FFF; currAddr += 512) {
|
||||||
for (int currByte = 0; currByte < 512; currByte++) {
|
for (int currByte = 0; currByte < 512; currByte++) {
|
||||||
@ -1253,7 +1255,7 @@ void writeFlash29F_GB(byte MBC, boolean flashErase) {
|
|||||||
writeByte_GB(currAddr + currByte, sdBuffer[currByte]);
|
writeByte_GB(currAddr + currByte, sdBuffer[currByte]);
|
||||||
|
|
||||||
// Set data pins to input
|
// Set data pins to input
|
||||||
dataIn();
|
dataIn_GB();
|
||||||
|
|
||||||
// Set OE/RD(PH6) LOW
|
// Set OE/RD(PH6) LOW
|
||||||
PORTH &= ~(1 << 6);
|
PORTH &= ~(1 << 6);
|
||||||
@ -1308,7 +1310,7 @@ void writeFlash29F_GB(byte MBC, boolean flashErase) {
|
|||||||
writeByte_GB(currAddr + currByte, sdBuffer[currByte]);
|
writeByte_GB(currAddr + currByte, sdBuffer[currByte]);
|
||||||
|
|
||||||
// Set data pins to input
|
// Set data pins to input
|
||||||
dataIn();
|
dataIn_GB();
|
||||||
|
|
||||||
// Set OE/RD(PH6) LOW
|
// Set OE/RD(PH6) LOW
|
||||||
PORTH &= ~(1 << 6);
|
PORTH &= ~(1 << 6);
|
||||||
@ -1637,7 +1639,7 @@ bool writeCFI_GB() {
|
|||||||
|
|
||||||
// Set ROM bank
|
// Set ROM bank
|
||||||
writeByte_GB(0x2000, currBank);
|
writeByte_GB(0x2000, currBank);
|
||||||
dataIn();
|
dataIn_GB();
|
||||||
|
|
||||||
for (unsigned int currAddr = 0x4000; currAddr < 0x7FFF; currAddr += 512) {
|
for (unsigned int currAddr = 0x4000; currAddr < 0x7FFF; currAddr += 512) {
|
||||||
for (int currByte = 0; currByte < 512; currByte++) {
|
for (int currByte = 0; currByte < 512; currByte++) {
|
||||||
@ -1688,7 +1690,7 @@ bool writeCFI_GB() {
|
|||||||
writeByte_GB(currAddr + currByte, sdBuffer[currByte]);
|
writeByte_GB(currAddr + currByte, sdBuffer[currByte]);
|
||||||
|
|
||||||
// Set data pins to input
|
// Set data pins to input
|
||||||
dataIn();
|
dataIn_GB();
|
||||||
|
|
||||||
// Setting CS(PH3) and OE/RD(PH6) LOW
|
// Setting CS(PH3) and OE/RD(PH6) LOW
|
||||||
PORTH &= ~((1 << 3) | (1 << 6));
|
PORTH &= ~((1 << 3) | (1 << 6));
|
||||||
|
Loading…
Reference in New Issue
Block a user