Compare commits
7 Commits
19429b8810
...
0f85b27f90
| Author | SHA1 | Date |
|---|---|---|
|
|
0f85b27f90 | |
|
|
2b8c7c5f4b | |
|
|
4577316bd6 | |
|
|
4364d655b8 | |
|
|
2e71e396c5 | |
|
|
7815be8741 | |
|
|
dae324dbd5 |
|
|
@ -1,6 +1,13 @@
|
||||||
*~
|
*~
|
||||||
|
*.a
|
||||||
|
*.so
|
||||||
|
*.so.*
|
||||||
*.o
|
*.o
|
||||||
.ccls-cache
|
.ccls-cache
|
||||||
|
CMakeCache.txt
|
||||||
|
CMakeFiles/
|
||||||
|
Makefile
|
||||||
|
cmake_install.cmake
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
tags
|
tags
|
||||||
/build
|
/build
|
||||||
|
|
|
||||||
|
|
@ -126,6 +126,7 @@ if(NOT ANDROID)
|
||||||
|
|
||||||
set_target_properties(isobusfs PROPERTIES
|
set_target_properties(isobusfs PROPERTIES
|
||||||
PUBLIC_HEADER "${PUBLIC_HEADER_ISOBUSFS}"
|
PUBLIC_HEADER "${PUBLIC_HEADER_ISOBUSFS}"
|
||||||
|
SOVERSION 0
|
||||||
)
|
)
|
||||||
|
|
||||||
install(TARGETS isobusfs
|
install(TARGETS isobusfs
|
||||||
|
|
|
||||||
7
cangen.c
7
cangen.c
|
|
@ -857,7 +857,14 @@ int main(int argc, char **argv)
|
||||||
if (ret)
|
if (ret)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
int k[] = {1,2};
|
||||||
|
int j = 0;
|
||||||
while (running) {
|
while (running) {
|
||||||
|
ts_gap = double_to_timespec((k[j%2])/1000.0);
|
||||||
|
// printf("%lu, %lu\n", ts_gap.tv_sec, ts_gap.tv_nsec);
|
||||||
|
setsockopt_txtime(s);
|
||||||
|
setup_time();
|
||||||
|
j++;
|
||||||
/* clear values but preserve cu.fd.len */
|
/* clear values but preserve cu.fd.len */
|
||||||
cu.fd.flags = 0;
|
cu.fd.flags = 0;
|
||||||
cu.fd.__res0 = 0;
|
cu.fd.__res0 = 0;
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
#include <linux/can/j1939.h>
|
#include <linux/can/j1939.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <time.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
||||||
#ifndef J1939_LIB_H
|
#ifndef J1939_LIB_H
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue