mirror of
https://github.com/zeldaret/tp
synced 2026-08-11 11:33:29 -04:00
1114b13da8
* d_a_alldie / d_a_tboxSw / d_a_tag_gstart / d_a_tag_hstop * dolphin OS work / cleanup * dolphin GX work / cleanup * finish changing dolphin files to C * more files into C * match rest of MSL_C math functions * more dolphin files converted to C * remove asm * d_bg_w work * remove asm * d_a_alink work / kytag14
46 lines
873 B
C
46 lines
873 B
C
/**
|
|
* usr_put.c
|
|
* Description:
|
|
*/
|
|
|
|
#include "TRK_MINNOW_DOLPHIN/Os/dolphin/usr_put.h"
|
|
#include "TRK_MINNOW_DOLPHIN/MetroTRK/Portable/msghndlr.h"
|
|
// #include "dolphin/os/OS.h"
|
|
|
|
//
|
|
// External References:
|
|
//
|
|
|
|
// void OSReport(char* fmt, ...) causes extra crclr instruction.
|
|
// look into issue later
|
|
void OSReport(char* fmt);
|
|
|
|
//
|
|
// Declarations:
|
|
//
|
|
|
|
/* 8036DB10-8036DB14 368450 0004+00 0/0 1/1 0/0 .text usr_put_initialize */
|
|
void usr_put_initialize() {}
|
|
|
|
/* 8036DB14-8036DB9C 368454 0088+00 0/0 2/2 0/0 .text usr_puts_serial */
|
|
BOOL usr_puts_serial(const char* msg) {
|
|
BOOL connect_ = FALSE;
|
|
char c;
|
|
char buf[2];
|
|
|
|
while (!connect_ && (c = *msg++) != '\0') {
|
|
BOOL connect = GetTRKConnected();
|
|
|
|
buf[0] = c;
|
|
buf[1] = '\0';
|
|
|
|
SetTRKConnected(FALSE);
|
|
OSReport(buf);
|
|
|
|
SetTRKConnected(connect);
|
|
connect_ = FALSE;
|
|
}
|
|
|
|
return connect_;
|
|
}
|