summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2012-11-27 09:19:40 +0100
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2012-12-04 14:16:44 +0100
commit1d97f52cbc598e2604eb079f776309d005846c69 (patch)
tree2444836757a729bce9826350f79d94ba4930807e /include
parent67ab16ef0503bb0629a729b77999dd851bdbcd47 (diff)
downloadDLT-daemon-1d97f52cbc598e2604eb079f776309d005846c69.tar.gz
Reduce used stack size needed by making resend buffer static.
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'include')
-rw-r--r--include/dlt/dlt_user.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/dlt/dlt_user.h b/include/dlt/dlt_user.h
index cfbd2d8..0523da2 100644
--- a/include/dlt/dlt_user.h
+++ b/include/dlt/dlt_user.h
@@ -148,6 +148,8 @@ typedef enum
#define DLT_USER_BUF_MAX_SIZE 2048 /**< maximum size of each user buffer, also used for injection buffer */
+#define DLT_USER_RESENDBUF_MAX_SIZE (DLT_USER_BUF_MAX_SIZE + 100) /**< Size of resend buffer; Max DLT message size is 2K plus some extra header space */
+
/* Use a semaphore or mutex from your OS to prevent concurrent access to the DLT buffer. */
#define DLT_SEM_LOCK() { sem_wait(&dlt_mutex); }
#define DLT_SEM_FREE() { sem_post(&dlt_mutex); }
@@ -231,6 +233,9 @@ typedef struct
//DltRingBuffer rbuf;
DltBuffer startup_buffer; /**< Ring-buffer for buffering messages during startup and missing connection */
+ // Buffer used for resending, locked by DLT semaphore
+ uint8_t resend_buffer[DLT_USER_RESENDBUF_MAX_SIZE];
+
#ifdef DLT_SHM_ENABLE
DltShm dlt_shm;
#endif