From 6c91a2e392c1e5fb38f5811138f8ada2759a30f6 Mon Sep 17 00:00:00 2001 From: ShrLnm Date: Sun, 7 Aug 2022 05:51:31 +0000 Subject: [PATCH] Update pyren/macro/init.txt --- pyren/macro/init.txt | 85 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/pyren/macro/init.txt b/pyren/macro/init.txt index 8b13789..b47e970 100644 --- a/pyren/macro/init.txt +++ b/pyren/macro/init.txt @@ -1 +1,86 @@ +# +# +# Initialisation macros for mod_term +# +# + +$addr = 7A +$txa = 7E0 +$rxa = 7E8 + +# reset elm +reset_elm { + at ws + $prompt = ELM +} + +# general CAN init +init_can { + reset_elm #macro + at e1 + at s0 + at h0 + at l0 + at al + at caf0 + at cfc0 + at sh $txa + at cra $rxa + at fc sh $txa + at fc sd 30 00 00 + at fc sm 1 + $prompt = CAN +} + +# CAN 250 init +can250 { + init_can + at st ff + at at 0 + at sp 8 + at at 1 + $prompt = CAN250 +} + +# CAN 500 init +can500 { + init_can + at st ff + at at 0 + at sp 6 + at at 1 + $prompt = CAN500 +} + +# general ISO init +init_iso { + reset_elm #macro + at e1 + at l1 + at d1 + at sh 81 $addr f1 + at sw 96 + at wm 81 $addr f1 3E + #at wm 82 $addr f1 3E01 + at ib10 + at st ff + at at 0 + $prompt = KL +} + +# K-Line slow init +slow { + init_iso + at sp 4 + at at 1 + $prompt = SLOW +} + +# K-Line fast init +fast { + init_iso + at sp 5 + at at 1 + $prompt = FAST +}