Witam, zbudowałem sobie układ ds1820tousb w oparciu o mcu atmega8a, poczyniłem zmiany widoczne na listingu poniżej, teraz pytanie czy ktoś miał styczność z owa biblioteka v-usb i umie odpowiedzieć na pytanie gdzie zrobiłem błąd ? układ po zaprogramowaniu i podłączeniu nie działa, windows nie rozpoznaje urządzenia.
$ diff -u
$ diff -u
diff -u Kopia ds1820tousb-20100717/Makefile ds1820tousb-20100717/Makefile
--- Kopia ds1820tousb-20100717/Makefile Tue Mar 23 07:55:24 2010
+++ ds1820tousb-20100717/Makefile Fri Jul 1 22:05:55 2011
@@ -8,7 +8,7 @@
INCDIR = .
# target mcu (at90s8515, atmega16, atmega8515...)
-MCU = attiny45
+MCU = atmega8
# Since avrdude is generally crappy software (I liked uisp a lot better, too
# bad the project is dead :-/), it cannot use the MCU name everybody else
# uses, it has to invent its own name for it. So this defines the same
Common subdirectories: Kopia ds1820tousb-20100717/hardware and ds1820tousb-20100717/hardware
diff -u Kopia ds1820tousb-20100717/main.c ds1820tousb-20100717/main.c
--- Kopia ds1820tousb-20100717/main.c Wed Jun 9 23:13:28 2010
+++ ds1820tousb-20100717/main.c Fri Jul 1 22:05:47 2011
@@ -128,9 +128,9 @@
int main(void)
{
/* Some powersaving: Disable unused stuff */
- power_adc_disable();
- power_usi_disable();
- power_timer1_disable();
+ //power_adc_disable();
+ //power_usi_disable();
+ //power_timer1_disable();
/* From the avr usb doku wiki: Call usbDeviceDisconnect(), wait several
* 100 milliseconds and then call usbDeviceConnect(). This enforces
diff -u Kopia ds1820tousb-20100717/time.c ds1820tousb-20100717/time.c
--- Kopia ds1820tousb-20100717/time.c Mon Mar 16 20:32:24 2009
+++ ds1820tousb-20100717/time.c Fri Jul 1 22:06:09 2011
@@ -15,11 +15,11 @@
* per second at 15 MHz. */
TCCR0B |= _BV(2) | _BV(0);
/* Enable timer interrupts */
- TIMSK |= _BV(1);
+ TIMSK |= _BV(0);
}
/* ISR(TIM1_OVF_vect, ISR_NOBLOCK) doesn't work in the goddamn stoneage ubuntu version */
-ISR(TIM0_OVF_vect)
+ISR(TIMER0_OVF_vect)
{
sei(); /* Workaround, should use ISR_NOBLOCK instead */
{