Skip to content

Commit

Permalink
fix compiling on dkA r54, libc is bloaty so please stick with r53 for…
Browse files Browse the repository at this point in the history
… now
  • Loading branch information
Wolfvak committed Jun 1, 2020
1 parent d6e09c9 commit 244d24e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
10 changes: 5 additions & 5 deletions arm9/source/common/sighax.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include "common.h"

const u8 sig_nand_firm_retail[256];
const u8 sig_nand_firm_retail_alt[256];
const u8 sig_nand_firm_dev[256];
const u8 sig_nand_ncsd_retail[256];
const u8 sig_nand_ncsd_dev[256];
extern const u8 sig_nand_firm_retail[256];
extern const u8 sig_nand_firm_retail_alt[256];
extern const u8 sig_nand_firm_dev[256];
extern const u8 sig_nand_ncsd_retail[256];
extern const u8 sig_nand_ncsd_dev[256];
26 changes: 13 additions & 13 deletions arm9/source/gamecart/card_spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,22 @@ struct CardSPITypeData {

#define NO_CHIP NULL

const CardSPITypeData * const EEPROM_512B;
extern const CardSPITypeData * const EEPROM_512B;

const CardSPITypeData * const EEPROM_8KB;
const CardSPITypeData * const EEPROM_64KB;
const CardSPITypeData * const EEPROM_128KB;
extern const CardSPITypeData * const EEPROM_8KB;
extern const CardSPITypeData * const EEPROM_64KB;
extern const CardSPITypeData * const EEPROM_128KB;

const CardSPITypeData * const FLASH_256KB_1;
const CardSPITypeData * const FLASH_256KB_2;
const CardSPITypeData * const FLASH_512KB_1;
const CardSPITypeData * const FLASH_512KB_2;
const CardSPITypeData * const FLASH_1MB;
const CardSPITypeData * const FLASH_8MB;
extern const CardSPITypeData * const FLASH_256KB_1;
extern const CardSPITypeData * const FLASH_256KB_2;
extern const CardSPITypeData * const FLASH_512KB_1;
extern const CardSPITypeData * const FLASH_512KB_2;
extern const CardSPITypeData * const FLASH_1MB;
extern const CardSPITypeData * const FLASH_8MB;

const CardSPITypeData * const FLASH_128KB_CTR; // Most common, including Ocarina of time 3D
const CardSPITypeData * const FLASH_512KB_CTR; // Also common, including Detective Pikachu
const CardSPITypeData * const FLASH_1MB_CTR; // For example Pokemon Ultra Sun
extern const CardSPITypeData * const FLASH_128KB_CTR; // Most common, including Ocarina of time 3D
extern const CardSPITypeData * const FLASH_512KB_CTR; // Also common, including Detective Pikachu
extern const CardSPITypeData * const FLASH_1MB_CTR; // For example Pokemon Ultra Sun

int CardSPIWriteRead(CardSPIType type, const void* cmd, u32 cmdSize, void* answer, u32 answerSize, const void* data, u32 dataSize);
int CardSPIWaitWriteEnd(CardSPIType type, u32 timeout);
Expand Down

0 comments on commit 244d24e

Please sign in to comment.