添加了终端打印选择RTT或者串口,只需在rtconfig.h中调用宏即可
This commit is contained in:
parent
cc9a664bcd
commit
45eb922605
|
@ -2,47 +2,49 @@
|
|||
* @Author: mbw
|
||||
* @Date: 2024-08-30 11:34:58
|
||||
* @LastEditors: mbw && 1600520629@qq.com
|
||||
* @LastEditTime: 2024-08-30 11:52:09
|
||||
* @LastEditTime: 2024-09-05 11:13:47
|
||||
* @FilePath: \USART1_Interrupt - RT-Thread\LIB\RTT\user_rtt.h
|
||||
* @Description:
|
||||
* @
|
||||
* @Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
|
||||
*/
|
||||
/*
|
||||
* @Author: xmprocat
|
||||
* @Date: 2023-03-20 20:26:22
|
||||
* @LastEditors: xmprocat
|
||||
* @LastEditTime: 2023-03-20 20:26:42
|
||||
* @Description:
|
||||
*/
|
||||
#ifndef _USER_RTT_H_
|
||||
#define _USER_RTT_H_
|
||||
#include "SEGGER_RTT.h"
|
||||
|
||||
#define LOG_TAG "user_rtt"
|
||||
#define LOG_LVL LOG_LVL_DBG
|
||||
#include <ulog.h>
|
||||
|
||||
#define LOG_DEBUG 1
|
||||
|
||||
#if LOG_DEBUG
|
||||
|
||||
|
||||
#define LOG_PROTO(type,color,format,...) \
|
||||
SEGGER_RTT_printf(0," %s%s"format"\r\n%s", \
|
||||
#define LOG_PROTO(type, color, format, ...) \
|
||||
SEGGER_RTT_printf(0, " %s%s" format "\r\n%s", \
|
||||
color, \
|
||||
type, \
|
||||
##__VA_ARGS__, \
|
||||
RTT_CTRL_RESET)
|
||||
|
||||
/* 清屏*/
|
||||
#define LOG_CLEAR() SEGGER_RTT_WriteString(0, " "RTT_CTRL_CLEAR)
|
||||
#define LOG_CLEAR() SEGGER_RTT_WriteString(0, " " RTT_CTRL_CLEAR)
|
||||
|
||||
/* 无颜色日志输出 */
|
||||
#define RTT_LOG(format,...) LOG_PROTO("","",format,##__VA_ARGS__)
|
||||
#define RTT_LOG(format, ...) LOG_PROTO("", "", format, ##__VA_ARGS__)
|
||||
|
||||
/* 有颜色格式日志输出 */
|
||||
#define RTT_LOG_I(format,...) LOG_PROTO("I: ", RTT_CTRL_TEXT_BRIGHT_GREEN , format, ##__VA_ARGS__)
|
||||
#define RTT_LOG_W(format,...) LOG_PROTO("W: ", RTT_CTRL_TEXT_BRIGHT_YELLOW, format, ##__VA_ARGS__)
|
||||
#define RTT_LOG_E(format,...) LOG_PROTO("E: ", RTT_CTRL_TEXT_BRIGHT_RED , format, ##__VA_ARGS__)
|
||||
#define RTT_LOG_D(format,...) LOG_PROTO("D: ", RTT_CTRL_TEXT_BRIGHT_BLACK , format, ##__VA_ARGS__)
|
||||
|
||||
#ifdef DEBUG_OUTPUT_SELECT
|
||||
#define RTT_LOG_I LOG_I
|
||||
#define RTT_LOG_W LOG_W
|
||||
#define RTT_LOG_E LOG_E
|
||||
#define RTT_LOG_D LOG_D
|
||||
#else
|
||||
#define RTT_LOG_I(format, ...) LOG_PROTO("I: ", RTT_CTRL_TEXT_BRIGHT_GREEN, format, ##__VA_ARGS__)
|
||||
#define RTT_LOG_W(format, ...) LOG_PROTO("W: ", RTT_CTRL_TEXT_BRIGHT_YELLOW, format, ##__VA_ARGS__)
|
||||
#define RTT_LOG_E(format, ...) LOG_PROTO("E: ", RTT_CTRL_TEXT_BRIGHT_RED, format, ##__VA_ARGS__)
|
||||
#define RTT_LOG_D(format, ...) LOG_PROTO("D: ", RTT_CTRL_TEXT_BRIGHT_BLACK, format, ##__VA_ARGS__)
|
||||
#endif // DEBUG
|
||||
#else
|
||||
#define LOG_CLEAR()
|
||||
#define LOG
|
||||
|
@ -53,4 +55,3 @@
|
|||
#endif
|
||||
|
||||
#endif // !_USER_RTT_H_
|
||||
|
||||
|
|
|
@ -115,44 +115,44 @@
|
|||
/*============================ MACROFIED FUNCTIONS ===========================*/
|
||||
/*============================ TYPES =========================================*/
|
||||
|
||||
/*!
|
||||
\brief Structure type to access the System Timer (SysTick).
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
__IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */
|
||||
__IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */
|
||||
__IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */
|
||||
__IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */
|
||||
} SysTick_Type;
|
||||
// /*!
|
||||
// \brief Structure type to access the System Timer (SysTick).
|
||||
// */
|
||||
// typedef struct
|
||||
// {
|
||||
// __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */
|
||||
// __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */
|
||||
// __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */
|
||||
// __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */
|
||||
// } SysTick_Type;
|
||||
|
||||
/*!
|
||||
\brief Structure type to access the System Control Block (SCB).
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
__IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */
|
||||
__IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */
|
||||
__IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */
|
||||
__IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */
|
||||
__IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */
|
||||
__IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */
|
||||
__IOM uint8_t SHP[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */
|
||||
__IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */
|
||||
__IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */
|
||||
__IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */
|
||||
__IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */
|
||||
__IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */
|
||||
__IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */
|
||||
__IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */
|
||||
__IM uint32_t PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */
|
||||
__IM uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */
|
||||
__IM uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */
|
||||
__IM uint32_t MMFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */
|
||||
__IM uint32_t ISAR[5U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */
|
||||
uint32_t RESERVED0[5U];
|
||||
__IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */
|
||||
} SCB_Type;
|
||||
// /*!
|
||||
// \brief Structure type to access the System Control Block (SCB).
|
||||
// */
|
||||
// typedef struct
|
||||
// {
|
||||
// __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */
|
||||
// __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */
|
||||
// __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */
|
||||
// __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */
|
||||
// __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */
|
||||
// __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */
|
||||
// __IOM uint8_t SHP[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */
|
||||
// __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */
|
||||
// __IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */
|
||||
// __IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */
|
||||
// __IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */
|
||||
// __IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */
|
||||
// __IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */
|
||||
// __IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */
|
||||
// __IM uint32_t PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */
|
||||
// __IM uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */
|
||||
// __IM uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */
|
||||
// __IM uint32_t MMFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */
|
||||
// __IM uint32_t ISAR[5U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */
|
||||
// uint32_t RESERVED0[5U];
|
||||
// __IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */
|
||||
// } SCB_Type;
|
||||
|
||||
struct __task_cycle_info_t {
|
||||
task_cycle_info_t tInfo; //!< cycle information
|
||||
|
@ -183,26 +183,26 @@ volatile static int64_t s_lSystemClockCounts = 0;
|
|||
/*============================ IMPLEMENTATION ================================*/
|
||||
/*============================ INCLUDES ======================================*/
|
||||
|
||||
__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks)
|
||||
{
|
||||
if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk)
|
||||
{
|
||||
return (1UL); /* Reload value impossible */
|
||||
}
|
||||
// __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks)
|
||||
// {
|
||||
// if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk)
|
||||
// {
|
||||
// return (1UL); /* Reload value impossible */
|
||||
// }
|
||||
|
||||
//__IRQ_SAFE {
|
||||
SysTick->CTRL = 0;
|
||||
// //__IRQ_SAFE {
|
||||
// SysTick->CTRL = 0;
|
||||
|
||||
SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */
|
||||
//NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */
|
||||
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
||||
SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk |
|
||||
SysTick_CTRL_TICKINT_Msk |
|
||||
SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */
|
||||
//SCB->ICSR = SCB_ICSR_PENDSTCLR_Msk;
|
||||
//}
|
||||
return (0UL); /* Function successful */
|
||||
}
|
||||
// SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */
|
||||
// //NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */
|
||||
// SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
||||
// SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk |
|
||||
// SysTick_CTRL_TICKINT_Msk |
|
||||
// SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */
|
||||
// //SCB->ICSR = SCB_ICSR_PENDSTCLR_Msk;
|
||||
// //}
|
||||
// return (0UL); /* Function successful */
|
||||
// }
|
||||
|
||||
void user_code_insert_to_systick_handler(void)
|
||||
{
|
||||
|
|
|
@ -101,7 +101,7 @@ void __ensure_systick_wrapper(void)
|
|||
|
||||
#define DBG_TAG "perf_counter"
|
||||
#define DBG_LVL DBG_INFO
|
||||
#include <rtdbg.h>
|
||||
#include <ulog.h>
|
||||
|
||||
static int _perf_counter_init(void)
|
||||
{
|
||||
|
|
Binary file not shown.
|
@ -27,30 +27,42 @@ Project File Date: 09/04/2024
|
|||
<h2>Output:</h2>
|
||||
*** Using Compiler 'V6.21', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
|
||||
Build target 'USART1_Interrupt'
|
||||
compiling cpu.c...
|
||||
compiling idle.c...
|
||||
compiling slab.c...
|
||||
compiling dev_pin.c...
|
||||
compiling cpu.c...
|
||||
compiling cmd.c...
|
||||
compiling ulog.c...
|
||||
../bsp/src/bsp_flash.c(17): warning: In file included from...
|
||||
../LIB/perf_counter\perf_counter.h(285): warning: Please enable GNU extensions, it is required by __cycleof__() and __super_loop_monitor__() [-W#warnings]
|
||||
285 | #warning Please enable GNU extensions, it is required by __cycleof__() and \
|
||||
| ^
|
||||
1 warning generated.
|
||||
../bsp/src/bsp_flash.c(19): warning: 'LOG_TAG' macro redefined [-Wmacro-redefined]
|
||||
19 | #define LOG_TAG "bsp_flash" // 该模å<C2A1>—å¯¹åº”çš„æ ‡ç¾ã€‚ä¸<C3A4>定义时,默认:NO_TAG
|
||||
| ^
|
||||
../LIB/RTT\user_rtt.h(15): note: previous definition is here
|
||||
15 | #define LOG_TAG "user_rtt"
|
||||
| ^
|
||||
2 warnings generated.
|
||||
compiling bsp_flash.c...
|
||||
../drivers/src/drv_uart.c(25): warning: 'LOG_TAG' macro redefined [-Wmacro-redefined]
|
||||
25 | #define LOG_TAG "drv_uart"
|
||||
| ^
|
||||
../LIB/RTT\user_rtt.h(15): note: previous definition is here
|
||||
15 | #define LOG_TAG "user_rtt"
|
||||
| ^
|
||||
1 warning generated.
|
||||
compiling drv_uart.c...
|
||||
compiling ipc.c...
|
||||
linking...
|
||||
Program Size: Code=31374 RO-data=7614 RW-data=144 ZI-data=9256
|
||||
Program Size: Code=30238 RO-data=7062 RW-data=144 ZI-data=9768
|
||||
FromELF: creating hex file...
|
||||
After Build - User command #1: "D:\SXDT\Official_information\HDDZ\demo\CIU32_L051_PROJECT\USART1_Interrupt - RT-Thread\keil5_disp_size_bar\keil5_disp_size_bar.exe"
|
||||
ram:
|
||||
RW_IRAM1 :0x20000000
|
||||
16.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö_________| 57.37 % ( 9.18 KB / 16.00 KB) [6984 B]
|
||||
16.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö________| 60.50 % ( 9.68 KB / 16.00 KB) [6472 B]
|
||||
flash:
|
||||
ER_IROM1 :0x8000000
|
||||
64.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö_________| 59.49 % ( 38.07 KB / 64.00 KB) [26548 B]
|
||||
".\CIU32_L051_M307R.axf" - 0 Error(s), 1 Warning(s).
|
||||
64.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö_________| 56.92 % ( 36.43 KB / 64.00 KB) [28236 B]
|
||||
".\CIU32_L051_M307R.axf" - 0 Error(s), 3 Warning(s).
|
||||
|
||||
<h2>Software Packages used:</h2>
|
||||
|
||||
|
@ -63,7 +75,7 @@ Package Vendor: HED
|
|||
C:/Users/16005/AppData/Local/Arm/Packs/HED/CIU32L0xx_DFP/1.2.5/Drivers/CMSIS/Device/CIU32L051/Include
|
||||
|
||||
<h2>Collection of Component Files used:</h2>
|
||||
Build Time Elapsed: 00:00:01
|
||||
Build Time Elapsed: 00:00:02
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
@ -368,7 +368,7 @@
|
|||
|
||||
<Group>
|
||||
<GroupName>RTOS/src</GroupName>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Dependencies for Project 'USART1_Interrupt', Target 'USART1_Interrupt': (DO NOT MODIFY !)
|
||||
CompilerVersion: 6210000::V6.21::ARMCLANG
|
||||
F (..\user\Source\main.c)(0x66D90FE2)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./main.o -MD)
|
||||
F (..\user\Source\main.c)(0x66D92839)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./main.o -MD)
|
||||
I (..\RTOS\components\finsh\finsh_config.ha.\RTOS\inc\rtdebug.h)(0x00000000)
|
||||
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.ha.\RTOS\inc\rtservice.h)(0x00000000)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std.h)(0x66138664)
|
||||
|
@ -196,11 +196,11 @@ I (..\RTOS\components\finsh\finsh_api.hi.\bsp\inc\bsp_history.h)(0x00000000)
|
|||
I (..\bsp\inc\bsp_rtc.hi.\RTOS\inc\rthw.h)(0x00000000)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.hs\LIB\RTT\user_rtt.h)(0x00000000)
|
||||
I (..\LIB\RTT\SEGGER_RTT.h\.\LIB\RTT\SEGGER_RTT_Conf.h)(0x00000000)
|
||||
I (..\RTOS\components\utilities\ulog\ulog.h)(0x666E44C6)
|
||||
I (..\RTOS\components\utilities\ulog\ulog_def.h)(0x666E44C6)
|
||||
I (..\LIB\perf_counter\perf_counter.h)(0x66D187B8)
|
||||
I (..\Peripheral\CMSIS\Core\cmsis_compiler.h)(0x65800BC8)
|
||||
I (..\LIB\perf_counter\rtconfig_preinc.h)(0x66D17F95)
|
||||
I (..\RTOS\components\utilities\ulog\ulog.h)(0x666E44C6)
|
||||
I (..\RTOS\components\utilities\ulog\ulog_def.h)(0x666E44C6)
|
||||
F (..\startup\startup_ciu32l051.s)(0x66C6D715)(--cpu Cortex-M0+ -g --pd "__MICROLIB SETA 1" --diag_suppress=A1950W
-IC:\Users\16005\AppData\Local\Arm\Packs\HED\CIU32L0xx_DFP\1.2.5\Drivers\CMSIS\Device\CIU32L051\Include
--pd "__UVISION_VERSION SETA 539"
--pd "CIU32L051 SETA 1"
--list .\listings\startup_ciu32l051.lst
--xref -o .\startup_ciu32l051.o
--depend .\startup_ciu32l051.d)
|
||||
F (..\RTOS\components\finsh\cmd.c)(0x66D91B4B)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./cmd.o -MD)
|
||||
I (..\RTOS\inc\rtthread.hs.\RTOS\rtconfig.h)(0x00000000)
|
||||
|
@ -444,7 +444,7 @@ I (C:\Keil_v5\ARM\ARMCLANG\include\ctype.h)(0x6569B012)
|
|||
I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h)(0x6569B012)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\string.h)(0x6569B012)
|
||||
I (..\RTOS\components\finsh\shell.hs.\RTOS\components\finsh\msh.h)(0x00000000)
|
||||
F (..\RTOS\src\board.c)(0x66D5821E)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./board.o -MD)
|
||||
F (..\RTOS\src\board.c)(0x66D942DE)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./board.o -MD)
|
||||
I (..\RTOS\inc\rthw.hc.\RTOS\inc\rtthread.hN.\RTOS\rtconfig.h)(0x00000000)
|
||||
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
|
||||
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
|
||||
|
@ -1391,7 +1391,7 @@ I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h)(0x65800BC5)
|
|||
I (..\RTOS\components\drivers\inc\dev_pin.h)(0x66D90FE2)
|
||||
I (..\RTOS\components\finsh\finsh_api.hi.\RTOS\inc\rthw.h)(0x00000000)
|
||||
I (..\drivers\inc\drv_gpio.h)(0x66D90D8D)
|
||||
F (..\drivers\src\drv_uart.c)(0x66D90239)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./drv_uart.o -MD)
|
||||
F (..\drivers\src\drv_uart.c)(0x66D94391)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./drv_uart.o -MD)
|
||||
I (..\RTOS\inc\rtthread.ht.\RTOS\rtconfig.h)(0x00000000)
|
||||
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
|
||||
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
|
||||
|
@ -2386,7 +2386,7 @@ I (C:\Keil_v5\ARM\ARMCLANG\include\stddef.h)(0x6569B012)
|
|||
I (C:\Keil_v5\ARM\ARMCLANG\include\stdint.h)(0x6569B012)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h)(0x6569B012)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\string.h)(0x6569B012)
|
||||
F (..\LIB\perf_counter\perf_counter.c)(0x66D187C4)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./perf_counter.o -MD)
|
||||
F (..\LIB\perf_counter\perf_counter.c)(0x66D9217E)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./perf_counter.o -MD)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\stdint.h)(0x6569B012)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\stdbool.h)(0x6569B012)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\string.h)(0x6569B012)
|
||||
|
@ -2399,7 +2399,46 @@ I (C:\Keil_v5\ARM\ARMCLANG\include\stddef.h)(0x6569B012)
|
|||
I (..\LIB\perf_counter\rtconfig_preinc.hf.\LIB\RTT\user_rtt.h)(0x00000000)
|
||||
I (..\LIB\RTT\SEGGER_RTT.ho.\LIB\RTT\SEGGER_RTT_Conf.h)(0x00000000)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h_\RTOS\inc\stdarg.h)(0x00000000)
|
||||
F (..\LIB\perf_counter\perf_os_patch_rt_thread.c)(0x66D174C0)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./perf_os_patch_rt_thread.o -MD)
|
||||
I (..\RTOS\components\utilities\ulog\ulog.h_.\RTOS\inc\rtthread.h)(0x00000000)
|
||||
I (..\RTOS\rtconfig.h\.\RTOS\components\finsh\finsh_config.h)(0x00000000)
|
||||
I (..\RTOS\inc\rtdebug.hR.\RTOS\inc\rtdef.hs.\RTOS\inc\rtservice.h)(0x00000000)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std.h)(0x66138664)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_config.h)(0x65800BC6)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_rcc.h)(0x65E679B7)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_common.h)(0x65800BC5)
|
||||
I (..\Peripheral\CMSIS\Device\ciu32l051.h)(0x65E68265)
|
||||
I (..\Peripheral\CMSIS\Core\core_cm0plus.h)(0x65800BC8)
|
||||
I (D:\SXDT\Project\HED\4G\USART1_Interrupt - RT-Thread\Peripheral\CMSIS\Core\cmsis_version.h)(0x65800BC8)
|
||||
I (D:\SXDT\Project\HED\4G\USART1_Interrupt - RT-Thread\Peripheral\CMSIS\Core\cmsis_compiler.h)(0x65800BC8)
|
||||
I (..\Peripheral\CMSIS\Device\system_ciu32l051.h)(0x65800BC6)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_adc.h)(0x66138664)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_aes.h)(0x65800BC5)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_comp.h)(0x661645AE)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_crc.h)(0x65800BC6)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_dbg.h)(0x6656B817)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_dma.h)(0x65800BC6)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_exti.h)(0x65E67A4D)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_flash.h)(0x66D6BBA1)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_gpio.h)(0x6656A3F6)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_i2c.h)(0x65800BC5)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_iwdg.h)(0x65800BC5)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lcd.h)(0x661645AE)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lptim.h)(0x665E764E)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lpuart.h)(0x65800BC6)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_pmu.h)(0x65800BC6)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_rtc.h)(0x65800BC5)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_spi.h)(0x65800BC5)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_syscfg.h)(0x6613CF0C)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_tamp.h)(0x65E6836D)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_tim.h)(0x66ACA92A)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_trng.h)(0x65800BC5)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_usart.h)(0x65800BC6)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_vrefbuf.h)(0x65800BC6)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h)(0x65800BC5)
|
||||
I (..\RTOS\components\drivers\inc\dev_pin.h)(0x66D90FE2)
|
||||
I (..\RTOS\components\finsh\finsh_api.h)(0x66C2AAF0)
|
||||
I (..\RTOS\components\utilities\ulog\ulog_def.h)(0x666E44C6)
|
||||
F (..\LIB\perf_counter\perf_os_patch_rt_thread.c)(0x66D921EA)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./perf_os_patch_rt_thread.o -MD)
|
||||
I (..\RTOS\rtconfig.hr.\RTOS\components\finsh\finsh_config.h)(0x00000000)
|
||||
I (..\RTOS\inc\rtdebug.hR.\RTOS\inc\rtdef.hs.\RTOS\inc\stdarg.h)(0x00000000)
|
||||
I (..\RTOS\inc\rtservice.h)(0x66C2AAF4)
|
||||
|
@ -2448,7 +2487,7 @@ I (..\LIB\perf_counter\perf_counter.h)(0x66D187B8)
|
|||
I (..\Peripheral\CMSIS\Core\cmsis_compiler.h)(0x65800BC8)
|
||||
I (..\LIB\perf_counter\rtconfig_preinc.he.\LIB\RTT\user_rtt.h)(0x00000000)
|
||||
I (..\LIB\RTT\SEGGER_RTT.ho.\LIB\RTT\SEGGER_RTT_Conf.h)(0x00000000)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h_\RTOS\inc\rtdbg.h)(0x00000000)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h)(0x6569B012)
|
||||
I (..\RTOS\components\utilities\ulog\ulog.h)(0x666E44C6)
|
||||
I (..\RTOS\components\utilities\ulog\ulog_def.h)(0x666E44C6)
|
||||
F (..\RTOS\components\utilities\ulog\ulog.c)(0x666E44C6)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./ulog.o -MD)
|
||||
|
|
|
@ -6,18 +6,18 @@
|
|||
[Found keyword]: ----------Execution Region----------
|
||||
[name]: ER_IROM1
|
||||
[Exec base]: 0x8000000
|
||||
[Size]: 0x984c
|
||||
[Size]: 0x91b4
|
||||
[Max]: 0x10000
|
||||
[Found keyword]: ----------Execution Region----------
|
||||
[name]: RW_IRAM1
|
||||
[Exec base]: 0x20000000
|
||||
[Size]: 0x24b8
|
||||
[Size]: 0x26b8
|
||||
[Max]: 0x4000
|
||||
[parse_keil_map over printf bar]:
|
||||
RW_IRAM1 :0x20000000
|
||||
16.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö_________| 57.37 % ( 9.18 KB / 16.00 KB) [6984 B]
|
||||
16.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö________| 60.50 % ( 9.68 KB / 16.00 KB) [6472 B]
|
||||
ER_IROM1 :0x8000000
|
||||
64.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö_________| 59.49 % ( 38.07 KB / 64.00 KB) [26548 B]
|
||||
64.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö_________| 56.92 % ( 36.43 KB / 64.00 KB) [28236 B]
|
||||
[export csv]: ./USART1_Interrupt_sort_by_flash.csv
|
||||
[export csv]: ./USART1_Interrupt_sort_by_ram.csv
|
||||
[export xlsx]: USART1_Interrupt_analysis.xlsx
|
||||
|
|
Binary file not shown.
|
@ -1,68 +1,67 @@
|
|||
File_name,flash percent,flash,ram,Code,RO_data,RW_data,ZI_data
|
||||
bsp_flash.o,11.258361%,4511,4,3032,1479,0,4
|
||||
cmd.o,11.163522%,4473,0,2872,1601,0,0
|
||||
ipc.o,6.124588%,2454,0,1440,1014,0,0
|
||||
kservice.o,5.410801%,2168,268,1912,256,0,268
|
||||
ulog.o,5.373365%,2153,589,1950,203,0,589
|
||||
thread.o,5.350904%,2144,12,1902,242,0,12
|
||||
mem.o,4.692024%,1880,72,1512,368,0,72
|
||||
shell.o,4.489867%,1799,281,1768,31,0,281
|
||||
drv_uart.o,4.459918%,1787,3180,1708,79,0,3180
|
||||
bsp_history.o,3.776081%,1513,1684,1404,109,0,1684
|
||||
timer.o,2.887591%,1157,20,1002,155,0,20
|
||||
object.o,2.662973%,1067,148,832,107,128,20
|
||||
drv_gpio.o,2.575621%,1032,0,232,800,0,0
|
||||
mc_p.l,2.548168%,1021,4,884,133,4,0
|
||||
device.o,2.540681%,1018,0,706,312,0,0
|
||||
segger_rtt_printf.o,2.490766%,998,0,998,0,0,0
|
||||
msh.o,2.358490%,945,0,784,161,0,0
|
||||
bsp_rtc.o,1.744534%,699,6,600,99,0,6
|
||||
segger_rtt.o,1.587302%,636,1208,610,26,0,1208
|
||||
lwrb.o,1.352700%,542,0,542,0,0,0
|
||||
scheduler.o,1.252870%,502,280,484,18,0,280
|
||||
dev_pin.o,1.063193%,426,56,364,62,0,56
|
||||
ciu32l051_std_lpuart.o,0.828591%,332,0,332,0,0,0
|
||||
perf_counter.o,0.773685%,310,56,298,4,8,48
|
||||
cpuport.o,0.768693%,308,12,308,0,0,12
|
||||
idle.o,0.673854%,270,416,248,22,0,416
|
||||
components.o,0.608965%,244,0,228,16,0,0
|
||||
ciu32l051_std_rtc.o,0.588999%,236,0,236,0,0,0
|
||||
startup_ciu32l051.o,0.549067%,220,1024,28,192,0,1024
|
||||
context_rvds.o,0.539084%,216,0,216,0,0,0
|
||||
ciu32l051_std_rcc.o,0.539084%,216,0,216,0,0,0
|
||||
drv_common.o,0.509134%,204,0,204,0,0,0
|
||||
system_ciu32l051.o,0.499151%,200,4,164,32,4,0
|
||||
main.o,0.484177%,194,0,148,46,0,0
|
||||
ciu32l051_std_flash.o,0.469202%,188,0,188,0,0,0
|
||||
ciu32l051_std_usart.o,0.464211%,186,0,186,0,0,0
|
||||
_strtoul.o,0.414296%,166,0,166,0,0,0
|
||||
perf_os_patch_rt_thread.o,0.394330%,158,0,154,4,0,0
|
||||
ciu32l051_std_gpio.o,0.384347%,154,0,154,0,0,0
|
||||
ctype_o.o,0.351902%,141,0,8,133,0,0
|
||||
board.o,0.324448%,130,0,130,0,0,0
|
||||
strtol.o,0.279525%,112,0,112,0,0,0
|
||||
ciu32l051_std_dma.o,0.249576%,100,0,100,0,0,0
|
||||
uldiv.o,0.239593%,96,0,96,0,0,0
|
||||
console_be.o,0.224618%,90,48,86,4,0,48
|
||||
irq.o,0.219627%,88,12,88,0,0,12
|
||||
uidiv_div0.o,0.154737%,62,0,62,0,0,0
|
||||
clock.o,0.134771%,54,4,54,0,0,4
|
||||
init.o,0.119796%,48,0,48,0,0,0
|
||||
cpp_init.o,0.099830%,40,0,40,0,0,0
|
||||
memseta.o,0.089847%,36,0,36,0,0,0
|
||||
memcpya.o,0.089847%,36,0,36,0,0,0
|
||||
llushr.o,0.084856%,34,0,34,0,0,0
|
||||
llshl.o,0.079864%,32,0,32,0,0,0
|
||||
strncmp.o,0.074873%,30,0,30,0,0,0
|
||||
handlers.o,0.074873%,30,0,30,0,0,0
|
||||
_chval.o,0.074873%,30,0,30,0,0,0
|
||||
strncpy.o,0.064890%,26,0,26,0,0,0
|
||||
memcmp.o,0.064890%,26,0,26,0,0,0
|
||||
atoi.o,0.064890%,26,0,26,0,0,0
|
||||
ciu32l051_std.o,0.059898%,24,0,24,0,0,0
|
||||
strlen.o,0.034941%,14,0,14,0,0,0
|
||||
errno.o,0.029949%,12,4,8,0,4,0
|
||||
entry9a.o,0.019966%,8,0,8,0,0,0
|
||||
entry2.o,0.019966%,8,0,8,0,0,0
|
||||
entry8a.o,0.009983%,4,0,4,0,0,0
|
||||
entry5.o,0.009983%,4,0,4,0,0,0
|
||||
cmd.o,11.651472%,4473,0,2872,1601,0,0
|
||||
bsp_flash.o,9.968741%,3827,4,2880,947,0,4
|
||||
ipc.o,6.392290%,2454,0,1440,1014,0,0
|
||||
kservice.o,5.647304%,2168,268,1912,256,0,268
|
||||
ulog.o,5.629070%,2161,589,1950,211,0,589
|
||||
thread.o,5.584788%,2144,12,1902,242,0,12
|
||||
drv_uart.o,5.363376%,2059,3696,2002,57,0,3696
|
||||
mem.o,4.897109%,1880,72,1512,368,0,72
|
||||
shell.o,4.686116%,1799,281,1768,31,0,281
|
||||
bsp_history.o,3.836937%,1473,1684,1384,89,0,1684
|
||||
timer.o,3.013806%,1157,20,1002,155,0,20
|
||||
object.o,2.779370%,1067,148,832,107,128,20
|
||||
drv_gpio.o,2.688200%,1032,0,232,800,0,0
|
||||
mc_p.l,2.659547%,1021,4,884,133,4,0
|
||||
device.o,2.651732%,1018,0,706,312,0,0
|
||||
msh.o,2.461579%,945,0,784,161,0,0
|
||||
bsp_rtc.o,1.820787%,699,6,600,99,0,6
|
||||
lwrb.o,1.594165%,612,0,612,0,0,0
|
||||
scheduler.o,1.307632%,502,280,484,18,0,280
|
||||
dev_pin.o,1.109664%,426,56,364,62,0,56
|
||||
ciu32l051_std_lpuart.o,0.864809%,332,0,332,0,0,0
|
||||
main.o,0.851784%,327,0,276,51,0,0
|
||||
perf_counter.o,0.849179%,326,56,314,4,8,48
|
||||
cpuport.o,0.802292%,308,12,308,0,0,12
|
||||
idle.o,0.703308%,270,416,248,22,0,416
|
||||
components.o,0.635582%,244,0,228,16,0,0
|
||||
ciu32l051_std_rtc.o,0.614743%,236,0,236,0,0,0
|
||||
startup_ciu32l051.o,0.573066%,220,1024,28,192,0,1024
|
||||
context_rvds.o,0.562647%,216,0,216,0,0,0
|
||||
ciu32l051_std_rcc.o,0.562647%,216,0,216,0,0,0
|
||||
board.o,0.541808%,208,0,208,0,0,0
|
||||
drv_common.o,0.531388%,204,0,204,0,0,0
|
||||
system_ciu32l051.o,0.520969%,200,4,164,32,4,0
|
||||
ciu32l051_std_flash.o,0.489711%,188,0,188,0,0,0
|
||||
ciu32l051_std_usart.o,0.484501%,186,0,186,0,0,0
|
||||
_strtoul.o,0.432404%,166,0,166,0,0,0
|
||||
ciu32l051_std_gpio.o,0.401146%,154,0,154,0,0,0
|
||||
ctype_o.o,0.367283%,141,0,8,133,0,0
|
||||
perf_os_patch_rt_thread.o,0.341235%,131,0,118,13,0,0
|
||||
segger_rtt.o,0.338630%,130,1208,104,26,0,1208
|
||||
strtol.o,0.291743%,112,0,112,0,0,0
|
||||
ciu32l051_std_dma.o,0.260484%,100,0,100,0,0,0
|
||||
uldiv.o,0.250065%,96,0,96,0,0,0
|
||||
console_be.o,0.234436%,90,48,86,4,0,48
|
||||
irq.o,0.229226%,88,12,88,0,0,12
|
||||
uidiv_div0.o,0.161500%,62,0,62,0,0,0
|
||||
clock.o,0.140662%,54,4,54,0,0,4
|
||||
init.o,0.125033%,48,0,48,0,0,0
|
||||
cpp_init.o,0.104194%,40,0,40,0,0,0
|
||||
memseta.o,0.093774%,36,0,36,0,0,0
|
||||
memcpya.o,0.093774%,36,0,36,0,0,0
|
||||
llushr.o,0.088565%,34,0,34,0,0,0
|
||||
llshl.o,0.083355%,32,0,32,0,0,0
|
||||
strncmp.o,0.078145%,30,0,30,0,0,0
|
||||
handlers.o,0.078145%,30,0,30,0,0,0
|
||||
_chval.o,0.078145%,30,0,30,0,0,0
|
||||
strncpy.o,0.067726%,26,0,26,0,0,0
|
||||
memcmp.o,0.067726%,26,0,26,0,0,0
|
||||
atoi.o,0.067726%,26,0,26,0,0,0
|
||||
ciu32l051_std.o,0.062516%,24,0,24,0,0,0
|
||||
strlen.o,0.036468%,14,0,14,0,0,0
|
||||
errno.o,0.031258%,12,4,8,0,4,0
|
||||
entry9a.o,0.020839%,8,0,8,0,0,0
|
||||
entry2.o,0.020839%,8,0,8,0,0,0
|
||||
entry8a.o,0.010419%,4,0,4,0,0,0
|
||||
entry5.o,0.010419%,4,0,4,0,0,0
|
||||
|
|
|
|
@ -1,25 +1,25 @@
|
|||
File_name,ram_percent,ram,flash,Code,RO_data,RW_data,ZI_data
|
||||
drv_uart.o,33.858604%,3180,1787,1708,79,0,3180
|
||||
bsp_history.o,17.930153%,1684,1513,1404,109,0,1684
|
||||
segger_rtt.o,12.862010%,1208,636,610,26,0,1208
|
||||
startup_ciu32l051.o,10.902896%,1024,220,28,192,0,1024
|
||||
ulog.o,6.271295%,589,2153,1950,203,0,589
|
||||
idle.o,4.429302%,416,270,248,22,0,416
|
||||
shell.o,2.991908%,281,1799,1768,31,0,281
|
||||
scheduler.o,2.981261%,280,502,484,18,0,280
|
||||
kservice.o,2.853492%,268,2168,1912,256,0,268
|
||||
object.o,1.575809%,148,1067,832,107,128,20
|
||||
mem.o,0.766610%,72,1880,1512,368,0,72
|
||||
perf_counter.o,0.596252%,56,310,298,4,8,48
|
||||
dev_pin.o,0.596252%,56,426,364,62,0,56
|
||||
console_be.o,0.511073%,48,90,86,4,0,48
|
||||
timer.o,0.212947%,20,1157,1002,155,0,20
|
||||
thread.o,0.127768%,12,2144,1902,242,0,12
|
||||
irq.o,0.127768%,12,88,88,0,0,12
|
||||
cpuport.o,0.127768%,12,308,308,0,0,12
|
||||
bsp_rtc.o,0.063884%,6,699,600,99,0,6
|
||||
mc_p.l,0.042589%,4,1021,884,133,4,0
|
||||
errno.o,0.042589%,4,12,8,0,4,0
|
||||
system_ciu32l051.o,0.042589%,4,200,164,32,4,0
|
||||
clock.o,0.042589%,4,54,54,0,0,4
|
||||
bsp_flash.o,0.042589%,4,4511,3032,1479,0,4
|
||||
drv_uart.o,37.303188%,3696,2059,2002,57,0,3696
|
||||
bsp_history.o,16.996367%,1684,1473,1384,89,0,1684
|
||||
segger_rtt.o,12.192168%,1208,130,104,26,0,1208
|
||||
startup_ciu32l051.o,10.335083%,1024,220,28,192,0,1024
|
||||
ulog.o,5.944691%,589,2161,1950,211,0,589
|
||||
idle.o,4.198627%,416,270,248,22,0,416
|
||||
shell.o,2.836092%,281,1799,1768,31,0,281
|
||||
scheduler.o,2.825999%,280,502,484,18,0,280
|
||||
kservice.o,2.704885%,268,2168,1912,256,0,268
|
||||
object.o,1.493742%,148,1067,832,107,128,20
|
||||
mem.o,0.726686%,72,1880,1512,368,0,72
|
||||
perf_counter.o,0.565200%,56,326,314,4,8,48
|
||||
dev_pin.o,0.565200%,56,426,364,62,0,56
|
||||
console_be.o,0.484457%,48,90,86,4,0,48
|
||||
timer.o,0.201857%,20,1157,1002,155,0,20
|
||||
thread.o,0.121114%,12,2144,1902,242,0,12
|
||||
irq.o,0.121114%,12,88,88,0,0,12
|
||||
cpuport.o,0.121114%,12,308,308,0,0,12
|
||||
bsp_rtc.o,0.060557%,6,699,600,99,0,6
|
||||
mc_p.l,0.040371%,4,1021,884,133,4,0
|
||||
errno.o,0.040371%,4,12,8,0,4,0
|
||||
system_ciu32l051.o,0.040371%,4,200,164,32,4,0
|
||||
clock.o,0.040371%,4,54,54,0,0,4
|
||||
bsp_flash.o,0.040371%,4,3827,2880,947,0,4
|
||||
|
|
|
BIN
MDK/board.o
BIN
MDK/board.o
Binary file not shown.
|
@ -46,8 +46,8 @@
|
|||
..\bsp\inc\bsp_rtc.h ..\RTOS\inc\rthw.h \
|
||||
C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h ..\LIB\RTT\user_rtt.h \
|
||||
..\LIB\RTT\SEGGER_RTT.h ..\LIB\RTT\SEGGER_RTT_Conf.h \
|
||||
..\RTOS\components\utilities\ulog\ulog.h \
|
||||
..\RTOS\components\utilities\ulog\ulog_def.h \
|
||||
..\LIB\perf_counter\perf_counter.h \
|
||||
..\Peripheral\CMSIS\Core\cmsis_compiler.h \
|
||||
..\LIB\perf_counter\rtconfig_preinc.h \
|
||||
..\RTOS\components\utilities\ulog\ulog.h \
|
||||
..\RTOS\components\utilities\ulog\ulog_def.h
|
||||
..\LIB\perf_counter\rtconfig_preinc.h
|
||||
|
|
BIN
MDK/bsp_flash.o
BIN
MDK/bsp_flash.o
Binary file not shown.
Binary file not shown.
BIN
MDK/console_be.o
BIN
MDK/console_be.o
Binary file not shown.
BIN
MDK/drv_gpio.o
BIN
MDK/drv_gpio.o
Binary file not shown.
BIN
MDK/drv_uart.o
BIN
MDK/drv_uart.o
Binary file not shown.
BIN
MDK/kservice.o
BIN
MDK/kservice.o
Binary file not shown.
BIN
MDK/main.o
BIN
MDK/main.o
Binary file not shown.
BIN
MDK/object.o
BIN
MDK/object.o
Binary file not shown.
|
@ -10,4 +10,43 @@
|
|||
C:\Keil_v5\ARM\ARMCLANG\include\stddef.h \
|
||||
..\LIB\perf_counter\rtconfig_preinc.h ..\LIB\RTT\user_rtt.h \
|
||||
..\LIB\RTT\SEGGER_RTT.h ..\LIB\RTT\SEGGER_RTT_Conf.h \
|
||||
C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h ..\RTOS\inc\stdarg.h
|
||||
C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h ..\RTOS\inc\stdarg.h \
|
||||
..\RTOS\components\utilities\ulog\ulog.h ..\RTOS\inc\rtthread.h \
|
||||
..\RTOS\rtconfig.h ..\RTOS\components\finsh\finsh_config.h \
|
||||
..\RTOS\inc\rtdebug.h ..\RTOS\inc\rtdef.h ..\RTOS\inc\rtservice.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_config.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_rcc.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_common.h \
|
||||
..\Peripheral\CMSIS\Device\ciu32l051.h \
|
||||
..\Peripheral\CMSIS\Core\core_cm0plus.h \
|
||||
D:\SXDT\Project\HED\4G\USART1_Interrupt\ -\ RT-Thread\Peripheral\CMSIS\Core\cmsis_version.h \
|
||||
D:\SXDT\Project\HED\4G\USART1_Interrupt\ -\ RT-Thread\Peripheral\CMSIS\Core\cmsis_compiler.h \
|
||||
..\Peripheral\CMSIS\Device\system_ciu32l051.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_adc.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_aes.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_comp.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_crc.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_dbg.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_dma.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_exti.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_flash.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_gpio.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_i2c.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_iwdg.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lcd.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lptim.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lpuart.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_pmu.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_rtc.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_spi.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_syscfg.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_tamp.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_tim.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_trng.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_usart.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_vrefbuf.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h \
|
||||
..\RTOS\components\drivers\inc\dev_pin.h \
|
||||
..\RTOS\components\finsh\finsh_api.h \
|
||||
..\RTOS\components\utilities\ulog\ulog_def.h
|
||||
|
|
Binary file not shown.
|
@ -48,6 +48,6 @@
|
|||
..\Peripheral\CMSIS\Core\cmsis_compiler.h \
|
||||
..\LIB\perf_counter\rtconfig_preinc.h ..\LIB\RTT\user_rtt.h \
|
||||
..\LIB\RTT\SEGGER_RTT.h ..\LIB\RTT\SEGGER_RTT_Conf.h \
|
||||
C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h ..\RTOS\inc\rtdbg.h \
|
||||
C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h \
|
||||
..\RTOS\components\utilities\ulog\ulog.h \
|
||||
..\RTOS\components\utilities\ulog\ulog_def.h
|
||||
|
|
Binary file not shown.
BIN
MDK/shell.o
BIN
MDK/shell.o
Binary file not shown.
|
@ -192,7 +192,7 @@
|
|||
#define PKG_USING_PERF_COUNTER_V2241
|
||||
|
||||
|
||||
// #define DEBUG_OUTPUT_SELECT
|
||||
#define DEBUG_OUTPUT_SELECT
|
||||
// <<< end of configuration section >>>
|
||||
|
||||
#endif
|
||||
|
|
|
@ -85,7 +85,7 @@ void rt_hw_board_init()
|
|||
std_delay_init();
|
||||
_SysTick_Config(SystemCoreClock / RT_TICK_PER_SECOND);
|
||||
|
||||
#ifndef DEBUG_OUTPUT_SELECT
|
||||
#ifdef DEBUG_OUTPUT_SELECT
|
||||
SEGGER_RTT_Init();
|
||||
#endif // DEBUG_OUTPUT_SELECT
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: mbw
|
||||
* @Date: 2024-08-20 15:51:16
|
||||
* @LastEditors: mbw && 1600520629@qq.com
|
||||
* @LastEditTime: 2024-09-04 11:54:28
|
||||
* @LastEditTime: 2024-09-05 11:19:23
|
||||
* @FilePath: \USART1_Interrupt - RT-Thread\drivers\inc\drv_uart.h
|
||||
* @Description:
|
||||
* @
|
||||
|
@ -57,7 +57,7 @@ typedef enum
|
|||
|
||||
#define UART1_RX_BUFFER_LENGTH (128U)
|
||||
#define UART1_RX_RB_LENGTH (128U)
|
||||
#define UART1_TX_RB_LENGTH (512U)
|
||||
#define UART1_TX_RB_LENGTH (1024U)
|
||||
|
||||
#define UART1_DMA_RX_CHANNEL DMA_CHANNEL_0
|
||||
#define UART1_DMA_TX_CHANNEL DMA_CHANNEL_1
|
||||
|
|
|
@ -100,12 +100,12 @@ void Uart1_Dma_Send_Data(uint32_t *source, uint32_t number)
|
|||
dma_config.src_addr = (uint32_t)source;
|
||||
dma_config.dst_addr = (uint32_t)&USART1->TDR;
|
||||
dma_config.data_number = number;
|
||||
dma_config.dma_channel = DMA_CHANNEL_1;
|
||||
dma_config.dma_channel = UART1_DMA_TX_CHANNEL;
|
||||
std_dma_start_transmit(&dma_config);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DMA通道0初始化
|
||||
* @brief DMA通道初始化
|
||||
* @retval 无
|
||||
*/
|
||||
void Uart1_Dma_Init(void)
|
||||
|
@ -139,6 +139,8 @@ void Uart1_Dma_Init(void)
|
|||
std_dma_interrupt_enable(UART1_DMA_RX_CHANNEL, DMA_INTERRUPT_TF);
|
||||
std_dma_interrupt_enable(UART1_DMA_RX_CHANNEL, DMA_INTERRUPT_TH);
|
||||
std_dma_interrupt_enable(UART1_DMA_RX_CHANNEL, DMA_INTERRUPT_TE);
|
||||
/* 使能发送中断 */
|
||||
// std_dma_interrupt_enable(UART1_DMA_TX_CHANNEL, DMA_INTERRUPT_TF);
|
||||
|
||||
/* NVIC初始化 */
|
||||
NVIC_SetPriority(UART1_DMA_RX_IRQ_CHANNEL, 0);
|
||||
|
@ -149,6 +151,7 @@ void Uart1_Dma_Init(void)
|
|||
|
||||
Uart1_Dma_Rec_Data_Cfg(_uart1_rx_dma_buffer); // DMA接收数据配置
|
||||
std_dma_enable(UART1_DMA_RX_CHANNEL);
|
||||
std_dma_disable(UART1_DMA_TX_CHANNEL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -308,7 +311,7 @@ void LPUART1_Init(uint32_t baudrate, uint32_t par)
|
|||
/* UASRT1初始化 */
|
||||
_Lpuart_Init(baudrate, par);
|
||||
|
||||
LOG_I("USART1 Init");
|
||||
LOG_I("LPUART1_Init");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -357,11 +360,13 @@ static void _UART1_RxCheck(void)
|
|||
* \brief Check if DMA is active and if not try to send data
|
||||
* \return `1` if transfer just started, `0` if on-going or no data to transmit
|
||||
*/
|
||||
static uint8_t _UART1_StartTxDMATransfer(void)
|
||||
static void _UART1_StartTxDMATransfer(void)
|
||||
{
|
||||
uint8_t started = 0;
|
||||
rt_enter_critical();
|
||||
// uint32_t primask;
|
||||
|
||||
rt_enter_critical();
|
||||
// primask = __get_PRIMASK();
|
||||
// __disable_irq();
|
||||
if (_uart1_tx_dma_current_len == 0 && (_uart1_tx_dma_current_len = lwrb_get_linear_block_read_length(&uart1_tx_rb)) > 0)
|
||||
{
|
||||
/* Disable channel if enabled */
|
||||
|
@ -371,15 +376,15 @@ static uint8_t _UART1_StartTxDMATransfer(void)
|
|||
std_dma_clear_flag(DMA_CLEAR_TF1);
|
||||
|
||||
Uart1_Dma_Send_Data(lwrb_get_linear_block_read_address(&uart1_tx_rb), _uart1_tx_dma_current_len);
|
||||
std_dma_interrupt_enable(DMA_CHANNEL_1, DMA_INTERRUPT_TF); // 发送时打开DMA通道中断
|
||||
std_dma_interrupt_enable(UART1_DMA_TX_CHANNEL, DMA_INTERRUPT_TF); // 发送时打开DMA通道中断
|
||||
/* enable transfer */
|
||||
std_dma_enable(UART1_DMA_TX_CHANNEL);
|
||||
std_usart_dma_tx_enable(USART1);
|
||||
started = 1;
|
||||
|
||||
}
|
||||
// __set_PRIMASK(primask);
|
||||
rt_exit_critical();
|
||||
|
||||
return started;
|
||||
}
|
||||
|
||||
rt_uint32_t UART1_Write(const void *data, size_t len)
|
||||
|
@ -551,6 +556,7 @@ void DMA_Channel1_IRQHandler(void)
|
|||
std_dma_clear_flag(DMA_CLEAR_TF1);
|
||||
lwrb_skip(&uart1_tx_rb, _uart1_tx_dma_current_len); /* Skip buffer, it has been successfully sent out */
|
||||
_uart1_tx_dma_current_len = 0; /* Reset data length */
|
||||
_UART1_StartTxDMATransfer();
|
||||
}
|
||||
|
||||
/* leave interrupt */
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: mbw
|
||||
* @Date: 2024-08-19 10:10:06
|
||||
* @LastEditors: mbw && 1600520629@qq.com
|
||||
* @LastEditTime: 2024-09-05 08:59:16
|
||||
* @LastEditTime: 2024-09-05 13:38:33
|
||||
* @FilePath: \USART1_Interrupt - RT-Thread\user\Source\main.c
|
||||
* @Description:
|
||||
*
|
||||
|
@ -41,55 +41,20 @@
|
|||
/*-------------------------------------------functions------------------------------------------*/
|
||||
|
||||
|
||||
|
||||
int LED_Init(void)
|
||||
{
|
||||
std_rcc_gpio_clk_enable(RCC_PERIPH_CLK_GPIOA|RCC_PERIPH_CLK_GPIOB);
|
||||
|
||||
std_gpio_init_t tmp_gpio_cfg = {0};
|
||||
|
||||
tmp_gpio_cfg.pin = GPIO_PIN_8;
|
||||
tmp_gpio_cfg.mode = GPIO_MODE_OUTPUT;
|
||||
tmp_gpio_cfg.output_type = GPIO_OUTPUT_PUSHPULL;
|
||||
tmp_gpio_cfg.pull = GPIO_NOPULL;
|
||||
std_gpio_init(GPIOB, &tmp_gpio_cfg);
|
||||
|
||||
return RT_EOK;
|
||||
}
|
||||
// INIT_APP_EXPORT(LED_Init);
|
||||
|
||||
|
||||
int main(void)
|
||||
{
|
||||
// uint8_t rtctime[3], rtcdate[3];
|
||||
|
||||
// LOG_I("test CIU32 L051 RT-Thread!\r\n");
|
||||
// LOG_I("SystemCoreClock = %d MHZ\n", SystemCoreClock/1000000);
|
||||
LOG_I("test CIU32 L051 RT-Thread!\r\n");
|
||||
LOG_I("SystemCoreClock = %d MHZ\n", SystemCoreClock/1000000);
|
||||
|
||||
// UART1_SendString("test CIU32 L051 uart1 dma send RT-Thread!\r\n");
|
||||
// LPUART1_SendString("test CIU32 L051 Lpuart1 interrupt send RT-Thread!\r\n");
|
||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||
RTT_LOG_D("LED0_PIN = %d\r\n", LED0_PIN);
|
||||
|
||||
while (1)
|
||||
{
|
||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||
rt_thread_mdelay(1000);
|
||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||
rt_thread_mdelay(1000);
|
||||
|
||||
// std_gpio_reset_pin(GPIOB, GPIO_PIN_8);
|
||||
// rt_thread_mdelay(500);
|
||||
// std_gpio_set_pin(GPIOB, GPIO_PIN_8);
|
||||
// rt_thread_mdelay(500);
|
||||
// UART1_SendString("test CIU32 L051 uart1 dma send RT-Thread!\r\n");
|
||||
// LPUART1_SendString("test CIU32 L051 lpuart1 send RT-Thread!\r\n");
|
||||
/* »ñÈ¡ÈÕÀúÈÕÆÚÓëʱ¼ä */
|
||||
// BSP_Rtc_Get_Calendar(rtcdate, rtctime);
|
||||
// LOG_D("RTC Time: %04d-%02d-%02d %02d:%02d:%02d\n",
|
||||
// 2000 + std_rtc_convert_bcd2bin(rtcdate[0]),std_rtc_convert_bcd2bin(rtcdate[1]), std_rtc_convert_bcd2bin(rtcdate[2]),
|
||||
// std_rtc_convert_bcd2bin(rtctime[0]), std_rtc_convert_bcd2bin(rtctime[1]), std_rtc_convert_bcd2bin(rtctime[2]));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue