On Wed Apr 8 10:23 , Joel Sherrill sent:
>[email protected] wrote: >> On Tue Apr 7 18:35 , Joel Sherrill sent: >> >> >>> [email protected] wrote: >>>> From the description, the pins are not connected. >>>> Is the connection done with a Netlist? >>>> If so, perhaps its methods deserve debugging statements. >>>> >>>> >>>> >>> Net ser_rxD0 >>> SerialRx mysrx $ui "serialRx0" ".x" >>> SerialRxBasic_SetBaudRate mysrx 9600 >>> ser_rxD0 Add [SerialRxBasic_GetPin mysrx "rx"] >>> ser_rxD0 Add [AvrDevice_GetPin $dev1 "E1"] >>> >> >> I can't read tcl well enough to tell. >> >This is a rough translation to C++. The binding is very close >once you get a handle on reading it. > >ser_rxD0 = new Net() >mysrx = new SerialRx( ui, "serialRx0, ".x ) >mysrx->SetBaudRate(9600) >ser_rxD0->Add( mysrx->GetPin( "rx" ) ) >ser_rxD0->Add( dev1->GetPin( "E1" ) ) What happens if Add or GetPin fails, e.g. "rx" or "E1" is spelled wrong? >Where dev1 is an atmega128 instance. >> Any suggestions on how I learn to do that? >> Did K&R write a tcl book? >> >> >I have an old Tcl book which is quite good but the online >docs are excellent. I'll try using them again. -- Michael Hennebry [email protected] "War is only a hobby." ---- Msg sent via CableONE.net MyMail - http://www.cableone.net _______________________________________________ Simulavr-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/simulavr-devel
