mirror of
https://github.com/nasa/fpp.git
synced 2025-12-11 03:05:32 -06:00
Add missing file; revise clean rules
This commit is contained in:
parent
54a94b7d37
commit
4cc49c7490
8
clean.do
Normal file
8
clean.do
Normal file
@ -0,0 +1,8 @@
|
||||
# ----------------------------------------------------------------------
|
||||
# clean.do
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
. ./defs.sh
|
||||
|
||||
find . -mindepth 2 -maxdepth 2 -name clean.do | sed 's/\.do$//' | xargs redo
|
||||
rm_tmp
|
||||
2
defs.sh
2
defs.sh
@ -22,7 +22,7 @@ doall()
|
||||
echoerr 'usage: doall command regex'
|
||||
return 1
|
||||
fi
|
||||
for file in `find . -name "$2"`; do
|
||||
for file in `find . -mindepth 1 -maxdepth 1 -name "$2"`; do
|
||||
$1 $file
|
||||
done
|
||||
}
|
||||
|
||||
8
docs/clean.do
Normal file
8
docs/clean.do
Normal file
@ -0,0 +1,8 @@
|
||||
# ----------------------------------------------------------------------
|
||||
# clean.do
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
. ./defs.sh
|
||||
|
||||
find . -mindepth 2 -maxdepth 2 -name clean.do | sed 's/\.do$//' | xargs redo
|
||||
rm_tmp
|
||||
6
docs/defs.sh
Normal file
6
docs/defs.sh
Normal file
@ -0,0 +1,6 @@
|
||||
# ----------------------------------------------------------------------
|
||||
# defs.sh
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
export LEVEL=..
|
||||
. $LEVEL/defs.sh
|
||||
50
sml/tests/fpp-syntax/ok/def-component.fpp
Normal file
50
sml/tests/fpp-syntax/ok/def-component.fpp
Normal file
@ -0,0 +1,50 @@
|
||||
@ Port P
|
||||
port P(x : U32)
|
||||
|
||||
@ Component C1
|
||||
active component C1 {
|
||||
@ Constant n
|
||||
constant n = 5
|
||||
@ Constant p
|
||||
constant p = 10
|
||||
@ Port p1
|
||||
async input port p1 : P priority p
|
||||
@ Port p2
|
||||
guarded input port p2 : P
|
||||
@ Port p3
|
||||
internal input port p3 : P
|
||||
@ Port p4
|
||||
output port p4 : [ n ] P
|
||||
@ Port p5
|
||||
sync input port p5 : P
|
||||
}
|
||||
|
||||
@ Component C2
|
||||
passive component C2 {
|
||||
@ Port p1
|
||||
command port p1
|
||||
@ Port p2
|
||||
command reg port p2
|
||||
@ Port p3
|
||||
command resp port p3
|
||||
@ Port p4
|
||||
event port p4
|
||||
@ Port p5
|
||||
param get port p5
|
||||
@ Port p6
|
||||
param set port p6
|
||||
@ Port p7
|
||||
telemetry port p7
|
||||
@ Port p8
|
||||
time port p8
|
||||
}
|
||||
|
||||
@ Component C3
|
||||
queued component C3 {
|
||||
@ Port p1
|
||||
async input port p1 : P assert
|
||||
@ Port p2
|
||||
async input port P2 : P block
|
||||
@ Port p3
|
||||
async input port P3 : P drop
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user