nubinit work, breaks when linking

This commit is contained in:
Prakxo
2023-06-18 19:28:08 +02:00
parent 03eeef86bc
commit 0f7c6460de
12 changed files with 148 additions and 2 deletions
+1
View File
@@ -9,6 +9,7 @@ extern "C" {
#endif
TRKResult TRKDispatchMessage(MessageBuffer* mBuf);
TRKResult TRKInitializeDispatcher();
#ifdef __cplusplus
}
+2
View File
@@ -1,12 +1,14 @@
#ifndef DOLPHIN_TRK_H
#define DOLPHIN_TRK_H
#include "types.h"
#include "TRK/trk.h"
#ifdef __cplusplus
extern "C"{
#endif
void InitMetroTRK(void);
void exit(void);
TRKResult TRKInitializeTarget();
#ifdef __cplusplus
}
+16
View File
@@ -0,0 +1,16 @@
#ifndef DOLPHIN_TRK_GLUE_H
#define DOLPHIN_TRK_GLUE_H
#include "types.h"
#include "TRK/trk.h"
#ifdef __cplusplus
extern "C"{
#endif
TRKResult TRKInitializeIntDrivenUART(u32, u32, u32, void*);
void TRK_board_display(const char*);
#ifdef __cplusplus
}
#endif
#endif
+1
View File
@@ -16,6 +16,7 @@ typedef struct MessageBuffer {
MessageBuffer* TRKGetBuffer(int);
void TRKReleaseBuffer(int);
TRKResult TRKInitializeMessageBuffers();
#ifdef __cplusplus
}
+18
View File
@@ -0,0 +1,18 @@
#ifndef TRK_NUBINIT
#define TRK_NUBINIT
#include "types.h"
#include "TRK/trk.h"
#ifdef __cplusplus
extern "C" {
#endif
TRKResult TRKInitializeNub(void);
TRKResult TRKTerminateNub(void);
void TRKNubWelcome(void);
#ifdef __cplusplus
}
#endif
#endif
+2
View File
@@ -6,6 +6,8 @@ extern "C" {
#endif
void TRKGetInput();
TRKResult TRKInitializeSerialHandler();
TRKResult TRKTerminateSerialHandler();
extern u8* gTRKInputPendingPtr;
+1
View File
@@ -10,6 +10,7 @@ void TRKTargeInterrupt(TRKEvent*);
void TRKTargetSupportRequest();
BOOL TRKTargetStopped();
void TRKTargetContinue();
void TRKTargetSetInputPendingPtr(void*);
#ifdef __cplusplus
}
+15
View File
@@ -0,0 +1,15 @@
#ifndef TRK_USER_PUT
#define TRK_USER_PUT
#include "types.h"
#include "TRK/trk.h"
#ifdef __cplusplus
extern "C" {
#endif
TRKResult usr_put_initialize();
TRKResult usr_put_serial(const char*);
#ifdef __cplusplus
}
#endif
#endif