Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit 9891514

Browse files
perigosodragonmux
authored andcommitted
rtt: correct enum type naming
1 parent 0bfcb32 commit 9891514

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/rtt.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ typedef enum rtt_retval {
6161
RTT_OK,
6262
RTT_IDLE,
6363
RTT_ERR
64-
} rtt_retval;
64+
} rtt_retval_e;
6565

6666
#ifdef RTT_IDENT
6767
#define Q(x) #x
@@ -220,7 +220,7 @@ static void find_rtt(target_s *const cur_target)
220220
*/
221221

222222
/* poll if host has new data for target */
223-
static rtt_retval read_rtt(target_s *const cur_target, const uint32_t i)
223+
static rtt_retval_e read_rtt(target_s *const cur_target, const uint32_t i)
224224
{
225225
uint32_t head_addr = 0;
226226
uint32_t next_head;
@@ -286,7 +286,7 @@ int rtt_aligned_mem_read(target_s *t, void *dest, target_addr_t src, size_t len)
286286
}
287287

288288
/* poll if target has new data for host */
289-
static rtt_retval print_rtt(target_s *const cur_target, const uint32_t i)
289+
static rtt_retval_e print_rtt(target_s *const cur_target, const uint32_t i)
290290
{
291291
uint32_t tail_addr;
292292

@@ -392,7 +392,7 @@ void poll_rtt(target_s *const cur_target)
392392
rtt_err = true;
393393
} else {
394394
for (uint32_t i = 0; i < rtt_num_up_chan + rtt_num_down_chan; i++) {
395-
rtt_retval v;
395+
rtt_retval_e v;
396396
if (rtt_channel_enabled[i]) {
397397
if (i < rtt_num_up_chan)
398398
v = print_rtt(cur_target, i); /* rtt from target to host */

0 commit comments

Comments
 (0)