XuluMenu/arm9/source/nrio_detect.h
ApacheThunder 73a57faf9e Add open source USB transfer app...
* App used for transferring files over to N-Card over USB added XuluMenu
and boots automatically if USB cart is present. Like original uDisk
holding Select on boot will skip this. Holding B on boot to boot
filebrowser will also skip this.

* libnds32 added as library and properly refernced by arm9 make file.
Should allow anyone with a standard devKitPro setup to compile this
without issue.

* Unpacked SRLs of uDisk updator apps provided as an example of building
custom uDisk updators. Refer to Readme for details on how they were
setup.

* new open source USB app and code for detecting USB cart courtasy of
asiekierka. Original repo for this can be found here:

https://github.com/asiekierka/nrio-usb-disk

The modified fork XuluMenu currently uses:

https://github.com/ApacheThunder/nrio-usb-disk
2024-11-07 23:37:46 -06:00

32 lines
586 B
C

// SPDX-License-Identifier: CC0-1.0
//
// SPDX-FileContributor: Adrian "asie" Siekierka, 2024
#ifndef _NRIO_DETECT_H_
#define _NRIO_DETECT_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#define NRIO_USB_BOARD_TYPE_NONE 0
#define NRIO_USB_BOARD_TYPE_D12 12
#define NRIO_USB_BOARD_TYPE_D14 14
typedef struct nrio_usb_type {
uint16_t board_type; ///< Board type
uint16_t chip_id; ///< Chip ID
uint16_t chip_rev; ///< Chip revision
} nrio_usb_type_t;
nrio_usb_type_t nrio_usb_detect(void);
#ifdef __cplusplus
}
#endif
#endif /* _NRIO_DETECT_H_ */