Commits

Trammell Hudson  committed 97a7d6d

Correct number of bits in header; reads, but wrong code

  • Participants
  • Parent commits 935b424

Comments (0)

Files changed (2)

File Makefile.rfid

 # Increase verbosity level.  Please use this when submitting bug
 # reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude> 
 # to submit bug reports.
-AVRDUDE_VERBOSE = -v -v -x serial_recv_timeout=100
+#AVRDUDE_VERBOSE = -v -v -x serial_recv_timeout=100
 
 #MY_CLOCK_IS_SLOW = -i 100
 AVRDUDE_ASCII = -x ascii
 .PHONY:	all build elf hex eep lss sym program coff extcoff clean depend
 
 
-avrfid2.elf:
+avrfid2.elf: avrfid2.c
 	$(CC) \
 		-mmcu=attiny85 \
 		-O3 \
 	const uint8_t n
 )
 {
-	if (n % 2 == 1)
-		asm("nop");
-
 	switch (n/2)
 	{
 	case 8: asm("rjmp .+0");
 	case 1: asm("rjmp .+0");
 	case 0: break;
 	}
+
+	if (n % 2 == 1)
+		asm("nop");
 }
 
 
 )
 {
 	//if (startloop)
-		toggle(2);
+		//toggle(2);
 	//else
-		//toggle(4);
+		toggle(4);
 
 	toggle(4); // 8
 	toggle(4); // 12
 )
 {
 	//if (startloop)
-		toggle(2);
+		//toggle(2);
 	//else
-		//toggle(5);
+		toggle(5);
 
 	toggle(5); // 10
 	toggle(5); // 15
 	baseband_0();
 	baseband_0();
 	baseband_0();
-	baseband_0();
-	baseband_1();
 	baseband_1();
 	baseband_1();
 	baseband_1();
 main(void)
 {
 	r16 = 0;
-	r17 = 3;
+	r17 = _BV(PINB3) | _BV(PINB4);
 
 	while (1)
 		hid_output();