Skip to content

Commit a0ef187

Browse files
committed
refactor(apptrace): format apptrace component with astyle
1 parent 2bb1ae8 commit a0ef187

File tree

13 files changed

+177
-185
lines changed

13 files changed

+177
-185
lines changed

components/app_trace/app_trace_membufs_proto.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ const static char *TAG = "esp_apptrace";
5252

5353
static uint32_t esp_apptrace_membufs_down_buffer_write_nolock(esp_apptrace_membufs_proto_data_t *proto, uint8_t *data, uint32_t size);
5454

55-
5655
esp_err_t esp_apptrace_membufs_init(esp_apptrace_membufs_proto_data_t *proto, const esp_apptrace_mem_block_t blocks_cfg[2])
5756
{
5857
// disabled by default
@@ -66,7 +65,7 @@ esp_err_t esp_apptrace_membufs_init(esp_apptrace_membufs_proto_data_t *proto, co
6665
proto->state.in_block = 0;
6766
#if CONFIG_APPTRACE_PENDING_DATA_SIZE_MAX > 0
6867
esp_apptrace_rb_init(&proto->rb_pend, proto->pending_data,
69-
sizeof(proto->pending_data));
68+
sizeof(proto->pending_data));
7069
#endif
7170
return ESP_OK;
7271
}
@@ -101,13 +100,13 @@ static esp_err_t esp_apptrace_membufs_swap(esp_apptrace_membufs_proto_data_t *pr
101100
// TODO: add support for multiple blocks from host, currently there is no need for that
102101
uint8_t *p = proto->blocks[new_block_num].start + proto->blocks[new_block_num].sz;
103102
ESP_APPTRACE_LOGD("Recvd %" PRIu16 " bytes from host (@ %p) [%x %x %x %x %x %x %x %x .. %x %x %x %x %x %x %x %x]",
104-
hdr->block_sz, proto->blocks[new_block_num].start,
105-
*(proto->blocks[new_block_num].start+0), *(proto->blocks[new_block_num].start+1),
106-
*(proto->blocks[new_block_num].start+2), *(proto->blocks[new_block_num].start+3),
107-
*(proto->blocks[new_block_num].start+4), *(proto->blocks[new_block_num].start+5),
108-
*(proto->blocks[new_block_num].start+6), *(proto->blocks[new_block_num].start+7),
109-
*(p-8), *(p-7), *(p-6), *(p-5), *(p-4), *(p-3), *(p-2), *(p-1));
110-
uint32_t sz = esp_apptrace_membufs_down_buffer_write_nolock(proto, (uint8_t *)(hdr+1), hdr->block_sz);
103+
hdr->block_sz, proto->blocks[new_block_num].start,
104+
*(proto->blocks[new_block_num].start + 0), *(proto->blocks[new_block_num].start + 1),
105+
*(proto->blocks[new_block_num].start + 2), *(proto->blocks[new_block_num].start + 3),
106+
*(proto->blocks[new_block_num].start + 4), *(proto->blocks[new_block_num].start + 5),
107+
*(proto->blocks[new_block_num].start + 6), *(proto->blocks[new_block_num].start + 7),
108+
*(p - 8), *(p - 7), *(p - 6), *(p - 5), *(p - 4), *(p - 3), *(p - 2), *(p - 1));
109+
uint32_t sz = esp_apptrace_membufs_down_buffer_write_nolock(proto, (uint8_t *)(hdr + 1), hdr->block_sz);
111110
if (sz != hdr->block_sz) {
112111
ESP_APPTRACE_LOGE("Failed to write %" PRIu32 " bytes to down buffer (%" PRIu16 " %" PRIu32 ")!", hdr->block_sz - sz, hdr->block_sz, sz);
113112
}
@@ -129,8 +128,8 @@ static esp_err_t esp_apptrace_membufs_swap(esp_apptrace_membufs_proto_data_t *pr
129128
break;
130129
}
131130
ESP_APPTRACE_LOGD("Pump %d pend bytes [%x %x %x %x : %x %x %x %x : %x %x %x %x : %x %x...%x %x]",
132-
read_sz, *(ptr+0), *(ptr+1), *(ptr+2), *(ptr+3), *(ptr+4),
133-
*(ptr+5), *(ptr+6), *(ptr+7), *(ptr+8), *(ptr+9), *(ptr+10), *(ptr+11), *(ptr+12), *(ptr+13), *(ptr+read_sz-2), *(ptr+read_sz-1));
131+
read_sz, *(ptr + 0), *(ptr + 1), *(ptr + 2), *(ptr + 3), *(ptr + 4),
132+
*(ptr + 5), *(ptr + 6), *(ptr + 7), *(ptr + 8), *(ptr + 9), *(ptr + 10), *(ptr + 11), *(ptr + 12), *(ptr + 13), *(ptr + read_sz - 2), *(ptr + read_sz - 1));
134133
memcpy(proto->blocks[new_block_num].start + proto->state.markers[new_block_num], ptr, read_sz);
135134
proto->state.markers[new_block_num] += read_sz;
136135
}
@@ -209,7 +208,7 @@ static uint32_t esp_apptrace_membufs_down_buffer_write_nolock(esp_apptrace_membu
209208

210209
while (total_sz < size) {
211210
ESP_APPTRACE_LOGD("esp_apptrace_trax_down_buffer_write_nolock WRS %" PRIu32 "-%" PRIu32 "-%" PRIu32 " %" PRIu32, proto->rb_down.wr, proto->rb_down.rd,
212-
proto->rb_down.cur_size, size);
211+
proto->rb_down.cur_size, size);
213212
uint32_t wr_sz = esp_apptrace_rb_write_size_get(&proto->rb_down);
214213
if (wr_sz == 0) {
215214
break;
@@ -319,10 +318,10 @@ uint8_t *esp_apptrace_membufs_up_buffer_get(esp_apptrace_membufs_proto_data_t *p
319318
if (1) {
320319
#endif
321320
if (ESP_APPTRACE_INBLOCK_MARKER(proto) + ESP_APPTRACE_USR_BLOCK_RAW_SZ(size) > ESP_APPTRACE_INBLOCK(proto)->sz) {
322-
#if CONFIG_APPTRACE_PENDING_DATA_SIZE_MAX > 0
321+
#if CONFIG_APPTRACE_PENDING_DATA_SIZE_MAX > 0
323322
ESP_APPTRACE_LOGD("Block full. Get %" PRIu32 " bytes from PEND buffer", size);
324323
buf_ptr = esp_apptrace_rb_produce(&proto->rb_pend, ESP_APPTRACE_USR_BLOCK_RAW_SZ(size));
325-
#endif
324+
#endif
326325
if (buf_ptr == NULL) {
327326
int pended_buf;
328327
ESP_APPTRACE_LOGD(" full. Get %" PRIu32 " bytes from pend buffer", size);
@@ -372,10 +371,11 @@ esp_err_t esp_apptrace_membufs_flush_nolock(esp_apptrace_membufs_proto_data_t *p
372371
ESP_APPTRACE_LOGD("Try to flush %" PRIu32 " bytes", ESP_APPTRACE_INBLOCK_MARKER(proto));
373372
res = esp_apptrace_membufs_swap_waitus(proto, tmo);
374373
if (res != ESP_OK) {
375-
if (res == ESP_ERR_TIMEOUT)
374+
if (res == ESP_ERR_TIMEOUT) {
376375
ESP_APPTRACE_LOGW("Failed to switch to another block in %" PRIi32 " us!", (int32_t)tmo->elapsed);
377-
else
376+
} else {
378377
ESP_APPTRACE_LOGE("Failed to switch to another block, res: %d", res);
378+
}
379379
return res;
380380
}
381381
}

components/app_trace/app_trace_util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void esp_apptrace_log_unlock(void)
4444

4545
esp_err_t esp_apptrace_tmo_check(esp_apptrace_tmo_t *tmo)
4646
{
47-
if (tmo->tmo != (int64_t)-1) {
47+
if (tmo->tmo != (int64_t) -1) {
4848
tmo->elapsed = esp_timer_get_time() - tmo->start;
4949
if (tmo->elapsed >= tmo->tmo) {
5050
return ESP_ERR_TIMEOUT;

components/app_trace/gcov/gcov_rtio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void gcov_create_task(void *arg)
7373
{
7474
ESP_EARLY_LOGV(TAG, "%s", __FUNCTION__);
7575
xTaskCreatePinnedToCore(&gcov_dump_task, "gcov_dump_task", CONFIG_APPTRACE_GCOV_DUMP_TASK_STACK_SIZE,
76-
(void *)&s_gcov_task_running, configMAX_PRIORITIES - 1, NULL, 0);
76+
(void *)&s_gcov_task_running, configMAX_PRIORITIES - 1, NULL, 0);
7777
}
7878

7979
static IRAM_ATTR
@@ -180,7 +180,7 @@ int gcov_rtio_feof(void *stream)
180180
return ret;
181181
}
182182

183-
void gcov_rtio_setbuf(void *arg1 __attribute__ ((unused)), void *arg2 __attribute__ ((unused)))
183+
void gcov_rtio_setbuf(void *arg1 __attribute__((unused)), void *arg2 __attribute__((unused)))
184184
{
185185
return;
186186
}

components/app_trace/heap_trace_tohost.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ esp_err_t heap_trace_init_tohost(void)
3333
esp_err_t heap_trace_start(heap_trace_mode_t mode_param)
3434
{
3535
#if CONFIG_APPTRACE_SV_ENABLE
36-
esp_err_t ret = esp_sysview_heap_trace_start((uint32_t)-1);
36+
esp_err_t ret = esp_sysview_heap_trace_start((uint32_t) -1);
3737
if (ret != ESP_OK) {
3838
return ret;
3939
}

components/app_trace/host_file_io.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2017-2023 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2017-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -152,7 +152,7 @@ void *esp_apptrace_fopen(esp_apptrace_dest_t dest, const char *path, const char
152152
cmd_args.mode_len = strlen(mode) + 1;
153153

154154
esp_err_t ret = esp_apptrace_file_cmd_send(dest, ESP_APPTRACE_FILE_CMD_FOPEN, esp_apptrace_fopen_args_prepare,
155-
&cmd_args, cmd_args.path_len+cmd_args.mode_len);
155+
&cmd_args, cmd_args.path_len + cmd_args.mode_len);
156156
if (ret != ESP_OK) {
157157
ESP_EARLY_LOGE(TAG, "Failed to send file cmd (%d)!", ret);
158158
return NULL;
@@ -182,7 +182,7 @@ int esp_apptrace_fclose(esp_apptrace_dest_t dest, void *stream)
182182

183183
cmd_args.file = stream;
184184
esp_err_t ret = esp_apptrace_file_cmd_send(dest, ESP_APPTRACE_FILE_CMD_FCLOSE, esp_apptrace_fclose_args_prepare,
185-
&cmd_args, sizeof(cmd_args));
185+
&cmd_args, sizeof(cmd_args));
186186
if (ret != ESP_OK) {
187187
ESP_EARLY_LOGE(TAG, "Failed to send file cmd (%d)!", ret);
188188
return EOF;
@@ -211,7 +211,7 @@ size_t esp_apptrace_fwrite(esp_apptrace_dest_t dest, const void *ptr, size_t siz
211211
{
212212
esp_apptrace_fwrite_args_t cmd_args;
213213

214-
ESP_EARLY_LOGV(TAG, "esp_apptrace_fwrite f %p l %d", stream, size*nmemb);
214+
ESP_EARLY_LOGV(TAG, "esp_apptrace_fwrite f %p l %d", stream, size * nmemb);
215215

216216
if (ptr == NULL) {
217217
return 0;
@@ -221,7 +221,7 @@ size_t esp_apptrace_fwrite(esp_apptrace_dest_t dest, const void *ptr, size_t siz
221221
cmd_args.size = size * nmemb;
222222
cmd_args.file = stream;
223223
esp_err_t ret = esp_apptrace_file_cmd_send(dest, ESP_APPTRACE_FILE_CMD_FWRITE, esp_apptrace_fwrite_args_prepare,
224-
&cmd_args, sizeof(cmd_args.file)+cmd_args.size);
224+
&cmd_args, sizeof(cmd_args.file) + cmd_args.size);
225225
if (ret != ESP_OK) {
226226
ESP_EARLY_LOGE(TAG, "Failed to send file cmd (%d)!", ret);
227227
return 0;
@@ -253,7 +253,7 @@ size_t esp_apptrace_fread(esp_apptrace_dest_t dest, void *ptr, size_t size, size
253253
{
254254
esp_apptrace_fread_args_t cmd_args;
255255

256-
ESP_EARLY_LOGV(TAG, "esp_apptrace_fread f %p l %d", stream, size*nmemb);
256+
ESP_EARLY_LOGV(TAG, "esp_apptrace_fread f %p l %d", stream, size * nmemb);
257257

258258
if (ptr == NULL) {
259259
return 0;
@@ -262,7 +262,7 @@ size_t esp_apptrace_fread(esp_apptrace_dest_t dest, void *ptr, size_t size, size
262262
cmd_args.size = size * nmemb;
263263
cmd_args.file = stream;
264264
esp_err_t ret = esp_apptrace_file_cmd_send(dest, ESP_APPTRACE_FILE_CMD_FREAD, esp_apptrace_fread_args_prepare,
265-
&cmd_args, sizeof(cmd_args));
265+
&cmd_args, sizeof(cmd_args));
266266
if (ret != ESP_OK) {
267267
ESP_EARLY_LOGE(TAG, "Failed to send file cmd (%d)!", ret);
268268
return 0;
@@ -288,7 +288,7 @@ size_t esp_apptrace_fread(esp_apptrace_dest_t dest, void *ptr, size_t size, size
288288
* fread(buf, 1 ,size, file);
289289
* So, total read bytes count returns
290290
*/
291-
return resp/size; // return the number of items read
291+
return resp / size; // return the number of items read
292292
}
293293

294294
static void esp_apptrace_fseek_args_prepare(uint8_t *buf, void *priv)
@@ -310,7 +310,7 @@ int esp_apptrace_fseek(esp_apptrace_dest_t dest, void *stream, long offset, int
310310
cmd_args.offset = offset;
311311
cmd_args.whence = whence;
312312
esp_err_t ret = esp_apptrace_file_cmd_send(dest, ESP_APPTRACE_FILE_CMD_FSEEK, esp_apptrace_fseek_args_prepare,
313-
&cmd_args, sizeof(cmd_args));
313+
&cmd_args, sizeof(cmd_args));
314314
if (ret != ESP_OK) {
315315
ESP_EARLY_LOGE(TAG, "Failed to send file cmd (%d)!", ret);
316316
return -1;
@@ -340,7 +340,7 @@ int esp_apptrace_ftell(esp_apptrace_dest_t dest, void *stream)
340340

341341
cmd_args.file = stream;
342342
esp_err_t ret = esp_apptrace_file_cmd_send(dest, ESP_APPTRACE_FILE_CMD_FTELL, esp_apptrace_ftell_args_prepare,
343-
&cmd_args, sizeof(cmd_args));
343+
&cmd_args, sizeof(cmd_args));
344344
if (ret != ESP_OK) {
345345
ESP_EARLY_LOGE(TAG, "Failed to send file cmd (%d)!", ret);
346346
return -1;
@@ -380,7 +380,7 @@ int esp_apptrace_feof(esp_apptrace_dest_t dest, void *stream)
380380

381381
cmd_args.file = stream;
382382
esp_err_t ret = esp_apptrace_file_cmd_send(dest, ESP_APPTRACE_FILE_CMD_FEOF, esp_apptrace_feof_args_prepare,
383-
&cmd_args, sizeof(cmd_args));
383+
&cmd_args, sizeof(cmd_args));
384384
if (ret != ESP_OK) {
385385
ESP_EARLY_LOGE(TAG, "Failed to send file cmd (%d)!", ret);
386386
return EOF;

components/app_trace/include/esp_app_trace.h

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2017-2023 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2017-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -19,9 +19,9 @@ extern "C" {
1919
*/
2020
typedef enum {
2121
ESP_APPTRACE_DEST_JTAG = 1, ///< JTAG destination
22-
ESP_APPTRACE_DEST_TRAX = ESP_APPTRACE_DEST_JTAG, ///< xxx_TRAX name is obsolete, use more common xxx_JTAG
23-
ESP_APPTRACE_DEST_UART, ///< UART destination
24-
ESP_APPTRACE_DEST_MAX = ESP_APPTRACE_DEST_UART+1,
22+
ESP_APPTRACE_DEST_TRAX = ESP_APPTRACE_DEST_JTAG, ///< xxx_TRAX name is obsolete, use more common xxx_JTAG
23+
ESP_APPTRACE_DEST_UART, ///< UART destination
24+
ESP_APPTRACE_DEST_MAX = ESP_APPTRACE_DEST_UART + 1,
2525
ESP_APPTRACE_DEST_NUM
2626
} esp_apptrace_dest_t;
2727

@@ -171,7 +171,7 @@ bool esp_apptrace_host_is_connected(esp_apptrace_dest_t dest);
171171

172172
/**
173173
* @brief Opens file on host.
174-
* This function has the same semantic as 'fopen' except for the first argument.
174+
* This function has the same semantic as 'fopen' except for the first argument.
175175
*
176176
* @param dest Indicates HW interface to use.
177177
* @param path Path to file.
@@ -183,7 +183,7 @@ void *esp_apptrace_fopen(esp_apptrace_dest_t dest, const char *path, const char
183183

184184
/**
185185
* @brief Closes file on host.
186-
* This function has the same semantic as 'fclose' except for the first argument.
186+
* This function has the same semantic as 'fclose' except for the first argument.
187187
*
188188
* @param dest Indicates HW interface to use.
189189
* @param stream File handle returned by esp_apptrace_fopen.
@@ -194,11 +194,11 @@ int esp_apptrace_fclose(esp_apptrace_dest_t dest, void *stream);
194194

195195
/**
196196
* @brief Writes to file on host.
197-
* This function has the same semantic as 'fwrite' except for the first argument.
197+
* This function has the same semantic as 'fwrite' except for the first argument.
198198
*
199199
* @param dest Indicates HW interface to use.
200-
* @param ptr Address of data to write.
201-
* @param size Size of an item.
200+
* @param ptr Address of data to write.
201+
* @param size Size of an item.
202202
* @param nmemb Number of items to write.
203203
* @param stream File handle returned by esp_apptrace_fopen.
204204
*
@@ -208,11 +208,11 @@ size_t esp_apptrace_fwrite(esp_apptrace_dest_t dest, const void *ptr, size_t siz
208208

209209
/**
210210
* @brief Read file on host.
211-
* This function has the same semantic as 'fread' except for the first argument.
211+
* This function has the same semantic as 'fread' except for the first argument.
212212
*
213213
* @param dest Indicates HW interface to use.
214-
* @param ptr Address to store read data.
215-
* @param size Size of an item.
214+
* @param ptr Address to store read data.
215+
* @param size Size of an item.
216216
* @param nmemb Number of items to read.
217217
* @param stream File handle returned by esp_apptrace_fopen.
218218
*
@@ -222,7 +222,7 @@ size_t esp_apptrace_fread(esp_apptrace_dest_t dest, void *ptr, size_t size, size
222222

223223
/**
224224
* @brief Set position indicator in file on host.
225-
* This function has the same semantic as 'fseek' except for the first argument.
225+
* This function has the same semantic as 'fseek' except for the first argument.
226226
*
227227
* @param dest Indicates HW interface to use.
228228
* @param stream File handle returned by esp_apptrace_fopen.
@@ -235,7 +235,7 @@ int esp_apptrace_fseek(esp_apptrace_dest_t dest, void *stream, long offset, int
235235

236236
/**
237237
* @brief Get current position indicator for file on host.
238-
* This function has the same semantic as 'ftell' except for the first argument.
238+
* This function has the same semantic as 'ftell' except for the first argument.
239239
*
240240
* @param dest Indicates HW interface to use.
241241
* @param stream File handle returned by esp_apptrace_fopen.
@@ -246,8 +246,8 @@ int esp_apptrace_ftell(esp_apptrace_dest_t dest, void *stream);
246246

247247
/**
248248
* @brief Indicates to the host that all file operations are complete.
249-
* This function should be called after all file operations are finished and
250-
* indicate to the host that it can perform cleanup operations (close open files etc.).
249+
* This function should be called after all file operations are finished and
250+
* indicate to the host that it can perform cleanup operations (close open files etc.).
251251
*
252252
* @param dest Indicates HW interface to use.
253253
*
@@ -257,7 +257,7 @@ int esp_apptrace_fstop(esp_apptrace_dest_t dest);
257257

258258
/**
259259
* @brief Test end-of-file indicator on a stream.
260-
* This function has the same semantic as 'feof' except for the first argument.
260+
* This function has the same semantic as 'feof' except for the first argument.
261261
*
262262
* @param dest Indicates HW interface to use.
263263
* @param stream File handle returned by esp_apptrace_fopen.
@@ -268,7 +268,7 @@ int esp_apptrace_feof(esp_apptrace_dest_t dest, void *stream);
268268

269269
/**
270270
* @brief Triggers gcov info dump.
271-
* This function waits for the host to connect to target before dumping data.
271+
* This function waits for the host to connect to target before dumping data.
272272
*/
273273
void esp_gcov_dump(void);
274274

components/app_trace/include/esp_app_trace_util.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2017-2021 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2017-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -32,12 +32,12 @@ typedef struct {
3232
* @brief Initializes timeout structure.
3333
*
3434
* @param tmo Pointer to timeout structure to be initialized.
35-
* @param user_tmo Timeout value (in us). Use ESP_APPTRACE_TMO_INFINITE to wait indefinetly.
35+
* @param user_tmo Timeout value (in us). Use ESP_APPTRACE_TMO_INFINITE to wait indefinitely.
3636
*/
3737
static inline void esp_apptrace_tmo_init(esp_apptrace_tmo_t *tmo, uint32_t user_tmo)
3838
{
3939
tmo->start = esp_timer_get_time();
40-
tmo->tmo = user_tmo == ESP_APPTRACE_TMO_INFINITE ? (int64_t)-1 : (int64_t)user_tmo;
40+
tmo->tmo = user_tmo == ESP_APPTRACE_TMO_INFINITE ? (int64_t) -1 : (int64_t)user_tmo;
4141
tmo->elapsed = 0;
4242
}
4343

@@ -52,7 +52,7 @@ esp_err_t esp_apptrace_tmo_check(esp_apptrace_tmo_t *tmo);
5252

5353
static inline uint32_t esp_apptrace_tmo_remaining_us(esp_apptrace_tmo_t *tmo)
5454
{
55-
return tmo->tmo != (int64_t)-1 ? (tmo->elapsed - tmo->tmo) : ESP_APPTRACE_TMO_INFINITE;
55+
return tmo->tmo != (int64_t) -1 ? (tmo->elapsed - tmo->tmo) : ESP_APPTRACE_TMO_INFINITE;
5656
}
5757

5858
/** Tracing module synchronization lock */
@@ -94,7 +94,7 @@ esp_err_t esp_apptrace_lock_give(esp_apptrace_lock_t *lock);
9494
/** Ring buffer control structure.
9595
*
9696
* @note For purposes of application tracing module if there is no enough space for user data and write pointer can be wrapped
97-
* current ring buffer size can be temporarily shrinked in order to provide buffer with requested size.
97+
* current ring buffer size can be temporarily shrunk in order to provide buffer with requested size.
9898
*/
9999
typedef struct {
100100
uint8_t *data; ///< pointer to data storage

0 commit comments

Comments
 (0)