On 30 Oct 2008, at 09:56 , Sebastien Lelong wrote: > The svn log is pretty clear: > > > Log message > > added real time clock with timer0 ISR + sample > added format_time_hms() to format.jal > dunno what the hell is wrong with serial_hardware.jal > > Affected files > > Modify/trunk/unvalidated/include/jal/format.jaldiff > Add/trunk/unvalidated/include/jal/rtc_isr_tmr0.jaldiff > Modify/trunk/unvalidated/include/peripheral/usart/ > serial_hardware.jaldiff > Add/trunk/unvalidated/sample/by_device/16f876a/sample_rtc_lcd.jaldiff
Yes, I saw it too, that's why I wrote the comment. > If you "svn commit", without specifying any files, svn will commit > *all* the files that have been modified. If you "svn commit > thefile", it'll commit only the "thefile" (as you guessed). Do you > use the first or the second form ? I personally mostly use the > second, always specifying files. And I always "svn status", even > "svn diff" to know what I'll commit. First, because a project has both a sample and a lib, often in quite different directories. It's tedious to switch back 'n forth. > Do youreally want to change API (eg. format_time_word renamed to > format_time_word) Yes, because the format lib has bytes in the procedure name. This is superfluous, IMHO, since the default (some would say the only) datastructure in a PIC is a byte. So ommitting the byte moniker implicitly means the dataformat is byte. I did not make an issue out of this, maybe I should. Let me state this differently: Procedure names should not have "byte" in their names, only when it is really necessary (print_byte_hex() for instance). Procedure names should have word, sword, dword, sdword in their names if there is another procedure with the same name which works with bytes. > > Add/trunk/unvalidated/include/jal/rtc_isr_tmr0.jaldiff > > IMHO, this shoud not go to "jal" map, but in "external/rtc" It is internal! You could argue that TMR0 is a peripheral, but it is not referenced as that in the datasheets (it does not have a peripheral interrrupt flag, for instance). > (btw, is this a way to have RTC without an RTC dedicated chip ? Yes, it is. So it should not go in external. > > Modify/trunk/unvalidated/include/peripheral/usart/ > serial_hardware.jaldiff > > Already discussed, back to previous version. > > > Add/trunk/unvalidated/sample/by_device/16f876a/ > sample_rtc_lcd.jaldiff > > This sample won't compile, there's no now.jal lib. And I understand > that now.jal is generated, so it contains the current "now". I > think this is more part of a project than a lib. At least, you > should put a default now.jal, highly documented. Remember, all > samples should compile without errors. I've added now.jal, and timest.py also. I just forgot last night. Hey, this is an unvalidated tree, right? Of course it compiled just fine here before I committed. > Would it be possible to have the same sample, using your ISR, but > without a now.jal usage ? Something like a second counter ? An RTC without proper timesetting is like a car without wheels: it defeats the purpose. Either you set the time at compiling, or you do via buttons and a screen. I have this code too, but it needs a keyboard as well. I thought it would be too complicated for a sample. Yes, I will commit a second sample that allows clock setting via LCD & keyboard. --- ir EE van Andel [EMAIL PROTECTED] http://www.fiwihex.nl Fiwihex B.V. Wierdensestraat 74, NL7604BK Almelo, Netherlands tel+31-546-491106 fax+31-546-491107 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
