Skip to content

Commit

Permalink
Fix cppcheck issue. Fix uart_init function conflict with UART_FLASH.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed May 10, 2024
1 parent e46e3fb commit c20e7a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 3 additions & 1 deletion include/printf.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
#endif

#if defined(DEBUG_UART)
void uart_init(void);
#ifndef UART_FLASH
void uart_init(void);
#endif
void uart_write(const char* buf, unsigned int sz);

/* turn on small printf support */
Expand Down
12 changes: 7 additions & 5 deletions src/boot_renesas.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,16 @@ void do_boot(const uint32_t *app_offset)
{
void (*app_entry)(void);
uint32_t app_sp;

#ifdef BOOT_ENTRY_OFFSET
/* add byte offset to uint32_t */
app_offset += BOOT_ENTRY_OFFSET/sizeof(uint32_t);
#endif

(void) app_offset;
(void) app_sp;
(void) app_entry;
#ifndef BOOT_ENTRY_OFFSET
#define BOOT_ENTRY_OFFSET 0x00
#endif
/* add byte offset to uint32_t */
app_offset += BOOT_ENTRY_OFFSET/sizeof(uint32_t);

#if defined(__RX__)
/* Do unconditional jump (r1 = app_offset) */
#if defined(__CCRX__)
Expand Down

0 comments on commit c20e7a4

Please sign in to comment.