Re: [Amforth] amforth-shell.py idea

2012-10-08 Thread Enoch
Hello again Matthias, Here's the patch at pastebin: http://pastebin.com/NbfGxU3C Thanks, Enoch. On 10/08/2012 01:36 PM, Matthias Trute wrote: > Hi, > >> On the at90can128, for example, one has to introduce "TCCR0 constant >> TCCR0B" before uploading lib/hardware/time0.frt >> >> How about exten

Re: [Amforth] amforth-shell.py idea

2012-10-08 Thread Enoch
Hi Matthias, Please find attached a patch to Keith's shell script for your consideration. I took the lazy approach of using Python's eval() option and it was quite easy: Two variables: avr - device name string py - a truth value 1st method: #py= avr=="at90can128" #py? "% TCCR0 c!" if py

Re: [Amforth] amforth-shell.py idea

2012-10-08 Thread Matthias Trute
Hi, > On the at90can128, for example, one has to introduce "TCCR0 constant > TCCR0B" before uploading lib/hardware/time0.frt > > How about extending Keith's fantastic shell with conditional upload > constructs such as: > > #ifdev at90can128 >% TCCR0 c! \ stop timer > #else >%