diff --git a/lib/LinkCable.hpp b/lib/LinkCable.hpp index c3fd990..01a90f2 100644 --- a/lib/LinkCable.hpp +++ b/lib/LinkCable.hpp @@ -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; static constexpr auto BASE_FREQUENCY = Link::_TM_FREQ_1024; diff --git a/lib/LinkCableMultiboot.hpp b/lib/LinkCableMultiboot.hpp index a4b52af..5112af4 100644 --- a/lib/LinkCableMultiboot.hpp +++ b/lib/LinkCableMultiboot.hpp @@ -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; diff --git a/lib/LinkCube.hpp b/lib/LinkCube.hpp index 8c2d3bd..e75e0dc 100644 --- a/lib/LinkCube.hpp +++ b/lib/LinkCube.hpp @@ -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; static constexpr int BIT_CMD_RESET = 0; diff --git a/lib/LinkGPIO.hpp b/lib/LinkGPIO.hpp index 5a55e3c..501ac41 100644 --- a/lib/LinkGPIO.hpp +++ b/lib/LinkGPIO.hpp @@ -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; diff --git a/lib/LinkMobile.hpp b/lib/LinkMobile.hpp index 53eaaab..b2852b8 100644 --- a/lib/LinkMobile.hpp +++ b/lib/LinkMobile.hpp @@ -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; diff --git a/lib/LinkPS2Keyboard.hpp b/lib/LinkPS2Keyboard.hpp index 88250ea..595c8bc 100644 --- a/lib/LinkPS2Keyboard.hpp +++ b/lib/LinkPS2Keyboard.hpp @@ -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; diff --git a/lib/LinkPS2Mouse.hpp b/lib/LinkPS2Mouse.hpp index c8f9148..dd4e100 100644 --- a/lib/LinkPS2Mouse.hpp +++ b/lib/LinkPS2Mouse.hpp @@ -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; diff --git a/lib/LinkRawCable.hpp b/lib/LinkRawCable.hpp index 6922427..6ac7907 100644 --- a/lib/LinkRawCable.hpp +++ b/lib/LinkRawCable.hpp @@ -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; diff --git a/lib/LinkRawWireless.hpp b/lib/LinkRawWireless.hpp index 945918f..a1d309e 100644 --- a/lib/LinkRawWireless.hpp +++ b/lib/LinkRawWireless.hpp @@ -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; diff --git a/lib/LinkSPI.hpp b/lib/LinkSPI.hpp index 2bdc374..52d4273 100644 --- a/lib/LinkSPI.hpp +++ b/lib/LinkSPI.hpp @@ -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; diff --git a/lib/LinkUART.hpp b/lib/LinkUART.hpp index bc9e115..023ca9e 100644 --- a/lib/LinkUART.hpp +++ b/lib/LinkUART.hpp @@ -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; static constexpr int BIT_CTS = 2; diff --git a/lib/LinkUniversal.hpp b/lib/LinkUniversal.hpp index c28a791..73145e0 100644 --- a/lib/LinkUniversal.hpp +++ b/lib/LinkUniversal.hpp @@ -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; static constexpr int MAX_ROOM_NUMBER = 32000; diff --git a/lib/LinkWireless.hpp b/lib/LinkWireless.hpp index c38f890..970b17c 100644 --- a/lib/LinkWireless.hpp +++ b/lib/LinkWireless.hpp @@ -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 diff --git a/lib/LinkWirelessMultiboot.hpp b/lib/LinkWirelessMultiboot.hpp index 8e80b14..fa585f2 100644 --- a/lib/LinkWirelessMultiboot.hpp +++ b/lib/LinkWirelessMultiboot.hpp @@ -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; diff --git a/lib/LinkWirelessOpenSDK.hpp b/lib/LinkWirelessOpenSDK.hpp index b871add..61a6fc1 100644 --- a/lib/LinkWirelessOpenSDK.hpp +++ b/lib/LinkWirelessOpenSDK.hpp @@ -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;