You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Segger RTT: support CONFIG_SEGGER_RTT_INIT_MODE and optimizations
Support Zephyr "RTT Initialization mode" config choice, allowing
Control Block initialization to be retained from another program
(e.g. bootloader).
It includes conditional CB init with full check on Control Block ID or
partial one that checks only the first byte, yet improving its logic.
Minor optimizations with static const added.
Signed-off-by: Giancarlo Stasi <[email protected]>
staticconstchar_aInitStr[] ="\0\0\0\0\0\0TTR REGGES"; // Init complete ID string to make sure that things also work if RTT is linked to a no-init memory area
volatileSEGGER_RTT_CB*p; // Volatile to make sure that compiler cannot change the order of accesses to the control block
320
-
staticconstchar_aInitStr[] ="\0\0\0\0\0\0TTR REGGES"; // Init complete ID string to make sure that things also work if RTT is linked to a no-init memory area
321
322
unsignedi;
322
323
//
323
324
// Initialize control block
@@ -1892,6 +1893,28 @@ int SEGGER_RTT_SetFlagsDownBuffer(unsigned BufferIndex, unsigned Flags) {
0 commit comments