Skip to content

Commit 5f14fbf

Browse files
committed
Defines names updates
1 parent d863000 commit 5f14fbf

File tree

14 files changed

+71
-46
lines changed

14 files changed

+71
-46
lines changed

examples/arduino/basic_usage/basic_usage.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* @section DESCRIPTION
88
*
9-
* SIMPLECLI library basic usage example for Arduino Framework.
9+
* MINBASECLI library basic usage example for Arduino Framework.
1010
*
1111
* @section LICENSE
1212
*

examples/espidf/basic_usage/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* @section DESCRIPTION
88
*
9-
* SIMPLECLI library basic usage example for ESP-IDF Framework.
9+
* MINBASECLI library basic usage example for ESP-IDF Framework.
1010
*
1111
* @section LICENSE
1212
*
@@ -157,7 +157,7 @@ void th_cli_interpreter(void* arg)
157157
bool command_received = false;
158158

159159
// Setup Command Line Interface
160-
Cli.setup(SIMPLECLI_DEFAULT_IFACE, SIMPLECLI_DEFAULT_BAUDS);
160+
Cli.setup(MINBASECLI_DEFAULT_IFACE, MINBASECLI_DEFAULT_BAUDS);
161161
ESP_LOGI(TAG, "Command Line Interface is ready");
162162
printf("\n\n");
163163

examples/linux/basic_usage/src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* @section DESCRIPTION
88
*
9-
* SIMPLECLI library basic usage example for Linux OS system.
9+
* MINBASECLI library basic usage example for Linux OS system.
1010
*
1111
* @section LICENSE
1212
*
@@ -62,7 +62,7 @@ int main()
6262
bool exit = false;
6363

6464
// Setup Command Line Interface
65-
Cli.setup(SIMPLECLI_DEFAULT_IFACE, SIMPLECLI_DEFAULT_BAUDS);
65+
Cli.setup(MINBASECLI_DEFAULT_IFACE, MINBASECLI_DEFAULT_BAUDS);
6666
printf("\nCommand Line Interface is ready\n\n");
6767

6868
while(1)

examples/windows/basic_usage/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* @section DESCRIPTION
88
*
9-
* SIMPLECLI library basic usage example for Windows OS system.
9+
* MINBASECLI library basic usage example for Windows OS system.
1010
*
1111
* @section LICENSE
1212
*
@@ -65,7 +65,7 @@ int main()
6565
bool exit = false;
6666

6767
// Setup Command Line Interface
68-
Cli.setup(SIMPLECLI_DEFAULT_IFACE, SIMPLECLI_DEFAULT_BAUDS);
68+
Cli.setup(MINBASECLI_DEFAULT_IFACE, MINBASECLI_DEFAULT_BAUDS);
6969
printf("\nCommand Line Interface is ready\n\n");
7070

7171
while(1)

src/hal/avr/minbasecli_avr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151

5252
/* Constants & Defines */
5353

54-
#if !defined(SIMPLECLI_UART)
55-
#define SIMPLECLI_UART 0
54+
#if !defined(MINBASECLI_UART)
55+
#define MINBASECLI_UART 0
5656
#endif
5757

5858
/*****************************************************************************/

src/hal/espidf/minbasecli_espidf.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
/* Constants & Defines */
6060

6161
// UART Read Task Stack Size
62-
static const uint16_t SIMPLECLI_TASK_STACK = 2048;
62+
static const uint16_t MINBASECLI_TASK_STACK = 2048;
6363

6464
// Logging Tag
6565
static const char TAG[] = "MinBaseCLI";
@@ -120,7 +120,7 @@ uint8_t MINBASECLI_ESPIDF::hal_iface_read()
120120

121121
// Return read bytes
122122
this->th_rx_read_tail = (this->th_rx_read_tail + 1) %
123-
SIMPLECLI_MAX_READ_SIZE;
123+
MINBASECLI_MAX_READ_SIZE;
124124
return th_rx_read[this->th_rx_read_tail];
125125
}
126126

@@ -143,7 +143,7 @@ void MINBASECLI_ESPIDF::hal_iface_print(const uint8_t data_byte)
143143
*/
144144
bool MINBASECLI_ESPIDF::launch_stdin_read_thread()
145145
{
146-
if (xTaskCreate(&th_read_stdin, "th_read_stdin", SIMPLECLI_TASK_STACK,
146+
if (xTaskCreate(&th_read_stdin, "th_read_stdin", MINBASECLI_TASK_STACK,
147147
(void*)(this), tskIDLE_PRIORITY+5, NULL) != pdPASS)
148148
{
149149
ESP_LOGE(TAG, "Fail to create STDIN read thread");
@@ -230,7 +230,7 @@ void th_read_stdin(void* arg)
230230
ch = getc(stdin);
231231
if (ch != EOF)
232232
{
233-
_this->th_rx_read_head = (_this->th_rx_read_head + 1) % SIMPLECLI_MAX_READ_SIZE;
233+
_this->th_rx_read_head = (_this->th_rx_read_head + 1) % MINBASECLI_MAX_READ_SIZE;
234234
_this->th_rx_read[_this->th_rx_read_head] = ch;
235235
}
236236
else

src/hal/espidf/minbasecli_espidf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
/* Constants & Defines */
5353

54-
#define SIMPLECLI_MAX_READ_SIZE 64
54+
#define MINBASECLI_MAX_READ_SIZE 64
5555

5656
/*****************************************************************************/
5757

@@ -60,7 +60,7 @@
6060
class MINBASECLI_ESPIDF
6161
{
6262
public:
63-
char th_rx_read[SIMPLECLI_MAX_READ_SIZE];
63+
char th_rx_read[MINBASECLI_MAX_READ_SIZE];
6464
uint32_t th_rx_read_head, th_rx_read_tail;
6565

6666
MINBASECLI_ESPIDF();

src/hal/linux/minbasecli_linux.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ uint8_t MINBASECLI_LINUX::hal_iface_read()
103103

104104
// Return read bytes
105105
this->th_rx_read_tail = (this->th_rx_read_tail + 1) %
106-
SIMPLECLI_MAX_READ_SIZE;
106+
MINBASECLI_MAX_READ_SIZE;
107107
return th_rx_read[this->th_rx_read_tail];
108108
}
109109

@@ -153,7 +153,7 @@ void* th_read_stdin(void* arg)
153153

154154
while (true)
155155
{
156-
new_head = (_this->th_rx_read_head + 1) % SIMPLECLI_MAX_READ_SIZE;
156+
new_head = (_this->th_rx_read_head + 1) % MINBASECLI_MAX_READ_SIZE;
157157
_this->th_rx_read[new_head] = getc(stdin);
158158
_this->th_rx_read_head = new_head;
159159
}

src/hal/linux/minbasecli_linux.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
/* Constants & Defines */
5353

54-
#define SIMPLECLI_MAX_READ_SIZE 64
54+
#define MINBASECLI_MAX_READ_SIZE 64
5555

5656
/*****************************************************************************/
5757

@@ -61,7 +61,7 @@ class MINBASECLI_LINUX
6161
{
6262
public:
6363
uint32_t th_rx_read_head, th_rx_read_tail;
64-
char th_rx_read[SIMPLECLI_MAX_READ_SIZE];
64+
char th_rx_read[MINBASECLI_MAX_READ_SIZE];
6565

6666
MINBASECLI_LINUX();
6767

src/hal/stm32/minbasecli_stm32.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static uint8_t rx_read_head = 0;
118118
static uint8_t rx_read_tail = 0;
119119

120120
// Received bytes buffer
121-
static uint8_t rx_buffer[SIMPLECLI_MAX_READ_SIZE];
121+
static uint8_t rx_buffer[MINBASECLI_MAX_READ_SIZE];
122122

123123
/*****************************************************************************/
124124

@@ -168,7 +168,7 @@ uint8_t MINBASECLI_STM32::hal_iface_read()
168168
return 0;
169169

170170
// Return read bytes
171-
rx_read_tail = (rx_read_tail + 1) % SIMPLECLI_MAX_READ_SIZE;
171+
rx_read_tail = (rx_read_tail + 1) % MINBASECLI_MAX_READ_SIZE;
172172
return rx_buffer[rx_read_tail];
173173
}
174174

@@ -258,7 +258,7 @@ bool MINBASECLI_STM32::uart_setup(const uint32_t baud_rate,
258258
static void HAL_UART_RxCpltCallback(UART_HandleTypeDef* UartHandle)
259259
{
260260
// Increase number of received bytes
261-
rx_read_head = (rx_read_head + 1) % SIMPLECLI_MAX_READ_SIZE;
261+
rx_read_head = (rx_read_head + 1) % MINBASECLI_MAX_READ_SIZE;
262262
rx_buffer[rx_read_head] = rx_byte[0];
263263

264264
// Reload Async Reception

0 commit comments

Comments
 (0)