I guess your talking about the ISR which is the only thing dependant to serial at the moment. I will change it so a user can choose or make an ISR.
Other streams could be used as long as they have a xxxx_data_available procedure. SPI does not have one at the moment, and it seems hard for me to ask william to update his lib. I was actually thinking of making a serial_sw ISR, which would just be a timer that would use the poll procedure. How often would the timer need to poll for data on the software serial port? I suppose it would be dependant on the speed of the serial port, so how would I calculate the poll time required based on baud rate? Matt. On Jul 12, 1:50 am, Joep Suijs <[email protected]> wrote: > Hi Matt, > > Would it be possible to separate the slip functions from the usart routines? > This way you could use transport slip over serial_hw, > serial_hw_int_cts, spi or any other stream and create a truely > independant library. > > Joep > > 2010/7/11 mattschinkel <[email protected]>: > > > > >> Looks great ! I have few more questions, sometimes nitpicking... :) > > > Thanks for the nitpicking, please continue :) Thanks for your interest > > on this. > > >> In sample, some "10" could be replace with SLIP_MTU. This makes clear > >> what's > >> the meaning of this value and avoid duplication: > > > ok > > >> BTW, what "(partly SLIP encrypted)" means here ? > > > Some of the data has changed, because it is a slip packet. I should be > > more clear. 0xC0 changes to 0xDB 0xDC during transmission. 0xDB > > changes to 0xDB 0xDD > > > Matt. > > > -- > > You received this message because you are subscribed to the Google Groups > > "jallib" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/jallib?hl=en.- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
