mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-03-21 17:44:21 -05:00
Stop duplicating int definitions
This commit is contained in:
parent
8cf3bb5a1c
commit
afb05da665
|
|
@ -78,12 +78,12 @@ static volatile char LINK_CABLE_VERSION[] = "LinkCable/v7.1.0";
|
|||
*/
|
||||
class LinkCable {
|
||||
private:
|
||||
using u32 = unsigned int;
|
||||
using u16 = unsigned short;
|
||||
using u8 = unsigned char;
|
||||
using vu32 = volatile unsigned int;
|
||||
using vs32 = volatile signed int;
|
||||
using vu8 = volatile unsigned char;
|
||||
using u32 = Link::u32;
|
||||
using u16 = Link::u16;
|
||||
using u8 = Link::u8;
|
||||
using vu32 = Link::vu32;
|
||||
using vs32 = Link::vs32;
|
||||
using vu8 = Link::vu8;
|
||||
using U16Queue = Link::Queue<u16, LINK_CABLE_QUEUE_SIZE>;
|
||||
|
||||
static constexpr auto BASE_FREQUENCY = Link::_TM_FREQ_1024;
|
||||
|
|
|
|||
|
|
@ -55,9 +55,9 @@ static volatile char LINK_CABLE_MULTIBOOT_VERSION[] =
|
|||
*/
|
||||
class LinkCableMultiboot {
|
||||
private:
|
||||
using u32 = unsigned int;
|
||||
using u16 = unsigned short;
|
||||
using u8 = unsigned char;
|
||||
using u32 = Link::u32;
|
||||
using u16 = Link::u16;
|
||||
using u8 = Link::u8;
|
||||
|
||||
static constexpr int MIN_ROM_SIZE = 0x100 + 0xc0;
|
||||
static constexpr int MAX_ROM_SIZE = 256 * 1024;
|
||||
|
|
|
|||
|
|
@ -53,9 +53,9 @@ static volatile char LINK_CUBE_VERSION[] = "LinkCube/v7.1.0";
|
|||
*/
|
||||
class LinkCube {
|
||||
private:
|
||||
using u32 = unsigned int;
|
||||
using u16 = unsigned short;
|
||||
using u8 = unsigned char;
|
||||
using u32 = Link::u32;
|
||||
using u16 = Link::u16;
|
||||
using u8 = Link::u8;
|
||||
using U32Queue = Link::Queue<u32, LINK_CUBE_QUEUE_SIZE>;
|
||||
|
||||
static constexpr int BIT_CMD_RESET = 0;
|
||||
|
|
|
|||
|
|
@ -35,9 +35,9 @@
|
|||
*/
|
||||
class LinkGPIO {
|
||||
private:
|
||||
using u32 = unsigned int;
|
||||
using u16 = unsigned short;
|
||||
using u8 = unsigned char;
|
||||
using u32 = Link::u32;
|
||||
using u16 = Link::u16;
|
||||
using u8 = Link::u8;
|
||||
|
||||
static constexpr int RCNT_GENERAL_PURPOSE = (1 << 15);
|
||||
static constexpr int SIOCNT_GENERAL_PURPOSE = 0;
|
||||
|
|
|
|||
|
|
@ -100,9 +100,9 @@ static volatile char LINK_MOBILE_VERSION[] = "LinkMobile/v7.1.0";
|
|||
*/
|
||||
class LinkMobile {
|
||||
private:
|
||||
using u32 = unsigned int;
|
||||
using u16 = unsigned short;
|
||||
using u8 = unsigned char;
|
||||
using u32 = Link::u32;
|
||||
using u16 = Link::u16;
|
||||
using u8 = Link::u8;
|
||||
|
||||
static constexpr auto BASE_FREQUENCY = Link::_TM_FREQ_1024;
|
||||
static constexpr int INIT_WAIT_FRAMES = 7;
|
||||
|
|
|
|||
|
|
@ -50,9 +50,9 @@ static volatile char LINK_PS2_KEYBOARD_VERSION[] = "LinkPS2Keyboard/v7.1.0";
|
|||
*/
|
||||
class LinkPS2Keyboard {
|
||||
private:
|
||||
using u32 = unsigned int;
|
||||
using u16 = unsigned short;
|
||||
using u8 = unsigned char;
|
||||
using u32 = Link::u32;
|
||||
using u16 = Link::u16;
|
||||
using u8 = Link::u8;
|
||||
|
||||
static constexpr int RCNT_GPIO_AND_SI_IRQ = 0b1000000100000000;
|
||||
static constexpr int RCNT_GPIO = 0b1000000000000000;
|
||||
|
|
|
|||
|
|
@ -52,9 +52,9 @@ static volatile char LINK_PS2_MOUSE_VERSION[] = "LinkPS2Mouse/v7.1.0";
|
|||
*/
|
||||
class LinkPS2Mouse {
|
||||
private:
|
||||
using u32 = unsigned int;
|
||||
using u16 = unsigned short;
|
||||
using u8 = unsigned char;
|
||||
using u32 = Link::u32;
|
||||
using u16 = Link::u16;
|
||||
using u8 = Link::u8;
|
||||
using s16 = signed short;
|
||||
|
||||
static constexpr int RCNT_GPIO = 0b1000000000000000;
|
||||
|
|
|
|||
|
|
@ -56,9 +56,9 @@ static volatile char LINK_RAW_CABLE_VERSION[] = "LinkRawCable/v7.1.0";
|
|||
*/
|
||||
class LinkRawCable {
|
||||
private:
|
||||
using u32 = unsigned int;
|
||||
using u16 = unsigned short;
|
||||
using u8 = unsigned char;
|
||||
using u32 = Link::u32;
|
||||
using u16 = Link::u16;
|
||||
using u8 = Link::u8;
|
||||
|
||||
static constexpr int BIT_SLAVE = 2;
|
||||
static constexpr int BIT_READY = 3;
|
||||
|
|
|
|||
|
|
@ -48,10 +48,10 @@ static volatile char LINK_RAW_WIRELESS_VERSION[] = "LinkRawWireless/v7.1.0";
|
|||
*/
|
||||
class LinkRawWireless {
|
||||
private:
|
||||
using u32 = unsigned int;
|
||||
using u16 = unsigned short;
|
||||
using u8 = unsigned char;
|
||||
using vu8 = volatile unsigned char;
|
||||
using u32 = Link::u32;
|
||||
using u16 = Link::u16;
|
||||
using u8 = Link::u8;
|
||||
using vu8 = Link::vu8;
|
||||
|
||||
public:
|
||||
static constexpr int PING_WAIT = 50;
|
||||
|
|
|
|||
|
|
@ -57,9 +57,9 @@ static volatile char LINK_SPI_VERSION[] = "LinkSPI/v7.1.0";
|
|||
*/
|
||||
class LinkSPI {
|
||||
private:
|
||||
using u32 = unsigned int;
|
||||
using u16 = unsigned short;
|
||||
using u8 = unsigned char;
|
||||
using u32 = Link::u32;
|
||||
using u16 = Link::u16;
|
||||
using u8 = Link::u8;
|
||||
|
||||
static constexpr int BIT_CLOCK = 0;
|
||||
static constexpr int BIT_CLOCK_SPEED = 1;
|
||||
|
|
|
|||
|
|
@ -46,11 +46,11 @@ static volatile char LINK_UART_VERSION[] = "LinkUART/v7.1.0";
|
|||
*/
|
||||
class LinkUART {
|
||||
private:
|
||||
using u32 = unsigned int;
|
||||
using u16 = unsigned short;
|
||||
using u8 = unsigned char;
|
||||
using vu32 = volatile unsigned int;
|
||||
using vs32 = volatile signed int;
|
||||
using u32 = Link::u32;
|
||||
using u16 = Link::u16;
|
||||
using u8 = Link::u8;
|
||||
using vu32 = Link::vu32;
|
||||
using vs32 = Link::vs32;
|
||||
using U8Queue = Link::Queue<u8, LINK_UART_QUEUE_SIZE>;
|
||||
|
||||
static constexpr int BIT_CTS = 2;
|
||||
|
|
|
|||
|
|
@ -80,10 +80,10 @@ static volatile char LINK_UNIVERSAL_VERSION[] = "LinkUniversal/v7.1.0";
|
|||
*/
|
||||
class LinkUniversal {
|
||||
private:
|
||||
using u32 = unsigned int;
|
||||
using u16 = unsigned short;
|
||||
using u8 = unsigned char;
|
||||
using s8 = signed char;
|
||||
using u32 = Link::u32;
|
||||
using u16 = Link::u16;
|
||||
using u8 = Link::u8;
|
||||
using s8 = Link::s8;
|
||||
using U16Queue = Link::Queue<u16, LINK_CABLE_QUEUE_SIZE>;
|
||||
|
||||
static constexpr int MAX_ROOM_NUMBER = 32000;
|
||||
|
|
|
|||
|
|
@ -174,12 +174,12 @@ static volatile char LINK_WIRELESS_VERSION[] = "LinkWireless/v7.1.0";
|
|||
*/
|
||||
class LinkWireless {
|
||||
private:
|
||||
using u32 = unsigned int;
|
||||
using u16 = unsigned short;
|
||||
using u8 = unsigned char;
|
||||
using vu32 = volatile unsigned int;
|
||||
using vs32 = volatile signed int;
|
||||
using s8 = signed char;
|
||||
using u32 = Link::u32;
|
||||
using u16 = Link::u16;
|
||||
using u8 = Link::u8;
|
||||
using vu32 = Link::vu32;
|
||||
using vs32 = Link::vs32;
|
||||
using s8 = Link::s8;
|
||||
|
||||
static constexpr auto BASE_FREQUENCY = Link::_TM_FREQ_1024;
|
||||
#ifdef LINK_WIRELESS_TWO_PLAYERS_ONLY
|
||||
|
|
|
|||
|
|
@ -76,9 +76,9 @@ static volatile char LINK_WIRELESS_MULTIBOOT_VERSION[] =
|
|||
*/
|
||||
class LinkWirelessMultiboot {
|
||||
private:
|
||||
using u32 = unsigned int;
|
||||
using u16 = unsigned short;
|
||||
using u8 = unsigned char;
|
||||
using u32 = Link::u32;
|
||||
using u16 = Link::u16;
|
||||
using u8 = Link::u8;
|
||||
|
||||
using CommState = LinkWirelessOpenSDK::CommState;
|
||||
using Sequence = LinkWirelessOpenSDK::SequenceNumber;
|
||||
|
|
|
|||
|
|
@ -26,9 +26,9 @@ static volatile char VERSION[] = "LinkWirelessOpenSDK/v7.1.0";
|
|||
*/
|
||||
class LinkWirelessOpenSDK {
|
||||
private:
|
||||
using u32 = unsigned int;
|
||||
using u16 = unsigned short;
|
||||
using u8 = unsigned char;
|
||||
using u32 = Link::u32;
|
||||
using u16 = Link::u16;
|
||||
using u8 = Link::u8;
|
||||
|
||||
public:
|
||||
static constexpr int MAX_TRANSFER_WORDS = 23;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user