File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,7 @@ void print_usage(void)
149
149
" -r Listen for rising edges\n"
150
150
" -f Listen for falling edges\n"
151
151
" -w Report the wall-clock time for events\n"
152
+ " -t Report the hardware timestamp for events\n"
152
153
" -b <n> Debounce the line with period n microseconds\n"
153
154
" [-c <n>] Do <n> loops (optional, infinite loop if not stated)\n"
154
155
" -? This helptext\n"
@@ -174,7 +175,7 @@ int main(int argc, char **argv)
174
175
175
176
memset (& config , 0 , sizeof (config ));
176
177
config .flags = GPIO_V2_LINE_FLAG_INPUT ;
177
- while ((c = getopt (argc , argv , "c:n:o:b:dsrfw ?" )) != -1 ) {
178
+ while ((c = getopt (argc , argv , "c:n:o:b:dsrfwt ?" )) != -1 ) {
178
179
switch (c ) {
179
180
case 'c' :
180
181
loops = strtoul (optarg , NULL , 10 );
@@ -208,6 +209,9 @@ int main(int argc, char **argv)
208
209
case 'w' :
209
210
config .flags |= GPIO_V2_LINE_FLAG_EVENT_CLOCK_REALTIME ;
210
211
break ;
212
+ case 't' :
213
+ config .flags |= GPIO_V2_LINE_FLAG_EVENT_CLOCK_HTE ;
214
+ break ;
211
215
case '?' :
212
216
print_usage ();
213
217
return -1 ;
You can’t perform that action at this time.
0 commit comments