mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-25 15:24:46 +01:00
The sources of Petari (https://github.com/SMGCommunity/Petari), the Super Mario Galaxy decompilation by the SMGCommunity, at commit 0a5c6608dc3b4c44a9aa68c2535d1793dc565f02, unchanged but for LF line endings: LICENSE (as LICENSE-Petari.txt; CC0 1.0), include/, libs/ and src/. Left out: the game data Petari keeps from the original executable, the error message archive (include/Game/System/ ErrorArchive.hpp) and two tables (src/Game/System/GalaxyID.bcsv and StoryEvent.bcsv); GalaxyQuest's converter takes them from the player's own disc. The port's changes follow in the next commit, so `git diff petari-base -- decomp` shows them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
37 lines
622 B
C
37 lines
622 B
C
#ifndef UART_H
|
|
#define UART_H
|
|
|
|
typedef int UARTError;
|
|
|
|
enum {
|
|
kUARTNoError = 0,
|
|
kUARTUnknownBaudRate,
|
|
kUARTConfigurationError,
|
|
kUARTBufferOverflow,
|
|
kUARTNoData
|
|
};
|
|
|
|
typedef enum {
|
|
kBaudHWSet = -1,
|
|
kBaud300 = 300,
|
|
kBaud600 = 600,
|
|
kBaud1200 = 1200,
|
|
kBaud1800 = 1800,
|
|
kBaud2000 = 2000,
|
|
kBaud2400 = 2400,
|
|
kBaud3600 = 3600,
|
|
kBaud4800 = 4800,
|
|
kBaud7200 = 7200,
|
|
kBaud9600 = 9600,
|
|
kBaud19200 = 19200,
|
|
kBaud38400 = 38400,
|
|
kBaud57600 = 57600,
|
|
kBaud115200 = 115200,
|
|
kBaud230400 = 230400
|
|
} UARTBaudRate;
|
|
|
|
UARTError InitializeUART(UARTBaudRate);
|
|
|
|
UARTError WriteUARTN(const void *, unsigned long);
|
|
|
|
#endif // UART_H
|