aboutsummaryrefslogtreecommitdiff
path: root/j1demo/firmware/packet.fs
diff options
context:
space:
mode:
authorDimitri Sokolyuk <ds@doozer.de>2017-05-23 17:06:09 +0200
committerDimitri Sokolyuk <ds@doozer.de>2017-05-23 17:06:09 +0200
commit6f86ce7057dd7cd1b491e8f09501258822d2ea74 (patch)
treeb3bfa11f0f72d0e1ca7c84d948af20b7494dd26b /j1demo/firmware/packet.fs
Import j1demo
Diffstat (limited to 'j1demo/firmware/packet.fs')
-rw-r--r--j1demo/firmware/packet.fs11
1 files changed, 11 insertions, 0 deletions
diff --git a/j1demo/firmware/packet.fs b/j1demo/firmware/packet.fs
new file mode 100644
index 0000000..b188cc5
--- /dev/null
+++ b/j1demo/firmware/packet.fs
@@ -0,0 +1,11 @@
+( Packet construction, tx, rx JCB 13:25 08/24/10)
+module[ packet"
+
+: packet@ ( u -- u )
+ mac-inoffset mac@ ;
+
+: packetd@ ( u -- ud )
+ mac-inoffset dup 2+ mac@ swap mac@ ;
+
+
+]module