diff options
author | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2012-11-27 09:19:40 +0100 |
---|---|---|
committer | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2012-12-04 14:16:44 +0100 |
commit | 1d97f52cbc598e2604eb079f776309d005846c69 (patch) | |
tree | 2444836757a729bce9826350f79d94ba4930807e /include/dlt | |
parent | 67ab16ef0503bb0629a729b77999dd851bdbcd47 (diff) | |
download | DLT-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/dlt')
-rw-r--r-- | include/dlt/dlt_user.h | 5 |
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 |