From c59686ac7fd373fc7905e70de01095f5f48d24bf Mon Sep 17 00:00:00 2001 From: Didas72 Date: Mon, 17 Nov 2025 11:53:34 +0000 Subject: [PATCH] Adjusted addressing --- doc/examples/OBC+TTC/shared/incp/messaging.h | 5 +---- doc/examples/OBC+TTC/subsystems/OBC/main.c | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/examples/OBC+TTC/shared/incp/messaging.h b/doc/examples/OBC+TTC/shared/incp/messaging.h index eed2a77..72f1f93 100644 --- a/doc/examples/OBC+TTC/shared/incp/messaging.h +++ b/doc/examples/OBC+TTC/shared/incp/messaging.h @@ -7,9 +7,6 @@ #include "incp2.h" -typedef int endpoint_t; //REVIEW: Figure this one out. Where the values come from, where they - // are defined, etc. -#define INCP_ENDPOINT_NVAL (~(endpoint_t)0) -#define INCP_ENDPOINT_TTC ((endpoint_t)1) +typedef uint16_t endpoint_t; //Type is from CSP, actual addresses are an application's problem #define DEFAULT_MSGBUF_SIZE 64 diff --git a/doc/examples/OBC+TTC/subsystems/OBC/main.c b/doc/examples/OBC+TTC/subsystems/OBC/main.c index 65d3bce..a669285 100644 --- a/doc/examples/OBC+TTC/subsystems/OBC/main.c +++ b/doc/examples/OBC+TTC/subsystems/OBC/main.c @@ -10,6 +10,10 @@ +//Application defined addresses +#define INCP_ENDPOINT_NVAL (~(endpoint_t)0) +#define INCP_ENDPOINT_TTC ((endpoint_t)1) + int main() { incp_async_ping(INCP_ENDPOINT_TTC, NULL);