Skip to content

Commit

Permalink
[rom] Prevent LTO for inlining uart_init
Browse files Browse the repository at this point in the history
This function is expected to be set as a breakpoint in several gdb
end-to-end tests. It is not critical that this function be inlined
anyway.

Signed-off-by: Amaury Pouly <[email protected]>
  • Loading branch information
pamaury committed Feb 5, 2025
1 parent 2555855 commit d1b4d9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sw/device/silicon_creator/lib/drivers/uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ extern "C" {
*
* @param precalculated_nco NCO value used to set the speed of the UART.
* @return kErrorOk if successful, else an error code.
*
* This symbol is marked as noinline because it is expected by several gdb
* e2e test to be able to set a breakpoint.
*/
OT_NOINLINE
void uart_init(uint32_t precalculated_nco);

/**
Expand Down

0 comments on commit d1b4d9b

Please sign in to comment.