   1               		.file	"one_wire_simpleSwitch.c"
   2               	__SP_H__ = 0x3e
   3               	__SP_L__ = 0x3d
   4               	__SREG__ = 0x3f
   5               	__RAMPZ__ = 0x3b
   6               	__tmp_reg__ = 0
   7               	__zero_reg__ = 1
   9               		.text
  10               	.Ltext0:
 159               	.global	read_status_simpleSwitches
 161               	read_status_simpleSwitches:
   1:one_wire_simpleSwitch.c **** /*
   2:one_wire_simpleSwitch.c ****    Licensed under the EUPL V.1.1, Lizenziert unter EUPL V.1.1 
   3:one_wire_simpleSwitch.c **** */
   4:one_wire_simpleSwitch.c **** /*
   5:one_wire_simpleSwitch.c ****  * VERSION 1.0 Januar 7th 2010 LATE  File: 'one_wire_simpleSwitch.c'
   6:one_wire_simpleSwitch.c ****  * Author: Linda Fouedjio  based on Alejandro Gil
   7:one_wire_simpleSwitch.c ****  * modified (heavily rather rebuild): Peter Zumbruch
   8:one_wire_simpleSwitch.c ****  */
   9:one_wire_simpleSwitch.c **** #include <stdint.h>
  10:one_wire_simpleSwitch.c **** #include <stdio.h>
  11:one_wire_simpleSwitch.c **** #include <stdarg.h>
  12:one_wire_simpleSwitch.c **** #include <string.h>
  13:one_wire_simpleSwitch.c **** 
  14:one_wire_simpleSwitch.c **** #include <math.h>
  15:one_wire_simpleSwitch.c **** #include <stdlib.h>
  16:one_wire_simpleSwitch.c **** #include <util/delay.h>
  17:one_wire_simpleSwitch.c **** #include <avr/pgmspace.h>
  18:one_wire_simpleSwitch.c **** 
  19:one_wire_simpleSwitch.c **** #include <avr/io.h>
  20:one_wire_simpleSwitch.c **** #include <avr/interrupt.h>
  21:one_wire_simpleSwitch.c **** #include <avr/sleep.h>
  22:one_wire_simpleSwitch.c **** #include <avr/iocan128.h>
  23:one_wire_simpleSwitch.c **** 
  24:one_wire_simpleSwitch.c **** #include "one_wire.h"
  25:one_wire_simpleSwitch.c **** #include "one_wire_adc.h"
  26:one_wire_simpleSwitch.c **** #include "one_wire_dualSwitch.h"
  27:one_wire_simpleSwitch.c **** #include "one_wire_simpleSwitch.h"
  28:one_wire_simpleSwitch.c **** #include "read_write_register.h"
  29:one_wire_simpleSwitch.c **** #include "one_wire_temperature.h"
  30:one_wire_simpleSwitch.c **** 
  31:one_wire_simpleSwitch.c **** #include "adc.h"
  32:one_wire_simpleSwitch.c **** #include "api.h"
  33:one_wire_simpleSwitch.c **** #include "api_define.h"
  34:one_wire_simpleSwitch.c **** #include "api_global.h"
  35:one_wire_simpleSwitch.c **** 
  36:one_wire_simpleSwitch.c **** #include "api_debug.h"
  37:one_wire_simpleSwitch.c **** #include "can.h"
  38:one_wire_simpleSwitch.c **** #include "mem-check.h"
  39:one_wire_simpleSwitch.c **** 
  40:one_wire_simpleSwitch.c **** #include "OWIDeviceSpecific.h"
  41:one_wire_simpleSwitch.c **** #include "OWIHighLevelFunctions.h"
  42:one_wire_simpleSwitch.c **** #include "OWIBitFunctions.h"
  43:one_wire_simpleSwitch.c **** 
  44:one_wire_simpleSwitch.c **** static const char filename[] 		PROGMEM = __FILE__;
  45:one_wire_simpleSwitch.c **** 
  46:one_wire_simpleSwitch.c **** /*this function contains all the functions that are necessary
  47:one_wire_simpleSwitch.c ****  *to read state of simple switch
  48:one_wire_simpleSwitch.c ****  */
  49:one_wire_simpleSwitch.c **** void read_status_simpleSwitches( struct uartStruct *ptr_uartStruct )
  50:one_wire_simpleSwitch.c **** {
 163               	.LM0:
 164               	.LFBB1:
 165               	/* prologue: function */
 166               	/* frame size = 0 */
 167               	/* stack size = 0 */
 168               	.L__stack_usage = 0
  51:one_wire_simpleSwitch.c **** 	NumDevicesFound = owiReadDevicesID(BUSES);
 170               	.LM1:
 171 0000 80E0      		ldi r24,lo8(BUSES)
 172 0002 90E0      		ldi r25,hi8(BUSES)
 173 0004 0E94 0000 		call owiReadDevicesID
 174 0008 8093 0000 		sts NumDevicesFound,r24
  52:one_wire_simpleSwitch.c **** 	if ( 0 < NumDevicesFound )
 176               	.LM2:
 177 000c 8823      		tst r24
 178 000e 01F0      		breq .L1
  53:one_wire_simpleSwitch.c **** 	{
  54:one_wire_simpleSwitch.c **** 		owiFindFamilyDevicesAndAccessValues(BUSES, NumDevicesFound, OWI_FAMILY_DS2405_SIMPLE_SWITCH, NULL
 180               	.LM3:
 181 0010 20E0      		ldi r18,0
 182 0012 30E0      		ldi r19,0
 183 0014 45E0      		ldi r20,lo8(5)
 184 0016 682F      		mov r22,r24
 185 0018 80E0      		ldi r24,lo8(BUSES)
 186 001a 90E0      		ldi r25,hi8(BUSES)
 187 001c 0C94 0000 		jmp owiFindFamilyDevicesAndAccessValues
 188               	.L1:
 189 0020 0895      		ret
 191               	.Lscope1:
 195               	.global	ReadSimpleSwitches
 197               	ReadSimpleSwitches:
  55:one_wire_simpleSwitch.c **** 	}
  56:one_wire_simpleSwitch.c **** #warning TODO: add else
  57:one_wire_simpleSwitch.c **** }
  58:one_wire_simpleSwitch.c **** 
  59:one_wire_simpleSwitch.c **** /*
  60:one_wire_simpleSwitch.c ****  *this function
  61:one_wire_simpleSwitch.c ****  */
  62:one_wire_simpleSwitch.c **** 
  63:one_wire_simpleSwitch.c **** uint16_t ReadSimpleSwitches( unsigned char bus, unsigned char * id )
  64:one_wire_simpleSwitch.c **** {
 199               	.LM4:
 200               	.LFBB2:
 201               	/* prologue: function */
 202               	/* frame size = 0 */
 203               	/* stack size = 0 */
 204               	.L__stack_usage = 0
  65:one_wire_simpleSwitch.c ****    CommunicationError_p(ERRG, dynamicMessage_ErrorIndex, TRUE, PSTR("device DS2405 not supported an
 206               	.LM5:
 207 0022 80E0      		ldi r24,lo8(__c.3007)
 208 0024 90E0      		ldi r25,hi8(__c.3007)
 209 0026 9F93      		push r25
 210 0028 8F93      		push r24
 211 002a 81E0      		ldi r24,lo8(1)
 212 002c 8F93      		push r24
 213 002e 8FEF      		ldi r24,lo8(-1)
 214 0030 8F93      		push r24
 215 0032 8CE9      		ldi r24,lo8(-100)
 216 0034 8F93      		push r24
 217 0036 1F92      		push __zero_reg__
 218 0038 E091 0000 		lds r30,CommunicationError_p
 219 003c F091 0000 		lds r31,CommunicationError_p+1
 220 0040 0995      		icall
  66:one_wire_simpleSwitch.c ****    return owiReadWriteStatus_MAXIMUM_INDEX << 8;
 222               	.LM6:
 223 0042 0F90      		pop __tmp_reg__
 224 0044 0F90      		pop __tmp_reg__
 225 0046 0F90      		pop __tmp_reg__
 226 0048 0F90      		pop __tmp_reg__
 227 004a 0F90      		pop __tmp_reg__
 228 004c 0F90      		pop __tmp_reg__
  67:one_wire_simpleSwitch.c **** 
  68:one_wire_simpleSwitch.c ****    //   uint16_t value = 0;
  69:one_wire_simpleSwitch.c ****    //	if ( 0 == OWI_DetectPresence(bus) )
  70:one_wire_simpleSwitch.c ****    //	{
  71:one_wire_simpleSwitch.c ****    //		return owiReadStatus_no_device_presence << 8; /* Error*/
  72:one_wire_simpleSwitch.c ****    //	}
  73:one_wire_simpleSwitch.c ****    //
  74:one_wire_simpleSwitch.c ****    //	OWI_MatchRom(id, bus); /* Match id found earlier*/
  75:one_wire_simpleSwitch.c ****    //	OWI_SendByte(0xF5, bus); //PIO Access read command //???
  76:one_wire_simpleSwitch.c ****    //
  77:one_wire_simpleSwitch.c ****    //	/*Read two first bytes and place them in the 16 bit channel variable*/
  78:one_wire_simpleSwitch.c ****    //	value = OWI_ReceiveByte(bus);
  79:one_wire_simpleSwitch.c ****    //
  80:one_wire_simpleSwitch.c ****    //	return value | owiReadWriteStatus_OK << 8;
  81:one_wire_simpleSwitch.c **** }//END of ReadSimpleSwitches function
 230               	.LM7:
 231 004e 80E0      		ldi r24,0
 232 0050 99E0      		ldi r25,lo8(9)
 233 0052 0895      		ret
 235               	.Lscope2:
 236               		.section	.progmem.data,"a",@progbits
 239               	__c.3007:
 240 0000 6465 7669 		.string	"device DS2405 not supported any more"
 240      6365 2044 
 240      5332 3430 
 240      3520 6E6F 
 240      7420 7375 
 241               		.comm	ErrorCodes,1,1
 242               		.comm	canTimerInterval,4,1
 245               		.text
 247               	.Letext0:
 248               		.ident	"GCC: (GNU) 4.8.1"
 249               	.global __do_clear_bss
DEFINED SYMBOLS
                            *ABS*:00000000 one_wire_simpleSwitch.c
     /tmp/ccoyzzgx.s:2      *ABS*:0000003e __SP_H__
     /tmp/ccoyzzgx.s:3      *ABS*:0000003d __SP_L__
     /tmp/ccoyzzgx.s:4      *ABS*:0000003f __SREG__
     /tmp/ccoyzzgx.s:5      *ABS*:0000003b __RAMPZ__
     /tmp/ccoyzzgx.s:6      *ABS*:00000000 __tmp_reg__
     /tmp/ccoyzzgx.s:7      *ABS*:00000001 __zero_reg__
     /tmp/ccoyzzgx.s:161    .text:00000000 read_status_simpleSwitches
     /tmp/ccoyzzgx.s:197    .text:00000022 ReadSimpleSwitches
     /tmp/ccoyzzgx.s:239    .progmem.data:00000000 __c.3007
                            *COM*:00000001 ErrorCodes
                            *COM*:00000004 canTimerInterval

UNDEFINED SYMBOLS
BUSES
owiReadDevicesID
NumDevicesFound
owiFindFamilyDevicesAndAccessValues
CommunicationError_p
__do_clear_bss
