mirror of
https://github.com/ApacheThunder/XuluMenu.git
synced 2025-06-19 03:55:32 -04:00

* 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
32 lines
586 B
C
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_ */
|
|
|