You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By using the TP function, you can analyze the timing of your program's operation.
41
+
You can measure the processing time of the routine. It is also convenient for observing the status of interrupt processing and task processing in the RTOS.
42
+
43
+
First, embed the status number control (GG_TP_ON / GG_TP_OFF) in the program point you want to analyze. Then use the tp command to select the status number to be output to TP1 or TP2. You can also switch at any time.
44
+
45
+
Millions of logical state numbers can be placed, but there are only two physical outputs, TP1 and TP2. This is limited because the number of physical signals is limited and the CPU load increases when many signal pin switchings are checked.
46
+
47
+
In the sample below, TP1 is Arduino pin 2 and TP2 is Arduino pin 3. The oscilloscope has TP1 (pin 2) connected to yellow CH1 and TP2 (pin 3) connected to purple CH2. The tp command (tp 10 30) sets TP1 to status number 10 and TP2 to status number 30.
48
+
49
+
*[GG_tp.ino](examples/GG_tp/GG_tp.ino).
50
+
51
+
,M:TP2(status number 30)")
52
+
31
53
## Functions
32
54
33
-
|Functions / Variables|Specification|
55
+
All functions do not use the heap.
56
+
57
+
|Functions / Variables|specification|
34
58
|--|---|
35
59
|***GG_for_Arduino.h***||
36
60
|int gg_start(const char \*title)|Start processing GG for Arduino|
@@ -66,7 +90,7 @@ After creating the function of the original command, register it as shown in the
66
90
|***gg_printf.h***||
67
91
|int gg_vxprintf(int (\*putc)(int), const char \*fmt, va_list vlst)|vprintf() with putc()|
68
92
|int gg_xprintf(int (\*putc)(int), const char \*fmt, ...)|printf() with putc()|
69
-
|int gg_printf(const char \*fmt, ...)|printf() with standard output|
93
+
|int gg_printf(const char \*fmt, ...)|printf() with standard output.% e is not implemented|
70
94
|int gg_vsprintf(char \*buf, const char \*fmt, va_list vlst)|vsprintf() to buf[]|
71
95
|int gg_sprintf(char \*buf, const char \*fmt, ...)|sprintf() to buf[]|
72
96
|gg_printDATE(gg_time_t)|"YY/MM/DD"|
@@ -78,7 +102,7 @@ After creating the function of the original command, register it as shown in the
78
102
|GG_CON_CMDMRK(title)|Display delimiter of list in help|
79
103
|GG_CON|Work area for console (internal use)|
80
104
|int gg_con_MonInit(void)|Console initialization|
81
-
|char \*gg_con_prompt|Prompt string|
105
+
|char \*gg_con_prompt|Prompt string. ">" by default|
sentence=GG for Arduino is a library package that provides serial consoles, formatted output and timing analysis.
6
-
paragraph=You can implement a command line interface on Arduino and add your commands very quickly and easily.This library contains built-in commands that allow memory access and timing analysis.It also includes formatted output like printf().
5
+
sentence=GG for Arduino is a serial console library.
6
+
paragraph=It also contains various functions for implementing the console, for example printf(). You can implement a command line interface on your Arduino and add your own commands. This library contains built-in commands that allow memory access and timing analysis.
0 commit comments