Initial version of libcsp-rust
This commit is contained in:
1
clib/.gitignore
vendored
Normal file
1
clib/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/libcsp
|
7538
clib/bindings.rs
Normal file
7538
clib/bindings.rs
Normal file
File diff suppressed because it is too large
Load Diff
2418
clib/bindings.sh
Normal file
2418
clib/bindings.sh
Normal file
File diff suppressed because it is too large
Load Diff
25
clib/cfg/csp/autoconfig.h
Normal file
25
clib/cfg/csp/autoconfig.h
Normal file
@@ -0,0 +1,25 @@
|
||||
// This file was auto-generated by libcsp-cargo-build v0.1.0
|
||||
#define CSP_POSIX 1
|
||||
#define CSP_ZEPHYR 0
|
||||
|
||||
#define CSP_HAVE_STDIO 1
|
||||
#define CSP_ENABLE_CSP_PRINT 1
|
||||
#define CSP_PRINT_STDIO 1
|
||||
#define CSP_REPRODUCIBLE_BUILDS 0
|
||||
|
||||
#define CSP_QFIFO_LEN 16
|
||||
#define CSP_PORT_MAX_BIND 16
|
||||
#define CSP_CONN_RXQUEUE_LEN 16
|
||||
#define CSP_CONN_MAX 8
|
||||
#define CSP_BUFFER_SIZE 256
|
||||
#define CSP_BUFFER_COUNT 15
|
||||
#define CSP_RDP_MAX_WINDOW 5
|
||||
#define CSP_RTABLE_SIZE 10
|
||||
|
||||
#define CSP_USE_RDP 1
|
||||
#define CSP_USE_HMAC 1
|
||||
#define CSP_USE_PROMISC 1
|
||||
#define CSP_USE_RTABLE 0
|
||||
|
||||
#define CSP_HAVE_LIBSOCKETCAN 0
|
||||
#define CSP_HAVE_LIBZMQ 0
|
3
clib/clone-csp.sh
Executable file
3
clib/clone-csp.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
git clone https://github.com/us-irs/libcsp.git
|
||||
git checkout const-correctness
|
4
clib/gen-bindings.sh
Executable file
4
clib/gen-bindings.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
bindgen_cmd="bindgen --use-core wrapper.h -- '-I./libcsp/include' '-I./cfg' '-I./libcsp/src' > bindings.rs"
|
||||
echo "Running: $bindgen_cmd"
|
||||
eval $bindgen_cmd
|
6
clib/wrapper.h
Normal file
6
clib/wrapper.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#include "csp/csp.h"
|
||||
#include "csp/csp_hooks.h"
|
||||
#include "csp_conn.h"
|
||||
|
||||
#include "csp/interfaces/csp_if_lo.h"
|
||||
#include "csp/interfaces/csp_if_udp.h"
|
Reference in New Issue
Block a user