添加RTT支持并清理一些无效内容

This commit is contained in:
2026-07-27 21:08:28 +08:00
parent 83d61b12b3
commit 0cf931c0e9
9 changed files with 3572 additions and 31 deletions
+32
View File
@@ -0,0 +1,32 @@
/*********************************************************************
* SEGGER Microcontroller GmbH *
* The Embedded Experts *
**********************************************************************
---------------------------END-OF-HEADER------------------------------
File : SEGGER_RTT_Conf.h
Purpose : RTT configuration for GD32E230 (8KB RAM, conservative buffers)
*/
#ifndef SEGGER_RTT_CONF_H
#define SEGGER_RTT_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
#define BUFFER_SIZE_UP (512)
#define BUFFER_SIZE_DOWN (16)
#define SEGGER_RTT_MAX_NUM_UP_BUFFERS (2)
#define SEGGER_RTT_MAX_NUM_DOWN_BUFFERS (2)
#define SEGGER_RTT_PRINTF_BUFFER_SIZE (64)
#define SEGGER_RTT_MODE_DEFAULT SEGGER_RTT_MODE_NO_BLOCK_SKIP
// No RTOS, skip locking
#define SEGGER_RTT_LOCK()
#define SEGGER_RTT_UNLOCK()
#ifdef __cplusplus
}
#endif
#endif