mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
tiny change in CBuilder documentaion
This commit is contained in:
parent
0a48309ab1
commit
0bac78b6a4
2 changed files with 7 additions and 2 deletions
|
@ -6,5 +6,6 @@ Simple CBuilder control blocks can be executed in VILLASnode.
|
|||
Every CBuilder component is represented as a node in the VILLAS concept.
|
||||
|
||||
The aforementioned real-time code is written in a dialect of the C programming language.
|
||||
This allows the cross-compilation of CBuilder code for VILLASnode.
|
||||
The user only has to obey to the specifc structure of CBuilder code.
|
||||
This enables easy cross-compilation of CBuilder code for VILLASnode.
|
||||
The user only has to obey to the specifc structure of CBuilder code.
|
||||
The file models/simple_circuit.c is an example for this structure.
|
||||
|
|
|
@ -154,9 +154,13 @@ static void * recv_loop(void *ctx)
|
|||
|
||||
for (;;) {
|
||||
int recv = node_read(node, smps, node->vectorize);
|
||||
struct timespec now = time_now();
|
||||
for (int i = 0; i < recv; i++) {
|
||||
struct sample *s = smps[i];
|
||||
|
||||
if (s->ts.received.tv_sec == -1 || s->ts.received.tv_sec == 0)
|
||||
s->ts.received = now;
|
||||
|
||||
sample_fprint(stdout, s, SAMPLE_ALL);
|
||||
fflush(stdout);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue