2008-03-14 Martin Thomas <mthomas@rhrk.uni-kl.de>
authorKevin Rosenberg <kevin@rosenberg.net>
Fri, 14 Mar 2008 22:13:33 +0000 (16:13 -0600)
committerKevin Rosenberg <kevin@rosenberg.net>
Fri, 14 Mar 2008 22:13:33 +0000 (16:13 -0600)
commitedd0e551e6041f7596c880cdaef13dfa67eff6b5
treea91843c42514ad35721b40a9ccdf23ac9669a7f8
parent5b95e754a4af80c7389486ee874ac07c166a0867
2008-03-14 Martin Thomas <mthomas@rhrk.uni-kl.de>
        * added "volatile" to structure object and array declarations for objects
        sed in main-thread and ISRs. I'm not sure about the current state of
        implicitly "guaranteed" accesses in (avr-)gcc but it should be a "better
        safe than sorry" extension.
        * enveloped access to timer-values in timer.c to make them "atomic" since
        they are unsigned long
        * "atomic" access to singned int and unsigned int members of ADCS
        * it maybe better to have one place to globally enable interrupts ("sei").
        Done in "initialize" now and not several times in the driver
12 files changed:
BaseTinyFirmware/GCC/ADC.c
BaseTinyFirmware/GCC/ADC.h
BaseTinyFirmware/GCC/ChangeLog
BaseTinyFirmware/GCC/USI.c
BaseTinyFirmware/GCC/avr463.aps
BaseTinyFirmware/GCC/avr463.aws
BaseTinyFirmware/GCC/battery.c
BaseTinyFirmware/GCC/chargefunc.c
BaseTinyFirmware/GCC/main.c
BaseTinyFirmware/GCC/statefunc.c
BaseTinyFirmware/GCC/time.c
BaseTinyFirmware/GCC/time.h