This commit is contained in:
wmano
2025-10-19 22:11:21 +08:00
parent 1e6443a767
commit d52c94b866
11 changed files with 201 additions and 19 deletions
+5 -1
View File
@@ -7,11 +7,11 @@
#include <string.h>
#include "shell.h"
#include "main.h"
#include "chrg_wdt.h"
void show_app_version (void)
{
#if 0
rt_kprintf("\r\n\r\n================================================\r\n");
rt_kprintf("\tcharger control via RT-Thread v%d.%d.%d\r\n",
RT_VERSION_MAJOR, RT_VERSION_MINOR, RT_VERSION_PATCH);
@@ -19,6 +19,10 @@ void show_app_version (void)
rt_kprintf("\tUID: %08X %08X %08X\r\n",
HAL_GetUIDw2(), HAL_GetUIDw1(), HAL_GetUIDw0());
rt_kprintf("================================================\r\n");
#else
rt_kprintf("\tcharger control via RT-Thread v%d.%d.%d built @ %s, %s\r\n",
RT_VERSION_MAJOR, RT_VERSION_MINOR, RT_VERSION_PATCH, __DATE__, __TIME__);
#endif
}
int main(void)