Skip to content

Commit c9b4e4e

Browse files
committed
Finish V2.1.0
2 parents 3db75b7 + 40ddee2 commit c9b4e4e

15 files changed

Lines changed: 81 additions & 60 deletions

CHANGE_LOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project/module will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project/module adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
---
8+
## V2.1.0 - 21.01.2025
9+
10+
### Added
11+
- Added bootloader version to basic commands
12+
713
---
814
## V2.0.1 - 04.08.2024
915

src/cli.c

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Ziga Miklosic
1+
// Copyright (c) 2025 Ziga Miklosic
22
// All Rights Reserved
33
// This software is under MIT licence (https://opensource.org/licenses/MIT)
44
////////////////////////////////////////////////////////////////////////////////
@@ -7,8 +7,8 @@
77
*@brief Command Line Interface
88
*@author Ziga Miklosic
99
*@email ziga.miklosic@gmail.com
10-
*@date 04.08.2024
11-
*@version V2.0.1
10+
*@date 21.01.2025
11+
*@version V2.1.0
1212
*/
1313
////////////////////////////////////////////////////////////////////////////////
1414
/*!
@@ -68,6 +68,7 @@ static void cli_help (const uint8_t * p_attr);
6868
static void cli_reset (const uint8_t * p_attr);
6969
static void cli_sw_version (const uint8_t * p_attr);
7070
static void cli_hw_version (const uint8_t * p_attr);
71+
static void cli_boot_version (const uint8_t * p_attr);
7172
static void cli_proj_info (const uint8_t * p_attr);
7273
static void cli_ch_info (const uint8_t * p_attr);
7374
static void cli_ch_en (const uint8_t * p_attr);
@@ -106,6 +107,7 @@ static cli_cmd_t g_cli_basic_table[] =
106107
{ "reset", cli_reset, "Reset device" },
107108
{ "sw_ver", cli_sw_version, "Print device software version" },
108109
{ "hw_ver", cli_hw_version, "Print device hardware version" },
110+
{ "boot_ver", cli_boot_version, "Print device bootloader (sw) version" },
109111
{ "proj_info", cli_proj_info, "Print project informations" },
110112
{ "ch_info", cli_ch_info, "Print COM channel informations" },
111113
{ "ch_en", cli_ch_en, "Enable/disable COM channel. Args: [chEnum][en]" },
@@ -530,6 +532,30 @@ static void cli_hw_version(const uint8_t * p_attr)
530532
}
531533
}
532534

535+
////////////////////////////////////////////////////////////////////////////////
536+
/*!
537+
* @brief Show bootloader (SW) version
538+
*
539+
* @param[in] attr - Inputed command attributes
540+
* @return void
541+
*/
542+
////////////////////////////////////////////////////////////////////////////////
543+
static void cli_boot_version(const uint8_t * p_attr)
544+
{
545+
if ( NULL == p_attr )
546+
{
547+
#if ( 1 == CLI_CFG_INTRO_STRING_EN )
548+
cli_printf( "OK, %s", CLI_CFG_INTRO_BOOT_VER );
549+
#else
550+
cli_printf( "WAR, Not used..." );
551+
#endif
552+
}
553+
else
554+
{
555+
cli_util_unknown_cmd_rsp();
556+
}
557+
}
558+
533559
////////////////////////////////////////////////////////////////////////////////
534560
/*!
535561
* @brief Show detailed project informations

src/cli.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Ziga Miklosic
1+
// Copyright (c) 2025 Ziga Miklosic
22
// All Rights Reserved
33
// This software is under MIT licence (https://opensource.org/licenses/MIT)
44
////////////////////////////////////////////////////////////////////////////////
@@ -7,8 +7,8 @@
77
*@brief Command Line Interface API
88
*@author Ziga Miklosic
99
*@email ziga.miklosic@gmail.com
10-
*@date 04.08.2024
11-
*@version V2.0.1
10+
*@date 21.01.2025
11+
*@version V2.1.0
1212
*/
1313
////////////////////////////////////////////////////////////////////////////////
1414
/**
@@ -37,8 +37,8 @@
3737
* Module version
3838
*/
3939
#define CLI_VER_MAJOR ( 2 )
40-
#define CLI_VER_MINOR ( 0 )
41-
#define CLI_VER_DEVELOP ( 1 )
40+
#define CLI_VER_MINOR ( 1 )
41+
#define CLI_VER_DEVELOP ( 0 )
4242

4343
/**
4444
* CLI Status

src/cli_nvm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Ziga Miklosic
1+
// Copyright (c) 2025 Ziga Miklosic
22
// All Rights Reserved
33
// This software is under MIT licence (https://opensource.org/licenses/MIT)
44
////////////////////////////////////////////////////////////////////////////////
@@ -7,8 +7,8 @@
77
*@brief Command Line Interface NVM storage
88
*@author Ziga Miklosic
99
*@email ziga.miklosic@gmail.com
10-
*@date 04.08.2024
11-
*@version V2.0.1
10+
*@date 21.01.2025
11+
*@version V2.1.0
1212
*/
1313
////////////////////////////////////////////////////////////////////////////////
1414
/*!

src/cli_nvm.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Ziga Miklosic
1+
// Copyright (c) 2025 Ziga Miklosic
22
// All Rights Reserved
33
// This software is under MIT licence (https://opensource.org/licenses/MIT)
44
////////////////////////////////////////////////////////////////////////////////
@@ -7,8 +7,8 @@
77
*@brief Command Line Interface NVM storage
88
*@author Ziga Miklosic
99
*@email ziga.miklosic@gmail.com
10-
*@date 04.08.2024
11-
*@version V2.0.1
10+
*@date 21.01.2025
11+
*@version V2.1.0
1212
*/
1313
////////////////////////////////////////////////////////////////////////////////
1414
/**

src/cli_osci.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Ziga Miklosic
1+
// Copyright (c) 2025 Ziga Miklosic
22
// All Rights Reserved
33
// This software is under MIT licence (https://opensource.org/licenses/MIT)
44
////////////////////////////////////////////////////////////////////////////////
@@ -7,8 +7,8 @@
77
*@brief Command Line Interface Osciloscope
88
*@author Ziga Miklosic
99
*@email ziga.miklosic@gmail.com
10-
*@date 04.08.2024
11-
*@version V2.0.1
10+
*@date 21.01.2025
11+
*@version V2.1.0
1212
*/
1313
////////////////////////////////////////////////////////////////////////////////
1414
/*!

src/cli_osci.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Ziga Miklosic
1+
// Copyright (c) 2025 Ziga Miklosic
22
// All Rights Reserved
33
// This software is under MIT licence (https://opensource.org/licenses/MIT)
44
////////////////////////////////////////////////////////////////////////////////
@@ -7,8 +7,8 @@
77
*@brief Command Line Interface Osciliscope
88
*@author Ziga Miklosic
99
*@email ziga.miklosic@gmail.com
10-
*@date 04.08.2024
11-
*@version V2.0.1
10+
*@date 21.01.2025
11+
*@version V2.1.0
1212
*/
1313
////////////////////////////////////////////////////////////////////////////////
1414
/**

src/cli_par.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Ziga Miklosic
1+
// Copyright (c) 2025 Ziga Miklosic
22
// All Rights Reserved
33
// This software is under MIT licence (https://opensource.org/licenses/MIT)
44
////////////////////////////////////////////////////////////////////////////////
@@ -7,8 +7,8 @@
77
*@brief Command Line Interface Device Parameters
88
*@author Ziga Miklosic
99
*@email ziga.miklosic@gmail.com
10-
*@date 04.08.2024
11-
*@version V2.0.1
10+
*@date 21.01.2025
11+
*@version V2.1.0
1212
*/
1313
////////////////////////////////////////////////////////////////////////////////
1414
/*!

src/cli_par.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Ziga Miklosic
1+
// Copyright (c) 2025 Ziga Miklosic
22
// All Rights Reserved
33
// This software is under MIT licence (https://opensource.org/licenses/MIT)
44
////////////////////////////////////////////////////////////////////////////////
@@ -7,8 +7,8 @@
77
*@brief Command Line Interface Device Parameters
88
*@author Ziga Miklosic
99
*@email ziga.miklosic@gmail.com
10-
*@date 04.08.2024
11-
*@version V2.0.1
10+
*@date 21.01.2025
11+
*@version V2.1.0
1212
*/
1313
////////////////////////////////////////////////////////////////////////////////
1414
/**

src/cli_util.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Ziga Miklosic
1+
// Copyright (c) 2025 Ziga Miklosic
22
// All Rights Reserved
33
// This software is under MIT licence (https://opensource.org/licenses/MIT)
44
////////////////////////////////////////////////////////////////////////////////
@@ -7,8 +7,8 @@
77
*@brief Command Line Interface Utility
88
*@author Ziga Miklosic
99
*@email ziga.miklosic@gmail.com
10-
*@date 04.08.2024
11-
*@version V2.0.1
10+
*@date 21.01.2025
11+
*@version V2.1.0
1212
*/
1313
////////////////////////////////////////////////////////////////////////////////
1414
/*!

0 commit comments

Comments
 (0)