
USB10.elf:     file format elf32-avr

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .data         0000005e  00800100  00001a12  00001a86  2**0
                  CONTENTS, ALLOC, LOAD, DATA
  1 .text         00001a12  00000000  00000000  00000074  2**1
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  2 .bss          00000141  0080015e  00001a70  00001ae4  2**0
                  ALLOC
  3 .debug_aranges 00000390  00000000  00000000  00001ae4  2**0
                  CONTENTS, READONLY, DEBUGGING
  4 .debug_pubnames 000009b9  00000000  00000000  00001e74  2**0
                  CONTENTS, READONLY, DEBUGGING
  5 .debug_info   0000387d  00000000  00000000  0000282d  2**0
                  CONTENTS, READONLY, DEBUGGING
  6 .debug_abbrev 0000139c  00000000  00000000  000060aa  2**0
                  CONTENTS, READONLY, DEBUGGING
  7 .debug_line   00003451  00000000  00000000  00007446  2**0
                  CONTENTS, READONLY, DEBUGGING
  8 .debug_frame  00000560  00000000  00000000  0000a898  2**2
                  CONTENTS, READONLY, DEBUGGING
  9 .debug_str    00001627  00000000  00000000  0000adf8  2**0
                  CONTENTS, READONLY, DEBUGGING
 10 .debug_loc    0000146e  00000000  00000000  0000c41f  2**0
                  CONTENTS, READONLY, DEBUGGING
 11 .debug_ranges 000003f8  00000000  00000000  0000d88d  2**0
                  CONTENTS, READONLY, DEBUGGING
Disassembly of section .text:

00000000 <__vectors>:
	Buffer_StoreElementOnBottom(&Rx_Buffer, temp);
}


void Print_Int(uint16_t intvalue, uint8_t base)
{
       0:	d8 c0       	rjmp	.+432    	; 0x1b2 <__ctors_end>
	
	Delay(I2C_PERIOD);
}

void Delay(uint8_t delay)
{
       2:	00 00       	nop

volatile SchedulerDelayCounter_t Scheduler_TickCounter;
volatile uint8_t                 Scheduler_TotalTasks;

bool Scheduler_HasDelayElapsed(const uint16_t Delay, SchedulerDelayCounter_t* const DelayCounter)
{
       4:	f2 c0       	rjmp	.+484    	; 0x1ea <__bad_interrupt>
	
	Endpoint_AllocateMemory();
}

void Endpoint_ClearEndpoints(void)
{
       6:	00 00       	nop
       8:	f0 c0       	rjmp	.+480    	; 0x1ea <__bad_interrupt>
       a:	00 00       	nop
       c:	ee c0       	rjmp	.+476    	; 0x1ea <__bad_interrupt>
       e:	00 00       	nop
      10:	ec c0       	rjmp	.+472    	; 0x1ea <__bad_interrupt>
      12:	00 00       	nop
      14:	ea c0       	rjmp	.+468    	; 0x1ea <__bad_interrupt>
      16:	00 00       	nop
      18:	e8 c0       	rjmp	.+464    	; 0x1ea <__bad_interrupt>
      1a:	00 00       	nop
      1c:	e6 c0       	rjmp	.+460    	; 0x1ea <__bad_interrupt>
      1e:	00 00       	nop
      20:	e4 c0       	rjmp	.+456    	; 0x1ea <__bad_interrupt>
      22:	00 00       	nop
      24:	e2 c0       	rjmp	.+452    	; 0x1ea <__bad_interrupt>
      26:	00 00       	nop
      28:	e0 c0       	rjmp	.+448    	; 0x1ea <__bad_interrupt>
      2a:	00 00       	nop
      2c:	0c 94 2a 0c 	jmp	0x1854	; 0x1854 <__vector_11>
      30:	dc c0       	rjmp	.+440    	; 0x1ea <__bad_interrupt>
      32:	00 00       	nop
      34:	da c0       	rjmp	.+436    	; 0x1ea <__bad_interrupt>
      36:	00 00       	nop
      38:	d8 c0       	rjmp	.+432    	; 0x1ea <__bad_interrupt>
      3a:	00 00       	nop
      3c:	d6 c0       	rjmp	.+428    	; 0x1ea <__bad_interrupt>
      3e:	00 00       	nop
      40:	d4 c0       	rjmp	.+424    	; 0x1ea <__bad_interrupt>
      42:	00 00       	nop
      44:	d2 c0       	rjmp	.+420    	; 0x1ea <__bad_interrupt>
      46:	00 00       	nop
      48:	d0 c0       	rjmp	.+416    	; 0x1ea <__bad_interrupt>
      4a:	00 00       	nop
      4c:	ce c0       	rjmp	.+412    	; 0x1ea <__bad_interrupt>
      4e:	00 00       	nop
      50:	cc c0       	rjmp	.+408    	; 0x1ea <__bad_interrupt>
      52:	00 00       	nop
      54:	ca c0       	rjmp	.+404    	; 0x1ea <__bad_interrupt>
      56:	00 00       	nop
      58:	c8 c0       	rjmp	.+400    	; 0x1ea <__bad_interrupt>
      5a:	00 00       	nop
      5c:	ac c1       	rjmp	.+856    	; 0x3b6 <__vector_23>
      5e:	00 00       	nop
      60:	c4 c0       	rjmp	.+392    	; 0x1ea <__bad_interrupt>
      62:	00 00       	nop
      64:	fb c0       	rjmp	.+502    	; 0x25c <__vector_25>
      66:	00 00       	nop
      68:	c0 c0       	rjmp	.+384    	; 0x1ea <__bad_interrupt>
      6a:	00 00       	nop
      6c:	be c0       	rjmp	.+380    	; 0x1ea <__bad_interrupt>
      6e:	00 00       	nop
      70:	bc c0       	rjmp	.+376    	; 0x1ea <__bad_interrupt>
      72:	00 00       	nop

00000074 <BUTTTAG_ProjName>:
      74:	40 28 23 29 4d 79 55 53 42 20 55 53 42 31 30 20     @(#)MyUSB USB10 
      84:	41 70 70 00                                         App.

00000088 <BUTTTAG_BuildTime>:
      88:	40 28 23 29 31 31 3a 33 30 3a 35 32 00              @(#)11:30:52.

00000095 <BUTTTAG_BuildDate>:
      95:	40 28 23 29 44 65 63 20 20 38 20 32 30 30 38 00     @(#)Dec  8 2008.

000000a5 <BUTTTAG_MyUSBVersion>:
      a5:	40 28 23 29 4d 79 55 53 42 20 56 31 2e 35 2e 33     @(#)MyUSB V1.5.3
      b5:	00                                                  .

000000b6 <MYSTRING>:
      b6:	49 27 6d 20 69 6e 20 46 6c 61 73 68 00              I'm in Flash.

000000c3 <__c.2434>:
      c3:	0d 0a 53 4f 43 20 52 6f 62 6f 74 69 63 73 20 48     ..SOC Robotics H
      d3:	65 6c 70 20 47 75 69 64 65 2e 0d 0a 2e 2e 2e 2e     elp Guide.......
      e3:	2e 2e 2e 2e 41 73 6b 20 53 74 65 76 65 3f 00        ....Ask Steve?.

000000f2 <__c.2326>:
      f2:	53 4f 43 20 52 6f 62 6f 74 69 63 73 20 55 53 42     SOC Robotics USB
     102:	31 30 2c 20 28 63 29 20 32 30 30 38 0d 0a 0d 0a     10, (c) 2008....
     112:	00                                                  .

00000113 <DeviceDescriptor>:
     113:	12 01 10 01 02 00 00 08 eb 03 4b 20 00 00 01 02     ..........K ....
     123:	00 01                                               ..

00000125 <ConfigurationDescriptor>:
     125:	09 02 43 00 02 01 00 c0 32 09 04 00 00 01 02 02     ..C.....2.......
     135:	01 00 05 24 00 01 10 05 24 01 03 01 04 24 02 06     ...$....$....$..
     145:	05 24 06 00 01 07 05 82 03 08 00 ff 09 04 01 00     .$..............
     155:	02 0a 00 00 00 07 05 04 02 10 00 00 07 05 83 02     ................
     165:	10 00 00                                            ...

00000168 <LanguageString>:
     168:	04 03 09 04                                         ....

0000016c <ManufacturerString>:
     16c:	18 03 44 00 65 00 61 00 6e 00 20 00 43 00 61 00     ..D.e.a.n. .C.a.
     17c:	6d 00 65 00 72 00 61 00 00 00                       m.e.r.a...

00000186 <ProductString>:
     186:	2a 03 4d 00 79 00 55 00 53 00 42 00 20 00 55 00     *.M.y.U.S.B. .U.
     196:	53 00 42 00 2d 00 52 00 53 00 32 00 33 00 32 00     S.B.-.R.S.2.3.2.
     1a6:	20 00 44 00 65 00 6d 00 6f 00 00 00                  .D.e.m.o...

000001b2 <__ctors_end>:
     1b2:	11 24       	eor	r1, r1
     1b4:	1f be       	out	0x3f, r1	; 63
     1b6:	cf ef       	ldi	r28, 0xFF	; 255
     1b8:	d2 e0       	ldi	r29, 0x02	; 2
     1ba:	de bf       	out	0x3e, r29	; 62
     1bc:	cd bf       	out	0x3d, r28	; 61

000001be <__do_copy_data>:
     1be:	11 e0       	ldi	r17, 0x01	; 1
     1c0:	a0 e0       	ldi	r26, 0x00	; 0
     1c2:	b1 e0       	ldi	r27, 0x01	; 1
     1c4:	e2 e1       	ldi	r30, 0x12	; 18
     1c6:	fa e1       	ldi	r31, 0x1A	; 26
     1c8:	02 c0       	rjmp	.+4      	; 0x1ce <.do_copy_data_start>

000001ca <.do_copy_data_loop>:
     1ca:	05 90       	lpm	r0, Z+
     1cc:	0d 92       	st	X+, r0

000001ce <.do_copy_data_start>:
     1ce:	ae 35       	cpi	r26, 0x5E	; 94
     1d0:	b1 07       	cpc	r27, r17
     1d2:	d9 f7       	brne	.-10     	; 0x1ca <.do_copy_data_loop>

000001d4 <__do_clear_bss>:
     1d4:	12 e0       	ldi	r17, 0x02	; 2
     1d6:	ae e5       	ldi	r26, 0x5E	; 94
     1d8:	b1 e0       	ldi	r27, 0x01	; 1
     1da:	01 c0       	rjmp	.+2      	; 0x1de <.do_clear_bss_start>

000001dc <.do_clear_bss_loop>:
     1dc:	1d 92       	st	X+, r1

000001de <.do_clear_bss_start>:
     1de:	af 39       	cpi	r26, 0x9F	; 159
     1e0:	b1 07       	cpc	r27, r17
     1e2:	e1 f7       	brne	.-8      	; 0x1dc <.do_clear_bss_loop>
     1e4:	f4 d3       	rcall	.+2024   	; 0x9ce <main>
     1e6:	0c 94 07 0d 	jmp	0x1a0e	; 0x1a0e <_exit>

000001ea <__bad_interrupt>:
     1ea:	0a cf       	rjmp	.-492    	; 0x0 <__vectors>

000001ec <ReconfigureUSART>:
		Buffer_StoreElementOnTop(&Tx_Buffer, UDR1);
	}
}

void ReconfigureUSART(void)
{
     1ec:	80 91 49 01 	lds	r24, 0x0149
     1f0:	81 30       	cpi	r24, 0x01	; 1
     1f2:	11 f4       	brne	.+4      	; 0x1f8 <ReconfigureUSART+0xc>
     1f4:	90 e3       	ldi	r25, 0x30	; 48
     1f6:	05 c0       	rjmp	.+10     	; 0x202 <ReconfigureUSART+0x16>
	uint8_t ConfigMask = 0;

	/* Determine parity - non odd/even parity mode defaults to no parity */
	if (LineCoding.ParityType == Parity_Odd)
	  ConfigMask = ((1 << UPM11) | (1 << UPM10));
	else if (LineCoding.ParityType == Parity_Even)
     1f8:	82 30       	cpi	r24, 0x02	; 2
     1fa:	11 f4       	brne	.+4      	; 0x200 <ReconfigureUSART+0x14>
     1fc:	90 e2       	ldi	r25, 0x20	; 32
     1fe:	01 c0       	rjmp	.+2      	; 0x202 <ReconfigureUSART+0x16>
     200:	90 e0       	ldi	r25, 0x00	; 0
	  ConfigMask = (1 << UPM11);

	/* Determine stop bits - 1.5 stop bits is set as 1 stop bit due to hardware limitations */
	if (LineCoding.CharFormat == TwoStopBits)
     202:	80 91 48 01 	lds	r24, 0x0148
     206:	82 30       	cpi	r24, 0x02	; 2
     208:	09 f4       	brne	.+2      	; 0x20c <ReconfigureUSART+0x20>
	  ConfigMask |= (1 << USBS1);
     20a:	98 60       	ori	r25, 0x08	; 8

	/* Determine data size - 5, 6, 7, or 8 bits are supported */
	if (LineCoding.DataBits == 6)
     20c:	80 91 4a 01 	lds	r24, 0x014A
     210:	86 30       	cpi	r24, 0x06	; 6
     212:	11 f4       	brne	.+4      	; 0x218 <ReconfigureUSART+0x2c>
	  ConfigMask |= (1 << UCSZ10);
     214:	92 60       	ori	r25, 0x02	; 2
     216:	07 c0       	rjmp	.+14     	; 0x226 <ReconfigureUSART+0x3a>
	else if (LineCoding.DataBits == 7)
     218:	87 30       	cpi	r24, 0x07	; 7
     21a:	11 f4       	brne	.+4      	; 0x220 <ReconfigureUSART+0x34>
	  ConfigMask |= (1 << UCSZ11);
     21c:	94 60       	ori	r25, 0x04	; 4
     21e:	03 c0       	rjmp	.+6      	; 0x226 <ReconfigureUSART+0x3a>
	else if (LineCoding.DataBits == 8)
     220:	88 30       	cpi	r24, 0x08	; 8
     222:	09 f4       	brne	.+2      	; 0x226 <ReconfigureUSART+0x3a>
	  ConfigMask |= ((1 << UCSZ11) | (1 << UCSZ10));
     224:	96 60       	ori	r25, 0x06	; 6

	/* Enable double speed, gives better error percentages at 8MHz */
	UCSR1A = (1 << U2X1);
     226:	82 e0       	ldi	r24, 0x02	; 2
     228:	80 93 c8 00 	sts	0x00C8, r24

	/* Enable transmit and receive modules and interrupts */
	UCSR1B = ((1 << TXCIE1) | (1 << RXCIE1) | (1 << TXEN1) | (1 << RXEN1));//| (1 << UDRIE1)
     22c:	88 ed       	ldi	r24, 0xD8	; 216
     22e:	80 93 c9 00 	sts	0x00C9, r24

	/* Set the USART mode to the mask generated by the Line Coding options */
	UCSR1C = ConfigMask;
     232:	90 93 ca 00 	sts	0x00CA, r25

	/* Set the USART baud rate register to the desired baud rate value */
	UBRR1  = MY_SERIAL_2X_UBBRVAL((uint16_t)LineCoding.BaudRateBPS);
     236:	20 91 44 01 	lds	r18, 0x0144
     23a:	30 91 45 01 	lds	r19, 0x0145
     23e:	40 e0       	ldi	r20, 0x00	; 0
     240:	50 e0       	ldi	r21, 0x00	; 0
     242:	60 e4       	ldi	r22, 0x40	; 64
     244:	72 e4       	ldi	r23, 0x42	; 66
     246:	8f e0       	ldi	r24, 0x0F	; 15
     248:	90 e0       	ldi	r25, 0x00	; 0
     24a:	0e 94 e5 0c 	call	0x19ca	; 0x19ca <__udivmodsi4>
     24e:	21 50       	subi	r18, 0x01	; 1
     250:	30 40       	sbci	r19, 0x00	; 0
     252:	30 93 cd 00 	sts	0x00CD, r19
     256:	20 93 cc 00 	sts	0x00CC, r18
}
     25a:	08 95       	ret

0000025c <__vector_25>:
		Serial_TxByte(Buffer_GetElementFromBottom(&Rx_Buffer));
	}
}

ISR(USART1_TX_vect)
{
     25c:	1f 92       	push	r1
     25e:	0f 92       	push	r0
     260:	0f b6       	in	r0, 0x3f	; 63
     262:	0f 92       	push	r0
     264:	11 24       	eor	r1, r1
     266:	2f 93       	push	r18
     268:	3f 93       	push	r19
     26a:	4f 93       	push	r20
     26c:	5f 93       	push	r21
     26e:	6f 93       	push	r22
     270:	7f 93       	push	r23
     272:	8f 93       	push	r24
     274:	9f 93       	push	r25
     276:	af 93       	push	r26
     278:	bf 93       	push	r27
     27a:	ef 93       	push	r30
     27c:	ff 93       	push	r31
	/* Send next character if avaliable */
	if (Rx_Buffer.Elements != 0 && mode == SERIAL)
     27e:	80 91 96 02 	lds	r24, 0x0296
     282:	88 23       	and	r24, r24
     284:	51 f0       	breq	.+20     	; 0x29a <__vector_25+0x3e>
     286:	80 91 64 01 	lds	r24, 0x0164
     28a:	81 30       	cpi	r24, 0x01	; 1
     28c:	31 f4       	brne	.+12     	; 0x29a <__vector_25+0x3e>
	{
		UDR1 = Buffer_GetElementFromBottom(&Rx_Buffer);
     28e:	82 e1       	ldi	r24, 0x12	; 18
     290:	92 e0       	ldi	r25, 0x02	; 2
     292:	88 d4       	rcall	.+2320   	; 0xba4 <Buffer_GetElementFromBottom>
     294:	80 93 ce 00 	sts	0x00CE, r24
     298:	02 c0       	rjmp	.+4      	; 0x29e <__vector_25+0x42>
	}
	else
	{
		Transmitting = false;
     29a:	10 92 5e 01 	sts	0x015E, r1
	}
	  
}
     29e:	ff 91       	pop	r31
     2a0:	ef 91       	pop	r30
     2a2:	bf 91       	pop	r27
     2a4:	af 91       	pop	r26
     2a6:	9f 91       	pop	r25
     2a8:	8f 91       	pop	r24
     2aa:	7f 91       	pop	r23
     2ac:	6f 91       	pop	r22
     2ae:	5f 91       	pop	r21
     2b0:	4f 91       	pop	r20
     2b2:	3f 91       	pop	r19
     2b4:	2f 91       	pop	r18
     2b6:	0f 90       	pop	r0
     2b8:	0f be       	out	0x3f, r0	; 63
     2ba:	0f 90       	pop	r0
     2bc:	1f 90       	pop	r1
     2be:	18 95       	reti

000002c0 <RemoveWhiteSpace>:
	return number;

}

void RemoveWhiteSpace(void)
{
     2c0:	82 e1       	ldi	r24, 0x12	; 18
     2c2:	92 e0       	ldi	r25, 0x02	; 2
     2c4:	6f d4       	rcall	.+2270   	; 0xba4 <Buffer_GetElementFromBottom>
     2c6:	68 2f       	mov	r22, r24
	uint8_t temp;

	temp = Buffer_GetElementFromBottom(&Rx_Buffer);
	//remove white space
	while(temp == ' ' || temp == '\t' || temp == ',')
     2c8:	80 32       	cpi	r24, 0x20	; 32
     2ca:	d1 f3       	breq	.-12     	; 0x2c0 <RemoveWhiteSpace>
     2cc:	89 30       	cpi	r24, 0x09	; 9
     2ce:	c1 f3       	breq	.-16     	; 0x2c0 <RemoveWhiteSpace>
     2d0:	8c 32       	cpi	r24, 0x2C	; 44
     2d2:	b1 f3       	breq	.-20     	; 0x2c0 <RemoveWhiteSpace>
	{
		temp = Buffer_GetElementFromBottom(&Rx_Buffer);
	}
	Buffer_StoreElementOnBottom(&Rx_Buffer, temp);
     2d4:	82 e1       	ldi	r24, 0x12	; 18
     2d6:	92 e0       	ldi	r25, 0x02	; 2
}
     2d8:	95 c4       	rjmp	.+2346   	; 0xc04 <Buffer_StoreElementOnBottom>

000002da <GetHexNumber>:
	UBRR1  = MY_SERIAL_2X_UBBRVAL((uint16_t)LineCoding.BaudRateBPS);
}


uint8_t GetHexNumber(void)
{
     2da:	1f 93       	push	r17
	uint8_t temp, number;

	temp = Buffer_GetElementFromBottom(&Rx_Buffer);
     2dc:	82 e1       	ldi	r24, 0x12	; 18
     2de:	92 e0       	ldi	r25, 0x02	; 2
     2e0:	61 d4       	rcall	.+2242   	; 0xba4 <Buffer_GetElementFromBottom>
     2e2:	68 2f       	mov	r22, r24

	if(temp >= 'a' && temp <= 'f')
     2e4:	81 56       	subi	r24, 0x61	; 97
     2e6:	86 30       	cpi	r24, 0x06	; 6
     2e8:	18 f4       	brcc	.+6      	; 0x2f0 <GetHexNumber+0x16>
	{
		number = temp -'a' + 0xA;
     2ea:	16 2f       	mov	r17, r22
     2ec:	17 55       	subi	r17, 0x57	; 87
     2ee:	10 c0       	rjmp	.+32     	; 0x310 <__stack+0x11>
	}
	else if(temp >= 'A' && temp <= 'F')
     2f0:	86 2f       	mov	r24, r22
     2f2:	81 54       	subi	r24, 0x41	; 65
     2f4:	86 30       	cpi	r24, 0x06	; 6
     2f6:	18 f4       	brcc	.+6      	; 0x2fe <GetHexNumber+0x24>
	{
		number = temp -'A' + 0xA;
     2f8:	16 2f       	mov	r17, r22
     2fa:	17 53       	subi	r17, 0x37	; 55
     2fc:	09 c0       	rjmp	.+18     	; 0x310 <__stack+0x11>
	}
	else if(temp >= '0' && temp <= '9')
     2fe:	16 2f       	mov	r17, r22
     300:	10 53       	subi	r17, 0x30	; 48
     302:	1a 30       	cpi	r17, 0x0A	; 10
     304:	28 f0       	brcs	.+10     	; 0x310 <__stack+0x11>
	{
		number = temp -'0';
	}
	else
	{
		Buffer_StoreElementOnBottom(&Rx_Buffer, temp);//if not a valid character return it to the buffer
     306:	82 e1       	ldi	r24, 0x12	; 18
     308:	92 e0       	ldi	r25, 0x02	; 2
     30a:	7c d4       	rcall	.+2296   	; 0xc04 <Buffer_StoreElementOnBottom>
     30c:	10 e0       	ldi	r17, 0x00	; 0
     30e:	1b c0       	rjmp	.+54     	; 0x346 <__stack+0x47>
		return 0;
	}

	temp = Buffer_GetElementFromBottom(&Rx_Buffer);
     310:	82 e1       	ldi	r24, 0x12	; 18
     312:	92 e0       	ldi	r25, 0x02	; 2
     314:	47 d4       	rcall	.+2190   	; 0xba4 <Buffer_GetElementFromBottom>
     316:	68 2f       	mov	r22, r24


	number <<=4;//scale the number up 4 bits
     318:	12 95       	swap	r17
     31a:	10 7f       	andi	r17, 0xF0	; 240

	if(temp >= 'a' && temp <= 'f')
     31c:	81 56       	subi	r24, 0x61	; 97
     31e:	86 30       	cpi	r24, 0x06	; 6
     320:	10 f4       	brcc	.+4      	; 0x326 <__stack+0x27>
	{
		number += temp -'a' + 0xA;
     322:	67 55       	subi	r22, 0x57	; 87
     324:	05 c0       	rjmp	.+10     	; 0x330 <__stack+0x31>
	}
	else if(temp >= 'A' && temp <= 'F')
     326:	86 2f       	mov	r24, r22
     328:	81 54       	subi	r24, 0x41	; 65
     32a:	86 30       	cpi	r24, 0x06	; 6
     32c:	18 f4       	brcc	.+6      	; 0x334 <__stack+0x35>
	{
		number += temp -'A' + 0xA;
     32e:	67 53       	subi	r22, 0x37	; 55
     330:	16 0f       	add	r17, r22
     332:	09 c0       	rjmp	.+18     	; 0x346 <__stack+0x47>
	}
	else if(temp >= '0' && temp <= '9')
     334:	86 2f       	mov	r24, r22
     336:	80 53       	subi	r24, 0x30	; 48
     338:	8a 30       	cpi	r24, 0x0A	; 10
     33a:	10 f4       	brcc	.+4      	; 0x340 <__stack+0x41>
	{
		number += temp -'0';
     33c:	18 0f       	add	r17, r24
     33e:	03 c0       	rjmp	.+6      	; 0x346 <__stack+0x47>
	}
	else
	{
		Buffer_StoreElementOnBottom(&Rx_Buffer, temp);//if the character is no good to us, return it back to the buffer
     340:	82 e1       	ldi	r24, 0x12	; 18
     342:	92 e0       	ldi	r25, 0x02	; 2
     344:	5f d4       	rcall	.+2238   	; 0xc04 <Buffer_StoreElementOnBottom>
	}


	return number;

}
     346:	81 2f       	mov	r24, r17
     348:	1f 91       	pop	r17
     34a:	08 95       	ret

0000034c <ParseNumber>:


uint8_t ParseNumber(void)
{
     34c:	1f 93       	push	r17
	uint8_t temp, number = 0;

	
	RemoveWhiteSpace();
     34e:	b8 df       	rcall	.-144    	; 0x2c0 <RemoveWhiteSpace>

	temp = Buffer_GetElementFromBottom(&Rx_Buffer);
     350:	82 e1       	ldi	r24, 0x12	; 18
     352:	92 e0       	ldi	r25, 0x02	; 2
     354:	27 d4       	rcall	.+2126   	; 0xba4 <Buffer_GetElementFromBottom>
     356:	28 2f       	mov	r18, r24

	if(temp == '\\')
     358:	8c 35       	cpi	r24, 0x5C	; 92
     35a:	81 f4       	brne	.+32     	; 0x37c <ParseNumber+0x30>
	{
		temp = Buffer_GetElementFromBottom(&Rx_Buffer);
     35c:	82 e1       	ldi	r24, 0x12	; 18
     35e:	92 e0       	ldi	r25, 0x02	; 2
     360:	21 d4       	rcall	.+2114   	; 0xba4 <Buffer_GetElementFromBottom>
     362:	68 2f       	mov	r22, r24
		if(temp == 'x' || temp == 'X')
     364:	88 37       	cpi	r24, 0x78	; 120
     366:	11 f0       	breq	.+4      	; 0x36c <ParseNumber+0x20>
     368:	88 35       	cpi	r24, 0x58	; 88
     36a:	19 f4       	brne	.+6      	; 0x372 <ParseNumber+0x26>
		{
			number = GetHexNumber();
     36c:	b6 df       	rcall	.-148    	; 0x2da <GetHexNumber>
     36e:	18 2f       	mov	r17, r24
     370:	1f c0       	rjmp	.+62     	; 0x3b0 <ParseNumber+0x64>
		}
		else
		{
			Buffer_StoreElementOnBottom(&Rx_Buffer, temp);//if not a valid character return it to the buffer
     372:	82 e1       	ldi	r24, 0x12	; 18
     374:	92 e0       	ldi	r25, 0x02	; 2
     376:	46 d4       	rcall	.+2188   	; 0xc04 <Buffer_StoreElementOnBottom>
     378:	10 e0       	ldi	r17, 0x00	; 0
     37a:	1a c0       	rjmp	.+52     	; 0x3b0 <ParseNumber+0x64>
			return 0;
		}	
	}
	else if(temp >= '0' && temp <= '9' )
     37c:	80 53       	subi	r24, 0x30	; 48
     37e:	8a 30       	cpi	r24, 0x0A	; 10
     380:	10 f0       	brcs	.+4      	; 0x386 <ParseNumber+0x3a>
     382:	12 2f       	mov	r17, r18
     384:	15 c0       	rjmp	.+42     	; 0x3b0 <ParseNumber+0x64>
     386:	10 e0       	ldi	r17, 0x00	; 0
	{
		do
		{
			number *= 10;
     388:	81 2f       	mov	r24, r17
     38a:	90 e0       	ldi	r25, 0x00	; 0
     38c:	6a e0       	ldi	r22, 0x0A	; 10
     38e:	70 e0       	ldi	r23, 0x00	; 0
     390:	0e 94 bf 0c 	call	0x197e	; 0x197e <__mulhi3>
			number += temp - '0';
     394:	12 2f       	mov	r17, r18
     396:	10 53       	subi	r17, 0x30	; 48
     398:	18 0f       	add	r17, r24
			temp = Buffer_GetElementFromBottom(&Rx_Buffer);
     39a:	82 e1       	ldi	r24, 0x12	; 18
     39c:	92 e0       	ldi	r25, 0x02	; 2
     39e:	02 d4       	rcall	.+2052   	; 0xba4 <Buffer_GetElementFromBottom>
     3a0:	28 2f       	mov	r18, r24
		} while (temp >= '0' && temp <= '9' );
     3a2:	80 53       	subi	r24, 0x30	; 48
     3a4:	8a 30       	cpi	r24, 0x0A	; 10
     3a6:	80 f3       	brcs	.-32     	; 0x388 <ParseNumber+0x3c>

		Buffer_StoreElementOnBottom(&Rx_Buffer, temp);//if not a valid character return it to the buffer
     3a8:	62 2f       	mov	r22, r18
     3aa:	82 e1       	ldi	r24, 0x12	; 18
     3ac:	92 e0       	ldi	r25, 0x02	; 2
     3ae:	2a d4       	rcall	.+2132   	; 0xc04 <Buffer_StoreElementOnBottom>
	}
	

	return number;

}
     3b0:	81 2f       	mov	r24, r17
     3b2:	1f 91       	pop	r17
     3b4:	08 95       	ret

000003b6 <__vector_23>:

//	  UCSR1A = (1<<UDRE1);
//}

ISR(USART1_RX_vect)
{
     3b6:	1f 92       	push	r1
     3b8:	0f 92       	push	r0
     3ba:	0f b6       	in	r0, 0x3f	; 63
     3bc:	0f 92       	push	r0
     3be:	11 24       	eor	r1, r1
     3c0:	2f 93       	push	r18
     3c2:	3f 93       	push	r19
     3c4:	4f 93       	push	r20
     3c6:	5f 93       	push	r21
     3c8:	6f 93       	push	r22
     3ca:	7f 93       	push	r23
     3cc:	8f 93       	push	r24
     3ce:	9f 93       	push	r25
     3d0:	af 93       	push	r26
     3d2:	bf 93       	push	r27
     3d4:	ef 93       	push	r30
     3d6:	ff 93       	push	r31
	if(mode == SERIAL)
     3d8:	80 91 64 01 	lds	r24, 0x0164
     3dc:	81 30       	cpi	r24, 0x01	; 1
     3de:	29 f4       	brne	.+10     	; 0x3ea <__vector_23+0x34>
	{
		/* Character recieved, store it into the buffer */
		Buffer_StoreElementOnTop(&Tx_Buffer, UDR1);
     3e0:	60 91 ce 00 	lds	r22, 0x00CE
     3e4:	8d e8       	ldi	r24, 0x8D	; 141
     3e6:	91 e0       	ldi	r25, 0x01	; 1
     3e8:	79 d3       	rcall	.+1778   	; 0xadc <Buffer_StoreElementOnTop>
	}
}
     3ea:	ff 91       	pop	r31
     3ec:	ef 91       	pop	r30
     3ee:	bf 91       	pop	r27
     3f0:	af 91       	pop	r26
     3f2:	9f 91       	pop	r25
     3f4:	8f 91       	pop	r24
     3f6:	7f 91       	pop	r23
     3f8:	6f 91       	pop	r22
     3fa:	5f 91       	pop	r21
     3fc:	4f 91       	pop	r20
     3fe:	3f 91       	pop	r19
     400:	2f 91       	pop	r18
     402:	0f 90       	pop	r0
     404:	0f be       	out	0x3f, r0	; 63
     406:	0f 90       	pop	r0
     408:	1f 90       	pop	r1
     40a:	18 95       	reti

0000040c <StringToBuffer_P>:
			break;
	}
}

void StringToBuffer_P(const char *data)
{
     40c:	cf 93       	push	r28
     40e:	df 93       	push	r29
     410:	ec 01       	movw	r28, r24
     412:	06 c0       	rjmp	.+12     	; 0x420 <StringToBuffer_P+0x14>
	while (pgm_read_byte(data) != 0x00)
	{
		Buffer_StoreElementOnTop(&Tx_Buffer, pgm_read_byte(data++));
     414:	21 96       	adiw	r28, 0x01	; 1
     416:	f9 01       	movw	r30, r18
     418:	64 91       	lpm	r22, Z+
     41a:	8d e8       	ldi	r24, 0x8D	; 141
     41c:	91 e0       	ldi	r25, 0x01	; 1
     41e:	5e d3       	rcall	.+1724   	; 0xadc <Buffer_StoreElementOnTop>
     420:	9e 01       	movw	r18, r28
	}
}

void StringToBuffer_P(const char *data)
{
	while (pgm_read_byte(data) != 0x00)
     422:	fe 01       	movw	r30, r28
     424:	84 91       	lpm	r24, Z+
     426:	88 23       	and	r24, r24
     428:	a9 f7       	brne	.-22     	; 0x414 <StringToBuffer_P+0x8>
	{
		Buffer_StoreElementOnTop(&Tx_Buffer, pgm_read_byte(data++));
	}

}
     42a:	df 91       	pop	r29
     42c:	cf 91       	pop	r28
     42e:	08 95       	ret

00000430 <Command_Task>:
}



TASK(Command_Task)
{
     430:	9f 92       	push	r9
     432:	af 92       	push	r10
     434:	bf 92       	push	r11
     436:	cf 92       	push	r12
     438:	df 92       	push	r13
     43a:	ef 92       	push	r14
     43c:	ff 92       	push	r15
     43e:	0f 93       	push	r16
     440:	1f 93       	push	r17
     442:	df 93       	push	r29
     444:	cf 93       	push	r28
     446:	cd b7       	in	r28, 0x3d	; 61
     448:	de b7       	in	r29, 0x3e	; 62
     44a:	64 97       	sbiw	r28, 0x14	; 20
     44c:	0f b6       	in	r0, 0x3f	; 63
     44e:	f8 94       	cli
     450:	de bf       	out	0x3e, r29	; 62
     452:	0f be       	out	0x3f, r0	; 63
     454:	cd bf       	out	0x3d, r28	; 61
	uint8_t i, address = 0, lenght = 0, axis, oldValue;
	uint8_t temp[20];


			
	inputBufferTail = 0;
     456:	10 92 61 01 	sts	0x0161, r1
	RemoveWhiteSpace();
     45a:	32 df       	rcall	.-412    	; 0x2c0 <RemoveWhiteSpace>


	switch (Buffer_GetElementFromBottom(&Rx_Buffer))
     45c:	82 e1       	ldi	r24, 0x12	; 18
     45e:	92 e0       	ldi	r25, 0x02	; 2
     460:	a1 d3       	rcall	.+1858   	; 0xba4 <Buffer_GetElementFromBottom>
     462:	83 35       	cpi	r24, 0x53	; 83
     464:	09 f4       	brne	.+2      	; 0x468 <Command_Task+0x38>
     466:	e5 c0       	rjmp	.+458    	; 0x632 <Command_Task+0x202>
     468:	84 35       	cpi	r24, 0x54	; 84
     46a:	a8 f4       	brcc	.+42     	; 0x496 <Command_Task+0x66>
     46c:	83 34       	cpi	r24, 0x43	; 67
     46e:	31 f1       	breq	.+76     	; 0x4bc <Command_Task+0x8c>
     470:	84 34       	cpi	r24, 0x44	; 68
     472:	50 f4       	brcc	.+20     	; 0x488 <Command_Task+0x58>
     474:	82 34       	cpi	r24, 0x42	; 66
     476:	09 f4       	brne	.+2      	; 0x47a <Command_Task+0x4a>
     478:	e6 c0       	rjmp	.+460    	; 0x646 <Command_Task+0x216>
     47a:	88 23       	and	r24, r24
     47c:	09 f4       	brne	.+2      	; 0x480 <Command_Task+0x50>
     47e:	2c c1       	rjmp	.+600    	; 0x6d8 <Command_Task+0x2a8>
     480:	8f 33       	cpi	r24, 0x3F	; 63
     482:	09 f0       	breq	.+2      	; 0x486 <Command_Task+0x56>
     484:	1d c1       	rjmp	.+570    	; 0x6c0 <Command_Task+0x290>
     486:	9f c0       	rjmp	.+318    	; 0x5c6 <Command_Task+0x196>
     488:	8c 34       	cpi	r24, 0x4C	; 76
     48a:	09 f4       	brne	.+2      	; 0x48e <Command_Task+0x5e>
     48c:	e2 c0       	rjmp	.+452    	; 0x652 <Command_Task+0x222>
     48e:	8d 34       	cpi	r24, 0x4D	; 77
     490:	09 f0       	breq	.+2      	; 0x494 <Command_Task+0x64>
     492:	16 c1       	rjmp	.+556    	; 0x6c0 <Command_Task+0x290>
     494:	9c c0       	rjmp	.+312    	; 0x5ce <Command_Task+0x19e>
     496:	8c 36       	cpi	r24, 0x6C	; 108
     498:	09 f4       	brne	.+2      	; 0x49c <Command_Task+0x6c>
     49a:	db c0       	rjmp	.+438    	; 0x652 <Command_Task+0x222>
     49c:	8d 36       	cpi	r24, 0x6D	; 109
     49e:	38 f4       	brcc	.+14     	; 0x4ae <Command_Task+0x7e>
     4a0:	82 36       	cpi	r24, 0x62	; 98
     4a2:	09 f4       	brne	.+2      	; 0x4a6 <Command_Task+0x76>
     4a4:	d0 c0       	rjmp	.+416    	; 0x646 <Command_Task+0x216>
     4a6:	83 36       	cpi	r24, 0x63	; 99
     4a8:	09 f0       	breq	.+2      	; 0x4ac <Command_Task+0x7c>
     4aa:	0a c1       	rjmp	.+532    	; 0x6c0 <Command_Task+0x290>
     4ac:	07 c0       	rjmp	.+14     	; 0x4bc <Command_Task+0x8c>
     4ae:	8d 36       	cpi	r24, 0x6D	; 109
     4b0:	09 f4       	brne	.+2      	; 0x4b4 <Command_Task+0x84>
     4b2:	8d c0       	rjmp	.+282    	; 0x5ce <Command_Task+0x19e>
     4b4:	83 37       	cpi	r24, 0x73	; 115
     4b6:	09 f0       	breq	.+2      	; 0x4ba <Command_Task+0x8a>
     4b8:	03 c1       	rjmp	.+518    	; 0x6c0 <Command_Task+0x290>
     4ba:	bb c0       	rjmp	.+374    	; 0x632 <Command_Task+0x202>
	{
		case 'c':
		case 'C':
			
			I2C_Port = Buffer_GetElementFromBottom(&Rx_Buffer);
     4bc:	82 e1       	ldi	r24, 0x12	; 18
     4be:	92 e0       	ldi	r25, 0x02	; 2
     4c0:	71 d3       	rcall	.+1762   	; 0xba4 <Buffer_GetElementFromBottom>
     4c2:	80 93 5b 01 	sts	0x015B, r24
			//should check to ensure val ok!
			
			I2C_Init();
     4c6:	df d3       	rcall	.+1982   	; 0xc86 <I2C_Init>
						
			RemoveWhiteSpace();
     4c8:	fb de       	rcall	.-522    	; 0x2c0 <RemoveWhiteSpace>

			address = ParseNumber();
     4ca:	40 df       	rcall	.-384    	; 0x34c <ParseNumber>
     4cc:	98 2e       	mov	r9, r24
			RemoveWhiteSpace();
     4ce:	f8 de       	rcall	.-528    	; 0x2c0 <RemoveWhiteSpace>

			oldValue = Buffer_GetElementFromBottom(&Rx_Buffer);
     4d0:	82 e1       	ldi	r24, 0x12	; 18
     4d2:	92 e0       	ldi	r25, 0x02	; 2
     4d4:	67 d3       	rcall	.+1742   	; 0xba4 <Buffer_GetElementFromBottom>

			if(oldValue == 'w' || oldValue == 'W')
     4d6:	87 37       	cpi	r24, 0x77	; 119
     4d8:	19 f0       	breq	.+6      	; 0x4e0 <Command_Task+0xb0>
     4da:	87 35       	cpi	r24, 0x57	; 87
     4dc:	09 f0       	breq	.+2      	; 0x4e0 <Command_Task+0xb0>
     4de:	49 c0       	rjmp	.+146    	; 0x572 <Command_Task+0x142>
			{
						
				lenght = ParseNumber();
     4e0:	35 df       	rcall	.-406    	; 0x34c <ParseNumber>
     4e2:	e8 2e       	mov	r14, r24

				oldValue = Buffer_GetElementFromBottom(&Rx_Buffer);
     4e4:	82 e1       	ldi	r24, 0x12	; 18
     4e6:	92 e0       	ldi	r25, 0x02	; 2
     4e8:	5d d3       	rcall	.+1722   	; 0xba4 <Buffer_GetElementFromBottom>
     4ea:	68 2f       	mov	r22, r24
				if(oldValue != ' ' && oldValue != ',')
     4ec:	80 32       	cpi	r24, 0x20	; 32
     4ee:	29 f0       	breq	.+10     	; 0x4fa <Command_Task+0xca>
     4f0:	8c 32       	cpi	r24, 0x2C	; 44
     4f2:	19 f0       	breq	.+6      	; 0x4fa <Command_Task+0xca>
				{
					Buffer_StoreElementOnBottom(&Rx_Buffer, oldValue);
     4f4:	82 e1       	ldi	r24, 0x12	; 18
     4f6:	92 e0       	ldi	r25, 0x02	; 2
     4f8:	85 d3       	rcall	.+1802   	; 0xc04 <Buffer_StoreElementOnBottom>
     4fa:	ff 24       	eor	r15, r15
     4fc:	5e 01       	movw	r10, r28
     4fe:	08 94       	sec
     500:	a1 1c       	adc	r10, r1
     502:	b1 1c       	adc	r11, r1
						{
							temp[i] = GetHexNumber();
						}
						else
						{
							if(i < lenght-1)//will we even get a chance to send it.  If so write it
     504:	ce 2c       	mov	r12, r14
     506:	dd 24       	eor	r13, r13
     508:	08 94       	sec
     50a:	c1 08       	sbc	r12, r1
     50c:	d1 08       	sbc	r13, r1
     50e:	26 c0       	rjmp	.+76     	; 0x55c <Command_Task+0x12c>
					Buffer_StoreElementOnBottom(&Rx_Buffer, oldValue);
				}
						
				for (i = 0; i < lenght; i++)
				{
					temp[i] = Buffer_GetElementFromBottom(&Rx_Buffer);
     510:	0f 2d       	mov	r16, r15
     512:	10 e0       	ldi	r17, 0x00	; 0
     514:	82 e1       	ldi	r24, 0x12	; 18
     516:	92 e0       	ldi	r25, 0x02	; 2
     518:	45 d3       	rcall	.+1674   	; 0xba4 <Buffer_GetElementFromBottom>
     51a:	f5 01       	movw	r30, r10
     51c:	e0 0f       	add	r30, r16
     51e:	f1 1f       	adc	r31, r17
     520:	80 83       	st	Z, r24
					if(temp[i] == '\\')
     522:	8c 35       	cpi	r24, 0x5C	; 92
     524:	d1 f4       	brne	.+52     	; 0x55a <Command_Task+0x12a>
					{	
						oldValue = Buffer_GetElementFromBottom(&Rx_Buffer);
     526:	82 e1       	ldi	r24, 0x12	; 18
     528:	92 e0       	ldi	r25, 0x02	; 2
     52a:	3c d3       	rcall	.+1656   	; 0xba4 <Buffer_GetElementFromBottom>
     52c:	68 2f       	mov	r22, r24

						if(oldValue == 'x' || oldValue == 'X')
     52e:	88 37       	cpi	r24, 0x78	; 120
     530:	11 f0       	breq	.+4      	; 0x536 <Command_Task+0x106>
     532:	88 35       	cpi	r24, 0x58	; 88
     534:	31 f4       	brne	.+12     	; 0x542 <Command_Task+0x112>
						{
							temp[i] = GetHexNumber();
     536:	d1 de       	rcall	.-606    	; 0x2da <GetHexNumber>
     538:	0a 0d       	add	r16, r10
     53a:	1b 1d       	adc	r17, r11
     53c:	f8 01       	movw	r30, r16
     53e:	80 83       	st	Z, r24
     540:	0c c0       	rjmp	.+24     	; 0x55a <Command_Task+0x12a>
						}
						else
						{
							if(i < lenght-1)//will we even get a chance to send it.  If so write it
     542:	0c 15       	cp	r16, r12
     544:	1d 05       	cpc	r17, r13
     546:	34 f4       	brge	.+12     	; 0x554 <Command_Task+0x124>
							{
								temp[++i] = oldValue;
     548:	f3 94       	inc	r15
     54a:	f5 01       	movw	r30, r10
     54c:	ef 0d       	add	r30, r15
     54e:	f1 1d       	adc	r31, r1
     550:	80 83       	st	Z, r24
     552:	03 c0       	rjmp	.+6      	; 0x55a <Command_Task+0x12a>
							}
							else//put the data back.  This is not needed though as we will dump the data latter
							{
								Buffer_StoreElementOnBottom(&Rx_Buffer, oldValue);
     554:	82 e1       	ldi	r24, 0x12	; 18
     556:	92 e0       	ldi	r25, 0x02	; 2
     558:	55 d3       	rcall	.+1706   	; 0xc04 <Buffer_StoreElementOnBottom>
				if(oldValue != ' ' && oldValue != ',')
				{
					Buffer_StoreElementOnBottom(&Rx_Buffer, oldValue);
				}
						
				for (i = 0; i < lenght; i++)
     55a:	f3 94       	inc	r15
     55c:	fe 14       	cp	r15, r14
     55e:	c0 f2       	brcs	.-80     	; 0x510 <Command_Task+0xe0>
							} 
						}	
					}
				}

				if(I2C_Write(address, temp, lenght) != lenght)
     560:	4e 2d       	mov	r20, r14
     562:	50 e0       	ldi	r21, 0x00	; 0
     564:	b5 01       	movw	r22, r10
     566:	89 2d       	mov	r24, r9
     568:	5f d5       	rcall	.+2750   	; 0x1028 <I2C_Write>
     56a:	8e 15       	cp	r24, r14
     56c:	09 f4       	brne	.+2      	; 0x570 <Command_Task+0x140>
     56e:	b4 c0       	rjmp	.+360    	; 0x6d8 <Command_Task+0x2a8>
     570:	20 c0       	rjmp	.+64     	; 0x5b2 <Command_Task+0x182>
					Buffer_StoreElementOnTop(&Tx_Buffer, '\n');
					Buffer_StoreElementOnTop(&Tx_Buffer, '-');
				}					
						 
			}
			else if(oldValue == 'r' || oldValue == 'R')
     572:	82 37       	cpi	r24, 0x72	; 114
     574:	19 f0       	breq	.+6      	; 0x57c <Command_Task+0x14c>
     576:	82 35       	cpi	r24, 0x52	; 82
     578:	09 f0       	breq	.+2      	; 0x57c <Command_Task+0x14c>
     57a:	ae c0       	rjmp	.+348    	; 0x6d8 <Command_Task+0x2a8>
			{
				lenght = ParseNumber();
     57c:	e7 de       	rcall	.-562    	; 0x34c <ParseNumber>
     57e:	18 2f       	mov	r17, r24

				if(I2C_Read(address, temp, lenght) == lenght)
     580:	48 2f       	mov	r20, r24
     582:	50 e0       	ldi	r21, 0x00	; 0
     584:	7e 01       	movw	r14, r28
     586:	08 94       	sec
     588:	e1 1c       	adc	r14, r1
     58a:	f1 1c       	adc	r15, r1
     58c:	b7 01       	movw	r22, r14
     58e:	89 2d       	mov	r24, r9
     590:	13 d5       	rcall	.+2598   	; 0xfb8 <I2C_Read>
     592:	d8 2e       	mov	r13, r24
     594:	81 17       	cp	r24, r17
     596:	69 f4       	brne	.+26     	; 0x5b2 <Command_Task+0x182>
     598:	87 01       	movw	r16, r14
     59a:	06 c0       	rjmp	.+12     	; 0x5a8 <Command_Task+0x178>
				{
					for (i = 0; i < lenght; i++)
					{
						Buffer_StoreElementOnTop(&Tx_Buffer, temp[i]);
     59c:	f8 01       	movw	r30, r16
     59e:	61 91       	ld	r22, Z+
     5a0:	8f 01       	movw	r16, r30
     5a2:	8d e8       	ldi	r24, 0x8D	; 141
     5a4:	91 e0       	ldi	r25, 0x01	; 1
     5a6:	9a d2       	rcall	.+1332   	; 0xadc <Buffer_StoreElementOnTop>
			{
				lenght = ParseNumber();

				if(I2C_Read(address, temp, lenght) == lenght)
				{
					for (i = 0; i < lenght; i++)
     5a8:	80 2f       	mov	r24, r16
     5aa:	8e 19       	sub	r24, r14
     5ac:	8d 15       	cp	r24, r13
     5ae:	b0 f3       	brcs	.-20     	; 0x59c <Command_Task+0x16c>
     5b0:	93 c0       	rjmp	.+294    	; 0x6d8 <Command_Task+0x2a8>
						Buffer_StoreElementOnTop(&Tx_Buffer, temp[i]);
					}
				}
				else
				{
					Buffer_StoreElementOnTop(&Tx_Buffer, '\r');
     5b2:	6d e0       	ldi	r22, 0x0D	; 13
     5b4:	8d e8       	ldi	r24, 0x8D	; 141
     5b6:	91 e0       	ldi	r25, 0x01	; 1
     5b8:	91 d2       	rcall	.+1314   	; 0xadc <Buffer_StoreElementOnTop>
					Buffer_StoreElementOnTop(&Tx_Buffer, '\n');
     5ba:	6a e0       	ldi	r22, 0x0A	; 10
     5bc:	8d e8       	ldi	r24, 0x8D	; 141
     5be:	91 e0       	ldi	r25, 0x01	; 1
     5c0:	8d d2       	rcall	.+1306   	; 0xadc <Buffer_StoreElementOnTop>
					Buffer_StoreElementOnTop(&Tx_Buffer, '-');
     5c2:	6d e2       	ldi	r22, 0x2D	; 45
     5c4:	86 c0       	rjmp	.+268    	; 0x6d2 <Command_Task+0x2a2>
				}			
			}
			
			break;
		case '?':
			StringToBuffer_P(PSTR("\r\nSOC Robotics Help Guide.\r\n........Ask Steve?"));
     5c6:	83 ec       	ldi	r24, 0xC3	; 195
     5c8:	90 e0       	ldi	r25, 0x00	; 0
     5ca:	20 df       	rcall	.-448    	; 0x40c <StringToBuffer_P>
     5cc:	85 c0       	rjmp	.+266    	; 0x6d8 <Command_Task+0x2a8>
			break;
		case 'm':
		case 'M':
					
			RemoveWhiteSpace();
     5ce:	78 de       	rcall	.-784    	; 0x2c0 <RemoveWhiteSpace>

			switch(Buffer_GetElementFromBottom(&Rx_Buffer))
     5d0:	82 e1       	ldi	r24, 0x12	; 18
     5d2:	92 e0       	ldi	r25, 0x02	; 2
     5d4:	e7 d2       	rcall	.+1486   	; 0xba4 <Buffer_GetElementFromBottom>
     5d6:	8a 35       	cpi	r24, 0x5A	; 90
     5d8:	49 f0       	breq	.+18     	; 0x5ec <Command_Task+0x1bc>
     5da:	8b 35       	cpi	r24, 0x5B	; 91
     5dc:	18 f4       	brcc	.+6      	; 0x5e4 <Command_Task+0x1b4>
     5de:	89 35       	cpi	r24, 0x59	; 89
     5e0:	49 f4       	brne	.+18     	; 0x5f4 <Command_Task+0x1c4>
     5e2:	06 c0       	rjmp	.+12     	; 0x5f0 <Command_Task+0x1c0>
     5e4:	89 37       	cpi	r24, 0x79	; 121
     5e6:	21 f0       	breq	.+8      	; 0x5f0 <Command_Task+0x1c0>
     5e8:	8a 37       	cpi	r24, 0x7A	; 122
     5ea:	21 f4       	brne	.+8      	; 0x5f4 <Command_Task+0x1c4>
     5ec:	02 e0       	ldi	r16, 0x02	; 2
     5ee:	03 c0       	rjmp	.+6      	; 0x5f6 <Command_Task+0x1c6>
     5f0:	01 e0       	ldi	r16, 0x01	; 1
     5f2:	01 c0       	rjmp	.+2      	; 0x5f6 <Command_Task+0x1c6>
     5f4:	00 e0       	ldi	r16, 0x00	; 0
					axis = X_AXIS;
					break;
				
			}

			RemoveWhiteSpace();
     5f6:	64 de       	rcall	.-824    	; 0x2c0 <RemoveWhiteSpace>

			lenght = ParseNumber();
     5f8:	a9 de       	rcall	.-686    	; 0x34c <ParseNumber>
     5fa:	f8 2e       	mov	r15, r24

			oldValue = Buffer_GetElementFromBottom(&Rx_Buffer);
     5fc:	82 e1       	ldi	r24, 0x12	; 18
     5fe:	92 e0       	ldi	r25, 0x02	; 2
     600:	d1 d2       	rcall	.+1442   	; 0xba4 <Buffer_GetElementFromBottom>
     602:	68 2f       	mov	r22, r24

			if(oldValue != ' ' && oldValue != ',')//allow for 1 peice of white space
     604:	80 32       	cpi	r24, 0x20	; 32
     606:	29 f0       	breq	.+10     	; 0x612 <Command_Task+0x1e2>
     608:	8c 32       	cpi	r24, 0x2C	; 44
     60a:	19 f0       	breq	.+6      	; 0x612 <Command_Task+0x1e2>
			{
				Buffer_StoreElementOnBottom(&Rx_Buffer, oldValue);
     60c:	82 e1       	ldi	r24, 0x12	; 18
     60e:	92 e0       	ldi	r25, 0x02	; 2
     610:	f9 d2       	rcall	.+1522   	; 0xc04 <Buffer_StoreElementOnBottom>
     612:	10 e0       	ldi	r17, 0x00	; 0
     614:	06 c0       	rjmp	.+12     	; 0x622 <Command_Task+0x1f2>
			}
						
			for (i = 0; i < lenght && Rx_Buffer.Elements != 0; i++)
			{
				SendByte(Buffer_GetElementFromBottom(&Rx_Buffer),axis);
     616:	82 e1       	ldi	r24, 0x12	; 18
     618:	92 e0       	ldi	r25, 0x02	; 2
     61a:	c4 d2       	rcall	.+1416   	; 0xba4 <Buffer_GetElementFromBottom>
     61c:	60 2f       	mov	r22, r16
     61e:	8a d5       	rcall	.+2836   	; 0x1134 <SendByte>
			if(oldValue != ' ' && oldValue != ',')//allow for 1 peice of white space
			{
				Buffer_StoreElementOnBottom(&Rx_Buffer, oldValue);
			}
						
			for (i = 0; i < lenght && Rx_Buffer.Elements != 0; i++)
     620:	1f 5f       	subi	r17, 0xFF	; 255
     622:	1f 15       	cp	r17, r15
     624:	08 f0       	brcs	.+2      	; 0x628 <Command_Task+0x1f8>
     626:	58 c0       	rjmp	.+176    	; 0x6d8 <Command_Task+0x2a8>
     628:	80 91 96 02 	lds	r24, 0x0296
     62c:	88 23       	and	r24, r24
     62e:	99 f7       	brne	.-26     	; 0x616 <Command_Task+0x1e6>
     630:	53 c0       	rjmp	.+166    	; 0x6d8 <Command_Task+0x2a8>

			break;

		case 's'://enter serial mode
		case 'S':
			mode = SERIAL;
     632:	81 e0       	ldi	r24, 0x01	; 1
     634:	80 93 64 01 	sts	0x0164, r24
			Buffer_Initialize(&Rx_Buffer);//dump any unused data
     638:	82 e1       	ldi	r24, 0x12	; 18
     63a:	92 e0       	ldi	r25, 0x02	; 2
     63c:	3b d2       	rcall	.+1142   	; 0xab4 <Buffer_Initialize>
			Buffer_Initialize(&Tx_Buffer);//dump any unused data
     63e:	8d e8       	ldi	r24, 0x8D	; 141
     640:	91 e0       	ldi	r25, 0x01	; 1
     642:	38 d2       	rcall	.+1136   	; 0xab4 <Buffer_Initialize>
     644:	49 c0       	rjmp	.+146    	; 0x6d8 <Command_Task+0x2a8>
		case 0://empty command
			break;

		case 'b'://start the bootloader
		case 'B':
			(*bootloader)();//will not return
     646:	e0 91 36 01 	lds	r30, 0x0136
     64a:	f0 91 37 01 	lds	r31, 0x0137
     64e:	09 95       	icall
     650:	43 c0       	rjmp	.+134    	; 0x6d8 <Command_Task+0x2a8>
			break;

		case 'l':
		case 'L':

			RemoveWhiteSpace();
     652:	36 de       	rcall	.-916    	; 0x2c0 <RemoveWhiteSpace>

			switch(Buffer_GetElementFromBottom(&Rx_Buffer))
     654:	82 e1       	ldi	r24, 0x12	; 18
     656:	92 e0       	ldi	r25, 0x02	; 2
     658:	a5 d2       	rcall	.+1354   	; 0xba4 <Buffer_GetElementFromBottom>
     65a:	82 35       	cpi	r24, 0x52	; 82
     65c:	f1 f0       	breq	.+60     	; 0x69a <Command_Task+0x26a>
     65e:	83 35       	cpi	r24, 0x53	; 83
     660:	20 f4       	brcc	.+8      	; 0x66a <Command_Task+0x23a>
     662:	87 34       	cpi	r24, 0x47	; 71
     664:	09 f0       	breq	.+2      	; 0x668 <Command_Task+0x238>
     666:	38 c0       	rjmp	.+112    	; 0x6d8 <Command_Task+0x2a8>
     668:	05 c0       	rjmp	.+10     	; 0x674 <Command_Task+0x244>
     66a:	87 36       	cpi	r24, 0x67	; 103
     66c:	19 f0       	breq	.+6      	; 0x674 <Command_Task+0x244>
     66e:	82 37       	cpi	r24, 0x72	; 114
     670:	99 f5       	brne	.+102    	; 0x6d8 <Command_Task+0x2a8>
     672:	13 c0       	rjmp	.+38     	; 0x69a <Command_Task+0x26a>
			{
				case 'g':
				case 'G':
						
					RemoveWhiteSpace();
     674:	25 de       	rcall	.-950    	; 0x2c0 <RemoveWhiteSpace>

					switch(Buffer_GetElementFromBottom(&Rx_Buffer))
     676:	82 e1       	ldi	r24, 0x12	; 18
     678:	92 e0       	ldi	r25, 0x02	; 2
     67a:	94 d2       	rcall	.+1320   	; 0xba4 <Buffer_GetElementFromBottom>
     67c:	8f 34       	cpi	r24, 0x4F	; 79
     67e:	49 f0       	breq	.+18     	; 0x692 <Command_Task+0x262>
     680:	80 35       	cpi	r24, 0x50	; 80
     682:	18 f4       	brcc	.+6      	; 0x68a <Command_Task+0x25a>
     684:	86 34       	cpi	r24, 0x46	; 70
     686:	41 f5       	brne	.+80     	; 0x6d8 <Command_Task+0x2a8>
     688:	06 c0       	rjmp	.+12     	; 0x696 <Command_Task+0x266>
     68a:	86 36       	cpi	r24, 0x66	; 102
     68c:	21 f0       	breq	.+8      	; 0x696 <Command_Task+0x266>
     68e:	8f 36       	cpi	r24, 0x6F	; 111
     690:	19 f5       	brne	.+70     	; 0x6d8 <Command_Task+0x2a8>
					{
						case 'o':
						case 'O':
							greenLedOn();
     692:	2d 98       	cbi	0x05, 5	; 5
     694:	21 c0       	rjmp	.+66     	; 0x6d8 <Command_Task+0x2a8>
							break;

						case 'f':
						case 'F':
							greenLedOff();				
     696:	2d 9a       	sbi	0x05, 5	; 5
     698:	1f c0       	rjmp	.+62     	; 0x6d8 <Command_Task+0x2a8>
					break;

				case 'r':
				case 'R':

					RemoveWhiteSpace();
     69a:	12 de       	rcall	.-988    	; 0x2c0 <RemoveWhiteSpace>

					switch(Buffer_GetElementFromBottom(&Rx_Buffer))
     69c:	82 e1       	ldi	r24, 0x12	; 18
     69e:	92 e0       	ldi	r25, 0x02	; 2
     6a0:	81 d2       	rcall	.+1282   	; 0xba4 <Buffer_GetElementFromBottom>
     6a2:	8f 34       	cpi	r24, 0x4F	; 79
     6a4:	49 f0       	breq	.+18     	; 0x6b8 <Command_Task+0x288>
     6a6:	80 35       	cpi	r24, 0x50	; 80
     6a8:	18 f4       	brcc	.+6      	; 0x6b0 <Command_Task+0x280>
     6aa:	86 34       	cpi	r24, 0x46	; 70
     6ac:	a9 f4       	brne	.+42     	; 0x6d8 <Command_Task+0x2a8>
     6ae:	06 c0       	rjmp	.+12     	; 0x6bc <Command_Task+0x28c>
     6b0:	86 36       	cpi	r24, 0x66	; 102
     6b2:	21 f0       	breq	.+8      	; 0x6bc <Command_Task+0x28c>
     6b4:	8f 36       	cpi	r24, 0x6F	; 111
     6b6:	81 f4       	brne	.+32     	; 0x6d8 <Command_Task+0x2a8>
					{
						case 'o':
						case 'O':
							redLedOn();
     6b8:	42 98       	cbi	0x08, 2	; 8
     6ba:	0e c0       	rjmp	.+28     	; 0x6d8 <Command_Task+0x2a8>
							break;

						case 'f':
						case 'F':
							redLedOff();				
     6bc:	42 9a       	sbi	0x08, 2	; 8
     6be:	0c c0       	rjmp	.+24     	; 0x6d8 <Command_Task+0x2a8>
			}

			break;

		default:
			Buffer_StoreElementOnTop(&Tx_Buffer, '\r');
     6c0:	6d e0       	ldi	r22, 0x0D	; 13
     6c2:	8d e8       	ldi	r24, 0x8D	; 141
     6c4:	91 e0       	ldi	r25, 0x01	; 1
     6c6:	0a d2       	rcall	.+1044   	; 0xadc <Buffer_StoreElementOnTop>
			Buffer_StoreElementOnTop(&Tx_Buffer, '\n');
     6c8:	6a e0       	ldi	r22, 0x0A	; 10
     6ca:	8d e8       	ldi	r24, 0x8D	; 141
     6cc:	91 e0       	ldi	r25, 0x01	; 1
     6ce:	06 d2       	rcall	.+1036   	; 0xadc <Buffer_StoreElementOnTop>
			Buffer_StoreElementOnTop(&Tx_Buffer, '?');			
     6d0:	6f e3       	ldi	r22, 0x3F	; 63
     6d2:	8d e8       	ldi	r24, 0x8D	; 141
     6d4:	91 e0       	ldi	r25, 0x01	; 1
     6d6:	02 d2       	rcall	.+1028   	; 0xadc <Buffer_StoreElementOnTop>

	}
	
	if(mode != SERIAL)
     6d8:	80 91 64 01 	lds	r24, 0x0164
     6dc:	81 30       	cpi	r24, 0x01	; 1
     6de:	79 f0       	breq	.+30     	; 0x6fe <Command_Task+0x2ce>
	{
		Buffer_StoreElementOnTop(&Tx_Buffer, '\r');
     6e0:	6d e0       	ldi	r22, 0x0D	; 13
     6e2:	8d e8       	ldi	r24, 0x8D	; 141
     6e4:	91 e0       	ldi	r25, 0x01	; 1
     6e6:	fa d1       	rcall	.+1012   	; 0xadc <Buffer_StoreElementOnTop>
		Buffer_StoreElementOnTop(&Tx_Buffer, '\n');
     6e8:	6a e0       	ldi	r22, 0x0A	; 10
     6ea:	8d e8       	ldi	r24, 0x8D	; 141
     6ec:	91 e0       	ldi	r25, 0x01	; 1
     6ee:	f6 d1       	rcall	.+1004   	; 0xadc <Buffer_StoreElementOnTop>
		Buffer_StoreElementOnTop(&Tx_Buffer, '>');
     6f0:	6e e3       	ldi	r22, 0x3E	; 62
     6f2:	8d e8       	ldi	r24, 0x8D	; 141
     6f4:	91 e0       	ldi	r25, 0x01	; 1
     6f6:	f2 d1       	rcall	.+996    	; 0xadc <Buffer_StoreElementOnTop>
					
		Buffer_Initialize(&Rx_Buffer);//dump any unused data
     6f8:	82 e1       	ldi	r24, 0x12	; 18
     6fa:	92 e0       	ldi	r25, 0x02	; 2
     6fc:	db d1       	rcall	.+950    	; 0xab4 <Buffer_Initialize>
	}

	Scheduler_SetTaskMode(CDC_Task, TASK_RUN);
     6fe:	61 e0       	ldi	r22, 0x01	; 1
     700:	85 ea       	ldi	r24, 0xA5	; 165
     702:	93 e0       	ldi	r25, 0x03	; 3
     704:	a5 d5       	rcall	.+2890   	; 0x1250 <Scheduler_SetTaskMode>

	Scheduler_SetTaskMode(Command_Task, TASK_STOP);
     706:	60 e0       	ldi	r22, 0x00	; 0
     708:	88 e1       	ldi	r24, 0x18	; 24
     70a:	92 e0       	ldi	r25, 0x02	; 2
     70c:	a1 d5       	rcall	.+2882   	; 0x1250 <Scheduler_SetTaskMode>

}
     70e:	64 96       	adiw	r28, 0x14	; 20
     710:	0f b6       	in	r0, 0x3f	; 63
     712:	f8 94       	cli
     714:	de bf       	out	0x3e, r29	; 62
     716:	0f be       	out	0x3f, r0	; 63
     718:	cd bf       	out	0x3d, r28	; 61
     71a:	cf 91       	pop	r28
     71c:	df 91       	pop	r29
     71e:	1f 91       	pop	r17
     720:	0f 91       	pop	r16
     722:	ff 90       	pop	r15
     724:	ef 90       	pop	r14
     726:	df 90       	pop	r13
     728:	cf 90       	pop	r12
     72a:	bf 90       	pop	r11
     72c:	af 90       	pop	r10
     72e:	9f 90       	pop	r9
     730:	08 95       	ret

00000732 <Event_USB_Disconnect>:
	Scheduler_SetTaskMode(USB_USBTask, TASK_RUN);

}

EVENT_HANDLER(USB_Disconnect)
{
     732:	60 e0       	ldi	r22, 0x00	; 0
     734:	85 ea       	ldi	r24, 0xA5	; 165
     736:	93 e0       	ldi	r25, 0x03	; 3
     738:	8b d5       	rcall	.+2838   	; 0x1250 <Scheduler_SetTaskMode>
	/* Stop running CDC and USB management tasks */
	Scheduler_SetTaskMode(CDC_Task, TASK_STOP);
	Scheduler_SetTaskMode(USB_USBTask, TASK_STOP);
     73a:	60 e0       	ldi	r22, 0x00	; 0
     73c:	81 e1       	ldi	r24, 0x11	; 17
     73e:	9c e0       	ldi	r25, 0x0C	; 12

}
     740:	87 c5       	rjmp	.+2830   	; 0x1250 <Scheduler_SetTaskMode>

00000742 <Event_USB_Connect>:


}

EVENT_HANDLER(USB_Connect)
{
     742:	61 e0       	ldi	r22, 0x01	; 1
     744:	81 e1       	ldi	r24, 0x11	; 17
     746:	9c e0       	ldi	r25, 0x0C	; 12
	/* Start USB management task */
	Scheduler_SetTaskMode(USB_USBTask, TASK_RUN);

}
     748:	83 c5       	rjmp	.+2822   	; 0x1250 <Scheduler_SetTaskMode>

0000074a <CDC_Task>:

}


TASK(CDC_Task)
{
     74a:	0f 93       	push	r16
     74c:	1f 93       	push	r17
	uint8_t temp;
	
	if (USB_IsConnected)
     74e:	80 91 9e 02 	lds	r24, 0x029E
     752:	88 23       	and	r24, r24
     754:	09 f4       	brne	.+2      	; 0x758 <CDC_Task+0xe>
     756:	dd c0       	rjmp	.+442    	; 0x912 <CDC_Task+0x1c8>
	{
		/* Select the Serial Rx Endpoint */
		Endpoint_SelectEndpoint(CDC_RX_EPNUM);
     758:	84 e0       	ldi	r24, 0x04	; 4
     75a:	80 93 e9 00 	sts	0x00E9, r24

		if (Endpoint_ReadWriteAllowed())
     75e:	80 91 e8 00 	lds	r24, 0x00E8
     762:	85 fd       	sbrc	r24, 5
     764:	8d c0       	rjmp	.+282    	; 0x880 <CDC_Task+0x136>
     766:	97 c0       	rjmp	.+302    	; 0x896 <CDC_Task+0x14c>
		{
			/* Read the recieved data endpoint into the transmission buffer */
			while (Endpoint_BytesInEndpoint())
			{
				if(mode == COMMAND)
     768:	90 91 64 01 	lds	r25, 0x0164
     76c:	99 23       	and	r25, r25
     76e:	69 f5       	brne	.+90     	; 0x7ca <CDC_Task+0x80>
		/* Inline Functions: */
			/** Reads one byte from the currently selected endpoint's bank, for OUT direction endpoints. */
			static inline uint8_t Endpoint_Read_Byte(void) ATTR_WARN_UNUSED_RESULT;
			static inline uint8_t Endpoint_Read_Byte(void)
			{
				return UEDATX;
     770:	10 91 f1 00 	lds	r17, 0x00F1
				{
					temp =  Endpoint_Read_Byte();

					Buffer_StoreElementOnTop(&Tx_Buffer, temp);//echo the character back
     774:	61 2f       	mov	r22, r17
     776:	8d e8       	ldi	r24, 0x8D	; 141
     778:	91 e0       	ldi	r25, 0x01	; 1
     77a:	b0 d1       	rcall	.+864    	; 0xadc <Buffer_StoreElementOnTop>
					Buffer_StoreElementOnTop(&Rx_Buffer, temp);//save it to our buffer
     77c:	61 2f       	mov	r22, r17
     77e:	82 e1       	ldi	r24, 0x12	; 18
     780:	92 e0       	ldi	r25, 0x02	; 2
     782:	ac d1       	rcall	.+856    	; 0xadc <Buffer_StoreElementOnTop>

					if(temp == '\b')
     784:	18 30       	cpi	r17, 0x08	; 8
     786:	79 f4       	brne	.+30     	; 0x7a6 <CDC_Task+0x5c>
					{
						Buffer_StoreElementOnTop(&Tx_Buffer, ' ');//clear the mistake
     788:	60 e2       	ldi	r22, 0x20	; 32
     78a:	8d e8       	ldi	r24, 0x8D	; 141
     78c:	91 e0       	ldi	r25, 0x01	; 1
     78e:	a6 d1       	rcall	.+844    	; 0xadc <Buffer_StoreElementOnTop>
						Buffer_StoreElementOnTop(&Tx_Buffer, '\b');
     790:	68 e0       	ldi	r22, 0x08	; 8
     792:	8d e8       	ldi	r24, 0x8D	; 141
     794:	91 e0       	ldi	r25, 0x01	; 1
     796:	a2 d1       	rcall	.+836    	; 0xadc <Buffer_StoreElementOnTop>
					
						Buffer_GetElementFromTop(&Rx_Buffer);//remove the \b and the character sent from our buffer
     798:	82 e1       	ldi	r24, 0x12	; 18
     79a:	92 e0       	ldi	r25, 0x02	; 2
     79c:	d6 d1       	rcall	.+940    	; 0xb4a <Buffer_GetElementFromTop>
						Buffer_GetElementFromTop(&Rx_Buffer);
     79e:	82 e1       	ldi	r24, 0x12	; 18
     7a0:	92 e0       	ldi	r25, 0x02	; 2
     7a2:	d3 d1       	rcall	.+934    	; 0xb4a <Buffer_GetElementFromTop>
     7a4:	6e c0       	rjmp	.+220    	; 0x882 <CDC_Task+0x138>
					}
					else if(temp == '\r')
     7a6:	1d 30       	cpi	r17, 0x0D	; 13
     7a8:	09 f0       	breq	.+2      	; 0x7ac <CDC_Task+0x62>
     7aa:	6b c0       	rjmp	.+214    	; 0x882 <CDC_Task+0x138>
					{
					//	Buffer_StoreElementOnTop(&Tx_Buffer, '\n');//ensure \r\n is sent back
						Buffer_GetElementFromTop(&Tx_Buffer);//remove the \r
     7ac:	8d e8       	ldi	r24, 0x8D	; 141
     7ae:	91 e0       	ldi	r25, 0x01	; 1
     7b0:	cc d1       	rcall	.+920    	; 0xb4a <Buffer_GetElementFromTop>
						Buffer_GetElementFromTop(&Rx_Buffer);//remove the \r
     7b2:	82 e1       	ldi	r24, 0x12	; 18
     7b4:	92 e0       	ldi	r25, 0x02	; 2
     7b6:	c9 d1       	rcall	.+914    	; 0xb4a <Buffer_GetElementFromTop>

					
						Scheduler_SetTaskMode(CDC_Task, TASK_STOP);//stop it for a while
     7b8:	60 e0       	ldi	r22, 0x00	; 0
     7ba:	85 ea       	ldi	r24, 0xA5	; 165
     7bc:	93 e0       	ldi	r25, 0x03	; 3
     7be:	48 d5       	rcall	.+2704   	; 0x1250 <Scheduler_SetTaskMode>


						Scheduler_SetTaskMode(Command_Task, TASK_RUN);//process the data
     7c0:	61 e0       	ldi	r22, 0x01	; 1
     7c2:	88 e1       	ldi	r24, 0x18	; 24
     7c4:	92 e0       	ldi	r25, 0x02	; 2
     7c6:	44 d5       	rcall	.+2696   	; 0x1250 <Scheduler_SetTaskMode>
     7c8:	61 c0       	rjmp	.+194    	; 0x88c <CDC_Task+0x142>

						break;//don't care about any other data
					}
				}
				else if(mode == SERIAL)
     7ca:	91 30       	cpi	r25, 0x01	; 1
     7cc:	09 f0       	breq	.+2      	; 0x7d0 <CDC_Task+0x86>
     7ce:	59 c0       	rjmp	.+178    	; 0x882 <CDC_Task+0x138>
     7d0:	10 91 f1 00 	lds	r17, 0x00F1
				{
					temp = Endpoint_Read_Byte();
					if(temp == '\\')
     7d4:	1c 35       	cpi	r17, 0x5C	; 92
     7d6:	79 f4       	brne	.+30     	; 0x7f6 <CDC_Task+0xac>
					{
						if (escapeCharReceived == true)
     7d8:	80 91 5f 01 	lds	r24, 0x015F
     7dc:	88 23       	and	r24, r24
     7de:	41 f0       	breq	.+16     	; 0x7f0 <CDC_Task+0xa6>
						{

							escapeCharReceived = false;
     7e0:	10 92 5f 01 	sts	0x015F, r1
							Buffer_StoreElementOnTop(&Rx_Buffer, '\\');//pass on the old one
     7e4:	6c e5       	ldi	r22, 0x5C	; 92
     7e6:	82 e1       	ldi	r24, 0x12	; 18
     7e8:	92 e0       	ldi	r25, 0x02	; 2
     7ea:	78 d1       	rcall	.+752    	; 0xadc <Buffer_StoreElementOnTop>
							Buffer_StoreElementOnTop(&Rx_Buffer, temp);//pass on the new one
     7ec:	6c e5       	ldi	r22, 0x5C	; 92
     7ee:	44 c0       	rjmp	.+136    	; 0x878 <CDC_Task+0x12e>
						}
						else
						{
							escapeCharReceived = true;
     7f0:	90 93 5f 01 	sts	0x015F, r25
     7f4:	46 c0       	rjmp	.+140    	; 0x882 <CDC_Task+0x138>
						}
					}
					else if( escapeCharReceived == true)
     7f6:	80 91 5f 01 	lds	r24, 0x015F
     7fa:	88 23       	and	r24, r24
     7fc:	09 f4       	brne	.+2      	; 0x800 <CDC_Task+0xb6>
     7fe:	3b c0       	rjmp	.+118    	; 0x876 <CDC_Task+0x12c>
					{
					
						if(temp == 'c' || temp == 'C')
     800:	13 36       	cpi	r17, 0x63	; 99
     802:	11 f0       	breq	.+4      	; 0x808 <CDC_Task+0xbe>
     804:	13 34       	cpi	r17, 0x43	; 67
     806:	61 f5       	brne	.+88     	; 0x860 <CDC_Task+0x116>
						{
							/* Initiate the transmission of the buffer contents if USART idle */
							if (Transmitting == false && Rx_Buffer.Elements != 0)
     808:	80 91 5e 01 	lds	r24, 0x015E
     80c:	88 23       	and	r24, r24
     80e:	81 f4       	brne	.+32     	; 0x830 <CDC_Task+0xe6>
     810:	80 91 96 02 	lds	r24, 0x0296
     814:	88 23       	and	r24, r24
     816:	61 f0       	breq	.+24     	; 0x830 <CDC_Task+0xe6>
							{
								Transmitting = true;
     818:	00 93 5e 01 	sts	0x015E, r16
								Serial_TxByte(Buffer_GetElementFromBottom(&Rx_Buffer));
     81c:	82 e1       	ldi	r24, 0x12	; 18
     81e:	92 e0       	ldi	r25, 0x02	; 2
     820:	c1 d1       	rcall	.+898    	; 0xba4 <Buffer_GetElementFromBottom>
     822:	98 2f       	mov	r25, r24
			 *
			 *  \param DataByte  Byte to transmit through the USART
			 */
			static inline void Serial_TxByte(const char DataByte)
			{
				while (!(UCSR1A & (1 << UDRE1)));
     824:	80 91 c8 00 	lds	r24, 0x00C8
     828:	85 ff       	sbrs	r24, 5
     82a:	fc cf       	rjmp	.-8      	; 0x824 <CDC_Task+0xda>
				UDR1 = DataByte;
     82c:	90 93 ce 00 	sts	0x00CE, r25
							}
							while(Transmitting == true)//wait until we finish
     830:	80 91 5e 01 	lds	r24, 0x015E
     834:	88 23       	and	r24, r24
     836:	e1 f7       	brne	.-8      	; 0x830 <CDC_Task+0xe6>
							{
								;
							}
							mode = COMMAND;
     838:	10 92 64 01 	sts	0x0164, r1
							Buffer_Initialize(&Rx_Buffer);//clear out all data
     83c:	82 e1       	ldi	r24, 0x12	; 18
     83e:	92 e0       	ldi	r25, 0x02	; 2
     840:	39 d1       	rcall	.+626    	; 0xab4 <Buffer_Initialize>
							Buffer_Initialize(&Tx_Buffer);
     842:	8d e8       	ldi	r24, 0x8D	; 141
     844:	91 e0       	ldi	r25, 0x01	; 1
     846:	36 d1       	rcall	.+620    	; 0xab4 <Buffer_Initialize>

							Buffer_StoreElementOnTop(&Tx_Buffer, '\r');
     848:	6d e0       	ldi	r22, 0x0D	; 13
     84a:	8d e8       	ldi	r24, 0x8D	; 141
     84c:	91 e0       	ldi	r25, 0x01	; 1
     84e:	46 d1       	rcall	.+652    	; 0xadc <Buffer_StoreElementOnTop>
							Buffer_StoreElementOnTop(&Tx_Buffer, '\n');
     850:	6a e0       	ldi	r22, 0x0A	; 10
     852:	8d e8       	ldi	r24, 0x8D	; 141
     854:	91 e0       	ldi	r25, 0x01	; 1
     856:	42 d1       	rcall	.+644    	; 0xadc <Buffer_StoreElementOnTop>
							Buffer_StoreElementOnTop(&Tx_Buffer, '>');
     858:	6e e3       	ldi	r22, 0x3E	; 62
     85a:	8d e8       	ldi	r24, 0x8D	; 141
     85c:	91 e0       	ldi	r25, 0x01	; 1
     85e:	07 c0       	rjmp	.+14     	; 0x86e <CDC_Task+0x124>

						}
						else
						{
							Buffer_StoreElementOnTop(&Rx_Buffer, '\\');//pass on all the data
     860:	6c e5       	ldi	r22, 0x5C	; 92
     862:	82 e1       	ldi	r24, 0x12	; 18
     864:	92 e0       	ldi	r25, 0x02	; 2
     866:	3a d1       	rcall	.+628    	; 0xadc <Buffer_StoreElementOnTop>
							Buffer_StoreElementOnTop(&Rx_Buffer, temp);
     868:	61 2f       	mov	r22, r17
     86a:	82 e1       	ldi	r24, 0x12	; 18
     86c:	92 e0       	ldi	r25, 0x02	; 2
     86e:	36 d1       	rcall	.+620    	; 0xadc <Buffer_StoreElementOnTop>
						}

						escapeCharReceived = false;
     870:	10 92 5f 01 	sts	0x015F, r1
     874:	06 c0       	rjmp	.+12     	; 0x882 <CDC_Task+0x138>
					}
					else
					{
						Buffer_StoreElementOnTop(&Rx_Buffer, temp);
     876:	61 2f       	mov	r22, r17
     878:	82 e1       	ldi	r24, 0x12	; 18
     87a:	92 e0       	ldi	r25, 0x02	; 2
     87c:	2f d1       	rcall	.+606    	; 0xadc <Buffer_StoreElementOnTop>
     87e:	01 c0       	rjmp	.+2      	; 0x882 <CDC_Task+0x138>
						if(temp == 'c' || temp == 'C')
						{
							/* Initiate the transmission of the buffer contents if USART idle */
							if (Transmitting == false && Rx_Buffer.Elements != 0)
							{
								Transmitting = true;
     880:	01 e0       	ldi	r16, 0x01	; 1
		Endpoint_SelectEndpoint(CDC_RX_EPNUM);

		if (Endpoint_ReadWriteAllowed())
		{
			/* Read the recieved data endpoint into the transmission buffer */
			while (Endpoint_BytesInEndpoint())
     882:	80 91 f2 00 	lds	r24, 0x00F2
     886:	88 23       	and	r24, r24
     888:	09 f0       	breq	.+2      	; 0x88c <CDC_Task+0x142>
     88a:	6e cf       	rjmp	.-292    	; 0x768 <CDC_Task+0x1e>
					}	
				}
			}

			/* Clear the endpoint buffer */
			Endpoint_ClearCurrentBank();
     88c:	80 91 e8 00 	lds	r24, 0x00E8
     890:	8f 77       	andi	r24, 0x7F	; 127
     892:	80 93 e8 00 	sts	0x00E8, r24
		}
		

		/* Select the Serial Tx Endpoint */
		Endpoint_SelectEndpoint(CDC_TX_EPNUM);
     896:	83 e0       	ldi	r24, 0x03	; 3
     898:	80 93 e9 00 	sts	0x00E9, r24

		/* Initiate the transmission of the buffer contents if USART idle */
		if (Transmitting == false && mode == SERIAL && Rx_Buffer.Elements != 0)
     89c:	80 91 5e 01 	lds	r24, 0x015E
     8a0:	88 23       	and	r24, r24
     8a2:	a1 f4       	brne	.+40     	; 0x8cc <CDC_Task+0x182>
     8a4:	90 91 64 01 	lds	r25, 0x0164
     8a8:	91 30       	cpi	r25, 0x01	; 1
     8aa:	81 f4       	brne	.+32     	; 0x8cc <CDC_Task+0x182>
     8ac:	80 91 96 02 	lds	r24, 0x0296
     8b0:	88 23       	and	r24, r24
     8b2:	61 f0       	breq	.+24     	; 0x8cc <CDC_Task+0x182>
		{
				Transmitting = true;
     8b4:	90 93 5e 01 	sts	0x015E, r25
				Serial_TxByte(Buffer_GetElementFromBottom(&Rx_Buffer));
     8b8:	82 e1       	ldi	r24, 0x12	; 18
     8ba:	92 e0       	ldi	r25, 0x02	; 2
     8bc:	73 d1       	rcall	.+742    	; 0xba4 <Buffer_GetElementFromBottom>
     8be:	98 2f       	mov	r25, r24
			 *
			 *  \param DataByte  Byte to transmit through the USART
			 */
			static inline void Serial_TxByte(const char DataByte)
			{
				while (!(UCSR1A & (1 << UDRE1)));
     8c0:	80 91 c8 00 	lds	r24, 0x00C8
     8c4:	85 ff       	sbrs	r24, 5
     8c6:	fc cf       	rjmp	.-8      	; 0x8c0 <CDC_Task+0x176>
				UDR1 = DataByte;
     8c8:	90 93 ce 00 	sts	0x00CE, r25
		}


		/* Write the Data to the Endpoint */
		if(Tx_Buffer.Elements != 0)
     8cc:	80 91 11 02 	lds	r24, 0x0211
     8d0:	88 23       	and	r24, r24
     8d2:	f9 f0       	breq	.+62     	; 0x912 <CDC_Task+0x1c8>
		{

			do{
				/* Wait until Serial Tx Endpoint Ready for Read/Write */
				while (!(Endpoint_ReadWriteAllowed()));
     8d4:	80 91 e8 00 	lds	r24, 0x00E8
     8d8:	85 ff       	sbrs	r24, 5
     8da:	fc cf       	rjmp	.-8      	; 0x8d4 <CDC_Task+0x18a>

				Endpoint_Write_Byte(Buffer_GetElementFromBottom(&Tx_Buffer));
     8dc:	8d e8       	ldi	r24, 0x8D	; 141
     8de:	91 e0       	ldi	r25, 0x01	; 1
     8e0:	61 d1       	rcall	.+706    	; 0xba4 <Buffer_GetElementFromBottom>
			}

			/** Writes one byte from the currently selected endpoint's bank, for IN direction endpoints. */
			static inline void Endpoint_Write_Byte(const uint8_t Byte)
			{
				UEDATX = Byte;
     8e2:	80 93 f1 00 	sts	0x00F1, r24

				/* Check if the endpoint is full */
				if (Endpoint_BytesInEndpoint() == CDC_TXRX_EPSIZE)
     8e6:	80 91 f2 00 	lds	r24, 0x00F2
     8ea:	80 31       	cpi	r24, 0x10	; 16
     8ec:	49 f4       	brne	.+18     	; 0x900 <CDC_Task+0x1b6>
				{
					/* Send the data */
					Endpoint_ClearCurrentBank();
     8ee:	80 91 e8 00 	lds	r24, 0x00E8
     8f2:	8f 77       	andi	r24, 0x7F	; 127
     8f4:	80 93 e8 00 	sts	0x00E8, r24

					/* Wait until Serial Tx Endpoint Ready for Read/Write */
					while (!(Endpoint_ReadWriteAllowed()));
     8f8:	80 91 e8 00 	lds	r24, 0x00E8
     8fc:	85 ff       	sbrs	r24, 5
     8fe:	fc cf       	rjmp	.-8      	; 0x8f8 <CDC_Task+0x1ae>
				}
			}while (Tx_Buffer.Elements != 0);
     900:	80 91 11 02 	lds	r24, 0x0211
     904:	88 23       	and	r24, r24
     906:	31 f7       	brne	.-52     	; 0x8d4 <CDC_Task+0x18a>

			/* Send the last packet of the transfer to the host */
			Endpoint_ClearCurrentBank();
     908:	80 91 e8 00 	lds	r24, 0x00E8
     90c:	8f 77       	andi	r24, 0x7F	; 127
     90e:	80 93 e8 00 	sts	0x00E8, r24

		}
	}
}
     912:	1f 91       	pop	r17
     914:	0f 91       	pop	r16
     916:	08 95       	ret

00000918 <Event_USB_UnhandledControlPacket>:
	/* Start CDC task */
	Scheduler_SetTaskMode(CDC_Task, TASK_RUN);
}

EVENT_HANDLER(USB_UnhandledControlPacket)
{
     918:	81 32       	cpi	r24, 0x21	; 33
     91a:	31 f0       	breq	.+12     	; 0x928 <Event_USB_UnhandledControlPacket+0x10>
     91c:	82 32       	cpi	r24, 0x22	; 34
     91e:	49 f1       	breq	.+82     	; 0x972 <Event_USB_UnhandledControlPacket+0x5a>
     920:	80 32       	cpi	r24, 0x20	; 32
     922:	09 f0       	breq	.+2      	; 0x926 <Event_USB_UnhandledControlPacket+0xe>
     924:	3d c0       	rjmp	.+122    	; 0x9a0 <Event_USB_UnhandledControlPacket+0x88>
     926:	13 c0       	rjmp	.+38     	; 0x94e <Event_USB_UnhandledControlPacket+0x36>

	/* Process CDC specific control requests */
	switch (bRequest)
	{
		case GET_LINE_CODING:
			if (bmRequestType == (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE))
     928:	61 3a       	cpi	r22, 0xA1	; 161
     92a:	09 f0       	breq	.+2      	; 0x92e <Event_USB_UnhandledControlPacket+0x16>
     92c:	39 c0       	rjmp	.+114    	; 0x9a0 <Event_USB_UnhandledControlPacket+0x88>
			{
				/* Acknowedge the SETUP packet, ready for data transfer */
				Endpoint_ClearSetupReceived();
     92e:	80 91 e8 00 	lds	r24, 0x00E8
     932:	87 7f       	andi	r24, 0xF7	; 247
     934:	80 93 e8 00 	sts	0x00E8, r24

				/* Write the line coding data to the control endpoint */
				Endpoint_Write_Control_Stream_LE(LineCodingData, sizeof(LineCoding));
     938:	67 e0       	ldi	r22, 0x07	; 7
     93a:	70 e0       	ldi	r23, 0x00	; 0
     93c:	84 e4       	ldi	r24, 0x44	; 68
     93e:	91 e0       	ldi	r25, 0x01	; 1
     940:	39 d5       	rcall	.+2674   	; 0x13b4 <Endpoint_Write_Control_Stream_LE>

				/* Send the line coding data to the host and clear the control endpoint */
				Endpoint_ClearSetupOUT();
     942:	80 91 e8 00 	lds	r24, 0x00E8
     946:	8b 7f       	andi	r24, 0xFB	; 251
     948:	80 93 e8 00 	sts	0x00E8, r24
     94c:	08 95       	ret
			}

			break;
		case SET_LINE_CODING:
			if (bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE))
     94e:	61 32       	cpi	r22, 0x21	; 33
     950:	39 f5       	brne	.+78     	; 0x9a0 <Event_USB_UnhandledControlPacket+0x88>
			{
				/* Acknowedge the SETUP packet, ready for data transfer */
				Endpoint_ClearSetupReceived();
     952:	80 91 e8 00 	lds	r24, 0x00E8
     956:	87 7f       	andi	r24, 0xF7	; 247
     958:	80 93 e8 00 	sts	0x00E8, r24

				/* Read the line coding data in from the host into the global struct */
				Endpoint_Read_Control_Stream_LE(LineCodingData, sizeof(LineCoding));
     95c:	67 e0       	ldi	r22, 0x07	; 7
     95e:	70 e0       	ldi	r23, 0x00	; 0
     960:	84 e4       	ldi	r24, 0x44	; 68
     962:	91 e0       	ldi	r25, 0x01	; 1
     964:	6b d5       	rcall	.+2774   	; 0x143c <Endpoint_Read_Control_Stream_LE>

				/* Send the line coding data to the host and clear the control endpoint */
				Endpoint_ClearSetupIN();
     966:	80 91 e8 00 	lds	r24, 0x00E8
     96a:	8e 7f       	andi	r24, 0xFE	; 254
     96c:	80 93 e8 00 	sts	0x00E8, r24

				/* Reconfigure the USART with the new settings */
				ReconfigureUSART();
     970:	3d cc       	rjmp	.-1926   	; 0x1ec <ReconfigureUSART>
			}

			break;
		case SET_CONTROL_LINE_STATE:
			if (bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE))
     972:	61 32       	cpi	r22, 0x21	; 33
     974:	a9 f4       	brne	.+42     	; 0x9a0 <Event_USB_UnhandledControlPacket+0x88>
			{
				/* Acknowedge the SETUP packet, ready for data transfer */
				Endpoint_ClearSetupReceived();
     976:	80 91 e8 00 	lds	r24, 0x00E8
     97a:	87 7f       	andi	r24, 0xF7	; 247
     97c:	80 93 e8 00 	sts	0x00E8, r24

				/* Send an empty packet to acknowedge the command (currently unused) */
				Endpoint_ClearSetupIN();
     980:	80 91 e8 00 	lds	r24, 0x00E8
     984:	8e 7f       	andi	r24, 0xFE	; 254
     986:	80 93 e8 00 	sts	0x00E8, r24
				if(mode == COMMAND)
     98a:	80 91 64 01 	lds	r24, 0x0164
     98e:	88 23       	and	r24, r24
     990:	39 f4       	brne	.+14     	; 0x9a0 <Event_USB_UnhandledControlPacket+0x88>
				{
					
					StringToBuffer_P(PSTR("SOC Robotics USB10, (c) 2008\r\n\r\n"));
     992:	82 ef       	ldi	r24, 0xF2	; 242
     994:	90 e0       	ldi	r25, 0x00	; 0
     996:	3a dd       	rcall	.-1420   	; 0x40c <StringToBuffer_P>
					Buffer_StoreElementOnTop(&Tx_Buffer, '>');//prompt character
     998:	6e e3       	ldi	r22, 0x3E	; 62
     99a:	8d e8       	ldi	r24, 0x8D	; 141
     99c:	91 e0       	ldi	r25, 0x01	; 1
     99e:	9e c0       	rjmp	.+316    	; 0xadc <Buffer_StoreElementOnTop>
     9a0:	08 95       	ret

000009a2 <Event_USB_ConfigurationChanged>:
	Scheduler_SetTaskMode(USB_USBTask, TASK_STOP);

}

EVENT_HANDLER(USB_ConfigurationChanged)
{
     9a2:	20 e0       	ldi	r18, 0x00	; 0
     9a4:	41 ec       	ldi	r20, 0xC1	; 193
     9a6:	68 e0       	ldi	r22, 0x08	; 8
     9a8:	70 e0       	ldi	r23, 0x00	; 0
     9aa:	82 e0       	ldi	r24, 0x02	; 2
     9ac:	dc d4       	rcall	.+2488   	; 0x1366 <Endpoint_ConfigureEndpoint_P>
	/* Setup CDC Notification, Rx and Tx Endpoints */
	Endpoint_ConfigureEndpoint(CDC_NOTIFICATION_EPNUM, EP_TYPE_INTERRUPT,
		                       ENDPOINT_DIR_IN, CDC_NOTIFICATION_EPSIZE,
	                           ENDPOINT_BANK_SINGLE);

	Endpoint_ConfigureEndpoint(CDC_TX_EPNUM, EP_TYPE_BULK,
     9ae:	24 e0       	ldi	r18, 0x04	; 4
     9b0:	41 e8       	ldi	r20, 0x81	; 129
     9b2:	60 e1       	ldi	r22, 0x10	; 16
     9b4:	70 e0       	ldi	r23, 0x00	; 0
     9b6:	83 e0       	ldi	r24, 0x03	; 3
     9b8:	d6 d4       	rcall	.+2476   	; 0x1366 <Endpoint_ConfigureEndpoint_P>
		                       ENDPOINT_DIR_IN, CDC_TXRX_EPSIZE,
	                           ENDPOINT_BANK_DOUBLE);

	Endpoint_ConfigureEndpoint(CDC_RX_EPNUM, EP_TYPE_BULK,
     9ba:	24 e0       	ldi	r18, 0x04	; 4
     9bc:	40 e8       	ldi	r20, 0x80	; 128
     9be:	60 e1       	ldi	r22, 0x10	; 16
     9c0:	70 e0       	ldi	r23, 0x00	; 0
     9c2:	84 e0       	ldi	r24, 0x04	; 4
     9c4:	d0 d4       	rcall	.+2464   	; 0x1366 <Endpoint_ConfigureEndpoint_P>
		                       ENDPOINT_DIR_OUT, CDC_TXRX_EPSIZE,
	                           ENDPOINT_BANK_DOUBLE);


	/* Start CDC task */
	Scheduler_SetTaskMode(CDC_Task, TASK_RUN);
     9c6:	61 e0       	ldi	r22, 0x01	; 1
     9c8:	85 ea       	ldi	r24, 0xA5	; 165
     9ca:	93 e0       	ldi	r25, 0x03	; 3
}
     9cc:	41 c4       	rjmp	.+2178   	; 0x1250 <Scheduler_SetTaskMode>

000009ce <main>:




int main(void)
{
     9ce:	1f 93       	push	r17
     9d0:	cf 93       	push	r28
     9d2:	df 93       	push	r29
	/* Disable watchdog if enabled by bootloader/fuses */
	MCUSR &= ~(1 << WDRF);
     9d4:	84 b7       	in	r24, 0x34	; 52
     9d6:	87 7f       	andi	r24, 0xF7	; 247
     9d8:	84 bf       	out	0x34, r24	; 52
	wdt_disable();
     9da:	88 e1       	ldi	r24, 0x18	; 24
     9dc:	0f b6       	in	r0, 0x3f	; 63
     9de:	f8 94       	cli
     9e0:	80 93 60 00 	sts	0x0060, r24
     9e4:	10 92 60 00 	sts	0x0060, r1
     9e8:	0f be       	out	0x3f, r0	; 63
			 *  \param PrescalerMask   The mask of the new prescaler setting for CLKPR
			 */
			static inline void SetSystemClockPrescaler(uint8_t PrescalerMask)
			{
					uint8_t tmp = (1 << CLKPCE);
					__asm__ __volatile__ (
     9ea:	91 e0       	ldi	r25, 0x01	; 1
     9ec:	80 e8       	ldi	r24, 0x80	; 128
     9ee:	0f b6       	in	r0, 0x3f	; 63
     9f0:	f8 94       	cli
     9f2:	80 93 61 00 	sts	0x0061, r24
     9f6:	90 93 61 00 	sts	0x0061, r25
     9fa:	0f be       	out	0x3f, r0	; 63

	/* Divide the 16Mhz crystal clock to 8Mhz to allow for 3.3V operation*/
	SetSystemClockPrescaler(1);

	I2C_Init();
     9fc:	44 d1       	rcall	.+648    	; 0xc86 <I2C_Init>
	StepDirLineCoding_Init();
     9fe:	4a d3       	rcall	.+1684   	; 0x1094 <StepDirLineCoding_Init>

	greenLedOff();//this may interfere with the above
     a00:	2d 9a       	sbi	0x05, 5	; 5
	redLedOff();
     a02:	42 9a       	sbi	0x08, 2	; 8

	DDRC |= (1<<2);
     a04:	3a 9a       	sbi	0x07, 2	; 7
	DDRB |= (1<<5);
     a06:	25 9a       	sbi	0x04, 5	; 4


	/* Ringbuffer Initialization */
	Buffer_Initialize(&Rx_Buffer);
     a08:	82 e1       	ldi	r24, 0x12	; 18
     a0a:	92 e0       	ldi	r25, 0x02	; 2
     a0c:	53 d0       	rcall	.+166    	; 0xab4 <Buffer_Initialize>
	Buffer_Initialize(&Tx_Buffer);
     a0e:	8d e8       	ldi	r24, 0x8D	; 141
     a10:	91 e0       	ldi	r25, 0x01	; 1
     a12:	50 d0       	rcall	.+160    	; 0xab4 <Buffer_Initialize>
			#define MAX_DELAYCTR_COUNT                0xFFFF

		/* Inline Functions: */
			static inline void Scheduler_InitScheduler(const uint8_t TotalTasks)
			{
				Scheduler_TotalTasks = TotalTasks;
     a14:	13 e0       	ldi	r17, 0x03	; 3
     a16:	10 93 97 02 	sts	0x0297, r17

	/* Initialize Scheduler so that it can be used */
	Scheduler_Init();

	/* Initialize USB Subsystem */
	USB_Init();
     a1a:	9a d4       	rcall	.+2356   	; 0x1350 <USB_Init>
     a1c:	10 93 97 02 	sts	0x0297, r17
     a20:	c8 e3       	ldi	r28, 0x38	; 56
     a22:	d1 e0       	ldi	r29, 0x01	; 1
     a24:	07 c0       	rjmp	.+14     	; 0xa34 <main+0x66>
				{
					TaskEntry_t* CurrTask = &Scheduler_TaskList[0];
					
					while (CurrTask != &Scheduler_TaskList[TotalTasks])
					{
						if (CurrTask->TaskStatus == TASK_RUN)
     a26:	8a 81       	ldd	r24, Y+2	; 0x02
     a28:	88 23       	and	r24, r24
     a2a:	19 f0       	breq	.+6      	; 0xa32 <main+0x64>
						  CurrTask->Task();
     a2c:	e8 81       	ld	r30, Y
     a2e:	f9 81       	ldd	r31, Y+1	; 0x01
     a30:	09 95       	icall

						CurrTask++;
     a32:	24 96       	adiw	r28, 0x04	; 4

				for (;;)
				{
					TaskEntry_t* CurrTask = &Scheduler_TaskList[0];
					
					while (CurrTask != &Scheduler_TaskList[TotalTasks])
     a34:	81 e0       	ldi	r24, 0x01	; 1
     a36:	c4 34       	cpi	r28, 0x44	; 68
     a38:	d8 07       	cpc	r29, r24
     a3a:	a9 f7       	brne	.-22     	; 0xa26 <main+0x58>
     a3c:	2c 97       	sbiw	r28, 0x0c	; 12
     a3e:	fa cf       	rjmp	.-12     	; 0xa34 <main+0x66>

00000a40 <USB_GetDescriptor>:
	UnicodeString:          L"MyUSB USB-RS232 Demo"
};

bool USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex,
                       void** const DescriptorAddress, uint16_t* const DescriptorSize)
{
     a40:	cf 93       	push	r28
     a42:	df 93       	push	r29
     a44:	da 01       	movw	r26, r20
     a46:	e9 01       	movw	r28, r18
	void*    Address = NULL;
	uint16_t Size    = 0;

	switch (wValue >> 8)
     a48:	29 2f       	mov	r18, r25
     a4a:	33 27       	eor	r19, r19
     a4c:	22 30       	cpi	r18, 0x02	; 2
     a4e:	31 05       	cpc	r19, r1
     a50:	39 f0       	breq	.+14     	; 0xa60 <USB_GetDescriptor+0x20>
     a52:	23 30       	cpi	r18, 0x03	; 3
     a54:	31 05       	cpc	r19, r1
     a56:	49 f0       	breq	.+18     	; 0xa6a <USB_GetDescriptor+0x2a>
     a58:	21 30       	cpi	r18, 0x01	; 1
     a5a:	31 05       	cpc	r19, r1
     a5c:	e9 f4       	brne	.+58     	; 0xa98 <USB_GetDescriptor+0x58>
     a5e:	20 c0       	rjmp	.+64     	; 0xaa0 <USB_GetDescriptor+0x60>
     a60:	e5 e2       	ldi	r30, 0x25	; 37
     a62:	f1 e0       	ldi	r31, 0x01	; 1
     a64:	83 e4       	ldi	r24, 0x43	; 67
     a66:	90 e0       	ldi	r25, 0x00	; 0
     a68:	1f c0       	rjmp	.+62     	; 0xaa8 <USB_GetDescriptor+0x68>
		case DTYPE_Configuration:
			Address = DESCRIPTOR_ADDRESS(ConfigurationDescriptor);
			Size    = sizeof(USB_Descriptor_Configuration_t);
			break;
		case DTYPE_String:
			switch (wValue & 0xFF)
     a6a:	90 70       	andi	r25, 0x00	; 0
     a6c:	81 30       	cpi	r24, 0x01	; 1
     a6e:	91 05       	cpc	r25, r1
     a70:	51 f0       	breq	.+20     	; 0xa86 <USB_GetDescriptor+0x46>
     a72:	81 30       	cpi	r24, 0x01	; 1
     a74:	91 05       	cpc	r25, r1
     a76:	18 f0       	brcs	.+6      	; 0xa7e <USB_GetDescriptor+0x3e>
     a78:	02 97       	sbiw	r24, 0x02	; 2
     a7a:	71 f4       	brne	.+28     	; 0xa98 <USB_GetDescriptor+0x58>
     a7c:	08 c0       	rjmp	.+16     	; 0xa8e <USB_GetDescriptor+0x4e>
			{
				case 0x00:
					Address = DESCRIPTOR_ADDRESS(LanguageString);
					Size    = pgm_read_byte(&LanguageString.Header.Size);
     a7e:	e8 e6       	ldi	r30, 0x68	; 104
     a80:	f1 e0       	ldi	r31, 0x01	; 1
     a82:	84 91       	lpm	r24, Z+
     a84:	07 c0       	rjmp	.+14     	; 0xa94 <USB_GetDescriptor+0x54>
					break;
				case 0x01:
					Address = DESCRIPTOR_ADDRESS(ManufacturerString);
					Size    = pgm_read_byte(&ManufacturerString.Header.Size);
     a86:	ec e6       	ldi	r30, 0x6C	; 108
     a88:	f1 e0       	ldi	r31, 0x01	; 1
     a8a:	84 91       	lpm	r24, Z+
     a8c:	03 c0       	rjmp	.+6      	; 0xa94 <USB_GetDescriptor+0x54>
					break;
				case 0x02:
					Address = DESCRIPTOR_ADDRESS(ProductString);
					Size    = pgm_read_byte(&ProductString.Header.Size);
     a8e:	e6 e8       	ldi	r30, 0x86	; 134
     a90:	f1 e0       	ldi	r31, 0x01	; 1
     a92:	84 91       	lpm	r24, Z+
     a94:	90 e0       	ldi	r25, 0x00	; 0
     a96:	08 c0       	rjmp	.+16     	; 0xaa8 <USB_GetDescriptor+0x68>
     a98:	80 e0       	ldi	r24, 0x00	; 0

		return true;
	}
		
	return false;
}
     a9a:	df 91       	pop	r29
     a9c:	cf 91       	pop	r28
     a9e:	08 95       	ret
					Address = DESCRIPTOR_ADDRESS(ManufacturerString);
					Size    = pgm_read_byte(&ManufacturerString.Header.Size);
					break;
				case 0x02:
					Address = DESCRIPTOR_ADDRESS(ProductString);
					Size    = pgm_read_byte(&ProductString.Header.Size);
     aa0:	e3 e1       	ldi	r30, 0x13	; 19
     aa2:	f1 e0       	ldi	r31, 0x01	; 1
     aa4:	82 e1       	ldi	r24, 0x12	; 18
     aa6:	90 e0       	ldi	r25, 0x00	; 0
			break;
	}
	
	if (Address != NULL)
	{
		*DescriptorAddress = Address;
     aa8:	ed 93       	st	X+, r30
     aaa:	fc 93       	st	X, r31
		*DescriptorSize    = Size;
     aac:	99 83       	std	Y+1, r25	; 0x01
     aae:	88 83       	st	Y, r24
     ab0:	81 e0       	ldi	r24, 0x01	; 1
     ab2:	f3 cf       	rjmp	.-26     	; 0xa9a <USB_GetDescriptor+0x5a>

00000ab4 <Buffer_Initialize>:
*/

#include "RingBuff.h"

void Buffer_Initialize(RingBuff_t* Buffer)
{
     ab4:	fc 01       	movw	r30, r24
	BUFF_ATOMIC_BLOCK
     ab6:	8f b7       	in	r24, 0x3f	; 63
    return 1;
}

static __inline__ uint8_t __iCliRetVal(void)
{
    cli();
     ab8:	f8 94       	cli
	{
		Buffer->TopPtr    = (RingBuff_Data_t*)&Buffer->Buffer;
     aba:	df 01       	movw	r26, r30
     abc:	a0 58       	subi	r26, 0x80	; 128
     abe:	bf 4f       	sbci	r27, 0xFF	; 255
     ac0:	11 96       	adiw	r26, 0x01	; 1
     ac2:	fc 93       	st	X, r31
     ac4:	ee 93       	st	-X, r30
		Buffer->BottomPtr   = (RingBuff_Data_t*)&Buffer->Buffer;
     ac6:	df 01       	movw	r26, r30
     ac8:	ae 57       	subi	r26, 0x7E	; 126
     aca:	bf 4f       	sbci	r27, 0xFF	; 255
     acc:	11 96       	adiw	r26, 0x01	; 1
     ace:	fc 93       	st	X, r31
     ad0:	ee 93       	st	-X, r30
		Buffer->Elements = 0;
     ad2:	ec 57       	subi	r30, 0x7C	; 124
     ad4:	ff 4f       	sbci	r31, 0xFF	; 255
     ad6:	10 82       	st	Z, r1
    (void)__s;
}

static __inline__ void __iRestore(const  uint8_t *__s)
{
    SREG = *__s;
     ad8:	8f bf       	out	0x3f, r24	; 63
    __asm__ volatile ("" ::: "memory");
     ada:	08 95       	ret

00000adc <Buffer_StoreElementOnTop>:
	}
}

void Buffer_StoreElementOnTop(RingBuff_t* Buffer, RingBuff_Data_t Data)
{
     adc:	ac 01       	movw	r20, r24
	BUFF_ATOMIC_BLOCK
     ade:	7f b7       	in	r23, 0x3f	; 63
    return 1;
}

static __inline__ uint8_t __iCliRetVal(void)
{
    cli();
     ae0:	f8 94       	cli
	{
		if (Buffer->Elements == BUFF_LENGTH)//i.e. buffer is full.  So we will remove our oldest data
     ae2:	fc 01       	movw	r30, r24
     ae4:	ec 57       	subi	r30, 0x7C	; 124
     ae6:	ff 4f       	sbci	r31, 0xFF	; 255
     ae8:	80 81       	ld	r24, Z
     aea:	80 38       	cpi	r24, 0x80	; 128
     aec:	99 f4       	brne	.+38     	; 0xb14 <Buffer_StoreElementOnTop+0x38>
		{
			Buffer->BottomPtr++;
     aee:	fa 01       	movw	r30, r20
     af0:	ee 57       	subi	r30, 0x7E	; 126
     af2:	ff 4f       	sbci	r31, 0xFF	; 255
     af4:	80 81       	ld	r24, Z
     af6:	91 81       	ldd	r25, Z+1	; 0x01
     af8:	01 96       	adiw	r24, 0x01	; 1
     afa:	91 83       	std	Z+1, r25	; 0x01
     afc:	80 83       	st	Z, r24

			if (Buffer->BottomPtr == &Buffer->Buffer[BUFF_LENGTH])
     afe:	20 81       	ld	r18, Z
     b00:	31 81       	ldd	r19, Z+1	; 0x01
     b02:	ca 01       	movw	r24, r20
     b04:	80 58       	subi	r24, 0x80	; 128
     b06:	9f 4f       	sbci	r25, 0xFF	; 255
     b08:	28 17       	cp	r18, r24
     b0a:	39 07       	cpc	r19, r25
     b0c:	31 f4       	brne	.+12     	; 0xb1a <Buffer_StoreElementOnTop+0x3e>
			{
				Buffer->BottomPtr = (RingBuff_Data_t*)&Buffer->Buffer;
     b0e:	51 83       	std	Z+1, r21	; 0x01
     b10:	40 83       	st	Z, r20
     b12:	03 c0       	rjmp	.+6      	; 0xb1a <Buffer_StoreElementOnTop+0x3e>
			}
		}
		else
		{
			Buffer->Elements++;
     b14:	80 81       	ld	r24, Z
     b16:	8f 5f       	subi	r24, 0xFF	; 255
     b18:	80 83       	st	Z, r24
		}


		*(Buffer->TopPtr) = Data;
     b1a:	da 01       	movw	r26, r20
     b1c:	a0 58       	subi	r26, 0x80	; 128
     b1e:	bf 4f       	sbci	r27, 0xFF	; 255
     b20:	ed 91       	ld	r30, X+
     b22:	fc 91       	ld	r31, X
     b24:	11 97       	sbiw	r26, 0x01	; 1
     b26:	60 83       	st	Z, r22
		Buffer->TopPtr++;
     b28:	8d 91       	ld	r24, X+
     b2a:	9c 91       	ld	r25, X
     b2c:	11 97       	sbiw	r26, 0x01	; 1
     b2e:	01 96       	adiw	r24, 0x01	; 1
     b30:	11 96       	adiw	r26, 0x01	; 1
     b32:	9c 93       	st	X, r25
     b34:	8e 93       	st	-X, r24

		if (Buffer->TopPtr == &Buffer->Buffer[BUFF_LENGTH])
     b36:	ed 91       	ld	r30, X+
     b38:	fc 91       	ld	r31, X
     b3a:	11 97       	sbiw	r26, 0x01	; 1
     b3c:	ea 17       	cp	r30, r26
     b3e:	fb 07       	cpc	r31, r27
     b40:	11 f4       	brne	.+4      	; 0xb46 <Buffer_StoreElementOnTop+0x6a>
		{
			Buffer->TopPtr = (RingBuff_Data_t*)&Buffer->Buffer;
     b42:	51 83       	std	Z+1, r21	; 0x01
     b44:	40 83       	st	Z, r20
    (void)__s;
}

static __inline__ void __iRestore(const  uint8_t *__s)
{
    SREG = *__s;
     b46:	7f bf       	out	0x3f, r23	; 63
    __asm__ volatile ("" ::: "memory");
     b48:	08 95       	ret

00000b4a <Buffer_GetElementFromTop>:
		}
	}
}

RingBuff_Data_t Buffer_GetElementFromTop(RingBuff_t* Buffer)
{
     b4a:	dc 01       	movw	r26, r24
	RingBuff_Data_t BuffData;

	BUFF_ATOMIC_BLOCK
     b4c:	2f b7       	in	r18, 0x3f	; 63
    return 1;
}

static __inline__ uint8_t __iCliRetVal(void)
{
    cli();
     b4e:	f8 94       	cli
	{
		if (!(Buffer->Elements))
     b50:	ac 57       	subi	r26, 0x7C	; 124
     b52:	bf 4f       	sbci	r27, 0xFF	; 255
     b54:	8c 91       	ld	r24, X
     b56:	a4 58       	subi	r26, 0x84	; 132
     b58:	b0 40       	sbci	r27, 0x00	; 0
     b5a:	88 23       	and	r24, r24
     b5c:	11 f4       	brne	.+4      	; 0xb62 <Buffer_GetElementFromTop+0x18>
    (void)__s;
}

static __inline__ void __iRestore(const  uint8_t *__s)
{
    SREG = *__s;
     b5e:	2f bf       	out	0x3f, r18	; 63
    __asm__ volatile ("" ::: "memory");
     b60:	08 95       	ret
		{
			return 0;
		}

		if(Buffer->TopPtr == (RingBuff_Data_t*)&Buffer->Buffer)//at index 0
     b62:	fd 01       	movw	r30, r26
     b64:	e0 58       	subi	r30, 0x80	; 128
     b66:	ff 4f       	sbci	r31, 0xFF	; 255
     b68:	80 81       	ld	r24, Z
     b6a:	91 81       	ldd	r25, Z+1	; 0x01
     b6c:	8a 17       	cp	r24, r26
     b6e:	9b 07       	cpc	r25, r27
     b70:	39 f4       	brne	.+14     	; 0xb80 <Buffer_GetElementFromTop+0x36>
		{
			Buffer->TopPtr = (RingBuff_Data_t*)&Buffer->Buffer[BUFF_LENGTH-1];//now at the top of the array
     b72:	a1 58       	subi	r26, 0x81	; 129
     b74:	bf 4f       	sbci	r27, 0xFF	; 255
     b76:	b1 83       	std	Z+1, r27	; 0x01
     b78:	a0 83       	st	Z, r26
     b7a:	af 57       	subi	r26, 0x7F	; 127
     b7c:	b0 40       	sbci	r27, 0x00	; 0
     b7e:	05 c0       	rjmp	.+10     	; 0xb8a <Buffer_GetElementFromTop+0x40>
		}
		else
		{
			Buffer->TopPtr--;
     b80:	80 81       	ld	r24, Z
     b82:	91 81       	ldd	r25, Z+1	; 0x01
     b84:	01 97       	sbiw	r24, 0x01	; 1
     b86:	91 83       	std	Z+1, r25	; 0x01
     b88:	80 83       	st	Z, r24
		}

		Buffer->Elements--;
     b8a:	fd 01       	movw	r30, r26
     b8c:	ec 57       	subi	r30, 0x7C	; 124
     b8e:	ff 4f       	sbci	r31, 0xFF	; 255
     b90:	80 81       	ld	r24, Z
     b92:	81 50       	subi	r24, 0x01	; 1
     b94:	80 83       	st	Z, r24

		BuffData = *(Buffer->TopPtr);
     b96:	a0 58       	subi	r26, 0x80	; 128
     b98:	bf 4f       	sbci	r27, 0xFF	; 255
     b9a:	ed 91       	ld	r30, X+
     b9c:	fc 91       	ld	r31, X
     b9e:	80 81       	ld	r24, Z
    (void)__s;
}

static __inline__ void __iRestore(const  uint8_t *__s)
{
    SREG = *__s;
     ba0:	2f bf       	out	0x3f, r18	; 63
    __asm__ volatile ("" ::: "memory");
     ba2:	08 95       	ret

00000ba4 <Buffer_GetElementFromBottom>:
	return BuffData;
}

//if no elements return 0
RingBuff_Data_t Buffer_GetElementFromBottom(RingBuff_t* Buffer)
{
     ba4:	cf 93       	push	r28
     ba6:	df 93       	push	r29
     ba8:	ac 01       	movw	r20, r24
	RingBuff_Data_t BuffData;

	BUFF_ATOMIC_BLOCK
     baa:	6f b7       	in	r22, 0x3f	; 63
    return 1;
}

static __inline__ uint8_t __iCliRetVal(void)
{
    cli();
     bac:	f8 94       	cli
	{
		if (!(Buffer->Elements))
     bae:	ec 01       	movw	r28, r24
     bb0:	cc 57       	subi	r28, 0x7C	; 124
     bb2:	df 4f       	sbci	r29, 0xFF	; 255
     bb4:	88 81       	ld	r24, Y
     bb6:	88 23       	and	r24, r24
     bb8:	19 f4       	brne	.+6      	; 0xbc0 <Buffer_GetElementFromBottom+0x1c>
    (void)__s;
}

static __inline__ void __iRestore(const  uint8_t *__s)
{
    SREG = *__s;
     bba:	6f bf       	out	0x3f, r22	; 63
    __asm__ volatile ("" ::: "memory");
     bbc:	e0 e0       	ldi	r30, 0x00	; 0
     bbe:	1e c0       	rjmp	.+60     	; 0xbfc <Buffer_GetElementFromBottom+0x58>
		  return 0;

		BuffData = *(Buffer->BottomPtr);
     bc0:	da 01       	movw	r26, r20
     bc2:	ae 57       	subi	r26, 0x7E	; 126
     bc4:	bf 4f       	sbci	r27, 0xFF	; 255
     bc6:	ed 91       	ld	r30, X+
     bc8:	fc 91       	ld	r31, X
     bca:	11 97       	sbiw	r26, 0x01	; 1
     bcc:	e0 81       	ld	r30, Z

		Buffer->BottomPtr++;
     bce:	8d 91       	ld	r24, X+
     bd0:	9c 91       	ld	r25, X
     bd2:	11 97       	sbiw	r26, 0x01	; 1
     bd4:	01 96       	adiw	r24, 0x01	; 1
     bd6:	11 96       	adiw	r26, 0x01	; 1
     bd8:	9c 93       	st	X, r25
     bda:	8e 93       	st	-X, r24
		Buffer->Elements--;
     bdc:	88 81       	ld	r24, Y
     bde:	81 50       	subi	r24, 0x01	; 1
     be0:	88 83       	st	Y, r24

		if (Buffer->BottomPtr == &Buffer->Buffer[BUFF_LENGTH])
     be2:	2d 91       	ld	r18, X+
     be4:	3c 91       	ld	r19, X
     be6:	11 97       	sbiw	r26, 0x01	; 1
     be8:	ca 01       	movw	r24, r20
     bea:	80 58       	subi	r24, 0x80	; 128
     bec:	9f 4f       	sbci	r25, 0xFF	; 255
     bee:	28 17       	cp	r18, r24
     bf0:	39 07       	cpc	r19, r25
     bf2:	19 f4       	brne	.+6      	; 0xbfa <Buffer_GetElementFromBottom+0x56>
		  Buffer->BottomPtr = (RingBuff_Data_t*)&Buffer->Buffer;
     bf4:	11 96       	adiw	r26, 0x01	; 1
     bf6:	5c 93       	st	X, r21
     bf8:	4e 93       	st	-X, r20
    (void)__s;
}

static __inline__ void __iRestore(const  uint8_t *__s)
{
    SREG = *__s;
     bfa:	6f bf       	out	0x3f, r22	; 63
    __asm__ volatile ("" ::: "memory");
     bfc:	8e 2f       	mov	r24, r30
     bfe:	df 91       	pop	r29
     c00:	cf 91       	pop	r28
     c02:	08 95       	ret

00000c04 <Buffer_StoreElementOnBottom>:

	return BuffData;
}
//does not check to see if the buffer is full.
void Buffer_StoreElementOnBottom(RingBuff_t* Buffer, RingBuff_Data_t Data)
{
     c04:	dc 01       	movw	r26, r24
	BUFF_ATOMIC_BLOCK
     c06:	2f b7       	in	r18, 0x3f	; 63
    return 1;
}

static __inline__ uint8_t __iCliRetVal(void)
{
    cli();
     c08:	f8 94       	cli
	{
		if(Buffer->Elements == BUFF_LENGTH)//i.e. buffer is full.  So we have no room
     c0a:	ac 57       	subi	r26, 0x7C	; 124
     c0c:	bf 4f       	sbci	r27, 0xFF	; 255
     c0e:	8c 91       	ld	r24, X
     c10:	a4 58       	subi	r26, 0x84	; 132
     c12:	b0 40       	sbci	r27, 0x00	; 0
     c14:	80 38       	cpi	r24, 0x80	; 128
     c16:	e9 f0       	breq	.+58     	; 0xc52 <Buffer_StoreElementOnBottom+0x4e>
		{
			return;
		}
		if(Buffer->BottomPtr == (RingBuff_Data_t*)&Buffer->Buffer)
     c18:	fd 01       	movw	r30, r26
     c1a:	ee 57       	subi	r30, 0x7E	; 126
     c1c:	ff 4f       	sbci	r31, 0xFF	; 255
     c1e:	80 81       	ld	r24, Z
     c20:	91 81       	ldd	r25, Z+1	; 0x01
     c22:	8a 17       	cp	r24, r26
     c24:	9b 07       	cpc	r25, r27
     c26:	39 f4       	brne	.+14     	; 0xc36 <Buffer_StoreElementOnBottom+0x32>
		{
			Buffer->BottomPtr = (RingBuff_Data_t*)&Buffer->Buffer[BUFF_LENGTH-1];
     c28:	a1 58       	subi	r26, 0x81	; 129
     c2a:	bf 4f       	sbci	r27, 0xFF	; 255
     c2c:	b1 83       	std	Z+1, r27	; 0x01
     c2e:	a0 83       	st	Z, r26
     c30:	af 57       	subi	r26, 0x7F	; 127
     c32:	b0 40       	sbci	r27, 0x00	; 0
     c34:	05 c0       	rjmp	.+10     	; 0xc40 <Buffer_StoreElementOnBottom+0x3c>
		}
		else
		{
			Buffer->BottomPtr--;
     c36:	80 81       	ld	r24, Z
     c38:	91 81       	ldd	r25, Z+1	; 0x01
     c3a:	01 97       	sbiw	r24, 0x01	; 1
     c3c:	91 83       	std	Z+1, r25	; 0x01
     c3e:	80 83       	st	Z, r24
		}

		*(Buffer->BottomPtr) = Data;
     c40:	ae 57       	subi	r26, 0x7E	; 126
     c42:	bf 4f       	sbci	r27, 0xFF	; 255
     c44:	ed 91       	ld	r30, X+
     c46:	fd 91       	ld	r31, X+
     c48:	60 83       	st	Z, r22
		Buffer->Elements++;
     c4a:	fd 01       	movw	r30, r26
     c4c:	80 81       	ld	r24, Z
     c4e:	8f 5f       	subi	r24, 0xFF	; 255
     c50:	80 83       	st	Z, r24
    (void)__s;
}

static __inline__ void __iRestore(const  uint8_t *__s)
{
    SREG = *__s;
     c52:	2f bf       	out	0x3f, r18	; 63
    __asm__ volatile ("" ::: "memory");
     c54:	08 95       	ret

00000c56 <Set_High>:
}



void Set_High(uint8_t x)
{
     c56:	90 91 5b 01 	lds	r25, 0x015B
     c5a:	92 33       	cpi	r25, 0x32	; 50
     c5c:	41 f0       	breq	.+16     	; 0xc6e <Set_High+0x18>
     c5e:	93 33       	cpi	r25, 0x33	; 51
     c60:	61 f0       	breq	.+24     	; 0xc7a <Set_High+0x24>
     c62:	91 33       	cpi	r25, 0x31	; 49
     c64:	79 f4       	brne	.+30     	; 0xc84 <Set_High+0x2e>
	switch(I2C_Port)
	{
		case '1':
			if(x == SCL)
     c66:	88 23       	and	r24, r24
     c68:	31 f0       	breq	.+12     	; 0xc76 <Set_High+0x20>
			{
				DDRD &= ~(1<<5);
			}
			else
			{
				DDRD &= ~(1<<6);
     c6a:	56 98       	cbi	0x0a, 6	; 10
     c6c:	08 95       	ret
			}
			break;
		case '2':
			if(x == SCL)
     c6e:	88 23       	and	r24, r24
     c70:	11 f4       	brne	.+4      	; 0xc76 <Set_High+0x20>
			{
				DDRD &= ~(1<<4);
     c72:	54 98       	cbi	0x0a, 4	; 10
     c74:	08 95       	ret
			}
			else
			{
				DDRD &= ~(1<<5);
     c76:	55 98       	cbi	0x0a, 5	; 10
     c78:	08 95       	ret
			}
			break;
		case '3':
			if(x == SCL)
     c7a:	88 23       	and	r24, r24
     c7c:	11 f4       	brne	.+4      	; 0xc82 <Set_High+0x2c>
			{
				DDRB &= ~(1<<3);
     c7e:	23 98       	cbi	0x04, 3	; 4
     c80:	08 95       	ret
			}
			else
			{
				DDRB &= ~(1<<0);
     c82:	20 98       	cbi	0x04, 0	; 4
     c84:	08 95       	ret

00000c86 <I2C_Init>:
volatile uint8_t I2C_Port = '1';
/*
 * This function will set up the I2C port pins to their correct values
 */ 
void I2C_Init(void)
{
     c86:	80 91 5b 01 	lds	r24, 0x015B
     c8a:	82 33       	cpi	r24, 0x32	; 50
     c8c:	39 f0       	breq	.+14     	; 0xc9c <I2C_Init+0x16>
     c8e:	83 33       	cpi	r24, 0x33	; 51
     c90:	49 f0       	breq	.+18     	; 0xca4 <I2C_Init+0x1e>
     c92:	81 33       	cpi	r24, 0x31	; 49
     c94:	51 f4       	brne	.+20     	; 0xcaa <I2C_Init+0x24>
	
	switch(I2C_Port)
	{
		case '1':
			PORTD &= ~((1<<5) | (1<<6));
     c96:	8b b1       	in	r24, 0x0b	; 11
     c98:	8f 79       	andi	r24, 0x9F	; 159
     c9a:	02 c0       	rjmp	.+4      	; 0xca0 <I2C_Init+0x1a>
			break;
		case '2':
			PORTD &= ~((1<<4) | (1<<5));
     c9c:	8b b1       	in	r24, 0x0b	; 11
     c9e:	8f 7c       	andi	r24, 0xCF	; 207
     ca0:	8b b9       	out	0x0b, r24	; 11
     ca2:	03 c0       	rjmp	.+6      	; 0xcaa <I2C_Init+0x24>
			break;
		case '3':
			PORTB &= ~((1<<0) | (1<<3));
     ca4:	85 b1       	in	r24, 0x05	; 5
     ca6:	86 7f       	andi	r24, 0xF6	; 246
     ca8:	85 b9       	out	0x05, r24	; 5
			break;
	}	
	
	Set_High(SDA);
     caa:	81 e0       	ldi	r24, 0x01	; 1
     cac:	d4 df       	rcall	.-88     	; 0xc56 <Set_High>
	Set_High(SCL);//ensure that the I2C lines are released
     cae:	80 e0       	ldi	r24, 0x00	; 0
}
     cb0:	d2 cf       	rjmp	.-92     	; 0xc56 <Set_High>

00000cb2 <Set_Low>:
			break;
	}

} 
void Set_Low(uint8_t x)
{
     cb2:	90 91 5b 01 	lds	r25, 0x015B
     cb6:	92 33       	cpi	r25, 0x32	; 50
     cb8:	41 f0       	breq	.+16     	; 0xcca <Set_Low+0x18>
     cba:	93 33       	cpi	r25, 0x33	; 51
     cbc:	61 f0       	breq	.+24     	; 0xcd6 <Set_Low+0x24>
     cbe:	91 33       	cpi	r25, 0x31	; 49
     cc0:	79 f4       	brne	.+30     	; 0xce0 <Set_Low+0x2e>
	switch(I2C_Port)
	{
		case '1'://to molex
			if(x == SCL)
     cc2:	88 23       	and	r24, r24
     cc4:	31 f0       	breq	.+12     	; 0xcd2 <Set_Low+0x20>
			{
				DDRD |= (1<<5);
			}
			else
			{
				DDRD |= (1<<6);
     cc6:	56 9a       	sbi	0x0a, 6	; 10
     cc8:	08 95       	ret
			}
			break;
		case '2'://to pins
			if(x == SCL)
     cca:	88 23       	and	r24, r24
     ccc:	11 f4       	brne	.+4      	; 0xcd2 <Set_Low+0x20>
			{
				DDRD |= (1<<4);
     cce:	54 9a       	sbi	0x0a, 4	; 10
     cd0:	08 95       	ret
			}
			else
			{
				DDRD |= (1<<5);
     cd2:	55 9a       	sbi	0x0a, 5	; 10
     cd4:	08 95       	ret
			}
			break;
		case '3'://to motor
			if(x == SCL)
     cd6:	88 23       	and	r24, r24
     cd8:	11 f4       	brne	.+4      	; 0xcde <Set_Low+0x2c>
			{
				DDRB |= (1<<3);
     cda:	23 9a       	sbi	0x04, 3	; 4
     cdc:	08 95       	ret
			}
			else
			{
				DDRB |= (1<<0);
     cde:	20 9a       	sbi	0x04, 0	; 4
     ce0:	08 95       	ret

00000ce2 <I2C_Pulse_SCL>:

/*
 * This function will pulse the SCL line so that the slave can read in/out its data
 */
void I2C_Pulse_SCL(void)
{	
     ce2:	df 93       	push	r29
     ce4:	cf 93       	push	r28
     ce6:	0f 92       	push	r0
     ce8:	cd b7       	in	r28, 0x3d	; 61
     cea:	de b7       	in	r29, 0x3e	; 62
	//  Set SCL high
	Set_High(SCL);
     cec:	80 e0       	ldi	r24, 0x00	; 0
     cee:	b3 df       	rcall	.-154    	; 0xc56 <Set_High>
     cf0:	91 e0       	ldi	r25, 0x01	; 1
{
	volatile uint8_t a;
		
	while(delay > 0)
	{
		for ( a = 1;a<10;a++)
     cf2:	21 e0       	ldi	r18, 0x01	; 1
     cf4:	29 83       	std	Y+1, r18	; 0x01
     cf6:	03 c0       	rjmp	.+6      	; 0xcfe <I2C_Pulse_SCL+0x1c>
     cf8:	89 81       	ldd	r24, Y+1	; 0x01
     cfa:	8f 5f       	subi	r24, 0xFF	; 255
     cfc:	89 83       	std	Y+1, r24	; 0x01
     cfe:	89 81       	ldd	r24, Y+1	; 0x01
     d00:	8a 30       	cpi	r24, 0x0A	; 10
     d02:	d0 f3       	brcs	.-12     	; 0xcf8 <I2C_Pulse_SCL+0x16>
		{
		
				;
			
		}
		delay--;
     d04:	91 50       	subi	r25, 0x01	; 1

void Delay(uint8_t delay)
{
	volatile uint8_t a;
		
	while(delay > 0)
     d06:	b1 f7       	brne	.-20     	; 0xcf4 <I2C_Pulse_SCL+0x12>
	
	//  Delay
	Delay(I2C_PERIOD);
	
	// Set SCL Low
	Set_Low(SCL);
     d08:	80 e0       	ldi	r24, 0x00	; 0
     d0a:	d3 df       	rcall	.-90     	; 0xcb2 <Set_Low>
     d0c:	91 e0       	ldi	r25, 0x01	; 1
{
	volatile uint8_t a;
		
	while(delay > 0)
	{
		for ( a = 1;a<10;a++)
     d0e:	21 e0       	ldi	r18, 0x01	; 1
     d10:	29 83       	std	Y+1, r18	; 0x01
     d12:	03 c0       	rjmp	.+6      	; 0xd1a <I2C_Pulse_SCL+0x38>
     d14:	89 81       	ldd	r24, Y+1	; 0x01
     d16:	8f 5f       	subi	r24, 0xFF	; 255
     d18:	89 83       	std	Y+1, r24	; 0x01
     d1a:	89 81       	ldd	r24, Y+1	; 0x01
     d1c:	8a 30       	cpi	r24, 0x0A	; 10
     d1e:	d0 f3       	brcs	.-12     	; 0xd14 <I2C_Pulse_SCL+0x32>
		{
		
				;
			
		}
		delay--;
     d20:	91 50       	subi	r25, 0x01	; 1

void Delay(uint8_t delay)
{
	volatile uint8_t a;
		
	while(delay > 0)
     d22:	b1 f7       	brne	.-20     	; 0xd10 <I2C_Pulse_SCL+0x2e>
	
	// Set SCL Low
	Set_Low(SCL);
	
	Delay(I2C_PERIOD);
}
     d24:	0f 90       	pop	r0
     d26:	cf 91       	pop	r28
     d28:	df 91       	pop	r29
     d2a:	08 95       	ret

00000d2c <I2C_Send_NACK>:
	I2C_Pulse_SCL()	;
	Set_High(SDA);//release the line
}

void I2C_Send_NACK(void)
{
     d2c:	81 e0       	ldi	r24, 0x01	; 1
     d2e:	93 df       	rcall	.-218    	; 0xc56 <Set_High>
	Set_High(SDA);
	//may want a bit of a delay here?
	I2C_Pulse_SCL();
     d30:	d8 cf       	rjmp	.-80     	; 0xce2 <I2C_Pulse_SCL>

00000d32 <I2C_Start>:
	
/*
 * This places a start condition onto the I2C lines
 */
void I2C_Start(void)
{
     d32:	df 93       	push	r29
     d34:	cf 93       	push	r28
     d36:	0f 92       	push	r0
     d38:	cd b7       	in	r28, 0x3d	; 61
     d3a:	de b7       	in	r29, 0x3e	; 62
	Set_Low(SDA);
     d3c:	81 e0       	ldi	r24, 0x01	; 1
     d3e:	b9 df       	rcall	.-142    	; 0xcb2 <Set_Low>
     d40:	91 e0       	ldi	r25, 0x01	; 1
{
	volatile uint8_t a;
		
	while(delay > 0)
	{
		for ( a = 1;a<10;a++)
     d42:	21 e0       	ldi	r18, 0x01	; 1
     d44:	29 83       	std	Y+1, r18	; 0x01
     d46:	03 c0       	rjmp	.+6      	; 0xd4e <I2C_Start+0x1c>
     d48:	89 81       	ldd	r24, Y+1	; 0x01
     d4a:	8f 5f       	subi	r24, 0xFF	; 255
     d4c:	89 83       	std	Y+1, r24	; 0x01
     d4e:	89 81       	ldd	r24, Y+1	; 0x01
     d50:	8a 30       	cpi	r24, 0x0A	; 10
     d52:	d0 f3       	brcs	.-12     	; 0xd48 <I2C_Start+0x16>
		{
		
				;
			
		}
		delay--;
     d54:	91 50       	subi	r25, 0x01	; 1

void Delay(uint8_t delay)
{
	volatile uint8_t a;
		
	while(delay > 0)
     d56:	b1 f7       	brne	.-20     	; 0xd44 <I2C_Start+0x12>
 */
void I2C_Start(void)
{
	Set_Low(SDA);
	Delay(I2C_PERIOD);
	Set_Low(SCL);
     d58:	80 e0       	ldi	r24, 0x00	; 0
     d5a:	ab df       	rcall	.-170    	; 0xcb2 <Set_Low>
     d5c:	91 e0       	ldi	r25, 0x01	; 1
{
	volatile uint8_t a;
		
	while(delay > 0)
	{
		for ( a = 1;a<10;a++)
     d5e:	21 e0       	ldi	r18, 0x01	; 1
     d60:	29 83       	std	Y+1, r18	; 0x01
     d62:	03 c0       	rjmp	.+6      	; 0xd6a <I2C_Start+0x38>
     d64:	89 81       	ldd	r24, Y+1	; 0x01
     d66:	8f 5f       	subi	r24, 0xFF	; 255
     d68:	89 83       	std	Y+1, r24	; 0x01
     d6a:	89 81       	ldd	r24, Y+1	; 0x01
     d6c:	8a 30       	cpi	r24, 0x0A	; 10
     d6e:	d0 f3       	brcs	.-12     	; 0xd64 <I2C_Start+0x32>
		{
		
				;
			
		}
		delay--;
     d70:	91 50       	subi	r25, 0x01	; 1

void Delay(uint8_t delay)
{
	volatile uint8_t a;
		
	while(delay > 0)
     d72:	b1 f7       	brne	.-20     	; 0xd60 <I2C_Start+0x2e>
{
	Set_Low(SDA);
	Delay(I2C_PERIOD);
	Set_Low(SCL);
	Delay(I2C_PERIOD);
}
     d74:	0f 90       	pop	r0
     d76:	cf 91       	pop	r28
     d78:	df 91       	pop	r29
     d7a:	08 95       	ret

00000d7c <I2C_Send_ACK>:

/*
 * This function will place an ACK on the bus for the slave to read
 */
void I2C_Send_ACK(void)
{
     d7c:	81 e0       	ldi	r24, 0x01	; 1
     d7e:	99 df       	rcall	.-206    	; 0xcb2 <Set_Low>
	Set_Low(SDA);
	//may want a bit of a delay here?
	I2C_Pulse_SCL()	;
     d80:	b0 df       	rcall	.-160    	; 0xce2 <I2C_Pulse_SCL>
	Set_High(SDA);//release the line
     d82:	81 e0       	ldi	r24, 0x01	; 1
}
     d84:	68 cf       	rjmp	.-304    	; 0xc56 <Set_High>

00000d86 <Wait_On_SCL_Low>:
			break;
	}
}

void Wait_On_SCL_Low(void)
{
     d86:	80 91 5b 01 	lds	r24, 0x015B
     d8a:	82 33       	cpi	r24, 0x32	; 50
     d8c:	39 f0       	breq	.+14     	; 0xd9c <Wait_On_SCL_Low+0x16>
     d8e:	83 33       	cpi	r24, 0x33	; 51
     d90:	41 f0       	breq	.+16     	; 0xda2 <Wait_On_SCL_Low+0x1c>
     d92:	81 33       	cpi	r24, 0x31	; 49
     d94:	41 f4       	brne	.+16     	; 0xda6 <Wait_On_SCL_Low+0x20>
	switch(I2C_Port)
	{
		case '1'://to molex
			while( !(PIND & (1<<5)) );	
     d96:	4d 9b       	sbis	0x09, 5	; 9
     d98:	fe cf       	rjmp	.-4      	; 0xd96 <Wait_On_SCL_Low+0x10>
     d9a:	08 95       	ret
			break;
		case '2'://to pins
			while( !(PIND & (1<<4)) );	
     d9c:	4c 9b       	sbis	0x09, 4	; 9
     d9e:	fe cf       	rjmp	.-4      	; 0xd9c <Wait_On_SCL_Low+0x16>
     da0:	08 95       	ret
			break;
		case '3'://to motor
			while( !(PINB & (1<<3)) );	
     da2:	1b 9b       	sbis	0x03, 3	; 3
     da4:	fe cf       	rjmp	.-4      	; 0xda2 <Wait_On_SCL_Low+0x1c>
     da6:	08 95       	ret

00000da8 <I2C_Pulse_SCL_After_ACK>:
 *
 * Returns:	0 if everything is ok
 *			1 if there was a timeout
 */
uint8_t I2C_Pulse_SCL_After_ACK(void)
{	
     da8:	df 93       	push	r29
     daa:	cf 93       	push	r28
     dac:	0f 92       	push	r0
     dae:	cd b7       	in	r28, 0x3d	; 61
     db0:	de b7       	in	r29, 0x3e	; 62
	//  Set SCL high
	Set_High(SCL);
     db2:	80 e0       	ldi	r24, 0x00	; 0
     db4:	50 df       	rcall	.-352    	; 0xc56 <Set_High>
	
	Wait_On_SCL_Low();//wait for the Slave to allow us to move on
     db6:	e7 df       	rcall	.-50     	; 0xd86 <Wait_On_SCL_Low>
     db8:	91 e0       	ldi	r25, 0x01	; 1
{
	volatile uint8_t a;
		
	while(delay > 0)
	{
		for ( a = 1;a<10;a++)
     dba:	21 e0       	ldi	r18, 0x01	; 1
     dbc:	29 83       	std	Y+1, r18	; 0x01
     dbe:	03 c0       	rjmp	.+6      	; 0xdc6 <I2C_Pulse_SCL_After_ACK+0x1e>
     dc0:	89 81       	ldd	r24, Y+1	; 0x01
     dc2:	8f 5f       	subi	r24, 0xFF	; 255
     dc4:	89 83       	std	Y+1, r24	; 0x01
     dc6:	89 81       	ldd	r24, Y+1	; 0x01
     dc8:	8a 30       	cpi	r24, 0x0A	; 10
     dca:	d0 f3       	brcs	.-12     	; 0xdc0 <I2C_Pulse_SCL_After_ACK+0x18>
		{
		
				;
			
		}
		delay--;
     dcc:	91 50       	subi	r25, 0x01	; 1

void Delay(uint8_t delay)
{
	volatile uint8_t a;
		
	while(delay > 0)
     dce:	b1 f7       	brne	.-20     	; 0xdbc <I2C_Pulse_SCL_After_ACK+0x14>
	
	//  Delay
	Delay(I2C_PERIOD);
	
	// Set SCL Low
	Set_Low(SCL);
     dd0:	80 e0       	ldi	r24, 0x00	; 0
     dd2:	6f df       	rcall	.-290    	; 0xcb2 <Set_Low>
     dd4:	91 e0       	ldi	r25, 0x01	; 1
{
	volatile uint8_t a;
		
	while(delay > 0)
	{
		for ( a = 1;a<10;a++)
     dd6:	21 e0       	ldi	r18, 0x01	; 1
     dd8:	29 83       	std	Y+1, r18	; 0x01
     dda:	03 c0       	rjmp	.+6      	; 0xde2 <I2C_Pulse_SCL_After_ACK+0x3a>
     ddc:	89 81       	ldd	r24, Y+1	; 0x01
     dde:	8f 5f       	subi	r24, 0xFF	; 255
     de0:	89 83       	std	Y+1, r24	; 0x01
     de2:	89 81       	ldd	r24, Y+1	; 0x01
     de4:	8a 30       	cpi	r24, 0x0A	; 10
     de6:	d0 f3       	brcs	.-12     	; 0xddc <I2C_Pulse_SCL_After_ACK+0x34>
		{
		
				;
			
		}
		delay--;
     de8:	91 50       	subi	r25, 0x01	; 1

void Delay(uint8_t delay)
{
	volatile uint8_t a;
		
	while(delay > 0)
     dea:	b1 f7       	brne	.-20     	; 0xdd8 <I2C_Pulse_SCL_After_ACK+0x30>
	Set_Low(SCL);
	
	Delay(I2C_PERIOD);

	return 0;
}
     dec:	80 e0       	ldi	r24, 0x00	; 0
     dee:	0f 90       	pop	r0
     df0:	cf 91       	pop	r28
     df2:	df 91       	pop	r29
     df4:	08 95       	ret

00000df6 <I2C_Send_Byte>:
 *
 * Returns:	1 if there was a timeout
 *			0 otherwise
 */
uint8_t I2C_Send_Byte(uint8_t data)
{
     df6:	0f 93       	push	r16
     df8:	1f 93       	push	r17
     dfa:	18 2f       	mov	r17, r24
	uint8_t i;

	
	if( data & 0x80)
     dfc:	87 ff       	sbrs	r24, 7
     dfe:	03 c0       	rjmp	.+6      	; 0xe06 <I2C_Send_Byte+0x10>
	{
		Set_High(SDA);
     e00:	81 e0       	ldi	r24, 0x01	; 1
     e02:	29 df       	rcall	.-430    	; 0xc56 <Set_High>
     e04:	02 c0       	rjmp	.+4      	; 0xe0a <I2C_Send_Byte+0x14>
	}
	else
	{
		Set_Low(SDA);
     e06:	81 e0       	ldi	r24, 0x01	; 1
     e08:	54 df       	rcall	.-344    	; 0xcb2 <Set_Low>
	}
		
	if(I2C_Pulse_SCL_After_ACK())//ensure that the slave is not holding the SCL line to force us to wait
     e0a:	ce df       	rcall	.-100    	; 0xda8 <I2C_Pulse_SCL_After_ACK>
     e0c:	88 23       	and	r24, r24
     e0e:	11 f0       	breq	.+4      	; 0xe14 <I2C_Send_Byte+0x1e>
     e10:	81 e0       	ldi	r24, 0x01	; 1
     e12:	13 c0       	rjmp	.+38     	; 0xe3a <I2C_Send_Byte+0x44>
	{
		return 1;
	}
	data <<= 1;//shift the next data bit up
     e14:	01 2f       	mov	r16, r17
     e16:	00 0f       	add	r16, r16
     e18:	11 e0       	ldi	r17, 0x01	; 1
	
	for(i = 1; i < 8; i++)//write out each data bit, MSB first
	{
		if( data & 0x80)
     e1a:	07 ff       	sbrs	r16, 7
     e1c:	03 c0       	rjmp	.+6      	; 0xe24 <I2C_Send_Byte+0x2e>
		{
			Set_High(SDA);
     e1e:	81 e0       	ldi	r24, 0x01	; 1
     e20:	1a df       	rcall	.-460    	; 0xc56 <Set_High>
     e22:	02 c0       	rjmp	.+4      	; 0xe28 <I2C_Send_Byte+0x32>
		}
		else
		{
			Set_Low(SDA);
     e24:	81 e0       	ldi	r24, 0x01	; 1
     e26:	45 df       	rcall	.-374    	; 0xcb2 <Set_Low>
		}
		
		I2C_Pulse_SCL();//no checking to see if the slave is holding the SL line down
     e28:	5c df       	rcall	.-328    	; 0xce2 <I2C_Pulse_SCL>
	{
		return 1;
	}
	data <<= 1;//shift the next data bit up
	
	for(i = 1; i < 8; i++)//write out each data bit, MSB first
     e2a:	1f 5f       	subi	r17, 0xFF	; 255
     e2c:	18 30       	cpi	r17, 0x08	; 8
     e2e:	11 f0       	breq	.+4      	; 0xe34 <I2C_Send_Byte+0x3e>
		{
			Set_Low(SDA);
		}
		
		I2C_Pulse_SCL();//no checking to see if the slave is holding the SL line down
		data <<= 1;//shift the next data bit up
     e30:	00 0f       	add	r16, r16
     e32:	f3 cf       	rjmp	.-26     	; 0xe1a <I2C_Send_Byte+0x24>
	}

	Set_High(SDA);//release line
     e34:	81 e0       	ldi	r24, 0x01	; 1
     e36:	0f df       	rcall	.-482    	; 0xc56 <Set_High>
     e38:	80 e0       	ldi	r24, 0x00	; 0

	return 0;

}
     e3a:	1f 91       	pop	r17
     e3c:	0f 91       	pop	r16
     e3e:	08 95       	ret

00000e40 <I2C_Stop>:

/*
 * This function places a stop condition onto the I2C bus
 */
void I2C_Stop(void)
{
     e40:	df 93       	push	r29
     e42:	cf 93       	push	r28
     e44:	0f 92       	push	r0
     e46:	cd b7       	in	r28, 0x3d	; 61
     e48:	de b7       	in	r29, 0x3e	; 62
	
	Set_Low(SDA);
     e4a:	81 e0       	ldi	r24, 0x01	; 1
     e4c:	32 df       	rcall	.-412    	; 0xcb2 <Set_Low>
     e4e:	91 e0       	ldi	r25, 0x01	; 1
{
	volatile uint8_t a;
		
	while(delay > 0)
	{
		for ( a = 1;a<10;a++)
     e50:	21 e0       	ldi	r18, 0x01	; 1
     e52:	29 83       	std	Y+1, r18	; 0x01
     e54:	03 c0       	rjmp	.+6      	; 0xe5c <I2C_Stop+0x1c>
     e56:	89 81       	ldd	r24, Y+1	; 0x01
     e58:	8f 5f       	subi	r24, 0xFF	; 255
     e5a:	89 83       	std	Y+1, r24	; 0x01
     e5c:	89 81       	ldd	r24, Y+1	; 0x01
     e5e:	8a 30       	cpi	r24, 0x0A	; 10
     e60:	d0 f3       	brcs	.-12     	; 0xe56 <I2C_Stop+0x16>
		{
		
				;
			
		}
		delay--;
     e62:	91 50       	subi	r25, 0x01	; 1

void Delay(uint8_t delay)
{
	volatile uint8_t a;
		
	while(delay > 0)
     e64:	b1 f7       	brne	.-20     	; 0xe52 <I2C_Stop+0x12>
void I2C_Stop(void)
{
	
	Set_Low(SDA);
	Delay(I2C_PERIOD);
	Set_High(SCL);
     e66:	80 e0       	ldi	r24, 0x00	; 0
     e68:	f6 de       	rcall	.-532    	; 0xc56 <Set_High>
	Wait_On_SCL_Low();//wait for the Slave to allow us to move on
     e6a:	8d df       	rcall	.-230    	; 0xd86 <Wait_On_SCL_Low>
     e6c:	91 e0       	ldi	r25, 0x01	; 1
{
	volatile uint8_t a;
		
	while(delay > 0)
	{
		for ( a = 1;a<10;a++)
     e6e:	21 e0       	ldi	r18, 0x01	; 1
     e70:	29 83       	std	Y+1, r18	; 0x01
     e72:	03 c0       	rjmp	.+6      	; 0xe7a <I2C_Stop+0x3a>
     e74:	89 81       	ldd	r24, Y+1	; 0x01
     e76:	8f 5f       	subi	r24, 0xFF	; 255
     e78:	89 83       	std	Y+1, r24	; 0x01
     e7a:	89 81       	ldd	r24, Y+1	; 0x01
     e7c:	8a 30       	cpi	r24, 0x0A	; 10
     e7e:	d0 f3       	brcs	.-12     	; 0xe74 <I2C_Stop+0x34>
		{
		
				;
			
		}
		delay--;
     e80:	91 50       	subi	r25, 0x01	; 1

void Delay(uint8_t delay)
{
	volatile uint8_t a;
		
	while(delay > 0)
     e82:	b1 f7       	brne	.-20     	; 0xe70 <I2C_Stop+0x30>
	Set_Low(SDA);
	Delay(I2C_PERIOD);
	Set_High(SCL);
	Wait_On_SCL_Low();//wait for the Slave to allow us to move on
	Delay(I2C_PERIOD);
	Set_High(SDA);
     e84:	81 e0       	ldi	r24, 0x01	; 1
     e86:	e7 de       	rcall	.-562    	; 0xc56 <Set_High>
     e88:	91 e0       	ldi	r25, 0x01	; 1
{
	volatile uint8_t a;
		
	while(delay > 0)
	{
		for ( a = 1;a<10;a++)
     e8a:	21 e0       	ldi	r18, 0x01	; 1
     e8c:	29 83       	std	Y+1, r18	; 0x01
     e8e:	03 c0       	rjmp	.+6      	; 0xe96 <I2C_Stop+0x56>
     e90:	89 81       	ldd	r24, Y+1	; 0x01
     e92:	8f 5f       	subi	r24, 0xFF	; 255
     e94:	89 83       	std	Y+1, r24	; 0x01
     e96:	89 81       	ldd	r24, Y+1	; 0x01
     e98:	8a 30       	cpi	r24, 0x0A	; 10
     e9a:	d0 f3       	brcs	.-12     	; 0xe90 <I2C_Stop+0x50>
		{
		
				;
			
		}
		delay--;
     e9c:	91 50       	subi	r25, 0x01	; 1

void Delay(uint8_t delay)
{
	volatile uint8_t a;
		
	while(delay > 0)
     e9e:	b1 f7       	brne	.-20     	; 0xe8c <I2C_Stop+0x4c>
	Set_High(SCL);
	Wait_On_SCL_Low();//wait for the Slave to allow us to move on
	Delay(I2C_PERIOD);
	Set_High(SDA);
	Delay(I2C_PERIOD);
}
     ea0:	0f 90       	pop	r0
     ea2:	cf 91       	pop	r28
     ea4:	df 91       	pop	r29
     ea6:	08 95       	ret

00000ea8 <I2C_Pin_Value>:
	}
}


uint8_t I2C_Pin_Value(uint8_t x)
{
     ea8:	90 91 5b 01 	lds	r25, 0x015B
     eac:	92 33       	cpi	r25, 0x32	; 50
     eae:	59 f0       	breq	.+22     	; 0xec6 <I2C_Pin_Value+0x1e>
     eb0:	93 33       	cpi	r25, 0x33	; 51
     eb2:	89 f0       	breq	.+34     	; 0xed6 <I2C_Pin_Value+0x2e>
     eb4:	91 33       	cpi	r25, 0x31	; 49
     eb6:	11 f0       	breq	.+4      	; 0xebc <I2C_Pin_Value+0x14>
     eb8:	80 e0       	ldi	r24, 0x00	; 0
     eba:	08 95       	ret
	switch(I2C_Port)
	{
		case '1'://to molex
			if(x == SCL)
     ebc:	88 23       	and	r24, r24
     ebe:	41 f0       	breq	.+16     	; 0xed0 <I2C_Pin_Value+0x28>
			{
				return (PIND & (1<<5));
			}
			else
			{
				return (PIND & (1<<6));
     ec0:	89 b1       	in	r24, 0x09	; 9
     ec2:	80 74       	andi	r24, 0x40	; 64
     ec4:	08 95       	ret
			}
			break;
		case '2'://to pins
			if(x == SCL)
     ec6:	88 23       	and	r24, r24
     ec8:	19 f4       	brne	.+6      	; 0xed0 <I2C_Pin_Value+0x28>
			{
				return (PIND & (1<<4));
     eca:	89 b1       	in	r24, 0x09	; 9
     ecc:	80 71       	andi	r24, 0x10	; 16
     ece:	08 95       	ret
			}
			else
			{
				return (PIND & (1<<5));
     ed0:	89 b1       	in	r24, 0x09	; 9
     ed2:	80 72       	andi	r24, 0x20	; 32
     ed4:	08 95       	ret
			}
			break;
		case '3'://to motor
			if(x == SCL)
     ed6:	88 23       	and	r24, r24
     ed8:	19 f4       	brne	.+6      	; 0xee0 <I2C_Pin_Value+0x38>
			{
				return (PINB & (1<<3));
     eda:	83 b1       	in	r24, 0x03	; 3
     edc:	88 70       	andi	r24, 0x08	; 8
     ede:	08 95       	ret
			}
			else
			{
				return (PINB & (1<<0));
     ee0:	83 b1       	in	r24, 0x03	; 3
     ee2:	81 70       	andi	r24, 0x01	; 1
			}
			break;
	}
	return 0;
}
     ee4:	08 95       	ret

00000ee6 <I2C_Receive_Byte>:
 * it is ready.  You can enable a timeout to ensure that the Master does not wait to long.
 *
 * Returns:	The 8 bit databyte read in
 */
uint8_t I2C_Receive_Byte(void)
{
     ee6:	0f 93       	push	r16
     ee8:	1f 93       	push	r17
     eea:	df 93       	push	r29
     eec:	cf 93       	push	r28
     eee:	0f 92       	push	r0
     ef0:	cd b7       	in	r28, 0x3d	; 61
     ef2:	de b7       	in	r29, 0x3e	; 62
	uint8_t i;
	uint8_t received = 0x00;
	
	Set_High(SCL);
     ef4:	80 e0       	ldi	r24, 0x00	; 0
     ef6:	af de       	rcall	.-674    	; 0xc56 <Set_High>
	
	Wait_On_SCL_Low();//wait for the Slave to allow us to move on
     ef8:	46 df       	rcall	.-372    	; 0xd86 <Wait_On_SCL_Low>
     efa:	91 e0       	ldi	r25, 0x01	; 1
{
	volatile uint8_t a;
		
	while(delay > 0)
	{
		for ( a = 1;a<10;a++)
     efc:	21 e0       	ldi	r18, 0x01	; 1
     efe:	29 83       	std	Y+1, r18	; 0x01
     f00:	03 c0       	rjmp	.+6      	; 0xf08 <I2C_Receive_Byte+0x22>
     f02:	89 81       	ldd	r24, Y+1	; 0x01
     f04:	8f 5f       	subi	r24, 0xFF	; 255
     f06:	89 83       	std	Y+1, r24	; 0x01
     f08:	89 81       	ldd	r24, Y+1	; 0x01
     f0a:	8a 30       	cpi	r24, 0x0A	; 10
     f0c:	d0 f3       	brcs	.-12     	; 0xf02 <I2C_Receive_Byte+0x1c>
		{
		
				;
			
		}
		delay--;
     f0e:	91 50       	subi	r25, 0x01	; 1

void Delay(uint8_t delay)
{
	volatile uint8_t a;
		
	while(delay > 0)
     f10:	b1 f7       	brne	.-20     	; 0xefe <I2C_Receive_Byte+0x18>
	*/

	//  Delay
	Delay(I2C_PERIOD);

	if(I2C_Pin_Value(SDA))
     f12:	81 e0       	ldi	r24, 0x01	; 1
     f14:	c9 df       	rcall	.-110    	; 0xea8 <I2C_Pin_Value>
     f16:	18 2f       	mov	r17, r24
	{
		received |= 1;//append 1 to our databyte
	}
	// Set SCL Low
	Set_Low(SCL);
     f18:	80 e0       	ldi	r24, 0x00	; 0
     f1a:	cb de       	rcall	.-618    	; 0xcb2 <Set_Low>
     f1c:	91 e0       	ldi	r25, 0x01	; 1
{
	volatile uint8_t a;
		
	while(delay > 0)
	{
		for ( a = 1;a<10;a++)
     f1e:	21 e0       	ldi	r18, 0x01	; 1
     f20:	29 83       	std	Y+1, r18	; 0x01
     f22:	03 c0       	rjmp	.+6      	; 0xf2a <I2C_Receive_Byte+0x44>
     f24:	89 81       	ldd	r24, Y+1	; 0x01
     f26:	8f 5f       	subi	r24, 0xFF	; 255
     f28:	89 83       	std	Y+1, r24	; 0x01
     f2a:	89 81       	ldd	r24, Y+1	; 0x01
     f2c:	8a 30       	cpi	r24, 0x0A	; 10
     f2e:	d0 f3       	brcs	.-12     	; 0xf24 <I2C_Receive_Byte+0x3e>
		{
		
				;
			
		}
		delay--;
     f30:	91 50       	subi	r25, 0x01	; 1

void Delay(uint8_t delay)
{
	volatile uint8_t a;
		
	while(delay > 0)
     f32:	b1 f7       	brne	.-20     	; 0xf20 <I2C_Receive_Byte+0x3a>
     f34:	81 2f       	mov	r24, r17
     f36:	11 11       	cpse	r17, r1
     f38:	81 e0       	ldi	r24, 0x01	; 1
     f3a:	18 2f       	mov	r17, r24
     f3c:	01 e0       	ldi	r16, 0x01	; 1
	
	
	//should really pulse the line high and then read.  Should work though as it
	for(i = 1; i < 8; i++)//write out each data bit, MSB first
	{
		received <<= 1;//shift the up
     f3e:	11 0f       	add	r17, r17
		if(I2C_Pin_Value(SDA))
     f40:	81 e0       	ldi	r24, 0x01	; 1
     f42:	b2 df       	rcall	.-156    	; 0xea8 <I2C_Pin_Value>
     f44:	81 11       	cpse	r24, r1
		{
			received |= 1;//append 1 to our databyte
     f46:	11 60       	ori	r17, 0x01	; 1
		}
		
		I2C_Pulse_SCL();//no checking to see if the slave is holding the SCL line down
     f48:	cc de       	rcall	.-616    	; 0xce2 <I2C_Pulse_SCL>
	Delay(I2C_PERIOD);

	
	
	//should really pulse the line high and then read.  Should work though as it
	for(i = 1; i < 8; i++)//write out each data bit, MSB first
     f4a:	0f 5f       	subi	r16, 0xFF	; 255
     f4c:	08 30       	cpi	r16, 0x08	; 8
     f4e:	b9 f7       	brne	.-18     	; 0xf3e <I2C_Receive_Byte+0x58>
		I2C_Pulse_SCL();//no checking to see if the slave is holding the SCL line down
	}

	return received;

}
     f50:	81 2f       	mov	r24, r17
     f52:	0f 90       	pop	r0
     f54:	cf 91       	pop	r28
     f56:	df 91       	pop	r29
     f58:	1f 91       	pop	r17
     f5a:	0f 91       	pop	r16
     f5c:	08 95       	ret

00000f5e <I2C_Get_ACK>:
 *
 * Returns:	ACK if we read an ACK (0) from the slave
 *			NACK if we read a NACK (1) from the slave
 */
uint8_t I2C_Get_ACK(void)
{
     f5e:	1f 93       	push	r17
     f60:	df 93       	push	r29
     f62:	cf 93       	push	r28
     f64:	0f 92       	push	r0
     f66:	cd b7       	in	r28, 0x3d	; 61
     f68:	de b7       	in	r29, 0x3e	; 62
	uint8_t value = ACK;	
	
	//  Set SCL high
	Set_High(SCL);
     f6a:	80 e0       	ldi	r24, 0x00	; 0
     f6c:	74 de       	rcall	.-792    	; 0xc56 <Set_High>
     f6e:	91 e0       	ldi	r25, 0x01	; 1
{
	volatile uint8_t a;
		
	while(delay > 0)
	{
		for ( a = 1;a<10;a++)
     f70:	21 e0       	ldi	r18, 0x01	; 1
     f72:	29 83       	std	Y+1, r18	; 0x01
     f74:	03 c0       	rjmp	.+6      	; 0xf7c <I2C_Get_ACK+0x1e>
     f76:	89 81       	ldd	r24, Y+1	; 0x01
     f78:	8f 5f       	subi	r24, 0xFF	; 255
     f7a:	89 83       	std	Y+1, r24	; 0x01
     f7c:	89 81       	ldd	r24, Y+1	; 0x01
     f7e:	8a 30       	cpi	r24, 0x0A	; 10
     f80:	d0 f3       	brcs	.-12     	; 0xf76 <I2C_Get_ACK+0x18>
		{
		
				;
			
		}
		delay--;
     f82:	91 50       	subi	r25, 0x01	; 1

void Delay(uint8_t delay)
{
	volatile uint8_t a;
		
	while(delay > 0)
     f84:	b1 f7       	brne	.-20     	; 0xf72 <I2C_Get_ACK+0x14>
	//  Set SCL high
	Set_High(SCL);
	//  Delay
	Delay(I2C_PERIOD);

	if ( I2C_Pin_Value(SDA) )//read in if we got an ACK (0) or a NACK (1)
     f86:	81 e0       	ldi	r24, 0x01	; 1
     f88:	8f df       	rcall	.-226    	; 0xea8 <I2C_Pin_Value>
     f8a:	18 2f       	mov	r17, r24
		value = NACK;
	}
	
	
	// Set SCL Low
	Set_Low(SCL);
     f8c:	80 e0       	ldi	r24, 0x00	; 0
     f8e:	91 de       	rcall	.-734    	; 0xcb2 <Set_Low>
     f90:	91 e0       	ldi	r25, 0x01	; 1
{
	volatile uint8_t a;
		
	while(delay > 0)
	{
		for ( a = 1;a<10;a++)
     f92:	21 e0       	ldi	r18, 0x01	; 1
     f94:	29 83       	std	Y+1, r18	; 0x01
     f96:	03 c0       	rjmp	.+6      	; 0xf9e <I2C_Get_ACK+0x40>
     f98:	89 81       	ldd	r24, Y+1	; 0x01
     f9a:	8f 5f       	subi	r24, 0xFF	; 255
     f9c:	89 83       	std	Y+1, r24	; 0x01
     f9e:	89 81       	ldd	r24, Y+1	; 0x01
     fa0:	8a 30       	cpi	r24, 0x0A	; 10
     fa2:	d0 f3       	brcs	.-12     	; 0xf98 <I2C_Get_ACK+0x3a>
		{
		
				;
			
		}
		delay--;
     fa4:	91 50       	subi	r25, 0x01	; 1

void Delay(uint8_t delay)
{
	volatile uint8_t a;
		
	while(delay > 0)
     fa6:	b1 f7       	brne	.-20     	; 0xf94 <I2C_Get_ACK+0x36>
     fa8:	81 2f       	mov	r24, r17
     faa:	11 11       	cpse	r17, r1
     fac:	81 e0       	ldi	r24, 0x01	; 1
	
	Delay(I2C_PERIOD);	

	
	return value;
}
     fae:	0f 90       	pop	r0
     fb0:	cf 91       	pop	r28
     fb2:	df 91       	pop	r29
     fb4:	1f 91       	pop	r17
     fb6:	08 95       	ret

00000fb8 <I2C_Read>:
 * Returns:	0 if the device was not there or if we got a timeout.  A timeout
 *			can occur if the slave holds SCL low for to long after a ACK while
 *			it is processing the data.
 */
uint8_t I2C_Read(uint8_t address, uint8_t *data, uint16_t lenght)
{
     fb8:	cf 92       	push	r12
     fba:	df 92       	push	r13
     fbc:	ef 92       	push	r14
     fbe:	ff 92       	push	r15
     fc0:	0f 93       	push	r16
     fc2:	1f 93       	push	r17
     fc4:	cf 93       	push	r28
     fc6:	df 93       	push	r29
     fc8:	18 2f       	mov	r17, r24
     fca:	6b 01       	movw	r12, r22
     fcc:	7a 01       	movw	r14, r20
	uint16_t i;

	I2C_Start();//place a start condition on the I2C lines
     fce:	b1 de       	rcall	.-670    	; 0xd32 <I2C_Start>

	//send our slaves address
	if(I2C_Send_Byte((address<<1) | 1))//shift the address to its correct location in the data byte.  A LSB of 1 indicates a read transfere
     fd0:	11 0f       	add	r17, r17
     fd2:	81 2f       	mov	r24, r17
     fd4:	81 60       	ori	r24, 0x01	; 1
     fd6:	0f df       	rcall	.-482    	; 0xdf6 <I2C_Send_Byte>
     fd8:	88 23       	and	r24, r24
     fda:	49 f4       	brne	.+18     	; 0xfee <I2C_Read+0x36>
	{
		I2C_Stop();//release the lines
		return 0;//there was a timeout
	}
	
	if (I2C_Get_ACK() == NACK)//If the slave does not ACK itself send a stop condition and return 0
     fdc:	c0 df       	rcall	.-128    	; 0xf5e <I2C_Get_ACK>
     fde:	81 30       	cpi	r24, 0x01	; 1
     fe0:	31 f0       	breq	.+12     	; 0xfee <I2C_Read+0x36>
     fe2:	c0 e0       	ldi	r28, 0x00	; 0
     fe4:	d0 e0       	ldi	r29, 0x00	; 0
	//read the data
	for(i = 0; i < lenght; i++)
	{
		data[i] = I2C_Receive_Byte();
	
		if (i < lenght-1)//if the slave NACKed our data, send a STOP and return the number of bytes transmitted
     fe6:	87 01       	movw	r16, r14
     fe8:	01 50       	subi	r16, 0x01	; 1
     fea:	10 40       	sbci	r17, 0x00	; 0
     fec:	0f c0       	rjmp	.+30     	; 0x100c <I2C_Read+0x54>
		return 0;//there was a timeout
	}
	
	if (I2C_Get_ACK() == NACK)//If the slave does not ACK itself send a stop condition and return 0
	{
		I2C_Stop();//release the lines
     fee:	28 df       	rcall	.-432    	; 0xe40 <I2C_Stop>
     ff0:	80 e0       	ldi	r24, 0x00	; 0
     ff2:	11 c0       	rjmp	.+34     	; 0x1016 <I2C_Read+0x5e>
	}
	
	//read the data
	for(i = 0; i < lenght; i++)
	{
		data[i] = I2C_Receive_Byte();
     ff4:	78 df       	rcall	.-272    	; 0xee6 <I2C_Receive_Byte>
     ff6:	f6 01       	movw	r30, r12
     ff8:	ec 0f       	add	r30, r28
     ffa:	fd 1f       	adc	r31, r29
     ffc:	80 83       	st	Z, r24
	
		if (i < lenght-1)//if the slave NACKed our data, send a STOP and return the number of bytes transmitted
     ffe:	c0 17       	cp	r28, r16
    1000:	d1 07       	cpc	r29, r17
    1002:	10 f4       	brcc	.+4      	; 0x1008 <I2C_Read+0x50>
		{
			I2C_Send_ACK();	
    1004:	bb de       	rcall	.-650    	; 0xd7c <I2C_Send_ACK>
    1006:	01 c0       	rjmp	.+2      	; 0x100a <I2C_Read+0x52>
		}
		else
		{
			I2C_Send_NACK();//Nack the last byte
    1008:	91 de       	rcall	.-734    	; 0xd2c <I2C_Send_NACK>
		return 0;
		
	}
	
	//read the data
	for(i = 0; i < lenght; i++)
    100a:	21 96       	adiw	r28, 0x01	; 1
    100c:	ce 15       	cp	r28, r14
    100e:	df 05       	cpc	r29, r15
    1010:	88 f3       	brcs	.-30     	; 0xff4 <I2C_Read+0x3c>
		{
			I2C_Send_NACK();//Nack the last byte
		}
	}

	I2C_Stop();//Transaction is over so place a stop condition on the bus
    1012:	16 df       	rcall	.-468    	; 0xe40 <I2C_Stop>

	return lenght;
    1014:	8e 2d       	mov	r24, r14

}
    1016:	df 91       	pop	r29
    1018:	cf 91       	pop	r28
    101a:	1f 91       	pop	r17
    101c:	0f 91       	pop	r16
    101e:	ff 90       	pop	r15
    1020:	ef 90       	pop	r14
    1022:	df 90       	pop	r13
    1024:	cf 90       	pop	r12
    1026:	08 95       	ret

00001028 <I2C_Write>:
 * Returns:	0 if the device was not there or if we got a timeout.  A timeout
 *			can occur if the slave holds SCL low for to long after a ACK while
 *			it is processing the data.
 */
uint8_t I2C_Write(uint8_t address, uint8_t *data, uint16_t lenght)
{
    1028:	cf 92       	push	r12
    102a:	df 92       	push	r13
    102c:	ef 92       	push	r14
    102e:	ff 92       	push	r15
    1030:	1f 93       	push	r17
    1032:	cf 93       	push	r28
    1034:	df 93       	push	r29
    1036:	18 2f       	mov	r17, r24
    1038:	6b 01       	movw	r12, r22
    103a:	7a 01       	movw	r14, r20
	uint16_t i;

	I2C_Start();//place a start condition on the I2C lines
    103c:	7a de       	rcall	.-780    	; 0xd32 <I2C_Start>

	//send our slaves address
	if(I2C_Send_Byte(address<<1))//shift the address to its correct location in the data byte.  A LSB of 0 indicates a write transfere
    103e:	81 2f       	mov	r24, r17
    1040:	88 0f       	add	r24, r24
    1042:	d9 de       	rcall	.-590    	; 0xdf6 <I2C_Send_Byte>
    1044:	88 23       	and	r24, r24
    1046:	69 f4       	brne	.+26     	; 0x1062 <I2C_Write+0x3a>
	{
		I2C_Stop();//release the lines
		return 0;//there was a timeout
	}
	
	if (I2C_Get_ACK() == NACK)//If the slave does not ACK itself send a stop condition and return 0
    1048:	8a df       	rcall	.-236    	; 0xf5e <I2C_Get_ACK>
    104a:	81 30       	cpi	r24, 0x01	; 1
    104c:	51 f0       	breq	.+20     	; 0x1062 <I2C_Write+0x3a>
    104e:	c0 e0       	ldi	r28, 0x00	; 0
    1050:	d0 e0       	ldi	r29, 0x00	; 0
    1052:	13 c0       	rjmp	.+38     	; 0x107a <I2C_Write+0x52>
	}
	
	//send the data
	for(i = 0; i < lenght; i++)
	{
		if( I2C_Send_Byte(data[i]) )
    1054:	f6 01       	movw	r30, r12
    1056:	ec 0f       	add	r30, r28
    1058:	fd 1f       	adc	r31, r29
    105a:	80 81       	ld	r24, Z
    105c:	cc de       	rcall	.-616    	; 0xdf6 <I2C_Send_Byte>
    105e:	88 23       	and	r24, r24
    1060:	19 f0       	breq	.+6      	; 0x1068 <I2C_Write+0x40>
		{
			I2C_Stop();//release the lines
    1062:	ee de       	rcall	.-548    	; 0xe40 <I2C_Stop>
    1064:	80 e0       	ldi	r24, 0x00	; 0
    1066:	0e c0       	rjmp	.+28     	; 0x1084 <I2C_Write+0x5c>
			return 0;//There was a timeout
		}
		if (I2C_Get_ACK() == NACK)//if the slave NACKed our data, send a STOP and return the number of bytes transmitted
    1068:	7a df       	rcall	.-268    	; 0xf5e <I2C_Get_ACK>
    106a:	81 30       	cpi	r24, 0x01	; 1
    106c:	29 f4       	brne	.+10     	; 0x1078 <I2C_Write+0x50>
		{
			I2C_Stop();//release the lines
    106e:	e8 de       	rcall	.-560    	; 0xe40 <I2C_Stop>
			return i+1;
    1070:	9e 01       	movw	r18, r28
    1072:	2f 5f       	subi	r18, 0xFF	; 255
    1074:	82 2f       	mov	r24, r18
    1076:	06 c0       	rjmp	.+12     	; 0x1084 <I2C_Write+0x5c>
		return 0;
		
	}
	
	//send the data
	for(i = 0; i < lenght; i++)
    1078:	21 96       	adiw	r28, 0x01	; 1
    107a:	ce 15       	cp	r28, r14
    107c:	df 05       	cpc	r29, r15
    107e:	50 f3       	brcs	.-44     	; 0x1054 <I2C_Write+0x2c>
			return i+1;
		
		}
	}

	I2C_Stop();//Transaction is over so place a stop condition on the bus
    1080:	df de       	rcall	.-578    	; 0xe40 <I2C_Stop>

	return lenght;
    1082:	8e 2d       	mov	r24, r14

}
    1084:	df 91       	pop	r29
    1086:	cf 91       	pop	r28
    1088:	1f 91       	pop	r17
    108a:	ff 90       	pop	r15
    108c:	ef 90       	pop	r14
    108e:	df 90       	pop	r13
    1090:	cf 90       	pop	r12
    1092:	08 95       	ret

00001094 <StepDirLineCoding_Init>:

#define DelayUsec() asm volatile ("NOP" ::);asm volatile ("NOP" ::);asm volatile ("NOP" ::);asm volatile ("NOP" ::);asm volatile ("NOP" ::);asm volatile ("NOP" ::);asm volatile ("NOP" ::);asm volatile ("NOP" ::);


void StepDirLineCoding_Init(void)
{
    1094:	85 b1       	in	r24, 0x05	; 5
    1096:	80 7c       	andi	r24, 0xC0	; 192
    1098:	85 b9       	out	0x05, r24	; 5
	//Assuming we want them low as default??
	PORTB &= ~( (1<<STEP_X) | (1<<DIR_X) | (1<<STEP_Y) | (1<<DIR_Y) | (1<<STEP_Z) | (1<<DIR_Z) );
	//If we want thenm high by default
	//PORTB |= ( (1<<STEP_X) | (1<<DIR_X) | (1<<STEP_Y) | (1<<DIR_Y) | (1<<STEP_Z) | (1<<DIR_Z) );
	DDRB |= ( (1<<STEP_X) | (1<<DIR_X) | (1<<STEP_Y) | (1<<DIR_Y) | (1<<STEP_Z) | (1<<DIR_Z) );
    109a:	84 b1       	in	r24, 0x04	; 4
    109c:	8f 63       	ori	r24, 0x3F	; 63
    109e:	84 b9       	out	0x04, r24	; 4

}
    10a0:	08 95       	ret

000010a2 <StartCodition>:


void StartCodition(uint8_t step, uint8_t dir)
{
    10a2:	95 b1       	in	r25, 0x05	; 5
    10a4:	21 e0       	ldi	r18, 0x01	; 1
    10a6:	30 e0       	ldi	r19, 0x00	; 0
    10a8:	a9 01       	movw	r20, r18
    10aa:	02 c0       	rjmp	.+4      	; 0x10b0 <StartCodition+0xe>
    10ac:	44 0f       	add	r20, r20
    10ae:	55 1f       	adc	r21, r21
    10b0:	6a 95       	dec	r22
    10b2:	e2 f7       	brpl	.-8      	; 0x10ac <StartCodition+0xa>
    10b4:	ba 01       	movw	r22, r20
    10b6:	94 2b       	or	r25, r20
    10b8:	95 b9       	out	0x05, r25	; 5
	Set_High(dir);
	Set_High(step);
    10ba:	95 b1       	in	r25, 0x05	; 5
    10bc:	02 c0       	rjmp	.+4      	; 0x10c2 <StartCodition+0x20>
    10be:	22 0f       	add	r18, r18
    10c0:	33 1f       	adc	r19, r19
    10c2:	8a 95       	dec	r24
    10c4:	e2 f7       	brpl	.-8      	; 0x10be <StartCodition+0x1c>
    10c6:	92 2b       	or	r25, r18
    10c8:	95 b9       	out	0x05, r25	; 5
	DelayUsec();
    10ca:	00 00       	nop
    10cc:	00 00       	nop
    10ce:	00 00       	nop
    10d0:	00 00       	nop
    10d2:	00 00       	nop
    10d4:	00 00       	nop
    10d6:	00 00       	nop
    10d8:	00 00       	nop
	DelayUsec();
    10da:	00 00       	nop
    10dc:	00 00       	nop
    10de:	00 00       	nop
    10e0:	00 00       	nop
    10e2:	00 00       	nop
    10e4:	00 00       	nop
    10e6:	00 00       	nop
    10e8:	00 00       	nop
	DelayUsec();
    10ea:	00 00       	nop
    10ec:	00 00       	nop
    10ee:	00 00       	nop
    10f0:	00 00       	nop
    10f2:	00 00       	nop
    10f4:	00 00       	nop
    10f6:	00 00       	nop
    10f8:	00 00       	nop
	DelayUsec();
    10fa:	00 00       	nop
    10fc:	00 00       	nop
    10fe:	00 00       	nop
    1100:	00 00       	nop
    1102:	00 00       	nop
    1104:	00 00       	nop
    1106:	00 00       	nop
    1108:	00 00       	nop
	DelayUsec();
    110a:	00 00       	nop
    110c:	00 00       	nop
    110e:	00 00       	nop
    1110:	00 00       	nop
    1112:	00 00       	nop
    1114:	00 00       	nop
    1116:	00 00       	nop
    1118:	00 00       	nop
	Set_Low(dir);
    111a:	85 b1       	in	r24, 0x05	; 5
    111c:	60 95       	com	r22
    111e:	68 23       	and	r22, r24
    1120:	65 b9       	out	0x05, r22	; 5
	DelayUsec();
    1122:	00 00       	nop
    1124:	00 00       	nop
    1126:	00 00       	nop
    1128:	00 00       	nop
    112a:	00 00       	nop
    112c:	00 00       	nop
    112e:	00 00       	nop
    1130:	00 00       	nop
}
    1132:	08 95       	ret

00001134 <SendByte>:
// STEP raising edge.  DIR must be high before firing
// STEP.  If DIR goes low within 5 usec then the board 
// assumes this is a command function not a step
// function and decodes the data sent
void SendByte(uint8_t inchar,uint8_t axisselect)
{
    1134:	ff 92       	push	r15
    1136:	0f 93       	push	r16
    1138:	1f 93       	push	r17
    113a:	f8 2e       	mov	r15, r24
	uint8_t axisdir,axisstep;
	uint8_t i;
	
	switch(axisselect)
    113c:	61 30       	cpi	r22, 0x01	; 1
    113e:	29 f0       	breq	.+10     	; 0x114a <SendByte+0x16>
    1140:	62 30       	cpi	r22, 0x02	; 2
    1142:	31 f4       	brne	.+12     	; 0x1150 <SendByte+0x1c>
    1144:	02 e0       	ldi	r16, 0x02	; 2
    1146:	11 e0       	ldi	r17, 0x01	; 1
    1148:	05 c0       	rjmp	.+10     	; 0x1154 <SendByte+0x20>
    114a:	00 e0       	ldi	r16, 0x00	; 0
    114c:	13 e0       	ldi	r17, 0x03	; 3
    114e:	02 c0       	rjmp	.+4      	; 0x1154 <SendByte+0x20>
    1150:	04 e0       	ldi	r16, 0x04	; 4
    1152:	15 e0       	ldi	r17, 0x05	; 5
			break;
	}		
	


	StartCodition(axisstep,axisdir);
    1154:	60 2f       	mov	r22, r16
    1156:	81 2f       	mov	r24, r17
    1158:	a4 df       	rcall	.-184    	; 0x10a2 <StartCodition>
	
	for(i=0; i<8; i++)
	{
		Set_Low(axisstep);
    115a:	81 e0       	ldi	r24, 0x01	; 1
    115c:	90 e0       	ldi	r25, 0x00	; 0
    115e:	38 2f       	mov	r19, r24
    1160:	01 c0       	rjmp	.+2      	; 0x1164 <SendByte+0x30>
    1162:	33 0f       	add	r19, r19
    1164:	1a 95       	dec	r17
    1166:	ea f7       	brpl	.-6      	; 0x1162 <SendByte+0x2e>
    1168:	93 2f       	mov	r25, r19
    116a:	90 95       	com	r25
		DelayUsec();
		DelayUsec();

		if(inchar&0x01)
		{
			Set_High(axisdir);
    116c:	68 2f       	mov	r22, r24
    116e:	01 c0       	rjmp	.+2      	; 0x1172 <SendByte+0x3e>
    1170:	66 0f       	add	r22, r22
    1172:	0a 95       	dec	r16
    1174:	ea f7       	brpl	.-6      	; 0x1170 <SendByte+0x3c>
		}
		else
		{
			Set_Low(axisdir);
    1176:	46 2f       	mov	r20, r22
    1178:	40 95       	com	r20
    117a:	20 e0       	ldi	r18, 0x00	; 0

	StartCodition(axisstep,axisdir);
	
	for(i=0; i<8; i++)
	{
		Set_Low(axisstep);
    117c:	85 b1       	in	r24, 0x05	; 5
    117e:	89 23       	and	r24, r25
    1180:	85 b9       	out	0x05, r24	; 5

		DelayUsec();//may be better to move this delay to after we modify 
    1182:	00 00       	nop
    1184:	00 00       	nop
    1186:	00 00       	nop
    1188:	00 00       	nop
    118a:	00 00       	nop
    118c:	00 00       	nop
    118e:	00 00       	nop
    1190:	00 00       	nop
		DelayUsec();
    1192:	00 00       	nop
    1194:	00 00       	nop
    1196:	00 00       	nop
    1198:	00 00       	nop
    119a:	00 00       	nop
    119c:	00 00       	nop
    119e:	00 00       	nop
    11a0:	00 00       	nop
		DelayUsec();
    11a2:	00 00       	nop
    11a4:	00 00       	nop
    11a6:	00 00       	nop
    11a8:	00 00       	nop
    11aa:	00 00       	nop
    11ac:	00 00       	nop
    11ae:	00 00       	nop
    11b0:	00 00       	nop
		DelayUsec();
    11b2:	00 00       	nop
    11b4:	00 00       	nop
    11b6:	00 00       	nop
    11b8:	00 00       	nop
    11ba:	00 00       	nop
    11bc:	00 00       	nop
    11be:	00 00       	nop
    11c0:	00 00       	nop
		DelayUsec();
    11c2:	00 00       	nop
    11c4:	00 00       	nop
    11c6:	00 00       	nop
    11c8:	00 00       	nop
    11ca:	00 00       	nop
    11cc:	00 00       	nop
    11ce:	00 00       	nop
    11d0:	00 00       	nop

		if(inchar&0x01)
    11d2:	f0 fe       	sbrs	r15, 0
    11d4:	03 c0       	rjmp	.+6      	; 0x11dc <SendByte+0xa8>
		{
			Set_High(axisdir);
    11d6:	85 b1       	in	r24, 0x05	; 5
    11d8:	86 2b       	or	r24, r22
    11da:	02 c0       	rjmp	.+4      	; 0x11e0 <SendByte+0xac>
		}
		else
		{
			Set_Low(axisdir);
    11dc:	85 b1       	in	r24, 0x05	; 5
    11de:	84 23       	and	r24, r20
    11e0:	85 b9       	out	0x05, r24	; 5
		}

		Set_High(axisstep);
    11e2:	85 b1       	in	r24, 0x05	; 5
    11e4:	83 2b       	or	r24, r19
    11e6:	85 b9       	out	0x05, r24	; 5

		DelayUsec();
    11e8:	00 00       	nop
    11ea:	00 00       	nop
    11ec:	00 00       	nop
    11ee:	00 00       	nop
    11f0:	00 00       	nop
    11f2:	00 00       	nop
    11f4:	00 00       	nop
    11f6:	00 00       	nop
		DelayUsec();
    11f8:	00 00       	nop
    11fa:	00 00       	nop
    11fc:	00 00       	nop
    11fe:	00 00       	nop
    1200:	00 00       	nop
    1202:	00 00       	nop
    1204:	00 00       	nop
    1206:	00 00       	nop
		DelayUsec();
    1208:	00 00       	nop
    120a:	00 00       	nop
    120c:	00 00       	nop
    120e:	00 00       	nop
    1210:	00 00       	nop
    1212:	00 00       	nop
    1214:	00 00       	nop
    1216:	00 00       	nop
		DelayUsec();
    1218:	00 00       	nop
    121a:	00 00       	nop
    121c:	00 00       	nop
    121e:	00 00       	nop
    1220:	00 00       	nop
    1222:	00 00       	nop
    1224:	00 00       	nop
    1226:	00 00       	nop
		DelayUsec();
    1228:	00 00       	nop
    122a:	00 00       	nop
    122c:	00 00       	nop
    122e:	00 00       	nop
    1230:	00 00       	nop
    1232:	00 00       	nop
    1234:	00 00       	nop
    1236:	00 00       	nop
	


	StartCodition(axisstep,axisdir);
	
	for(i=0; i<8; i++)
    1238:	2f 5f       	subi	r18, 0xFF	; 255
    123a:	28 30       	cpi	r18, 0x08	; 8
    123c:	11 f0       	breq	.+4      	; 0x1242 <SendByte+0x10e>
		DelayUsec();
		DelayUsec();
		DelayUsec();
		DelayUsec();
		DelayUsec();
		inchar >>= 1;//shift the bits down
    123e:	f6 94       	lsr	r15
    1240:	9d cf       	rjmp	.-198    	; 0x117c <SendByte+0x48>
	}

	Set_Low(axisstep);
    1242:	85 b1       	in	r24, 0x05	; 5
    1244:	98 23       	and	r25, r24
    1246:	95 b9       	out	0x05, r25	; 5
}
    1248:	1f 91       	pop	r17
    124a:	0f 91       	pop	r16
    124c:	ff 90       	pop	r15
    124e:	08 95       	ret

00001250 <Scheduler_SetTaskMode>:
	
	return false;
}

void Scheduler_SetTaskMode(const TaskPtr_t Task, const bool TaskStatus)
{
    1250:	9c 01       	movw	r18, r24
    1252:	e8 e3       	ldi	r30, 0x38	; 56
    1254:	f1 e0       	ldi	r31, 0x01	; 1
    1256:	08 c0       	rjmp	.+16     	; 0x1268 <Scheduler_SetTaskMode+0x18>
	TaskEntry_t* CurrTask = &Scheduler_TaskList[0];
					
	while (CurrTask != &Scheduler_TaskList[Scheduler_TotalTasks])
	{
		if (CurrTask->Task == Task)
    1258:	80 81       	ld	r24, Z
    125a:	91 81       	ldd	r25, Z+1	; 0x01
    125c:	82 17       	cp	r24, r18
    125e:	93 07       	cpc	r25, r19
    1260:	11 f4       	brne	.+4      	; 0x1266 <Scheduler_SetTaskMode+0x16>
		{
			CurrTask->TaskStatus = TaskStatus;
    1262:	62 83       	std	Z+2, r22	; 0x02
    1264:	08 95       	ret
			break;
		}
		
		CurrTask++;
    1266:	34 96       	adiw	r30, 0x04	; 4

void Scheduler_SetTaskMode(const TaskPtr_t Task, const bool TaskStatus)
{
	TaskEntry_t* CurrTask = &Scheduler_TaskList[0];
					
	while (CurrTask != &Scheduler_TaskList[Scheduler_TotalTasks])
    1268:	80 91 97 02 	lds	r24, 0x0297
    126c:	90 e0       	ldi	r25, 0x00	; 0
    126e:	88 0f       	add	r24, r24
    1270:	99 1f       	adc	r25, r25
    1272:	88 0f       	add	r24, r24
    1274:	99 1f       	adc	r25, r25
    1276:	88 5c       	subi	r24, 0xC8	; 200
    1278:	9e 4f       	sbci	r25, 0xFE	; 254
    127a:	e8 17       	cp	r30, r24
    127c:	f9 07       	cpc	r31, r25
    127e:	61 f7       	brne	.-40     	; 0x1258 <Scheduler_SetTaskMode+0x8>
    1280:	08 95       	ret

00001282 <USB_SetupInterface>:
	UHWCON &= ~(1 << UIDE);
	#endif
}

void USB_SetupInterface(void)
{
    1282:	df 93       	push	r29
    1284:	cf 93       	push	r28
    1286:	00 d0       	rcall	.+0      	; 0x1288 <USB_SetupInterface+0x6>
    1288:	00 d0       	rcall	.+0      	; 0x128a <USB_SetupInterface+0x8>
    128a:	cd b7       	in	r28, 0x3d	; 61
    128c:	de b7       	in	r29, 0x3e	; 62
	USB_INT_DisableAllInterrupts();
    128e:	dc d2       	rcall	.+1464   	; 0x1848 <USB_INT_DisableAllInterrupts>
	USB_INT_ClearAllInterrupts();
    1290:	de d2       	rcall	.+1468   	; 0x184e <USB_INT_ClearAllInterrupts>

	USB_IsConnected         = false;
    1292:	10 92 9e 02 	sts	0x029E, r1
	#if defined(USB_CAN_BE_HOST)
	USB_HostState           = HOST_STATE_Unattached;
	#endif

	#if defined(USB_CAN_BE_DEVICE)
	USB_ConfigurationNumber  = 0;
    1296:	10 92 9c 02 	sts	0x029C, r1
	USB_RemoteWakeupEnabled  = false;
    129a:	10 92 9b 02 	sts	0x029B, r1
	USB_CurrentlySelfPowered = false;
    129e:	10 92 9a 02 	sts	0x029A, r1
	#if defined(USB_MODIFIED_FULL_CONTROLLER) && !defined(MANUAL_PLL_CONTROL)
	PLLFRQ = ((1 << PLLUSB) | (1 << PDIV3) | (1 << PDIV1));
	#endif
	
	#if !defined(MANUAL_PLL_CONTROL)
	USB_PLL_On();
    12a2:	84 e0       	ldi	r24, 0x04	; 4
    12a4:	89 bd       	out	0x29, r24	; 41
    12a6:	89 b5       	in	r24, 0x29	; 41
    12a8:	82 60       	ori	r24, 0x02	; 2
    12aa:	89 bd       	out	0x29, r24	; 41
	#endif

	while (!(USB_PLL_IsReady()));
    12ac:	09 b4       	in	r0, 0x29	; 41
    12ae:	00 fe       	sbrs	r0, 0
    12b0:	fd cf       	rjmp	.-6      	; 0x12ac <USB_SetupInterface+0x2a>
		
	USB_Interface_Reset();
    12b2:	80 91 d8 00 	lds	r24, 0x00D8
    12b6:	98 2f       	mov	r25, r24
    12b8:	9f 77       	andi	r25, 0x7F	; 127
    12ba:	90 93 d8 00 	sts	0x00D8, r25
    12be:	80 68       	ori	r24, 0x80	; 128
    12c0:	80 93 d8 00 	sts	0x00D8, r24
		USB_INT_Enable(USB_INT_VBUS);
		#endif
	#endif
		
	if (!(USB_Options & USB_OPT_REG_DISABLED))
	  USB_REG_On();
    12c4:	80 91 63 00 	lds	r24, 0x0063
    12c8:	8e 7f       	andi	r24, 0xFE	; 254
    12ca:	80 93 63 00 	sts	0x0063, r24
	
	USB_CLK_Unfreeze();
    12ce:	80 91 d8 00 	lds	r24, 0x00D8
    12d2:	8f 7d       	andi	r24, 0xDF	; 223
    12d4:	80 93 d8 00 	sts	0x00D8, r24
	
	#if defined(USB_CAN_BE_DEVICE)
	USB_Descriptor_Device_t* DeviceDescriptorPtr;
	uint16_t                 DeviceDescriptorSize;

	if (USB_GetDescriptor((DTYPE_Device << 8), 0, (void*)&DeviceDescriptorPtr, &DeviceDescriptorSize) == true)
    12d8:	9e 01       	movw	r18, r28
    12da:	2d 5f       	subi	r18, 0xFD	; 253
    12dc:	3f 4f       	sbci	r19, 0xFF	; 255
    12de:	ae 01       	movw	r20, r28
    12e0:	4f 5f       	subi	r20, 0xFF	; 255
    12e2:	5f 4f       	sbci	r21, 0xFF	; 255
    12e4:	60 e0       	ldi	r22, 0x00	; 0
    12e6:	80 e0       	ldi	r24, 0x00	; 0
    12e8:	91 e0       	ldi	r25, 0x01	; 1
    12ea:	aa db       	rcall	.-2220   	; 0xa40 <USB_GetDescriptor>
    12ec:	88 23       	and	r24, r24
    12ee:	31 f0       	breq	.+12     	; 0x12fc <USB_SetupInterface+0x7a>
		#if defined(USE_RAM_DESCRIPTORS)
			USB_ControlEndpointSize = DeviceDescriptorPtr->Endpoint0Size;
		#elif defined(USE_EEPROM_DESCRIPTORS)
			USB_ControlEndpointSize = eeprom_read_byte(&DeviceDescriptorPtr->Endpoint0Size);
		#else
			USB_ControlEndpointSize = pgm_read_byte(&DeviceDescriptorPtr->Endpoint0Size);
    12f0:	e9 81       	ldd	r30, Y+1	; 0x01
    12f2:	fa 81       	ldd	r31, Y+2	; 0x02
    12f4:	37 96       	adiw	r30, 0x07	; 7
    12f6:	e4 91       	lpm	r30, Z+
    12f8:	e0 93 5c 01 	sts	0x015C, r30
		#endif
	}
	#endif

	USB_Attach();
    12fc:	80 91 e0 00 	lds	r24, 0x00E0
    1300:	8e 7f       	andi	r24, 0xFE	; 254
    1302:	80 93 e0 00 	sts	0x00E0, r24
	
	#if defined(USB_DEVICE_ONLY)	
	USB_INT_Enable(USB_INT_SUSPEND);
    1306:	80 91 e2 00 	lds	r24, 0x00E2
    130a:	81 60       	ori	r24, 0x01	; 1
    130c:	80 93 e2 00 	sts	0x00E2, r24
	USB_INT_Enable(USB_INT_EORSTI);	
    1310:	80 91 e2 00 	lds	r24, 0x00E2
    1314:	88 60       	ori	r24, 0x08	; 8
    1316:	80 93 e2 00 	sts	0x00E2, r24
	#endif
	
	#if defined(USB_CAN_BE_BOTH)
	USB_InitTaskPointer();
	#endif
}
    131a:	0f 90       	pop	r0
    131c:	0f 90       	pop	r0
    131e:	0f 90       	pop	r0
    1320:	0f 90       	pop	r0
    1322:	cf 91       	pop	r28
    1324:	df 91       	pop	r29
    1326:	08 95       	ret

00001328 <USB_ShutDown>:
	
	sei();
}

void USB_ShutDown(void)
{
    1328:	80 91 9e 02 	lds	r24, 0x029E
    132c:	88 23       	and	r24, r24
    132e:	09 f0       	breq	.+2      	; 0x1332 <USB_ShutDown+0xa>
	if (USB_IsConnected)
	  RAISE_EVENT(USB_Disconnect);
    1330:	00 da       	rcall	.-3072   	; 0x732 <Event_USB_Disconnect>

	USB_INT_DisableAllInterrupts();
    1332:	8a d2       	rcall	.+1300   	; 0x1848 <USB_INT_DisableAllInterrupts>
	USB_INT_ClearAllInterrupts();
    1334:	8c d2       	rcall	.+1304   	; 0x184e <USB_INT_ClearAllInterrupts>

	USB_IsConnected         = false;
    1336:	10 92 9e 02 	sts	0x029E, r1
	USB_IsInitialized       = false;
    133a:	10 92 9d 02 	sts	0x029D, r1
	#if defined(USB_CAN_BE_HOST)
	USB_HostState           = HOST_STATE_Unattached;
	#endif

	#if defined(USB_CAN_BE_DEVICE)
	USB_ConfigurationNumber = 0;
    133e:	10 92 9c 02 	sts	0x029C, r1
	
	#if !defined(USE_STATIC_OPTIONS)
	USB_Options     = 0;
	#endif

	USB_Interface_Disable();
    1342:	80 91 d8 00 	lds	r24, 0x00D8
    1346:	8f 77       	andi	r24, 0x7F	; 127
    1348:	80 93 d8 00 	sts	0x00D8, r24
	USB_PLL_Off();
    134c:	19 bc       	out	0x29, r1	; 41
	#endif

	#if defined(USB_CAN_BE_BOTH)
	UHWCON &= ~(1 << UIDE);
	#endif
}
    134e:	08 95       	ret

00001350 <USB_Init>:
			   
               #if !defined(USE_STATIC_OPTIONS)
               const uint8_t Options
               #endif
               )
{
    1350:	80 91 9d 02 	lds	r24, 0x029D
    1354:	88 23       	and	r24, r24
    1356:	09 f0       	breq	.+2      	; 0x135a <USB_Init+0xa>
	if (USB_IsInitialized)
	  USB_ShutDown();
    1358:	e7 df       	rcall	.-50     	; 0x1328 <USB_ShutDown>
	#endif

	#if defined(USB_CAN_BE_BOTH)
	USB_InitTaskPointer();
	#else
	USB_IsInitialized = true;
    135a:	81 e0       	ldi	r24, 0x01	; 1
    135c:	80 93 9d 02 	sts	0x029D, r24

	#if defined(USB_DEVICE_ONLY)
		#if defined(USB_FULL_CONTROLLER) || defined(USB_MODIFIED_FULL_CONTROLLER)
		USB_INT_Enable(USB_INT_VBUS);
		#else
		USB_SetupInterface();
    1360:	90 df       	rcall	.-224    	; 0x1282 <USB_SetupInterface>
	  USB_INT_Enable(USB_INT_VBUS);
	else
	  USB_SetupInterface();
	#endif
	
	sei();
    1362:	78 94       	sei
}
    1364:	08 95       	ret

00001366 <Endpoint_ConfigureEndpoint_P>:

void Endpoint_ConfigureEndpoint_P(const uint8_t  EndpointNum,
                                  const uint16_t EndpointSize,
                                  const uint8_t  UECFG0Xdata,
                                  const uint8_t  UECFG1Xdata)
{
    1366:	80 93 e9 00 	sts	0x00E9, r24
	Endpoint_SelectEndpoint(EndpointNum);
	Endpoint_EnableEndpoint();
    136a:	80 91 eb 00 	lds	r24, 0x00EB
    136e:	81 60       	ori	r24, 0x01	; 1
    1370:	80 93 eb 00 	sts	0x00EB, r24
	
	UECFG0X = UECFG0Xdata;
    1374:	40 93 ec 00 	sts	0x00EC, r20
	UECFG1X = ((UECFG1X & (1 << ALLOC)) | UECFG1Xdata | Endpoint_BytesToEPSizeMask(EndpointSize));
    1378:	90 91 ed 00 	lds	r25, 0x00ED
		/* Inline Functions: */
			static inline uint8_t Endpoint_BytesToEPSizeMask(uint16_t Bytes)
			                                                 ATTR_WARN_UNUSED_RESULT ATTR_CONST;
			static inline uint8_t Endpoint_BytesToEPSizeMask(uint16_t Bytes)
			{
				Bytes &= ENDPOINT_EPSIZE_MASK;
    137c:	77 70       	andi	r23, 0x07	; 7
			
				if (Bytes <= 8)
    137e:	69 30       	cpi	r22, 0x09	; 9
    1380:	71 05       	cpc	r23, r1
    1382:	10 f4       	brcc	.+4      	; 0x1388 <Endpoint_ConfigureEndpoint_P+0x22>
    1384:	80 e0       	ldi	r24, 0x00	; 0
    1386:	0b c0       	rjmp	.+22     	; 0x139e <Endpoint_ConfigureEndpoint_P+0x38>
				  return (0 << EPSIZE0);
				else if (Bytes <= 16)
    1388:	61 31       	cpi	r22, 0x11	; 17
    138a:	71 05       	cpc	r23, r1
    138c:	10 f4       	brcc	.+4      	; 0x1392 <Endpoint_ConfigureEndpoint_P+0x2c>
    138e:	80 e1       	ldi	r24, 0x10	; 16
    1390:	06 c0       	rjmp	.+12     	; 0x139e <Endpoint_ConfigureEndpoint_P+0x38>
				  return (1 << EPSIZE0);
				else if (Bytes <= 32)
    1392:	61 32       	cpi	r22, 0x21	; 33
    1394:	71 05       	cpc	r23, r1
    1396:	10 f0       	brcs	.+4      	; 0x139c <Endpoint_ConfigureEndpoint_P+0x36>
    1398:	80 e3       	ldi	r24, 0x30	; 48
    139a:	01 c0       	rjmp	.+2      	; 0x139e <Endpoint_ConfigureEndpoint_P+0x38>
    139c:	80 e2       	ldi	r24, 0x20	; 32
    139e:	92 70       	andi	r25, 0x02	; 2
    13a0:	92 2b       	or	r25, r18
    13a2:	89 2b       	or	r24, r25
    13a4:	80 93 ed 00 	sts	0x00ED, r24
	
	Endpoint_AllocateMemory();
    13a8:	80 91 ed 00 	lds	r24, 0x00ED
    13ac:	82 60       	ori	r24, 0x02	; 2
    13ae:	80 93 ed 00 	sts	0x00ED, r24
}
    13b2:	08 95       	ret

000013b4 <Endpoint_Write_Control_Stream_LE>:
	
	return ENDPOINT_RWSTREAM_ERROR_NoError;
}

uint8_t Endpoint_Write_Control_Stream_LE(const void* Buffer, uint16_t Length)
{
    13b4:	1f 93       	push	r17
    13b6:	9c 01       	movw	r18, r24
    13b8:	fb 01       	movw	r30, r22
	uint8_t* DataStream = (uint8_t*)Buffer;
	bool     SendZLP    = (!(Length % USB_ControlEndpointSize) || (Length == 0));
    13ba:	10 91 5c 01 	lds	r17, 0x015C
    13be:	cb 01       	movw	r24, r22
    13c0:	61 2f       	mov	r22, r17
    13c2:	70 e0       	ldi	r23, 0x00	; 0
    13c4:	ee d2       	rcall	.+1500   	; 0x19a2 <__udivmodhi4>
    13c6:	89 2b       	or	r24, r25
    13c8:	21 f0       	breq	.+8      	; 0x13d2 <Endpoint_Write_Control_Stream_LE+0x1e>
    13ca:	40 e0       	ldi	r20, 0x00	; 0
    13cc:	50 e0       	ldi	r21, 0x00	; 0
    13ce:	30 97       	sbiw	r30, 0x00	; 0
    13d0:	11 f4       	brne	.+4      	; 0x13d6 <Endpoint_Write_Control_Stream_LE+0x22>
    13d2:	41 e0       	ldi	r20, 0x01	; 1
    13d4:	50 e0       	ldi	r21, 0x00	; 0
	return ENDPOINT_RWSTREAM_ERROR_NoError;
}

uint8_t Endpoint_Write_Control_Stream_LE(const void* Buffer, uint16_t Length)
{
	uint8_t* DataStream = (uint8_t*)Buffer;
    13d6:	d9 01       	movw	r26, r18
    13d8:	13 c0       	rjmp	.+38     	; 0x1400 <Endpoint_Write_Control_Stream_LE+0x4c>
	bool     SendZLP    = (!(Length % USB_ControlEndpointSize) || (Length == 0));
	
	while (Length && !(Endpoint_IsSetupOUTReceived()))
	{
		while (!(Endpoint_IsSetupINReady()));
    13da:	80 91 e8 00 	lds	r24, 0x00E8
    13de:	80 ff       	sbrs	r24, 0
    13e0:	fc cf       	rjmp	.-8      	; 0x13da <Endpoint_Write_Control_Stream_LE+0x26>
    13e2:	05 c0       	rjmp	.+10     	; 0x13ee <Endpoint_Write_Control_Stream_LE+0x3a>
		
		while (Length && (Endpoint_BytesInEndpoint() < USB_ControlEndpointSize))
		{
			Endpoint_Write_Byte(*(DataStream++));
    13e4:	8d 91       	ld	r24, X+
			}

			/** Writes one byte from the currently selected endpoint's bank, for IN direction endpoints. */
			static inline void Endpoint_Write_Byte(const uint8_t Byte)
			{
				UEDATX = Byte;
    13e6:	80 93 f1 00 	sts	0x00F1, r24
			
			Length--;
    13ea:	31 97       	sbiw	r30, 0x01	; 1
	
	while (Length && !(Endpoint_IsSetupOUTReceived()))
	{
		while (!(Endpoint_IsSetupINReady()));
		
		while (Length && (Endpoint_BytesInEndpoint() < USB_ControlEndpointSize))
    13ec:	21 f0       	breq	.+8      	; 0x13f6 <Endpoint_Write_Control_Stream_LE+0x42>
    13ee:	80 91 f2 00 	lds	r24, 0x00F2
    13f2:	81 17       	cp	r24, r17
    13f4:	b8 f3       	brcs	.-18     	; 0x13e4 <Endpoint_Write_Control_Stream_LE+0x30>
			Endpoint_Write_Byte(*(DataStream++));
			
			Length--;
		}
		
		Endpoint_ClearSetupIN();
    13f6:	80 91 e8 00 	lds	r24, 0x00E8
    13fa:	8e 7f       	andi	r24, 0xFE	; 254
    13fc:	80 93 e8 00 	sts	0x00E8, r24
uint8_t Endpoint_Write_Control_Stream_LE(const void* Buffer, uint16_t Length)
{
	uint8_t* DataStream = (uint8_t*)Buffer;
	bool     SendZLP    = (!(Length % USB_ControlEndpointSize) || (Length == 0));
	
	while (Length && !(Endpoint_IsSetupOUTReceived()))
    1400:	30 97       	sbiw	r30, 0x00	; 0
    1402:	21 f0       	breq	.+8      	; 0x140c <Endpoint_Write_Control_Stream_LE+0x58>
    1404:	80 91 e8 00 	lds	r24, 0x00E8
    1408:	82 ff       	sbrs	r24, 2
    140a:	e7 cf       	rjmp	.-50     	; 0x13da <Endpoint_Write_Control_Stream_LE+0x26>
		}
		
		Endpoint_ClearSetupIN();
	}
	
	if (Endpoint_IsSetupOUTReceived())
    140c:	80 91 e8 00 	lds	r24, 0x00E8
    1410:	82 ff       	sbrs	r24, 2
    1412:	02 c0       	rjmp	.+4      	; 0x1418 <Endpoint_Write_Control_Stream_LE+0x64>
    1414:	81 e0       	ldi	r24, 0x01	; 1
    1416:	10 c0       	rjmp	.+32     	; 0x1438 <Endpoint_Write_Control_Stream_LE+0x84>
	  return ENDPOINT_RWCSTREAM_ERROR_HostAborted;
	
	if (SendZLP)
    1418:	45 2b       	or	r20, r21
    141a:	49 f0       	breq	.+18     	; 0x142e <Endpoint_Write_Control_Stream_LE+0x7a>
	{
		while (!(Endpoint_IsSetupINReady()));
    141c:	80 91 e8 00 	lds	r24, 0x00E8
    1420:	80 ff       	sbrs	r24, 0
    1422:	fc cf       	rjmp	.-8      	; 0x141c <Endpoint_Write_Control_Stream_LE+0x68>
		Endpoint_ClearSetupIN();
    1424:	80 91 e8 00 	lds	r24, 0x00E8
    1428:	8e 7f       	andi	r24, 0xFE	; 254
    142a:	80 93 e8 00 	sts	0x00E8, r24
	}
	
	while (!(Endpoint_IsSetupOUTReceived()));
    142e:	80 91 e8 00 	lds	r24, 0x00E8
    1432:	82 ff       	sbrs	r24, 2
    1434:	fc cf       	rjmp	.-8      	; 0x142e <Endpoint_Write_Control_Stream_LE+0x7a>
    1436:	80 e0       	ldi	r24, 0x00	; 0

	return ENDPOINT_RWCSTREAM_ERROR_NoError;
}
    1438:	1f 91       	pop	r17
    143a:	08 95       	ret

0000143c <Endpoint_Read_Control_Stream_LE>:

	return ENDPOINT_RWCSTREAM_ERROR_NoError;
}

uint8_t Endpoint_Read_Control_Stream_LE(void* Buffer, uint16_t Length)
{
    143c:	fc 01       	movw	r30, r24
    143e:	14 c0       	rjmp	.+40     	; 0x1468 <Endpoint_Read_Control_Stream_LE+0x2c>
	uint8_t* DataStream = (uint8_t*)Buffer;
	
	while (Length)
	{
		while (!(Endpoint_IsSetupOUTReceived()));
    1440:	80 91 e8 00 	lds	r24, 0x00E8
    1444:	82 ff       	sbrs	r24, 2
    1446:	fc cf       	rjmp	.-8      	; 0x1440 <Endpoint_Read_Control_Stream_LE+0x4>
    1448:	06 c0       	rjmp	.+12     	; 0x1456 <Endpoint_Read_Control_Stream_LE+0x1a>
		/* Inline Functions: */
			/** Reads one byte from the currently selected endpoint's bank, for OUT direction endpoints. */
			static inline uint8_t Endpoint_Read_Byte(void) ATTR_WARN_UNUSED_RESULT;
			static inline uint8_t Endpoint_Read_Byte(void)
			{
				return UEDATX;
    144a:	80 91 f1 00 	lds	r24, 0x00F1
		
		while (Length && Endpoint_BytesInEndpoint())
		{
			*(DataStream++) = Endpoint_Read_Byte();
    144e:	81 93       	st	Z+, r24
			
			Length--;
    1450:	61 50       	subi	r22, 0x01	; 1
    1452:	70 40       	sbci	r23, 0x00	; 0
	
	while (Length)
	{
		while (!(Endpoint_IsSetupOUTReceived()));
		
		while (Length && Endpoint_BytesInEndpoint())
    1454:	21 f0       	breq	.+8      	; 0x145e <Endpoint_Read_Control_Stream_LE+0x22>
    1456:	80 91 f2 00 	lds	r24, 0x00F2
    145a:	88 23       	and	r24, r24
    145c:	b1 f7       	brne	.-20     	; 0x144a <Endpoint_Read_Control_Stream_LE+0xe>
			*(DataStream++) = Endpoint_Read_Byte();
			
			Length--;
		}
		
		Endpoint_ClearSetupOUT();
    145e:	80 91 e8 00 	lds	r24, 0x00E8
    1462:	8b 7f       	andi	r24, 0xFB	; 251
    1464:	80 93 e8 00 	sts	0x00E8, r24

uint8_t Endpoint_Read_Control_Stream_LE(void* Buffer, uint16_t Length)
{
	uint8_t* DataStream = (uint8_t*)Buffer;
	
	while (Length)
    1468:	61 15       	cp	r22, r1
    146a:	71 05       	cpc	r23, r1
    146c:	49 f7       	brne	.-46     	; 0x1440 <Endpoint_Read_Control_Stream_LE+0x4>
		}
		
		Endpoint_ClearSetupOUT();
	}
	
	while (!(Endpoint_IsSetupINReady()));
    146e:	80 91 e8 00 	lds	r24, 0x00E8
    1472:	80 ff       	sbrs	r24, 0
    1474:	fc cf       	rjmp	.-8      	; 0x146e <Endpoint_Read_Control_Stream_LE+0x32>
	
	return ENDPOINT_RWCSTREAM_ERROR_NoError;
}
    1476:	80 e0       	ldi	r24, 0x00	; 0
    1478:	08 95       	ret

0000147a <USB_Device_ProcessControlPacket>:
uint8_t USB_ConfigurationNumber;
bool    USB_RemoteWakeupEnabled;
bool    USB_CurrentlySelfPowered;

void USB_Device_ProcessControlPacket(void)
{
    147a:	ff 92       	push	r15
    147c:	0f 93       	push	r16
    147e:	1f 93       	push	r17
    1480:	df 93       	push	r29
    1482:	cf 93       	push	r28
    1484:	cd b7       	in	r28, 0x3d	; 61
    1486:	de b7       	in	r29, 0x3e	; 62
    1488:	28 97       	sbiw	r28, 0x08	; 8
    148a:	0f b6       	in	r0, 0x3f	; 63
    148c:	f8 94       	cli
    148e:	de bf       	out	0x3e, r29	; 62
    1490:	0f be       	out	0x3f, r0	; 63
    1492:	cd bf       	out	0x3d, r28	; 61
		/* Inline Functions: */
			/** Reads one byte from the currently selected endpoint's bank, for OUT direction endpoints. */
			static inline uint8_t Endpoint_Read_Byte(void) ATTR_WARN_UNUSED_RESULT;
			static inline uint8_t Endpoint_Read_Byte(void)
			{
				return UEDATX;
    1494:	60 91 f1 00 	lds	r22, 0x00F1
	uint8_t bmRequestType  = Endpoint_Read_Byte();
	uint8_t bRequest       = Endpoint_Read_Byte();
	bool    RequestHandled = false;
	
	switch (bRequest)
    1498:	40 91 f1 00 	lds	r20, 0x00F1
    149c:	45 30       	cpi	r20, 0x05	; 5
    149e:	09 f4       	brne	.+2      	; 0x14a2 <USB_Device_ProcessControlPacket+0x28>
    14a0:	cb c0       	rjmp	.+406    	; 0x1638 <USB_Device_ProcessControlPacket+0x1be>
    14a2:	46 30       	cpi	r20, 0x06	; 6
    14a4:	48 f4       	brcc	.+18     	; 0x14b8 <USB_Device_ProcessControlPacket+0x3e>
    14a6:	41 30       	cpi	r20, 0x01	; 1
    14a8:	09 f4       	brne	.+2      	; 0x14ac <USB_Device_ProcessControlPacket+0x32>
    14aa:	74 c0       	rjmp	.+232    	; 0x1594 <USB_Device_ProcessControlPacket+0x11a>
    14ac:	41 30       	cpi	r20, 0x01	; 1
    14ae:	70 f0       	brcs	.+28     	; 0x14cc <USB_Device_ProcessControlPacket+0x52>
    14b0:	43 30       	cpi	r20, 0x03	; 3
    14b2:	09 f0       	breq	.+2      	; 0x14b6 <USB_Device_ProcessControlPacket+0x3c>
    14b4:	9a c1       	rjmp	.+820    	; 0x17ea <USB_Device_ProcessControlPacket+0x370>
    14b6:	6e c0       	rjmp	.+220    	; 0x1594 <USB_Device_ProcessControlPacket+0x11a>
    14b8:	48 30       	cpi	r20, 0x08	; 8
    14ba:	09 f4       	brne	.+2      	; 0x14be <USB_Device_ProcessControlPacket+0x44>
    14bc:	48 c1       	rjmp	.+656    	; 0x174e <USB_Device_ProcessControlPacket+0x2d4>
    14be:	49 30       	cpi	r20, 0x09	; 9
    14c0:	09 f4       	brne	.+2      	; 0x14c4 <USB_Device_ProcessControlPacket+0x4a>
    14c2:	60 c1       	rjmp	.+704    	; 0x1784 <USB_Device_ProcessControlPacket+0x30a>
    14c4:	46 30       	cpi	r20, 0x06	; 6
    14c6:	09 f0       	breq	.+2      	; 0x14ca <USB_Device_ProcessControlPacket+0x50>
    14c8:	90 c1       	rjmp	.+800    	; 0x17ea <USB_Device_ProcessControlPacket+0x370>
    14ca:	d6 c0       	rjmp	.+428    	; 0x1678 <USB_Device_ProcessControlPacket+0x1fe>
	{
		case REQ_GetStatus:
			if (((bmRequestType & (CONTROL_REQTYPE_DIRECTION | CONTROL_REQTYPE_TYPE)) ==
    14cc:	26 2f       	mov	r18, r22
    14ce:	30 e0       	ldi	r19, 0x00	; 0
    14d0:	c9 01       	movw	r24, r18
    14d2:	80 7e       	andi	r24, 0xE0	; 224
    14d4:	90 70       	andi	r25, 0x00	; 0
    14d6:	80 38       	cpi	r24, 0x80	; 128
    14d8:	91 05       	cpc	r25, r1
    14da:	09 f0       	breq	.+2      	; 0x14de <USB_Device_ProcessControlPacket+0x64>
    14dc:	86 c1       	rjmp	.+780    	; 0x17ea <USB_Device_ProcessControlPacket+0x370>
    14de:	c9 01       	movw	r24, r18
    14e0:	8f 71       	andi	r24, 0x1F	; 31
    14e2:	90 70       	andi	r25, 0x00	; 0
    14e4:	83 30       	cpi	r24, 0x03	; 3
    14e6:	91 05       	cpc	r25, r1
    14e8:	09 f4       	brne	.+2      	; 0x14ec <USB_Device_ProcessControlPacket+0x72>
    14ea:	7f c1       	rjmp	.+766    	; 0x17ea <USB_Device_ProcessControlPacket+0x370>
			/** Discards two bytes from the currently selected endpoint's bank, for OUT direction endpoints. */
			static inline void Endpoint_Discard_Word(void)
			{
				uint8_t Dummy;
				
				Dummy = UEDATX;
    14ec:	20 91 f1 00 	lds	r18, 0x00F1
				Dummy = UEDATX;
    14f0:	20 91 f1 00 	lds	r18, 0x00F1
			static inline uint16_t Endpoint_Read_Word_LE(void) ATTR_WARN_UNUSED_RESULT;
			static inline uint16_t Endpoint_Read_Word_LE(void)
			{
				uint16_t Data;
				
				Data  = UEDATX;
    14f4:	20 91 f1 00 	lds	r18, 0x00F1
				Data |= (((uint16_t)UEDATX) << 8);
    14f8:	40 91 f1 00 	lds	r20, 0x00F1

	Endpoint_Discard_Word();

	uint16_t wIndex = Endpoint_Read_Word_LE();
	
	switch (bmRequestType & CONTROL_REQTYPE_RECIPIENT)
    14fc:	81 30       	cpi	r24, 0x01	; 1
    14fe:	91 05       	cpc	r25, r1
    1500:	31 f0       	breq	.+12     	; 0x150e <USB_Device_ProcessControlPacket+0x94>
    1502:	82 30       	cpi	r24, 0x02	; 2
    1504:	91 05       	cpc	r25, r1
    1506:	f9 f0       	breq	.+62     	; 0x1546 <USB_Device_ProcessControlPacket+0xcc>
    1508:	89 2b       	or	r24, r25
    150a:	21 f0       	breq	.+8      	; 0x1514 <USB_Device_ProcessControlPacket+0x9a>
    150c:	70 c1       	rjmp	.+736    	; 0x17ee <USB_Device_ProcessControlPacket+0x374>
    150e:	20 e0       	ldi	r18, 0x00	; 0
    1510:	30 e0       	ldi	r19, 0x00	; 0
    1512:	2d c0       	rjmp	.+90     	; 0x156e <USB_Device_ProcessControlPacket+0xf4>
	{
		case REQREC_DEVICE:
			if (USB_GetDescriptor(((DTYPE_Configuration << 8) | USB_ConfigurationNumber), 0,
    1514:	80 91 9c 02 	lds	r24, 0x029C
    1518:	90 e0       	ldi	r25, 0x00	; 0
    151a:	9e 01       	movw	r18, r28
    151c:	29 5f       	subi	r18, 0xF9	; 249
    151e:	3f 4f       	sbci	r19, 0xFF	; 255
    1520:	ae 01       	movw	r20, r28
    1522:	4f 5f       	subi	r20, 0xFF	; 255
    1524:	5f 4f       	sbci	r21, 0xFF	; 255
    1526:	60 e0       	ldi	r22, 0x00	; 0
    1528:	92 60       	ori	r25, 0x02	; 2
    152a:	8a da       	rcall	.-2796   	; 0xa40 <USB_GetDescriptor>
    152c:	88 23       	and	r24, r24
    152e:	09 f4       	brne	.+2      	; 0x1532 <USB_Device_ProcessControlPacket+0xb8>
    1530:	5e c1       	rjmp	.+700    	; 0x17ee <USB_Device_ProcessControlPacket+0x374>
#if defined(USE_RAM_DESCRIPTORS)
			ConfigAttributes = ConfigDescriptorPtr->ConfigAttributes;
#elif defined(USE_EEPROM_DESCRIPTORS)
			ConfigAttributes = eeprom_read_byte(&ConfigDescriptorPtr->ConfigAttributes);
#else
			ConfigAttributes = pgm_read_byte(&ConfigDescriptorPtr->ConfigAttributes);
    1532:	80 91 9a 02 	lds	r24, 0x029A
    1536:	28 2f       	mov	r18, r24
    1538:	30 e0       	ldi	r19, 0x00	; 0
#endif

			if (USB_CurrentlySelfPowered)
			  CurrentStatus |= FEATURE_SELFPOWERED_ENABLED;
			
			if (USB_RemoteWakeupEnabled)
    153a:	80 91 9b 02 	lds	r24, 0x029B
    153e:	88 23       	and	r24, r24
    1540:	b1 f0       	breq	.+44     	; 0x156e <USB_Device_ProcessControlPacket+0xf4>
			  CurrentStatus |= FEATURE_REMOTE_WAKEUP_ENABLED;
    1542:	22 60       	ori	r18, 0x02	; 2
    1544:	14 c0       	rjmp	.+40     	; 0x156e <USB_Device_ProcessControlPacket+0xf4>
		case REQREC_INTERFACE:
			// No bits set, all bits currently reserved
				
			break;
		case REQREC_ENDPOINT:
			Endpoint_SelectEndpoint(wIndex);
    1546:	94 2f       	mov	r25, r20
    1548:	80 e0       	ldi	r24, 0x00	; 0
    154a:	30 e0       	ldi	r19, 0x00	; 0
    154c:	82 2b       	or	r24, r18
    154e:	93 2b       	or	r25, r19
    1550:	80 93 e9 00 	sts	0x00E9, r24

			CurrentStatus = Endpoint_IsStalled();
    1554:	80 91 eb 00 	lds	r24, 0x00EB
    1558:	28 2f       	mov	r18, r24
    155a:	30 e0       	ldi	r19, 0x00	; 0
    155c:	85 e0       	ldi	r24, 0x05	; 5
    155e:	36 95       	lsr	r19
    1560:	27 95       	ror	r18
    1562:	8a 95       	dec	r24
    1564:	e1 f7       	brne	.-8      	; 0x155e <USB_Device_ProcessControlPacket+0xe4>
    1566:	21 70       	andi	r18, 0x01	; 1
    1568:	30 70       	andi	r19, 0x00	; 0

			Endpoint_SelectEndpoint(ENDPOINT_CONTROLEP);			  
    156a:	10 92 e9 00 	sts	0x00E9, r1
			break;
		default:
			return;
	}
	
	Endpoint_ClearSetupReceived();
    156e:	80 91 e8 00 	lds	r24, 0x00E8
    1572:	87 7f       	andi	r24, 0xF7	; 247
    1574:	80 93 e8 00 	sts	0x00E8, r24
			/** Writes two bytes to the currently selected endpoint's bank in little endian format, for IN
			 *  direction endpoints.
			 */
			static inline void Endpoint_Write_Word_LE(const uint16_t Word)
			{
				UEDATX = (Word & 0xFF);
    1578:	20 93 f1 00 	sts	0x00F1, r18
				UEDATX = (Word >> 8);
    157c:	30 93 f1 00 	sts	0x00F1, r19
	
	Endpoint_Write_Word_LE(CurrentStatus);

	Endpoint_ClearSetupIN();
    1580:	80 91 e8 00 	lds	r24, 0x00E8
    1584:	8e 7f       	andi	r24, 0xFE	; 254
    1586:	80 93 e8 00 	sts	0x00E8, r24
	
	while (!(Endpoint_IsSetupOUTReceived()));
    158a:	80 91 e8 00 	lds	r24, 0x00E8
    158e:	82 ff       	sbrs	r24, 2
    1590:	fc cf       	rjmp	.-8      	; 0x158a <USB_Device_ProcessControlPacket+0x110>
    1592:	f2 c0       	rjmp	.+484    	; 0x1778 <USB_Device_ProcessControlPacket+0x2fe>
			}

			break;
		case REQ_ClearFeature:
		case REQ_SetFeature:
			if (((bmRequestType & (CONTROL_REQTYPE_DIRECTION | CONTROL_REQTYPE_TYPE)) ==
    1594:	26 2f       	mov	r18, r22
    1596:	30 e0       	ldi	r19, 0x00	; 0
    1598:	86 2f       	mov	r24, r22
    159a:	80 7e       	andi	r24, 0xE0	; 224
    159c:	09 f0       	breq	.+2      	; 0x15a0 <USB_Device_ProcessControlPacket+0x126>
    159e:	25 c1       	rjmp	.+586    	; 0x17ea <USB_Device_ProcessControlPacket+0x370>
    15a0:	c9 01       	movw	r24, r18
    15a2:	8f 71       	andi	r24, 0x1F	; 31
    15a4:	90 70       	andi	r25, 0x00	; 0
    15a6:	83 30       	cpi	r24, 0x03	; 3
    15a8:	91 05       	cpc	r25, r1
    15aa:	09 f4       	brne	.+2      	; 0x15ae <USB_Device_ProcessControlPacket+0x134>
    15ac:	1e c1       	rjmp	.+572    	; 0x17ea <USB_Device_ProcessControlPacket+0x370>
			static inline uint16_t Endpoint_Read_Word_LE(void) ATTR_WARN_UNUSED_RESULT;
			static inline uint16_t Endpoint_Read_Word_LE(void)
			{
				uint16_t Data;
				
				Data  = UEDATX;
    15ae:	20 91 f1 00 	lds	r18, 0x00F1
				Data |= (((uint16_t)UEDATX) << 8);
    15b2:	50 91 f1 00 	lds	r21, 0x00F1
			static inline uint16_t Endpoint_Read_Word_LE(void) ATTR_WARN_UNUSED_RESULT;
			static inline uint16_t Endpoint_Read_Word_LE(void)
			{
				uint16_t Data;
				
				Data  = UEDATX;
    15b6:	70 91 f1 00 	lds	r23, 0x00F1
				Data |= (((uint16_t)UEDATX) << 8);
    15ba:	60 91 f1 00 	lds	r22, 0x00F1
static void USB_Device_ClearSetFeature(const uint8_t bRequest, const uint8_t bmRequestType)
{
	uint16_t wValue = Endpoint_Read_Word_LE();
	uint16_t wIndex = Endpoint_Read_Word_LE();
	
	switch (bmRequestType & CONTROL_REQTYPE_RECIPIENT)
    15be:	02 97       	sbiw	r24, 0x02	; 2
    15c0:	09 f0       	breq	.+2      	; 0x15c4 <USB_Device_ProcessControlPacket+0x14a>
    15c2:	15 c1       	rjmp	.+554    	; 0x17ee <USB_Device_ProcessControlPacket+0x374>
	{
		case REQREC_ENDPOINT:
			if (wValue == FEATURE_ENDPOINT_HALT)
    15c4:	95 2f       	mov	r25, r21
    15c6:	80 e0       	ldi	r24, 0x00	; 0
    15c8:	30 e0       	ldi	r19, 0x00	; 0
    15ca:	82 2b       	or	r24, r18
    15cc:	93 2b       	or	r25, r19
    15ce:	89 2b       	or	r24, r25
    15d0:	09 f0       	breq	.+2      	; 0x15d4 <USB_Device_ProcessControlPacket+0x15a>
    15d2:	0d c1       	rjmp	.+538    	; 0x17ee <USB_Device_ProcessControlPacket+0x374>
			{
				uint8_t EndpointIndex = (wIndex & ENDPOINT_EPNUM_MASK);
    15d4:	80 e0       	ldi	r24, 0x00	; 0
    15d6:	27 2f       	mov	r18, r23
    15d8:	28 2b       	or	r18, r24
    15da:	27 70       	andi	r18, 0x07	; 7
				
				if (EndpointIndex != ENDPOINT_CONTROLEP)
    15dc:	09 f4       	brne	.+2      	; 0x15e0 <USB_Device_ProcessControlPacket+0x166>
    15de:	07 c1       	rjmp	.+526    	; 0x17ee <USB_Device_ProcessControlPacket+0x374>
				{
					Endpoint_SelectEndpoint(EndpointIndex);
    15e0:	20 93 e9 00 	sts	0x00E9, r18

					if (Endpoint_IsEnabled())
    15e4:	80 91 eb 00 	lds	r24, 0x00EB
    15e8:	80 ff       	sbrs	r24, 0
    15ea:	1b c0       	rjmp	.+54     	; 0x1622 <USB_Device_ProcessControlPacket+0x1a8>
					{				
						if (bRequest == REQ_ClearFeature)
    15ec:	41 30       	cpi	r20, 0x01	; 1
    15ee:	a1 f4       	brne	.+40     	; 0x1618 <USB_Device_ProcessControlPacket+0x19e>
						{
							Endpoint_ClearStall();
    15f0:	80 91 eb 00 	lds	r24, 0x00EB
    15f4:	80 61       	ori	r24, 0x10	; 16
    15f6:	80 93 eb 00 	sts	0x00EB, r24
							Endpoint_ResetFIFO(EndpointIndex);
    15fa:	81 e0       	ldi	r24, 0x01	; 1
    15fc:	90 e0       	ldi	r25, 0x00	; 0
    15fe:	02 c0       	rjmp	.+4      	; 0x1604 <USB_Device_ProcessControlPacket+0x18a>
    1600:	88 0f       	add	r24, r24
    1602:	99 1f       	adc	r25, r25
    1604:	2a 95       	dec	r18
    1606:	e2 f7       	brpl	.-8      	; 0x1600 <USB_Device_ProcessControlPacket+0x186>
    1608:	80 93 ea 00 	sts	0x00EA, r24
    160c:	10 92 ea 00 	sts	0x00EA, r1
							Endpoint_ResetDataToggle();
    1610:	80 91 eb 00 	lds	r24, 0x00EB
    1614:	88 60       	ori	r24, 0x08	; 8
    1616:	03 c0       	rjmp	.+6      	; 0x161e <USB_Device_ProcessControlPacket+0x1a4>
						}
						else
						{
							Endpoint_StallTransaction();						
    1618:	80 91 eb 00 	lds	r24, 0x00EB
    161c:	80 62       	ori	r24, 0x20	; 32
    161e:	80 93 eb 00 	sts	0x00EB, r24
						}
					}

					Endpoint_SelectEndpoint(ENDPOINT_CONTROLEP);
    1622:	10 92 e9 00 	sts	0x00E9, r1
					Endpoint_ClearSetupReceived();
    1626:	80 91 e8 00 	lds	r24, 0x00E8
    162a:	87 7f       	andi	r24, 0xF7	; 247
    162c:	80 93 e8 00 	sts	0x00E8, r24
					Endpoint_ClearSetupIN();
    1630:	80 91 e8 00 	lds	r24, 0x00E8
    1634:	8e 7f       	andi	r24, 0xFE	; 254
    1636:	a3 c0       	rjmp	.+326    	; 0x177e <USB_Device_ProcessControlPacket+0x304>
				RequestHandled = true;
			}

			break;
		case REQ_SetAddress:
			if (bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_STANDARD | REQREC_DEVICE))
    1638:	66 23       	and	r22, r22
    163a:	09 f0       	breq	.+2      	; 0x163e <USB_Device_ProcessControlPacket+0x1c4>
    163c:	d6 c0       	rjmp	.+428    	; 0x17ea <USB_Device_ProcessControlPacket+0x370>
		/* Inline Functions: */
			/** Reads one byte from the currently selected endpoint's bank, for OUT direction endpoints. */
			static inline uint8_t Endpoint_Read_Byte(void) ATTR_WARN_UNUSED_RESULT;
			static inline uint8_t Endpoint_Read_Byte(void)
			{
				return UEDATX;
    163e:	90 91 f1 00 	lds	r25, 0x00F1

static void USB_Device_SetAddress(void)
{
	uint8_t wValue_LSB = Endpoint_Read_Byte();

	UDADDR = ((UDADDR & (1 << ADDEN)) | (wValue_LSB & 0x7F));
    1642:	80 91 e3 00 	lds	r24, 0x00E3
    1646:	9f 77       	andi	r25, 0x7F	; 127
    1648:	80 78       	andi	r24, 0x80	; 128
    164a:	98 2b       	or	r25, r24
    164c:	90 93 e3 00 	sts	0x00E3, r25

	Endpoint_ClearSetupReceived();
    1650:	80 91 e8 00 	lds	r24, 0x00E8
    1654:	87 7f       	andi	r24, 0xF7	; 247
    1656:	80 93 e8 00 	sts	0x00E8, r24

	Endpoint_ClearSetupIN();
    165a:	80 91 e8 00 	lds	r24, 0x00E8
    165e:	8e 7f       	andi	r24, 0xFE	; 254
    1660:	80 93 e8 00 	sts	0x00E8, r24
	while (!(Endpoint_IsSetupINReady()));
    1664:	80 91 e8 00 	lds	r24, 0x00E8
    1668:	80 ff       	sbrs	r24, 0
    166a:	fc cf       	rjmp	.-8      	; 0x1664 <USB_Device_ProcessControlPacket+0x1ea>
	
	UDADDR |= (1 << ADDEN);
    166c:	80 91 e3 00 	lds	r24, 0x00E3
    1670:	80 68       	ori	r24, 0x80	; 128
    1672:	80 93 e3 00 	sts	0x00E3, r24
    1676:	bb c0       	rjmp	.+374    	; 0x17ee <USB_Device_ProcessControlPacket+0x374>
			static inline uint16_t Endpoint_Read_Word_LE(void) ATTR_WARN_UNUSED_RESULT;
			static inline uint16_t Endpoint_Read_Word_LE(void)
			{
				uint16_t Data;
				
				Data  = UEDATX;
    1678:	e0 91 f1 00 	lds	r30, 0x00F1
				Data |= (((uint16_t)UEDATX) << 8);
    167c:	30 91 f1 00 	lds	r19, 0x00F1
			static inline uint16_t Endpoint_Read_Word_LE(void) ATTR_WARN_UNUSED_RESULT;
			static inline uint16_t Endpoint_Read_Word_LE(void)
			{
				uint16_t Data;
				
				Data  = UEDATX;
    1680:	80 91 f1 00 	lds	r24, 0x00F1
				Data |= (((uint16_t)UEDATX) << 8);
    1684:	20 91 f1 00 	lds	r18, 0x00F1
			static inline uint16_t Endpoint_Read_Word_LE(void) ATTR_WARN_UNUSED_RESULT;
			static inline uint16_t Endpoint_Read_Word_LE(void)
			{
				uint16_t Data;
				
				Data  = UEDATX;
    1688:	00 91 f1 00 	lds	r16, 0x00F1
				Data |= (((uint16_t)UEDATX) << 8);
    168c:	10 91 f1 00 	lds	r17, 0x00F1
	void*    DescriptorPointer;
	uint16_t DescriptorSize;
	
	bool     SendZLP;
	
	if (!(USB_GetDescriptor(wValue, wIndex, &DescriptorPointer, &DescriptorSize)))
    1690:	72 2f       	mov	r23, r18
    1692:	60 e0       	ldi	r22, 0x00	; 0
    1694:	90 e0       	ldi	r25, 0x00	; 0
    1696:	68 2b       	or	r22, r24
    1698:	79 2b       	or	r23, r25
    169a:	93 2f       	mov	r25, r19
    169c:	80 e0       	ldi	r24, 0x00	; 0
    169e:	f0 e0       	ldi	r31, 0x00	; 0
    16a0:	9e 01       	movw	r18, r28
    16a2:	29 5f       	subi	r18, 0xF9	; 249
    16a4:	3f 4f       	sbci	r19, 0xFF	; 255
    16a6:	ae 01       	movw	r20, r28
    16a8:	4d 5f       	subi	r20, 0xFD	; 253
    16aa:	5f 4f       	sbci	r21, 0xFF	; 255
    16ac:	8e 2b       	or	r24, r30
    16ae:	9f 2b       	or	r25, r31
    16b0:	c7 d9       	rcall	.-3186   	; 0xa40 <USB_GetDescriptor>
    16b2:	88 23       	and	r24, r24
    16b4:	09 f4       	brne	.+2      	; 0x16b8 <USB_Device_ProcessControlPacket+0x23e>
    16b6:	9b c0       	rjmp	.+310    	; 0x17ee <USB_Device_ProcessControlPacket+0x374>
	  return;
	
	Endpoint_ClearSetupReceived();
    16b8:	80 91 e8 00 	lds	r24, 0x00E8
    16bc:	87 7f       	andi	r24, 0xF7	; 247
    16be:	80 93 e8 00 	sts	0x00E8, r24
    16c2:	91 2f       	mov	r25, r17
    16c4:	80 e0       	ldi	r24, 0x00	; 0
    16c6:	40 2f       	mov	r20, r16
    16c8:	50 e0       	ldi	r21, 0x00	; 0
    16ca:	2f 81       	ldd	r18, Y+7	; 0x07
    16cc:	38 85       	ldd	r19, Y+8	; 0x08
    16ce:	48 2b       	or	r20, r24
    16d0:	59 2b       	or	r21, r25
    16d2:	24 17       	cp	r18, r20
    16d4:	35 07       	cpc	r19, r21
    16d6:	08 f4       	brcc	.+2      	; 0x16da <USB_Device_ProcessControlPacket+0x260>
    16d8:	a9 01       	movw	r20, r18
	
	if (wLength > DescriptorSize)
	  wLength = DescriptorSize;
	  
	SendZLP = !(wLength % USB_ControlEndpointSize);
    16da:	60 91 5c 01 	lds	r22, 0x015C
    16de:	ab 81       	ldd	r26, Y+3	; 0x03
    16e0:	bc 81       	ldd	r27, Y+4	; 0x04
    16e2:	9a 01       	movw	r18, r20
    16e4:	16 c0       	rjmp	.+44     	; 0x1712 <USB_Device_ProcessControlPacket+0x298>
	
	while (wLength && (!(Endpoint_IsSetupOUTReceived())))
	{
		while (!(Endpoint_IsSetupINReady()));
    16e6:	80 91 e8 00 	lds	r24, 0x00E8
    16ea:	80 ff       	sbrs	r24, 0
    16ec:	fc cf       	rjmp	.-8      	; 0x16e6 <USB_Device_ProcessControlPacket+0x26c>
    16ee:	08 c0       	rjmp	.+16     	; 0x1700 <USB_Device_ProcessControlPacket+0x286>
    16f0:	fd 01       	movw	r30, r26
    16f2:	11 96       	adiw	r26, 0x01	; 1
			#if defined(USE_RAM_DESCRIPTORS)
			Endpoint_Write_Byte(*((uint8_t*)DescriptorPointer++));
			#elif defined (USE_EEPROM_DESCRIPTORS)
			Endpoint_Write_Byte(eeprom_read_byte(DescriptorPointer++));			
			#else
			Endpoint_Write_Byte(pgm_read_byte(DescriptorPointer++));
    16f4:	e4 91       	lpm	r30, Z+
			}

			/** Writes one byte from the currently selected endpoint's bank, for IN direction endpoints. */
			static inline void Endpoint_Write_Byte(const uint8_t Byte)
			{
				UEDATX = Byte;
    16f6:	e0 93 f1 00 	sts	0x00F1, r30
			#endif
			
			wLength--;
    16fa:	21 50       	subi	r18, 0x01	; 1
    16fc:	30 40       	sbci	r19, 0x00	; 0
	
	while (wLength && (!(Endpoint_IsSetupOUTReceived())))
	{
		while (!(Endpoint_IsSetupINReady()));
		
		while (wLength && (Endpoint_BytesInEndpoint() < USB_ControlEndpointSize))
    16fe:	21 f0       	breq	.+8      	; 0x1708 <USB_Device_ProcessControlPacket+0x28e>
    1700:	80 91 f2 00 	lds	r24, 0x00F2
    1704:	86 17       	cp	r24, r22
    1706:	a0 f3       	brcs	.-24     	; 0x16f0 <USB_Device_ProcessControlPacket+0x276>
			#endif
			
			wLength--;
		}
		
		Endpoint_ClearSetupIN();
    1708:	80 91 e8 00 	lds	r24, 0x00E8
    170c:	8e 7f       	andi	r24, 0xFE	; 254
    170e:	80 93 e8 00 	sts	0x00E8, r24
	if (wLength > DescriptorSize)
	  wLength = DescriptorSize;
	  
	SendZLP = !(wLength % USB_ControlEndpointSize);
	
	while (wLength && (!(Endpoint_IsSetupOUTReceived())))
    1712:	21 15       	cp	r18, r1
    1714:	31 05       	cpc	r19, r1
    1716:	21 f0       	breq	.+8      	; 0x1720 <USB_Device_ProcessControlPacket+0x2a6>
    1718:	80 91 e8 00 	lds	r24, 0x00E8
    171c:	82 ff       	sbrs	r24, 2
    171e:	e3 cf       	rjmp	.-58     	; 0x16e6 <USB_Device_ProcessControlPacket+0x26c>
		}
		
		Endpoint_ClearSetupIN();
	}
	
	if (Endpoint_IsSetupOUTReceived())
    1720:	80 91 e8 00 	lds	r24, 0x00E8
    1724:	82 fd       	sbrc	r24, 2
    1726:	28 c0       	rjmp	.+80     	; 0x1778 <USB_Device_ProcessControlPacket+0x2fe>
	{
		Endpoint_ClearSetupOUT();
		return;
	}
	
	if (SendZLP)
    1728:	ca 01       	movw	r24, r20
    172a:	70 e0       	ldi	r23, 0x00	; 0
    172c:	3a d1       	rcall	.+628    	; 0x19a2 <__udivmodhi4>
    172e:	89 2b       	or	r24, r25
    1730:	49 f4       	brne	.+18     	; 0x1744 <USB_Device_ProcessControlPacket+0x2ca>
	{
		while (!(Endpoint_IsSetupINReady()));
    1732:	80 91 e8 00 	lds	r24, 0x00E8
    1736:	80 ff       	sbrs	r24, 0
    1738:	fc cf       	rjmp	.-8      	; 0x1732 <USB_Device_ProcessControlPacket+0x2b8>
		Endpoint_ClearSetupIN();
    173a:	80 91 e8 00 	lds	r24, 0x00E8
    173e:	8e 7f       	andi	r24, 0xFE	; 254
    1740:	80 93 e8 00 	sts	0x00E8, r24
	}

	while (!(Endpoint_IsSetupOUTReceived()));
    1744:	80 91 e8 00 	lds	r24, 0x00E8
    1748:	82 ff       	sbrs	r24, 2
    174a:	fc cf       	rjmp	.-8      	; 0x1744 <USB_Device_ProcessControlPacket+0x2ca>
    174c:	15 c0       	rjmp	.+42     	; 0x1778 <USB_Device_ProcessControlPacket+0x2fe>
			USB_Device_GetDescriptor();
			RequestHandled = true;
			
			break;
		case REQ_GetConfiguration:
			if (bmRequestType == (REQDIR_DEVICETOHOST | REQTYPE_STANDARD | REQREC_DEVICE))
    174e:	60 38       	cpi	r22, 0x80	; 128
    1750:	09 f0       	breq	.+2      	; 0x1754 <USB_Device_ProcessControlPacket+0x2da>
    1752:	4b c0       	rjmp	.+150    	; 0x17ea <USB_Device_ProcessControlPacket+0x370>
	RAISE_EVENT(USB_ConfigurationChanged);
}

void USB_Device_GetConfiguration(void)
{
	Endpoint_ClearSetupReceived();	
    1754:	80 91 e8 00 	lds	r24, 0x00E8
    1758:	87 7f       	andi	r24, 0xF7	; 247
    175a:	80 93 e8 00 	sts	0x00E8, r24

	Endpoint_Write_Byte(USB_ConfigurationNumber);
    175e:	80 91 9c 02 	lds	r24, 0x029C
    1762:	80 93 f1 00 	sts	0x00F1, r24
	
	Endpoint_ClearSetupIN();
    1766:	80 91 e8 00 	lds	r24, 0x00E8
    176a:	8e 7f       	andi	r24, 0xFE	; 254
    176c:	80 93 e8 00 	sts	0x00E8, r24

	while (!(Endpoint_IsSetupOUTReceived()));
    1770:	80 91 e8 00 	lds	r24, 0x00E8
    1774:	82 ff       	sbrs	r24, 2
    1776:	fc cf       	rjmp	.-8      	; 0x1770 <USB_Device_ProcessControlPacket+0x2f6>
	Endpoint_ClearSetupOUT();
    1778:	80 91 e8 00 	lds	r24, 0x00E8
    177c:	8b 7f       	andi	r24, 0xFB	; 251
    177e:	80 93 e8 00 	sts	0x00E8, r24
    1782:	35 c0       	rjmp	.+106    	; 0x17ee <USB_Device_ProcessControlPacket+0x374>
				RequestHandled = true;
			}

			break;
		case REQ_SetConfiguration:
			if (bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_STANDARD | REQREC_DEVICE))
    1784:	66 23       	and	r22, r22
    1786:	89 f5       	brne	.+98     	; 0x17ea <USB_Device_ProcessControlPacket+0x370>
			static inline uint16_t Endpoint_Read_Word_LE(void) ATTR_WARN_UNUSED_RESULT;
			static inline uint16_t Endpoint_Read_Word_LE(void)
			{
				uint16_t Data;
				
				Data  = UEDATX;
    1788:	00 91 f1 00 	lds	r16, 0x00F1
				Data |= (((uint16_t)UEDATX) << 8);
    178c:	10 91 f1 00 	lds	r17, 0x00F1
}

static void USB_Device_SetConfiguration(void)
{
	uint16_t                 wValue               = Endpoint_Read_Word_LE();
	bool                     NotAlreadyConfigured = !(USB_ConfigurationNumber);
    1790:	f0 90 9c 02 	lds	r15, 0x029C
	USB_Descriptor_Device_t* DevDescriptorPtr;
	uint16_t                 DevDescriptorSize;

	if ((USB_GetDescriptor((DTYPE_Device << 8), 0, (void*)&DevDescriptorPtr, &DevDescriptorSize) == false) ||
    1794:	9e 01       	movw	r18, r28
    1796:	29 5f       	subi	r18, 0xF9	; 249
    1798:	3f 4f       	sbci	r19, 0xFF	; 255
    179a:	ae 01       	movw	r20, r28
    179c:	4b 5f       	subi	r20, 0xFB	; 251
    179e:	5f 4f       	sbci	r21, 0xFF	; 255
    17a0:	80 e0       	ldi	r24, 0x00	; 0
    17a2:	91 e0       	ldi	r25, 0x01	; 1
    17a4:	4d d9       	rcall	.-3430   	; 0xa40 <USB_GetDescriptor>
    17a6:	88 23       	and	r24, r24
    17a8:	11 f1       	breq	.+68     	; 0x17ee <USB_Device_ProcessControlPacket+0x374>
    17aa:	91 2f       	mov	r25, r17
    17ac:	80 e0       	ldi	r24, 0x00	; 0
    17ae:	20 2f       	mov	r18, r16
    17b0:	30 e0       	ldi	r19, 0x00	; 0
    17b2:	28 2b       	or	r18, r24
    17b4:	39 2b       	or	r19, r25
#if defined(USE_RAM_DESCRIPTORS)
	    (wValue > DevDescriptorPtr->NumberOfConfigurations))
#elif defined (USE_EEPROM_DESCRIPTORS)
	    (wValue > eeprom_read_byte(&DevDescriptorPtr->NumberOfConfigurations)))
#else
	    (wValue > pgm_read_byte(&DevDescriptorPtr->NumberOfConfigurations)))
    17b6:	ed 81       	ldd	r30, Y+5	; 0x05
    17b8:	fe 81       	ldd	r31, Y+6	; 0x06
    17ba:	71 96       	adiw	r30, 0x11	; 17
    17bc:	e4 91       	lpm	r30, Z+
	uint16_t                 wValue               = Endpoint_Read_Word_LE();
	bool                     NotAlreadyConfigured = !(USB_ConfigurationNumber);
	USB_Descriptor_Device_t* DevDescriptorPtr;
	uint16_t                 DevDescriptorSize;

	if ((USB_GetDescriptor((DTYPE_Device << 8), 0, (void*)&DevDescriptorPtr, &DevDescriptorSize) == false) ||
    17be:	8e 2f       	mov	r24, r30
    17c0:	90 e0       	ldi	r25, 0x00	; 0
    17c2:	82 17       	cp	r24, r18
    17c4:	93 07       	cpc	r25, r19
    17c6:	98 f0       	brcs	.+38     	; 0x17ee <USB_Device_ProcessControlPacket+0x374>
#endif
	{
		return;
	}
	
	Endpoint_ClearSetupReceived();
    17c8:	80 91 e8 00 	lds	r24, 0x00E8
    17cc:	87 7f       	andi	r24, 0xF7	; 247
    17ce:	80 93 e8 00 	sts	0x00E8, r24

	USB_ConfigurationNumber = wValue;
    17d2:	20 93 9c 02 	sts	0x029C, r18

	Endpoint_ClearSetupIN();
    17d6:	80 91 e8 00 	lds	r24, 0x00E8
    17da:	8e 7f       	andi	r24, 0xFE	; 254
    17dc:	80 93 e8 00 	sts	0x00E8, r24

	if (NotAlreadyConfigured)
    17e0:	ff 20       	and	r15, r15
    17e2:	09 f4       	brne	.+2      	; 0x17e6 <USB_Device_ProcessControlPacket+0x36c>
	  RAISE_EVENT(USB_DeviceEnumerationComplete);
    17e4:	cb d0       	rcall	.+406    	; 0x197c <Event_USB_DeviceEnumerationComplete>

	RAISE_EVENT(USB_ConfigurationChanged);
    17e6:	dd d8       	rcall	.-3654   	; 0x9a2 <Event_USB_ConfigurationChanged>
    17e8:	02 c0       	rjmp	.+4      	; 0x17ee <USB_Device_ProcessControlPacket+0x374>

			break;
	}

	if (!(RequestHandled))
	  RAISE_EVENT(USB_UnhandledControlPacket, bRequest, bmRequestType);
    17ea:	84 2f       	mov	r24, r20
    17ec:	95 d8       	rcall	.-3798   	; 0x918 <Event_USB_UnhandledControlPacket>
	  
	if (Endpoint_IsSetupReceived())
    17ee:	80 91 e8 00 	lds	r24, 0x00E8
    17f2:	83 ff       	sbrs	r24, 3
    17f4:	0a c0       	rjmp	.+20     	; 0x180a <USB_Device_ProcessControlPacket+0x390>
	{
		Endpoint_StallTransaction();
    17f6:	80 91 eb 00 	lds	r24, 0x00EB
    17fa:	80 62       	ori	r24, 0x20	; 32
    17fc:	80 93 eb 00 	sts	0x00EB, r24
		Endpoint_ClearSetupReceived();		
    1800:	80 91 e8 00 	lds	r24, 0x00E8
    1804:	87 7f       	andi	r24, 0xF7	; 247
    1806:	80 93 e8 00 	sts	0x00E8, r24
	}
}
    180a:	28 96       	adiw	r28, 0x08	; 8
    180c:	0f b6       	in	r0, 0x3f	; 63
    180e:	f8 94       	cli
    1810:	de bf       	out	0x3e, r29	; 62
    1812:	0f be       	out	0x3f, r0	; 63
    1814:	cd bf       	out	0x3d, r28	; 61
    1816:	cf 91       	pop	r28
    1818:	df 91       	pop	r29
    181a:	1f 91       	pop	r17
    181c:	0f 91       	pop	r16
    181e:	ff 90       	pop	r15
    1820:	08 95       	ret

00001822 <USB_USBTask>:
#if defined(USB_CAN_BE_HOST)
volatile uint8_t   USB_HostState;
#endif

TASK(USB_USBTask)
{
    1822:	1f 93       	push	r17
#endif

#if defined(USB_CAN_BE_DEVICE)
static void USB_DeviceTask(void)
{
	if (USB_IsConnected)
    1824:	80 91 9e 02 	lds	r24, 0x029E
    1828:	88 23       	and	r24, r24
    182a:	61 f0       	breq	.+24     	; 0x1844 <USB_USBTask+0x22>
	{
		uint8_t PrevEndpoint = Endpoint_GetCurrentEndpoint();
    182c:	10 91 e9 00 	lds	r17, 0x00E9
	
		Endpoint_SelectEndpoint(ENDPOINT_CONTROLEP);
    1830:	10 92 e9 00 	sts	0x00E9, r1

		if (Endpoint_IsSetupReceived())
    1834:	80 91 e8 00 	lds	r24, 0x00E8
    1838:	83 ff       	sbrs	r24, 3
    183a:	01 c0       	rjmp	.+2      	; 0x183e <USB_USBTask+0x1c>
		  USB_Device_ProcessControlPacket();
    183c:	1e de       	rcall	.-964    	; 0x147a <USB_Device_ProcessControlPacket>
#if defined(USB_CAN_BE_DEVICE)
static void USB_DeviceTask(void)
{
	if (USB_IsConnected)
	{
		uint8_t PrevEndpoint = Endpoint_GetCurrentEndpoint();
    183e:	17 70       	andi	r17, 0x07	; 7
		Endpoint_SelectEndpoint(ENDPOINT_CONTROLEP);

		if (Endpoint_IsSetupReceived())
		  USB_Device_ProcessControlPacket();
		  
		Endpoint_SelectEndpoint(PrevEndpoint);
    1840:	10 93 e9 00 	sts	0x00E9, r17
		USB_DeviceTask();
	#else
		if (USB_IsInitialized)
		  (*USB_TaskPtr)();
	#endif
}
    1844:	1f 91       	pop	r17
    1846:	08 95       	ret

00001848 <USB_INT_DisableAllInterrupts>:

#include "../LowLevel/USBMode.h"
#include "USBInterrupt.h"

void USB_INT_DisableAllInterrupts(void)
{
    1848:	10 92 e2 00 	sts	0x00E2, r1
	#endif
	
	#if defined(USB_CAN_BE_DEVICE)
	UDIEN   = 0;
	#endif
}
    184c:	08 95       	ret

0000184e <USB_INT_ClearAllInterrupts>:

void USB_INT_ClearAllInterrupts(void)
{
    184e:	10 92 e1 00 	sts	0x00E1, r1
	#endif
	
	#if defined(USB_CAN_BE_DEVICE)
	UDINT   = 0;
	#endif
}
    1852:	08 95       	ret

00001854 <__vector_11>:

ISR(USB_GEN_vect)
{
    1854:	1f 92       	push	r1
    1856:	0f 92       	push	r0
    1858:	0f b6       	in	r0, 0x3f	; 63
    185a:	0f 92       	push	r0
    185c:	11 24       	eor	r1, r1
    185e:	2f 93       	push	r18
    1860:	3f 93       	push	r19
    1862:	4f 93       	push	r20
    1864:	5f 93       	push	r21
    1866:	6f 93       	push	r22
    1868:	7f 93       	push	r23
    186a:	8f 93       	push	r24
    186c:	9f 93       	push	r25
    186e:	af 93       	push	r26
    1870:	bf 93       	push	r27
    1872:	ef 93       	push	r30
    1874:	ff 93       	push	r31
			USB_IsConnected = false;
		}
	}
	#endif

	if (USB_INT_HasOccurred(USB_INT_SUSPEND) && USB_INT_IsEnabled(USB_INT_SUSPEND))
    1876:	80 91 e1 00 	lds	r24, 0x00E1
    187a:	80 ff       	sbrs	r24, 0
    187c:	1e c0       	rjmp	.+60     	; 0x18ba <__vector_11+0x66>
    187e:	80 91 e2 00 	lds	r24, 0x00E2
    1882:	80 ff       	sbrs	r24, 0
    1884:	1a c0       	rjmp	.+52     	; 0x18ba <__vector_11+0x66>
	{
		USB_INT_Clear(USB_INT_SUSPEND);
    1886:	80 91 e1 00 	lds	r24, 0x00E1
    188a:	8e 7f       	andi	r24, 0xFE	; 254
    188c:	80 93 e1 00 	sts	0x00E1, r24

		USB_INT_Disable(USB_INT_SUSPEND);
    1890:	80 91 e2 00 	lds	r24, 0x00E2
    1894:	8e 7f       	andi	r24, 0xFE	; 254
    1896:	80 93 e2 00 	sts	0x00E2, r24
		USB_INT_Enable(USB_INT_WAKEUP);
    189a:	80 91 e2 00 	lds	r24, 0x00E2
    189e:	80 61       	ori	r24, 0x10	; 16
    18a0:	80 93 e2 00 	sts	0x00E2, r24
		
		USB_CLK_Freeze();
    18a4:	80 91 d8 00 	lds	r24, 0x00D8
    18a8:	80 62       	ori	r24, 0x20	; 32
    18aa:	80 93 d8 00 	sts	0x00D8, r24
		#if !defined(MANUAL_PLL_CONTROL)
		USB_PLL_Off();
    18ae:	19 bc       	out	0x29, r1	; 41
		#endif

		RAISE_EVENT(USB_Suspend);
    18b0:	65 d0       	rcall	.+202    	; 0x197c <Event_USB_DeviceEnumerationComplete>

		#if defined(USB_LIMITED_CONTROLLER)
		USB_IsConnected = false;
    18b2:	10 92 9e 02 	sts	0x029E, r1
		RAISE_EVENT(USB_Disconnect);
    18b6:	0e 94 99 03 	call	0x732	; 0x732 <Event_USB_Disconnect>
		#endif
	}

	if (USB_INT_HasOccurred(USB_INT_WAKEUP) && USB_INT_IsEnabled(USB_INT_WAKEUP))
    18ba:	80 91 e1 00 	lds	r24, 0x00E1
    18be:	84 ff       	sbrs	r24, 4
    18c0:	26 c0       	rjmp	.+76     	; 0x190e <__vector_11+0xba>
    18c2:	80 91 e2 00 	lds	r24, 0x00E2
    18c6:	84 ff       	sbrs	r24, 4
    18c8:	22 c0       	rjmp	.+68     	; 0x190e <__vector_11+0xba>
	{
		#if !defined(MANUAL_PLL_CONTROL)
		USB_PLL_On();
    18ca:	84 e0       	ldi	r24, 0x04	; 4
    18cc:	89 bd       	out	0x29, r24	; 41
    18ce:	89 b5       	in	r24, 0x29	; 41
    18d0:	82 60       	ori	r24, 0x02	; 2
    18d2:	89 bd       	out	0x29, r24	; 41
		#endif
		while (!(USB_PLL_IsReady()));
    18d4:	09 b4       	in	r0, 0x29	; 41
    18d6:	00 fe       	sbrs	r0, 0
    18d8:	fd cf       	rjmp	.-6      	; 0x18d4 <__vector_11+0x80>

		USB_CLK_Unfreeze();
    18da:	80 91 d8 00 	lds	r24, 0x00D8
    18de:	8f 7d       	andi	r24, 0xDF	; 223
    18e0:	80 93 d8 00 	sts	0x00D8, r24

		USB_INT_Clear(USB_INT_WAKEUP);
    18e4:	80 91 e1 00 	lds	r24, 0x00E1
    18e8:	8f 7e       	andi	r24, 0xEF	; 239
    18ea:	80 93 e1 00 	sts	0x00E1, r24

		USB_INT_Disable(USB_INT_WAKEUP);
    18ee:	80 91 e2 00 	lds	r24, 0x00E2
    18f2:	8f 7e       	andi	r24, 0xEF	; 239
    18f4:	80 93 e2 00 	sts	0x00E2, r24
		USB_INT_Enable(USB_INT_SUSPEND);
    18f8:	80 91 e2 00 	lds	r24, 0x00E2
    18fc:	81 60       	ori	r24, 0x01	; 1
    18fe:	80 93 e2 00 	sts	0x00E2, r24
		
		#if defined(USB_LIMITED_CONTROLLER)
		USB_IsConnected = true;
    1902:	81 e0       	ldi	r24, 0x01	; 1
    1904:	80 93 9e 02 	sts	0x029E, r24
		RAISE_EVENT(USB_Connect);
    1908:	0e 94 a1 03 	call	0x742	; 0x742 <Event_USB_Connect>
		#endif

		RAISE_EVENT(USB_WakeUp);
    190c:	37 d0       	rcall	.+110    	; 0x197c <Event_USB_DeviceEnumerationComplete>
	}
   
	if (USB_INT_HasOccurred(USB_INT_EORSTI) && USB_INT_IsEnabled(USB_INT_EORSTI))
    190e:	80 91 e1 00 	lds	r24, 0x00E1
    1912:	83 ff       	sbrs	r24, 3
    1914:	22 c0       	rjmp	.+68     	; 0x195a <__vector_11+0x106>
    1916:	80 91 e2 00 	lds	r24, 0x00E2
    191a:	83 ff       	sbrs	r24, 3
    191c:	1e c0       	rjmp	.+60     	; 0x195a <__vector_11+0x106>
	{
		USB_INT_Clear(USB_INT_EORSTI);
    191e:	80 91 e1 00 	lds	r24, 0x00E1
    1922:	87 7f       	andi	r24, 0xF7	; 247
    1924:	80 93 e1 00 	sts	0x00E1, r24

		USB_ConfigurationNumber = 0;
    1928:	10 92 9c 02 	sts	0x029C, r1

		USB_INT_Clear(USB_INT_SUSPEND);
    192c:	80 91 e1 00 	lds	r24, 0x00E1
    1930:	8e 7f       	andi	r24, 0xFE	; 254
    1932:	80 93 e1 00 	sts	0x00E1, r24
		USB_INT_Disable(USB_INT_SUSPEND);
    1936:	80 91 e2 00 	lds	r24, 0x00E2
    193a:	8e 7f       	andi	r24, 0xFE	; 254
    193c:	80 93 e2 00 	sts	0x00E2, r24
		USB_INT_Enable(USB_INT_WAKEUP);
    1940:	80 91 e2 00 	lds	r24, 0x00E2
    1944:	80 61       	ori	r24, 0x10	; 16
    1946:	80 93 e2 00 	sts	0x00E2, r24

		Endpoint_ConfigureEndpoint(ENDPOINT_CONTROLEP, EP_TYPE_CONTROL,
    194a:	60 91 5c 01 	lds	r22, 0x015C
    194e:	20 e0       	ldi	r18, 0x00	; 0
    1950:	40 e0       	ldi	r20, 0x00	; 0
    1952:	70 e0       	ldi	r23, 0x00	; 0
    1954:	80 e0       	ldi	r24, 0x00	; 0
    1956:	07 dd       	rcall	.-1522   	; 0x1366 <Endpoint_ConfigureEndpoint_P>
		                           ENDPOINT_DIR_OUT, USB_ControlEndpointSize,
		                           ENDPOINT_BANK_SINGLE);

		RAISE_EVENT(USB_Reset);
    1958:	11 d0       	rcall	.+34     	; 0x197c <Event_USB_DeviceEnumerationComplete>
		USB_OTGPAD_On();

		USB_SetupInterface();	
	}
	#endif
}
    195a:	ff 91       	pop	r31
    195c:	ef 91       	pop	r30
    195e:	bf 91       	pop	r27
    1960:	af 91       	pop	r26
    1962:	9f 91       	pop	r25
    1964:	8f 91       	pop	r24
    1966:	7f 91       	pop	r23
    1968:	6f 91       	pop	r22
    196a:	5f 91       	pop	r21
    196c:	4f 91       	pop	r20
    196e:	3f 91       	pop	r19
    1970:	2f 91       	pop	r18
    1972:	0f 90       	pop	r0
    1974:	0f be       	out	0x3f, r0	; 63
    1976:	0f 90       	pop	r0
    1978:	1f 90       	pop	r1
    197a:	18 95       	reti

0000197c <Event_USB_DeviceEnumerationComplete>:

#define INCLUDE_FROM_EVENTS_C
#include "Events.h"

static void __stub(void)
{
    197c:	08 95       	ret

0000197e <__mulhi3>:
    197e:	55 27       	eor	r21, r21
    1980:	00 24       	eor	r0, r0

00001982 <__mulhi3_loop>:
    1982:	80 ff       	sbrs	r24, 0
    1984:	02 c0       	rjmp	.+4      	; 0x198a <__mulhi3_skip1>
    1986:	06 0e       	add	r0, r22
    1988:	57 1f       	adc	r21, r23

0000198a <__mulhi3_skip1>:
    198a:	66 0f       	add	r22, r22
    198c:	77 1f       	adc	r23, r23
    198e:	61 15       	cp	r22, r1
    1990:	71 05       	cpc	r23, r1
    1992:	21 f0       	breq	.+8      	; 0x199c <__mulhi3_exit>
    1994:	96 95       	lsr	r25
    1996:	87 95       	ror	r24
    1998:	00 97       	sbiw	r24, 0x00	; 0
    199a:	99 f7       	brne	.-26     	; 0x1982 <__mulhi3_loop>

0000199c <__mulhi3_exit>:
    199c:	95 2f       	mov	r25, r21
    199e:	80 2d       	mov	r24, r0
    19a0:	08 95       	ret

000019a2 <__udivmodhi4>:
    19a2:	aa 1b       	sub	r26, r26
    19a4:	bb 1b       	sub	r27, r27
    19a6:	51 e1       	ldi	r21, 0x11	; 17
    19a8:	07 c0       	rjmp	.+14     	; 0x19b8 <__udivmodhi4_ep>

000019aa <__udivmodhi4_loop>:
    19aa:	aa 1f       	adc	r26, r26
    19ac:	bb 1f       	adc	r27, r27
    19ae:	a6 17       	cp	r26, r22
    19b0:	b7 07       	cpc	r27, r23
    19b2:	10 f0       	brcs	.+4      	; 0x19b8 <__udivmodhi4_ep>
    19b4:	a6 1b       	sub	r26, r22
    19b6:	b7 0b       	sbc	r27, r23

000019b8 <__udivmodhi4_ep>:
    19b8:	88 1f       	adc	r24, r24
    19ba:	99 1f       	adc	r25, r25
    19bc:	5a 95       	dec	r21
    19be:	a9 f7       	brne	.-22     	; 0x19aa <__udivmodhi4_loop>
    19c0:	80 95       	com	r24
    19c2:	90 95       	com	r25
    19c4:	bc 01       	movw	r22, r24
    19c6:	cd 01       	movw	r24, r26
    19c8:	08 95       	ret

000019ca <__udivmodsi4>:
    19ca:	a1 e2       	ldi	r26, 0x21	; 33
    19cc:	1a 2e       	mov	r1, r26
    19ce:	aa 1b       	sub	r26, r26
    19d0:	bb 1b       	sub	r27, r27
    19d2:	fd 01       	movw	r30, r26
    19d4:	0d c0       	rjmp	.+26     	; 0x19f0 <__udivmodsi4_ep>

000019d6 <__udivmodsi4_loop>:
    19d6:	aa 1f       	adc	r26, r26
    19d8:	bb 1f       	adc	r27, r27
    19da:	ee 1f       	adc	r30, r30
    19dc:	ff 1f       	adc	r31, r31
    19de:	a2 17       	cp	r26, r18
    19e0:	b3 07       	cpc	r27, r19
    19e2:	e4 07       	cpc	r30, r20
    19e4:	f5 07       	cpc	r31, r21
    19e6:	20 f0       	brcs	.+8      	; 0x19f0 <__udivmodsi4_ep>
    19e8:	a2 1b       	sub	r26, r18
    19ea:	b3 0b       	sbc	r27, r19
    19ec:	e4 0b       	sbc	r30, r20
    19ee:	f5 0b       	sbc	r31, r21

000019f0 <__udivmodsi4_ep>:
    19f0:	66 1f       	adc	r22, r22
    19f2:	77 1f       	adc	r23, r23
    19f4:	88 1f       	adc	r24, r24
    19f6:	99 1f       	adc	r25, r25
    19f8:	1a 94       	dec	r1
    19fa:	69 f7       	brne	.-38     	; 0x19d6 <__udivmodsi4_loop>
    19fc:	60 95       	com	r22
    19fe:	70 95       	com	r23
    1a00:	80 95       	com	r24
    1a02:	90 95       	com	r25
    1a04:	9b 01       	movw	r18, r22
    1a06:	ac 01       	movw	r20, r24
    1a08:	bd 01       	movw	r22, r26
    1a0a:	cf 01       	movw	r24, r30
    1a0c:	08 95       	ret

00001a0e <_exit>:
    1a0e:	f8 94       	cli

00001a10 <__stop_program>:
    1a10:	ff cf       	rjmp	.-2      	; 0x1a10 <__stop_program>
