Added source files (part 1)
Added all source files except the libraries (too many files to add in a single go)
This commit is contained in:
parent
cabd5410db
commit
2921024e29
|
@ -0,0 +1,377 @@
|
|||
# Board definitions for Arduboy production v1.0, DevkKit and homemade versions
|
||||
# using Leonardo, Micro and Sparkfun Pro Micro boards.
|
||||
|
||||
menu.based_on=Based on
|
||||
menu.core=Core
|
||||
menu.display=Display
|
||||
menu.boot=Bootloader
|
||||
|
||||
################################################################################
|
||||
# Arduboy homemade board
|
||||
################################################################################
|
||||
|
||||
arduboy-homemade.name=Homemade Arduboy
|
||||
|
||||
#Arduino Leonardo
|
||||
arduboy-homemade.vid.0=0x2341
|
||||
arduboy-homemade.pid.0=0x0036
|
||||
arduboy-homemade.vid.1=0x2341
|
||||
arduboy-homemade.pid.1=0x8036
|
||||
arduboy-homemade.vid.2=0x2A03
|
||||
arduboy-homemade.pid.2=0x0036
|
||||
arduboy-homemade.vid.3=0x2A03
|
||||
arduboy-homemade.pid.3=0x8036
|
||||
#Arduino Micro
|
||||
arduboy-homemade.vid.4=0x2341
|
||||
arduboy-homemade.pid.4=0x0037
|
||||
arduboy-homemade.vid.5=0x2341
|
||||
arduboy-homemade.pid.5=0x8037
|
||||
arduboy-homemade.vid.6=0x2A03
|
||||
arduboy-homemade.pid.6=0x0037
|
||||
arduboy-homemade.vid.7=0x2A03
|
||||
arduboy-homemade.pid.7=0x8037
|
||||
#Genuino Micro
|
||||
arduboy-homemade.vid.8=0x2341
|
||||
arduboy-homemade.pid.8=0x8237
|
||||
#Sparkfun Pro Micro 5V
|
||||
arduboy-homemade.vid.7=0x1b4f
|
||||
arduboy-homemade.pid.7=0x9205
|
||||
arduboy-homemade.vid.8=0x1b4f
|
||||
arduboy-homemade.pid.8=0x9206
|
||||
|
||||
arduboy-homemade.upload.tool=arduino:avrdude
|
||||
arduboy-homemade.upload.protocol=avr109
|
||||
arduboy-homemade.upload.maximum_size=28672
|
||||
arduboy-homemade.upload.maximum_data_size=2560
|
||||
arduboy-homemade.upload.speed=57600
|
||||
arduboy-homemade.upload.disable_flushing=true
|
||||
arduboy-homemade.upload.use_1200bps_touch=true
|
||||
arduboy-homemade.upload.wait_for_upload_port=true
|
||||
|
||||
arduboy-homemade.bootloader.tool=arduino:avrdude
|
||||
arduboy-homemade.bootloader.low_fuses=0xff
|
||||
arduboy-homemade.bootloader.high_fuses=0xd0
|
||||
arduboy-homemade.bootloader.extended_fuses=0xcb
|
||||
arduboy-homemade.bootloader.unlock_bits=0xFF
|
||||
arduboy-homemade.bootloader.lock_bits=0xEF
|
||||
|
||||
arduboy-homemade.build.mcu=atmega32u4
|
||||
arduboy-homemade.build.f_cpu=16000000L
|
||||
arduboy-homemade.build.board=AVR_ARDUBOY_HOMEMADE
|
||||
|
||||
## Arduboy homemade based on boards ###########################################
|
||||
|
||||
# Leonardo #
|
||||
arduboy-homemade.menu.based_on.leonardo=Arduino Leonardo
|
||||
arduboy-homemade.menu.based_on.leonardo.build.board=AVR_LEONARDO
|
||||
arduboy-homemade.menu.based_on.leonardo.build.vid=0x2341
|
||||
arduboy-homemade.menu.based_on.leonardo.build.pid=0x8036
|
||||
arduboy-homemade.menu.based_on.leonardo.build.variant=arduboy-leonardo
|
||||
arduboy-homemade.menu.based_on.leonardo.build.usb_product="ABL{usb_product_postfix}"
|
||||
arduboy-homemade.menu.based_on.leonardo.org_bootloader_file=caterina/Caterina-Leonardo.hex
|
||||
arduboy-homemade.menu.based_on.leonardo.c3k_bootloader_file=cathy3k/arduboy3k-bootloader{bootloader_display}.hex
|
||||
arduboy-homemade.menu.based_on.leonardo.c2k_bootloader_file=cathy2k/arduboy2k-bootloader.hex
|
||||
|
||||
# micro #
|
||||
arduboy-homemade.menu.based_on.micro=Arduino/Genuino Micro
|
||||
arduboy-homemade.menu.based_on.micro.build.board=AVR_MICRO
|
||||
arduboy-homemade.menu.based_on.micro.build.vid=0x2341
|
||||
arduboy-homemade.menu.based_on.micro.build.pid=0x8037
|
||||
arduboy-homemade.menu.based_on.micro.build.variant=arduboy-micro
|
||||
arduboy-homemade.menu.based_on.micro.build.usb_product="ABM{usb_product_postfix}"
|
||||
arduboy-homemade.menu.based_on.micro.org_bootloader_file=caterina/Caterina-Micro.hex
|
||||
arduboy-homemade.menu.based_on.micro.c3k_bootloader_file=cathy3k/arduboy3k-bootloader-micro{bootloader_display}.hex
|
||||
arduboy-homemade.menu.based_on.micro.c2k_bootloader_file=cathy2k/arduboy2k-bootloader-micro.hex
|
||||
|
||||
# SparkFun Pro Micro 5V #
|
||||
arduboy-homemade.menu.based_on.promicro=SparkFun Pro Micro 5V - Standard wiring
|
||||
#arduboy-homemade.menu.based_on.promicro.build.vid=0x1b4f
|
||||
#arduboy-homemade.menu.based_on.promicro.build.pid=0x9206
|
||||
#using Leonardo vid,pid for driver simplicity
|
||||
arduboy-homemade.menu.based_on.promicro.build.vid=0x2341
|
||||
arduboy-homemade.menu.based_on.promicro.build.pid=0x8036
|
||||
arduboy-homemade.menu.based_on.promicro.build.variant=arduboy-promicro
|
||||
arduboy-homemade.menu.based_on.promicro.build.usb_product="ABP{usb_product_postfix}"
|
||||
arduboy-homemade.menu.based_on.promicro.build.board=AVR_PROMICRO
|
||||
arduboy-homemade.menu.based_on.promicro.org_bootloader_file=caterina/Caterina-promicro16.hex
|
||||
arduboy-homemade.menu.based_on.promicro.c3k_bootloader_file=cathy3k/arduboy3k-bootloader{bootloader_display}.hex
|
||||
arduboy-homemade.menu.based_on.promicro.c2k_bootloader_file=cathy2k/arduboy2k-bootloader.hex
|
||||
|
||||
arduboy-homemade.menu.based_on.promicro_alt=SparkFun Pro Micro 5V - Alternate wiring
|
||||
#arduboy-homemade.menu.based_on.promicro_alt.build.vid=0x1b4f
|
||||
#arduboy-homemade.menu.based_on.promicro_alt.build.pid=0x9206
|
||||
#using Leonardo vid,pid for driver simplicity
|
||||
arduboy-homemade.menu.based_on.promicro_alt.build.vid=0x2341
|
||||
arduboy-homemade.menu.based_on.promicro_alt.build.pid=0x8036
|
||||
arduboy-homemade.menu.based_on.promicro_alt.build.variant=arduboy-promicro-alt
|
||||
arduboy-homemade.menu.based_on.promicro_alt.build.usb_product="ABA{usb_product_postfix}"
|
||||
arduboy-homemade.menu.based_on.promicro_alt.build.board=AVR_PROMICRO -DAB_ALTERNATE_WIRING
|
||||
arduboy-homemade.menu.based_on.promicro_alt.org_bootloader_file=caterina/Caterina-promicro16.hex
|
||||
arduboy-homemade.menu.based_on.promicro_alt.c3k_bootloader_file=cathy3k/arduboy3k-bootloader-promicro{bootloader_display}.hex
|
||||
arduboy-homemade.menu.based_on.promicro_alt.c2k_bootloader_file=cathy2k/arduboy-bootloader-promicro.hex
|
||||
|
||||
# bootloader #
|
||||
arduboy-homemade.menu.boot.org=original (Caterina)
|
||||
arduboy-homemade.menu.boot.org.upload.maximum_size=28672
|
||||
arduboy-homemade.menu.boot.org.bootloader.high_fuses=0xd0
|
||||
arduboy-homemade.menu.boot.org.bootloader.file={org_bootloader_file}
|
||||
|
||||
arduboy-homemade.menu.boot.cathy3k=Cathy3K
|
||||
arduboy-homemade.menu.boot.cathy3k.upload.maximum_size=29696
|
||||
arduboy-homemade.menu.boot.cathy3k.bootloader.high_fuses=0xd2
|
||||
arduboy-homemade.menu.boot.cathy3k.bootloader.file={c3k_bootloader_file}
|
||||
|
||||
arduboy-homemade.menu.boot.cathy2k=Cathy2K
|
||||
arduboy-homemade.menu.boot.cathy2k.upload.maximum_size=30720
|
||||
arduboy-homemade.menu.boot.cathy2k.bootloader.high_fuses=0xd2
|
||||
arduboy-homemade.menu.boot.cathy2k.bootloader.file={c2k_bootloader_file}
|
||||
|
||||
# core #
|
||||
arduboy-homemade.menu.core.arduboy-core=Arduboy optimized core
|
||||
arduboy-homemade.menu.core.arduboy-core.build.core=arduboy
|
||||
|
||||
arduboy-homemade.menu.core.arduino-core=Standard Arduino core
|
||||
arduboy-homemade.menu.core.arduino-core.build.core=arduino:arduino
|
||||
|
||||
# display #
|
||||
arduboy-homemade.menu.display.sh1106=SH1106
|
||||
arduboy-homemade.menu.display.sh1106.build.display=-sh1106
|
||||
arduboy-homemade.menu.display.sh1106.usb_product_postfix=1106
|
||||
arduboy-homemade.menu.display.sh1106.bootloader_display=-sh1106
|
||||
arduboy-homemade.menu.display.sh1106.build.extra_flags=-DARDUBOY_10 -DOLED_SH1106 {build.usb_flags}
|
||||
|
||||
arduboy-homemade.menu.display.ssd1306=SSD1306
|
||||
arduboy-homemade.menu.display.ssd1306.build.display=-ssd1306
|
||||
arduboy-homemade.menu.display.ssd1306.usb_product_postfix=1306
|
||||
arduboy-homemade.menu.display.ssd1306.bootloader_display=
|
||||
arduboy-homemade.menu.display.ssd1306.build.extra_flags=-DARDUBOY_10 -DOLED_SSD1306 {build.usb_flags}
|
||||
|
||||
arduboy-homemade.menu.display.ssd1309=SSD1309
|
||||
arduboy-homemade.menu.display.ssd1309.build.display=-ssd1309
|
||||
arduboy-homemade.menu.display.ssd1309.usb_product_postfix=1309
|
||||
arduboy-homemade.menu.display.ssd1309.bootloader_display=
|
||||
arduboy-homemade.menu.display.ssd1309.build.extra_flags=-DARDUBOY_10 -DOLED_SSD1309 {build.usb_flags}
|
||||
|
||||
arduboy-homemade.menu.display.64x128on96x96=SSD1327/29 (128x64 on 96x96)
|
||||
arduboy-homemade.menu.display.64x128on96x96.build.display=-128x64-on-96x96
|
||||
arduboy-homemade.menu.display.64x128on96x96.usb_product_postfix=9696
|
||||
arduboy-homemade.menu.display.64x128on96x96.bootloader_display=-ssd132x-96x96
|
||||
arduboy-homemade.menu.display.64x128on96x96.build.extra_flags=-DARDUBOY_10 -DOLED_128X64_ON_96X96 {build.usb_flags}
|
||||
|
||||
arduboy-homemade.menu.display.64x128on128x96=SSD1327/29 (128x64 on 128x96)
|
||||
arduboy-homemade.menu.display.64x128on128x96.build.display=-128x64-on-128x96
|
||||
arduboy-homemade.menu.display.64x128on128x96.usb_product_postfix=12896
|
||||
arduboy-homemade.menu.display.64x128on128x96.bootloader_display=-ssd132x-128x96
|
||||
arduboy-homemade.menu.display.64x128on128x96.build.extra_flags=-DARDUBOY_10 -DOLED_128X64_ON_128X96 {build.usb_flags}
|
||||
|
||||
arduboy-homemade.menu.display.64x128on128x128=SSD1327/29 (128x64 on 128x128)
|
||||
arduboy-homemade.menu.display.64x128on128x128.build.display=-128x64-on-128x128
|
||||
arduboy-homemade.menu.display.64x128on128x128.usb_product_postfix=128128
|
||||
arduboy-homemade.menu.display.64x128on128x128.bootloader_display=-ssd132x-128x128
|
||||
arduboy-homemade.menu.display.64x128on128x128.build.extra_flags=-DARDUBOY_10 -DOLED_128X64_ON_128X128 {build.usb_flags}
|
||||
|
||||
arduboy-homemade.menu.display.128x64on128x128=SSD1327/29 (64x128 on 128x128)
|
||||
arduboy-homemade.menu.display.128x64on128x128.build.display=-64x128-on-128x128
|
||||
arduboy-homemade.menu.display.128x64on128x128.usb_product_postfix=64128
|
||||
arduboy-homemade.menu.display.128x64on128x128.bootloader_display=-ssd132x-128x128
|
||||
arduboy-homemade.menu.display.128x64on128x128.build.extra_flags=-DARDUBOY_10 -DOLED_64X128_ON_128X128 {build.usb_flags}
|
||||
|
||||
arduboy-homemade.menu.display.96x96=SSD1327/29 (96x96)
|
||||
arduboy-homemade.menu.display.96x96.build.display=-96x96
|
||||
arduboy-homemade.menu.display.96x96.usb_product_postfix=9696
|
||||
arduboy-homemade.menu.display.96x96.bootloader_display=-ssd132x-96x96
|
||||
arduboy-homemade.menu.display.96x96.build.extra_flags=-DARDUBOY_10 -DOLED_96X96 {build.usb_flags}
|
||||
|
||||
arduboy-homemade.menu.display.96x96on128x128=SSD1327/29 (96x96 on 128x128)
|
||||
arduboy-homemade.menu.display.96x96on128x128.build.display=-96x96-on-128x128
|
||||
arduboy-homemade.menu.display.96x96on128x128.usb_product_postfix=128128
|
||||
arduboy-homemade.menu.display.96x96on128x128.bootloader_display=-ssd132x-128x128
|
||||
arduboy-homemade.menu.display.96x96on128x128.build.extra_flags=-DARDUBOY_10 -DOLED_96X96_ON_128X128 {build.usb_flags}
|
||||
|
||||
arduboy-homemade.menu.display.128x96=SSD1327/29 (128x96)
|
||||
arduboy-homemade.menu.display.128x96.build.display=-128x96
|
||||
arduboy-homemade.menu.display.128x96.usb_product_postfix=12896
|
||||
arduboy-homemade.menu.display.128x96.bootloader_display=-ssd132x-128x96
|
||||
arduboy-homemade.menu.display.128x96.build.extra_flags=-DARDUBOY_10 -DOLED_128X96 {build.usb_flags}
|
||||
|
||||
arduboy-homemade.menu.display.128x96on128x128=SSD1327/29 (128x96 on 128x128)
|
||||
arduboy-homemade.menu.display.128x96on128x128.build.display=-128x96-on-128x128
|
||||
arduboy-homemade.menu.display.128x96on128x128.usb_product_postfix=128128
|
||||
arduboy-homemade.menu.display.128x96on128x128.bootloader_display=-ssd132x-128x128
|
||||
arduboy-homemade.menu.display.128x96on128x128.build.extra_flags=-DARDUBOY_10 -DOLED_128X96_ON_128X128 {build.usb_flags}
|
||||
|
||||
arduboy-homemade.menu.display.128x128=SSD1327/29 (128x128)
|
||||
arduboy-homemade.menu.display.128x128.build.display=-128x128
|
||||
arduboy-homemade.menu.display.128x128.usb_product_postfix=128128
|
||||
arduboy-homemade.menu.display.128x128.bootloader_display=-ssd132x-128x128
|
||||
arduboy-homemade.menu.display.128x128.build.extra_flags=-DARDUBOY_10 -DOLED_128X128 {build.usb_flags}
|
||||
|
||||
################################################################################
|
||||
# Arduboy board
|
||||
################################################################################
|
||||
|
||||
arduboy.name=Arduboy
|
||||
|
||||
#Arduino Leonardo
|
||||
arduboy.vid.0=0x2341
|
||||
arduboy.pid.0=0x0036
|
||||
arduboy.vid.1=0x2341
|
||||
arduboy.pid.1=0x8036
|
||||
arduboy.vid.2=0x2A03
|
||||
arduboy.pid.2=0x0036
|
||||
arduboy.vid.3=0x2A03
|
||||
arduboy.pid.3=0x8036
|
||||
#Arduino Micro
|
||||
arduboy.vid.4=0x2341
|
||||
arduboy.pid.4=0x0037
|
||||
arduboy.vid.5=0x2341
|
||||
arduboy.pid.5=0x8037
|
||||
arduboy.vid.6=0x2A03
|
||||
arduboy.pid.6=0x0037
|
||||
arduboy.vid.7=0x2A03
|
||||
arduboy.pid.7=0x8037
|
||||
#Genuino Micro
|
||||
arduboy.vid.8=0x2341
|
||||
arduboy.pid.8=0x8237
|
||||
#Sparkfun Pro Micro 5V
|
||||
arduboy.vid.8=0x1b4f
|
||||
arduboy.pid.8=0x9205
|
||||
arduboy.vid.9=0x1b4f
|
||||
arduboy.pid.9=0x9206
|
||||
|
||||
arduboy.upload.tool=arduino:avrdude
|
||||
arduboy.upload.protocol=avr109
|
||||
arduboy.upload.maximum_size=28672
|
||||
arduboy.upload.maximum_data_size=2560
|
||||
arduboy.upload.speed=57600
|
||||
arduboy.upload.disable_flushing=true
|
||||
arduboy.upload.use_1200bps_touch=true
|
||||
arduboy.upload.wait_for_upload_port=true
|
||||
|
||||
arduboy.bootloader.tool=arduino:avrdude
|
||||
arduboy.bootloader.low_fuses=0xff
|
||||
arduboy.bootloader.high_fuses=0xd0
|
||||
arduboy.bootloader.extended_fuses=0xcb
|
||||
arduboy.bootloader.file=caterina/Caterina-Leonardo.hex
|
||||
arduboy.bootloader.unlock_bits=0xFF
|
||||
arduboy.bootloader.lock_bits=0xEF
|
||||
|
||||
arduboy.build.mcu=atmega32u4
|
||||
arduboy.build.f_cpu=16000000L
|
||||
arduboy.build.variant=arduboy
|
||||
arduboy.build.board=AVR_ARDUBOY
|
||||
arduboy.build.vid=0x2341
|
||||
arduboy.build.pid=0x8036
|
||||
arduboy.build.variant=arduboy
|
||||
arduboy.build.usb_product="Arduboy"
|
||||
arduboy.build.board=AVR_ARDUBOY
|
||||
arduboy.build.extra_flags=-DARDUBOY_10 {build.usb_flags}
|
||||
|
||||
# Arduboy menu options #########################################################
|
||||
|
||||
arduboy.menu.core.arduboy-core=Arduboy optimized core
|
||||
arduboy.menu.core.arduboy-core.build.core=arduboy
|
||||
|
||||
arduboy.menu.core.arduino-core=Standard Arduino core
|
||||
arduboy.menu.core.arduino-core.build.core=arduino:arduino
|
||||
|
||||
arduboy.menu.boot.org=original (Caterina)
|
||||
arduboy.menu.boot.org.upload.maximum_size=28672
|
||||
arduboy.menu.boot.org.bootloader.high_fuses=0xd0
|
||||
arduboy.menu.boot.org.bootloader.file=caterina/Caterina-Leonardo.hex
|
||||
|
||||
arduboy.menu.boot.cathy3k=Cathy3K
|
||||
arduboy.menu.boot.cathy3k.upload.maximum_size=29696
|
||||
arduboy.menu.boot.cathy3k.bootloader.high_fuses=0xd2
|
||||
arduboy.menu.boot.cathy3k.bootloader.file=cathy3k/arduboy3k-bootloader.hex
|
||||
|
||||
arduboy.menu.boot.cathy2k=Cathy2K
|
||||
arduboy.menu.boot.cathy2k.upload.maximum_size=30720
|
||||
arduboy.menu.boot.cathy2k.bootloader.high_fuses=0xd2
|
||||
arduboy.menu.boot.cathy2k.bootloader.file=cathy2k/arduboy2k-bootloader.hex
|
||||
|
||||
################################################################################
|
||||
# Arduboy DevKit board
|
||||
################################################################################
|
||||
|
||||
arduboy-devkit.name=Arduboy DevKit
|
||||
|
||||
#Arduino Leonardo
|
||||
arduboy-devkit.vid.0=0x2341
|
||||
arduboy-devkit.pid.0=0x0036
|
||||
arduboy-devkit.vid.1=0x2341
|
||||
arduboy-devkit.pid.1=0x8036
|
||||
arduboy-devkit.vid.2=0x2A03
|
||||
arduboy-devkit.pid.2=0x0036
|
||||
arduboy-devkit.vid.3=0x2A03
|
||||
arduboy-devkit.pid.3=0x8036
|
||||
#Arduino Micro
|
||||
arduboy-devkit.vid.4=0x2341
|
||||
arduboy-devkit.pid.4=0x0037
|
||||
arduboy-devkit.vid.5=0x2341
|
||||
arduboy-devkit.pid.5=0x8037
|
||||
arduboy-devkit.vid.6=0x2A03
|
||||
arduboy-devkit.pid.6=0x0037
|
||||
arduboy-devkit.vid.7=0x2A03
|
||||
arduboy-devkit.pid.7=0x8037
|
||||
#Genuino Micro
|
||||
arduboy-devkit.vid.8=0x2341
|
||||
arduboy-devkit.pid.8=0x8237
|
||||
#Sparkfun Pro Micro 5V
|
||||
arduboy-devkit.vid.7=0x1b4f
|
||||
arduboy-devkit.pid.7=0x9205
|
||||
arduboy-devkit.vid.8=0x1b4f
|
||||
arduboy-devkit.pid.8=0x9206
|
||||
|
||||
arduboy-devkit.upload.tool=arduino:avrdude
|
||||
arduboy-devkit.upload.protocol=avr109
|
||||
arduboy-devkit.upload.maximum_size=28672
|
||||
arduboy-devkit.upload.maximum_data_size=2560
|
||||
arduboy-devkit.upload.speed=57600
|
||||
arduboy-devkit.upload.disable_flushing=true
|
||||
arduboy-devkit.upload.use_1200bps_touch=true
|
||||
arduboy-devkit.upload.wait_for_upload_port=true
|
||||
|
||||
arduboy-devkit.bootloader.tool=arduino:avrdude
|
||||
arduboy-devkit.bootloader.low_fuses=0xff
|
||||
arduboy-devkit.bootloader.high_fuses=0xd0
|
||||
arduboy-devkit.bootloader.extended_fuses=0xcb
|
||||
arduboy-devkit.bootloader.file=caterina/Caterina-Leonardo.hex
|
||||
arduboy-devkit.bootloader.unlock_bits=0xFF
|
||||
arduboy-devkit.bootloader.lock_bits=0xEF
|
||||
|
||||
arduboy-devkit.build.mcu=atmega32u4
|
||||
arduboy-devkit.build.f_cpu=16000000L
|
||||
arduboy-devkit.build.variant=arduboy
|
||||
arduboy-devkit.build.board=AVR_ARDUBOY
|
||||
arduboy-devkit.build.vid=0x2341
|
||||
arduboy-devkit.build.pid=0x8036
|
||||
arduboy-devkit.build.variant=arduboy-devkit
|
||||
arduboy-devkit.build.usb_product="ABDevKit"
|
||||
arduboy-devkit.build.board=AVR_ARDUBOY_DEVKIT
|
||||
arduboy-devkit.build.extra_flags=-DAB_DEVKIT {build.usb_flags}
|
||||
|
||||
# DevKit menu options ##########################################################
|
||||
|
||||
arduboy-devkit.menu.core.arduboy=Arduboy optimized core
|
||||
arduboy-devkit.menu.core.arduboy.build.core=arduboy
|
||||
|
||||
arduboy-devkit.menu.core.arduino=Standard Arduino core
|
||||
arduboy-devkit.menu.core.arduino.build.core=arduino:arduino
|
||||
|
||||
arduboy-devkit.menu.boot.org=original (Caterina)
|
||||
arduboy-devkit.menu.boot.org.upload.maximum_size=28672
|
||||
arduboy-devkit.menu.boot.org.bootloader.high_fuses=0xd0
|
||||
arduboy-devkit.menu.boot.org.bootloader.file=caterina/Caterina-Leonardo.hex
|
||||
|
||||
arduboy-devkit.menu.boot.cathy3k=Cathy3K
|
||||
arduboy-devkit.menu.boot.cathy3k.upload.maximum_size=29696
|
||||
arduboy-devkit.menu.boot.cathy3k.bootloader.high_fuses=0xd2
|
||||
arduboy-devkit.menu.boot.cathy3k.bootloader.file=cathy3k/arduboy3k-bootloader-devkit.hex
|
||||
|
||||
arduboy-devkit.menu.boot.cathy2k=Cathy2K
|
||||
arduboy-devkit.menu.boot.cathy2k.upload.maximum_size=30720
|
||||
arduboy-devkit.menu.boot.cathy2k.bootloader.high_fuses=0xd2
|
||||
arduboy-devkit.menu.boot.cathy2k.bootloader.file=cathy2k/arduboy2k-bootloader-devkit.hex
|
||||
|
||||
################################################################################
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,259 @@
|
|||
:1070000055C000006EC000006CC000006AC00000E7
|
||||
:1070100068C0000066C0000064C0000062C00000DC
|
||||
:1070200060C000005EC00000FCC400005AC0000048
|
||||
:1070300058C0000056C0000054C0000052C00000FC
|
||||
:1070400050C000005DC000004CC000004AC00000FD
|
||||
:1070500048C0000046C0000044C0000042C000001C
|
||||
:1070600040C000003EC000003CC000003AC000002C
|
||||
:1070700038C0000036C0000034C0000032C000003C
|
||||
:1070800030C000002EC000002CC000002AC000004C
|
||||
:1070900028C0000026C0000024C0000022C000005C
|
||||
:1070A00020C000001EC000001CC0000011241FBE34
|
||||
:1070B000CFEFDAE0DEBFCDBF11E0A0E0B1E0E6E463
|
||||
:1070C000FFE702C005900D92A43BB107D9F711E08C
|
||||
:1070D000A4EBB1E001C01D92AD3CB107E1F74FD385
|
||||
:1070E00030C78ECFF89410926F001092810081E02B
|
||||
:1070F00085BF15BE47985D9A289A0C9400000895A4
|
||||
:107100001F920F920FB60F9211242F938F939F937C
|
||||
:10711000EF93FF9310928500109284008091B40148
|
||||
:107120009091B501009741F001979093B50180933C
|
||||
:10713000B401892B09F45D9A8091B6019091B70151
|
||||
:10714000009741F001979093B7018093B601892B86
|
||||
:1071500009F4289A8091BA019091BB01019690930D
|
||||
:10716000BB018093BA01E0E0F0E0859194918F5FDC
|
||||
:107170009F4F49F08091B8019091B9010196909389
|
||||
:10718000B9018093B801FF91EF919F918F912F9159
|
||||
:107190000F900FBE0F901F90189584E08093E90028
|
||||
:1071A0000DC08091E8008B778093E80003C08EB318
|
||||
:1071B000882351F08091E80082FFF9CF8091E800A8
|
||||
:1071C00085FFEFCF8091F1000895982F83E08093A1
|
||||
:1071D000E9008091E80085FD0DC08091E8008E7780
|
||||
:1071E0008093E80003C08EB3882369F08091E800A3
|
||||
:1071F00080FFF9CF9093F1005D9884E690E0909342
|
||||
:10720000B5018093B40108954F925F926F927F927F
|
||||
:107210008F929F92AF92BF92CF92DF92EF92FF92A6
|
||||
:107220000F931F93CF93DF9384E08093E9008091C5
|
||||
:10723000E80082FF57C2289884E690E09093B70157
|
||||
:107240008093B601AADF182F853481F48CE49DE188
|
||||
:107250009093B9018093B80107B600FCFDCFF9996E
|
||||
:10726000FECF81E180935700E89503C0843519F47F
|
||||
:1072700094DF8DE00DC28C34E1F38035D1F3843797
|
||||
:1072800021F484E4A2DF80E003C2813611F489E5B1
|
||||
:10729000FFC18134B1F481DF182F7FDF90E0880FC8
|
||||
:1072A000991FAA2797FDA095BA2F312F330F20E001
|
||||
:1072B000442737FD4095542F822B932BA42BB52BBD
|
||||
:1072C000B8C1803711F483E5E3C1833549F4C0E0E8
|
||||
:1072D000D1E089917ADF21E0C730D207D1F7D9C157
|
||||
:1072E000863521F481E371DF80E3D2C1833731F445
|
||||
:1072F00087E86BDF85E969DF8EE1CAC18536B9F4BD
|
||||
:10730000E0E0F0E093E085E090935700E89507B661
|
||||
:1073100000FCFDCF80935700E89507B600FCFDCF39
|
||||
:10732000E058FF4FA0E7E030FA0771F7A2CF8237AD
|
||||
:1073300039F4E1E0F0E089E0809357008491A8C13E
|
||||
:10734000863439F4E0E0F0E089E0809357008491DE
|
||||
:107350009FC18E3439F4E3E0F0E089E08093570078
|
||||
:10736000849196C1813539F4E2E0F0E089E08093C0
|
||||
:10737000570084918DC1823631F489E526DF80E0A3
|
||||
:1073800024DF80E885C1823419F0873609F0E5C032
|
||||
:107390001092B9011092B80100DF082FFEDEF82E1E
|
||||
:1073A000FCDE682E8554823008F071C1902F80E099
|
||||
:1073B000CF2DD0E0C82BD92B10926F00173609F0D3
|
||||
:1073C0004BC081E180935700E895DD24CC24C39421
|
||||
:1073D0003FC0E090BD01F090BE010091BF0110914F
|
||||
:1073E000C001B6E46B16D9F4ED2DF0E0EE29FF29CB
|
||||
:1073F000E4918E2FEADEDD2081F082E090E0A0E0D3
|
||||
:10740000B0E0E80EF91E0A1F1B1FE092BD01F092CA
|
||||
:10741000BE010093BF011093C001DC2418C0D80145
|
||||
:10742000C701B695A7959795879575D5CEDE82E06D
|
||||
:1074300090E0A0E0B0E0E80EF91E0A1F1B1FE092EA
|
||||
:10744000BD01F092BE010093BF011093C0012197CE
|
||||
:10745000209709F0BECF7DC08090BD019090BE0105
|
||||
:10746000A090BF01B090C00196E4691609F05DC01C
|
||||
:1074700083E0F40180935700E89507B600FCFDCF48
|
||||
:1074800054C0F6E46F1661F5772031F1E090BD014C
|
||||
:10749000F090BE010091BF011091C0017EDED82E98
|
||||
:1074A000CC24852D90E08C299D29F7010C01409278
|
||||
:1074B0005700E895112482E090E0A0E0B0E0E80EEB
|
||||
:1074C000F91E0A1F1B1FE092BD01F092BE0100933E
|
||||
:1074D000BF011093C00102C060DE582E742423C087
|
||||
:1074E000E090BD01F090BE010091BF011091C0017C
|
||||
:1074F00016950795F794E79450DE682FC70113D5CA
|
||||
:107500008091BD019091BE01A091BF01B091C001D9
|
||||
:107510000296A11DB11D8093BD019093BE01A09361
|
||||
:10752000BF01B093C001219704C05524772444249F
|
||||
:107530004394209709F0A5CF96E4691641F485E0BD
|
||||
:10754000F40180935700E89507B600FCFDCF8DE06D
|
||||
:107550003CDE82E080936F009CC0833471F4009124
|
||||
:10756000BD011091BE0119DE90E021E0F8010C018F
|
||||
:1075700020935700E89511247CCE833619F5E090CE
|
||||
:10758000BD01F090BE010091BF011091C00105DE68
|
||||
:10759000F701E16090E021E00C0120935700E895AD
|
||||
:1075A000112482E090E0A0E0B0E0E80EF91E0A1F8E
|
||||
:1075B0001B1FE092BD01F092BE010093BF0110932A
|
||||
:1075C000C00157CE8D3661F4E091BD01F091BE014E
|
||||
:1075D00085E080935700E89507B600FCFDCF49CEC3
|
||||
:1075E000823551F4E091BD01F091BE0105911491F5
|
||||
:1075F000812FEBDD802F4CC0843421F5E090BD015C
|
||||
:10760000F090BE010091BF011091C0011695079541
|
||||
:10761000F794E794C2DD682FC70185D48091BD013E
|
||||
:107620009091BE01A091BF01B091C0010296A11D31
|
||||
:10763000B11D8093BD019093BE01A093BF01B09393
|
||||
:10764000C00117CE843609F5E090BD01F090BE016F
|
||||
:107650000091BF011091C001D801C701B695A7954F
|
||||
:107660009795879558D4B1DD82E090E0A0E0B0E036
|
||||
:10767000E80EF91E0A1F1B1FE092BD01F092BE0129
|
||||
:107680000093BF011093C00104C08B3111F08FE350
|
||||
:107690009CDD83E08093E9009091E8008091E80010
|
||||
:1076A0008E778093E80095FF04C010C08EB38823C6
|
||||
:1076B000C9F08091E80080FFF9CF8091E8008E77D3
|
||||
:1076C0008093E80003C08EB3882361F08091E800C6
|
||||
:1076D00080FFF9CF84E08093E9008091E8008B7708
|
||||
:1076E0008093E800DF91CF911F910F91FF90EF9071
|
||||
:1076F000DF90CF90BF90AF909F908F907F906F90D2
|
||||
:107700005F904F9008959091C501892F8F778132B6
|
||||
:1077100049F58091C6018032A1F0813219F5913A84
|
||||
:1077200009F58091E800877F8093E8008CE091E084
|
||||
:1077300067E070E027D28091E8008B778093E800C3
|
||||
:107740000895913279F48091E800877F8093E80072
|
||||
:107750008CE091E067E070E079D28091E8008E776C
|
||||
:107760008093E800089582E061EC42E0D1D083E0AC
|
||||
:1077700061E842E1CDD084E060E842E1C9C01F93F6
|
||||
:10778000209100081092000844B714BE88E10FB69B
|
||||
:10779000F89480936000109260000FBE80E8E0E0F3
|
||||
:1077A000F0E00FB6F89480936100E09361000FBEA3
|
||||
:1077B00031E035BF92E095BF3F9A209A559A809369
|
||||
:1077C00061001092610047985D9A289A1092890092
|
||||
:1077D0008AEF8093880090936F0083E0809381000C
|
||||
:1077E000859194918F5F9F4F11F03093BC01942F3E
|
||||
:1077F00041FF19C0809109012817A9F08093000862
|
||||
:10780000789480911301882339F08091BA01909186
|
||||
:10781000BB018F5E9240C8F3F8941092000881E09B
|
||||
:10782000809313010CC090FF04C08091BC01882399
|
||||
:1078300051F493FF09C080910901281729F0809124
|
||||
:10784000BC01882309F04EDCD4D078941092B901A1
|
||||
:107850001092B8011EEF20C0D7DC4BD38091B80145
|
||||
:107860009091B90181549F4110F0109213018091C1
|
||||
:10787000C1019091C20101969093C2018093C10110
|
||||
:10788000292F97FF03C0512F591B252F220F28178F
|
||||
:1078900010F4479801C0479A809113018823E1F6BC
|
||||
:1078A0008091E00081608093E0001CDC80E090E04B
|
||||
:1078B0001F910895FA01923049F0933061F09130B0
|
||||
:1078C000F9F484E191E022E130E01EC086E291E02B
|
||||
:1078D0002EE330E019C0882329F484E691E024E007
|
||||
:1078E00030E012C0813029F488E691E02EE130E0EA
|
||||
:1078F0000BC0823029F488E891E02AE230E004C02D
|
||||
:1079000080E090E020E030E091838083C901089519
|
||||
:107910008093E9008091EB0081608093EB001092EE
|
||||
:10792000ED006093EC004093ED008091EE00881F25
|
||||
:107930008827881F08958091C50188238CF403C08F
|
||||
:107940008EB38823B1F08091E80082FFF9CF809157
|
||||
:10795000E8008B778093E80008958EB3882349F080
|
||||
:107960008091E80080FFF9CF8091E8008E778093C6
|
||||
:10797000E8000895EF92FF920F931F9345D04CD0EB
|
||||
:1079800008ED10E0F80180818F7780838081806826
|
||||
:10799000808380818F7D808319BC1EBA1092C301C1
|
||||
:1079A00080EEE82EF12CF70180818B7F8083F80137
|
||||
:1079B00080818160808380E060E042E0A9DFE1EEC9
|
||||
:1079C000F0E080818E7F8083E2EEF0E08081816054
|
||||
:1079D0008083808188608083F70180818E7F8083AF
|
||||
:1079E000F8018081806180831F910F91FF90EF905B
|
||||
:1079F0000895E7EDF0E08081816080838AE482BFB2
|
||||
:107A000081E08093C401B6CFE8EDF0E080818E7F05
|
||||
:107A100080831092E20008951092DA001092E10043
|
||||
:107A200008951F920F920FB60F9211242F933F9338
|
||||
:107A30004F935F936F937F938F939F93AF93BF9376
|
||||
:107A4000EF93FF938091DA0080FF1BC08091D800F4
|
||||
:107A500080FF17C08091DA008E7F8093DA008091DA
|
||||
:107A6000D90080FF0BC080E189BD82E189BD09B4E6
|
||||
:107A700000FEFDCF81E08EBB3BD203C019BC1EBA15
|
||||
:107A800037D28091E10080FF17C08091E20080FF33
|
||||
:107A900013C08091E2008E7F8093E2008091E2002B
|
||||
:107AA00080618093E2008091D80080628093D8004A
|
||||
:107AB00019BC85E08EBB1CD28091E10084FF2CC0F4
|
||||
:107AC0008091E20084FF28C080E189BD82E189BD08
|
||||
:107AD00009B400FEFDCF8091D8008F7D8093D8003F
|
||||
:107AE0008091E1008F7E8093E1008091E2008F7EA3
|
||||
:107AF0008093E2008091E20081608093E2008091B7
|
||||
:107B0000C301882331F48091E30087FD02C081E046
|
||||
:107B100001C084E08EBBECD18091E10083FF21C0E5
|
||||
:107B20008091E20083FF1DC08091E100877F8093F8
|
||||
:107B3000E10082E08EBB1092C3018091E1008E7F54
|
||||
:107B40008093E1008091E2008E7F8093E20080913B
|
||||
:107B5000E20080618093E20080E060E042E0D8DEF5
|
||||
:107B6000C7D1FF91EF91BF91AF919F918F917F917D
|
||||
:107B70006F915F914F913F912F910F900FBE0F909A
|
||||
:107B80001F9018959C014091CB015091CC01461754
|
||||
:107B9000570718F4F90190E044C06115710511F020
|
||||
:107BA000AB01F8CF8091E8008E778093E80040E049
|
||||
:107BB00050E0F0CF8EB3882309F444C0853009F437
|
||||
:107BC00043C08091E80083FF02C081E00895809166
|
||||
:107BD000E80082FD31C08091E80080FF22C08091E2
|
||||
:107BE000F3009091F200782F60E0292F30E0262BEF
|
||||
:107BF000372B07C081918093F100415050402F5F97
|
||||
:107C00003F4F4115510519F02830310598F390E0A8
|
||||
:107C10002830310509F491E08091E8008E77809357
|
||||
:107C2000E8004115510531F6992321F605C08EB3C0
|
||||
:107C3000882341F0853041F08091E80082FFF7CF42
|
||||
:107C400080E0089582E0089583E008959C01611525
|
||||
:107C5000710529F48091E8008B778093E800F901A1
|
||||
:107C600026C08EB3882391F1853091F18091E80090
|
||||
:107C700083FF02C081E008958091E80082FFF1CF88
|
||||
:107C800006C08091F10081936150704059F02091BD
|
||||
:107C9000F3008091F200322F20E090E0822B932BB2
|
||||
:107CA000892B79F78091E8008B778093E800611544
|
||||
:107CB0007105B9F605C08EB3882341F0853041F0D7
|
||||
:107CC0008091E80080FFF7CF80E0089582E008957A
|
||||
:107CD00083E008950F931F93DF93CF9300D0CDB728
|
||||
:107CE000DEB7E5ECF1E08091F100819381E0ED3CBD
|
||||
:107CF000F807C9F708DD8091E80083FFE4C08091B0
|
||||
:107D0000C5019091C601953009F46DC0963040F4DC
|
||||
:107D1000913081F1913070F0933009F0D4C02AC0D5
|
||||
:107D2000983009F4A3C0993009F4B2C0963009F034
|
||||
:107D3000CAC07CC0803809F4C6C0823809F0C3C00C
|
||||
:107D40008091C90187708093E9008091EB001092C7
|
||||
:107D5000E9002091E800277F2093E80090E025E0EB
|
||||
:107D6000969587952A95E1F781708093F10010929E
|
||||
:107D7000F10087C0882319F0823009F0A4C08F7108
|
||||
:107D8000823009F0A0C08091C701882331F520918D
|
||||
:107D9000C901277009F497C02093E9008091EB0096
|
||||
:107DA00080FF1BC0933021F48091EB00806213C0F0
|
||||
:107DB0008091EB0080618093EB0081E090E002C055
|
||||
:107DC000880F991F2A95E2F78093EA001092EA0043
|
||||
:107DD0008091EB0088608093EB001092E900809125
|
||||
:107DE000E800877F51C0882309F06DC01091C7015A
|
||||
:107DF0001F770FB7F8948091E800877F8093E800A1
|
||||
:107E00009ADD8091E80080FFFCCF8091E3008078CC
|
||||
:107E1000812B8093E30080688093E300112311F4A9
|
||||
:107E200082E001C083E08EBB0FBF4DC0805882301E
|
||||
:107E300008F049C08091C7019091C8016091C901C3
|
||||
:107E4000AE014F5F5F4F36DDBC01009709F43BC0C8
|
||||
:107E50008091E800877F8093E80089819A8192DE93
|
||||
:107E60008091E8008B778093E8002DC0803859F529
|
||||
:107E70008091E800877F8093E8008091C301809320
|
||||
:107E8000F1008091E8008E778093E80054DD1BC0FC
|
||||
:107E90008823C9F49091C7019230A8F48091E8003A
|
||||
:107EA000877F8093E8009093C30145DD8091C301F3
|
||||
:107EB000882331F48091E30087FD02C081E001C096
|
||||
:107EC00084E08EBB50DC8091E80083FF0AC0809183
|
||||
:107ED000EB0080628093EB008091E800877F8093C5
|
||||
:107EE000E8000F900F90CF91DF911F910F910895AF
|
||||
:107EF00008951F938EB3882361F01091E9001092CA
|
||||
:107F0000E9008091E80083FF01C0E4DE1770109360
|
||||
:107F1000E9001F910895F999FECF92BD81BDF89AAD
|
||||
:107F2000992780B50895262FF999FECF1FBA92BDE3
|
||||
:107F300081BD20BD0FB6F894FA9AF99A0FBE01964A
|
||||
:067F40000895F894FFCF44
|
||||
:107F46004341544552494E41007700080000000065
|
||||
:107F56000000080112011001020000084F1B0592E3
|
||||
:107F660001000201000109023E00020100803209FF
|
||||
:107F7600040000010202010005240010010424028D
|
||||
:107F8600040524060001070582030800FF09040111
|
||||
:107F960000020A000000070504021000010705831D
|
||||
:107FA60002100001040309041E03500072006F0052
|
||||
:107FB60020004D006900630072006F00200035004C
|
||||
:107FC60056002000200000002A03530070006100C4
|
||||
:107FD60072006B00460075006E00200045006C00C4
|
||||
:107FE60065006300740072006F006E006900630034
|
||||
:047FF6007300000014
|
||||
:040000030000700089
|
||||
:00000001FF
|
|
@ -0,0 +1,130 @@
|
|||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F9199C00F928F939F931F9240
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840003FC02BC00F920FB68F939F93EF93FF9380
|
||||
:1078500088278093850080938400EEE7F1E0908193
|
||||
:107860008917980B919309F45D9A90818917980B69
|
||||
:10787000908309F4289A1E9B05C05BD319F0C101BF
|
||||
:1078800001961C01FF91EF915CC080E189BD82E10E
|
||||
:1078900089BD09B400FEFDCF08958091D80080FF16
|
||||
:1078A0000FC08091DA008E7F8093DA008091D9003A
|
||||
:1078B00080FF04C0EADF81E08EBB02C019BC1EBAA3
|
||||
:1078C0008091E10080FF0BC0BBD180FF08C0BBD11D
|
||||
:1078D0008091D800806275D219BC85E08EBB809102
|
||||
:1078E000E10084FF1AC0ACD184FF17C0CEDF8091C5
|
||||
:1078F000D8008F7D66D28FEE2AD0A2D18F7E816094
|
||||
:10790000A5D180918501882331F48091E30087FD22
|
||||
:1079100002C081E001C084E08EBB8091E10083FF62
|
||||
:107920000CC08ED183FF09C087EF11D082E08EBBDF
|
||||
:10793000109285010BD087D19BD16F914F910F9001
|
||||
:107940001F909F918F910FBE0F9018958EEF009012
|
||||
:10795000E10008220092E100089514B880E485B99E
|
||||
:10796000569A5E98A0E0B1E0E0E7FFE705900D923F
|
||||
:10797000AD37E1F71D92BB30E9F75E9A01FD0FC00C
|
||||
:1079800000FF03C01E9B0BC008C003FF08C0675761
|
||||
:10799000774729F04757574711F0CBD251F4E3D13D
|
||||
:1079A00078942224332439D0B4D2C10180549F4129
|
||||
:1079B000D0F3F89481E08093E00010926F00109271
|
||||
:1079C0008100109285001092840081E085BF15BE71
|
||||
:1079D0005D9A289A0C9400002ED107C0DBD002C01B
|
||||
:1079E00095D239F02AD182FFFBCF85FFF7CF809166
|
||||
:1079F000F1000895082E83E01FD185FD07C014D142
|
||||
:107A000002C084D249F019D180FFFBCF0092F1006F
|
||||
:107A10005D9884E680937E0108950DD182FFD5C0E4
|
||||
:107A2000289884E680937F01D7DF182FF2018534F0
|
||||
:107A300031F48CE49DE11C0182D28DE096C0843546
|
||||
:107A400011F4CADFFACF8C34C1F38035B1F3843737
|
||||
:107A500021F484E4CFDF80E088C0813611F489E529
|
||||
:107A600084C0813431F4B8DFF82FB6DFE82F7CD240
|
||||
:107A7000E4CF803711F483E578C0833539F4C0E072
|
||||
:107A8000D1E08991B7DFC730E1F770C0863521F4C6
|
||||
:107A900081E3B0DF82E369C0833731F487E8AADF8E
|
||||
:107AA00085E9A8DF8EE161C0853639F4E0E8F7E7C3
|
||||
:107AB00084D0E058F040E0F7C0CF823631F489E559
|
||||
:107AC00099DF80E097DF80E850C0823419F0873674
|
||||
:107AD00009F037C0222433247FDFD82F7DDFC82F61
|
||||
:107AE0007BDF082F8554823008F03EC010926F0073
|
||||
:107AF000173659F406C0063411F4859101C027D217
|
||||
:107B000079DF2197C2F72F0118C04F01063461F4C5
|
||||
:107B100054D00AC061DF063431F4C0FB16F0182ED1
|
||||
:107B200046D0082E01C017D22197A2F72F010634A4
|
||||
:107B300011F4F4013AD08DE05DDF82E080936F00B4
|
||||
:107B400015C08237E1E049F08634E0E031F08E3450
|
||||
:107B5000E3E019F0813531F4E2E0F0E089E087BF3D
|
||||
:107B6000849103C08B3111F08FE344DF83E0DED1D9
|
||||
:107B70005BD095FF03C009C0C9D139F15ED080FF49
|
||||
:107B8000FBCF52D002C0C2D101F157D080FFFBCF52
|
||||
:107B900084E0CCD18BE749C010D090E40D901D90CB
|
||||
:107BA00006D09A95D9F7E058F04085E007C081E00B
|
||||
:107BB00087BFE89511243296089583E001D081E1D2
|
||||
:107BC00087BFE89507B600FCFDCF089590918D0121
|
||||
:107BD00080918E01913231F0913A61F5813251F507
|
||||
:107BE00038D083C0803231F534D090D1E9F085307F
|
||||
:107BF000D9F023D083FD18C082FFF7CF04C0F7DE91
|
||||
:107C00008193615031F09091F3008091F200892BC3
|
||||
:107C1000B1F7C0DF611549F704C078D129F085308C
|
||||
:107C200019F00BD080FFF9CF8EE79091E8008923FF
|
||||
:107C30008093E800089584E079D18091E800089568
|
||||
:107C40008091E2000895FCDF8E7F80618093E200E6
|
||||
:107C500008955AD1E6E8F1E067E0089582E061EC2A
|
||||
:107C600009D083E061E802D084E060E842E103C02B
|
||||
:107C700080E060E042E05AD181E007D01092ED0050
|
||||
:107C80006093EC004093ED0008959091EB00892BF8
|
||||
:107C90008093EB00089560E0923039F0933041F02A
|
||||
:107CA000913079F4E7E062E10CC0E9E16EE309C0EC
|
||||
:107CB000813018F4E7E564E004C019F4EBE562E212
|
||||
:107CC00000C0F1E0089580918D0188234CF402C03A
|
||||
:107CD0001DD151F0B2DF82FFFBCF5CCF17D121F075
|
||||
:107CE000ACDF80FFFBCFA0DF08954091930150915E
|
||||
:107CF00094014617510510F490E028C0611511F069
|
||||
:107D0000462FFACF91DF40E0F7CF00D159F185300F
|
||||
:107D100049F193DF83FD3ECF90DF82FD20C080FFDD
|
||||
:107D200015C03091F3002091F20005C0819180933D
|
||||
:107D3000F10041502F5F411519F028303105B0F3A3
|
||||
:107D400050E02830310509F451E06EDF4115E9F6C5
|
||||
:107D50005523D9F604C0DAD029F0853019F06DDF4B
|
||||
:107D600082FFF9CF17CF20E82093610010926100C5
|
||||
:107D700081E085BF32E035BF209A289A559A5D9AF6
|
||||
:107D8000109289008AEF8093880030936F0083E01F
|
||||
:107D90008093810081E08093D7008AE482BF1092B3
|
||||
:107DA000D8001092E2001092DA001092E10080E810
|
||||
:107DB00008D019BC1EBA1092E0005ADF89E046DFF5
|
||||
:107DC00081E98093D8000895EDE8F1E010DE819319
|
||||
:107DD000E539E1F7FBDE31DF83FF91C080918D0152
|
||||
:107DE00090918E01913009F170F09330F1F095305F
|
||||
:107DF00009F444C0963009F456C0983009F460C0C4
|
||||
:107E0000993059F767C0823841F7809191018DD040
|
||||
:107E10002091EB001092E90077D0229526952170F1
|
||||
:107E20002093F1001092F10052C0882311F08230AB
|
||||
:107E3000A1F68F71823089F680918F018823D1F469
|
||||
:107E400020919101277049F22093E9008091EB0085
|
||||
:107E500080FF10C0933011F480E20BC080E115DF89
|
||||
:107E600081E0880F2A95E9F78093EA001092EA00F2
|
||||
:107E700088E00BDF1092E90047D02AC0882391F4F4
|
||||
:107E800010918F0110680FB7F8943ED01CDFD5DE3B
|
||||
:107E900080FFFDCF1093E300103883E009F482E007
|
||||
:107EA0008EBB0FBF2CC08058823048F580918F0167
|
||||
:107EB00090919001F0DE603011F126D016DF1FC0E6
|
||||
:107EC0008038E9F421D0809185018093F100ACDE07
|
||||
:107ED000FADE15C0882399F490918F01923078F4DE
|
||||
:107EE0009093850111D0EFDE80918501882321F4E4
|
||||
:107EF0008091E30091E087FD94E09EBBAFDE9DDEC4
|
||||
:107F000083FF089580E2C1DE87EF8FCE8EB3882392
|
||||
:107F10000895FCDF69F08091E9008F931092E900E9
|
||||
:107F20008CDE83FF01C050DF8F9187708093E90062
|
||||
:107F30000895E0E0F0E08591949101960895F201B2
|
||||
:107F4000F695E795F999FECFF2BDE1BD0895F7DF0B
|
||||
:107F5000F89A80B508C0F3DF1FBA80BD0FB6F89459
|
||||
:107F6000FA9AF99A0FBE3196EE0FFF1F2F0108956E
|
||||
:107F700041524455424F591201100102000008417C
|
||||
:107F800023360001000001000109023E0002010049
|
||||
:107F900080320904000001020201000524001001E2
|
||||
:107FA000042402040524060001070582030800FFDB
|
||||
:107FB00009040100020A0000000705040210000184
|
||||
:107FC0000705830210000104030904220341007223
|
||||
:107FD000006400750069006E006F0020004C0065B1
|
||||
:0E7FE000006F006E006100720064006F000010
|
||||
:047FFC00CDCDFBDC10
|
||||
:040000030000780081
|
||||
:00000001FF
|
|
@ -0,0 +1,130 @@
|
|||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F9199C00F928F939F931F9240
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840003FC02BC00F920FB68F939F93EF93FF9380
|
||||
:1078500088278093850080938400EEE7F1E0908193
|
||||
:107860008917980B919309F45D9890818917980B6B
|
||||
:10787000908309F428987C9B05C05BD319F0C10163
|
||||
:1078800001961C01FF91EF915CC080E189BD82E10E
|
||||
:1078900089BD09B400FEFDCF08958091D80080FF16
|
||||
:1078A0000FC08091DA008E7F8093DA008091D9003A
|
||||
:1078B00080FF04C0EADF81E08EBB02C019BC1EBAA3
|
||||
:1078C0008091E10080FF0BC0BBD180FF08C0BBD11D
|
||||
:1078D0008091D800806275D219BC85E08EBB809102
|
||||
:1078E000E10084FF1AC0ACD184FF17C0CEDF8091C5
|
||||
:1078F000D8008F7D66D28FEE2AD0A2D18F7E816094
|
||||
:10790000A5D180918501882331F48091E30087FD22
|
||||
:1079100002C081E001C084E08EBB8091E10083FF62
|
||||
:107920000CC08ED183FF09C087EF11D082E08EBBDF
|
||||
:10793000109285010BD087D19BD16F914F910F9001
|
||||
:107940001F909F918F910FBE0F9018958EEF009012
|
||||
:10795000E10008220092E100089510BA80E181BBA5
|
||||
:10796000579A5F98A0E0B1E0E0E7FFE705900D923D
|
||||
:10797000AD37E1F71D92BB30E9F75F9A01FD0FC00B
|
||||
:1079800000FF03C07C9B0BC008C003FF08C0675703
|
||||
:10799000774729F04757574711F0CBD251F4E3D13D
|
||||
:1079A00078942224332439D0B4D2C10180549F4129
|
||||
:1079B000D0F3F89481E08093E00010926F00109271
|
||||
:1079C0008100109285001092840081E085BF15BE71
|
||||
:1079D0005D9828980C9400002ED107C0DBD002C01F
|
||||
:1079E00095D239F02AD182FFFBCF85FFF7CF809166
|
||||
:1079F000F1000895082E83E01FD185FD07C014D142
|
||||
:107A000002C084D249F019D180FFFBCF0092F1006F
|
||||
:107A10005D9A84E680937E0108950DD182FFD5C0E2
|
||||
:107A2000289A84E680937F01D7DF182FF2018534EE
|
||||
:107A300031F48CE49DE11C0182D28DE096C0843546
|
||||
:107A400011F4CADFFACF8C34C1F38035B1F3843737
|
||||
:107A500021F484E4CFDF80E088C0813611F489E529
|
||||
:107A600084C0813431F4B8DFF82FB6DFE82F7CD240
|
||||
:107A7000E4CF803711F483E578C0833539F4C0E072
|
||||
:107A8000D1E08991B7DFC730E1F770C0863521F4C6
|
||||
:107A900081E3B0DF82E369C0833731F487E8AADF8E
|
||||
:107AA00085E9A8DF8EE161C0853639F4E0E8F7E7C3
|
||||
:107AB00084D0E058F040E0F7C0CF823631F489E559
|
||||
:107AC00099DF80E097DF80E850C0823419F0873674
|
||||
:107AD00009F037C0222433247FDFD82F7DDFC82F61
|
||||
:107AE0007BDF082F8554823008F03EC010926F0073
|
||||
:107AF000173659F406C0063411F4859101C027D217
|
||||
:107B000079DF2197C2F72F0118C04F01063461F4C5
|
||||
:107B100054D00AC061DF063431F4C0FB16F0182ED1
|
||||
:107B200046D0082E01C017D22197A2F72F010634A4
|
||||
:107B300011F4F4013AD08DE05DDF82E080936F00B4
|
||||
:107B400015C08237E1E049F08634E0E031F08E3450
|
||||
:107B5000E3E019F0813531F4E2E0F0E089E087BF3D
|
||||
:107B6000849103C08B3111F08FE344DF83E0DED1D9
|
||||
:107B70005BD095FF03C009C0C9D139F15ED080FF49
|
||||
:107B8000FBCF52D002C0C2D101F157D080FFFBCF52
|
||||
:107B900084E0CCD18BE749C010D090E40D901D90CB
|
||||
:107BA00006D09A95D9F7E058F04085E007C081E00B
|
||||
:107BB00087BFE89511243296089583E001D081E1D2
|
||||
:107BC00087BFE89507B600FCFDCF089590918D0121
|
||||
:107BD00080918E01913231F0913A61F5813251F507
|
||||
:107BE00038D083C0803231F534D090D1E9F085307F
|
||||
:107BF000D9F023D083FD18C082FFF7CF04C0F7DE91
|
||||
:107C00008193615031F09091F3008091F200892BC3
|
||||
:107C1000B1F7C0DF611549F704C078D129F085308C
|
||||
:107C200019F00BD080FFF9CF8EE79091E8008923FF
|
||||
:107C30008093E800089584E079D18091E800089568
|
||||
:107C40008091E2000895FCDF8E7F80618093E200E6
|
||||
:107C500008955AD1E6E8F1E067E0089582E061EC2A
|
||||
:107C600009D083E061E802D084E060E842E103C02B
|
||||
:107C700080E060E042E05AD181E007D01092ED0050
|
||||
:107C80006093EC004093ED0008959091EB00892BF8
|
||||
:107C90008093EB00089560E0923039F0933041F02A
|
||||
:107CA000913079F4E7E062E10CC0E9E16EE309C0EC
|
||||
:107CB000813018F4E7E564E004C019F4EBE562E212
|
||||
:107CC00000C0F1E0089580918D0188234CF402C03A
|
||||
:107CD0001DD151F0B2DF82FFFBCF5CCF17D121F075
|
||||
:107CE000ACDF80FFFBCFA0DF08954091930150915E
|
||||
:107CF00094014617510510F490E028C0611511F069
|
||||
:107D0000462FFACF91DF40E0F7CF00D159F185300F
|
||||
:107D100049F193DF83FD3ECF90DF82FD20C080FFDD
|
||||
:107D200015C03091F3002091F20005C0819180933D
|
||||
:107D3000F10041502F5F411519F028303105B0F3A3
|
||||
:107D400050E02830310509F451E06EDF4115E9F6C5
|
||||
:107D50005523D9F604C0DAD029F0853019F06DDF4B
|
||||
:107D600082FFF9CF17CF20E82093610010926100C5
|
||||
:107D700081E085BF32E035BF209A2898559A5D98FA
|
||||
:107D8000109289008AEF8093880030936F0083E01F
|
||||
:107D90008093810081E08093D7008AE482BF1092B3
|
||||
:107DA000D8001092E2001092DA001092E10080E810
|
||||
:107DB00008D019BC1EBA1092E0005ADF89E046DFF5
|
||||
:107DC00081E98093D8000895EDE8F1E010DE819319
|
||||
:107DD000E539E1F7FBDE31DF83FF91C080918D0152
|
||||
:107DE00090918E01913009F170F09330F1F095305F
|
||||
:107DF00009F444C0963009F456C0983009F460C0C4
|
||||
:107E0000993059F767C0823841F7809191018DD040
|
||||
:107E10002091EB001092E90077D0229526952170F1
|
||||
:107E20002093F1001092F10052C0882311F08230AB
|
||||
:107E3000A1F68F71823089F680918F018823D1F469
|
||||
:107E400020919101277049F22093E9008091EB0085
|
||||
:107E500080FF10C0933011F480E20BC080E115DF89
|
||||
:107E600081E0880F2A95E9F78093EA001092EA00F2
|
||||
:107E700088E00BDF1092E90047D02AC0882391F4F4
|
||||
:107E800010918F0110680FB7F8943ED01CDFD5DE3B
|
||||
:107E900080FFFDCF1093E300103883E009F482E007
|
||||
:107EA0008EBB0FBF2CC08058823048F580918F0167
|
||||
:107EB00090919001F0DE603011F126D016DF1FC0E6
|
||||
:107EC0008038E9F421D0809185018093F100ACDE07
|
||||
:107ED000FADE15C0882399F490918F01923078F4DE
|
||||
:107EE0009093850111D0EFDE80918501882321F4E4
|
||||
:107EF0008091E30091E087FD94E09EBBAFDE9DDEC4
|
||||
:107F000083FF089580E2C1DE87EF8FCE8EB3882392
|
||||
:107F10000895FCDF69F08091E9008F931092E900E9
|
||||
:107F20008CDE83FF01C050DF8F9187708093E90062
|
||||
:107F30000895E0E0F0E08591949101960895F201B2
|
||||
:107F4000F695E795F999FECFF2BDE1BD0895F7DF0B
|
||||
:107F5000F89A80B508C0F3DF1FBA80BD0FB6F89459
|
||||
:107F6000FA9AF99A0FBE3196EE0FFF1F2F0108956E
|
||||
:107F700041524455424F591201100102000008417C
|
||||
:107F800023370001000001000109023E0002010048
|
||||
:107F900080320904000001020201000524001001E2
|
||||
:107FA000042402040524060001070582030800FFDB
|
||||
:107FB00009040100020A0000000705040210000184
|
||||
:107FC0000705830210000104030904220341007223
|
||||
:107FD000006400750069006E006F0020004D0069AC
|
||||
:0E7FE00000630072006F0020002000200000EF
|
||||
:047FFC00CDCDFBDC10
|
||||
:040000030000780081
|
||||
:00000001FF
|
|
@ -0,0 +1,130 @@
|
|||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F9199C00F928F939F931F9240
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840003FC02BC00F920FB68F939F93EF93FF9380
|
||||
:1078500088278093850080938400EEE7F1E0908193
|
||||
:107860008917980B919309F45D9A90818917980B69
|
||||
:10787000908309F4289A7C9B05C05BD319F0C10161
|
||||
:1078800001961C01FF91EF915CC080E189BD82E10E
|
||||
:1078900089BD09B400FEFDCF08958091D80080FF16
|
||||
:1078A0000FC08091DA008E7F8093DA008091D9003A
|
||||
:1078B00080FF04C0EADF81E08EBB02C019BC1EBAA3
|
||||
:1078C0008091E10080FF0BC0BBD180FF08C0BBD11D
|
||||
:1078D0008091D800806275D219BC85E08EBB809102
|
||||
:1078E000E10084FF1AC0ACD184FF17C0CEDF8091C5
|
||||
:1078F000D8008F7D66D28FEE2AD0A2D18F7E816094
|
||||
:10790000A5D180918501882331F48091E30087FD22
|
||||
:1079100002C081E001C084E08EBB8091E10083FF62
|
||||
:107920000CC08ED183FF09C087EF11D082E08EBBDF
|
||||
:10793000109285010BD087D19BD16F914F910F9001
|
||||
:107940001F909F918F910FBE0F9018958EEF009012
|
||||
:10795000E10008220092E100089510BA80E181BBA5
|
||||
:10796000519A5998A0E0B1E0E0E7FFE705900D9249
|
||||
:10797000AD37E1F71D92BB30E9F7599A01FD0FC011
|
||||
:1079800000FF03C07C9B0BC008C003FF08C0675703
|
||||
:10799000774729F04757574711F0CBD251F4E3D13D
|
||||
:1079A00078942224332439D0B4D2C10180549F4129
|
||||
:1079B000D0F3F89481E08093E00010926F00109271
|
||||
:1079C0008100109285001092840081E085BF15BE71
|
||||
:1079D0005D9A289A0C9400002ED107C0DBD002C01B
|
||||
:1079E00095D239F02AD182FFFBCF85FFF7CF809166
|
||||
:1079F000F1000895082E83E01FD185FD07C014D142
|
||||
:107A000002C084D249F019D180FFFBCF0092F1006F
|
||||
:107A10005D9884E680937E0108950DD182FFD5C0E4
|
||||
:107A2000289884E680937F01D7DF182FF2018534F0
|
||||
:107A300031F48CE49DE11C0182D28DE096C0843546
|
||||
:107A400011F4CADFFACF8C34C1F38035B1F3843737
|
||||
:107A500021F484E4CFDF80E088C0813611F489E529
|
||||
:107A600084C0813431F4B8DFF82FB6DFE82F7CD240
|
||||
:107A7000E4CF803711F483E578C0833539F4C0E072
|
||||
:107A8000D1E08991B7DFC730E1F770C0863521F4C6
|
||||
:107A900081E3B0DF82E369C0833731F487E8AADF8E
|
||||
:107AA00085E9A8DF8EE161C0853639F4E0E8F7E7C3
|
||||
:107AB00084D0E058F040E0F7C0CF823631F489E559
|
||||
:107AC00099DF80E097DF80E850C0823419F0873674
|
||||
:107AD00009F037C0222433247FDFD82F7DDFC82F61
|
||||
:107AE0007BDF082F8554823008F03EC010926F0073
|
||||
:107AF000173659F406C0063411F4859101C027D217
|
||||
:107B000079DF2197C2F72F0118C04F01063461F4C5
|
||||
:107B100054D00AC061DF063431F4C0FB16F0182ED1
|
||||
:107B200046D0082E01C017D22197A2F72F010634A4
|
||||
:107B300011F4F4013AD08DE05DDF82E080936F00B4
|
||||
:107B400015C08237E1E049F08634E0E031F08E3450
|
||||
:107B5000E3E019F0813531F4E2E0F0E089E087BF3D
|
||||
:107B6000849103C08B3111F08FE344DF83E0DED1D9
|
||||
:107B70005BD095FF03C009C0C9D139F15ED080FF49
|
||||
:107B8000FBCF52D002C0C2D101F157D080FFFBCF52
|
||||
:107B900084E0CCD18BE749C010D090E40D901D90CB
|
||||
:107BA00006D09A95D9F7E058F04085E007C081E00B
|
||||
:107BB00087BFE89511243296089583E001D081E1D2
|
||||
:107BC00087BFE89507B600FCFDCF089590918D0121
|
||||
:107BD00080918E01913231F0913A61F5813251F507
|
||||
:107BE00038D083C0803231F534D090D1E9F085307F
|
||||
:107BF000D9F023D083FD18C082FFF7CF04C0F7DE91
|
||||
:107C00008193615031F09091F3008091F200892BC3
|
||||
:107C1000B1F7C0DF611549F704C078D129F085308C
|
||||
:107C200019F00BD080FFF9CF8EE79091E8008923FF
|
||||
:107C30008093E800089584E079D18091E800089568
|
||||
:107C40008091E2000895FCDF8E7F80618093E200E6
|
||||
:107C500008955AD1E6E8F1E067E0089582E061EC2A
|
||||
:107C600009D083E061E802D084E060E842E103C02B
|
||||
:107C700080E060E042E05AD181E007D01092ED0050
|
||||
:107C80006093EC004093ED0008959091EB00892BF8
|
||||
:107C90008093EB00089560E0923039F0933041F02A
|
||||
:107CA000913079F4E7E062E10CC0E9E16EE309C0EC
|
||||
:107CB000813018F4E7E564E004C019F4EBE562E212
|
||||
:107CC00000C0F1E0089580918D0188234CF402C03A
|
||||
:107CD0001DD151F0B2DF82FFFBCF5CCF17D121F075
|
||||
:107CE000ACDF80FFFBCFA0DF08954091930150915E
|
||||
:107CF00094014617510510F490E028C0611511F069
|
||||
:107D0000462FFACF91DF40E0F7CF00D159F185300F
|
||||
:107D100049F193DF83FD3ECF90DF82FD20C080FFDD
|
||||
:107D200015C03091F3002091F20005C0819180933D
|
||||
:107D3000F10041502F5F411519F028303105B0F3A3
|
||||
:107D400050E02830310509F451E06EDF4115E9F6C5
|
||||
:107D50005523D9F604C0DAD029F0853019F06DDF4B
|
||||
:107D600082FFF9CF17CF20E82093610010926100C5
|
||||
:107D700081E085BF32E035BF209A289A559A5D9AF6
|
||||
:107D8000109289008AEF8093880030936F0083E01F
|
||||
:107D90008093810081E08093D7008AE482BF1092B3
|
||||
:107DA000D8001092E2001092DA001092E10080E810
|
||||
:107DB00008D019BC1EBA1092E0005ADF89E046DFF5
|
||||
:107DC00081E98093D8000895EDE8F1E010DE819319
|
||||
:107DD000E539E1F7FBDE31DF83FF91C080918D0152
|
||||
:107DE00090918E01913009F170F09330F1F095305F
|
||||
:107DF00009F444C0963009F456C0983009F460C0C4
|
||||
:107E0000993059F767C0823841F7809191018DD040
|
||||
:107E10002091EB001092E90077D0229526952170F1
|
||||
:107E20002093F1001092F10052C0882311F08230AB
|
||||
:107E3000A1F68F71823089F680918F018823D1F469
|
||||
:107E400020919101277049F22093E9008091EB0085
|
||||
:107E500080FF10C0933011F480E20BC080E115DF89
|
||||
:107E600081E0880F2A95E9F78093EA001092EA00F2
|
||||
:107E700088E00BDF1092E90047D02AC0882391F4F4
|
||||
:107E800010918F0110680FB7F8943ED01CDFD5DE3B
|
||||
:107E900080FFFDCF1093E300103883E009F482E007
|
||||
:107EA0008EBB0FBF2CC08058823048F580918F0167
|
||||
:107EB00090919001F0DE603011F126D016DF1FC0E6
|
||||
:107EC0008038E9F421D0809185018093F100ACDE07
|
||||
:107ED000FADE15C0882399F490918F01923078F4DE
|
||||
:107EE0009093850111D0EFDE80918501882321F4E4
|
||||
:107EF0008091E30091E087FD94E09EBBAFDE9DDEC4
|
||||
:107F000083FF089580E2C1DE87EF8FCE8EB3882392
|
||||
:107F10000895FCDF69F08091E9008F931092E900E9
|
||||
:107F20008CDE83FF01C050DF8F9187708093E90062
|
||||
:107F30000895E0E0F0E08591949101960895F201B2
|
||||
:107F4000F695E795F999FECFF2BDE1BD0895F7DF0B
|
||||
:107F5000F89A80B508C0F3DF1FBA80BD0FB6F89459
|
||||
:107F6000FA9AF99A0FBE3196EE0FFF1F2F0108956E
|
||||
:107F700041524455424F591201100102000008417C
|
||||
:107F800023360001000001000109023E0002010049
|
||||
:107F900080320904000001020201000524001001E2
|
||||
:107FA000042402040524060001070582030800FFDB
|
||||
:107FB00009040100020A0000000705040210000184
|
||||
:107FC0000705830210000104030904220341007223
|
||||
:107FD000006400750069006E006F0020004C0065B1
|
||||
:0E7FE000006F006E006100720064006F000010
|
||||
:047FFC00CDCDFBDC10
|
||||
:040000030000780081
|
||||
:00000001FF
|
|
@ -0,0 +1,130 @@
|
|||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F9199C00F928F939F931F9240
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840003FC02BC00F920FB68F939F93EF93FF9380
|
||||
:1078500088278093850080938400EEE7F1E0908193
|
||||
:107860008917980B919309F45D9A90818917980B69
|
||||
:10787000908309F4289A7C9B05C05BD319F0C10161
|
||||
:1078800001961C01FF91EF915CC080E189BD82E10E
|
||||
:1078900089BD09B400FEFDCF08958091D80080FF16
|
||||
:1078A0000FC08091DA008E7F8093DA008091D9003A
|
||||
:1078B00080FF04C0EADF81E08EBB02C019BC1EBAA3
|
||||
:1078C0008091E10080FF0BC0BBD180FF08C0BBD11D
|
||||
:1078D0008091D800806275D219BC85E08EBB809102
|
||||
:1078E000E10084FF1AC0ACD184FF17C0CEDF8091C5
|
||||
:1078F000D8008F7D66D28FEE2AD0A2D18F7E816094
|
||||
:10790000A5D180918501882331F48091E30087FD22
|
||||
:1079100002C081E001C084E08EBB8091E10083FF62
|
||||
:107920000CC08ED183FF09C087EF11D082E08EBBDF
|
||||
:10793000109285010BD087D19BD16F914F910F9001
|
||||
:107940001F909F918F910FBE0F9018958EEF009012
|
||||
:10795000E10008220092E100089510BA80E181BBA5
|
||||
:10796000579A5F98A0E0B1E0E0E7FFE705900D923D
|
||||
:10797000AD37E1F71D92BB30E9F75F9A01FD0FC00B
|
||||
:1079800000FF03C07C9B0BC008C003FF08C0675703
|
||||
:10799000774729F04757574711F0CBD251F4E3D13D
|
||||
:1079A00078942224332439D0B4D2C10180549F4129
|
||||
:1079B000D0F3F89481E08093E00010926F00109271
|
||||
:1079C0008100109285001092840081E085BF15BE71
|
||||
:1079D0005D9A289A0C9400002ED107C0DBD002C01B
|
||||
:1079E00095D239F02AD182FFFBCF85FFF7CF809166
|
||||
:1079F000F1000895082E83E01FD185FD07C014D142
|
||||
:107A000002C084D249F019D180FFFBCF0092F1006F
|
||||
:107A10005D9884E680937E0108950DD182FFD5C0E4
|
||||
:107A2000289884E680937F01D7DF182FF2018534F0
|
||||
:107A300031F48CE49DE11C0182D28DE096C0843546
|
||||
:107A400011F4CADFFACF8C34C1F38035B1F3843737
|
||||
:107A500021F484E4CFDF80E088C0813611F489E529
|
||||
:107A600084C0813431F4B8DFF82FB6DFE82F7CD240
|
||||
:107A7000E4CF803711F483E578C0833539F4C0E072
|
||||
:107A8000D1E08991B7DFC730E1F770C0863521F4C6
|
||||
:107A900081E3B0DF82E369C0833731F487E8AADF8E
|
||||
:107AA00085E9A8DF8EE161C0853639F4E0E8F7E7C3
|
||||
:107AB00084D0E058F040E0F7C0CF823631F489E559
|
||||
:107AC00099DF80E097DF80E850C0823419F0873674
|
||||
:107AD00009F037C0222433247FDFD82F7DDFC82F61
|
||||
:107AE0007BDF082F8554823008F03EC010926F0073
|
||||
:107AF000173659F406C0063411F4859101C027D217
|
||||
:107B000079DF2197C2F72F0118C04F01063461F4C5
|
||||
:107B100054D00AC061DF063431F4C0FB16F0182ED1
|
||||
:107B200046D0082E01C017D22197A2F72F010634A4
|
||||
:107B300011F4F4013AD08DE05DDF82E080936F00B4
|
||||
:107B400015C08237E1E049F08634E0E031F08E3450
|
||||
:107B5000E3E019F0813531F4E2E0F0E089E087BF3D
|
||||
:107B6000849103C08B3111F08FE344DF83E0DED1D9
|
||||
:107B70005BD095FF03C009C0C9D139F15ED080FF49
|
||||
:107B8000FBCF52D002C0C2D101F157D080FFFBCF52
|
||||
:107B900084E0CCD18BE749C010D090E40D901D90CB
|
||||
:107BA00006D09A95D9F7E058F04085E007C081E00B
|
||||
:107BB00087BFE89511243296089583E001D081E1D2
|
||||
:107BC00087BFE89507B600FCFDCF089590918D0121
|
||||
:107BD00080918E01913231F0913A61F5813251F507
|
||||
:107BE00038D083C0803231F534D090D1E9F085307F
|
||||
:107BF000D9F023D083FD18C082FFF7CF04C0F7DE91
|
||||
:107C00008193615031F09091F3008091F200892BC3
|
||||
:107C1000B1F7C0DF611549F704C078D129F085308C
|
||||
:107C200019F00BD080FFF9CF8EE79091E8008923FF
|
||||
:107C30008093E800089584E079D18091E800089568
|
||||
:107C40008091E2000895FCDF8E7F80618093E200E6
|
||||
:107C500008955AD1E6E8F1E067E0089582E061EC2A
|
||||
:107C600009D083E061E802D084E060E842E103C02B
|
||||
:107C700080E060E042E05AD181E007D01092ED0050
|
||||
:107C80006093EC004093ED0008959091EB00892BF8
|
||||
:107C90008093EB00089560E0923039F0933041F02A
|
||||
:107CA000913079F4E7E062E10CC0E9E16EE309C0EC
|
||||
:107CB000813018F4E7E564E004C019F4EBE562E212
|
||||
:107CC00000C0F1E0089580918D0188234CF402C03A
|
||||
:107CD0001DD151F0B2DF82FFFBCF5CCF17D121F075
|
||||
:107CE000ACDF80FFFBCFA0DF08954091930150915E
|
||||
:107CF00094014617510510F490E028C0611511F069
|
||||
:107D0000462FFACF91DF40E0F7CF00D159F185300F
|
||||
:107D100049F193DF83FD3ECF90DF82FD20C080FFDD
|
||||
:107D200015C03091F3002091F20005C0819180933D
|
||||
:107D3000F10041502F5F411519F028303105B0F3A3
|
||||
:107D400050E02830310509F451E06EDF4115E9F6C5
|
||||
:107D50005523D9F604C0DAD029F0853019F06DDF4B
|
||||
:107D600082FFF9CF17CF20E82093610010926100C5
|
||||
:107D700081E085BF32E035BF209A289A559A5D9AF6
|
||||
:107D8000109289008AEF8093880030936F0083E01F
|
||||
:107D90008093810081E08093D7008AE482BF1092B3
|
||||
:107DA000D8001092E2001092DA001092E10080E810
|
||||
:107DB00008D019BC1EBA1092E0005ADF89E046DFF5
|
||||
:107DC00081E98093D8000895EDE8F1E010DE819319
|
||||
:107DD000E539E1F7FBDE31DF83FF91C080918D0152
|
||||
:107DE00090918E01913009F170F09330F1F095305F
|
||||
:107DF00009F444C0963009F456C0983009F460C0C4
|
||||
:107E0000993059F767C0823841F7809191018DD040
|
||||
:107E10002091EB001092E90077D0229526952170F1
|
||||
:107E20002093F1001092F10052C0882311F08230AB
|
||||
:107E3000A1F68F71823089F680918F018823D1F469
|
||||
:107E400020919101277049F22093E9008091EB0085
|
||||
:107E500080FF10C0933011F480E20BC080E115DF89
|
||||
:107E600081E0880F2A95E9F78093EA001092EA00F2
|
||||
:107E700088E00BDF1092E90047D02AC0882391F4F4
|
||||
:107E800010918F0110680FB7F8943ED01CDFD5DE3B
|
||||
:107E900080FFFDCF1093E300103883E009F482E007
|
||||
:107EA0008EBB0FBF2CC08058823048F580918F0167
|
||||
:107EB00090919001F0DE603011F126D016DF1FC0E6
|
||||
:107EC0008038E9F421D0809185018093F100ACDE07
|
||||
:107ED000FADE15C0882399F490918F01923078F4DE
|
||||
:107EE0009093850111D0EFDE80918501882321F4E4
|
||||
:107EF0008091E30091E087FD94E09EBBAFDE9DDEC4
|
||||
:107F000083FF089580E2C1DE87EF8FCE8EB3882392
|
||||
:107F10000895FCDF69F08091E9008F931092E900E9
|
||||
:107F20008CDE83FF01C050DF8F9187708093E90062
|
||||
:107F30000895E0E0F0E08591949101960895F201B2
|
||||
:107F4000F695E795F999FECFF2BDE1BD0895F7DF0B
|
||||
:107F5000F89A80B508C0F3DF1FBA80BD0FB6F89459
|
||||
:107F6000FA9AF99A0FBE3196EE0FFF1F2F0108956E
|
||||
:107F700041524455424F591201100102000008417C
|
||||
:107F800023360001000001000109023E0002010049
|
||||
:107F900080320904000001020201000524001001E2
|
||||
:107FA000042402040524060001070582030800FFDB
|
||||
:107FB00009040100020A0000000705040210000184
|
||||
:107FC0000705830210000104030904220341007223
|
||||
:107FD000006400750069006E006F0020004C0065B1
|
||||
:0E7FE000006F006E006100720064006F000010
|
||||
:047FFC00CDCDFBDC10
|
||||
:040000030000780081
|
||||
:00000001FF
|
|
@ -0,0 +1,194 @@
|
|||
:10740000E0E0F0E0859194910196089520E82093C2
|
||||
:1074100061001092610081E085BF82E085BF87E056
|
||||
:1074200084B981E785B917B8469A10BA80EC81BB58
|
||||
:1074300084EF8AB984EA8BB980E58CBD81E08DBD8B
|
||||
:10744000089584E68BB98BEA55D0109289008AEFB3
|
||||
:107450008093880082E080936F0083E080938100B6
|
||||
:10746000E7E0F1E05CD0E331E9F7A5E2B4E0E3E185
|
||||
:10747000F1E003E010E101900D921A95E1F7A059B7
|
||||
:10748000BF4F0A95B9F753D081E08093D7008AE4C3
|
||||
:1074900082BF1092D8001092E2001092DA0010928F
|
||||
:1074A000E10080E808D019BC1EBA1092E00072D446
|
||||
:1074B00089E05ED481E98093D8000895F201F999BA
|
||||
:1074C000FECFF2BDE1BD0895F9DFF89A80B508C09E
|
||||
:1074D000F5DF1FBA80BD0FB6F894FA9AF99A0FBE7D
|
||||
:1074E00031962F01089590E81BD08D939A95E1F77E
|
||||
:1074F000089586E008D010C083E005D08F2F10D00B
|
||||
:107500008E2F0ED080E05F9A5A980AC005D085E091
|
||||
:10751000FADF06D080FDFDCF5A9A5F9808958191D9
|
||||
:107520008EBD8DB5000087FFFCCF8EB50895EDEEC2
|
||||
:10753000F2E090EB5C98892FF3DF80E1F1DF5C9A59
|
||||
:10754000EEDF8DEE8E278F77D9F79395983B91F7E5
|
||||
:107550000895EBEDF1E08191908101969083829303
|
||||
:10756000092E0AF400940091D90106FB5EF0009602
|
||||
:10757000929111F493959083000C081620F4289AA8
|
||||
:10758000289A289A0895937009F42898913009F45C
|
||||
:107590002898923009F428980895E2EDF1E0978157
|
||||
:1075A0009923FAF083B180958077369B84607F9B26
|
||||
:1075B00082607E9B81609581891310C0968199239A
|
||||
:1075C00081F49381891306C09481992396E959F037
|
||||
:1075D00080E00AC083839095892304C085839AE064
|
||||
:1075E000968380E09FEF9483828308958091D901F0
|
||||
:1075F00086FFC5DF22243324EDEEF1E08091D40133
|
||||
:1076000084FD1BC086FD32C080FF0895C685CC2353
|
||||
:10761000E1F3F89428980088F785E02D6DDFE0E02D
|
||||
:10762000F0E0ADEEB1E05FDFADEEB1E047D3E058A2
|
||||
:10763000FF4FCA95B1F770DFCEC18301282D60904E
|
||||
:10764000F6017090F50146D019F48823C1F708952A
|
||||
:10765000380188243FD0E1F58091F401821709F4C4
|
||||
:1076600083016090F8017090F701F4CF6090F80109
|
||||
:107670007090F7012FD081F48823C1F708959FEF10
|
||||
:1076800085FD08C082FD05C081FF0895B9DEE9F3DC
|
||||
:10769000A2C191E097FB890E6624772483012227FB
|
||||
:1076A00019D0B1F4882389F38091F40136F088165B
|
||||
:1076B00050F4821730F0213003C0881520F42817C9
|
||||
:1076C00010F48301282F6090F8017090F701E8CF43
|
||||
:1076D0003801822EF30110DFADEEB1E004DFCDEE14
|
||||
:1076E000D1E0E0E0F1E097E009908191081621F403
|
||||
:1076F0009A95D1F7088080100FCFC9E0F4DECA95C3
|
||||
:0A770000E9F70ADF14DF8827089577
|
||||
:10770A0041524455424F59D5F08D14A1C881CFD961
|
||||
:10771A00F1AF000000FFFFCFCFFFFFFFFFCFCFFF8A
|
||||
:10772A00FF0000FE067E7E06FE46565616FE0656EA
|
||||
:10773A00461EFE3F61E9E3FFE3EBE3FFE3EBE3FF12
|
||||
:10774A00E16B3F12011001020000084123360001DB
|
||||
:10775A00000201000109023E000201008032090410
|
||||
:10776A0000000102020100052400100104240204A1
|
||||
:10777A000524060001070582030800FF0904010029
|
||||
:10778A00020A00000007050402100001070583022F
|
||||
:10779A001000010403090422034100720064007509
|
||||
:1077AA000069006E006F0020004C0065006F006EDB
|
||||
:1077BA00006100720064006F0018034100720064E7
|
||||
:1077CA0000750069006E006F0020004C004C0043F9
|
||||
:0277DA000000AD
|
||||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F91A6C00F928F939F931F9233
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840004CC038C00F920FB68F939F93EF93FF9366
|
||||
:1078500088278093850080938400E2EDF1E0978192
|
||||
:10786000907261F490818917980B908309F45D9A66
|
||||
:1078700091818917980B918309F4289A96819150E8
|
||||
:1078800008F096839481915008F09483881639F417
|
||||
:107890001E9B05C0B5DD19F0C10101961C01FF91C9
|
||||
:1078A000EF915CC080E189BD82E189BD09B400FE31
|
||||
:1078B000FDCF08958091D80080FF0FC08091DA003D
|
||||
:1078C0008E7F8093DA008091D90080FF04C0EADFC8
|
||||
:1078D00081E08EBB02C019BC1EBA8091E10080FF1E
|
||||
:1078E0000BC040D280FF08C040D28091D800806297
|
||||
:1078F000E2DD19BC85E08EBB8091E10084FF1AC0F7
|
||||
:1079000031D284FF17C0CEDF8091D8008F7DD3DDC8
|
||||
:107910008FEE2AD027D28F7E81602AD28091DD011E
|
||||
:10792000882331F48091E30087FD02C081E001C02B
|
||||
:1079300084E08EBB8091E10083FF0CC013D283FFF3
|
||||
:1079400009C087EF11D082E08EBB1092DD010BD011
|
||||
:107950000CD220D26F914F910F901F909F918F91D9
|
||||
:107960000FBE0F9018958EEF0090E1000822009254
|
||||
:10797000E10008954BDDA0E0B1E0EAE0F7E7059013
|
||||
:107980000D92A13DE1F71D92BB30E9F701FD0FC05B
|
||||
:1079900000FF03C01E9B0BC008C003FF08C0675751
|
||||
:1079A000774729F04757574711F02ADDA1F449DD01
|
||||
:1079B00022243324310188248DDE789447D00ED3DD
|
||||
:1079C000ECDD5DDE811411F011DEF8CFC2DDC10106
|
||||
:1079D000805B964398F3F89489EB8CDD81E080938B
|
||||
:1079E000E00010926F0010928100109285001092BA
|
||||
:1079F000840081E085BF15BEC2DD5D9A289A0C9493
|
||||
:107A00000000ABD107C058D102C0E5D239F0A7D1F0
|
||||
:107A100082FFFBCF85FFF7CF8091F1000895082EFC
|
||||
:107A200083E09CD185FD07C091D102C0D4D269F01A
|
||||
:107A300096D180FFFBCF0092F1008091D90185FBA8
|
||||
:107A400026F05D9884E68093D201089586D182FF66
|
||||
:107A50004EC18091D90185FB26F0289884E6809359
|
||||
:107A6000D301CFDF182F853431F48CEB94E31C0164
|
||||
:107A700025DD8DE00CC1843511F4C3DFFACF8C34E1
|
||||
:107A8000C1F38035B1F3843721F484E4C8DF80E0AA
|
||||
:107A9000FEC0813611F489E5FAC0813429F4B1DFE2
|
||||
:107AA000582EAFDF482EE5CF803711F483E5EFC0C5
|
||||
:107AB000833539F4C0E0D1E08991B1DFC730E1F717
|
||||
:107AC000E7C0863521F481E3AADF84E3E0C086378E
|
||||
:107AD00081F481E37F9B8E5F7E9B8F5FA0DF81E4DB
|
||||
:107AE0001C9B885F369B8C5F1D9B8E5F1E9B8F5FF0
|
||||
:107AF000CEC08837A9F485DF8093D901289A84FD08
|
||||
:107B000028985D9A83FD5D98289A81FD2898289A87
|
||||
:107B100082FD2898289A80FD289887FD8824A9CF7F
|
||||
:107B20008A3649F48FE9EFDCC3E0FADC78DFCA95E6
|
||||
:107B3000E1F7F2DCADC0833731F487E870DF85E927
|
||||
:107B40006EDF8EE1A4C0853639F4E0E8F3E7C7D0F4
|
||||
:107B5000E058F040E0F78DCF823631F489E55FDF01
|
||||
:107B600080E05DDF80E893C0823419F0873609F049
|
||||
:107B70007AC02224332445DFD82F43DFC82F41DFCA
|
||||
:107B8000082F8354843008F081C0063411F4440C6B
|
||||
:107B9000551CF20110926F001736A1F4033471F4F2
|
||||
:107BA00083E0ABDCBDDC3BDF2197E1F7B5DC08C04F
|
||||
:107BB000063411F4859101C087DC31DF2197C2F7CB
|
||||
:107BC0002F0149C00334A1F48E2F8F7021F491DC72
|
||||
:107BD00080E293DC9BDC8DDC82E08FDC12DFA0DCBA
|
||||
:107BE000CA95E1F793DC3196DA9571F72F0131C030
|
||||
:107BF0000634F1F49F01F437D8F471D019C001DFD5
|
||||
:107C0000063461F4C0FB46F0F43728F4182E81E006
|
||||
:107C100087BFE89511243296082E0AC0043439F43F
|
||||
:107C2000DF01B370A351BD4F8D93319601C050DC7D
|
||||
:107C300021972AF7043431F42F01F370FE2B49F415
|
||||
:107C400076DC07C0063429F42F01F901F43708F473
|
||||
:107C500044D08DE0E4DE063411F45694479482E07B
|
||||
:107C600080936F0015C08237E1E049F08634E0E090
|
||||
:107C700031F08E34E3E019F0813531F4E2E0F0E0E8
|
||||
:107C800089E087BF849103C08B3111F08FE3C7DE99
|
||||
:107C900083E0B1D15BD095FF03C009C09CD139F11D
|
||||
:107CA0005ED080FFFBCF52D002C095D101F157D0FA
|
||||
:107CB00080FFFBCF84E09FD18BE749C0F437B8F455
|
||||
:107CC0000ED090E40D901D9081E087BFE89532962C
|
||||
:107CD0009A95C1F71124E058F04085E001C083E097
|
||||
:107CE00001D081E187BFE89507B600FCFDCF08957C
|
||||
:107CF0009091E5018091E601913231F0913A61F580
|
||||
:107D0000813251F538D087C0803231F534D063D11B
|
||||
:107D1000E9F08530D9F023D083FD18C082FFF7CF7A
|
||||
:107D200004C07ADE8193615031F09091F30080912C
|
||||
:107D3000F200892BB1F7C0DF611549F704C04BD1C0
|
||||
:107D400029F0853019F00BD080FFF9CF8EE79091A4
|
||||
:107D5000E80089238093E800089584E04CD1809165
|
||||
:107D6000E80008958091E2000895FCDF8E7F806135
|
||||
:107D70008093E20008952DD1EEEDF1E067E00895E3
|
||||
:107D800082E061EC09D083E061E802D084E060E841
|
||||
:107D900042E103C080E060E042E02DD181E007D005
|
||||
:107DA0001092ED006093EC004093ED0008959091E7
|
||||
:107DB000EB00892B8093EB00089560E0923039F05E
|
||||
:107DC000933041F0913099F4E3E462E110C0E5E5CD
|
||||
:107DD0006EE30DC0813018F4E3E964E008C019F4E3
|
||||
:107DE000E7E962E204C0823011F4E9EB68E1F1E016
|
||||
:107DF00008958091E50188234CF402C0ECD051F045
|
||||
:107E0000AEDF82FFFBCF58CFE6D021F0A8DF80FFA6
|
||||
:107E1000FBCF9CDF08954091EB015091EC01461798
|
||||
:107E2000510510F490E028C0611511F0462FFACFEB
|
||||
:107E30008DDF40E0F7CFCFD059F1853049F18FDFAA
|
||||
:107E400083FD3ACF8CDF82FD20C080FF15C03091CA
|
||||
:107E5000F3002091F20005C081918093F100415020
|
||||
:107E60002F5F411519F028303105B0F350E028306C
|
||||
:107E7000310509F451E06ADF4115E9F65523D9F6D9
|
||||
:107E800004C0A9D029F0853019F069DF82FFF9CF4D
|
||||
:107E900013CFE5EEF1E0C0DD8193ED3EE1F728DFA1
|
||||
:107EA0005EDF83FF91C08091E5019091E601913002
|
||||
:107EB00009F170F09330F1F0953009F444C0963038
|
||||
:107EC00009F456C0983009F460C0993059F767C07A
|
||||
:107ED000823841F78091E9018DD02091EB0010921A
|
||||
:107EE000E90077D02295269521702093F100109219
|
||||
:107EF000F10052C0882311F08230A1F68F718230D8
|
||||
:107F000089F68091E7018823D1F42091E901277057
|
||||
:107F100049F22093E9008091EB0080FF10C093307C
|
||||
:107F200011F480E20BC080E142DF81E0880F2A95E6
|
||||
:107F3000E9F78093EA001092EA0088E038DF1092B7
|
||||
:107F4000E90047D02AC0882391F41091E701106816
|
||||
:107F50000FB7F8943ED04DDF02DF80FFFDCF1093C6
|
||||
:107F6000E300103883E009F482E08EBB0FBF2CC021
|
||||
:107F70008058823048F58091E7019091E8011DDF3B
|
||||
:107F8000603011F126D047DF1FC08038E9F421D0DE
|
||||
:107F90008091DD018093F100D9DE2BDF15C08823AD
|
||||
:107FA00099F49091E701923078F49093DD0111D02B
|
||||
:107FB00020DF8091DD01882321F48091E30091E0AE
|
||||
:107FC00087FD94E09EBBDCDECADE83FF089580E27D
|
||||
:107FD000EEDE87EFBCCE8EB388230895FCDF69F018
|
||||
:107FE0008091E9008F931092E900B9DE83FF01C010
|
||||
:0C7FF00050DF8F9187708093E9000895A6
|
||||
:047FFC005FCEFBDC7D
|
||||
:040000030000740085
|
||||
:00000001FF
|
|
@ -0,0 +1,194 @@
|
|||
:10740000E0E0F0E0859194910196089520E82093C2
|
||||
:1074100061001092610081E085BF82E085BF87EE48
|
||||
:1074200084B980EF85B91DB8769A10BA80EF81BB18
|
||||
:1074300084EF8AB984E68BB980E58CBD81E08DBD8F
|
||||
:10744000089584EA8BB98BEA55D0109289008AEFAF
|
||||
:107450008093880082E080936F0083E080938100B6
|
||||
:10746000E7E0F1E05CD0E331E9F7A5E2B4E0E3E185
|
||||
:10747000F1E003E010E101900D921A95E1F7A059B7
|
||||
:10748000BF4F0A95B9F753D081E08093D7008AE4C3
|
||||
:1074900082BF1092D8001092E2001092DA0010928F
|
||||
:1074A000E10080E808D019BC1EBA1092E0006ED44A
|
||||
:1074B00089E05AD481E98093D8000895F201F999BE
|
||||
:1074C000FECFF2BDE1BD0895F9DFF89A80B508C09E
|
||||
:1074D000F5DF1FBA80BD0FB6F894FA9AF99A0FBE7D
|
||||
:1074E00031962F01089590E81BD08D939A95E1F77E
|
||||
:1074F000089586E008D010C083E005D08F2F10D00B
|
||||
:107500008E2F0ED080E05E9A5A980AC005D085E092
|
||||
:10751000FADF06D080FDFDCF5A9A5E9808958191DA
|
||||
:107520008EBD8DB5000087FFFCCF8EB50895EDEEC2
|
||||
:10753000F2E090EB5C98892FF3DF80E1F1DF5C9A59
|
||||
:10754000EEDF8DEE8E278F77D9F79395983B91F7E5
|
||||
:107550000895EBEDF1E08191908101969083829303
|
||||
:10756000092E0AF400940091D90106FB5EF0009602
|
||||
:10757000929111F493959083000C081620F42E9AA2
|
||||
:107580002F9A2D9A0895937009F42E98913009F44A
|
||||
:107590002F98923009F42D980895E2EDF1E097814B
|
||||
:1075A0009923EAF08FB18095807F669B88601C9B51
|
||||
:1075B00084609581891310C09681992381F4938109
|
||||
:1075C000891306C09481992396E959F080E00AC096
|
||||
:1075D00083839095892304C085839AE0968380E015
|
||||
:1075E0009FEF9483828308958091D90186FFC7DF3E
|
||||
:1075F00022243324EDEEF1E08091D40187FD1BC0FD
|
||||
:1076000084FD32C082FF0895C685CC23E1F3F8944F
|
||||
:10761000289A0088F785E02D6FDFE0E0F0E0ADEE1E
|
||||
:10762000B1E061DFADEEB1E045D3E058FF4FCA9560
|
||||
:10763000B1F772DFD0C18301282D6090F601709000
|
||||
:10764000F50146D019F48823C1F70895380188243C
|
||||
:107650003FD0E1F58091F401821709F48301609035
|
||||
:10766000F8017090F701F4CF6090F8017090F70185
|
||||
:107670002FD081F48823C1F708959FEF85FD08C0BE
|
||||
:1076800086FD05C083FF0895BBDEE9F3A4C191E048
|
||||
:1076900097FB890E662477248301222719D0B1F441
|
||||
:1076A000882389F38091F40136F0881650F482170C
|
||||
:1076B00030F0213003C0881520F4281710F483011E
|
||||
:1076C000282F6090F8017090F701E8CF3801822EE2
|
||||
:1076D000F30112DFADEEB1E006DFCDEED1E0E0E088
|
||||
:1076E000F1E097E009908191081621F49A95D1F77D
|
||||
:1076F0000880801011CFC9E0F6DECA95E9F70CDFEB
|
||||
:0677000016DF8827089542
|
||||
:1077060041524455424F59D5F08D14A1C881CFD965
|
||||
:10771600F1AF020000FFFFCFCFFFFFFFFFCFCFFF8C
|
||||
:10772600FF0000FE067E7E06FE46565616FE0656EE
|
||||
:10773600461EFE3F61E9E3FFE3EBE3FFE3EBE3FF16
|
||||
:10774600E16B3F12011001020000084123370001DE
|
||||
:10775600000201000109023E000201008032090414
|
||||
:1077660000000102020100052400100104240204A5
|
||||
:107776000524060001070582030800FF090401002D
|
||||
:10778600020A000000070504021000010705830233
|
||||
:10779600100001040309042203410072006400750D
|
||||
:1077A6000069006E006F0020004D006900630072E2
|
||||
:1077B600006F0020002000200018034100720064C2
|
||||
:1077C60000750069006E006F0020004C004C0043FD
|
||||
:0277D6000000B1
|
||||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F91A6C00F928F939F931F9233
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840004CC038C00F920FB68F939F93EF93FF9366
|
||||
:1078500088278093850080938400E2EDF1E0978192
|
||||
:10786000907261F490818917980B908309F45D9868
|
||||
:1078700091818917980B918309F4289896819150EA
|
||||
:1078800008F096839481915008F09483881639F417
|
||||
:107890007C9B05C0B5DD19F0C10101961C01FF916B
|
||||
:1078A000EF915CC080E189BD82E189BD09B400FE31
|
||||
:1078B000FDCF08958091D80080FF0FC08091DA003D
|
||||
:1078C0008E7F8093DA008091D90080FF04C0EADFC8
|
||||
:1078D00081E08EBB02C019BC1EBA8091E10080FF1E
|
||||
:1078E0000BC03CD280FF08C03CD28091D80080629F
|
||||
:1078F000E2DD19BC85E08EBB8091E10084FF1AC0F7
|
||||
:107900002DD284FF17C0CEDF8091D8008F7DD3DDCC
|
||||
:107910008FEE2AD023D28F7E816026D28091DD0126
|
||||
:10792000882331F48091E30087FD02C081E001C02B
|
||||
:1079300084E08EBB8091E10083FF0CC00FD283FFF7
|
||||
:1079400009C087EF11D082E08EBB1092DD010BD011
|
||||
:1079500008D21CD26F914F910F901F909F918F91E1
|
||||
:107960000FBE0F9018958EEF0090E1000822009254
|
||||
:10797000E10008954BDDA0E0B1E0E6E0F7E7059017
|
||||
:107980000D92A13DE1F71D92BB30E9F701FD0FC05B
|
||||
:1079900000FF03C07C9B0BC008C003FF08C06757F3
|
||||
:1079A000774729F04757574711F02ADDA1F449DD01
|
||||
:1079B00022243324310188248BDE789447D00AD3E3
|
||||
:1079C000ECDD5BDE811411F00FDEF8CFC2DDC1010A
|
||||
:1079D000805B964398F3F89489EB8CDD81E080938B
|
||||
:1079E000E00010926F0010928100109285001092BA
|
||||
:1079F000840081E085BF15BEC2DD5D9828980C9497
|
||||
:107A00000000A7D107C054D102C0E1D239F0A3D100
|
||||
:107A100082FFFBCF85FFF7CF8091F1000895082EFC
|
||||
:107A200083E098D185FD07C08DD102C0D0D269F026
|
||||
:107A300092D180FFFBCF0092F1008091D90185FBAC
|
||||
:107A400026F05D9A84E68093D201089582D182FF68
|
||||
:107A50004AC18091D90185FB26F0289A84E680935B
|
||||
:107A6000D301CFDF182F853431F48CEB94E31C0164
|
||||
:107A700025DD8DE008C1843511F4C3DFFACF8C34E5
|
||||
:107A8000C1F38035B1F3843721F484E4C8DF80E0AA
|
||||
:107A9000FAC0813611F489E5F6C0813429F4B1DFEA
|
||||
:107AA000582EAFDF482EE5CF803711F483E5EBC0C9
|
||||
:107AB000833539F4C0E0D1E08991B1DFC730E1F717
|
||||
:107AC000E3C0863521F481E3AADF84E3DCC0863796
|
||||
:107AD00061F481E3669B8E5F1C9B8F5FA0DF8FB19B
|
||||
:107AE000809582958F708F5BCEC08837A9F489DF2F
|
||||
:107AF0008093D901289884FD289A5D9883FD5D9A2A
|
||||
:107B00002E9A81FD2E982F9A82FD2F982D9A80FD16
|
||||
:107B10002D9887FD8824ADCF8A3649F48FE9F3DCB0
|
||||
:107B2000C3E0FEDC7CDFCA95E1F7F6DCADC083374D
|
||||
:107B300031F487E874DF85E972DF8EE1A4C0853611
|
||||
:107B400039F4E0E8F3E7C7D0E058F040E0F791CF30
|
||||
:107B5000823631F489E563DF80E061DF80E893C03D
|
||||
:107B6000823419F0873609F07AC02224332449DFA1
|
||||
:107B7000D82F47DFC82F45DF082F8354843008F003
|
||||
:107B800081C0063411F4440C551CF20110926F00B0
|
||||
:107B90001736A1F4033471F483E0AFDCC1DC3FDFBE
|
||||
:107BA0002197E1F7B9DC08C0063411F4859101C0D2
|
||||
:107BB0008BDC35DF2197C2F72F0149C00334A1F4D4
|
||||
:107BC0008E2F8F7021F495DC80E297DC9FDC91DCB6
|
||||
:107BD00082E093DC16DFA4DCCA95E1F797DC3196EE
|
||||
:107BE000DA9571F72F0131C00634F1F49F01F437B3
|
||||
:107BF000D8F471D019C005DF063461F4C0FB46F03B
|
||||
:107C0000F43728F4182E81E087BFE89511243296C6
|
||||
:107C1000082E0AC0043439F4DF01B370A351BD4FFC
|
||||
:107C20008D93319601C054DC21972AF7043431F446
|
||||
:107C30002F01F370FE2B49F47ADC07C0063429F4D7
|
||||
:107C40002F01F901F43708F444D08DE0E8DE063462
|
||||
:107C500011F45694479482E080936F0015C08237E8
|
||||
:107C6000E1E049F08634E0E031F08E34E3E019F0F1
|
||||
:107C7000813531F4E2E0F0E089E087BF849103C010
|
||||
:107C80008B3111F08FE3CBDE83E0B1D15BD095FF78
|
||||
:107C900003C009C09CD139F15ED080FFFBCF52D028
|
||||
:107CA00002C095D101F157D080FFFBCF84E09FD176
|
||||
:107CB0008BE749C0F437B8F40ED090E40D901D90D6
|
||||
:107CC00081E087BFE89532969A95C1F71124E05874
|
||||
:107CD000F04085E001C083E001D081E187BFE895F5
|
||||
:107CE00007B600FCFDCF08959091E5018091E60173
|
||||
:107CF000913231F0913A61F5813251F538D087C037
|
||||
:107D0000803231F534D063D1E9F08530D9F023D019
|
||||
:107D100083FD18C082FFF7CF04C07EDE81936150DF
|
||||
:107D200031F09091F3008091F200892BB1F7C0DF20
|
||||
:107D3000611549F704C04BD129F0853019F00BD0FB
|
||||
:107D400080FFF9CF8EE79091E80089238093E800C7
|
||||
:107D5000089584E04CD18091E80008958091E2007C
|
||||
:107D60000895FCDF8E7F80618093E20008952DD11D
|
||||
:107D7000EEEDF1E067E0089582E061EC09D083E088
|
||||
:107D800061E802D084E060E842E103C080E060E0A6
|
||||
:107D900042E02DD181E007D01092ED006093EC001D
|
||||
:107DA0004093ED0008959091EB00892B8093EB00B8
|
||||
:107DB000089560E0923039F0933041F0913099F4B9
|
||||
:107DC000E3E462E110C0E5E56EE30DC0813018F434
|
||||
:107DD000E3E964E008C019F4E7E962E204C0823034
|
||||
:107DE00011F4E9EB68E1F1E008958091E501882361
|
||||
:107DF0004CF402C0ECD051F0AEDF82FFFBCF58CF85
|
||||
:107E0000E6D021F0A8DF80FFFBCF9CDF08954091F2
|
||||
:107E1000EB015091EC014617510510F490E028C099
|
||||
:107E2000611511F0462FFACF8DDF40E0F7CFCFD0AC
|
||||
:107E300059F1853049F18FDF83FD3ACF8CDF82FD28
|
||||
:107E400020C080FF15C03091F3002091F20005C0E2
|
||||
:107E500081918093F10041502F5F411519F0283036
|
||||
:107E60003105B0F350E02830310509F451E06ADF04
|
||||
:107E70004115E9F65523D9F604C0A9D029F085307B
|
||||
:107E800019F069DF82FFF9CF13CFE5EEF1E0C4DD31
|
||||
:107E90008193ED3EE1F728DF5EDF83FF91C08091A3
|
||||
:107EA000E5019091E601913009F170F09330F1F025
|
||||
:107EB000953009F444C0963009F456C0983009F45E
|
||||
:107EC00060C0993059F767C0823841F78091E90165
|
||||
:107ED0008DD02091EB001092E90077D02295269565
|
||||
:107EE00021702093F1001092F10052C0882311F00C
|
||||
:107EF0008230A1F68F71823089F68091E701882364
|
||||
:107F0000D1F42091E901277049F22093E900809192
|
||||
:107F1000EB0080FF10C0933011F480E20BC080E1D1
|
||||
:107F200042DF81E0880F2A95E9F78093EA001092FA
|
||||
:107F3000EA0088E038DF1092E90047D02AC08823A1
|
||||
:107F400091F41091E70110680FB7F8943ED04DDF1F
|
||||
:107F500002DF80FFFDCF1093E300103883E009F4C7
|
||||
:107F600082E08EBB0FBF2CC08058823048F58091D4
|
||||
:107F7000E7019091E8011DDF603011F126D047DF65
|
||||
:107F80001FC08038E9F421D08091DD018093F10099
|
||||
:107F9000D9DE2BDF15C0882399F49091E701923048
|
||||
:107FA00078F49093DD0111D020DF8091DD018823EA
|
||||
:107FB00021F48091E30091E087FD94E09EBBDCDE3C
|
||||
:107FC000CADE83FF089580E2EEDE87EFBCCE8EB37B
|
||||
:107FD00088230895FCDF69F08091E9008F93109267
|
||||
:107FE000E900B9DE83FF01C050DF8F918770809375
|
||||
:047FF000E900089507
|
||||
:047FFC005BCEFBDC81
|
||||
:040000030000740085
|
||||
:00000001FF
|
|
@ -0,0 +1,196 @@
|
|||
:10740000E0E0F0E0859194910196089520E82093C2
|
||||
:1074100061001092610081E085BF82E085BF87EE48
|
||||
:1074200084B980EF85B91DB8769A10BA80EF81BB18
|
||||
:1074300084EF8AB984E68BB980E58CBD81E08DBD8F
|
||||
:10744000089584EA8BB98BEA5DD0109289008AEFA7
|
||||
:107450008093880082E080936F0083E080938100B6
|
||||
:107460005C9AE0E0F0E280E063D03197E1F75C986D
|
||||
:10747000E7E0F1E05CD0EA31E9F7ABE2B4E0EAE161
|
||||
:10748000F1E003E010E101900D921A95E1F7A059A7
|
||||
:10749000BF4F0A95B9F753D081E08093D7008AE4B3
|
||||
:1074A00082BF1092D8001092E2001092DA0010927F
|
||||
:1074B000E10080E808D019BC1EBA1092E00066D442
|
||||
:1074C00089E052D481E98093D8000895F201F999B6
|
||||
:1074D000FECFF2BDE1BD0895F9DFF89A80B508C08E
|
||||
:1074E000F5DF1FBA80BD0FB6F894FA9AF99A0FBE6D
|
||||
:1074F00031962F01089590E81BD08D939A95E1F76E
|
||||
:10750000089586E008D010C083E005D08F2F10D0FA
|
||||
:107510008E2F0ED080E05E9A5A980AC005D085E082
|
||||
:10752000FADF06D080FDFDCF5A9A5E9808958191CA
|
||||
:107530008EBD8DB5000087FFFCCF8EB50895E3EFBB
|
||||
:10754000F2E05C9A40E458E06081718198E08FEF4E
|
||||
:1075500060FF8F7070FF807FEBDF669576959A9560
|
||||
:10756000B1F7E058FF4F5A9579F7EE5FF3404A952F
|
||||
:1075700051F70895E1EEF1E08191908101969083B9
|
||||
:107580008293092E0AF400940091DF0106FB5EF05D
|
||||
:107590000096929111F493959083000C081620F4B4
|
||||
:1075A0002E9A2F9A2D9A0895937009F42E9891305F
|
||||
:1075B00009F42F98923009F42D980895E8EDF1E040
|
||||
:1075C00097819923EAF08FB18095807F669B8860D0
|
||||
:1075D0001C9B84609581891310C09681992381F446
|
||||
:1075E0009381891306C09481992396E959F080E02C
|
||||
:1075F0000AC083839095892304C085839AE096838B
|
||||
:1076000080E09FEF9483828308958091DF0186FF5D
|
||||
:10761000C7DF22243324E3EFF1E08091DA0187FD14
|
||||
:107620001BC084FD32C082FF0895C685CC23E1F3E0
|
||||
:10763000F894289A0088F785E02D66DFE0E0F0E016
|
||||
:10764000A3EFB1E058DFA3EFB1E034D3E058FF4F30
|
||||
:10765000CA95B1F769DFBFC18301282D6090FC0195
|
||||
:107660007090FB0146D019F48823C1F708953801C2
|
||||
:1076700088243FD0E1F58091FA01821709F4830153
|
||||
:107680006090FE017090FD01F4CF6090FE0170905B
|
||||
:10769000FD012FD081F48823C1F708959FEF85FD68
|
||||
:1076A00008C086FD05C083FF0895AADEE9F393C1F3
|
||||
:1076B00091E097FB890E662477248301222719D055
|
||||
:1076C000B1F4882389F38091FA0136F0881650F4DA
|
||||
:1076D000821730F0213003C0881520F4281710F4E9
|
||||
:1076E0008301282F6090FE017090FD01E8CF3801E2
|
||||
:1076F000822EF30109DFA3EFB1E0FDDEC3EFD1E09D
|
||||
:10770000E0E0F1E097E009908191081621F49A9564
|
||||
:10771000D1F70880801008CFC9E0EDDECA95E9F7FF
|
||||
:0877200003DF0DDF8827089547
|
||||
:1077280041524455424F5915003F75205FA055A15D
|
||||
:1077380000A200A87F81CFB121AF0000FFFFCFCF0B
|
||||
:10774800FFFFFFFFCFCFFFFF0000FE067E7E06FE95
|
||||
:1077580046565616FE0656461EFE3F61E9E3FFE30F
|
||||
:10776800EBE3FFE3EBE3FFE16B3F120110010200E3
|
||||
:1077780000084123370001000201000109023E0010
|
||||
:107788000201008032090400000102020100052400
|
||||
:1077980000100104240204052406000107058203E1
|
||||
:1077A8000800FF09040100020A000000070504029E
|
||||
:1077B80010000107058302100001040309042203D5
|
||||
:1077C800410072006400750069006E006F002000BF
|
||||
:1077D8004D006900630072006F0020002000200047
|
||||
:1077E8001803410072006400750069006E006F00A4
|
||||
:0877F80020004C004C0043008E
|
||||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F91A6C00F928F939F931F9233
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840004CC038C00F920FB68F939F93EF93FF9366
|
||||
:1078500088278093850080938400E8EDF1E097818C
|
||||
:10786000907261F490818917980B908309F45D9868
|
||||
:1078700091818917980B918309F4289896819150EA
|
||||
:1078800008F096839481915008F09483881639F417
|
||||
:107890007C9B05C0B5DD19F0C10101961C01FF916B
|
||||
:1078A000EF915CC080E189BD82E189BD09B400FE31
|
||||
:1078B000FDCF08958091D80080FF0FC08091DA003D
|
||||
:1078C0008E7F8093DA008091D90080FF04C0EADFC8
|
||||
:1078D00081E08EBB02C019BC1EBA8091E10080FF1E
|
||||
:1078E0000BC03CD280FF08C03CD28091D80080629F
|
||||
:1078F000EADD19BC85E08EBB8091E10084FF1AC0EF
|
||||
:107900002DD284FF17C0CEDF8091D8008F7DDBDDC4
|
||||
:107910008FEE2AD023D28F7E816026D28091E30120
|
||||
:10792000882331F48091E30087FD02C081E001C02B
|
||||
:1079300084E08EBB8091E10083FF0CC00FD283FFF7
|
||||
:1079400009C087EF11D082E08EBB1092E3010BD00B
|
||||
:1079500008D21CD26F914F910F901F909F918F91E1
|
||||
:107960000FBE0F9018958EEF0090E1000822009254
|
||||
:10797000E10008954BDDA0E0B1E0E8E2F7E7059013
|
||||
:107980000D92A83DE1F71D92BB30E9F701FD0FC054
|
||||
:1079900000FF03C07C9B0BC008C003FF08C06757F3
|
||||
:1079A000774729F04757574711F02ADDA1F449DD01
|
||||
:1079B00022243324310188249CDE789447D00AD3D2
|
||||
:1079C000FDDD6CDE811411F020DEF8CFD3DDC101C6
|
||||
:1079D000805B964398F3F89489EB94DD81E0809383
|
||||
:1079E000E00010926F0010928100109285001092BA
|
||||
:1079F000840081E085BF15BED3DD5D9828980C9486
|
||||
:107A00000000A7D107C054D102C0E1D239F0A3D100
|
||||
:107A100082FFFBCF85FFF7CF8091F1000895082EFC
|
||||
:107A200083E098D185FD07C08DD102C0D0D269F026
|
||||
:107A300092D180FFFBCF0092F1008091DF0185FBA6
|
||||
:107A400026F05D9A84E68093D801089582D182FF62
|
||||
:107A50004AC18091DF0185FB26F0289A84E6809355
|
||||
:107A6000D901CFDF182F853431F48CEB94E31C015E
|
||||
:107A70002DDD8DE008C1843511F4C3DFFACF8C34DD
|
||||
:107A8000C1F38035B1F3843721F484E4C8DF80E0AA
|
||||
:107A9000FAC0813611F489E5F6C0813429F4B1DFEA
|
||||
:107AA000582EAFDF482EE5CF803711F483E5EBC0C9
|
||||
:107AB000833539F4C0E0D1E08991B1DFC730E1F717
|
||||
:107AC000E3C0863521F481E3AADF84E3DCC0863796
|
||||
:107AD00061F481E3669B8E5F1C9B8F5FA0DF8FB19B
|
||||
:107AE000809582958F708F5BCEC08837A9F489DF2F
|
||||
:107AF0008093DF01289884FD289A5D9883FD5D9A24
|
||||
:107B00002E9A81FD2E982F9A82FD2F982D9A80FD16
|
||||
:107B10002D9887FD8824ADCF8A3649F48FE9FBDCA8
|
||||
:107B2000C3E006DD7CDFCA95E1F7FEDCADC083373C
|
||||
:107B300031F487E874DF85E972DF8EE1A4C0853611
|
||||
:107B400039F4E0E8F3E7C7D0E058F040E0F791CF30
|
||||
:107B5000823631F489E563DF80E061DF80E893C03D
|
||||
:107B6000823419F0873609F07AC02224332449DFA1
|
||||
:107B7000D82F47DFC82F45DF082F8354843008F003
|
||||
:107B800081C0063411F4440C551CF20110926F00B0
|
||||
:107B90001736A1F4033471F483E0B7DCC9DC3FDFAE
|
||||
:107BA0002197E1F7C1DC08C0063411F4859101C0CA
|
||||
:107BB00093DC35DF2197C2F72F0149C00334A1F4CC
|
||||
:107BC0008E2F8F7021F49DDC80E29FDCA7DC99DC96
|
||||
:107BD00082E09BDC16DFACDCCA95E1F79FDC3196D6
|
||||
:107BE000DA9571F72F0131C00634F1F49F01F437B3
|
||||
:107BF000D8F471D019C005DF063461F4C0FB46F03B
|
||||
:107C0000F43728F4182E81E087BFE89511243296C6
|
||||
:107C1000082E0AC0043439F4DF01B370AD50BD4FF3
|
||||
:107C20008D93319601C05CDC21972AF7043431F43E
|
||||
:107C30002F01F370FE2B49F482DC07C0063429F4CF
|
||||
:107C40002F01F901F43708F444D08DE0E8DE063462
|
||||
:107C500011F45694479482E080936F0015C08237E8
|
||||
:107C6000E1E049F08634E0E031F08E34E3E019F0F1
|
||||
:107C7000813531F4E2E0F0E089E087BF849103C010
|
||||
:107C80008B3111F08FE3CBDE83E0B1D15BD095FF78
|
||||
:107C900003C009C09CD139F15ED080FFFBCF52D028
|
||||
:107CA00002C095D101F157D080FFFBCF84E09FD176
|
||||
:107CB0008BE749C0F437B8F40ED090E40D901D90D6
|
||||
:107CC00081E087BFE89532969A95C1F71124E05874
|
||||
:107CD000F04085E001C083E001D081E187BFE895F5
|
||||
:107CE00007B600FCFDCF08959091EB018091EC0167
|
||||
:107CF000913231F0913A61F5813251F538D087C037
|
||||
:107D0000803231F534D063D1E9F08530D9F023D019
|
||||
:107D100083FD18C082FFF7CF04C07EDE81936150DF
|
||||
:107D200031F09091F3008091F200892BB1F7C0DF20
|
||||
:107D3000611549F704C04BD129F0853019F00BD0FB
|
||||
:107D400080FFF9CF8EE79091E80089238093E800C7
|
||||
:107D5000089584E04CD18091E80008958091E2007C
|
||||
:107D60000895FCDF8E7F80618093E20008952DD11D
|
||||
:107D7000E4EEF1E067E0089582E061EC09D083E091
|
||||
:107D800061E802D084E060E842E103C080E060E0A6
|
||||
:107D900042E02DD181E007D01092ED006093EC001D
|
||||
:107DA0004093ED0008959091EB00892B8093EB00B8
|
||||
:107DB000089560E0923039F0933041F0913099F4B9
|
||||
:107DC000EAE462E110C0ECE56EE30DC0813018F426
|
||||
:107DD000EAE964E008C019F4EEE962E204C0823026
|
||||
:107DE00011F4E0EC68E1F1E008958091EB01882363
|
||||
:107DF0004CF402C0ECD051F0AEDF82FFFBCF58CF85
|
||||
:107E0000E6D021F0A8DF80FFFBCF9CDF08954091F2
|
||||
:107E1000F1015091F2014617510510F490E028C08D
|
||||
:107E2000611511F0462FFACF8DDF40E0F7CFCFD0AC
|
||||
:107E300059F1853049F18FDF83FD3ACF8CDF82FD28
|
||||
:107E400020C080FF15C03091F3002091F20005C0E2
|
||||
:107E500081918093F10041502F5F411519F0283036
|
||||
:107E60003105B0F350E02830310509F451E06ADF04
|
||||
:107E70004115E9F65523D9F604C0A9D029F085307B
|
||||
:107E800019F069DF82FFF9CF13CFEBEEF1E0C4DD2B
|
||||
:107E90008193E33FE1F728DF5EDF83FF91C08091AC
|
||||
:107EA000EB019091EC01913009F170F09330F1F019
|
||||
:107EB000953009F444C0963009F456C0983009F45E
|
||||
:107EC00060C0993059F767C0823841F78091EF015F
|
||||
:107ED0008DD02091EB001092E90077D02295269565
|
||||
:107EE00021702093F1001092F10052C0882311F00C
|
||||
:107EF0008230A1F68F71823089F68091ED0188235E
|
||||
:107F0000D1F42091EF01277049F22093E90080918C
|
||||
:107F1000EB0080FF10C0933011F480E20BC080E1D1
|
||||
:107F200042DF81E0880F2A95E9F78093EA001092FA
|
||||
:107F3000EA0088E038DF1092E90047D02AC08823A1
|
||||
:107F400091F41091ED0110680FB7F8943ED04DDF19
|
||||
:107F500002DF80FFFDCF1093E300103883E009F4C7
|
||||
:107F600082E08EBB0FBF2CC08058823048F58091D4
|
||||
:107F7000ED019091EE011DDF603011F126D047DF59
|
||||
:107F80001FC08038E9F421D08091E3018093F10093
|
||||
:107F9000D9DE2BDF15C0882399F49091ED01923042
|
||||
:107FA00078F49093E30111D020DF8091E3018823DE
|
||||
:107FB00021F48091E30091E087FD94E09EBBDCDE3C
|
||||
:107FC000CADE83FF089580E2EEDE87EFBCCE8EB37B
|
||||
:107FD00088230895FCDF69F08091E9008F93109267
|
||||
:107FE000E900B9DE83FF01C050DF8F918770809375
|
||||
:047FF000E900089507
|
||||
:047FFC005BCEFBDC81
|
||||
:040000030000740085
|
||||
:00000001FF
|
|
@ -0,0 +1,196 @@
|
|||
:10740000E0E0F0E0859194910196089520E82093C2
|
||||
:1074100061001092610081E085BF82E085BF87EE48
|
||||
:1074200084B980EF85B91DB8769A10BA80EF81BB18
|
||||
:1074300084EF8AB984E68BB980E58CBD81E08DBD8F
|
||||
:10744000089584EA8BB98BEA5DD0109289008AEFA7
|
||||
:107450008093880082E080936F0083E080938100B6
|
||||
:107460005C9AE0E0F0E280E063D03197E1F75C986D
|
||||
:10747000E7E0F1E05CD0EA31E9F7ABE2B4E0EAE161
|
||||
:10748000F1E003E010E101900D921A95E1F7A059A7
|
||||
:10749000BF4F0A95B9F753D081E08093D7008AE4B3
|
||||
:1074A00082BF1092D8001092E2001092DA0010927F
|
||||
:1074B000E10080E808D019BC1EBA1092E00066D442
|
||||
:1074C00089E052D481E98093D8000895F201F999B6
|
||||
:1074D000FECFF2BDE1BD0895F9DFF89A80B508C08E
|
||||
:1074E000F5DF1FBA80BD0FB6F894FA9AF99A0FBE6D
|
||||
:1074F00031962F01089590E81BD08D939A95E1F76E
|
||||
:10750000089586E008D010C083E005D08F2F10D0FA
|
||||
:107510008E2F0ED080E05E9A5A980AC005D085E082
|
||||
:10752000FADF06D080FDFDCF5A9A5E9808958191CA
|
||||
:107530008EBD8DB5000087FFFCCF8EB50895E3EFBB
|
||||
:10754000F2E05C9A40E458E06081718198E08FEF4E
|
||||
:1075500060FF8F7070FF807FEBDF669576959A9560
|
||||
:10756000B1F7E058FF4F5A9579F7EE5FF3404A952F
|
||||
:1075700051F70895E1EEF1E08191908101969083B9
|
||||
:107580008293092E0AF400940091DF0106FB5EF05D
|
||||
:107590000096929111F493959083000C081620F4B4
|
||||
:1075A0002E9A2F9A2D9A0895937009F42E9891305F
|
||||
:1075B00009F42F98923009F42D980895E8EDF1E040
|
||||
:1075C00097819923EAF08FB18095807F669B8860D0
|
||||
:1075D0001C9B84609581891310C09681992381F446
|
||||
:1075E0009381891306C09481992396E959F080E02C
|
||||
:1075F0000AC083839095892304C085839AE096838B
|
||||
:1076000080E09FEF9483828308958091DF0186FF5D
|
||||
:10761000C7DF22243324E3EFF1E08091DA0187FD14
|
||||
:107620001BC084FD32C082FF0895C685CC23E1F3E0
|
||||
:10763000F894289A0088F785E02D66DFE0E0F0E016
|
||||
:10764000A3EFB1E058DFA3EFB1E034D3E058FF4F30
|
||||
:10765000CA95B1F769DFBFC18301282D6090FC0195
|
||||
:107660007090FB0146D019F48823C1F708953801C2
|
||||
:1076700088243FD0E1F58091FA01821709F4830153
|
||||
:107680006090FE017090FD01F4CF6090FE0170905B
|
||||
:10769000FD012FD081F48823C1F708959FEF85FD68
|
||||
:1076A00008C086FD05C083FF0895AADEE9F393C1F3
|
||||
:1076B00091E097FB890E662477248301222719D055
|
||||
:1076C000B1F4882389F38091FA0136F0881650F4DA
|
||||
:1076D000821730F0213003C0881520F4281710F4E9
|
||||
:1076E0008301282F6090FE017090FD01E8CF3801E2
|
||||
:1076F000822EF30109DFA3EFB1E0FDDEC3EFD1E09D
|
||||
:10770000E0E0F1E097E009908191081621F49A9564
|
||||
:10771000D1F70880801008CFC9E0EDDECA95E9F7FF
|
||||
:0877200003DF0DDF8827089547
|
||||
:1077280041524455424F5915003F75104FA055A17D
|
||||
:1077380000A200A87F81CFB121AF0000FFFFCFCF0B
|
||||
:10774800FFFFFFFFCFCFFFFF0000FE067E7E06FE95
|
||||
:1077580046565616FE0656461EFE3F61E9E3FFE30F
|
||||
:10776800EBE3FFE3EBE3FFE16B3F120110010200E3
|
||||
:1077780000084123370001000201000109023E0010
|
||||
:107788000201008032090400000102020100052400
|
||||
:1077980000100104240204052406000107058203E1
|
||||
:1077A8000800FF09040100020A000000070504029E
|
||||
:1077B80010000107058302100001040309042203D5
|
||||
:1077C800410072006400750069006E006F002000BF
|
||||
:1077D8004D006900630072006F0020002000200047
|
||||
:1077E8001803410072006400750069006E006F00A4
|
||||
:0877F80020004C004C0043008E
|
||||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F91A6C00F928F939F931F9233
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840004CC038C00F920FB68F939F93EF93FF9366
|
||||
:1078500088278093850080938400E8EDF1E097818C
|
||||
:10786000907261F490818917980B908309F45D9868
|
||||
:1078700091818917980B918309F4289896819150EA
|
||||
:1078800008F096839481915008F09483881639F417
|
||||
:107890007C9B05C0B5DD19F0C10101961C01FF916B
|
||||
:1078A000EF915CC080E189BD82E189BD09B400FE31
|
||||
:1078B000FDCF08958091D80080FF0FC08091DA003D
|
||||
:1078C0008E7F8093DA008091D90080FF04C0EADFC8
|
||||
:1078D00081E08EBB02C019BC1EBA8091E10080FF1E
|
||||
:1078E0000BC03CD280FF08C03CD28091D80080629F
|
||||
:1078F000EADD19BC85E08EBB8091E10084FF1AC0EF
|
||||
:107900002DD284FF17C0CEDF8091D8008F7DDBDDC4
|
||||
:107910008FEE2AD023D28F7E816026D28091E30120
|
||||
:10792000882331F48091E30087FD02C081E001C02B
|
||||
:1079300084E08EBB8091E10083FF0CC00FD283FFF7
|
||||
:1079400009C087EF11D082E08EBB1092E3010BD00B
|
||||
:1079500008D21CD26F914F910F901F909F918F91E1
|
||||
:107960000FBE0F9018958EEF0090E1000822009254
|
||||
:10797000E10008954BDDA0E0B1E0E8E2F7E7059013
|
||||
:107980000D92A83DE1F71D92BB30E9F701FD0FC054
|
||||
:1079900000FF03C07C9B0BC008C003FF08C06757F3
|
||||
:1079A000774729F04757574711F02ADDA1F449DD01
|
||||
:1079B00022243324310188249CDE789447D00AD3D2
|
||||
:1079C000FDDD6CDE811411F020DEF8CFD3DDC101C6
|
||||
:1079D000805B964398F3F89489EB94DD81E0809383
|
||||
:1079E000E00010926F0010928100109285001092BA
|
||||
:1079F000840081E085BF15BED3DD5D9828980C9486
|
||||
:107A00000000A7D107C054D102C0E1D239F0A3D100
|
||||
:107A100082FFFBCF85FFF7CF8091F1000895082EFC
|
||||
:107A200083E098D185FD07C08DD102C0D0D269F026
|
||||
:107A300092D180FFFBCF0092F1008091DF0185FBA6
|
||||
:107A400026F05D9A84E68093D801089582D182FF62
|
||||
:107A50004AC18091DF0185FB26F0289A84E6809355
|
||||
:107A6000D901CFDF182F853431F48CEB94E31C015E
|
||||
:107A70002DDD8DE008C1843511F4C3DFFACF8C34DD
|
||||
:107A8000C1F38035B1F3843721F484E4C8DF80E0AA
|
||||
:107A9000FAC0813611F489E5F6C0813429F4B1DFEA
|
||||
:107AA000582EAFDF482EE5CF803711F483E5EBC0C9
|
||||
:107AB000833539F4C0E0D1E08991B1DFC730E1F717
|
||||
:107AC000E3C0863521F481E3AADF84E3DCC0863796
|
||||
:107AD00061F481E3669B8E5F1C9B8F5FA0DF8FB19B
|
||||
:107AE000809582958F708F5BCEC08837A9F489DF2F
|
||||
:107AF0008093DF01289884FD289A5D9883FD5D9A24
|
||||
:107B00002E9A81FD2E982F9A82FD2F982D9A80FD16
|
||||
:107B10002D9887FD8824ADCF8A3649F48FE9FBDCA8
|
||||
:107B2000C3E006DD7CDFCA95E1F7FEDCADC083373C
|
||||
:107B300031F487E874DF85E972DF8EE1A4C0853611
|
||||
:107B400039F4E0E8F3E7C7D0E058F040E0F791CF30
|
||||
:107B5000823631F489E563DF80E061DF80E893C03D
|
||||
:107B6000823419F0873609F07AC02224332449DFA1
|
||||
:107B7000D82F47DFC82F45DF082F8354843008F003
|
||||
:107B800081C0063411F4440C551CF20110926F00B0
|
||||
:107B90001736A1F4033471F483E0B7DCC9DC3FDFAE
|
||||
:107BA0002197E1F7C1DC08C0063411F4859101C0CA
|
||||
:107BB00093DC35DF2197C2F72F0149C00334A1F4CC
|
||||
:107BC0008E2F8F7021F49DDC80E29FDCA7DC99DC96
|
||||
:107BD00082E09BDC16DFACDCCA95E1F79FDC3196D6
|
||||
:107BE000DA9571F72F0131C00634F1F49F01F437B3
|
||||
:107BF000D8F471D019C005DF063461F4C0FB46F03B
|
||||
:107C0000F43728F4182E81E087BFE89511243296C6
|
||||
:107C1000082E0AC0043439F4DF01B370AD50BD4FF3
|
||||
:107C20008D93319601C05CDC21972AF7043431F43E
|
||||
:107C30002F01F370FE2B49F482DC07C0063429F4CF
|
||||
:107C40002F01F901F43708F444D08DE0E8DE063462
|
||||
:107C500011F45694479482E080936F0015C08237E8
|
||||
:107C6000E1E049F08634E0E031F08E34E3E019F0F1
|
||||
:107C7000813531F4E2E0F0E089E087BF849103C010
|
||||
:107C80008B3111F08FE3CBDE83E0B1D15BD095FF78
|
||||
:107C900003C009C09CD139F15ED080FFFBCF52D028
|
||||
:107CA00002C095D101F157D080FFFBCF84E09FD176
|
||||
:107CB0008BE749C0F437B8F40ED090E40D901D90D6
|
||||
:107CC00081E087BFE89532969A95C1F71124E05874
|
||||
:107CD000F04085E001C083E001D081E187BFE895F5
|
||||
:107CE00007B600FCFDCF08959091EB018091EC0167
|
||||
:107CF000913231F0913A61F5813251F538D087C037
|
||||
:107D0000803231F534D063D1E9F08530D9F023D019
|
||||
:107D100083FD18C082FFF7CF04C07EDE81936150DF
|
||||
:107D200031F09091F3008091F200892BB1F7C0DF20
|
||||
:107D3000611549F704C04BD129F0853019F00BD0FB
|
||||
:107D400080FFF9CF8EE79091E80089238093E800C7
|
||||
:107D5000089584E04CD18091E80008958091E2007C
|
||||
:107D60000895FCDF8E7F80618093E20008952DD11D
|
||||
:107D7000E4EEF1E067E0089582E061EC09D083E091
|
||||
:107D800061E802D084E060E842E103C080E060E0A6
|
||||
:107D900042E02DD181E007D01092ED006093EC001D
|
||||
:107DA0004093ED0008959091EB00892B8093EB00B8
|
||||
:107DB000089560E0923039F0933041F0913099F4B9
|
||||
:107DC000EAE462E110C0ECE56EE30DC0813018F426
|
||||
:107DD000EAE964E008C019F4EEE962E204C0823026
|
||||
:107DE00011F4E0EC68E1F1E008958091EB01882363
|
||||
:107DF0004CF402C0ECD051F0AEDF82FFFBCF58CF85
|
||||
:107E0000E6D021F0A8DF80FFFBCF9CDF08954091F2
|
||||
:107E1000F1015091F2014617510510F490E028C08D
|
||||
:107E2000611511F0462FFACF8DDF40E0F7CFCFD0AC
|
||||
:107E300059F1853049F18FDF83FD3ACF8CDF82FD28
|
||||
:107E400020C080FF15C03091F3002091F20005C0E2
|
||||
:107E500081918093F10041502F5F411519F0283036
|
||||
:107E60003105B0F350E02830310509F451E06ADF04
|
||||
:107E70004115E9F65523D9F604C0A9D029F085307B
|
||||
:107E800019F069DF82FFF9CF13CFEBEEF1E0C4DD2B
|
||||
:107E90008193E33FE1F728DF5EDF83FF91C08091AC
|
||||
:107EA000EB019091EC01913009F170F09330F1F019
|
||||
:107EB000953009F444C0963009F456C0983009F45E
|
||||
:107EC00060C0993059F767C0823841F78091EF015F
|
||||
:107ED0008DD02091EB001092E90077D02295269565
|
||||
:107EE00021702093F1001092F10052C0882311F00C
|
||||
:107EF0008230A1F68F71823089F68091ED0188235E
|
||||
:107F0000D1F42091EF01277049F22093E90080918C
|
||||
:107F1000EB0080FF10C0933011F480E20BC080E1D1
|
||||
:107F200042DF81E0880F2A95E9F78093EA001092FA
|
||||
:107F3000EA0088E038DF1092E90047D02AC08823A1
|
||||
:107F400091F41091ED0110680FB7F8943ED04DDF19
|
||||
:107F500002DF80FFFDCF1093E300103883E009F4C7
|
||||
:107F600082E08EBB0FBF2CC08058823048F58091D4
|
||||
:107F7000ED019091EE011DDF603011F126D047DF59
|
||||
:107F80001FC08038E9F421D08091E3018093F10093
|
||||
:107F9000D9DE2BDF15C0882399F49091ED01923042
|
||||
:107FA00078F49093E30111D020DF8091E3018823DE
|
||||
:107FB00021F48091E30091E087FD94E09EBBDCDE3C
|
||||
:107FC000CADE83FF089580E2EEDE87EFBCCE8EB37B
|
||||
:107FD00088230895FCDF69F08091E9008F93109267
|
||||
:107FE000E900B9DE83FF01C050DF8F918770809375
|
||||
:047FF000E900089507
|
||||
:047FFC005BCEFBDC81
|
||||
:040000030000740085
|
||||
:00000001FF
|
|
@ -0,0 +1,196 @@
|
|||
:10740000E0E0F0E0859194910196089520E82093C2
|
||||
:1074100061001092610081E085BF82E085BF87EE48
|
||||
:1074200084B980EF85B91DB8769A10BA80EF81BB18
|
||||
:1074300084EF8AB984E68BB980E58CBD81E08DBD8F
|
||||
:10744000089584EA8BB98BEA5DD0109289008AEFA7
|
||||
:107450008093880082E080936F0083E080938100B6
|
||||
:107460005C9AE0E0F0E280E063D03197E1F75C986D
|
||||
:10747000E7E0F1E05CD0EA31E9F7ABE2B4E0EAE161
|
||||
:10748000F1E003E010E101900D921A95E1F7A059A7
|
||||
:10749000BF4F0A95B9F753D081E08093D7008AE4B3
|
||||
:1074A00082BF1092D8001092E2001092DA0010927F
|
||||
:1074B000E10080E808D019BC1EBA1092E00066D442
|
||||
:1074C00089E052D481E98093D8000895F201F999B6
|
||||
:1074D000FECFF2BDE1BD0895F9DFF89A80B508C08E
|
||||
:1074E000F5DF1FBA80BD0FB6F894FA9AF99A0FBE6D
|
||||
:1074F00031962F01089590E81BD08D939A95E1F76E
|
||||
:10750000089586E008D010C083E005D08F2F10D0FA
|
||||
:107510008E2F0ED080E05E9A5A980AC005D085E082
|
||||
:10752000FADF06D080FDFDCF5A9A5E9808958191CA
|
||||
:107530008EBD8DB5000087FFFCCF8EB50895E3E0CA
|
||||
:10754000F3E05C9A40E358E06081718198E08FEF4E
|
||||
:1075500060FF8F7070FF807FEBDF669576959A9560
|
||||
:10756000B1F7E058FF4F5A9579F7EE5FF3404A952F
|
||||
:1075700051F70895E1EEF1E08191908101969083B9
|
||||
:107580008293092E0AF400940091DF0106FB5EF05D
|
||||
:107590000096929111F493959083000C081620F4B4
|
||||
:1075A0002E9A2F9A2D9A0895937009F42E9891305F
|
||||
:1075B00009F42F98923009F42D980895E8EDF1E040
|
||||
:1075C00097819923EAF08FB18095807F669B8860D0
|
||||
:1075D0001C9B84609581891310C09681992381F446
|
||||
:1075E0009381891306C09481992396E959F080E02C
|
||||
:1075F0000AC083839095892304C085839AE096838B
|
||||
:1076000080E09FEF9483828308958091DF0186FF5D
|
||||
:10761000C7DF22243324E3EFF1E08091DA0187FD14
|
||||
:107620001BC084FD32C082FF0895C685CC23E1F3E0
|
||||
:10763000F894289A0088F785E02D66DFE0E0F0E016
|
||||
:10764000A3EFB1E058DFA3EFB1E034D3E058FF4F30
|
||||
:10765000CA95B1F769DFBFC18301282D6090FC0195
|
||||
:107660007090FB0146D019F48823C1F708953801C2
|
||||
:1076700088243FD0E1F58091FA01821709F4830153
|
||||
:107680006090FE017090FD01F4CF6090FE0170905B
|
||||
:10769000FD012FD081F48823C1F708959FEF85FD68
|
||||
:1076A00008C086FD05C083FF0895AADEE9F393C1F3
|
||||
:1076B00091E097FB890E662477248301222719D055
|
||||
:1076C000B1F4882389F38091FA0136F0881650F4DA
|
||||
:1076D000821730F0213003C0881520F4281710F4E9
|
||||
:1076E0008301282F6090FE017090FD01E8CF3801E2
|
||||
:1076F000822EF30109DFA3EFB1E0FDDEC3EFD1E09D
|
||||
:10770000E0E0F1E097E009908191081621F49A9564
|
||||
:10771000D1F70880801008CFC9E0EDDECA95E9F7FF
|
||||
:0877200003DF0DDF8827089547
|
||||
:1077280041524455424F5915103F75306FA055A12D
|
||||
:1077380000A200A87F81CFB121AF0000FFFFCFCF0B
|
||||
:10774800FFFFFFFFCFCFFFFF0000FE067E7E06FE95
|
||||
:1077580046565616FE0656461EFE3F61E9E3FFE30F
|
||||
:10776800EBE3FFE3EBE3FFE16B3F120110010200E3
|
||||
:1077780000084123370001000201000109023E0010
|
||||
:107788000201008032090400000102020100052400
|
||||
:1077980000100104240204052406000107058203E1
|
||||
:1077A8000800FF09040100020A000000070504029E
|
||||
:1077B80010000107058302100001040309042203D5
|
||||
:1077C800410072006400750069006E006F002000BF
|
||||
:1077D8004D006900630072006F0020002000200047
|
||||
:1077E8001803410072006400750069006E006F00A4
|
||||
:0877F80020004C004C0043008E
|
||||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F91A6C00F928F939F931F9233
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840004CC038C00F920FB68F939F93EF93FF9366
|
||||
:1078500088278093850080938400E8EDF1E097818C
|
||||
:10786000907261F490818917980B908309F45D9868
|
||||
:1078700091818917980B918309F4289896819150EA
|
||||
:1078800008F096839481915008F09483881639F417
|
||||
:107890007C9B05C0B5DD19F0C10101961C01FF916B
|
||||
:1078A000EF915CC080E189BD82E189BD09B400FE31
|
||||
:1078B000FDCF08958091D80080FF0FC08091DA003D
|
||||
:1078C0008E7F8093DA008091D90080FF04C0EADFC8
|
||||
:1078D00081E08EBB02C019BC1EBA8091E10080FF1E
|
||||
:1078E0000BC03CD280FF08C03CD28091D80080629F
|
||||
:1078F000EADD19BC85E08EBB8091E10084FF1AC0EF
|
||||
:107900002DD284FF17C0CEDF8091D8008F7DDBDDC4
|
||||
:107910008FEE2AD023D28F7E816026D28091E30120
|
||||
:10792000882331F48091E30087FD02C081E001C02B
|
||||
:1079300084E08EBB8091E10083FF0CC00FD283FFF7
|
||||
:1079400009C087EF11D082E08EBB1092E3010BD00B
|
||||
:1079500008D21CD26F914F910F901F909F918F91E1
|
||||
:107960000FBE0F9018958EEF0090E1000822009254
|
||||
:10797000E10008954BDDA0E0B1E0E8E2F7E7059013
|
||||
:107980000D92A83DE1F71D92BB30E9F701FD0FC054
|
||||
:1079900000FF03C07C9B0BC008C003FF08C06757F3
|
||||
:1079A000774729F04757574711F02ADDA1F449DD01
|
||||
:1079B00022243324310188249CDE789447D00AD3D2
|
||||
:1079C000FDDD6CDE811411F020DEF8CFD3DDC101C6
|
||||
:1079D000805B964398F3F89489EB94DD81E0809383
|
||||
:1079E000E00010926F0010928100109285001092BA
|
||||
:1079F000840081E085BF15BED3DD5D9828980C9486
|
||||
:107A00000000A7D107C054D102C0E1D239F0A3D100
|
||||
:107A100082FFFBCF85FFF7CF8091F1000895082EFC
|
||||
:107A200083E098D185FD07C08DD102C0D0D269F026
|
||||
:107A300092D180FFFBCF0092F1008091DF0185FBA6
|
||||
:107A400026F05D9A84E68093D801089582D182FF62
|
||||
:107A50004AC18091DF0185FB26F0289A84E6809355
|
||||
:107A6000D901CFDF182F853431F48CEB94E31C015E
|
||||
:107A70002DDD8DE008C1843511F4C3DFFACF8C34DD
|
||||
:107A8000C1F38035B1F3843721F484E4C8DF80E0AA
|
||||
:107A9000FAC0813611F489E5F6C0813429F4B1DFEA
|
||||
:107AA000582EAFDF482EE5CF803711F483E5EBC0C9
|
||||
:107AB000833539F4C0E0D1E08991B1DFC730E1F717
|
||||
:107AC000E3C0863521F481E3AADF84E3DCC0863796
|
||||
:107AD00061F481E3669B8E5F1C9B8F5FA0DF8FB19B
|
||||
:107AE000809582958F708F5BCEC08837A9F489DF2F
|
||||
:107AF0008093DF01289884FD289A5D9883FD5D9A24
|
||||
:107B00002E9A81FD2E982F9A82FD2F982D9A80FD16
|
||||
:107B10002D9887FD8824ADCF8A3649F48FE9FBDCA8
|
||||
:107B2000C3E006DD7CDFCA95E1F7FEDCADC083373C
|
||||
:107B300031F487E874DF85E972DF8EE1A4C0853611
|
||||
:107B400039F4E0E8F3E7C7D0E058F040E0F791CF30
|
||||
:107B5000823631F489E563DF80E061DF80E893C03D
|
||||
:107B6000823419F0873609F07AC02224332449DFA1
|
||||
:107B7000D82F47DFC82F45DF082F8354843008F003
|
||||
:107B800081C0063411F4440C551CF20110926F00B0
|
||||
:107B90001736A1F4033471F483E0B7DCC9DC3FDFAE
|
||||
:107BA0002197E1F7C1DC08C0063411F4859101C0CA
|
||||
:107BB00093DC35DF2197C2F72F0149C00334A1F4CC
|
||||
:107BC0008E2F8F7021F49DDC80E29FDCA7DC99DC96
|
||||
:107BD00082E09BDC16DFACDCCA95E1F79FDC3196D6
|
||||
:107BE000DA9571F72F0131C00634F1F49F01F437B3
|
||||
:107BF000D8F471D019C005DF063461F4C0FB46F03B
|
||||
:107C0000F43728F4182E81E087BFE89511243296C6
|
||||
:107C1000082E0AC0043439F4DF01B370AD50BD4FF3
|
||||
:107C20008D93319601C05CDC21972AF7043431F43E
|
||||
:107C30002F01F370FE2B49F482DC07C0063429F4CF
|
||||
:107C40002F01F901F43708F444D08DE0E8DE063462
|
||||
:107C500011F45694479482E080936F0015C08237E8
|
||||
:107C6000E1E049F08634E0E031F08E34E3E019F0F1
|
||||
:107C7000813531F4E2E0F0E089E087BF849103C010
|
||||
:107C80008B3111F08FE3CBDE83E0B1D15BD095FF78
|
||||
:107C900003C009C09CD139F15ED080FFFBCF52D028
|
||||
:107CA00002C095D101F157D080FFFBCF84E09FD176
|
||||
:107CB0008BE749C0F437B8F40ED090E40D901D90D6
|
||||
:107CC00081E087BFE89532969A95C1F71124E05874
|
||||
:107CD000F04085E001C083E001D081E187BFE895F5
|
||||
:107CE00007B600FCFDCF08959091EB018091EC0167
|
||||
:107CF000913231F0913A61F5813251F538D087C037
|
||||
:107D0000803231F534D063D1E9F08530D9F023D019
|
||||
:107D100083FD18C082FFF7CF04C07EDE81936150DF
|
||||
:107D200031F09091F3008091F200892BB1F7C0DF20
|
||||
:107D3000611549F704C04BD129F0853019F00BD0FB
|
||||
:107D400080FFF9CF8EE79091E80089238093E800C7
|
||||
:107D5000089584E04CD18091E80008958091E2007C
|
||||
:107D60000895FCDF8E7F80618093E20008952DD11D
|
||||
:107D7000E4EEF1E067E0089582E061EC09D083E091
|
||||
:107D800061E802D084E060E842E103C080E060E0A6
|
||||
:107D900042E02DD181E007D01092ED006093EC001D
|
||||
:107DA0004093ED0008959091EB00892B8093EB00B8
|
||||
:107DB000089560E0923039F0933041F0913099F4B9
|
||||
:107DC000EAE462E110C0ECE56EE30DC0813018F426
|
||||
:107DD000EAE964E008C019F4EEE962E204C0823026
|
||||
:107DE00011F4E0EC68E1F1E008958091EB01882363
|
||||
:107DF0004CF402C0ECD051F0AEDF82FFFBCF58CF85
|
||||
:107E0000E6D021F0A8DF80FFFBCF9CDF08954091F2
|
||||
:107E1000F1015091F2014617510510F490E028C08D
|
||||
:107E2000611511F0462FFACF8DDF40E0F7CFCFD0AC
|
||||
:107E300059F1853049F18FDF83FD3ACF8CDF82FD28
|
||||
:107E400020C080FF15C03091F3002091F20005C0E2
|
||||
:107E500081918093F10041502F5F411519F0283036
|
||||
:107E60003105B0F350E02830310509F451E06ADF04
|
||||
:107E70004115E9F65523D9F604C0A9D029F085307B
|
||||
:107E800019F069DF82FFF9CF13CFEBEEF1E0C4DD2B
|
||||
:107E90008193E33FE1F728DF5EDF83FF91C08091AC
|
||||
:107EA000EB019091EC01913009F170F09330F1F019
|
||||
:107EB000953009F444C0963009F456C0983009F45E
|
||||
:107EC00060C0993059F767C0823841F78091EF015F
|
||||
:107ED0008DD02091EB001092E90077D02295269565
|
||||
:107EE00021702093F1001092F10052C0882311F00C
|
||||
:107EF0008230A1F68F71823089F68091ED0188235E
|
||||
:107F0000D1F42091EF01277049F22093E90080918C
|
||||
:107F1000EB0080FF10C0933011F480E20BC080E1D1
|
||||
:107F200042DF81E0880F2A95E9F78093EA001092FA
|
||||
:107F3000EA0088E038DF1092E90047D02AC08823A1
|
||||
:107F400091F41091ED0110680FB7F8943ED04DDF19
|
||||
:107F500002DF80FFFDCF1093E300103883E009F4C7
|
||||
:107F600082E08EBB0FBF2CC08058823048F58091D4
|
||||
:107F7000ED019091EE011DDF603011F126D047DF59
|
||||
:107F80001FC08038E9F421D08091E3018093F10093
|
||||
:107F9000D9DE2BDF15C0882399F49091ED01923042
|
||||
:107FA00078F49093E30111D020DF8091E3018823DE
|
||||
:107FB00021F48091E30091E087FD94E09EBBDCDE3C
|
||||
:107FC000CADE83FF089580E2EEDE87EFBCCE8EB37B
|
||||
:107FD00088230895FCDF69F08091E9008F93109267
|
||||
:107FE000E900B9DE83FF01C050DF8F918770809375
|
||||
:047FF000E900089507
|
||||
:047FFC005BCEFBDC81
|
||||
:040000030000740085
|
||||
:00000001FF
|
|
@ -0,0 +1,194 @@
|
|||
:10740000E0E0F0E0859194910196089520E82093C2
|
||||
:1074100061001092610081E085BF82E085BF87EE48
|
||||
:1074200084B980EF85B91DB8769A10BA80EF81BB18
|
||||
:1074300084EF8AB984E68BB980E58CBD81E08DBD8F
|
||||
:10744000089584EA8BB98BEA55D0109289008AEFAF
|
||||
:107450008093880082E080936F0083E080938100B6
|
||||
:10746000E7E0F1E05CD0E331E9F7A5E2B4E0E3E185
|
||||
:10747000F1E003E010E101900D921A95E1F7A059B7
|
||||
:10748000BF4F0A95B9F753D081E08093D7008AE4C3
|
||||
:1074900082BF1092D8001092E2001092DA0010928F
|
||||
:1074A000E10080E808D019BC1EBA1092E0006ED44A
|
||||
:1074B00089E05AD481E98093D8000895F201F999BE
|
||||
:1074C000FECFF2BDE1BD0895F9DFF89A80B508C09E
|
||||
:1074D000F5DF1FBA80BD0FB6F894FA9AF99A0FBE7D
|
||||
:1074E00031962F01089590E81BD08D939A95E1F77E
|
||||
:1074F000089586E008D010C083E005D08F2F10D00B
|
||||
:107500008E2F0ED080E05E9A5A980AC005D085E092
|
||||
:10751000FADF06D080FDFDCF5A9A5E9808958191DA
|
||||
:107520008EBD8DB5000087FFFCCF8EB50895EDEEC2
|
||||
:10753000F2E090EB5C98892FF3DF80E1F1DF5C9A59
|
||||
:10754000EEDF8DEE8E278F77D9F79395983B91F7E5
|
||||
:107550000895EBEDF1E08191908101969083829303
|
||||
:10756000092E0AF400940091D90106FB5EF0009602
|
||||
:10757000929111F493959083000C081620F42E9AA2
|
||||
:107580002F9A2D9A0895937009F42E98913009F44A
|
||||
:107590002F98923009F42D980895E2EDF1E097814B
|
||||
:1075A0009923EAF08FB18095807F669B88601C9B51
|
||||
:1075B00084609581891310C09681992381F4938109
|
||||
:1075C000891306C09481992396E959F080E00AC096
|
||||
:1075D00083839095892304C085839AE0968380E015
|
||||
:1075E0009FEF9483828308958091D90186FFC7DF3E
|
||||
:1075F00022243324EDEEF1E08091D40187FD1BC0FD
|
||||
:1076000084FD32C082FF0895C685CC23E1F3F8944F
|
||||
:10761000289A0088F785E02D6FDFE0E0F0E0ADEE1E
|
||||
:10762000B1E061DFADEEB1E045D3E058FF4FCA9560
|
||||
:10763000B1F772DFD0C18301282D6090F601709000
|
||||
:10764000F50146D019F48823C1F70895380188243C
|
||||
:107650003FD0E1F58091F401821709F48301609035
|
||||
:10766000F8017090F701F4CF6090F8017090F70185
|
||||
:107670002FD081F48823C1F708959FEF85FD08C0BE
|
||||
:1076800086FD05C083FF0895BBDEE9F3A4C191E048
|
||||
:1076900097FB890E662477248301222719D0B1F441
|
||||
:1076A000882389F38091F40136F0881650F482170C
|
||||
:1076B00030F0213003C0881520F4281710F483011E
|
||||
:1076C000282F6090F8017090F701E8CF3801822EE2
|
||||
:1076D000F30112DFADEEB1E006DFCDEED1E0E0E088
|
||||
:1076E000F1E097E009908191081621F49A95D1F77D
|
||||
:1076F0000880801011CFC9E0F6DECA95E9F70CDFEB
|
||||
:0677000016DF8827089542
|
||||
:1077060041524455424F59D5F08D14A1C881CFD965
|
||||
:10771600F1AF000000FFFFCFCFFFFFFFFFCFCFFF8E
|
||||
:10772600FF0000FE067E7E06FE46565616FE0656EE
|
||||
:10773600461EFE3F61E9E3FFE3EBE3FFE3EBE3FF16
|
||||
:10774600E16B3F12011001020000084123370001DE
|
||||
:10775600000201000109023E000201008032090414
|
||||
:1077660000000102020100052400100104240204A5
|
||||
:107776000524060001070582030800FF090401002D
|
||||
:10778600020A000000070504021000010705830233
|
||||
:10779600100001040309042203410072006400750D
|
||||
:1077A6000069006E006F0020004D006900630072E2
|
||||
:1077B600006F0020002000200018034100720064C2
|
||||
:1077C60000750069006E006F0020004C004C0043FD
|
||||
:0277D6000000B1
|
||||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F91A6C00F928F939F931F9233
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840004CC038C00F920FB68F939F93EF93FF9366
|
||||
:1078500088278093850080938400E2EDF1E0978192
|
||||
:10786000907261F490818917980B908309F45D9868
|
||||
:1078700091818917980B918309F4289896819150EA
|
||||
:1078800008F096839481915008F09483881639F417
|
||||
:107890007C9B05C0B5DD19F0C10101961C01FF916B
|
||||
:1078A000EF915CC080E189BD82E189BD09B400FE31
|
||||
:1078B000FDCF08958091D80080FF0FC08091DA003D
|
||||
:1078C0008E7F8093DA008091D90080FF04C0EADFC8
|
||||
:1078D00081E08EBB02C019BC1EBA8091E10080FF1E
|
||||
:1078E0000BC03CD280FF08C03CD28091D80080629F
|
||||
:1078F000E2DD19BC85E08EBB8091E10084FF1AC0F7
|
||||
:107900002DD284FF17C0CEDF8091D8008F7DD3DDCC
|
||||
:107910008FEE2AD023D28F7E816026D28091DD0126
|
||||
:10792000882331F48091E30087FD02C081E001C02B
|
||||
:1079300084E08EBB8091E10083FF0CC00FD283FFF7
|
||||
:1079400009C087EF11D082E08EBB1092DD010BD011
|
||||
:1079500008D21CD26F914F910F901F909F918F91E1
|
||||
:107960000FBE0F9018958EEF0090E1000822009254
|
||||
:10797000E10008954BDDA0E0B1E0E6E0F7E7059017
|
||||
:107980000D92A13DE1F71D92BB30E9F701FD0FC05B
|
||||
:1079900000FF03C07C9B0BC008C003FF08C06757F3
|
||||
:1079A000774729F04757574711F02ADDA1F449DD01
|
||||
:1079B00022243324310188248BDE789447D00AD3E3
|
||||
:1079C000ECDD5BDE811411F00FDEF8CFC2DDC1010A
|
||||
:1079D000805B964398F3F89489EB8CDD81E080938B
|
||||
:1079E000E00010926F0010928100109285001092BA
|
||||
:1079F000840081E085BF15BEC2DD5D9828980C9497
|
||||
:107A00000000A7D107C054D102C0E1D239F0A3D100
|
||||
:107A100082FFFBCF85FFF7CF8091F1000895082EFC
|
||||
:107A200083E098D185FD07C08DD102C0D0D269F026
|
||||
:107A300092D180FFFBCF0092F1008091D90185FBAC
|
||||
:107A400026F05D9A84E68093D201089582D182FF68
|
||||
:107A50004AC18091D90185FB26F0289A84E680935B
|
||||
:107A6000D301CFDF182F853431F48CEB94E31C0164
|
||||
:107A700025DD8DE008C1843511F4C3DFFACF8C34E5
|
||||
:107A8000C1F38035B1F3843721F484E4C8DF80E0AA
|
||||
:107A9000FAC0813611F489E5F6C0813429F4B1DFEA
|
||||
:107AA000582EAFDF482EE5CF803711F483E5EBC0C9
|
||||
:107AB000833539F4C0E0D1E08991B1DFC730E1F717
|
||||
:107AC000E3C0863521F481E3AADF84E3DCC0863796
|
||||
:107AD00061F481E3669B8E5F1C9B8F5FA0DF8FB19B
|
||||
:107AE000809582958F708F5BCEC08837A9F489DF2F
|
||||
:107AF0008093D901289884FD289A5D9883FD5D9A2A
|
||||
:107B00002E9A81FD2E982F9A82FD2F982D9A80FD16
|
||||
:107B10002D9887FD8824ADCF8A3649F48FE9F3DCB0
|
||||
:107B2000C3E0FEDC7CDFCA95E1F7F6DCADC083374D
|
||||
:107B300031F487E874DF85E972DF8EE1A4C0853611
|
||||
:107B400039F4E0E8F3E7C7D0E058F040E0F791CF30
|
||||
:107B5000823631F489E563DF80E061DF80E893C03D
|
||||
:107B6000823419F0873609F07AC02224332449DFA1
|
||||
:107B7000D82F47DFC82F45DF082F8354843008F003
|
||||
:107B800081C0063411F4440C551CF20110926F00B0
|
||||
:107B90001736A1F4033471F483E0AFDCC1DC3FDFBE
|
||||
:107BA0002197E1F7B9DC08C0063411F4859101C0D2
|
||||
:107BB0008BDC35DF2197C2F72F0149C00334A1F4D4
|
||||
:107BC0008E2F8F7021F495DC80E297DC9FDC91DCB6
|
||||
:107BD00082E093DC16DFA4DCCA95E1F797DC3196EE
|
||||
:107BE000DA9571F72F0131C00634F1F49F01F437B3
|
||||
:107BF000D8F471D019C005DF063461F4C0FB46F03B
|
||||
:107C0000F43728F4182E81E087BFE89511243296C6
|
||||
:107C1000082E0AC0043439F4DF01B370A351BD4FFC
|
||||
:107C20008D93319601C054DC21972AF7043431F446
|
||||
:107C30002F01F370FE2B49F47ADC07C0063429F4D7
|
||||
:107C40002F01F901F43708F444D08DE0E8DE063462
|
||||
:107C500011F45694479482E080936F0015C08237E8
|
||||
:107C6000E1E049F08634E0E031F08E34E3E019F0F1
|
||||
:107C7000813531F4E2E0F0E089E087BF849103C010
|
||||
:107C80008B3111F08FE3CBDE83E0B1D15BD095FF78
|
||||
:107C900003C009C09CD139F15ED080FFFBCF52D028
|
||||
:107CA00002C095D101F157D080FFFBCF84E09FD176
|
||||
:107CB0008BE749C0F437B8F40ED090E40D901D90D6
|
||||
:107CC00081E087BFE89532969A95C1F71124E05874
|
||||
:107CD000F04085E001C083E001D081E187BFE895F5
|
||||
:107CE00007B600FCFDCF08959091E5018091E60173
|
||||
:107CF000913231F0913A61F5813251F538D087C037
|
||||
:107D0000803231F534D063D1E9F08530D9F023D019
|
||||
:107D100083FD18C082FFF7CF04C07EDE81936150DF
|
||||
:107D200031F09091F3008091F200892BB1F7C0DF20
|
||||
:107D3000611549F704C04BD129F0853019F00BD0FB
|
||||
:107D400080FFF9CF8EE79091E80089238093E800C7
|
||||
:107D5000089584E04CD18091E80008958091E2007C
|
||||
:107D60000895FCDF8E7F80618093E20008952DD11D
|
||||
:107D7000EEEDF1E067E0089582E061EC09D083E088
|
||||
:107D800061E802D084E060E842E103C080E060E0A6
|
||||
:107D900042E02DD181E007D01092ED006093EC001D
|
||||
:107DA0004093ED0008959091EB00892B8093EB00B8
|
||||
:107DB000089560E0923039F0933041F0913099F4B9
|
||||
:107DC000E3E462E110C0E5E56EE30DC0813018F434
|
||||
:107DD000E3E964E008C019F4E7E962E204C0823034
|
||||
:107DE00011F4E9EB68E1F1E008958091E501882361
|
||||
:107DF0004CF402C0ECD051F0AEDF82FFFBCF58CF85
|
||||
:107E0000E6D021F0A8DF80FFFBCF9CDF08954091F2
|
||||
:107E1000EB015091EC014617510510F490E028C099
|
||||
:107E2000611511F0462FFACF8DDF40E0F7CFCFD0AC
|
||||
:107E300059F1853049F18FDF83FD3ACF8CDF82FD28
|
||||
:107E400020C080FF15C03091F3002091F20005C0E2
|
||||
:107E500081918093F10041502F5F411519F0283036
|
||||
:107E60003105B0F350E02830310509F451E06ADF04
|
||||
:107E70004115E9F65523D9F604C0A9D029F085307B
|
||||
:107E800019F069DF82FFF9CF13CFE5EEF1E0C4DD31
|
||||
:107E90008193ED3EE1F728DF5EDF83FF91C08091A3
|
||||
:107EA000E5019091E601913009F170F09330F1F025
|
||||
:107EB000953009F444C0963009F456C0983009F45E
|
||||
:107EC00060C0993059F767C0823841F78091E90165
|
||||
:107ED0008DD02091EB001092E90077D02295269565
|
||||
:107EE00021702093F1001092F10052C0882311F00C
|
||||
:107EF0008230A1F68F71823089F68091E701882364
|
||||
:107F0000D1F42091E901277049F22093E900809192
|
||||
:107F1000EB0080FF10C0933011F480E20BC080E1D1
|
||||
:107F200042DF81E0880F2A95E9F78093EA001092FA
|
||||
:107F3000EA0088E038DF1092E90047D02AC08823A1
|
||||
:107F400091F41091E70110680FB7F8943ED04DDF1F
|
||||
:107F500002DF80FFFDCF1093E300103883E009F4C7
|
||||
:107F600082E08EBB0FBF2CC08058823048F58091D4
|
||||
:107F7000E7019091E8011DDF603011F126D047DF65
|
||||
:107F80001FC08038E9F421D08091DD018093F10099
|
||||
:107F9000D9DE2BDF15C0882399F49091E701923048
|
||||
:107FA00078F49093DD0111D020DF8091DD018823EA
|
||||
:107FB00021F48091E30091E087FD94E09EBBDCDE3C
|
||||
:107FC000CADE83FF089580E2EEDE87EFBCCE8EB37B
|
||||
:107FD00088230895FCDF69F08091E9008F93109267
|
||||
:107FE000E900B9DE83FF01C050DF8F918770809375
|
||||
:047FF000E900089507
|
||||
:047FFC005BCEFBDC81
|
||||
:040000030000740085
|
||||
:00000001FF
|
|
@ -0,0 +1,194 @@
|
|||
:10740000E0E0F0E0859194910196089520E82093C2
|
||||
:1074100061001092610081E085BF82E085BF87EE48
|
||||
:1074200084B981EF85B91DB8769A10BA80EF81BB17
|
||||
:107430008FE38AB98CE28BB980E58CBD81E08DBD8C
|
||||
:10744000089586E28BB98BEA55D0109289008AEFB5
|
||||
:107450008093880082E080936F0083E080938100B6
|
||||
:10746000E7E0F1E05CD0E331E9F7A5E2B4E0E3E185
|
||||
:10747000F1E003E010E101900D921A95E1F7A059B7
|
||||
:10748000BF4F0A95B9F753D081E08093D7008AE4C3
|
||||
:1074900082BF1092D8001092E2001092DA0010928F
|
||||
:1074A000E10080E808D019BC1EBA1092E0006ED44A
|
||||
:1074B00089E05AD481E98093D8000895F201F999BE
|
||||
:1074C000FECFF2BDE1BD0895F9DFF89A80B508C09E
|
||||
:1074D000F5DF1FBA80BD0FB6F894FA9AF99A0FBE7D
|
||||
:1074E00031962F01089590E81BD08D939A95E1F77E
|
||||
:1074F000089586E008D010C083E005D08F2F10D00B
|
||||
:107500008E2F0ED080E05B9A5A980AC005D085E095
|
||||
:10751000FADF06D080FDFDCF5A9A5B9808958191DD
|
||||
:107520008EBD8DB5000087FFFCCF8EB50895EDEEC2
|
||||
:10753000F2E090EB5C98892FF3DF80E1F1DF5C9A59
|
||||
:10754000EEDF8DEE8E278F77D9F79395983B91F7E5
|
||||
:107550000895EBEDF1E08191908101969083829303
|
||||
:10756000092E0AF400940091D90106FB5EF0009602
|
||||
:10757000929111F493959083000C081620F42E9AA2
|
||||
:10758000589A2D9A0895937009F42E98913009F421
|
||||
:107590005898923009F42D980895E2EDF1E0978122
|
||||
:1075A0009923EAF08FB18095807F669B88601C9B51
|
||||
:1075B00084609581891310C09681992381F4938109
|
||||
:1075C000891306C09481992396E959F080E00AC096
|
||||
:1075D00083839095892304C085839AE0968380E015
|
||||
:1075E0009FEF9483828308958091D90186FFC7DF3E
|
||||
:1075F00022243324EDEEF1E08091D40187FD1BC0FD
|
||||
:1076000084FD32C082FF0895C685CC23E1F3F8944F
|
||||
:1076100028980088F785E02D6FDFE0E0F0E0ADEE20
|
||||
:10762000B1E061DFADEEB1E045D3E058FF4FCA9560
|
||||
:10763000B1F772DFD0C18301282D6090F601709000
|
||||
:10764000F50146D019F48823C1F70895380188243C
|
||||
:107650003FD0E1F58091F401821709F48301609035
|
||||
:10766000F8017090F701F4CF6090F8017090F70185
|
||||
:107670002FD081F48823C1F708959FEF85FD08C0BE
|
||||
:1076800086FD05C083FF0895BBDEE9F3A4C191E048
|
||||
:1076900097FB890E662477248301222719D0B1F441
|
||||
:1076A000882389F38091F40136F0881650F482170C
|
||||
:1076B00030F0213003C0881520F4281710F483011E
|
||||
:1076C000282F6090F8017090F701E8CF3801822EE2
|
||||
:1076D000F30112DFADEEB1E006DFCDEED1E0E0E088
|
||||
:1076E000F1E097E009908191081621F49A95D1F77D
|
||||
:1076F0000880801011CFC9E0F6DECA95E9F70CDFEB
|
||||
:0677000016DF8827089542
|
||||
:1077060041524455424F59D5F08D14A1C881CFD965
|
||||
:10771600F1AF020000FFFFCFCFFFFFFFFFCFCFFF8C
|
||||
:10772600FF0000FE067E7E06FE46565616FE0656EE
|
||||
:10773600461EFE3F61E9E3FFE3EBE3FFE3EBE3FF16
|
||||
:10774600E16B3F12011001020000084123360001DF
|
||||
:10775600000201000109023E000201008032090414
|
||||
:1077660000000102020100052400100104240204A5
|
||||
:107776000524060001070582030800FF090401002D
|
||||
:10778600020A000000070504021000010705830233
|
||||
:10779600100001040309042203410072006400750D
|
||||
:1077A6000069006E006F0020004C0065006F006EDF
|
||||
:1077B600006100720064006F0018034100720064EB
|
||||
:1077C60000750069006E006F0020004C004C0043FD
|
||||
:0277D6000000B1
|
||||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F91A6C00F928F939F931F9233
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840004CC038C00F920FB68F939F93EF93FF9366
|
||||
:1078500088278093850080938400E2EDF1E0978192
|
||||
:10786000907261F490818917980B908309F45D9A66
|
||||
:1078700091818917980B918309F4289A96819150E8
|
||||
:1078800008F096839481915008F09483881639F417
|
||||
:107890007C9B05C0B5DD19F0C10101961C01FF916B
|
||||
:1078A000EF915CC080E189BD82E189BD09B400FE31
|
||||
:1078B000FDCF08958091D80080FF0FC08091DA003D
|
||||
:1078C0008E7F8093DA008091D90080FF04C0EADFC8
|
||||
:1078D00081E08EBB02C019BC1EBA8091E10080FF1E
|
||||
:1078E0000BC03CD280FF08C03CD28091D80080629F
|
||||
:1078F000E2DD19BC85E08EBB8091E10084FF1AC0F7
|
||||
:107900002DD284FF17C0CEDF8091D8008F7DD3DDCC
|
||||
:107910008FEE2AD023D28F7E816026D28091DD0126
|
||||
:10792000882331F48091E30087FD02C081E001C02B
|
||||
:1079300084E08EBB8091E10083FF0CC00FD283FFF7
|
||||
:1079400009C087EF11D082E08EBB1092DD010BD011
|
||||
:1079500008D21CD26F914F910F901F909F918F91E1
|
||||
:107960000FBE0F9018958EEF0090E1000822009254
|
||||
:10797000E10008954BDDA0E0B1E0E6E0F7E7059017
|
||||
:107980000D92A13DE1F71D92BB30E9F701FD0FC05B
|
||||
:1079900000FF03C07C9B0BC008C003FF08C06757F3
|
||||
:1079A000774729F04757574711F02ADDA1F449DD01
|
||||
:1079B00022243324310188248BDE789447D00AD3E3
|
||||
:1079C000ECDD5BDE811411F00FDEF8CFC2DDC1010A
|
||||
:1079D000805B964398F3F89489EB8CDD81E080938B
|
||||
:1079E000E00010926F0010928100109285001092BA
|
||||
:1079F000840081E085BF15BEC2DD5D9A289A0C9493
|
||||
:107A00000000A7D107C054D102C0E1D239F0A3D100
|
||||
:107A100082FFFBCF85FFF7CF8091F1000895082EFC
|
||||
:107A200083E098D185FD07C08DD102C0D0D269F026
|
||||
:107A300092D180FFFBCF0092F1008091D90185FBAC
|
||||
:107A400026F05D9884E68093D201089582D182FF6A
|
||||
:107A50004AC18091D90185FB26F0289884E680935D
|
||||
:107A6000D301CFDF182F853431F48CEB94E31C0164
|
||||
:107A700025DD8DE008C1843511F4C3DFFACF8C34E5
|
||||
:107A8000C1F38035B1F3843721F484E4C8DF80E0AA
|
||||
:107A9000FAC0813611F489E5F6C0813429F4B1DFEA
|
||||
:107AA000582EAFDF482EE5CF803711F483E5EBC0C9
|
||||
:107AB000833539F4C0E0D1E08991B1DFC730E1F717
|
||||
:107AC000E3C0863521F481E3AADF84E3DCC0863796
|
||||
:107AD00061F481E3669B8E5F1C9B8F5FA0DF8FB19B
|
||||
:107AE000809582958F708F5BCEC08837A9F489DF2F
|
||||
:107AF0008093D901289A84FD28985D9A83FD5D982A
|
||||
:107B00002E9A81FD2E98589A82FD58982D9A80FDC4
|
||||
:107B10002D9887FD8824ADCF8A3649F48FE9F3DCB0
|
||||
:107B2000C3E0FEDC7CDFCA95E1F7F6DCADC083374D
|
||||
:107B300031F487E874DF85E972DF8EE1A4C0853611
|
||||
:107B400039F4E0E8F3E7C7D0E058F040E0F791CF30
|
||||
:107B5000823631F489E563DF80E061DF80E893C03D
|
||||
:107B6000823419F0873609F07AC02224332449DFA1
|
||||
:107B7000D82F47DFC82F45DF082F8354843008F003
|
||||
:107B800081C0063411F4440C551CF20110926F00B0
|
||||
:107B90001736A1F4033471F483E0AFDCC1DC3FDFBE
|
||||
:107BA0002197E1F7B9DC08C0063411F4859101C0D2
|
||||
:107BB0008BDC35DF2197C2F72F0149C00334A1F4D4
|
||||
:107BC0008E2F8F7021F495DC80E297DC9FDC91DCB6
|
||||
:107BD00082E093DC16DFA4DCCA95E1F797DC3196EE
|
||||
:107BE000DA9571F72F0131C00634F1F49F01F437B3
|
||||
:107BF000D8F471D019C005DF063461F4C0FB46F03B
|
||||
:107C0000F43728F4182E81E087BFE89511243296C6
|
||||
:107C1000082E0AC0043439F4DF01B370A351BD4FFC
|
||||
:107C20008D93319601C054DC21972AF7043431F446
|
||||
:107C30002F01F370FE2B49F47ADC07C0063429F4D7
|
||||
:107C40002F01F901F43708F444D08DE0E8DE063462
|
||||
:107C500011F45694479482E080936F0015C08237E8
|
||||
:107C6000E1E049F08634E0E031F08E34E3E019F0F1
|
||||
:107C7000813531F4E2E0F0E089E087BF849103C010
|
||||
:107C80008B3111F08FE3CBDE83E0B1D15BD095FF78
|
||||
:107C900003C009C09CD139F15ED080FFFBCF52D028
|
||||
:107CA00002C095D101F157D080FFFBCF84E09FD176
|
||||
:107CB0008BE749C0F437B8F40ED090E40D901D90D6
|
||||
:107CC00081E087BFE89532969A95C1F71124E05874
|
||||
:107CD000F04085E001C083E001D081E187BFE895F5
|
||||
:107CE00007B600FCFDCF08959091E5018091E60173
|
||||
:107CF000913231F0913A61F5813251F538D087C037
|
||||
:107D0000803231F534D063D1E9F08530D9F023D019
|
||||
:107D100083FD18C082FFF7CF04C07EDE81936150DF
|
||||
:107D200031F09091F3008091F200892BB1F7C0DF20
|
||||
:107D3000611549F704C04BD129F0853019F00BD0FB
|
||||
:107D400080FFF9CF8EE79091E80089238093E800C7
|
||||
:107D5000089584E04CD18091E80008958091E2007C
|
||||
:107D60000895FCDF8E7F80618093E20008952DD11D
|
||||
:107D7000EEEDF1E067E0089582E061EC09D083E088
|
||||
:107D800061E802D084E060E842E103C080E060E0A6
|
||||
:107D900042E02DD181E007D01092ED006093EC001D
|
||||
:107DA0004093ED0008959091EB00892B8093EB00B8
|
||||
:107DB000089560E0923039F0933041F0913099F4B9
|
||||
:107DC000E3E462E110C0E5E56EE30DC0813018F434
|
||||
:107DD000E3E964E008C019F4E7E962E204C0823034
|
||||
:107DE00011F4E9EB68E1F1E008958091E501882361
|
||||
:107DF0004CF402C0ECD051F0AEDF82FFFBCF58CF85
|
||||
:107E0000E6D021F0A8DF80FFFBCF9CDF08954091F2
|
||||
:107E1000EB015091EC014617510510F490E028C099
|
||||
:107E2000611511F0462FFACF8DDF40E0F7CFCFD0AC
|
||||
:107E300059F1853049F18FDF83FD3ACF8CDF82FD28
|
||||
:107E400020C080FF15C03091F3002091F20005C0E2
|
||||
:107E500081918093F10041502F5F411519F0283036
|
||||
:107E60003105B0F350E02830310509F451E06ADF04
|
||||
:107E70004115E9F65523D9F604C0A9D029F085307B
|
||||
:107E800019F069DF82FFF9CF13CFE5EEF1E0C4DD31
|
||||
:107E90008193ED3EE1F728DF5EDF83FF91C08091A3
|
||||
:107EA000E5019091E601913009F170F09330F1F025
|
||||
:107EB000953009F444C0963009F456C0983009F45E
|
||||
:107EC00060C0993059F767C0823841F78091E90165
|
||||
:107ED0008DD02091EB001092E90077D02295269565
|
||||
:107EE00021702093F1001092F10052C0882311F00C
|
||||
:107EF0008230A1F68F71823089F68091E701882364
|
||||
:107F0000D1F42091E901277049F22093E900809192
|
||||
:107F1000EB0080FF10C0933011F480E20BC080E1D1
|
||||
:107F200042DF81E0880F2A95E9F78093EA001092FA
|
||||
:107F3000EA0088E038DF1092E90047D02AC08823A1
|
||||
:107F400091F41091E70110680FB7F8943ED04DDF1F
|
||||
:107F500002DF80FFFDCF1093E300103883E009F4C7
|
||||
:107F600082E08EBB0FBF2CC08058823048F58091D4
|
||||
:107F7000E7019091E8011DDF603011F126D047DF65
|
||||
:107F80001FC08038E9F421D08091DD018093F10099
|
||||
:107F9000D9DE2BDF15C0882399F49091E701923048
|
||||
:107FA00078F49093DD0111D020DF8091DD018823EA
|
||||
:107FB00021F48091E30091E087FD94E09EBBDCDE3C
|
||||
:107FC000CADE83FF089580E2EEDE87EFBCCE8EB37B
|
||||
:107FD00088230895FCDF69F08091E9008F93109267
|
||||
:107FE000E900B9DE83FF01C050DF8F918770809375
|
||||
:047FF000E900089507
|
||||
:047FFC005BCEFBDC81
|
||||
:040000030000740085
|
||||
:00000001FF
|
|
@ -0,0 +1,196 @@
|
|||
:10740000E0E0F0E0859194910196089520E82093C2
|
||||
:1074100061001092610081E085BF82E085BF87EE48
|
||||
:1074200084B981EF85B91DB8769A10BA80EF81BB17
|
||||
:107430008FE38AB98CE28BB980E58CBD81E08DBD8C
|
||||
:10744000089586E28BB98BEA5DD0109289008AEFAD
|
||||
:107450008093880082E080936F0083E080938100B6
|
||||
:107460005C9AE0E0F0E280E063D03197E1F75C986D
|
||||
:10747000E7E0F1E05CD0EA31E9F7ABE2B4E0EAE161
|
||||
:10748000F1E003E010E101900D921A95E1F7A059A7
|
||||
:10749000BF4F0A95B9F753D081E08093D7008AE4B3
|
||||
:1074A00082BF1092D8001092E2001092DA0010927F
|
||||
:1074B000E10080E808D019BC1EBA1092E00066D442
|
||||
:1074C00089E052D481E98093D8000895F201F999B6
|
||||
:1074D000FECFF2BDE1BD0895F9DFF89A80B508C08E
|
||||
:1074E000F5DF1FBA80BD0FB6F894FA9AF99A0FBE6D
|
||||
:1074F00031962F01089590E81BD08D939A95E1F76E
|
||||
:10750000089586E008D010C083E005D08F2F10D0FA
|
||||
:107510008E2F0ED080E05B9A5A980AC005D085E085
|
||||
:10752000FADF06D080FDFDCF5A9A5B9808958191CD
|
||||
:107530008EBD8DB5000087FFFCCF8EB50895E3EFBB
|
||||
:10754000F2E05C9A40E458E06081718198E08FEF4E
|
||||
:1075500060FF8F7070FF807FEBDF669576959A9560
|
||||
:10756000B1F7E058FF4F5A9579F7EE5FF3404A952F
|
||||
:1075700051F70895E1EEF1E08191908101969083B9
|
||||
:107580008293092E0AF400940091DF0106FB5EF05D
|
||||
:107590000096929111F493959083000C081620F4B4
|
||||
:1075A0002E9A589A2D9A0895937009F42E98913036
|
||||
:1075B00009F45898923009F42D980895E8EDF1E017
|
||||
:1075C00097819923EAF08FB18095807F669B8860D0
|
||||
:1075D0001C9B84609581891310C09681992381F446
|
||||
:1075E0009381891306C09481992396E959F080E02C
|
||||
:1075F0000AC083839095892304C085839AE096838B
|
||||
:1076000080E09FEF9483828308958091DF0186FF5D
|
||||
:10761000C7DF22243324E3EFF1E08091DA0187FD14
|
||||
:107620001BC084FD32C082FF0895C685CC23E1F3E0
|
||||
:10763000F89428980088F785E02D66DFE0E0F0E018
|
||||
:10764000A3EFB1E058DFA3EFB1E034D3E058FF4F30
|
||||
:10765000CA95B1F769DFBFC18301282D6090FC0195
|
||||
:107660007090FB0146D019F48823C1F708953801C2
|
||||
:1076700088243FD0E1F58091FA01821709F4830153
|
||||
:107680006090FE017090FD01F4CF6090FE0170905B
|
||||
:10769000FD012FD081F48823C1F708959FEF85FD68
|
||||
:1076A00008C086FD05C083FF0895AADEE9F393C1F3
|
||||
:1076B00091E097FB890E662477248301222719D055
|
||||
:1076C000B1F4882389F38091FA0136F0881650F4DA
|
||||
:1076D000821730F0213003C0881520F4281710F4E9
|
||||
:1076E0008301282F6090FE017090FD01E8CF3801E2
|
||||
:1076F000822EF30109DFA3EFB1E0FDDEC3EFD1E09D
|
||||
:10770000E0E0F1E097E009908191081621F49A9564
|
||||
:10771000D1F70880801008CFC9E0EDDECA95E9F7FF
|
||||
:0877200003DF0DDF8827089547
|
||||
:1077280041524455424F5915003F75205FA055A15D
|
||||
:1077380000A200A87F81CFB121AF0000FFFFCFCF0B
|
||||
:10774800FFFFFFFFCFCFFFFF0000FE067E7E06FE95
|
||||
:1077580046565616FE0656461EFE3F61E9E3FFE30F
|
||||
:10776800EBE3FFE3EBE3FFE16B3F120110010200E3
|
||||
:1077780000084123360001000201000109023E0011
|
||||
:107788000201008032090400000102020100052400
|
||||
:1077980000100104240204052406000107058203E1
|
||||
:1077A8000800FF09040100020A000000070504029E
|
||||
:1077B80010000107058302100001040309042203D5
|
||||
:1077C800410072006400750069006E006F002000BF
|
||||
:1077D8004C0065006F006E006100720064006F006D
|
||||
:1077E8001803410072006400750069006E006F00A4
|
||||
:0877F80020004C004C0043008E
|
||||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F91A6C00F928F939F931F9233
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840004CC038C00F920FB68F939F93EF93FF9366
|
||||
:1078500088278093850080938400E8EDF1E097818C
|
||||
:10786000907261F490818917980B908309F45D9A66
|
||||
:1078700091818917980B918309F4289A96819150E8
|
||||
:1078800008F096839481915008F09483881639F417
|
||||
:107890007C9B05C0B5DD19F0C10101961C01FF916B
|
||||
:1078A000EF915CC080E189BD82E189BD09B400FE31
|
||||
:1078B000FDCF08958091D80080FF0FC08091DA003D
|
||||
:1078C0008E7F8093DA008091D90080FF04C0EADFC8
|
||||
:1078D00081E08EBB02C019BC1EBA8091E10080FF1E
|
||||
:1078E0000BC03CD280FF08C03CD28091D80080629F
|
||||
:1078F000EADD19BC85E08EBB8091E10084FF1AC0EF
|
||||
:107900002DD284FF17C0CEDF8091D8008F7DDBDDC4
|
||||
:107910008FEE2AD023D28F7E816026D28091E30120
|
||||
:10792000882331F48091E30087FD02C081E001C02B
|
||||
:1079300084E08EBB8091E10083FF0CC00FD283FFF7
|
||||
:1079400009C087EF11D082E08EBB1092E3010BD00B
|
||||
:1079500008D21CD26F914F910F901F909F918F91E1
|
||||
:107960000FBE0F9018958EEF0090E1000822009254
|
||||
:10797000E10008954BDDA0E0B1E0E8E2F7E7059013
|
||||
:107980000D92A83DE1F71D92BB30E9F701FD0FC054
|
||||
:1079900000FF03C07C9B0BC008C003FF08C06757F3
|
||||
:1079A000774729F04757574711F02ADDA1F449DD01
|
||||
:1079B00022243324310188249CDE789447D00AD3D2
|
||||
:1079C000FDDD6CDE811411F020DEF8CFD3DDC101C6
|
||||
:1079D000805B964398F3F89489EB94DD81E0809383
|
||||
:1079E000E00010926F0010928100109285001092BA
|
||||
:1079F000840081E085BF15BED3DD5D9A289A0C9482
|
||||
:107A00000000A7D107C054D102C0E1D239F0A3D100
|
||||
:107A100082FFFBCF85FFF7CF8091F1000895082EFC
|
||||
:107A200083E098D185FD07C08DD102C0D0D269F026
|
||||
:107A300092D180FFFBCF0092F1008091DF0185FBA6
|
||||
:107A400026F05D9884E68093D801089582D182FF64
|
||||
:107A50004AC18091DF0185FB26F0289884E6809357
|
||||
:107A6000D901CFDF182F853431F48CEB94E31C015E
|
||||
:107A70002DDD8DE008C1843511F4C3DFFACF8C34DD
|
||||
:107A8000C1F38035B1F3843721F484E4C8DF80E0AA
|
||||
:107A9000FAC0813611F489E5F6C0813429F4B1DFEA
|
||||
:107AA000582EAFDF482EE5CF803711F483E5EBC0C9
|
||||
:107AB000833539F4C0E0D1E08991B1DFC730E1F717
|
||||
:107AC000E3C0863521F481E3AADF84E3DCC0863796
|
||||
:107AD00061F481E3669B8E5F1C9B8F5FA0DF8FB19B
|
||||
:107AE000809582958F708F5BCEC08837A9F489DF2F
|
||||
:107AF0008093DF01289A84FD28985D9A83FD5D9824
|
||||
:107B00002E9A81FD2E98589A82FD58982D9A80FDC4
|
||||
:107B10002D9887FD8824ADCF8A3649F48FE9FBDCA8
|
||||
:107B2000C3E006DD7CDFCA95E1F7FEDCADC083373C
|
||||
:107B300031F487E874DF85E972DF8EE1A4C0853611
|
||||
:107B400039F4E0E8F3E7C7D0E058F040E0F791CF30
|
||||
:107B5000823631F489E563DF80E061DF80E893C03D
|
||||
:107B6000823419F0873609F07AC02224332449DFA1
|
||||
:107B7000D82F47DFC82F45DF082F8354843008F003
|
||||
:107B800081C0063411F4440C551CF20110926F00B0
|
||||
:107B90001736A1F4033471F483E0B7DCC9DC3FDFAE
|
||||
:107BA0002197E1F7C1DC08C0063411F4859101C0CA
|
||||
:107BB00093DC35DF2197C2F72F0149C00334A1F4CC
|
||||
:107BC0008E2F8F7021F49DDC80E29FDCA7DC99DC96
|
||||
:107BD00082E09BDC16DFACDCCA95E1F79FDC3196D6
|
||||
:107BE000DA9571F72F0131C00634F1F49F01F437B3
|
||||
:107BF000D8F471D019C005DF063461F4C0FB46F03B
|
||||
:107C0000F43728F4182E81E087BFE89511243296C6
|
||||
:107C1000082E0AC0043439F4DF01B370AD50BD4FF3
|
||||
:107C20008D93319601C05CDC21972AF7043431F43E
|
||||
:107C30002F01F370FE2B49F482DC07C0063429F4CF
|
||||
:107C40002F01F901F43708F444D08DE0E8DE063462
|
||||
:107C500011F45694479482E080936F0015C08237E8
|
||||
:107C6000E1E049F08634E0E031F08E34E3E019F0F1
|
||||
:107C7000813531F4E2E0F0E089E087BF849103C010
|
||||
:107C80008B3111F08FE3CBDE83E0B1D15BD095FF78
|
||||
:107C900003C009C09CD139F15ED080FFFBCF52D028
|
||||
:107CA00002C095D101F157D080FFFBCF84E09FD176
|
||||
:107CB0008BE749C0F437B8F40ED090E40D901D90D6
|
||||
:107CC00081E087BFE89532969A95C1F71124E05874
|
||||
:107CD000F04085E001C083E001D081E187BFE895F5
|
||||
:107CE00007B600FCFDCF08959091EB018091EC0167
|
||||
:107CF000913231F0913A61F5813251F538D087C037
|
||||
:107D0000803231F534D063D1E9F08530D9F023D019
|
||||
:107D100083FD18C082FFF7CF04C07EDE81936150DF
|
||||
:107D200031F09091F3008091F200892BB1F7C0DF20
|
||||
:107D3000611549F704C04BD129F0853019F00BD0FB
|
||||
:107D400080FFF9CF8EE79091E80089238093E800C7
|
||||
:107D5000089584E04CD18091E80008958091E2007C
|
||||
:107D60000895FCDF8E7F80618093E20008952DD11D
|
||||
:107D7000E4EEF1E067E0089582E061EC09D083E091
|
||||
:107D800061E802D084E060E842E103C080E060E0A6
|
||||
:107D900042E02DD181E007D01092ED006093EC001D
|
||||
:107DA0004093ED0008959091EB00892B8093EB00B8
|
||||
:107DB000089560E0923039F0933041F0913099F4B9
|
||||
:107DC000EAE462E110C0ECE56EE30DC0813018F426
|
||||
:107DD000EAE964E008C019F4EEE962E204C0823026
|
||||
:107DE00011F4E0EC68E1F1E008958091EB01882363
|
||||
:107DF0004CF402C0ECD051F0AEDF82FFFBCF58CF85
|
||||
:107E0000E6D021F0A8DF80FFFBCF9CDF08954091F2
|
||||
:107E1000F1015091F2014617510510F490E028C08D
|
||||
:107E2000611511F0462FFACF8DDF40E0F7CFCFD0AC
|
||||
:107E300059F1853049F18FDF83FD3ACF8CDF82FD28
|
||||
:107E400020C080FF15C03091F3002091F20005C0E2
|
||||
:107E500081918093F10041502F5F411519F0283036
|
||||
:107E60003105B0F350E02830310509F451E06ADF04
|
||||
:107E70004115E9F65523D9F604C0A9D029F085307B
|
||||
:107E800019F069DF82FFF9CF13CFEBEEF1E0C4DD2B
|
||||
:107E90008193E33FE1F728DF5EDF83FF91C08091AC
|
||||
:107EA000EB019091EC01913009F170F09330F1F019
|
||||
:107EB000953009F444C0963009F456C0983009F45E
|
||||
:107EC00060C0993059F767C0823841F78091EF015F
|
||||
:107ED0008DD02091EB001092E90077D02295269565
|
||||
:107EE00021702093F1001092F10052C0882311F00C
|
||||
:107EF0008230A1F68F71823089F68091ED0188235E
|
||||
:107F0000D1F42091EF01277049F22093E90080918C
|
||||
:107F1000EB0080FF10C0933011F480E20BC080E1D1
|
||||
:107F200042DF81E0880F2A95E9F78093EA001092FA
|
||||
:107F3000EA0088E038DF1092E90047D02AC08823A1
|
||||
:107F400091F41091ED0110680FB7F8943ED04DDF19
|
||||
:107F500002DF80FFFDCF1093E300103883E009F4C7
|
||||
:107F600082E08EBB0FBF2CC08058823048F58091D4
|
||||
:107F7000ED019091EE011DDF603011F126D047DF59
|
||||
:107F80001FC08038E9F421D08091E3018093F10093
|
||||
:107F9000D9DE2BDF15C0882399F49091ED01923042
|
||||
:107FA00078F49093E30111D020DF8091E3018823DE
|
||||
:107FB00021F48091E30091E087FD94E09EBBDCDE3C
|
||||
:107FC000CADE83FF089580E2EEDE87EFBCCE8EB37B
|
||||
:107FD00088230895FCDF69F08091E9008F93109267
|
||||
:107FE000E900B9DE83FF01C050DF8F918770809375
|
||||
:047FF000E900089507
|
||||
:047FFC005BCEFBDC81
|
||||
:040000030000740085
|
||||
:00000001FF
|
|
@ -0,0 +1,196 @@
|
|||
:10740000E0E0F0E0859194910196089520E82093C2
|
||||
:1074100061001092610081E085BF82E085BF87EE48
|
||||
:1074200084B981EF85B91DB8769A10BA80EF81BB17
|
||||
:107430008FE38AB98CE28BB980E58CBD81E08DBD8C
|
||||
:10744000089586E28BB98BEA5DD0109289008AEFAD
|
||||
:107450008093880082E080936F0083E080938100B6
|
||||
:107460005C9AE0E0F0E280E063D03197E1F75C986D
|
||||
:10747000E7E0F1E05CD0EA31E9F7ABE2B4E0EAE161
|
||||
:10748000F1E003E010E101900D921A95E1F7A059A7
|
||||
:10749000BF4F0A95B9F753D081E08093D7008AE4B3
|
||||
:1074A00082BF1092D8001092E2001092DA0010927F
|
||||
:1074B000E10080E808D019BC1EBA1092E00066D442
|
||||
:1074C00089E052D481E98093D8000895F201F999B6
|
||||
:1074D000FECFF2BDE1BD0895F9DFF89A80B508C08E
|
||||
:1074E000F5DF1FBA80BD0FB6F894FA9AF99A0FBE6D
|
||||
:1074F00031962F01089590E81BD08D939A95E1F76E
|
||||
:10750000089586E008D010C083E005D08F2F10D0FA
|
||||
:107510008E2F0ED080E05B9A5A980AC005D085E085
|
||||
:10752000FADF06D080FDFDCF5A9A5B9808958191CD
|
||||
:107530008EBD8DB5000087FFFCCF8EB50895E3EFBB
|
||||
:10754000F2E05C9A40E458E06081718198E08FEF4E
|
||||
:1075500060FF8F7070FF807FEBDF669576959A9560
|
||||
:10756000B1F7E058FF4F5A9579F7EE5FF3404A952F
|
||||
:1075700051F70895E1EEF1E08191908101969083B9
|
||||
:107580008293092E0AF400940091DF0106FB5EF05D
|
||||
:107590000096929111F493959083000C081620F4B4
|
||||
:1075A0002E9A589A2D9A0895937009F42E98913036
|
||||
:1075B00009F45898923009F42D980895E8EDF1E017
|
||||
:1075C00097819923EAF08FB18095807F669B8860D0
|
||||
:1075D0001C9B84609581891310C09681992381F446
|
||||
:1075E0009381891306C09481992396E959F080E02C
|
||||
:1075F0000AC083839095892304C085839AE096838B
|
||||
:1076000080E09FEF9483828308958091DF0186FF5D
|
||||
:10761000C7DF22243324E3EFF1E08091DA0187FD14
|
||||
:107620001BC084FD32C082FF0895C685CC23E1F3E0
|
||||
:10763000F89428980088F785E02D66DFE0E0F0E018
|
||||
:10764000A3EFB1E058DFA3EFB1E034D3E058FF4F30
|
||||
:10765000CA95B1F769DFBFC18301282D6090FC0195
|
||||
:107660007090FB0146D019F48823C1F708953801C2
|
||||
:1076700088243FD0E1F58091FA01821709F4830153
|
||||
:107680006090FE017090FD01F4CF6090FE0170905B
|
||||
:10769000FD012FD081F48823C1F708959FEF85FD68
|
||||
:1076A00008C086FD05C083FF0895AADEE9F393C1F3
|
||||
:1076B00091E097FB890E662477248301222719D055
|
||||
:1076C000B1F4882389F38091FA0136F0881650F4DA
|
||||
:1076D000821730F0213003C0881520F4281710F4E9
|
||||
:1076E0008301282F6090FE017090FD01E8CF3801E2
|
||||
:1076F000822EF30109DFA3EFB1E0FDDEC3EFD1E09D
|
||||
:10770000E0E0F1E097E009908191081621F49A9564
|
||||
:10771000D1F70880801008CFC9E0EDDECA95E9F7FF
|
||||
:0877200003DF0DDF8827089547
|
||||
:1077280041524455424F5915003F75104FA055A17D
|
||||
:1077380000A200A87F81CFB121AF0000FFFFCFCF0B
|
||||
:10774800FFFFFFFFCFCFFFFF0000FE067E7E06FE95
|
||||
:1077580046565616FE0656461EFE3F61E9E3FFE30F
|
||||
:10776800EBE3FFE3EBE3FFE16B3F120110010200E3
|
||||
:1077780000084123360001000201000109023E0011
|
||||
:107788000201008032090400000102020100052400
|
||||
:1077980000100104240204052406000107058203E1
|
||||
:1077A8000800FF09040100020A000000070504029E
|
||||
:1077B80010000107058302100001040309042203D5
|
||||
:1077C800410072006400750069006E006F002000BF
|
||||
:1077D8004C0065006F006E006100720064006F006D
|
||||
:1077E8001803410072006400750069006E006F00A4
|
||||
:0877F80020004C004C0043008E
|
||||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F91A6C00F928F939F931F9233
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840004CC038C00F920FB68F939F93EF93FF9366
|
||||
:1078500088278093850080938400E8EDF1E097818C
|
||||
:10786000907261F490818917980B908309F45D9A66
|
||||
:1078700091818917980B918309F4289A96819150E8
|
||||
:1078800008F096839481915008F09483881639F417
|
||||
:107890007C9B05C0B5DD19F0C10101961C01FF916B
|
||||
:1078A000EF915CC080E189BD82E189BD09B400FE31
|
||||
:1078B000FDCF08958091D80080FF0FC08091DA003D
|
||||
:1078C0008E7F8093DA008091D90080FF04C0EADFC8
|
||||
:1078D00081E08EBB02C019BC1EBA8091E10080FF1E
|
||||
:1078E0000BC03CD280FF08C03CD28091D80080629F
|
||||
:1078F000EADD19BC85E08EBB8091E10084FF1AC0EF
|
||||
:107900002DD284FF17C0CEDF8091D8008F7DDBDDC4
|
||||
:107910008FEE2AD023D28F7E816026D28091E30120
|
||||
:10792000882331F48091E30087FD02C081E001C02B
|
||||
:1079300084E08EBB8091E10083FF0CC00FD283FFF7
|
||||
:1079400009C087EF11D082E08EBB1092E3010BD00B
|
||||
:1079500008D21CD26F914F910F901F909F918F91E1
|
||||
:107960000FBE0F9018958EEF0090E1000822009254
|
||||
:10797000E10008954BDDA0E0B1E0E8E2F7E7059013
|
||||
:107980000D92A83DE1F71D92BB30E9F701FD0FC054
|
||||
:1079900000FF03C07C9B0BC008C003FF08C06757F3
|
||||
:1079A000774729F04757574711F02ADDA1F449DD01
|
||||
:1079B00022243324310188249CDE789447D00AD3D2
|
||||
:1079C000FDDD6CDE811411F020DEF8CFD3DDC101C6
|
||||
:1079D000805B964398F3F89489EB94DD81E0809383
|
||||
:1079E000E00010926F0010928100109285001092BA
|
||||
:1079F000840081E085BF15BED3DD5D9A289A0C9482
|
||||
:107A00000000A7D107C054D102C0E1D239F0A3D100
|
||||
:107A100082FFFBCF85FFF7CF8091F1000895082EFC
|
||||
:107A200083E098D185FD07C08DD102C0D0D269F026
|
||||
:107A300092D180FFFBCF0092F1008091DF0185FBA6
|
||||
:107A400026F05D9884E68093D801089582D182FF64
|
||||
:107A50004AC18091DF0185FB26F0289884E6809357
|
||||
:107A6000D901CFDF182F853431F48CEB94E31C015E
|
||||
:107A70002DDD8DE008C1843511F4C3DFFACF8C34DD
|
||||
:107A8000C1F38035B1F3843721F484E4C8DF80E0AA
|
||||
:107A9000FAC0813611F489E5F6C0813429F4B1DFEA
|
||||
:107AA000582EAFDF482EE5CF803711F483E5EBC0C9
|
||||
:107AB000833539F4C0E0D1E08991B1DFC730E1F717
|
||||
:107AC000E3C0863521F481E3AADF84E3DCC0863796
|
||||
:107AD00061F481E3669B8E5F1C9B8F5FA0DF8FB19B
|
||||
:107AE000809582958F708F5BCEC08837A9F489DF2F
|
||||
:107AF0008093DF01289A84FD28985D9A83FD5D9824
|
||||
:107B00002E9A81FD2E98589A82FD58982D9A80FDC4
|
||||
:107B10002D9887FD8824ADCF8A3649F48FE9FBDCA8
|
||||
:107B2000C3E006DD7CDFCA95E1F7FEDCADC083373C
|
||||
:107B300031F487E874DF85E972DF8EE1A4C0853611
|
||||
:107B400039F4E0E8F3E7C7D0E058F040E0F791CF30
|
||||
:107B5000823631F489E563DF80E061DF80E893C03D
|
||||
:107B6000823419F0873609F07AC02224332449DFA1
|
||||
:107B7000D82F47DFC82F45DF082F8354843008F003
|
||||
:107B800081C0063411F4440C551CF20110926F00B0
|
||||
:107B90001736A1F4033471F483E0B7DCC9DC3FDFAE
|
||||
:107BA0002197E1F7C1DC08C0063411F4859101C0CA
|
||||
:107BB00093DC35DF2197C2F72F0149C00334A1F4CC
|
||||
:107BC0008E2F8F7021F49DDC80E29FDCA7DC99DC96
|
||||
:107BD00082E09BDC16DFACDCCA95E1F79FDC3196D6
|
||||
:107BE000DA9571F72F0131C00634F1F49F01F437B3
|
||||
:107BF000D8F471D019C005DF063461F4C0FB46F03B
|
||||
:107C0000F43728F4182E81E087BFE89511243296C6
|
||||
:107C1000082E0AC0043439F4DF01B370AD50BD4FF3
|
||||
:107C20008D93319601C05CDC21972AF7043431F43E
|
||||
:107C30002F01F370FE2B49F482DC07C0063429F4CF
|
||||
:107C40002F01F901F43708F444D08DE0E8DE063462
|
||||
:107C500011F45694479482E080936F0015C08237E8
|
||||
:107C6000E1E049F08634E0E031F08E34E3E019F0F1
|
||||
:107C7000813531F4E2E0F0E089E087BF849103C010
|
||||
:107C80008B3111F08FE3CBDE83E0B1D15BD095FF78
|
||||
:107C900003C009C09CD139F15ED080FFFBCF52D028
|
||||
:107CA00002C095D101F157D080FFFBCF84E09FD176
|
||||
:107CB0008BE749C0F437B8F40ED090E40D901D90D6
|
||||
:107CC00081E087BFE89532969A95C1F71124E05874
|
||||
:107CD000F04085E001C083E001D081E187BFE895F5
|
||||
:107CE00007B600FCFDCF08959091EB018091EC0167
|
||||
:107CF000913231F0913A61F5813251F538D087C037
|
||||
:107D0000803231F534D063D1E9F08530D9F023D019
|
||||
:107D100083FD18C082FFF7CF04C07EDE81936150DF
|
||||
:107D200031F09091F3008091F200892BB1F7C0DF20
|
||||
:107D3000611549F704C04BD129F0853019F00BD0FB
|
||||
:107D400080FFF9CF8EE79091E80089238093E800C7
|
||||
:107D5000089584E04CD18091E80008958091E2007C
|
||||
:107D60000895FCDF8E7F80618093E20008952DD11D
|
||||
:107D7000E4EEF1E067E0089582E061EC09D083E091
|
||||
:107D800061E802D084E060E842E103C080E060E0A6
|
||||
:107D900042E02DD181E007D01092ED006093EC001D
|
||||
:107DA0004093ED0008959091EB00892B8093EB00B8
|
||||
:107DB000089560E0923039F0933041F0913099F4B9
|
||||
:107DC000EAE462E110C0ECE56EE30DC0813018F426
|
||||
:107DD000EAE964E008C019F4EEE962E204C0823026
|
||||
:107DE00011F4E0EC68E1F1E008958091EB01882363
|
||||
:107DF0004CF402C0ECD051F0AEDF82FFFBCF58CF85
|
||||
:107E0000E6D021F0A8DF80FFFBCF9CDF08954091F2
|
||||
:107E1000F1015091F2014617510510F490E028C08D
|
||||
:107E2000611511F0462FFACF8DDF40E0F7CFCFD0AC
|
||||
:107E300059F1853049F18FDF83FD3ACF8CDF82FD28
|
||||
:107E400020C080FF15C03091F3002091F20005C0E2
|
||||
:107E500081918093F10041502F5F411519F0283036
|
||||
:107E60003105B0F350E02830310509F451E06ADF04
|
||||
:107E70004115E9F65523D9F604C0A9D029F085307B
|
||||
:107E800019F069DF82FFF9CF13CFEBEEF1E0C4DD2B
|
||||
:107E90008193E33FE1F728DF5EDF83FF91C08091AC
|
||||
:107EA000EB019091EC01913009F170F09330F1F019
|
||||
:107EB000953009F444C0963009F456C0983009F45E
|
||||
:107EC00060C0993059F767C0823841F78091EF015F
|
||||
:107ED0008DD02091EB001092E90077D02295269565
|
||||
:107EE00021702093F1001092F10052C0882311F00C
|
||||
:107EF0008230A1F68F71823089F68091ED0188235E
|
||||
:107F0000D1F42091EF01277049F22093E90080918C
|
||||
:107F1000EB0080FF10C0933011F480E20BC080E1D1
|
||||
:107F200042DF81E0880F2A95E9F78093EA001092FA
|
||||
:107F3000EA0088E038DF1092E90047D02AC08823A1
|
||||
:107F400091F41091ED0110680FB7F8943ED04DDF19
|
||||
:107F500002DF80FFFDCF1093E300103883E009F4C7
|
||||
:107F600082E08EBB0FBF2CC08058823048F58091D4
|
||||
:107F7000ED019091EE011DDF603011F126D047DF59
|
||||
:107F80001FC08038E9F421D08091E3018093F10093
|
||||
:107F9000D9DE2BDF15C0882399F49091ED01923042
|
||||
:107FA00078F49093E30111D020DF8091E3018823DE
|
||||
:107FB00021F48091E30091E087FD94E09EBBDCDE3C
|
||||
:107FC000CADE83FF089580E2EEDE87EFBCCE8EB37B
|
||||
:107FD00088230895FCDF69F08091E9008F93109267
|
||||
:107FE000E900B9DE83FF01C050DF8F918770809375
|
||||
:047FF000E900089507
|
||||
:047FFC005BCEFBDC81
|
||||
:040000030000740085
|
||||
:00000001FF
|
|
@ -0,0 +1,196 @@
|
|||
:10740000E0E0F0E0859194910196089520E82093C2
|
||||
:1074100061001092610081E085BF82E085BF87EE48
|
||||
:1074200084B981EF85B91DB8769A10BA80EF81BB17
|
||||
:107430008FE38AB98CE28BB980E58CBD81E08DBD8C
|
||||
:10744000089586E28BB98BEA5DD0109289008AEFAD
|
||||
:107450008093880082E080936F0083E080938100B6
|
||||
:107460005C9AE0E0F0E280E063D03197E1F75C986D
|
||||
:10747000E7E0F1E05CD0EA31E9F7ABE2B4E0EAE161
|
||||
:10748000F1E003E010E101900D921A95E1F7A059A7
|
||||
:10749000BF4F0A95B9F753D081E08093D7008AE4B3
|
||||
:1074A00082BF1092D8001092E2001092DA0010927F
|
||||
:1074B000E10080E808D019BC1EBA1092E00066D442
|
||||
:1074C00089E052D481E98093D8000895F201F999B6
|
||||
:1074D000FECFF2BDE1BD0895F9DFF89A80B508C08E
|
||||
:1074E000F5DF1FBA80BD0FB6F894FA9AF99A0FBE6D
|
||||
:1074F00031962F01089590E81BD08D939A95E1F76E
|
||||
:10750000089586E008D010C083E005D08F2F10D0FA
|
||||
:107510008E2F0ED080E05B9A5A980AC005D085E085
|
||||
:10752000FADF06D080FDFDCF5A9A5B9808958191CD
|
||||
:107530008EBD8DB5000087FFFCCF8EB50895E3E0CA
|
||||
:10754000F3E05C9A40E358E06081718198E08FEF4E
|
||||
:1075500060FF8F7070FF807FEBDF669576959A9560
|
||||
:10756000B1F7E058FF4F5A9579F7EE5FF3404A952F
|
||||
:1075700051F70895E1EEF1E08191908101969083B9
|
||||
:107580008293092E0AF400940091DF0106FB5EF05D
|
||||
:107590000096929111F493959083000C081620F4B4
|
||||
:1075A0002E9A589A2D9A0895937009F42E98913036
|
||||
:1075B00009F45898923009F42D980895E8EDF1E017
|
||||
:1075C00097819923EAF08FB18095807F669B8860D0
|
||||
:1075D0001C9B84609581891310C09681992381F446
|
||||
:1075E0009381891306C09481992396E959F080E02C
|
||||
:1075F0000AC083839095892304C085839AE096838B
|
||||
:1076000080E09FEF9483828308958091DF0186FF5D
|
||||
:10761000C7DF22243324E3EFF1E08091DA0187FD14
|
||||
:107620001BC084FD32C082FF0895C685CC23E1F3E0
|
||||
:10763000F89428980088F785E02D66DFE0E0F0E018
|
||||
:10764000A3EFB1E058DFA3EFB1E034D3E058FF4F30
|
||||
:10765000CA95B1F769DFBFC18301282D6090FC0195
|
||||
:107660007090FB0146D019F48823C1F708953801C2
|
||||
:1076700088243FD0E1F58091FA01821709F4830153
|
||||
:107680006090FE017090FD01F4CF6090FE0170905B
|
||||
:10769000FD012FD081F48823C1F708959FEF85FD68
|
||||
:1076A00008C086FD05C083FF0895AADEE9F393C1F3
|
||||
:1076B00091E097FB890E662477248301222719D055
|
||||
:1076C000B1F4882389F38091FA0136F0881650F4DA
|
||||
:1076D000821730F0213003C0881520F4281710F4E9
|
||||
:1076E0008301282F6090FE017090FD01E8CF3801E2
|
||||
:1076F000822EF30109DFA3EFB1E0FDDEC3EFD1E09D
|
||||
:10770000E0E0F1E097E009908191081621F49A9564
|
||||
:10771000D1F70880801008CFC9E0EDDECA95E9F7FF
|
||||
:0877200003DF0DDF8827089547
|
||||
:1077280041524455424F5915103F75306FA055A12D
|
||||
:1077380000A200A87F81CFB121AF0000FFFFCFCF0B
|
||||
:10774800FFFFFFFFCFCFFFFF0000FE067E7E06FE95
|
||||
:1077580046565616FE0656461EFE3F61E9E3FFE30F
|
||||
:10776800EBE3FFE3EBE3FFE16B3F120110010200E3
|
||||
:1077780000084123360001000201000109023E0011
|
||||
:107788000201008032090400000102020100052400
|
||||
:1077980000100104240204052406000107058203E1
|
||||
:1077A8000800FF09040100020A000000070504029E
|
||||
:1077B80010000107058302100001040309042203D5
|
||||
:1077C800410072006400750069006E006F002000BF
|
||||
:1077D8004C0065006F006E006100720064006F006D
|
||||
:1077E8001803410072006400750069006E006F00A4
|
||||
:0877F80020004C004C0043008E
|
||||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F91A6C00F928F939F931F9233
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840004CC038C00F920FB68F939F93EF93FF9366
|
||||
:1078500088278093850080938400E8EDF1E097818C
|
||||
:10786000907261F490818917980B908309F45D9A66
|
||||
:1078700091818917980B918309F4289A96819150E8
|
||||
:1078800008F096839481915008F09483881639F417
|
||||
:107890007C9B05C0B5DD19F0C10101961C01FF916B
|
||||
:1078A000EF915CC080E189BD82E189BD09B400FE31
|
||||
:1078B000FDCF08958091D80080FF0FC08091DA003D
|
||||
:1078C0008E7F8093DA008091D90080FF04C0EADFC8
|
||||
:1078D00081E08EBB02C019BC1EBA8091E10080FF1E
|
||||
:1078E0000BC03CD280FF08C03CD28091D80080629F
|
||||
:1078F000EADD19BC85E08EBB8091E10084FF1AC0EF
|
||||
:107900002DD284FF17C0CEDF8091D8008F7DDBDDC4
|
||||
:107910008FEE2AD023D28F7E816026D28091E30120
|
||||
:10792000882331F48091E30087FD02C081E001C02B
|
||||
:1079300084E08EBB8091E10083FF0CC00FD283FFF7
|
||||
:1079400009C087EF11D082E08EBB1092E3010BD00B
|
||||
:1079500008D21CD26F914F910F901F909F918F91E1
|
||||
:107960000FBE0F9018958EEF0090E1000822009254
|
||||
:10797000E10008954BDDA0E0B1E0E8E2F7E7059013
|
||||
:107980000D92A83DE1F71D92BB30E9F701FD0FC054
|
||||
:1079900000FF03C07C9B0BC008C003FF08C06757F3
|
||||
:1079A000774729F04757574711F02ADDA1F449DD01
|
||||
:1079B00022243324310188249CDE789447D00AD3D2
|
||||
:1079C000FDDD6CDE811411F020DEF8CFD3DDC101C6
|
||||
:1079D000805B964398F3F89489EB94DD81E0809383
|
||||
:1079E000E00010926F0010928100109285001092BA
|
||||
:1079F000840081E085BF15BED3DD5D9A289A0C9482
|
||||
:107A00000000A7D107C054D102C0E1D239F0A3D100
|
||||
:107A100082FFFBCF85FFF7CF8091F1000895082EFC
|
||||
:107A200083E098D185FD07C08DD102C0D0D269F026
|
||||
:107A300092D180FFFBCF0092F1008091DF0185FBA6
|
||||
:107A400026F05D9884E68093D801089582D182FF64
|
||||
:107A50004AC18091DF0185FB26F0289884E6809357
|
||||
:107A6000D901CFDF182F853431F48CEB94E31C015E
|
||||
:107A70002DDD8DE008C1843511F4C3DFFACF8C34DD
|
||||
:107A8000C1F38035B1F3843721F484E4C8DF80E0AA
|
||||
:107A9000FAC0813611F489E5F6C0813429F4B1DFEA
|
||||
:107AA000582EAFDF482EE5CF803711F483E5EBC0C9
|
||||
:107AB000833539F4C0E0D1E08991B1DFC730E1F717
|
||||
:107AC000E3C0863521F481E3AADF84E3DCC0863796
|
||||
:107AD00061F481E3669B8E5F1C9B8F5FA0DF8FB19B
|
||||
:107AE000809582958F708F5BCEC08837A9F489DF2F
|
||||
:107AF0008093DF01289A84FD28985D9A83FD5D9824
|
||||
:107B00002E9A81FD2E98589A82FD58982D9A80FDC4
|
||||
:107B10002D9887FD8824ADCF8A3649F48FE9FBDCA8
|
||||
:107B2000C3E006DD7CDFCA95E1F7FEDCADC083373C
|
||||
:107B300031F487E874DF85E972DF8EE1A4C0853611
|
||||
:107B400039F4E0E8F3E7C7D0E058F040E0F791CF30
|
||||
:107B5000823631F489E563DF80E061DF80E893C03D
|
||||
:107B6000823419F0873609F07AC02224332449DFA1
|
||||
:107B7000D82F47DFC82F45DF082F8354843008F003
|
||||
:107B800081C0063411F4440C551CF20110926F00B0
|
||||
:107B90001736A1F4033471F483E0B7DCC9DC3FDFAE
|
||||
:107BA0002197E1F7C1DC08C0063411F4859101C0CA
|
||||
:107BB00093DC35DF2197C2F72F0149C00334A1F4CC
|
||||
:107BC0008E2F8F7021F49DDC80E29FDCA7DC99DC96
|
||||
:107BD00082E09BDC16DFACDCCA95E1F79FDC3196D6
|
||||
:107BE000DA9571F72F0131C00634F1F49F01F437B3
|
||||
:107BF000D8F471D019C005DF063461F4C0FB46F03B
|
||||
:107C0000F43728F4182E81E087BFE89511243296C6
|
||||
:107C1000082E0AC0043439F4DF01B370AD50BD4FF3
|
||||
:107C20008D93319601C05CDC21972AF7043431F43E
|
||||
:107C30002F01F370FE2B49F482DC07C0063429F4CF
|
||||
:107C40002F01F901F43708F444D08DE0E8DE063462
|
||||
:107C500011F45694479482E080936F0015C08237E8
|
||||
:107C6000E1E049F08634E0E031F08E34E3E019F0F1
|
||||
:107C7000813531F4E2E0F0E089E087BF849103C010
|
||||
:107C80008B3111F08FE3CBDE83E0B1D15BD095FF78
|
||||
:107C900003C009C09CD139F15ED080FFFBCF52D028
|
||||
:107CA00002C095D101F157D080FFFBCF84E09FD176
|
||||
:107CB0008BE749C0F437B8F40ED090E40D901D90D6
|
||||
:107CC00081E087BFE89532969A95C1F71124E05874
|
||||
:107CD000F04085E001C083E001D081E187BFE895F5
|
||||
:107CE00007B600FCFDCF08959091EB018091EC0167
|
||||
:107CF000913231F0913A61F5813251F538D087C037
|
||||
:107D0000803231F534D063D1E9F08530D9F023D019
|
||||
:107D100083FD18C082FFF7CF04C07EDE81936150DF
|
||||
:107D200031F09091F3008091F200892BB1F7C0DF20
|
||||
:107D3000611549F704C04BD129F0853019F00BD0FB
|
||||
:107D400080FFF9CF8EE79091E80089238093E800C7
|
||||
:107D5000089584E04CD18091E80008958091E2007C
|
||||
:107D60000895FCDF8E7F80618093E20008952DD11D
|
||||
:107D7000E4EEF1E067E0089582E061EC09D083E091
|
||||
:107D800061E802D084E060E842E103C080E060E0A6
|
||||
:107D900042E02DD181E007D01092ED006093EC001D
|
||||
:107DA0004093ED0008959091EB00892B8093EB00B8
|
||||
:107DB000089560E0923039F0933041F0913099F4B9
|
||||
:107DC000EAE462E110C0ECE56EE30DC0813018F426
|
||||
:107DD000EAE964E008C019F4EEE962E204C0823026
|
||||
:107DE00011F4E0EC68E1F1E008958091EB01882363
|
||||
:107DF0004CF402C0ECD051F0AEDF82FFFBCF58CF85
|
||||
:107E0000E6D021F0A8DF80FFFBCF9CDF08954091F2
|
||||
:107E1000F1015091F2014617510510F490E028C08D
|
||||
:107E2000611511F0462FFACF8DDF40E0F7CFCFD0AC
|
||||
:107E300059F1853049F18FDF83FD3ACF8CDF82FD28
|
||||
:107E400020C080FF15C03091F3002091F20005C0E2
|
||||
:107E500081918093F10041502F5F411519F0283036
|
||||
:107E60003105B0F350E02830310509F451E06ADF04
|
||||
:107E70004115E9F65523D9F604C0A9D029F085307B
|
||||
:107E800019F069DF82FFF9CF13CFEBEEF1E0C4DD2B
|
||||
:107E90008193E33FE1F728DF5EDF83FF91C08091AC
|
||||
:107EA000EB019091EC01913009F170F09330F1F019
|
||||
:107EB000953009F444C0963009F456C0983009F45E
|
||||
:107EC00060C0993059F767C0823841F78091EF015F
|
||||
:107ED0008DD02091EB001092E90077D02295269565
|
||||
:107EE00021702093F1001092F10052C0882311F00C
|
||||
:107EF0008230A1F68F71823089F68091ED0188235E
|
||||
:107F0000D1F42091EF01277049F22093E90080918C
|
||||
:107F1000EB0080FF10C0933011F480E20BC080E1D1
|
||||
:107F200042DF81E0880F2A95E9F78093EA001092FA
|
||||
:107F3000EA0088E038DF1092E90047D02AC08823A1
|
||||
:107F400091F41091ED0110680FB7F8943ED04DDF19
|
||||
:107F500002DF80FFFDCF1093E300103883E009F4C7
|
||||
:107F600082E08EBB0FBF2CC08058823048F58091D4
|
||||
:107F7000ED019091EE011DDF603011F126D047DF59
|
||||
:107F80001FC08038E9F421D08091E3018093F10093
|
||||
:107F9000D9DE2BDF15C0882399F49091ED01923042
|
||||
:107FA00078F49093E30111D020DF8091E3018823DE
|
||||
:107FB00021F48091E30091E087FD94E09EBBDCDE3C
|
||||
:107FC000CADE83FF089580E2EEDE87EFBCCE8EB37B
|
||||
:107FD00088230895FCDF69F08091E9008F93109267
|
||||
:107FE000E900B9DE83FF01C050DF8F918770809375
|
||||
:047FF000E900089507
|
||||
:047FFC005BCEFBDC81
|
||||
:040000030000740085
|
||||
:00000001FF
|
|
@ -0,0 +1,194 @@
|
|||
:10740000E0E0F0E0859194910196089520E82093C2
|
||||
:1074100061001092610081E085BF82E085BF87EE48
|
||||
:1074200084B981EF85B91DB8769A10BA80EF81BB17
|
||||
:107430008FE38AB98CE28BB980E58CBD81E08DBD8C
|
||||
:10744000089586E28BB98BEA55D0109289008AEFB5
|
||||
:107450008093880082E080936F0083E080938100B6
|
||||
:10746000E7E0F1E05CD0E331E9F7A5E2B4E0E3E185
|
||||
:10747000F1E003E010E101900D921A95E1F7A059B7
|
||||
:10748000BF4F0A95B9F753D081E08093D7008AE4C3
|
||||
:1074900082BF1092D8001092E2001092DA0010928F
|
||||
:1074A000E10080E808D019BC1EBA1092E0006ED44A
|
||||
:1074B00089E05AD481E98093D8000895F201F999BE
|
||||
:1074C000FECFF2BDE1BD0895F9DFF89A80B508C09E
|
||||
:1074D000F5DF1FBA80BD0FB6F894FA9AF99A0FBE7D
|
||||
:1074E00031962F01089590E81BD08D939A95E1F77E
|
||||
:1074F000089586E008D010C083E005D08F2F10D00B
|
||||
:107500008E2F0ED080E05B9A5A980AC005D085E095
|
||||
:10751000FADF06D080FDFDCF5A9A5B9808958191DD
|
||||
:107520008EBD8DB5000087FFFCCF8EB50895EDEEC2
|
||||
:10753000F2E090EB5C98892FF3DF80E1F1DF5C9A59
|
||||
:10754000EEDF8DEE8E278F77D9F79395983B91F7E5
|
||||
:107550000895EBEDF1E08191908101969083829303
|
||||
:10756000092E0AF400940091D90106FB5EF0009602
|
||||
:10757000929111F493959083000C081620F42E9AA2
|
||||
:10758000589A2D9A0895937009F42E98913009F421
|
||||
:107590005898923009F42D980895E2EDF1E0978122
|
||||
:1075A0009923EAF08FB18095807F669B88601C9B51
|
||||
:1075B00084609581891310C09681992381F4938109
|
||||
:1075C000891306C09481992396E959F080E00AC096
|
||||
:1075D00083839095892304C085839AE0968380E015
|
||||
:1075E0009FEF9483828308958091D90186FFC7DF3E
|
||||
:1075F00022243324EDEEF1E08091D40187FD1BC0FD
|
||||
:1076000084FD32C082FF0895C685CC23E1F3F8944F
|
||||
:1076100028980088F785E02D6FDFE0E0F0E0ADEE20
|
||||
:10762000B1E061DFADEEB1E045D3E058FF4FCA9560
|
||||
:10763000B1F772DFD0C18301282D6090F601709000
|
||||
:10764000F50146D019F48823C1F70895380188243C
|
||||
:107650003FD0E1F58091F401821709F48301609035
|
||||
:10766000F8017090F701F4CF6090F8017090F70185
|
||||
:107670002FD081F48823C1F708959FEF85FD08C0BE
|
||||
:1076800086FD05C083FF0895BBDEE9F3A4C191E048
|
||||
:1076900097FB890E662477248301222719D0B1F441
|
||||
:1076A000882389F38091F40136F0881650F482170C
|
||||
:1076B00030F0213003C0881520F4281710F483011E
|
||||
:1076C000282F6090F8017090F701E8CF3801822EE2
|
||||
:1076D000F30112DFADEEB1E006DFCDEED1E0E0E088
|
||||
:1076E000F1E097E009908191081621F49A95D1F77D
|
||||
:1076F0000880801011CFC9E0F6DECA95E9F70CDFEB
|
||||
:0677000016DF8827089542
|
||||
:1077060041524455424F59D5F08D14A1C881CFD965
|
||||
:10771600F1AF000000FFFFCFCFFFFFFFFFCFCFFF8E
|
||||
:10772600FF0000FE067E7E06FE46565616FE0656EE
|
||||
:10773600461EFE3F61E9E3FFE3EBE3FFE3EBE3FF16
|
||||
:10774600E16B3F12011001020000084123360001DF
|
||||
:10775600000201000109023E000201008032090414
|
||||
:1077660000000102020100052400100104240204A5
|
||||
:107776000524060001070582030800FF090401002D
|
||||
:10778600020A000000070504021000010705830233
|
||||
:10779600100001040309042203410072006400750D
|
||||
:1077A6000069006E006F0020004C0065006F006EDF
|
||||
:1077B600006100720064006F0018034100720064EB
|
||||
:1077C60000750069006E006F0020004C004C0043FD
|
||||
:0277D6000000B1
|
||||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F91A6C00F928F939F931F9233
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840004CC038C00F920FB68F939F93EF93FF9366
|
||||
:1078500088278093850080938400E2EDF1E0978192
|
||||
:10786000907261F490818917980B908309F45D9A66
|
||||
:1078700091818917980B918309F4289A96819150E8
|
||||
:1078800008F096839481915008F09483881639F417
|
||||
:107890007C9B05C0B5DD19F0C10101961C01FF916B
|
||||
:1078A000EF915CC080E189BD82E189BD09B400FE31
|
||||
:1078B000FDCF08958091D80080FF0FC08091DA003D
|
||||
:1078C0008E7F8093DA008091D90080FF04C0EADFC8
|
||||
:1078D00081E08EBB02C019BC1EBA8091E10080FF1E
|
||||
:1078E0000BC03CD280FF08C03CD28091D80080629F
|
||||
:1078F000E2DD19BC85E08EBB8091E10084FF1AC0F7
|
||||
:107900002DD284FF17C0CEDF8091D8008F7DD3DDCC
|
||||
:107910008FEE2AD023D28F7E816026D28091DD0126
|
||||
:10792000882331F48091E30087FD02C081E001C02B
|
||||
:1079300084E08EBB8091E10083FF0CC00FD283FFF7
|
||||
:1079400009C087EF11D082E08EBB1092DD010BD011
|
||||
:1079500008D21CD26F914F910F901F909F918F91E1
|
||||
:107960000FBE0F9018958EEF0090E1000822009254
|
||||
:10797000E10008954BDDA0E0B1E0E6E0F7E7059017
|
||||
:107980000D92A13DE1F71D92BB30E9F701FD0FC05B
|
||||
:1079900000FF03C07C9B0BC008C003FF08C06757F3
|
||||
:1079A000774729F04757574711F02ADDA1F449DD01
|
||||
:1079B00022243324310188248BDE789447D00AD3E3
|
||||
:1079C000ECDD5BDE811411F00FDEF8CFC2DDC1010A
|
||||
:1079D000805B964398F3F89489EB8CDD81E080938B
|
||||
:1079E000E00010926F0010928100109285001092BA
|
||||
:1079F000840081E085BF15BEC2DD5D9A289A0C9493
|
||||
:107A00000000A7D107C054D102C0E1D239F0A3D100
|
||||
:107A100082FFFBCF85FFF7CF8091F1000895082EFC
|
||||
:107A200083E098D185FD07C08DD102C0D0D269F026
|
||||
:107A300092D180FFFBCF0092F1008091D90185FBAC
|
||||
:107A400026F05D9884E68093D201089582D182FF6A
|
||||
:107A50004AC18091D90185FB26F0289884E680935D
|
||||
:107A6000D301CFDF182F853431F48CEB94E31C0164
|
||||
:107A700025DD8DE008C1843511F4C3DFFACF8C34E5
|
||||
:107A8000C1F38035B1F3843721F484E4C8DF80E0AA
|
||||
:107A9000FAC0813611F489E5F6C0813429F4B1DFEA
|
||||
:107AA000582EAFDF482EE5CF803711F483E5EBC0C9
|
||||
:107AB000833539F4C0E0D1E08991B1DFC730E1F717
|
||||
:107AC000E3C0863521F481E3AADF84E3DCC0863796
|
||||
:107AD00061F481E3669B8E5F1C9B8F5FA0DF8FB19B
|
||||
:107AE000809582958F708F5BCEC08837A9F489DF2F
|
||||
:107AF0008093D901289A84FD28985D9A83FD5D982A
|
||||
:107B00002E9A81FD2E98589A82FD58982D9A80FDC4
|
||||
:107B10002D9887FD8824ADCF8A3649F48FE9F3DCB0
|
||||
:107B2000C3E0FEDC7CDFCA95E1F7F6DCADC083374D
|
||||
:107B300031F487E874DF85E972DF8EE1A4C0853611
|
||||
:107B400039F4E0E8F3E7C7D0E058F040E0F791CF30
|
||||
:107B5000823631F489E563DF80E061DF80E893C03D
|
||||
:107B6000823419F0873609F07AC02224332449DFA1
|
||||
:107B7000D82F47DFC82F45DF082F8354843008F003
|
||||
:107B800081C0063411F4440C551CF20110926F00B0
|
||||
:107B90001736A1F4033471F483E0AFDCC1DC3FDFBE
|
||||
:107BA0002197E1F7B9DC08C0063411F4859101C0D2
|
||||
:107BB0008BDC35DF2197C2F72F0149C00334A1F4D4
|
||||
:107BC0008E2F8F7021F495DC80E297DC9FDC91DCB6
|
||||
:107BD00082E093DC16DFA4DCCA95E1F797DC3196EE
|
||||
:107BE000DA9571F72F0131C00634F1F49F01F437B3
|
||||
:107BF000D8F471D019C005DF063461F4C0FB46F03B
|
||||
:107C0000F43728F4182E81E087BFE89511243296C6
|
||||
:107C1000082E0AC0043439F4DF01B370A351BD4FFC
|
||||
:107C20008D93319601C054DC21972AF7043431F446
|
||||
:107C30002F01F370FE2B49F47ADC07C0063429F4D7
|
||||
:107C40002F01F901F43708F444D08DE0E8DE063462
|
||||
:107C500011F45694479482E080936F0015C08237E8
|
||||
:107C6000E1E049F08634E0E031F08E34E3E019F0F1
|
||||
:107C7000813531F4E2E0F0E089E087BF849103C010
|
||||
:107C80008B3111F08FE3CBDE83E0B1D15BD095FF78
|
||||
:107C900003C009C09CD139F15ED080FFFBCF52D028
|
||||
:107CA00002C095D101F157D080FFFBCF84E09FD176
|
||||
:107CB0008BE749C0F437B8F40ED090E40D901D90D6
|
||||
:107CC00081E087BFE89532969A95C1F71124E05874
|
||||
:107CD000F04085E001C083E001D081E187BFE895F5
|
||||
:107CE00007B600FCFDCF08959091E5018091E60173
|
||||
:107CF000913231F0913A61F5813251F538D087C037
|
||||
:107D0000803231F534D063D1E9F08530D9F023D019
|
||||
:107D100083FD18C082FFF7CF04C07EDE81936150DF
|
||||
:107D200031F09091F3008091F200892BB1F7C0DF20
|
||||
:107D3000611549F704C04BD129F0853019F00BD0FB
|
||||
:107D400080FFF9CF8EE79091E80089238093E800C7
|
||||
:107D5000089584E04CD18091E80008958091E2007C
|
||||
:107D60000895FCDF8E7F80618093E20008952DD11D
|
||||
:107D7000EEEDF1E067E0089582E061EC09D083E088
|
||||
:107D800061E802D084E060E842E103C080E060E0A6
|
||||
:107D900042E02DD181E007D01092ED006093EC001D
|
||||
:107DA0004093ED0008959091EB00892B8093EB00B8
|
||||
:107DB000089560E0923039F0933041F0913099F4B9
|
||||
:107DC000E3E462E110C0E5E56EE30DC0813018F434
|
||||
:107DD000E3E964E008C019F4E7E962E204C0823034
|
||||
:107DE00011F4E9EB68E1F1E008958091E501882361
|
||||
:107DF0004CF402C0ECD051F0AEDF82FFFBCF58CF85
|
||||
:107E0000E6D021F0A8DF80FFFBCF9CDF08954091F2
|
||||
:107E1000EB015091EC014617510510F490E028C099
|
||||
:107E2000611511F0462FFACF8DDF40E0F7CFCFD0AC
|
||||
:107E300059F1853049F18FDF83FD3ACF8CDF82FD28
|
||||
:107E400020C080FF15C03091F3002091F20005C0E2
|
||||
:107E500081918093F10041502F5F411519F0283036
|
||||
:107E60003105B0F350E02830310509F451E06ADF04
|
||||
:107E70004115E9F65523D9F604C0A9D029F085307B
|
||||
:107E800019F069DF82FFF9CF13CFE5EEF1E0C4DD31
|
||||
:107E90008193ED3EE1F728DF5EDF83FF91C08091A3
|
||||
:107EA000E5019091E601913009F170F09330F1F025
|
||||
:107EB000953009F444C0963009F456C0983009F45E
|
||||
:107EC00060C0993059F767C0823841F78091E90165
|
||||
:107ED0008DD02091EB001092E90077D02295269565
|
||||
:107EE00021702093F1001092F10052C0882311F00C
|
||||
:107EF0008230A1F68F71823089F68091E701882364
|
||||
:107F0000D1F42091E901277049F22093E900809192
|
||||
:107F1000EB0080FF10C0933011F480E20BC080E1D1
|
||||
:107F200042DF81E0880F2A95E9F78093EA001092FA
|
||||
:107F3000EA0088E038DF1092E90047D02AC08823A1
|
||||
:107F400091F41091E70110680FB7F8943ED04DDF1F
|
||||
:107F500002DF80FFFDCF1093E300103883E009F4C7
|
||||
:107F600082E08EBB0FBF2CC08058823048F58091D4
|
||||
:107F7000E7019091E8011DDF603011F126D047DF65
|
||||
:107F80001FC08038E9F421D08091DD018093F10099
|
||||
:107F9000D9DE2BDF15C0882399F49091E701923048
|
||||
:107FA00078F49093DD0111D020DF8091DD018823EA
|
||||
:107FB00021F48091E30091E087FD94E09EBBDCDE3C
|
||||
:107FC000CADE83FF089580E2EEDE87EFBCCE8EB37B
|
||||
:107FD00088230895FCDF69F08091E9008F93109267
|
||||
:107FE000E900B9DE83FF01C050DF8F918770809375
|
||||
:047FF000E900089507
|
||||
:047FFC005BCEFBDC81
|
||||
:040000030000740085
|
||||
:00000001FF
|
|
@ -0,0 +1,194 @@
|
|||
:10740000E0E0F0E0859194910196089520E82093C2
|
||||
:1074100061001092610081E085BF82E085BF87EE48
|
||||
:1074200084B981EF85B91DB8769A10BA80EF81BB17
|
||||
:1074300084EF8AB984E68BB980E58CBD81E08DBD8F
|
||||
:10744000089584EA8BB98BEA55D0109289008AEFAF
|
||||
:107450008093880082E080936F0083E080938100B6
|
||||
:10746000E7E0F1E05CD0E331E9F7A5E2B4E0E3E185
|
||||
:10747000F1E003E010E101900D921A95E1F7A059B7
|
||||
:10748000BF4F0A95B9F753D081E08093D7008AE4C3
|
||||
:1074900082BF1092D8001092E2001092DA0010928F
|
||||
:1074A000E10080E808D019BC1EBA1092E0006ED44A
|
||||
:1074B00089E05AD481E98093D8000895F201F999BE
|
||||
:1074C000FECFF2BDE1BD0895F9DFF89A80B508C09E
|
||||
:1074D000F5DF1FBA80BD0FB6F894FA9AF99A0FBE7D
|
||||
:1074E00031962F01089590E81BD08D939A95E1F77E
|
||||
:1074F000089586E008D010C083E005D08F2F10D00B
|
||||
:107500008E2F0ED080E05E9A5A980AC005D085E092
|
||||
:10751000FADF06D080FDFDCF5A9A5E9808958191DA
|
||||
:107520008EBD8DB5000087FFFCCF8EB50895EDEEC2
|
||||
:10753000F2E090EB5C98892FF3DF80E1F1DF5C9A59
|
||||
:10754000EEDF8DEE8E278F77D9F79395983B91F7E5
|
||||
:107550000895EBEDF1E08191908101969083829303
|
||||
:10756000092E0AF400940091D90106FB5EF0009602
|
||||
:10757000929111F493959083000C081620F42E9AA2
|
||||
:107580002F9A2D9A0895937009F42E98913009F44A
|
||||
:107590002F98923009F42D980895E2EDF1E097814B
|
||||
:1075A0009923EAF08FB18095807F669B88601C9B51
|
||||
:1075B00084609581891310C09681992381F4938109
|
||||
:1075C000891306C09481992396E959F080E00AC096
|
||||
:1075D00083839095892304C085839AE0968380E015
|
||||
:1075E0009FEF9483828308958091D90186FFC7DF3E
|
||||
:1075F00022243324EDEEF1E08091D40187FD1BC0FD
|
||||
:1076000084FD32C082FF0895C685CC23E1F3F8944F
|
||||
:1076100028980088F785E02D6FDFE0E0F0E0ADEE20
|
||||
:10762000B1E061DFADEEB1E045D3E058FF4FCA9560
|
||||
:10763000B1F772DFD0C18301282D6090F601709000
|
||||
:10764000F50146D019F48823C1F70895380188243C
|
||||
:107650003FD0E1F58091F401821709F48301609035
|
||||
:10766000F8017090F701F4CF6090F8017090F70185
|
||||
:107670002FD081F48823C1F708959FEF85FD08C0BE
|
||||
:1076800086FD05C083FF0895BBDEE9F3A4C191E048
|
||||
:1076900097FB890E662477248301222719D0B1F441
|
||||
:1076A000882389F38091F40136F0881650F482170C
|
||||
:1076B00030F0213003C0881520F4281710F483011E
|
||||
:1076C000282F6090F8017090F701E8CF3801822EE2
|
||||
:1076D000F30112DFADEEB1E006DFCDEED1E0E0E088
|
||||
:1076E000F1E097E009908191081621F49A95D1F77D
|
||||
:1076F0000880801011CFC9E0F6DECA95E9F70CDFEB
|
||||
:0677000016DF8827089542
|
||||
:1077060041524455424F59D5F08D14A1C881CFD965
|
||||
:10771600F1AF020000FFFFCFCFFFFFFFFFCFCFFF8C
|
||||
:10772600FF0000FE067E7E06FE46565616FE0656EE
|
||||
:10773600461EFE3F61E9E3FFE3EBE3FFE3EBE3FF16
|
||||
:10774600E16B3F12011001020000084123360001DF
|
||||
:10775600000201000109023E000201008032090414
|
||||
:1077660000000102020100052400100104240204A5
|
||||
:107776000524060001070582030800FF090401002D
|
||||
:10778600020A000000070504021000010705830233
|
||||
:10779600100001040309042203410072006400750D
|
||||
:1077A6000069006E006F0020004C0065006F006EDF
|
||||
:1077B600006100720064006F0018034100720064EB
|
||||
:1077C60000750069006E006F0020004C004C0043FD
|
||||
:0277D6000000B1
|
||||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F91A6C00F928F939F931F9233
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840004CC038C00F920FB68F939F93EF93FF9366
|
||||
:1078500088278093850080938400E2EDF1E0978192
|
||||
:10786000907261F490818917980B908309F45D9A66
|
||||
:1078700091818917980B918309F4289A96819150E8
|
||||
:1078800008F096839481915008F09483881639F417
|
||||
:107890007C9B05C0B5DD19F0C10101961C01FF916B
|
||||
:1078A000EF915CC080E189BD82E189BD09B400FE31
|
||||
:1078B000FDCF08958091D80080FF0FC08091DA003D
|
||||
:1078C0008E7F8093DA008091D90080FF04C0EADFC8
|
||||
:1078D00081E08EBB02C019BC1EBA8091E10080FF1E
|
||||
:1078E0000BC03CD280FF08C03CD28091D80080629F
|
||||
:1078F000E2DD19BC85E08EBB8091E10084FF1AC0F7
|
||||
:107900002DD284FF17C0CEDF8091D8008F7DD3DDCC
|
||||
:107910008FEE2AD023D28F7E816026D28091DD0126
|
||||
:10792000882331F48091E30087FD02C081E001C02B
|
||||
:1079300084E08EBB8091E10083FF0CC00FD283FFF7
|
||||
:1079400009C087EF11D082E08EBB1092DD010BD011
|
||||
:1079500008D21CD26F914F910F901F909F918F91E1
|
||||
:107960000FBE0F9018958EEF0090E1000822009254
|
||||
:10797000E10008954BDDA0E0B1E0E6E0F7E7059017
|
||||
:107980000D92A13DE1F71D92BB30E9F701FD0FC05B
|
||||
:1079900000FF03C07C9B0BC008C003FF08C06757F3
|
||||
:1079A000774729F04757574711F02ADDA1F449DD01
|
||||
:1079B00022243324310188248BDE789447D00AD3E3
|
||||
:1079C000ECDD5BDE811411F00FDEF8CFC2DDC1010A
|
||||
:1079D000805B964398F3F89489EB8CDD81E080938B
|
||||
:1079E000E00010926F0010928100109285001092BA
|
||||
:1079F000840081E085BF15BEC2DD5D9A289A0C9493
|
||||
:107A00000000A7D107C054D102C0E1D239F0A3D100
|
||||
:107A100082FFFBCF85FFF7CF8091F1000895082EFC
|
||||
:107A200083E098D185FD07C08DD102C0D0D269F026
|
||||
:107A300092D180FFFBCF0092F1008091D90185FBAC
|
||||
:107A400026F05D9884E68093D201089582D182FF6A
|
||||
:107A50004AC18091D90185FB26F0289884E680935D
|
||||
:107A6000D301CFDF182F853431F48CEB94E31C0164
|
||||
:107A700025DD8DE008C1843511F4C3DFFACF8C34E5
|
||||
:107A8000C1F38035B1F3843721F484E4C8DF80E0AA
|
||||
:107A9000FAC0813611F489E5F6C0813429F4B1DFEA
|
||||
:107AA000582EAFDF482EE5CF803711F483E5EBC0C9
|
||||
:107AB000833539F4C0E0D1E08991B1DFC730E1F717
|
||||
:107AC000E3C0863521F481E3AADF84E3DCC0863796
|
||||
:107AD00061F481E3669B8E5F1C9B8F5FA0DF8FB19B
|
||||
:107AE000809582958F708F5BCEC08837A9F489DF2F
|
||||
:107AF0008093D901289A84FD28985D9A83FD5D982A
|
||||
:107B00002E9A81FD2E982F9A82FD2F982D9A80FD16
|
||||
:107B10002D9887FD8824ADCF8A3649F48FE9F3DCB0
|
||||
:107B2000C3E0FEDC7CDFCA95E1F7F6DCADC083374D
|
||||
:107B300031F487E874DF85E972DF8EE1A4C0853611
|
||||
:107B400039F4E0E8F3E7C7D0E058F040E0F791CF30
|
||||
:107B5000823631F489E563DF80E061DF80E893C03D
|
||||
:107B6000823419F0873609F07AC02224332449DFA1
|
||||
:107B7000D82F47DFC82F45DF082F8354843008F003
|
||||
:107B800081C0063411F4440C551CF20110926F00B0
|
||||
:107B90001736A1F4033471F483E0AFDCC1DC3FDFBE
|
||||
:107BA0002197E1F7B9DC08C0063411F4859101C0D2
|
||||
:107BB0008BDC35DF2197C2F72F0149C00334A1F4D4
|
||||
:107BC0008E2F8F7021F495DC80E297DC9FDC91DCB6
|
||||
:107BD00082E093DC16DFA4DCCA95E1F797DC3196EE
|
||||
:107BE000DA9571F72F0131C00634F1F49F01F437B3
|
||||
:107BF000D8F471D019C005DF063461F4C0FB46F03B
|
||||
:107C0000F43728F4182E81E087BFE89511243296C6
|
||||
:107C1000082E0AC0043439F4DF01B370A351BD4FFC
|
||||
:107C20008D93319601C054DC21972AF7043431F446
|
||||
:107C30002F01F370FE2B49F47ADC07C0063429F4D7
|
||||
:107C40002F01F901F43708F444D08DE0E8DE063462
|
||||
:107C500011F45694479482E080936F0015C08237E8
|
||||
:107C6000E1E049F08634E0E031F08E34E3E019F0F1
|
||||
:107C7000813531F4E2E0F0E089E087BF849103C010
|
||||
:107C80008B3111F08FE3CBDE83E0B1D15BD095FF78
|
||||
:107C900003C009C09CD139F15ED080FFFBCF52D028
|
||||
:107CA00002C095D101F157D080FFFBCF84E09FD176
|
||||
:107CB0008BE749C0F437B8F40ED090E40D901D90D6
|
||||
:107CC00081E087BFE89532969A95C1F71124E05874
|
||||
:107CD000F04085E001C083E001D081E187BFE895F5
|
||||
:107CE00007B600FCFDCF08959091E5018091E60173
|
||||
:107CF000913231F0913A61F5813251F538D087C037
|
||||
:107D0000803231F534D063D1E9F08530D9F023D019
|
||||
:107D100083FD18C082FFF7CF04C07EDE81936150DF
|
||||
:107D200031F09091F3008091F200892BB1F7C0DF20
|
||||
:107D3000611549F704C04BD129F0853019F00BD0FB
|
||||
:107D400080FFF9CF8EE79091E80089238093E800C7
|
||||
:107D5000089584E04CD18091E80008958091E2007C
|
||||
:107D60000895FCDF8E7F80618093E20008952DD11D
|
||||
:107D7000EEEDF1E067E0089582E061EC09D083E088
|
||||
:107D800061E802D084E060E842E103C080E060E0A6
|
||||
:107D900042E02DD181E007D01092ED006093EC001D
|
||||
:107DA0004093ED0008959091EB00892B8093EB00B8
|
||||
:107DB000089560E0923039F0933041F0913099F4B9
|
||||
:107DC000E3E462E110C0E5E56EE30DC0813018F434
|
||||
:107DD000E3E964E008C019F4E7E962E204C0823034
|
||||
:107DE00011F4E9EB68E1F1E008958091E501882361
|
||||
:107DF0004CF402C0ECD051F0AEDF82FFFBCF58CF85
|
||||
:107E0000E6D021F0A8DF80FFFBCF9CDF08954091F2
|
||||
:107E1000EB015091EC014617510510F490E028C099
|
||||
:107E2000611511F0462FFACF8DDF40E0F7CFCFD0AC
|
||||
:107E300059F1853049F18FDF83FD3ACF8CDF82FD28
|
||||
:107E400020C080FF15C03091F3002091F20005C0E2
|
||||
:107E500081918093F10041502F5F411519F0283036
|
||||
:107E60003105B0F350E02830310509F451E06ADF04
|
||||
:107E70004115E9F65523D9F604C0A9D029F085307B
|
||||
:107E800019F069DF82FFF9CF13CFE5EEF1E0C4DD31
|
||||
:107E90008193ED3EE1F728DF5EDF83FF91C08091A3
|
||||
:107EA000E5019091E601913009F170F09330F1F025
|
||||
:107EB000953009F444C0963009F456C0983009F45E
|
||||
:107EC00060C0993059F767C0823841F78091E90165
|
||||
:107ED0008DD02091EB001092E90077D02295269565
|
||||
:107EE00021702093F1001092F10052C0882311F00C
|
||||
:107EF0008230A1F68F71823089F68091E701882364
|
||||
:107F0000D1F42091E901277049F22093E900809192
|
||||
:107F1000EB0080FF10C0933011F480E20BC080E1D1
|
||||
:107F200042DF81E0880F2A95E9F78093EA001092FA
|
||||
:107F3000EA0088E038DF1092E90047D02AC08823A1
|
||||
:107F400091F41091E70110680FB7F8943ED04DDF1F
|
||||
:107F500002DF80FFFDCF1093E300103883E009F4C7
|
||||
:107F600082E08EBB0FBF2CC08058823048F58091D4
|
||||
:107F7000E7019091E8011DDF603011F126D047DF65
|
||||
:107F80001FC08038E9F421D08091DD018093F10099
|
||||
:107F9000D9DE2BDF15C0882399F49091E701923048
|
||||
:107FA00078F49093DD0111D020DF8091DD018823EA
|
||||
:107FB00021F48091E30091E087FD94E09EBBDCDE3C
|
||||
:107FC000CADE83FF089580E2EEDE87EFBCCE8EB37B
|
||||
:107FD00088230895FCDF69F08091E9008F93109267
|
||||
:107FE000E900B9DE83FF01C050DF8F918770809375
|
||||
:047FF000E900089507
|
||||
:047FFC005BCEFBDC81
|
||||
:040000030000740085
|
||||
:00000001FF
|
|
@ -0,0 +1,196 @@
|
|||
:10740000E0E0F0E0859194910196089520E82093C2
|
||||
:1074100061001092610081E085BF82E085BF87EE48
|
||||
:1074200084B981EF85B91DB8769A10BA80EF81BB17
|
||||
:1074300084EF8AB984E68BB980E58CBD81E08DBD8F
|
||||
:10744000089584EA8BB98BEA5DD0109289008AEFA7
|
||||
:107450008093880082E080936F0083E080938100B6
|
||||
:107460005C9AE0E0F0E280E063D03197E1F75C986D
|
||||
:10747000E7E0F1E05CD0EA31E9F7ABE2B4E0EAE161
|
||||
:10748000F1E003E010E101900D921A95E1F7A059A7
|
||||
:10749000BF4F0A95B9F753D081E08093D7008AE4B3
|
||||
:1074A00082BF1092D8001092E2001092DA0010927F
|
||||
:1074B000E10080E808D019BC1EBA1092E00066D442
|
||||
:1074C00089E052D481E98093D8000895F201F999B6
|
||||
:1074D000FECFF2BDE1BD0895F9DFF89A80B508C08E
|
||||
:1074E000F5DF1FBA80BD0FB6F894FA9AF99A0FBE6D
|
||||
:1074F00031962F01089590E81BD08D939A95E1F76E
|
||||
:10750000089586E008D010C083E005D08F2F10D0FA
|
||||
:107510008E2F0ED080E05E9A5A980AC005D085E082
|
||||
:10752000FADF06D080FDFDCF5A9A5E9808958191CA
|
||||
:107530008EBD8DB5000087FFFCCF8EB50895E3EFBB
|
||||
:10754000F2E05C9A40E458E06081718198E08FEF4E
|
||||
:1075500060FF8F7070FF807FEBDF669576959A9560
|
||||
:10756000B1F7E058FF4F5A9579F7EE5FF3404A952F
|
||||
:1075700051F70895E1EEF1E08191908101969083B9
|
||||
:107580008293092E0AF400940091DF0106FB5EF05D
|
||||
:107590000096929111F493959083000C081620F4B4
|
||||
:1075A0002E9A2F9A2D9A0895937009F42E9891305F
|
||||
:1075B00009F42F98923009F42D980895E8EDF1E040
|
||||
:1075C00097819923EAF08FB18095807F669B8860D0
|
||||
:1075D0001C9B84609581891310C09681992381F446
|
||||
:1075E0009381891306C09481992396E959F080E02C
|
||||
:1075F0000AC083839095892304C085839AE096838B
|
||||
:1076000080E09FEF9483828308958091DF0186FF5D
|
||||
:10761000C7DF22243324E3EFF1E08091DA0187FD14
|
||||
:107620001BC084FD32C082FF0895C685CC23E1F3E0
|
||||
:10763000F89428980088F785E02D66DFE0E0F0E018
|
||||
:10764000A3EFB1E058DFA3EFB1E034D3E058FF4F30
|
||||
:10765000CA95B1F769DFBFC18301282D6090FC0195
|
||||
:107660007090FB0146D019F48823C1F708953801C2
|
||||
:1076700088243FD0E1F58091FA01821709F4830153
|
||||
:107680006090FE017090FD01F4CF6090FE0170905B
|
||||
:10769000FD012FD081F48823C1F708959FEF85FD68
|
||||
:1076A00008C086FD05C083FF0895AADEE9F393C1F3
|
||||
:1076B00091E097FB890E662477248301222719D055
|
||||
:1076C000B1F4882389F38091FA0136F0881650F4DA
|
||||
:1076D000821730F0213003C0881520F4281710F4E9
|
||||
:1076E0008301282F6090FE017090FD01E8CF3801E2
|
||||
:1076F000822EF30109DFA3EFB1E0FDDEC3EFD1E09D
|
||||
:10770000E0E0F1E097E009908191081621F49A9564
|
||||
:10771000D1F70880801008CFC9E0EDDECA95E9F7FF
|
||||
:0877200003DF0DDF8827089547
|
||||
:1077280041524455424F5915003F75205FA055A15D
|
||||
:1077380000A200A87F81CFB121AF0000FFFFCFCF0B
|
||||
:10774800FFFFFFFFCFCFFFFF0000FE067E7E06FE95
|
||||
:1077580046565616FE0656461EFE3F61E9E3FFE30F
|
||||
:10776800EBE3FFE3EBE3FFE16B3F120110010200E3
|
||||
:1077780000084123360001000201000109023E0011
|
||||
:107788000201008032090400000102020100052400
|
||||
:1077980000100104240204052406000107058203E1
|
||||
:1077A8000800FF09040100020A000000070504029E
|
||||
:1077B80010000107058302100001040309042203D5
|
||||
:1077C800410072006400750069006E006F002000BF
|
||||
:1077D8004C0065006F006E006100720064006F006D
|
||||
:1077E8001803410072006400750069006E006F00A4
|
||||
:0877F80020004C004C0043008E
|
||||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F91A6C00F928F939F931F9233
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840004CC038C00F920FB68F939F93EF93FF9366
|
||||
:1078500088278093850080938400E8EDF1E097818C
|
||||
:10786000907261F490818917980B908309F45D9A66
|
||||
:1078700091818917980B918309F4289A96819150E8
|
||||
:1078800008F096839481915008F09483881639F417
|
||||
:107890007C9B05C0B5DD19F0C10101961C01FF916B
|
||||
:1078A000EF915CC080E189BD82E189BD09B400FE31
|
||||
:1078B000FDCF08958091D80080FF0FC08091DA003D
|
||||
:1078C0008E7F8093DA008091D90080FF04C0EADFC8
|
||||
:1078D00081E08EBB02C019BC1EBA8091E10080FF1E
|
||||
:1078E0000BC03CD280FF08C03CD28091D80080629F
|
||||
:1078F000EADD19BC85E08EBB8091E10084FF1AC0EF
|
||||
:107900002DD284FF17C0CEDF8091D8008F7DDBDDC4
|
||||
:107910008FEE2AD023D28F7E816026D28091E30120
|
||||
:10792000882331F48091E30087FD02C081E001C02B
|
||||
:1079300084E08EBB8091E10083FF0CC00FD283FFF7
|
||||
:1079400009C087EF11D082E08EBB1092E3010BD00B
|
||||
:1079500008D21CD26F914F910F901F909F918F91E1
|
||||
:107960000FBE0F9018958EEF0090E1000822009254
|
||||
:10797000E10008954BDDA0E0B1E0E8E2F7E7059013
|
||||
:107980000D92A83DE1F71D92BB30E9F701FD0FC054
|
||||
:1079900000FF03C07C9B0BC008C003FF08C06757F3
|
||||
:1079A000774729F04757574711F02ADDA1F449DD01
|
||||
:1079B00022243324310188249CDE789447D00AD3D2
|
||||
:1079C000FDDD6CDE811411F020DEF8CFD3DDC101C6
|
||||
:1079D000805B964398F3F89489EB94DD81E0809383
|
||||
:1079E000E00010926F0010928100109285001092BA
|
||||
:1079F000840081E085BF15BED3DD5D9A289A0C9482
|
||||
:107A00000000A7D107C054D102C0E1D239F0A3D100
|
||||
:107A100082FFFBCF85FFF7CF8091F1000895082EFC
|
||||
:107A200083E098D185FD07C08DD102C0D0D269F026
|
||||
:107A300092D180FFFBCF0092F1008091DF0185FBA6
|
||||
:107A400026F05D9884E68093D801089582D182FF64
|
||||
:107A50004AC18091DF0185FB26F0289884E6809357
|
||||
:107A6000D901CFDF182F853431F48CEB94E31C015E
|
||||
:107A70002DDD8DE008C1843511F4C3DFFACF8C34DD
|
||||
:107A8000C1F38035B1F3843721F484E4C8DF80E0AA
|
||||
:107A9000FAC0813611F489E5F6C0813429F4B1DFEA
|
||||
:107AA000582EAFDF482EE5CF803711F483E5EBC0C9
|
||||
:107AB000833539F4C0E0D1E08991B1DFC730E1F717
|
||||
:107AC000E3C0863521F481E3AADF84E3DCC0863796
|
||||
:107AD00061F481E3669B8E5F1C9B8F5FA0DF8FB19B
|
||||
:107AE000809582958F708F5BCEC08837A9F489DF2F
|
||||
:107AF0008093DF01289A84FD28985D9A83FD5D9824
|
||||
:107B00002E9A81FD2E982F9A82FD2F982D9A80FD16
|
||||
:107B10002D9887FD8824ADCF8A3649F48FE9FBDCA8
|
||||
:107B2000C3E006DD7CDFCA95E1F7FEDCADC083373C
|
||||
:107B300031F487E874DF85E972DF8EE1A4C0853611
|
||||
:107B400039F4E0E8F3E7C7D0E058F040E0F791CF30
|
||||
:107B5000823631F489E563DF80E061DF80E893C03D
|
||||
:107B6000823419F0873609F07AC02224332449DFA1
|
||||
:107B7000D82F47DFC82F45DF082F8354843008F003
|
||||
:107B800081C0063411F4440C551CF20110926F00B0
|
||||
:107B90001736A1F4033471F483E0B7DCC9DC3FDFAE
|
||||
:107BA0002197E1F7C1DC08C0063411F4859101C0CA
|
||||
:107BB00093DC35DF2197C2F72F0149C00334A1F4CC
|
||||
:107BC0008E2F8F7021F49DDC80E29FDCA7DC99DC96
|
||||
:107BD00082E09BDC16DFACDCCA95E1F79FDC3196D6
|
||||
:107BE000DA9571F72F0131C00634F1F49F01F437B3
|
||||
:107BF000D8F471D019C005DF063461F4C0FB46F03B
|
||||
:107C0000F43728F4182E81E087BFE89511243296C6
|
||||
:107C1000082E0AC0043439F4DF01B370AD50BD4FF3
|
||||
:107C20008D93319601C05CDC21972AF7043431F43E
|
||||
:107C30002F01F370FE2B49F482DC07C0063429F4CF
|
||||
:107C40002F01F901F43708F444D08DE0E8DE063462
|
||||
:107C500011F45694479482E080936F0015C08237E8
|
||||
:107C6000E1E049F08634E0E031F08E34E3E019F0F1
|
||||
:107C7000813531F4E2E0F0E089E087BF849103C010
|
||||
:107C80008B3111F08FE3CBDE83E0B1D15BD095FF78
|
||||
:107C900003C009C09CD139F15ED080FFFBCF52D028
|
||||
:107CA00002C095D101F157D080FFFBCF84E09FD176
|
||||
:107CB0008BE749C0F437B8F40ED090E40D901D90D6
|
||||
:107CC00081E087BFE89532969A95C1F71124E05874
|
||||
:107CD000F04085E001C083E001D081E187BFE895F5
|
||||
:107CE00007B600FCFDCF08959091EB018091EC0167
|
||||
:107CF000913231F0913A61F5813251F538D087C037
|
||||
:107D0000803231F534D063D1E9F08530D9F023D019
|
||||
:107D100083FD18C082FFF7CF04C07EDE81936150DF
|
||||
:107D200031F09091F3008091F200892BB1F7C0DF20
|
||||
:107D3000611549F704C04BD129F0853019F00BD0FB
|
||||
:107D400080FFF9CF8EE79091E80089238093E800C7
|
||||
:107D5000089584E04CD18091E80008958091E2007C
|
||||
:107D60000895FCDF8E7F80618093E20008952DD11D
|
||||
:107D7000E4EEF1E067E0089582E061EC09D083E091
|
||||
:107D800061E802D084E060E842E103C080E060E0A6
|
||||
:107D900042E02DD181E007D01092ED006093EC001D
|
||||
:107DA0004093ED0008959091EB00892B8093EB00B8
|
||||
:107DB000089560E0923039F0933041F0913099F4B9
|
||||
:107DC000EAE462E110C0ECE56EE30DC0813018F426
|
||||
:107DD000EAE964E008C019F4EEE962E204C0823026
|
||||
:107DE00011F4E0EC68E1F1E008958091EB01882363
|
||||
:107DF0004CF402C0ECD051F0AEDF82FFFBCF58CF85
|
||||
:107E0000E6D021F0A8DF80FFFBCF9CDF08954091F2
|
||||
:107E1000F1015091F2014617510510F490E028C08D
|
||||
:107E2000611511F0462FFACF8DDF40E0F7CFCFD0AC
|
||||
:107E300059F1853049F18FDF83FD3ACF8CDF82FD28
|
||||
:107E400020C080FF15C03091F3002091F20005C0E2
|
||||
:107E500081918093F10041502F5F411519F0283036
|
||||
:107E60003105B0F350E02830310509F451E06ADF04
|
||||
:107E70004115E9F65523D9F604C0A9D029F085307B
|
||||
:107E800019F069DF82FFF9CF13CFEBEEF1E0C4DD2B
|
||||
:107E90008193E33FE1F728DF5EDF83FF91C08091AC
|
||||
:107EA000EB019091EC01913009F170F09330F1F019
|
||||
:107EB000953009F444C0963009F456C0983009F45E
|
||||
:107EC00060C0993059F767C0823841F78091EF015F
|
||||
:107ED0008DD02091EB001092E90077D02295269565
|
||||
:107EE00021702093F1001092F10052C0882311F00C
|
||||
:107EF0008230A1F68F71823089F68091ED0188235E
|
||||
:107F0000D1F42091EF01277049F22093E90080918C
|
||||
:107F1000EB0080FF10C0933011F480E20BC080E1D1
|
||||
:107F200042DF81E0880F2A95E9F78093EA001092FA
|
||||
:107F3000EA0088E038DF1092E90047D02AC08823A1
|
||||
:107F400091F41091ED0110680FB7F8943ED04DDF19
|
||||
:107F500002DF80FFFDCF1093E300103883E009F4C7
|
||||
:107F600082E08EBB0FBF2CC08058823048F58091D4
|
||||
:107F7000ED019091EE011DDF603011F126D047DF59
|
||||
:107F80001FC08038E9F421D08091E3018093F10093
|
||||
:107F9000D9DE2BDF15C0882399F49091ED01923042
|
||||
:107FA00078F49093E30111D020DF8091E3018823DE
|
||||
:107FB00021F48091E30091E087FD94E09EBBDCDE3C
|
||||
:107FC000CADE83FF089580E2EEDE87EFBCCE8EB37B
|
||||
:107FD00088230895FCDF69F08091E9008F93109267
|
||||
:107FE000E900B9DE83FF01C050DF8F918770809375
|
||||
:047FF000E900089507
|
||||
:047FFC005BCEFBDC81
|
||||
:040000030000740085
|
||||
:00000001FF
|
|
@ -0,0 +1,196 @@
|
|||
:10740000E0E0F0E0859194910196089520E82093C2
|
||||
:1074100061001092610081E085BF82E085BF87EE48
|
||||
:1074200084B981EF85B91DB8769A10BA80EF81BB17
|
||||
:1074300084EF8AB984E68BB980E58CBD81E08DBD8F
|
||||
:10744000089584EA8BB98BEA5DD0109289008AEFA7
|
||||
:107450008093880082E080936F0083E080938100B6
|
||||
:107460005C9AE0E0F0E280E063D03197E1F75C986D
|
||||
:10747000E7E0F1E05CD0EA31E9F7ABE2B4E0EAE161
|
||||
:10748000F1E003E010E101900D921A95E1F7A059A7
|
||||
:10749000BF4F0A95B9F753D081E08093D7008AE4B3
|
||||
:1074A00082BF1092D8001092E2001092DA0010927F
|
||||
:1074B000E10080E808D019BC1EBA1092E00066D442
|
||||
:1074C00089E052D481E98093D8000895F201F999B6
|
||||
:1074D000FECFF2BDE1BD0895F9DFF89A80B508C08E
|
||||
:1074E000F5DF1FBA80BD0FB6F894FA9AF99A0FBE6D
|
||||
:1074F00031962F01089590E81BD08D939A95E1F76E
|
||||
:10750000089586E008D010C083E005D08F2F10D0FA
|
||||
:107510008E2F0ED080E05E9A5A980AC005D085E082
|
||||
:10752000FADF06D080FDFDCF5A9A5E9808958191CA
|
||||
:107530008EBD8DB5000087FFFCCF8EB50895E3EFBB
|
||||
:10754000F2E05C9A40E458E06081718198E08FEF4E
|
||||
:1075500060FF8F7070FF807FEBDF669576959A9560
|
||||
:10756000B1F7E058FF4F5A9579F7EE5FF3404A952F
|
||||
:1075700051F70895E1EEF1E08191908101969083B9
|
||||
:107580008293092E0AF400940091DF0106FB5EF05D
|
||||
:107590000096929111F493959083000C081620F4B4
|
||||
:1075A0002E9A2F9A2D9A0895937009F42E9891305F
|
||||
:1075B00009F42F98923009F42D980895E8EDF1E040
|
||||
:1075C00097819923EAF08FB18095807F669B8860D0
|
||||
:1075D0001C9B84609581891310C09681992381F446
|
||||
:1075E0009381891306C09481992396E959F080E02C
|
||||
:1075F0000AC083839095892304C085839AE096838B
|
||||
:1076000080E09FEF9483828308958091DF0186FF5D
|
||||
:10761000C7DF22243324E3EFF1E08091DA0187FD14
|
||||
:107620001BC084FD32C082FF0895C685CC23E1F3E0
|
||||
:10763000F89428980088F785E02D66DFE0E0F0E018
|
||||
:10764000A3EFB1E058DFA3EFB1E034D3E058FF4F30
|
||||
:10765000CA95B1F769DFBFC18301282D6090FC0195
|
||||
:107660007090FB0146D019F48823C1F708953801C2
|
||||
:1076700088243FD0E1F58091FA01821709F4830153
|
||||
:107680006090FE017090FD01F4CF6090FE0170905B
|
||||
:10769000FD012FD081F48823C1F708959FEF85FD68
|
||||
:1076A00008C086FD05C083FF0895AADEE9F393C1F3
|
||||
:1076B00091E097FB890E662477248301222719D055
|
||||
:1076C000B1F4882389F38091FA0136F0881650F4DA
|
||||
:1076D000821730F0213003C0881520F4281710F4E9
|
||||
:1076E0008301282F6090FE017090FD01E8CF3801E2
|
||||
:1076F000822EF30109DFA3EFB1E0FDDEC3EFD1E09D
|
||||
:10770000E0E0F1E097E009908191081621F49A9564
|
||||
:10771000D1F70880801008CFC9E0EDDECA95E9F7FF
|
||||
:0877200003DF0DDF8827089547
|
||||
:1077280041524455424F5915003F75104FA055A17D
|
||||
:1077380000A200A87F81CFB121AF0000FFFFCFCF0B
|
||||
:10774800FFFFFFFFCFCFFFFF0000FE067E7E06FE95
|
||||
:1077580046565616FE0656461EFE3F61E9E3FFE30F
|
||||
:10776800EBE3FFE3EBE3FFE16B3F120110010200E3
|
||||
:1077780000084123360001000201000109023E0011
|
||||
:107788000201008032090400000102020100052400
|
||||
:1077980000100104240204052406000107058203E1
|
||||
:1077A8000800FF09040100020A000000070504029E
|
||||
:1077B80010000107058302100001040309042203D5
|
||||
:1077C800410072006400750069006E006F002000BF
|
||||
:1077D8004C0065006F006E006100720064006F006D
|
||||
:1077E8001803410072006400750069006E006F00A4
|
||||
:0877F80020004C004C0043008E
|
||||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F91A6C00F928F939F931F9233
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840004CC038C00F920FB68F939F93EF93FF9366
|
||||
:1078500088278093850080938400E8EDF1E097818C
|
||||
:10786000907261F490818917980B908309F45D9A66
|
||||
:1078700091818917980B918309F4289A96819150E8
|
||||
:1078800008F096839481915008F09483881639F417
|
||||
:107890007C9B05C0B5DD19F0C10101961C01FF916B
|
||||
:1078A000EF915CC080E189BD82E189BD09B400FE31
|
||||
:1078B000FDCF08958091D80080FF0FC08091DA003D
|
||||
:1078C0008E7F8093DA008091D90080FF04C0EADFC8
|
||||
:1078D00081E08EBB02C019BC1EBA8091E10080FF1E
|
||||
:1078E0000BC03CD280FF08C03CD28091D80080629F
|
||||
:1078F000EADD19BC85E08EBB8091E10084FF1AC0EF
|
||||
:107900002DD284FF17C0CEDF8091D8008F7DDBDDC4
|
||||
:107910008FEE2AD023D28F7E816026D28091E30120
|
||||
:10792000882331F48091E30087FD02C081E001C02B
|
||||
:1079300084E08EBB8091E10083FF0CC00FD283FFF7
|
||||
:1079400009C087EF11D082E08EBB1092E3010BD00B
|
||||
:1079500008D21CD26F914F910F901F909F918F91E1
|
||||
:107960000FBE0F9018958EEF0090E1000822009254
|
||||
:10797000E10008954BDDA0E0B1E0E8E2F7E7059013
|
||||
:107980000D92A83DE1F71D92BB30E9F701FD0FC054
|
||||
:1079900000FF03C07C9B0BC008C003FF08C06757F3
|
||||
:1079A000774729F04757574711F02ADDA1F449DD01
|
||||
:1079B00022243324310188249CDE789447D00AD3D2
|
||||
:1079C000FDDD6CDE811411F020DEF8CFD3DDC101C6
|
||||
:1079D000805B964398F3F89489EB94DD81E0809383
|
||||
:1079E000E00010926F0010928100109285001092BA
|
||||
:1079F000840081E085BF15BED3DD5D9A289A0C9482
|
||||
:107A00000000A7D107C054D102C0E1D239F0A3D100
|
||||
:107A100082FFFBCF85FFF7CF8091F1000895082EFC
|
||||
:107A200083E098D185FD07C08DD102C0D0D269F026
|
||||
:107A300092D180FFFBCF0092F1008091DF0185FBA6
|
||||
:107A400026F05D9884E68093D801089582D182FF64
|
||||
:107A50004AC18091DF0185FB26F0289884E6809357
|
||||
:107A6000D901CFDF182F853431F48CEB94E31C015E
|
||||
:107A70002DDD8DE008C1843511F4C3DFFACF8C34DD
|
||||
:107A8000C1F38035B1F3843721F484E4C8DF80E0AA
|
||||
:107A9000FAC0813611F489E5F6C0813429F4B1DFEA
|
||||
:107AA000582EAFDF482EE5CF803711F483E5EBC0C9
|
||||
:107AB000833539F4C0E0D1E08991B1DFC730E1F717
|
||||
:107AC000E3C0863521F481E3AADF84E3DCC0863796
|
||||
:107AD00061F481E3669B8E5F1C9B8F5FA0DF8FB19B
|
||||
:107AE000809582958F708F5BCEC08837A9F489DF2F
|
||||
:107AF0008093DF01289A84FD28985D9A83FD5D9824
|
||||
:107B00002E9A81FD2E982F9A82FD2F982D9A80FD16
|
||||
:107B10002D9887FD8824ADCF8A3649F48FE9FBDCA8
|
||||
:107B2000C3E006DD7CDFCA95E1F7FEDCADC083373C
|
||||
:107B300031F487E874DF85E972DF8EE1A4C0853611
|
||||
:107B400039F4E0E8F3E7C7D0E058F040E0F791CF30
|
||||
:107B5000823631F489E563DF80E061DF80E893C03D
|
||||
:107B6000823419F0873609F07AC02224332449DFA1
|
||||
:107B7000D82F47DFC82F45DF082F8354843008F003
|
||||
:107B800081C0063411F4440C551CF20110926F00B0
|
||||
:107B90001736A1F4033471F483E0B7DCC9DC3FDFAE
|
||||
:107BA0002197E1F7C1DC08C0063411F4859101C0CA
|
||||
:107BB00093DC35DF2197C2F72F0149C00334A1F4CC
|
||||
:107BC0008E2F8F7021F49DDC80E29FDCA7DC99DC96
|
||||
:107BD00082E09BDC16DFACDCCA95E1F79FDC3196D6
|
||||
:107BE000DA9571F72F0131C00634F1F49F01F437B3
|
||||
:107BF000D8F471D019C005DF063461F4C0FB46F03B
|
||||
:107C0000F43728F4182E81E087BFE89511243296C6
|
||||
:107C1000082E0AC0043439F4DF01B370AD50BD4FF3
|
||||
:107C20008D93319601C05CDC21972AF7043431F43E
|
||||
:107C30002F01F370FE2B49F482DC07C0063429F4CF
|
||||
:107C40002F01F901F43708F444D08DE0E8DE063462
|
||||
:107C500011F45694479482E080936F0015C08237E8
|
||||
:107C6000E1E049F08634E0E031F08E34E3E019F0F1
|
||||
:107C7000813531F4E2E0F0E089E087BF849103C010
|
||||
:107C80008B3111F08FE3CBDE83E0B1D15BD095FF78
|
||||
:107C900003C009C09CD139F15ED080FFFBCF52D028
|
||||
:107CA00002C095D101F157D080FFFBCF84E09FD176
|
||||
:107CB0008BE749C0F437B8F40ED090E40D901D90D6
|
||||
:107CC00081E087BFE89532969A95C1F71124E05874
|
||||
:107CD000F04085E001C083E001D081E187BFE895F5
|
||||
:107CE00007B600FCFDCF08959091EB018091EC0167
|
||||
:107CF000913231F0913A61F5813251F538D087C037
|
||||
:107D0000803231F534D063D1E9F08530D9F023D019
|
||||
:107D100083FD18C082FFF7CF04C07EDE81936150DF
|
||||
:107D200031F09091F3008091F200892BB1F7C0DF20
|
||||
:107D3000611549F704C04BD129F0853019F00BD0FB
|
||||
:107D400080FFF9CF8EE79091E80089238093E800C7
|
||||
:107D5000089584E04CD18091E80008958091E2007C
|
||||
:107D60000895FCDF8E7F80618093E20008952DD11D
|
||||
:107D7000E4EEF1E067E0089582E061EC09D083E091
|
||||
:107D800061E802D084E060E842E103C080E060E0A6
|
||||
:107D900042E02DD181E007D01092ED006093EC001D
|
||||
:107DA0004093ED0008959091EB00892B8093EB00B8
|
||||
:107DB000089560E0923039F0933041F0913099F4B9
|
||||
:107DC000EAE462E110C0ECE56EE30DC0813018F426
|
||||
:107DD000EAE964E008C019F4EEE962E204C0823026
|
||||
:107DE00011F4E0EC68E1F1E008958091EB01882363
|
||||
:107DF0004CF402C0ECD051F0AEDF82FFFBCF58CF85
|
||||
:107E0000E6D021F0A8DF80FFFBCF9CDF08954091F2
|
||||
:107E1000F1015091F2014617510510F490E028C08D
|
||||
:107E2000611511F0462FFACF8DDF40E0F7CFCFD0AC
|
||||
:107E300059F1853049F18FDF83FD3ACF8CDF82FD28
|
||||
:107E400020C080FF15C03091F3002091F20005C0E2
|
||||
:107E500081918093F10041502F5F411519F0283036
|
||||
:107E60003105B0F350E02830310509F451E06ADF04
|
||||
:107E70004115E9F65523D9F604C0A9D029F085307B
|
||||
:107E800019F069DF82FFF9CF13CFEBEEF1E0C4DD2B
|
||||
:107E90008193E33FE1F728DF5EDF83FF91C08091AC
|
||||
:107EA000EB019091EC01913009F170F09330F1F019
|
||||
:107EB000953009F444C0963009F456C0983009F45E
|
||||
:107EC00060C0993059F767C0823841F78091EF015F
|
||||
:107ED0008DD02091EB001092E90077D02295269565
|
||||
:107EE00021702093F1001092F10052C0882311F00C
|
||||
:107EF0008230A1F68F71823089F68091ED0188235E
|
||||
:107F0000D1F42091EF01277049F22093E90080918C
|
||||
:107F1000EB0080FF10C0933011F480E20BC080E1D1
|
||||
:107F200042DF81E0880F2A95E9F78093EA001092FA
|
||||
:107F3000EA0088E038DF1092E90047D02AC08823A1
|
||||
:107F400091F41091ED0110680FB7F8943ED04DDF19
|
||||
:107F500002DF80FFFDCF1093E300103883E009F4C7
|
||||
:107F600082E08EBB0FBF2CC08058823048F58091D4
|
||||
:107F7000ED019091EE011DDF603011F126D047DF59
|
||||
:107F80001FC08038E9F421D08091E3018093F10093
|
||||
:107F9000D9DE2BDF15C0882399F49091ED01923042
|
||||
:107FA00078F49093E30111D020DF8091E3018823DE
|
||||
:107FB00021F48091E30091E087FD94E09EBBDCDE3C
|
||||
:107FC000CADE83FF089580E2EEDE87EFBCCE8EB37B
|
||||
:107FD00088230895FCDF69F08091E9008F93109267
|
||||
:107FE000E900B9DE83FF01C050DF8F918770809375
|
||||
:047FF000E900089507
|
||||
:047FFC005BCEFBDC81
|
||||
:040000030000740085
|
||||
:00000001FF
|
|
@ -0,0 +1,196 @@
|
|||
:10740000E0E0F0E0859194910196089520E82093C2
|
||||
:1074100061001092610081E085BF82E085BF87EE48
|
||||
:1074200084B981EF85B91DB8769A10BA80EF81BB17
|
||||
:1074300084EF8AB984E68BB980E58CBD81E08DBD8F
|
||||
:10744000089584EA8BB98BEA5DD0109289008AEFA7
|
||||
:107450008093880082E080936F0083E080938100B6
|
||||
:107460005C9AE0E0F0E280E063D03197E1F75C986D
|
||||
:10747000E7E0F1E05CD0EA31E9F7ABE2B4E0EAE161
|
||||
:10748000F1E003E010E101900D921A95E1F7A059A7
|
||||
:10749000BF4F0A95B9F753D081E08093D7008AE4B3
|
||||
:1074A00082BF1092D8001092E2001092DA0010927F
|
||||
:1074B000E10080E808D019BC1EBA1092E00066D442
|
||||
:1074C00089E052D481E98093D8000895F201F999B6
|
||||
:1074D000FECFF2BDE1BD0895F9DFF89A80B508C08E
|
||||
:1074E000F5DF1FBA80BD0FB6F894FA9AF99A0FBE6D
|
||||
:1074F00031962F01089590E81BD08D939A95E1F76E
|
||||
:10750000089586E008D010C083E005D08F2F10D0FA
|
||||
:107510008E2F0ED080E05E9A5A980AC005D085E082
|
||||
:10752000FADF06D080FDFDCF5A9A5E9808958191CA
|
||||
:107530008EBD8DB5000087FFFCCF8EB50895E3E0CA
|
||||
:10754000F3E05C9A40E358E06081718198E08FEF4E
|
||||
:1075500060FF8F7070FF807FEBDF669576959A9560
|
||||
:10756000B1F7E058FF4F5A9579F7EE5FF3404A952F
|
||||
:1075700051F70895E1EEF1E08191908101969083B9
|
||||
:107580008293092E0AF400940091DF0106FB5EF05D
|
||||
:107590000096929111F493959083000C081620F4B4
|
||||
:1075A0002E9A2F9A2D9A0895937009F42E9891305F
|
||||
:1075B00009F42F98923009F42D980895E8EDF1E040
|
||||
:1075C00097819923EAF08FB18095807F669B8860D0
|
||||
:1075D0001C9B84609581891310C09681992381F446
|
||||
:1075E0009381891306C09481992396E959F080E02C
|
||||
:1075F0000AC083839095892304C085839AE096838B
|
||||
:1076000080E09FEF9483828308958091DF0186FF5D
|
||||
:10761000C7DF22243324E3EFF1E08091DA0187FD14
|
||||
:107620001BC084FD32C082FF0895C685CC23E1F3E0
|
||||
:10763000F89428980088F785E02D66DFE0E0F0E018
|
||||
:10764000A3EFB1E058DFA3EFB1E034D3E058FF4F30
|
||||
:10765000CA95B1F769DFBFC18301282D6090FC0195
|
||||
:107660007090FB0146D019F48823C1F708953801C2
|
||||
:1076700088243FD0E1F58091FA01821709F4830153
|
||||
:107680006090FE017090FD01F4CF6090FE0170905B
|
||||
:10769000FD012FD081F48823C1F708959FEF85FD68
|
||||
:1076A00008C086FD05C083FF0895AADEE9F393C1F3
|
||||
:1076B00091E097FB890E662477248301222719D055
|
||||
:1076C000B1F4882389F38091FA0136F0881650F4DA
|
||||
:1076D000821730F0213003C0881520F4281710F4E9
|
||||
:1076E0008301282F6090FE017090FD01E8CF3801E2
|
||||
:1076F000822EF30109DFA3EFB1E0FDDEC3EFD1E09D
|
||||
:10770000E0E0F1E097E009908191081621F49A9564
|
||||
:10771000D1F70880801008CFC9E0EDDECA95E9F7FF
|
||||
:0877200003DF0DDF8827089547
|
||||
:1077280041524455424F5915103F75306FA055A12D
|
||||
:1077380000A200A87F81CFB121AF0000FFFFCFCF0B
|
||||
:10774800FFFFFFFFCFCFFFFF0000FE067E7E06FE95
|
||||
:1077580046565616FE0656461EFE3F61E9E3FFE30F
|
||||
:10776800EBE3FFE3EBE3FFE16B3F120110010200E3
|
||||
:1077780000084123360001000201000109023E0011
|
||||
:107788000201008032090400000102020100052400
|
||||
:1077980000100104240204052406000107058203E1
|
||||
:1077A8000800FF09040100020A000000070504029E
|
||||
:1077B80010000107058302100001040309042203D5
|
||||
:1077C800410072006400750069006E006F002000BF
|
||||
:1077D8004C0065006F006E006100720064006F006D
|
||||
:1077E8001803410072006400750069006E006F00A4
|
||||
:0877F80020004C004C0043008E
|
||||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F91A6C00F928F939F931F9233
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840004CC038C00F920FB68F939F93EF93FF9366
|
||||
:1078500088278093850080938400E8EDF1E097818C
|
||||
:10786000907261F490818917980B908309F45D9A66
|
||||
:1078700091818917980B918309F4289A96819150E8
|
||||
:1078800008F096839481915008F09483881639F417
|
||||
:107890007C9B05C0B5DD19F0C10101961C01FF916B
|
||||
:1078A000EF915CC080E189BD82E189BD09B400FE31
|
||||
:1078B000FDCF08958091D80080FF0FC08091DA003D
|
||||
:1078C0008E7F8093DA008091D90080FF04C0EADFC8
|
||||
:1078D00081E08EBB02C019BC1EBA8091E10080FF1E
|
||||
:1078E0000BC03CD280FF08C03CD28091D80080629F
|
||||
:1078F000EADD19BC85E08EBB8091E10084FF1AC0EF
|
||||
:107900002DD284FF17C0CEDF8091D8008F7DDBDDC4
|
||||
:107910008FEE2AD023D28F7E816026D28091E30120
|
||||
:10792000882331F48091E30087FD02C081E001C02B
|
||||
:1079300084E08EBB8091E10083FF0CC00FD283FFF7
|
||||
:1079400009C087EF11D082E08EBB1092E3010BD00B
|
||||
:1079500008D21CD26F914F910F901F909F918F91E1
|
||||
:107960000FBE0F9018958EEF0090E1000822009254
|
||||
:10797000E10008954BDDA0E0B1E0E8E2F7E7059013
|
||||
:107980000D92A83DE1F71D92BB30E9F701FD0FC054
|
||||
:1079900000FF03C07C9B0BC008C003FF08C06757F3
|
||||
:1079A000774729F04757574711F02ADDA1F449DD01
|
||||
:1079B00022243324310188249CDE789447D00AD3D2
|
||||
:1079C000FDDD6CDE811411F020DEF8CFD3DDC101C6
|
||||
:1079D000805B964398F3F89489EB94DD81E0809383
|
||||
:1079E000E00010926F0010928100109285001092BA
|
||||
:1079F000840081E085BF15BED3DD5D9A289A0C9482
|
||||
:107A00000000A7D107C054D102C0E1D239F0A3D100
|
||||
:107A100082FFFBCF85FFF7CF8091F1000895082EFC
|
||||
:107A200083E098D185FD07C08DD102C0D0D269F026
|
||||
:107A300092D180FFFBCF0092F1008091DF0185FBA6
|
||||
:107A400026F05D9884E68093D801089582D182FF64
|
||||
:107A50004AC18091DF0185FB26F0289884E6809357
|
||||
:107A6000D901CFDF182F853431F48CEB94E31C015E
|
||||
:107A70002DDD8DE008C1843511F4C3DFFACF8C34DD
|
||||
:107A8000C1F38035B1F3843721F484E4C8DF80E0AA
|
||||
:107A9000FAC0813611F489E5F6C0813429F4B1DFEA
|
||||
:107AA000582EAFDF482EE5CF803711F483E5EBC0C9
|
||||
:107AB000833539F4C0E0D1E08991B1DFC730E1F717
|
||||
:107AC000E3C0863521F481E3AADF84E3DCC0863796
|
||||
:107AD00061F481E3669B8E5F1C9B8F5FA0DF8FB19B
|
||||
:107AE000809582958F708F5BCEC08837A9F489DF2F
|
||||
:107AF0008093DF01289A84FD28985D9A83FD5D9824
|
||||
:107B00002E9A81FD2E982F9A82FD2F982D9A80FD16
|
||||
:107B10002D9887FD8824ADCF8A3649F48FE9FBDCA8
|
||||
:107B2000C3E006DD7CDFCA95E1F7FEDCADC083373C
|
||||
:107B300031F487E874DF85E972DF8EE1A4C0853611
|
||||
:107B400039F4E0E8F3E7C7D0E058F040E0F791CF30
|
||||
:107B5000823631F489E563DF80E061DF80E893C03D
|
||||
:107B6000823419F0873609F07AC02224332449DFA1
|
||||
:107B7000D82F47DFC82F45DF082F8354843008F003
|
||||
:107B800081C0063411F4440C551CF20110926F00B0
|
||||
:107B90001736A1F4033471F483E0B7DCC9DC3FDFAE
|
||||
:107BA0002197E1F7C1DC08C0063411F4859101C0CA
|
||||
:107BB00093DC35DF2197C2F72F0149C00334A1F4CC
|
||||
:107BC0008E2F8F7021F49DDC80E29FDCA7DC99DC96
|
||||
:107BD00082E09BDC16DFACDCCA95E1F79FDC3196D6
|
||||
:107BE000DA9571F72F0131C00634F1F49F01F437B3
|
||||
:107BF000D8F471D019C005DF063461F4C0FB46F03B
|
||||
:107C0000F43728F4182E81E087BFE89511243296C6
|
||||
:107C1000082E0AC0043439F4DF01B370AD50BD4FF3
|
||||
:107C20008D93319601C05CDC21972AF7043431F43E
|
||||
:107C30002F01F370FE2B49F482DC07C0063429F4CF
|
||||
:107C40002F01F901F43708F444D08DE0E8DE063462
|
||||
:107C500011F45694479482E080936F0015C08237E8
|
||||
:107C6000E1E049F08634E0E031F08E34E3E019F0F1
|
||||
:107C7000813531F4E2E0F0E089E087BF849103C010
|
||||
:107C80008B3111F08FE3CBDE83E0B1D15BD095FF78
|
||||
:107C900003C009C09CD139F15ED080FFFBCF52D028
|
||||
:107CA00002C095D101F157D080FFFBCF84E09FD176
|
||||
:107CB0008BE749C0F437B8F40ED090E40D901D90D6
|
||||
:107CC00081E087BFE89532969A95C1F71124E05874
|
||||
:107CD000F04085E001C083E001D081E187BFE895F5
|
||||
:107CE00007B600FCFDCF08959091EB018091EC0167
|
||||
:107CF000913231F0913A61F5813251F538D087C037
|
||||
:107D0000803231F534D063D1E9F08530D9F023D019
|
||||
:107D100083FD18C082FFF7CF04C07EDE81936150DF
|
||||
:107D200031F09091F3008091F200892BB1F7C0DF20
|
||||
:107D3000611549F704C04BD129F0853019F00BD0FB
|
||||
:107D400080FFF9CF8EE79091E80089238093E800C7
|
||||
:107D5000089584E04CD18091E80008958091E2007C
|
||||
:107D60000895FCDF8E7F80618093E20008952DD11D
|
||||
:107D7000E4EEF1E067E0089582E061EC09D083E091
|
||||
:107D800061E802D084E060E842E103C080E060E0A6
|
||||
:107D900042E02DD181E007D01092ED006093EC001D
|
||||
:107DA0004093ED0008959091EB00892B8093EB00B8
|
||||
:107DB000089560E0923039F0933041F0913099F4B9
|
||||
:107DC000EAE462E110C0ECE56EE30DC0813018F426
|
||||
:107DD000EAE964E008C019F4EEE962E204C0823026
|
||||
:107DE00011F4E0EC68E1F1E008958091EB01882363
|
||||
:107DF0004CF402C0ECD051F0AEDF82FFFBCF58CF85
|
||||
:107E0000E6D021F0A8DF80FFFBCF9CDF08954091F2
|
||||
:107E1000F1015091F2014617510510F490E028C08D
|
||||
:107E2000611511F0462FFACF8DDF40E0F7CFCFD0AC
|
||||
:107E300059F1853049F18FDF83FD3ACF8CDF82FD28
|
||||
:107E400020C080FF15C03091F3002091F20005C0E2
|
||||
:107E500081918093F10041502F5F411519F0283036
|
||||
:107E60003105B0F350E02830310509F451E06ADF04
|
||||
:107E70004115E9F65523D9F604C0A9D029F085307B
|
||||
:107E800019F069DF82FFF9CF13CFEBEEF1E0C4DD2B
|
||||
:107E90008193E33FE1F728DF5EDF83FF91C08091AC
|
||||
:107EA000EB019091EC01913009F170F09330F1F019
|
||||
:107EB000953009F444C0963009F456C0983009F45E
|
||||
:107EC00060C0993059F767C0823841F78091EF015F
|
||||
:107ED0008DD02091EB001092E90077D02295269565
|
||||
:107EE00021702093F1001092F10052C0882311F00C
|
||||
:107EF0008230A1F68F71823089F68091ED0188235E
|
||||
:107F0000D1F42091EF01277049F22093E90080918C
|
||||
:107F1000EB0080FF10C0933011F480E20BC080E1D1
|
||||
:107F200042DF81E0880F2A95E9F78093EA001092FA
|
||||
:107F3000EA0088E038DF1092E90047D02AC08823A1
|
||||
:107F400091F41091ED0110680FB7F8943ED04DDF19
|
||||
:107F500002DF80FFFDCF1093E300103883E009F4C7
|
||||
:107F600082E08EBB0FBF2CC08058823048F58091D4
|
||||
:107F7000ED019091EE011DDF603011F126D047DF59
|
||||
:107F80001FC08038E9F421D08091E3018093F10093
|
||||
:107F9000D9DE2BDF15C0882399F49091ED01923042
|
||||
:107FA00078F49093E30111D020DF8091E3018823DE
|
||||
:107FB00021F48091E30091E087FD94E09EBBDCDE3C
|
||||
:107FC000CADE83FF089580E2EEDE87EFBCCE8EB37B
|
||||
:107FD00088230895FCDF69F08091E9008F93109267
|
||||
:107FE000E900B9DE83FF01C050DF8F918770809375
|
||||
:047FF000E900089507
|
||||
:047FFC005BCEFBDC81
|
||||
:040000030000740085
|
||||
:00000001FF
|
|
@ -0,0 +1,194 @@
|
|||
:10740000E0E0F0E0859194910196089520E82093C2
|
||||
:1074100061001092610081E085BF82E085BF87EE48
|
||||
:1074200084B981EF85B91DB8769A10BA80EF81BB17
|
||||
:1074300084EF8AB984E68BB980E58CBD81E08DBD8F
|
||||
:10744000089584EA8BB98BEA55D0109289008AEFAF
|
||||
:107450008093880082E080936F0083E080938100B6
|
||||
:10746000E7E0F1E05CD0E331E9F7A5E2B4E0E3E185
|
||||
:10747000F1E003E010E101900D921A95E1F7A059B7
|
||||
:10748000BF4F0A95B9F753D081E08093D7008AE4C3
|
||||
:1074900082BF1092D8001092E2001092DA0010928F
|
||||
:1074A000E10080E808D019BC1EBA1092E0006ED44A
|
||||
:1074B00089E05AD481E98093D8000895F201F999BE
|
||||
:1074C000FECFF2BDE1BD0895F9DFF89A80B508C09E
|
||||
:1074D000F5DF1FBA80BD0FB6F894FA9AF99A0FBE7D
|
||||
:1074E00031962F01089590E81BD08D939A95E1F77E
|
||||
:1074F000089586E008D010C083E005D08F2F10D00B
|
||||
:107500008E2F0ED080E05E9A5A980AC005D085E092
|
||||
:10751000FADF06D080FDFDCF5A9A5E9808958191DA
|
||||
:107520008EBD8DB5000087FFFCCF8EB50895EDEEC2
|
||||
:10753000F2E090EB5C98892FF3DF80E1F1DF5C9A59
|
||||
:10754000EEDF8DEE8E278F77D9F79395983B91F7E5
|
||||
:107550000895EBEDF1E08191908101969083829303
|
||||
:10756000092E0AF400940091D90106FB5EF0009602
|
||||
:10757000929111F493959083000C081620F42E9AA2
|
||||
:107580002F9A2D9A0895937009F42E98913009F44A
|
||||
:107590002F98923009F42D980895E2EDF1E097814B
|
||||
:1075A0009923EAF08FB18095807F669B88601C9B51
|
||||
:1075B00084609581891310C09681992381F4938109
|
||||
:1075C000891306C09481992396E959F080E00AC096
|
||||
:1075D00083839095892304C085839AE0968380E015
|
||||
:1075E0009FEF9483828308958091D90186FFC7DF3E
|
||||
:1075F00022243324EDEEF1E08091D40187FD1BC0FD
|
||||
:1076000084FD32C082FF0895C685CC23E1F3F8944F
|
||||
:1076100028980088F785E02D6FDFE0E0F0E0ADEE20
|
||||
:10762000B1E061DFADEEB1E045D3E058FF4FCA9560
|
||||
:10763000B1F772DFD0C18301282D6090F601709000
|
||||
:10764000F50146D019F48823C1F70895380188243C
|
||||
:107650003FD0E1F58091F401821709F48301609035
|
||||
:10766000F8017090F701F4CF6090F8017090F70185
|
||||
:107670002FD081F48823C1F708959FEF85FD08C0BE
|
||||
:1076800086FD05C083FF0895BBDEE9F3A4C191E048
|
||||
:1076900097FB890E662477248301222719D0B1F441
|
||||
:1076A000882389F38091F40136F0881650F482170C
|
||||
:1076B00030F0213003C0881520F4281710F483011E
|
||||
:1076C000282F6090F8017090F701E8CF3801822EE2
|
||||
:1076D000F30112DFADEEB1E006DFCDEED1E0E0E088
|
||||
:1076E000F1E097E009908191081621F49A95D1F77D
|
||||
:1076F0000880801011CFC9E0F6DECA95E9F70CDFEB
|
||||
:0677000016DF8827089542
|
||||
:1077060041524455424F59D5F08D14A1C881CFD965
|
||||
:10771600F1AF000000FFFFCFCFFFFFFFFFCFCFFF8E
|
||||
:10772600FF0000FE067E7E06FE46565616FE0656EE
|
||||
:10773600461EFE3F61E9E3FFE3EBE3FFE3EBE3FF16
|
||||
:10774600E16B3F12011001020000084123360001DF
|
||||
:10775600000201000109023E000201008032090414
|
||||
:1077660000000102020100052400100104240204A5
|
||||
:107776000524060001070582030800FF090401002D
|
||||
:10778600020A000000070504021000010705830233
|
||||
:10779600100001040309042203410072006400750D
|
||||
:1077A6000069006E006F0020004C0065006F006EDF
|
||||
:1077B600006100720064006F0018034100720064EB
|
||||
:1077C60000750069006E006F0020004C004C0043FD
|
||||
:0277D6000000B1
|
||||
:1078000011241FBE8DEF9AE09EBF8DBF04B714BE3A
|
||||
:1078100088E18093600010926000409100085091D0
|
||||
:1078200001086F917F91A6C00F928F939F931F9233
|
||||
:107830000FB60F9211244F936F938091DA0080FF5F
|
||||
:107840004CC038C00F920FB68F939F93EF93FF9366
|
||||
:1078500088278093850080938400E2EDF1E0978192
|
||||
:10786000907261F490818917980B908309F45D9A66
|
||||
:1078700091818917980B918309F4289A96819150E8
|
||||
:1078800008F096839481915008F09483881639F417
|
||||
:107890007C9B05C0B5DD19F0C10101961C01FF916B
|
||||
:1078A000EF915CC080E189BD82E189BD09B400FE31
|
||||
:1078B000FDCF08958091D80080FF0FC08091DA003D
|
||||
:1078C0008E7F8093DA008091D90080FF04C0EADFC8
|
||||
:1078D00081E08EBB02C019BC1EBA8091E10080FF1E
|
||||
:1078E0000BC03CD280FF08C03CD28091D80080629F
|
||||
:1078F000E2DD19BC85E08EBB8091E10084FF1AC0F7
|
||||
:107900002DD284FF17C0CEDF8091D8008F7DD3DDCC
|
||||
:107910008FEE2AD023D28F7E816026D28091DD0126
|
||||
:10792000882331F48091E30087FD02C081E001C02B
|
||||
:1079300084E08EBB8091E10083FF0CC00FD283FFF7
|
||||
:1079400009C087EF11D082E08EBB1092DD010BD011
|
||||
:1079500008D21CD26F914F910F901F909F918F91E1
|
||||
:107960000FBE0F9018958EEF0090E1000822009254
|
||||
:10797000E10008954BDDA0E0B1E0E6E0F7E7059017
|
||||
:107980000D92A13DE1F71D92BB30E9F701FD0FC05B
|
||||
:1079900000FF03C07C9B0BC008C003FF08C06757F3
|
||||
:1079A000774729F04757574711F02ADDA1F449DD01
|
||||
:1079B00022243324310188248BDE789447D00AD3E3
|
||||
:1079C000ECDD5BDE811411F00FDEF8CFC2DDC1010A
|
||||
:1079D000805B964398F3F89489EB8CDD81E080938B
|
||||
:1079E000E00010926F0010928100109285001092BA
|
||||
:1079F000840081E085BF15BEC2DD5D9A289A0C9493
|
||||
:107A00000000A7D107C054D102C0E1D239F0A3D100
|
||||
:107A100082FFFBCF85FFF7CF8091F1000895082EFC
|
||||
:107A200083E098D185FD07C08DD102C0D0D269F026
|
||||
:107A300092D180FFFBCF0092F1008091D90185FBAC
|
||||
:107A400026F05D9884E68093D201089582D182FF6A
|
||||
:107A50004AC18091D90185FB26F0289884E680935D
|
||||
:107A6000D301CFDF182F853431F48CEB94E31C0164
|
||||
:107A700025DD8DE008C1843511F4C3DFFACF8C34E5
|
||||
:107A8000C1F38035B1F3843721F484E4C8DF80E0AA
|
||||
:107A9000FAC0813611F489E5F6C0813429F4B1DFEA
|
||||
:107AA000582EAFDF482EE5CF803711F483E5EBC0C9
|
||||
:107AB000833539F4C0E0D1E08991B1DFC730E1F717
|
||||
:107AC000E3C0863521F481E3AADF84E3DCC0863796
|
||||
:107AD00061F481E3669B8E5F1C9B8F5FA0DF8FB19B
|
||||
:107AE000809582958F708F5BCEC08837A9F489DF2F
|
||||
:107AF0008093D901289A84FD28985D9A83FD5D982A
|
||||
:107B00002E9A81FD2E982F9A82FD2F982D9A80FD16
|
||||
:107B10002D9887FD8824ADCF8A3649F48FE9F3DCB0
|
||||
:107B2000C3E0FEDC7CDFCA95E1F7F6DCADC083374D
|
||||
:107B300031F487E874DF85E972DF8EE1A4C0853611
|
||||
:107B400039F4E0E8F3E7C7D0E058F040E0F791CF30
|
||||
:107B5000823631F489E563DF80E061DF80E893C03D
|
||||
:107B6000823419F0873609F07AC02224332449DFA1
|
||||
:107B7000D82F47DFC82F45DF082F8354843008F003
|
||||
:107B800081C0063411F4440C551CF20110926F00B0
|
||||
:107B90001736A1F4033471F483E0AFDCC1DC3FDFBE
|
||||
:107BA0002197E1F7B9DC08C0063411F4859101C0D2
|
||||
:107BB0008BDC35DF2197C2F72F0149C00334A1F4D4
|
||||
:107BC0008E2F8F7021F495DC80E297DC9FDC91DCB6
|
||||
:107BD00082E093DC16DFA4DCCA95E1F797DC3196EE
|
||||
:107BE000DA9571F72F0131C00634F1F49F01F437B3
|
||||
:107BF000D8F471D019C005DF063461F4C0FB46F03B
|
||||
:107C0000F43728F4182E81E087BFE89511243296C6
|
||||
:107C1000082E0AC0043439F4DF01B370A351BD4FFC
|
||||
:107C20008D93319601C054DC21972AF7043431F446
|
||||
:107C30002F01F370FE2B49F47ADC07C0063429F4D7
|
||||
:107C40002F01F901F43708F444D08DE0E8DE063462
|
||||
:107C500011F45694479482E080936F0015C08237E8
|
||||
:107C6000E1E049F08634E0E031F08E34E3E019F0F1
|
||||
:107C7000813531F4E2E0F0E089E087BF849103C010
|
||||
:107C80008B3111F08FE3CBDE83E0B1D15BD095FF78
|
||||
:107C900003C009C09CD139F15ED080FFFBCF52D028
|
||||
:107CA00002C095D101F157D080FFFBCF84E09FD176
|
||||
:107CB0008BE749C0F437B8F40ED090E40D901D90D6
|
||||
:107CC00081E087BFE89532969A95C1F71124E05874
|
||||
:107CD000F04085E001C083E001D081E187BFE895F5
|
||||
:107CE00007B600FCFDCF08959091E5018091E60173
|
||||
:107CF000913231F0913A61F5813251F538D087C037
|
||||
:107D0000803231F534D063D1E9F08530D9F023D019
|
||||
:107D100083FD18C082FFF7CF04C07EDE81936150DF
|
||||
:107D200031F09091F3008091F200892BB1F7C0DF20
|
||||
:107D3000611549F704C04BD129F0853019F00BD0FB
|
||||
:107D400080FFF9CF8EE79091E80089238093E800C7
|
||||
:107D5000089584E04CD18091E80008958091E2007C
|
||||
:107D60000895FCDF8E7F80618093E20008952DD11D
|
||||
:107D7000EEEDF1E067E0089582E061EC09D083E088
|
||||
:107D800061E802D084E060E842E103C080E060E0A6
|
||||
:107D900042E02DD181E007D01092ED006093EC001D
|
||||
:107DA0004093ED0008959091EB00892B8093EB00B8
|
||||
:107DB000089560E0923039F0933041F0913099F4B9
|
||||
:107DC000E3E462E110C0E5E56EE30DC0813018F434
|
||||
:107DD000E3E964E008C019F4E7E962E204C0823034
|
||||
:107DE00011F4E9EB68E1F1E008958091E501882361
|
||||
:107DF0004CF402C0ECD051F0AEDF82FFFBCF58CF85
|
||||
:107E0000E6D021F0A8DF80FFFBCF9CDF08954091F2
|
||||
:107E1000EB015091EC014617510510F490E028C099
|
||||
:107E2000611511F0462FFACF8DDF40E0F7CFCFD0AC
|
||||
:107E300059F1853049F18FDF83FD3ACF8CDF82FD28
|
||||
:107E400020C080FF15C03091F3002091F20005C0E2
|
||||
:107E500081918093F10041502F5F411519F0283036
|
||||
:107E60003105B0F350E02830310509F451E06ADF04
|
||||
:107E70004115E9F65523D9F604C0A9D029F085307B
|
||||
:107E800019F069DF82FFF9CF13CFE5EEF1E0C4DD31
|
||||
:107E90008193ED3EE1F728DF5EDF83FF91C08091A3
|
||||
:107EA000E5019091E601913009F170F09330F1F025
|
||||
:107EB000953009F444C0963009F456C0983009F45E
|
||||
:107EC00060C0993059F767C0823841F78091E90165
|
||||
:107ED0008DD02091EB001092E90077D02295269565
|
||||
:107EE00021702093F1001092F10052C0882311F00C
|
||||
:107EF0008230A1F68F71823089F68091E701882364
|
||||
:107F0000D1F42091E901277049F22093E900809192
|
||||
:107F1000EB0080FF10C0933011F480E20BC080E1D1
|
||||
:107F200042DF81E0880F2A95E9F78093EA001092FA
|
||||
:107F3000EA0088E038DF1092E90047D02AC08823A1
|
||||
:107F400091F41091E70110680FB7F8943ED04DDF1F
|
||||
:107F500002DF80FFFDCF1093E300103883E009F4C7
|
||||
:107F600082E08EBB0FBF2CC08058823048F58091D4
|
||||
:107F7000E7019091E8011DDF603011F126D047DF65
|
||||
:107F80001FC08038E9F421D08091DD018093F10099
|
||||
:107F9000D9DE2BDF15C0882399F49091E701923048
|
||||
:107FA00078F49093DD0111D020DF8091DD018823EA
|
||||
:107FB00021F48091E30091E087FD94E09EBBDCDE3C
|
||||
:107FC000CADE83FF089580E2EEDE87EFBCCE8EB37B
|
||||
:107FD00088230895FCDF69F08091E9008F93109267
|
||||
:107FE000E900B9DE83FF01C050DF8F918770809375
|
||||
:047FF000E900089507
|
||||
:047FFC005BCEFBDC81
|
||||
:040000030000740085
|
||||
:00000001FF
|
|
@ -0,0 +1,269 @@
|
|||
/*
|
||||
Arduino.h - Main include file for the Arduino SDK
|
||||
Copyright (c) 2005-2013 Arduino Team. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef Arduino_h
|
||||
#define Arduino_h
|
||||
|
||||
#define ARDUBOY_CORE
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
#include <avr/pgmspace.h>
|
||||
#include <avr/io.h>
|
||||
#include <avr/interrupt.h>
|
||||
|
||||
#include "binary.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"{
|
||||
#endif
|
||||
|
||||
void yield(void);
|
||||
|
||||
#define HIGH 0x1
|
||||
#define LOW 0x0
|
||||
|
||||
#define INPUT 0x0
|
||||
#define OUTPUT 0x1
|
||||
#define INPUT_PULLUP 0x2
|
||||
|
||||
#define PI 3.1415926535897932384626433832795
|
||||
#define HALF_PI 1.5707963267948966192313216916398
|
||||
#define TWO_PI 6.283185307179586476925286766559
|
||||
#define DEG_TO_RAD 0.017453292519943295769236907684886
|
||||
#define RAD_TO_DEG 57.295779513082320876798154814105
|
||||
#define EULER 2.718281828459045235360287471352
|
||||
|
||||
#define SERIAL 0x0
|
||||
#define DISPLAY 0x1
|
||||
|
||||
#define LSBFIRST 0
|
||||
#define MSBFIRST 1
|
||||
|
||||
#define CHANGE 1
|
||||
#define FALLING 2
|
||||
#define RISING 3
|
||||
|
||||
#if defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__)
|
||||
#define DEFAULT 0
|
||||
#define EXTERNAL 1
|
||||
#define INTERNAL1V1 2
|
||||
#define INTERNAL INTERNAL1V1
|
||||
#elif defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__)
|
||||
#define DEFAULT 0
|
||||
#define EXTERNAL 4
|
||||
#define INTERNAL1V1 8
|
||||
#define INTERNAL INTERNAL1V1
|
||||
#define INTERNAL2V56 9
|
||||
#define INTERNAL2V56_EXTCAP 13
|
||||
#else
|
||||
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644__) || defined(__AVR_ATmega644A__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644PA__)
|
||||
#define INTERNAL1V1 2
|
||||
#define INTERNAL2V56 3
|
||||
#else
|
||||
#define INTERNAL 3
|
||||
#endif
|
||||
#define DEFAULT 1
|
||||
#define EXTERNAL 0
|
||||
#endif
|
||||
|
||||
// undefine stdlib's abs if encountered
|
||||
#ifdef abs
|
||||
#undef abs
|
||||
#endif
|
||||
|
||||
#define min(a,b) ((a)<(b)?(a):(b))
|
||||
#define max(a,b) ((a)>(b)?(a):(b))
|
||||
#define abs(x) ((x)>0?(x):-(x))
|
||||
#define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))
|
||||
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
|
||||
#define radians(deg) ((deg)*DEG_TO_RAD)
|
||||
#define degrees(rad) ((rad)*RAD_TO_DEG)
|
||||
#define sq(x) ((x)*(x))
|
||||
|
||||
#define interrupts() sei()
|
||||
#define noInterrupts() cli()
|
||||
|
||||
#define clockCyclesPerMicrosecond() ( F_CPU / 1000000L )
|
||||
#define clockCyclesToMicroseconds(a) ( (a) / clockCyclesPerMicrosecond() )
|
||||
#define microsecondsToClockCycles(a) ( (a) * clockCyclesPerMicrosecond() )
|
||||
|
||||
#define lowByte(w) ((uint8_t) ((w) & 0xff))
|
||||
#define highByte(w) ((uint8_t) ((w) >> 8))
|
||||
|
||||
#define bitRead(value, bit) (((value) >> (bit)) & 0x01)
|
||||
#define bitSet(value, bit) ((value) |= (1UL << (bit)))
|
||||
#define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
|
||||
#define bitWrite(value, bit, bitvalue) (bitvalue ? bitSet(value, bit) : bitClear(value, bit))
|
||||
|
||||
// avr-libc defines _NOP() since 1.6.2
|
||||
#ifndef _NOP
|
||||
#define _NOP() do { __asm__ volatile ("nop"); } while (0)
|
||||
#endif
|
||||
|
||||
typedef unsigned int word;
|
||||
|
||||
#define bit(b) (1UL << (b))
|
||||
|
||||
typedef bool boolean;
|
||||
typedef uint8_t byte;
|
||||
|
||||
//volatile unsigned char button_ticks_hold; // millis >> 8 when bootloader/reset combo buttons is pressed
|
||||
//volatile unsigned char button_ticks_now; // millis >> 12
|
||||
//volatile unsigned char button_ticks_last; // millis >> 12 of last button pressedd
|
||||
//volatile unsigned char frame_ticks; // sychronized with millis
|
||||
|
||||
void init(void);
|
||||
void initVariant(void);
|
||||
|
||||
int atexit(void (*func)()) __attribute__((weak));
|
||||
|
||||
void pinMode(uint8_t, uint8_t);
|
||||
void digitalWrite(uint8_t, uint8_t);
|
||||
int digitalRead(uint8_t);
|
||||
int analogRead(uint8_t);
|
||||
void analogReference(uint8_t mode);
|
||||
void analogWrite(uint8_t, int);
|
||||
|
||||
unsigned char buttonsIdleTime(void);
|
||||
unsigned char millisChar(void);
|
||||
unsigned long millis(void);
|
||||
unsigned long micros(void);
|
||||
void delay(unsigned long);
|
||||
void delayShort(unsigned short);
|
||||
void delayMicroseconds(unsigned int us);
|
||||
unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout);
|
||||
unsigned long pulseInLong(uint8_t pin, uint8_t state, unsigned long timeout);
|
||||
|
||||
void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val);
|
||||
uint8_t shiftIn(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder);
|
||||
|
||||
void attachInterrupt(uint8_t, void (*)(void), int mode);
|
||||
void detachInterrupt(uint8_t);
|
||||
|
||||
void setup(void);
|
||||
void loop(void);
|
||||
|
||||
// Get the bit location within the hardware port of the given virtual pin.
|
||||
// This comes from the pins_*.c file for the active board configuration.
|
||||
|
||||
#define analogInPinToBit(P) (P)
|
||||
|
||||
// On the ATmega1280, the addresses of some of the port registers are
|
||||
// greater than 255, so we can't store them in uint8_t's.
|
||||
extern const uint16_t PROGMEM port_to_mode_PGM[];
|
||||
extern const uint16_t PROGMEM port_to_input_PGM[];
|
||||
extern const uint16_t PROGMEM port_to_output_PGM[];
|
||||
|
||||
extern const uint8_t PROGMEM digital_pin_to_port_PGM[];
|
||||
// extern const uint8_t PROGMEM digital_pin_to_bit_PGM[];
|
||||
extern const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[];
|
||||
extern const uint8_t PROGMEM digital_pin_to_timer_PGM[];
|
||||
|
||||
// Get the bit location within the hardware port of the given virtual pin.
|
||||
// This comes from the pins_*.c file for the active board configuration.
|
||||
//
|
||||
// These perform slightly better as macros compared to inline functions
|
||||
//
|
||||
#define digitalPinToPort(P) ( pgm_read_byte( digital_pin_to_port_PGM + (P) ) )
|
||||
#define digitalPinToBitMask(P) ( pgm_read_byte( digital_pin_to_bit_mask_PGM + (P) ) )
|
||||
#define digitalPinToTimer(P) ( pgm_read_byte( digital_pin_to_timer_PGM + (P) ) )
|
||||
#define analogInPinToBit(P) (P)
|
||||
#define portOutputRegister(P) ( (volatile uint8_t *)( pgm_read_word( port_to_output_PGM + (P))) )
|
||||
#define portInputRegister(P) ( (volatile uint8_t *)( pgm_read_word( port_to_input_PGM + (P))) )
|
||||
#define portModeRegister(P) ( (volatile uint8_t *)( pgm_read_word( port_to_mode_PGM + (P))) )
|
||||
|
||||
#define NOT_A_PIN 0
|
||||
#define NOT_A_PORT 0
|
||||
|
||||
#define NOT_AN_INTERRUPT -1
|
||||
|
||||
#ifdef ARDUINO_MAIN
|
||||
#define PA 1
|
||||
#define PB 2
|
||||
#define PC 3
|
||||
#define PD 4
|
||||
#define PE 5
|
||||
#define PF 6
|
||||
#define PG 7
|
||||
#define PH 8
|
||||
#define PJ 10
|
||||
#define PK 11
|
||||
#define PL 12
|
||||
#endif
|
||||
|
||||
#define NOT_ON_TIMER 0
|
||||
#define TIMER0A 1
|
||||
#define TIMER0B 2
|
||||
#define TIMER1A 3
|
||||
#define TIMER1B 4
|
||||
#define TIMER1C 5
|
||||
#define TIMER2 6
|
||||
#define TIMER2A 7
|
||||
#define TIMER2B 8
|
||||
|
||||
#define TIMER3A 9
|
||||
#define TIMER3B 10
|
||||
#define TIMER3C 11
|
||||
#define TIMER4A 12
|
||||
#define TIMER4B 13
|
||||
#define TIMER4C 14
|
||||
#define TIMER4D 15
|
||||
#define TIMER5A 16
|
||||
#define TIMER5B 17
|
||||
#define TIMER5C 18
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include "WCharacter.h"
|
||||
#include "WString.h"
|
||||
#include "HardwareSerial.h"
|
||||
#include "USBAPI.h"
|
||||
#if defined(HAVE_HWSERIAL0) && defined(HAVE_CDCSERIAL)
|
||||
#error "Targets with both UART0 and CDC serial not supported"
|
||||
#endif
|
||||
|
||||
uint16_t makeWord(uint16_t w);
|
||||
uint16_t makeWord(byte h, byte l);
|
||||
|
||||
#define word(...) makeWord(__VA_ARGS__)
|
||||
|
||||
unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout = 1000000L);
|
||||
unsigned long pulseInLong(uint8_t pin, uint8_t state, unsigned long timeout = 1000000L);
|
||||
|
||||
void tone(uint8_t _pin, unsigned int frequency, unsigned long duration = 0);
|
||||
void noTone(uint8_t _pin);
|
||||
|
||||
// WMath prototypes
|
||||
long random(long);
|
||||
long random(long, long);
|
||||
void randomSeed(unsigned long);
|
||||
long map(long, long, long, long, long);
|
||||
|
||||
#endif
|
||||
|
||||
#include "pins_arduino.h"
|
||||
|
||||
#endif
|
|
@ -0,0 +1,308 @@
|
|||
|
||||
|
||||
/* Copyright (c) 2011, Peter Barrett
|
||||
**
|
||||
** Permission to use, copy, modify, and/or distribute this software for
|
||||
** any purpose with or without fee is hereby granted, provided that the
|
||||
** above copyright notice and this permission notice appear in all copies.
|
||||
**
|
||||
** THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
||||
** WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
** WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
|
||||
** BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
|
||||
** OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||
** WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||
** ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
** SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "USBAPI.h"
|
||||
#include <avr/wdt.h>
|
||||
#include <avr/power.h>
|
||||
#include <util/atomic.h>
|
||||
|
||||
#if defined(USBCON)
|
||||
|
||||
typedef struct
|
||||
{
|
||||
u32 dwDTERate;
|
||||
u8 bCharFormat;
|
||||
u8 bParityType;
|
||||
u8 bDataBits;
|
||||
u8 lineState;
|
||||
} LineInfo;
|
||||
|
||||
static volatile LineInfo _usbLineInfo = { 57600, 0x00, 0x00, 0x00, 0x00 };
|
||||
static volatile int32_t breakValue = -1;
|
||||
|
||||
#ifndef ARDUBOY_CORE
|
||||
bool _updatedLUFAbootloader = false;
|
||||
#else
|
||||
extern volatile unsigned char bootloader_timer;
|
||||
#endif
|
||||
|
||||
#define WEAK __attribute__ ((weak))
|
||||
|
||||
extern const CDCDescriptor _cdcInterface PROGMEM;
|
||||
const CDCDescriptor _cdcInterface =
|
||||
{
|
||||
D_IAD(0,2,CDC_COMMUNICATION_INTERFACE_CLASS,CDC_ABSTRACT_CONTROL_MODEL,1),
|
||||
|
||||
// CDC communication interface
|
||||
D_INTERFACE(CDC_ACM_INTERFACE,1,CDC_COMMUNICATION_INTERFACE_CLASS,CDC_ABSTRACT_CONTROL_MODEL,0),
|
||||
D_CDCCS(CDC_HEADER,0x10,0x01), // Header (1.10 bcd)
|
||||
D_CDCCS(CDC_CALL_MANAGEMENT,1,1), // Device handles call management (not)
|
||||
D_CDCCS4(CDC_ABSTRACT_CONTROL_MANAGEMENT,6), // SET_LINE_CODING, GET_LINE_CODING, SET_CONTROL_LINE_STATE supported
|
||||
D_CDCCS(CDC_UNION,CDC_ACM_INTERFACE,CDC_DATA_INTERFACE), // Communication interface is master, data interface is slave 0
|
||||
D_ENDPOINT(USB_ENDPOINT_IN (CDC_ENDPOINT_ACM),USB_ENDPOINT_TYPE_INTERRUPT,0x10,0x40),
|
||||
|
||||
// CDC data interface
|
||||
D_INTERFACE(CDC_DATA_INTERFACE,2,CDC_DATA_INTERFACE_CLASS,0,0),
|
||||
D_ENDPOINT(USB_ENDPOINT_OUT(CDC_ENDPOINT_OUT),USB_ENDPOINT_TYPE_BULK,USB_EP_SIZE,0),
|
||||
D_ENDPOINT(USB_ENDPOINT_IN (CDC_ENDPOINT_IN ),USB_ENDPOINT_TYPE_BULK,USB_EP_SIZE,0)
|
||||
};
|
||||
|
||||
int CDC_GetInterface(u8* interfaceNum)
|
||||
{
|
||||
interfaceNum[0] += 2; // uses 2
|
||||
return USB_SendControl(TRANSFER_PGM,&_cdcInterface,sizeof(_cdcInterface));
|
||||
}
|
||||
|
||||
bool CDC_Setup(USBSetup& setup)
|
||||
{
|
||||
u8 r = setup.bRequest;
|
||||
u8 requestType = setup.bmRequestType;
|
||||
|
||||
if (REQUEST_DEVICETOHOST_CLASS_INTERFACE == requestType)
|
||||
{
|
||||
if (CDC_GET_LINE_CODING == r)
|
||||
{
|
||||
USB_SendControl(0,(void*)&_usbLineInfo,7);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (REQUEST_HOSTTODEVICE_CLASS_INTERFACE == requestType)
|
||||
{
|
||||
if (CDC_SEND_BREAK == r)
|
||||
{
|
||||
breakValue = ((uint16_t)setup.wValueH << 8) | setup.wValueL;
|
||||
}
|
||||
|
||||
if (CDC_SET_LINE_CODING == r)
|
||||
{
|
||||
USB_RecvControl((void*)&_usbLineInfo,7);
|
||||
}
|
||||
|
||||
if (CDC_SET_CONTROL_LINE_STATE == r)
|
||||
{
|
||||
_usbLineInfo.lineState = setup.wValueL;
|
||||
}
|
||||
|
||||
if (CDC_SET_LINE_CODING == r || CDC_SET_CONTROL_LINE_STATE == r)
|
||||
{
|
||||
// auto-reset into the bootloader is triggered when the port, already
|
||||
// open at 1200 bps, is closed. this is the signal to start the watchdog
|
||||
// with a relatively long period so it can finish housekeeping tasks
|
||||
// like servicing endpoints before the sketch ends
|
||||
#ifndef ARDUBOY_CORE
|
||||
uint16_t magic_key_pos = MAGIC_KEY_POS;
|
||||
|
||||
// If we don't use the new RAMEND directly, check manually if we have a newer bootloader.
|
||||
// This is used to keep compatible with the old leonardo bootloaders.
|
||||
// You are still able to set the magic key position manually to RAMEND-1 to save a few bytes for this check.
|
||||
#if MAGIC_KEY_POS != (RAMEND-1)
|
||||
// For future boards save the key in the inproblematic RAMEND
|
||||
// Which is reserved for the main() return value (which will never return)
|
||||
if (_updatedLUFAbootloader) {
|
||||
// horray, we got a new bootloader!
|
||||
magic_key_pos = (RAMEND-1);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
// We check DTR state to determine if host port is open (bit 0 of lineState).
|
||||
if (1200 == _usbLineInfo.dwDTERate && (_usbLineInfo.lineState & 0x01) == 0)
|
||||
{
|
||||
#ifndef ARDUBOY_CORE
|
||||
#if MAGIC_KEY_POS != (RAMEND-1)
|
||||
// Backup ram value if its not a newer bootloader.
|
||||
// This should avoid memory corruption at least a bit, not fully
|
||||
if (magic_key_pos != (RAMEND-1)) {
|
||||
*(uint16_t *)(RAMEND-1) = *(uint16_t *)magic_key_pos;
|
||||
}
|
||||
#endif
|
||||
// Store boot key
|
||||
*(uint16_t *)magic_key_pos = MAGIC_KEY;
|
||||
wdt_enable(WDTO_120MS);
|
||||
#else
|
||||
bootloader_timer = 120; //ms
|
||||
power_timer0_enable(); //power timer0 is disabled by flashlight/safemode in older Arduboy2 libraries
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifndef ARDUBOY_CORE
|
||||
// Most OSs do some intermediate steps when configuring ports and DTR can
|
||||
// twiggle more than once before stabilizing.
|
||||
// To avoid spurious resets we set the watchdog to 250ms and eventually
|
||||
// cancel if DTR goes back high.
|
||||
|
||||
wdt_disable();
|
||||
wdt_reset();
|
||||
#if MAGIC_KEY_POS != (RAMEND-1)
|
||||
// Restore backed up (old bootloader) magic key data
|
||||
if (magic_key_pos != (RAMEND-1)) {
|
||||
*(uint16_t *)magic_key_pos = *(uint16_t *)(RAMEND-1);
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
// Clean up RAMEND key
|
||||
*(uint16_t *)magic_key_pos = 0x0000;
|
||||
}
|
||||
#else
|
||||
bootloader_timer = 0;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
void Serial_::begin(unsigned long /* baud_count */)
|
||||
{
|
||||
peek_buffer = -1;
|
||||
}
|
||||
|
||||
void Serial_::begin(unsigned long /* baud_count */, byte /* config */)
|
||||
{
|
||||
peek_buffer = -1;
|
||||
}
|
||||
|
||||
void Serial_::end(void)
|
||||
{
|
||||
}
|
||||
|
||||
int Serial_::available(void)
|
||||
{
|
||||
if (peek_buffer >= 0) {
|
||||
return 1 + USB_Available(CDC_RX);
|
||||
}
|
||||
return USB_Available(CDC_RX);
|
||||
}
|
||||
|
||||
int Serial_::peek(void)
|
||||
{
|
||||
if (peek_buffer < 0)
|
||||
peek_buffer = USB_Recv(CDC_RX);
|
||||
return peek_buffer;
|
||||
}
|
||||
|
||||
int Serial_::read(void)
|
||||
{
|
||||
if (peek_buffer >= 0) {
|
||||
int c = peek_buffer;
|
||||
peek_buffer = -1;
|
||||
return c;
|
||||
}
|
||||
return USB_Recv(CDC_RX);
|
||||
}
|
||||
|
||||
int Serial_::availableForWrite(void)
|
||||
{
|
||||
return USB_SendSpace(CDC_TX);
|
||||
}
|
||||
|
||||
void Serial_::flush(void)
|
||||
{
|
||||
USB_Flush(CDC_TX);
|
||||
}
|
||||
|
||||
size_t Serial_::write(uint8_t c)
|
||||
{
|
||||
return write(&c, 1);
|
||||
}
|
||||
|
||||
size_t Serial_::write(const uint8_t *buffer, size_t size)
|
||||
{
|
||||
/* only try to send bytes if the high-level CDC connection itself
|
||||
is open (not just the pipe) - the OS should set lineState when the port
|
||||
is opened and clear lineState when the port is closed.
|
||||
bytes sent before the user opens the connection or after
|
||||
the connection is closed are lost - just like with a UART. */
|
||||
|
||||
// TODO - ZE - check behavior on different OSes and test what happens if an
|
||||
// open connection isn't broken cleanly (cable is yanked out, host dies
|
||||
// or locks up, or host virtual serial port hangs)
|
||||
if (_usbLineInfo.lineState > 0) {
|
||||
int r = USB_Send(CDC_TX,buffer,size);
|
||||
if (r > 0) {
|
||||
return r;
|
||||
} else {
|
||||
setWriteError();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
setWriteError();
|
||||
return 0;
|
||||
}
|
||||
|
||||
// This operator is a convenient way for a sketch to check whether the
|
||||
// port has actually been configured and opened by the host (as opposed
|
||||
// to just being connected to the host). It can be used, for example, in
|
||||
// setup() before printing to ensure that an application on the host is
|
||||
// actually ready to receive and display the data.
|
||||
// We add a short delay before returning to fix a bug observed by Federico
|
||||
// where the port is configured (lineState != 0) but not quite opened.
|
||||
Serial_::operator bool() {
|
||||
bool result = false;
|
||||
if (_usbLineInfo.lineState > 0)
|
||||
result = true;
|
||||
delayShort(10);
|
||||
return result;
|
||||
}
|
||||
|
||||
unsigned long Serial_::baud() {
|
||||
// Disable interrupts while reading a multi-byte value
|
||||
uint32_t baudrate;
|
||||
ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
|
||||
baudrate = _usbLineInfo.dwDTERate;
|
||||
}
|
||||
return baudrate;
|
||||
}
|
||||
|
||||
uint8_t Serial_::stopbits() {
|
||||
return _usbLineInfo.bCharFormat;
|
||||
}
|
||||
|
||||
uint8_t Serial_::paritytype() {
|
||||
return _usbLineInfo.bParityType;
|
||||
}
|
||||
|
||||
uint8_t Serial_::numbits() {
|
||||
return _usbLineInfo.bDataBits;
|
||||
}
|
||||
|
||||
bool Serial_::dtr() {
|
||||
return _usbLineInfo.lineState & 0x1;
|
||||
}
|
||||
|
||||
bool Serial_::rts() {
|
||||
return _usbLineInfo.lineState & 0x2;
|
||||
}
|
||||
|
||||
int32_t Serial_::readBreak() {
|
||||
int32_t ret;
|
||||
// Disable IRQs while reading and clearing breakValue to make
|
||||
// sure we don't overwrite a value just set by the ISR.
|
||||
ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
|
||||
ret = breakValue;
|
||||
breakValue = -1;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
Serial_ Serial;
|
||||
|
||||
#endif /* if defined(USBCON) */
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
Client.h - Base class that provides Client
|
||||
Copyright (c) 2011 Adrian McEwen. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef client_h
|
||||
#define client_h
|
||||
#include "Print.h"
|
||||
#include "Stream.h"
|
||||
#include "IPAddress.h"
|
||||
|
||||
class Client : public Stream {
|
||||
|
||||
public:
|
||||
virtual int connect(IPAddress ip, uint16_t port) =0;
|
||||
virtual int connect(const char *host, uint16_t port) =0;
|
||||
virtual size_t write(uint8_t) =0;
|
||||
virtual size_t write(const uint8_t *buf, size_t size) =0;
|
||||
virtual int available() = 0;
|
||||
virtual int read() = 0;
|
||||
virtual int read(uint8_t *buf, size_t size) = 0;
|
||||
virtual int peek() = 0;
|
||||
virtual void flush() = 0;
|
||||
virtual void stop() = 0;
|
||||
virtual uint8_t connected() = 0;
|
||||
virtual operator bool() = 0;
|
||||
protected:
|
||||
uint8_t* rawIPAddress(IPAddress& addr) { return addr.raw_address(); };
|
||||
};
|
||||
|
||||
#endif
|
|
@ -0,0 +1,250 @@
|
|||
/*
|
||||
HardwareSerial.cpp - Hardware serial library for Wiring
|
||||
Copyright (c) 2006 Nicholas Zambetti. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Modified 23 November 2006 by David A. Mellis
|
||||
Modified 28 September 2010 by Mark Sproul
|
||||
Modified 14 August 2012 by Alarus
|
||||
Modified 3 December 2013 by Matthijs Kooijman
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
#include "Arduino.h"
|
||||
|
||||
#include "HardwareSerial.h"
|
||||
#include "HardwareSerial_private.h"
|
||||
|
||||
// this next line disables the entire HardwareSerial.cpp,
|
||||
// this is so I can support Attiny series and any other chip without a uart
|
||||
#if defined(HAVE_HWSERIAL0) || defined(HAVE_HWSERIAL1) || defined(HAVE_HWSERIAL2) || defined(HAVE_HWSERIAL3)
|
||||
|
||||
// SerialEvent functions are weak, so when the user doesn't define them,
|
||||
// the linker just sets their address to 0 (which is checked below).
|
||||
// The Serialx_available is just a wrapper around Serialx.available(),
|
||||
// but we can refer to it weakly so we don't pull in the entire
|
||||
// HardwareSerial instance if the user doesn't also refer to it.
|
||||
#if defined(HAVE_HWSERIAL0)
|
||||
void serialEvent() __attribute__((weak));
|
||||
bool Serial0_available() __attribute__((weak));
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_HWSERIAL1)
|
||||
void serialEvent1() __attribute__((weak));
|
||||
bool Serial1_available() __attribute__((weak));
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_HWSERIAL2)
|
||||
void serialEvent2() __attribute__((weak));
|
||||
bool Serial2_available() __attribute__((weak));
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_HWSERIAL3)
|
||||
void serialEvent3() __attribute__((weak));
|
||||
bool Serial3_available() __attribute__((weak));
|
||||
#endif
|
||||
|
||||
void serialEventRun(void)
|
||||
{
|
||||
#if defined(HAVE_HWSERIAL0)
|
||||
if (Serial0_available && serialEvent && Serial0_available()) serialEvent();
|
||||
#endif
|
||||
#if defined(HAVE_HWSERIAL1)
|
||||
if (Serial1_available && serialEvent1 && Serial1_available()) serialEvent1();
|
||||
#endif
|
||||
#if defined(HAVE_HWSERIAL2)
|
||||
if (Serial2_available && serialEvent2 && Serial2_available()) serialEvent2();
|
||||
#endif
|
||||
#if defined(HAVE_HWSERIAL3)
|
||||
if (Serial3_available && serialEvent3 && Serial3_available()) serialEvent3();
|
||||
#endif
|
||||
}
|
||||
|
||||
// Actual interrupt handlers //////////////////////////////////////////////////////////////
|
||||
|
||||
void HardwareSerial::_tx_udr_empty_irq(void)
|
||||
{
|
||||
// If interrupts are enabled, there must be more data in the output
|
||||
// buffer. Send the next byte
|
||||
unsigned char c = _tx_buffer[_tx_buffer_tail];
|
||||
_tx_buffer_tail = (_tx_buffer_tail + 1) % SERIAL_TX_BUFFER_SIZE;
|
||||
|
||||
*_udr = c;
|
||||
|
||||
// clear the TXC bit -- "can be cleared by writing a one to its bit
|
||||
// location". This makes sure flush() won't return until the bytes
|
||||
// actually got written
|
||||
sbi(*_ucsra, TXC0);
|
||||
|
||||
if (_tx_buffer_head == _tx_buffer_tail) {
|
||||
// Buffer empty, so disable interrupts
|
||||
cbi(*_ucsrb, UDRIE0);
|
||||
}
|
||||
}
|
||||
|
||||
// Public Methods //////////////////////////////////////////////////////////////
|
||||
|
||||
void HardwareSerial::begin(unsigned long baud, byte config)
|
||||
{
|
||||
// Try u2x mode first
|
||||
uint16_t baud_setting = (F_CPU / 4 / baud - 1) / 2;
|
||||
*_ucsra = 1 << U2X0;
|
||||
|
||||
// hardcoded exception for 57600 for compatibility with the bootloader
|
||||
// shipped with the Duemilanove and previous boards and the firmware
|
||||
// on the 8U2 on the Uno and Mega 2560. Also, The baud_setting cannot
|
||||
// be > 4095, so switch back to non-u2x mode if the baud rate is too
|
||||
// low.
|
||||
if (((F_CPU == 16000000UL) && (baud == 57600)) || (baud_setting >4095))
|
||||
{
|
||||
*_ucsra = 0;
|
||||
baud_setting = (F_CPU / 8 / baud - 1) / 2;
|
||||
}
|
||||
|
||||
// assign the baud_setting, a.k.a. ubrr (USART Baud Rate Register)
|
||||
*_ubrrh = baud_setting >> 8;
|
||||
*_ubrrl = baud_setting;
|
||||
|
||||
_written = false;
|
||||
|
||||
//set the data bits, parity, and stop bits
|
||||
#if defined(__AVR_ATmega8__)
|
||||
config |= 0x80; // select UCSRC register (shared with UBRRH)
|
||||
#endif
|
||||
*_ucsrc = config;
|
||||
|
||||
sbi(*_ucsrb, RXEN0);
|
||||
sbi(*_ucsrb, TXEN0);
|
||||
sbi(*_ucsrb, RXCIE0);
|
||||
cbi(*_ucsrb, UDRIE0);
|
||||
}
|
||||
|
||||
void HardwareSerial::end()
|
||||
{
|
||||
// wait for transmission of outgoing data
|
||||
flush();
|
||||
|
||||
cbi(*_ucsrb, RXEN0);
|
||||
cbi(*_ucsrb, TXEN0);
|
||||
cbi(*_ucsrb, RXCIE0);
|
||||
cbi(*_ucsrb, UDRIE0);
|
||||
|
||||
// clear any received data
|
||||
_rx_buffer_head = _rx_buffer_tail;
|
||||
}
|
||||
|
||||
int HardwareSerial::available(void)
|
||||
{
|
||||
return ((unsigned int)(SERIAL_RX_BUFFER_SIZE + _rx_buffer_head - _rx_buffer_tail)) % SERIAL_RX_BUFFER_SIZE;
|
||||
}
|
||||
|
||||
int HardwareSerial::peek(void)
|
||||
{
|
||||
if (_rx_buffer_head == _rx_buffer_tail) {
|
||||
return -1;
|
||||
} else {
|
||||
return _rx_buffer[_rx_buffer_tail];
|
||||
}
|
||||
}
|
||||
|
||||
int HardwareSerial::read(void)
|
||||
{
|
||||
// if the head isn't ahead of the tail, we don't have any characters
|
||||
if (_rx_buffer_head == _rx_buffer_tail) {
|
||||
return -1;
|
||||
} else {
|
||||
unsigned char c = _rx_buffer[_rx_buffer_tail];
|
||||
_rx_buffer_tail = (rx_buffer_index_t)(_rx_buffer_tail + 1) % SERIAL_RX_BUFFER_SIZE;
|
||||
return c;
|
||||
}
|
||||
}
|
||||
|
||||
int HardwareSerial::availableForWrite(void)
|
||||
{
|
||||
#if (SERIAL_TX_BUFFER_SIZE>256)
|
||||
uint8_t oldSREG = SREG;
|
||||
cli();
|
||||
#endif
|
||||
tx_buffer_index_t head = _tx_buffer_head;
|
||||
tx_buffer_index_t tail = _tx_buffer_tail;
|
||||
#if (SERIAL_TX_BUFFER_SIZE>256)
|
||||
SREG = oldSREG;
|
||||
#endif
|
||||
if (head >= tail) return SERIAL_TX_BUFFER_SIZE - 1 - head + tail;
|
||||
return tail - head - 1;
|
||||
}
|
||||
|
||||
void HardwareSerial::flush()
|
||||
{
|
||||
// If we have never written a byte, no need to flush. This special
|
||||
// case is needed since there is no way to force the TXC (transmit
|
||||
// complete) bit to 1 during initialization
|
||||
if (!_written)
|
||||
return;
|
||||
|
||||
while (bit_is_set(*_ucsrb, UDRIE0) || bit_is_clear(*_ucsra, TXC0)) {
|
||||
if (bit_is_clear(SREG, SREG_I) && bit_is_set(*_ucsrb, UDRIE0))
|
||||
// Interrupts are globally disabled, but the DR empty
|
||||
// interrupt should be enabled, so poll the DR empty flag to
|
||||
// prevent deadlock
|
||||
if (bit_is_set(*_ucsra, UDRE0))
|
||||
_tx_udr_empty_irq();
|
||||
}
|
||||
// If we get here, nothing is queued anymore (DRIE is disabled) and
|
||||
// the hardware finished tranmission (TXC is set).
|
||||
}
|
||||
|
||||
size_t HardwareSerial::write(uint8_t c)
|
||||
{
|
||||
_written = true;
|
||||
// If the buffer and the data register is empty, just write the byte
|
||||
// to the data register and be done. This shortcut helps
|
||||
// significantly improve the effective datarate at high (>
|
||||
// 500kbit/s) bitrates, where interrupt overhead becomes a slowdown.
|
||||
if (_tx_buffer_head == _tx_buffer_tail && bit_is_set(*_ucsra, UDRE0)) {
|
||||
*_udr = c;
|
||||
sbi(*_ucsra, TXC0);
|
||||
return 1;
|
||||
}
|
||||
tx_buffer_index_t i = (_tx_buffer_head + 1) % SERIAL_TX_BUFFER_SIZE;
|
||||
|
||||
// If the output buffer is full, there's nothing for it other than to
|
||||
// wait for the interrupt handler to empty it a bit
|
||||
while (i == _tx_buffer_tail) {
|
||||
if (bit_is_clear(SREG, SREG_I)) {
|
||||
// Interrupts are disabled, so we'll have to poll the data
|
||||
// register empty flag ourselves. If it is set, pretend an
|
||||
// interrupt has happened and call the handler to free up
|
||||
// space for us.
|
||||
if(bit_is_set(*_ucsra, UDRE0))
|
||||
_tx_udr_empty_irq();
|
||||
} else {
|
||||
// nop, the interrupt handler will free up space for us
|
||||
}
|
||||
}
|
||||
|
||||
_tx_buffer[_tx_buffer_head] = c;
|
||||
_tx_buffer_head = i;
|
||||
|
||||
sbi(*_ucsrb, UDRIE0);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
#endif // whole file
|
|
@ -0,0 +1,161 @@
|
|||
/*
|
||||
HardwareSerial.h - Hardware serial library for Wiring
|
||||
Copyright (c) 2006 Nicholas Zambetti. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Modified 28 September 2010 by Mark Sproul
|
||||
Modified 14 August 2012 by Alarus
|
||||
Modified 3 December 2013 by Matthijs Kooijman
|
||||
*/
|
||||
|
||||
#ifndef HardwareSerial_h
|
||||
#define HardwareSerial_h
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "Stream.h"
|
||||
|
||||
// Define constants and variables for buffering incoming serial data. We're
|
||||
// using a ring buffer (I think), in which head is the index of the location
|
||||
// to which to write the next incoming character and tail is the index of the
|
||||
// location from which to read.
|
||||
// NOTE: a "power of 2" buffer size is reccomended to dramatically
|
||||
// optimize all the modulo operations for ring buffers.
|
||||
// WARNING: When buffer sizes are increased to > 256, the buffer index
|
||||
// variables are automatically increased in size, but the extra
|
||||
// atomicity guards needed for that are not implemented. This will
|
||||
// often work, but occasionally a race condition can occur that makes
|
||||
// Serial behave erratically. See https://github.com/arduino/Arduino/issues/2405
|
||||
#if !defined(SERIAL_TX_BUFFER_SIZE)
|
||||
#if ((RAMEND - RAMSTART) < 1023)
|
||||
#define SERIAL_TX_BUFFER_SIZE 16
|
||||
#else
|
||||
#define SERIAL_TX_BUFFER_SIZE 64
|
||||
#endif
|
||||
#endif
|
||||
#if !defined(SERIAL_RX_BUFFER_SIZE)
|
||||
#if ((RAMEND - RAMSTART) < 1023)
|
||||
#define SERIAL_RX_BUFFER_SIZE 16
|
||||
#else
|
||||
#define SERIAL_RX_BUFFER_SIZE 64
|
||||
#endif
|
||||
#endif
|
||||
#if (SERIAL_TX_BUFFER_SIZE>256)
|
||||
typedef uint16_t tx_buffer_index_t;
|
||||
#else
|
||||
typedef uint8_t tx_buffer_index_t;
|
||||
#endif
|
||||
#if (SERIAL_RX_BUFFER_SIZE>256)
|
||||
typedef uint16_t rx_buffer_index_t;
|
||||
#else
|
||||
typedef uint8_t rx_buffer_index_t;
|
||||
#endif
|
||||
|
||||
// Define config for Serial.begin(baud, config);
|
||||
#define SERIAL_5N1 0x00
|
||||
#define SERIAL_6N1 0x02
|
||||
#define SERIAL_7N1 0x04
|
||||
#define SERIAL_8N1 0x06
|
||||
#define SERIAL_5N2 0x08
|
||||
#define SERIAL_6N2 0x0A
|
||||
#define SERIAL_7N2 0x0C
|
||||
#define SERIAL_8N2 0x0E
|
||||
#define SERIAL_5E1 0x20
|
||||
#define SERIAL_6E1 0x22
|
||||
#define SERIAL_7E1 0x24
|
||||
#define SERIAL_8E1 0x26
|
||||
#define SERIAL_5E2 0x28
|
||||
#define SERIAL_6E2 0x2A
|
||||
#define SERIAL_7E2 0x2C
|
||||
#define SERIAL_8E2 0x2E
|
||||
#define SERIAL_5O1 0x30
|
||||
#define SERIAL_6O1 0x32
|
||||
#define SERIAL_7O1 0x34
|
||||
#define SERIAL_8O1 0x36
|
||||
#define SERIAL_5O2 0x38
|
||||
#define SERIAL_6O2 0x3A
|
||||
#define SERIAL_7O2 0x3C
|
||||
#define SERIAL_8O2 0x3E
|
||||
|
||||
class HardwareSerial : public Stream
|
||||
{
|
||||
protected:
|
||||
volatile uint8_t * const _ubrrh;
|
||||
volatile uint8_t * const _ubrrl;
|
||||
volatile uint8_t * const _ucsra;
|
||||
volatile uint8_t * const _ucsrb;
|
||||
volatile uint8_t * const _ucsrc;
|
||||
volatile uint8_t * const _udr;
|
||||
// Has any byte been written to the UART since begin()
|
||||
bool _written;
|
||||
|
||||
volatile rx_buffer_index_t _rx_buffer_head;
|
||||
volatile rx_buffer_index_t _rx_buffer_tail;
|
||||
volatile tx_buffer_index_t _tx_buffer_head;
|
||||
volatile tx_buffer_index_t _tx_buffer_tail;
|
||||
|
||||
// Don't put any members after these buffers, since only the first
|
||||
// 32 bytes of this struct can be accessed quickly using the ldd
|
||||
// instruction.
|
||||
unsigned char _rx_buffer[SERIAL_RX_BUFFER_SIZE];
|
||||
unsigned char _tx_buffer[SERIAL_TX_BUFFER_SIZE];
|
||||
|
||||
public:
|
||||
inline HardwareSerial(
|
||||
volatile uint8_t *ubrrh, volatile uint8_t *ubrrl,
|
||||
volatile uint8_t *ucsra, volatile uint8_t *ucsrb,
|
||||
volatile uint8_t *ucsrc, volatile uint8_t *udr);
|
||||
void begin(unsigned long baud) { begin(baud, SERIAL_8N1); }
|
||||
void begin(unsigned long, uint8_t);
|
||||
void end();
|
||||
virtual int available(void);
|
||||
virtual int peek(void);
|
||||
virtual int read(void);
|
||||
virtual int availableForWrite(void);
|
||||
virtual void flush(void);
|
||||
virtual size_t write(uint8_t);
|
||||
inline size_t write(unsigned long n) { return write((uint8_t)n); }
|
||||
inline size_t write(long n) { return write((uint8_t)n); }
|
||||
inline size_t write(unsigned int n) { return write((uint8_t)n); }
|
||||
inline size_t write(int n) { return write((uint8_t)n); }
|
||||
using Print::write; // pull in write(str) and write(buf, size) from Print
|
||||
operator bool() { return true; }
|
||||
|
||||
// Interrupt handlers - Not intended to be called externally
|
||||
inline void _rx_complete_irq(void);
|
||||
void _tx_udr_empty_irq(void);
|
||||
};
|
||||
|
||||
#if defined(UBRRH) || defined(UBRR0H)
|
||||
extern HardwareSerial Serial;
|
||||
#define HAVE_HWSERIAL0
|
||||
#endif
|
||||
#if defined(UBRR1H)
|
||||
extern HardwareSerial Serial1;
|
||||
#define HAVE_HWSERIAL1
|
||||
#endif
|
||||
#if defined(UBRR2H)
|
||||
extern HardwareSerial Serial2;
|
||||
#define HAVE_HWSERIAL2
|
||||
#endif
|
||||
#if defined(UBRR3H)
|
||||
extern HardwareSerial Serial3;
|
||||
#define HAVE_HWSERIAL3
|
||||
#endif
|
||||
|
||||
extern void serialEventRun(void) __attribute__((weak));
|
||||
|
||||
#endif
|
|
@ -0,0 +1,79 @@
|
|||
/*
|
||||
HardwareSerial0.cpp - Hardware serial library for Wiring
|
||||
Copyright (c) 2006 Nicholas Zambetti. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Modified 23 November 2006 by David A. Mellis
|
||||
Modified 28 September 2010 by Mark Sproul
|
||||
Modified 14 August 2012 by Alarus
|
||||
Modified 3 December 2013 by Matthijs Kooijman
|
||||
*/
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "HardwareSerial.h"
|
||||
#include "HardwareSerial_private.h"
|
||||
|
||||
// Each HardwareSerial is defined in its own file, sine the linker pulls
|
||||
// in the entire file when any element inside is used. --gc-sections can
|
||||
// additionally cause unused symbols to be dropped, but ISRs have the
|
||||
// "used" attribute so are never dropped and they keep the
|
||||
// HardwareSerial instance in as well. Putting each instance in its own
|
||||
// file prevents the linker from pulling in any unused instances in the
|
||||
// first place.
|
||||
|
||||
#if defined(HAVE_HWSERIAL0)
|
||||
|
||||
#if defined(USART_RX_vect)
|
||||
ISR(USART_RX_vect)
|
||||
#elif defined(USART0_RX_vect)
|
||||
ISR(USART0_RX_vect)
|
||||
#elif defined(USART_RXC_vect)
|
||||
ISR(USART_RXC_vect) // ATmega8
|
||||
#else
|
||||
#error "Don't know what the Data Received vector is called for Serial"
|
||||
#endif
|
||||
{
|
||||
Serial._rx_complete_irq();
|
||||
}
|
||||
|
||||
#if defined(UART0_UDRE_vect)
|
||||
ISR(UART0_UDRE_vect)
|
||||
#elif defined(UART_UDRE_vect)
|
||||
ISR(UART_UDRE_vect)
|
||||
#elif defined(USART0_UDRE_vect)
|
||||
ISR(USART0_UDRE_vect)
|
||||
#elif defined(USART_UDRE_vect)
|
||||
ISR(USART_UDRE_vect)
|
||||
#else
|
||||
#error "Don't know what the Data Register Empty vector is called for Serial"
|
||||
#endif
|
||||
{
|
||||
Serial._tx_udr_empty_irq();
|
||||
}
|
||||
|
||||
#if defined(UBRRH) && defined(UBRRL)
|
||||
HardwareSerial Serial(&UBRRH, &UBRRL, &UCSRA, &UCSRB, &UCSRC, &UDR);
|
||||
#else
|
||||
HardwareSerial Serial(&UBRR0H, &UBRR0L, &UCSR0A, &UCSR0B, &UCSR0C, &UDR0);
|
||||
#endif
|
||||
|
||||
// Function that can be weakly referenced by serialEventRun to prevent
|
||||
// pulling in this file if it's not otherwise used.
|
||||
bool Serial0_available() {
|
||||
return Serial.available();
|
||||
}
|
||||
|
||||
#endif // HAVE_HWSERIAL0
|
|
@ -0,0 +1,69 @@
|
|||
/*
|
||||
HardwareSerial1.cpp - Hardware serial library for Wiring
|
||||
Copyright (c) 2006 Nicholas Zambetti. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Modified 23 November 2006 by David A. Mellis
|
||||
Modified 28 September 2010 by Mark Sproul
|
||||
Modified 14 August 2012 by Alarus
|
||||
Modified 3 December 2013 by Matthijs Kooijman
|
||||
*/
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "HardwareSerial.h"
|
||||
#include "HardwareSerial_private.h"
|
||||
|
||||
// Each HardwareSerial is defined in its own file, sine the linker pulls
|
||||
// in the entire file when any element inside is used. --gc-sections can
|
||||
// additionally cause unused symbols to be dropped, but ISRs have the
|
||||
// "used" attribute so are never dropped and they keep the
|
||||
// HardwareSerial instance in as well. Putting each instance in its own
|
||||
// file prevents the linker from pulling in any unused instances in the
|
||||
// first place.
|
||||
|
||||
#if defined(HAVE_HWSERIAL1)
|
||||
|
||||
#if defined(UART1_RX_vect)
|
||||
ISR(UART1_RX_vect)
|
||||
#elif defined(USART1_RX_vect)
|
||||
ISR(USART1_RX_vect)
|
||||
#else
|
||||
#error "Don't know what the Data Register Empty vector is called for Serial1"
|
||||
#endif
|
||||
{
|
||||
Serial1._rx_complete_irq();
|
||||
}
|
||||
|
||||
#if defined(UART1_UDRE_vect)
|
||||
ISR(UART1_UDRE_vect)
|
||||
#elif defined(USART1_UDRE_vect)
|
||||
ISR(USART1_UDRE_vect)
|
||||
#else
|
||||
#error "Don't know what the Data Register Empty vector is called for Serial1"
|
||||
#endif
|
||||
{
|
||||
Serial1._tx_udr_empty_irq();
|
||||
}
|
||||
|
||||
HardwareSerial Serial1(&UBRR1H, &UBRR1L, &UCSR1A, &UCSR1B, &UCSR1C, &UDR1);
|
||||
|
||||
// Function that can be weakly referenced by serialEventRun to prevent
|
||||
// pulling in this file if it's not otherwise used.
|
||||
bool Serial1_available() {
|
||||
return Serial1.available();
|
||||
}
|
||||
|
||||
#endif // HAVE_HWSERIAL1
|
|
@ -0,0 +1,57 @@
|
|||
/*
|
||||
HardwareSerial2.cpp - Hardware serial library for Wiring
|
||||
Copyright (c) 2006 Nicholas Zambetti. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Modified 23 November 2006 by David A. Mellis
|
||||
Modified 28 September 2010 by Mark Sproul
|
||||
Modified 14 August 2012 by Alarus
|
||||
Modified 3 December 2013 by Matthijs Kooijman
|
||||
*/
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "HardwareSerial.h"
|
||||
#include "HardwareSerial_private.h"
|
||||
|
||||
// Each HardwareSerial is defined in its own file, sine the linker pulls
|
||||
// in the entire file when any element inside is used. --gc-sections can
|
||||
// additionally cause unused symbols to be dropped, but ISRs have the
|
||||
// "used" attribute so are never dropped and they keep the
|
||||
// HardwareSerial instance in as well. Putting each instance in its own
|
||||
// file prevents the linker from pulling in any unused instances in the
|
||||
// first place.
|
||||
|
||||
#if defined(HAVE_HWSERIAL2)
|
||||
|
||||
ISR(USART2_RX_vect)
|
||||
{
|
||||
Serial2._rx_complete_irq();
|
||||
}
|
||||
|
||||
ISR(USART2_UDRE_vect)
|
||||
{
|
||||
Serial2._tx_udr_empty_irq();
|
||||
}
|
||||
|
||||
HardwareSerial Serial2(&UBRR2H, &UBRR2L, &UCSR2A, &UCSR2B, &UCSR2C, &UDR2);
|
||||
|
||||
// Function that can be weakly referenced by serialEventRun to prevent
|
||||
// pulling in this file if it's not otherwise used.
|
||||
bool Serial2_available() {
|
||||
return Serial2.available();
|
||||
}
|
||||
|
||||
#endif // HAVE_HWSERIAL2
|
|
@ -0,0 +1,57 @@
|
|||
/*
|
||||
HardwareSerial3.cpp - Hardware serial library for Wiring
|
||||
Copyright (c) 2006 Nicholas Zambetti. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Modified 23 November 2006 by David A. Mellis
|
||||
Modified 28 September 2010 by Mark Sproul
|
||||
Modified 14 August 2012 by Alarus
|
||||
Modified 3 December 2013 by Matthijs Kooijman
|
||||
*/
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "HardwareSerial.h"
|
||||
#include "HardwareSerial_private.h"
|
||||
|
||||
// Each HardwareSerial is defined in its own file, sine the linker pulls
|
||||
// in the entire file when any element inside is used. --gc-sections can
|
||||
// additionally cause unused symbols to be dropped, but ISRs have the
|
||||
// "used" attribute so are never dropped and they keep the
|
||||
// HardwareSerial instance in as well. Putting each instance in its own
|
||||
// file prevents the linker from pulling in any unused instances in the
|
||||
// first place.
|
||||
|
||||
#if defined(HAVE_HWSERIAL3)
|
||||
|
||||
ISR(USART3_RX_vect)
|
||||
{
|
||||
Serial3._rx_complete_irq();
|
||||
}
|
||||
|
||||
ISR(USART3_UDRE_vect)
|
||||
{
|
||||
Serial3._tx_udr_empty_irq();
|
||||
}
|
||||
|
||||
HardwareSerial Serial3(&UBRR3H, &UBRR3L, &UCSR3A, &UCSR3B, &UCSR3C, &UDR3);
|
||||
|
||||
// Function that can be weakly referenced by serialEventRun to prevent
|
||||
// pulling in this file if it's not otherwise used.
|
||||
bool Serial3_available() {
|
||||
return Serial3.available();
|
||||
}
|
||||
|
||||
#endif // HAVE_HWSERIAL3
|
|
@ -0,0 +1,123 @@
|
|||
/*
|
||||
HardwareSerial_private.h - Hardware serial library for Wiring
|
||||
Copyright (c) 2006 Nicholas Zambetti. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Modified 23 November 2006 by David A. Mellis
|
||||
Modified 28 September 2010 by Mark Sproul
|
||||
Modified 14 August 2012 by Alarus
|
||||
*/
|
||||
|
||||
#include "wiring_private.h"
|
||||
|
||||
// this next line disables the entire HardwareSerial.cpp,
|
||||
// this is so I can support Attiny series and any other chip without a uart
|
||||
#if defined(HAVE_HWSERIAL0) || defined(HAVE_HWSERIAL1) || defined(HAVE_HWSERIAL2) || defined(HAVE_HWSERIAL3)
|
||||
|
||||
// Ensure that the various bit positions we use are available with a 0
|
||||
// postfix, so we can always use the values for UART0 for all UARTs. The
|
||||
// alternative, passing the various values for each UART to the
|
||||
// HardwareSerial constructor also works, but makes the code bigger and
|
||||
// slower.
|
||||
#if !defined(TXC0)
|
||||
#if defined(TXC)
|
||||
// Some chips like ATmega8 don't have UPE, only PE. The other bits are
|
||||
// named as expected.
|
||||
#if !defined(UPE) && defined(PE)
|
||||
#define UPE PE
|
||||
#endif
|
||||
// On ATmega8, the uart and its bits are not numbered, so there is no TXC0 etc.
|
||||
#define TXC0 TXC
|
||||
#define RXEN0 RXEN
|
||||
#define TXEN0 TXEN
|
||||
#define RXCIE0 RXCIE
|
||||
#define UDRIE0 UDRIE
|
||||
#define U2X0 U2X
|
||||
#define UPE0 UPE
|
||||
#define UDRE0 UDRE
|
||||
#elif defined(TXC1)
|
||||
// Some devices have uart1 but no uart0
|
||||
#define TXC0 TXC1
|
||||
#define RXEN0 RXEN1
|
||||
#define TXEN0 TXEN1
|
||||
#define RXCIE0 RXCIE1
|
||||
#define UDRIE0 UDRIE1
|
||||
#define U2X0 U2X1
|
||||
#define UPE0 UPE1
|
||||
#define UDRE0 UDRE1
|
||||
#else
|
||||
#error No UART found in HardwareSerial.cpp
|
||||
#endif
|
||||
#endif // !defined TXC0
|
||||
|
||||
// Check at compiletime that it is really ok to use the bit positions of
|
||||
// UART0 for the other UARTs as well, in case these values ever get
|
||||
// changed for future hardware.
|
||||
#if defined(TXC1) && (TXC1 != TXC0 || RXEN1 != RXEN0 || RXCIE1 != RXCIE0 || \
|
||||
UDRIE1 != UDRIE0 || U2X1 != U2X0 || UPE1 != UPE0 || \
|
||||
UDRE1 != UDRE0)
|
||||
#error "Not all bit positions for UART1 are the same as for UART0"
|
||||
#endif
|
||||
#if defined(TXC2) && (TXC2 != TXC0 || RXEN2 != RXEN0 || RXCIE2 != RXCIE0 || \
|
||||
UDRIE2 != UDRIE0 || U2X2 != U2X0 || UPE2 != UPE0 || \
|
||||
UDRE2 != UDRE0)
|
||||
#error "Not all bit positions for UART2 are the same as for UART0"
|
||||
#endif
|
||||
#if defined(TXC3) && (TXC3 != TXC0 || RXEN3 != RXEN0 || RXCIE3 != RXCIE0 || \
|
||||
UDRIE3 != UDRIE0 || U3X3 != U3X0 || UPE3 != UPE0 || \
|
||||
UDRE3 != UDRE0)
|
||||
#error "Not all bit positions for UART3 are the same as for UART0"
|
||||
#endif
|
||||
|
||||
// Constructors ////////////////////////////////////////////////////////////////
|
||||
|
||||
HardwareSerial::HardwareSerial(
|
||||
volatile uint8_t *ubrrh, volatile uint8_t *ubrrl,
|
||||
volatile uint8_t *ucsra, volatile uint8_t *ucsrb,
|
||||
volatile uint8_t *ucsrc, volatile uint8_t *udr) :
|
||||
_ubrrh(ubrrh), _ubrrl(ubrrl),
|
||||
_ucsra(ucsra), _ucsrb(ucsrb), _ucsrc(ucsrc),
|
||||
_udr(udr),
|
||||
_rx_buffer_head(0), _rx_buffer_tail(0),
|
||||
_tx_buffer_head(0), _tx_buffer_tail(0)
|
||||
{
|
||||
}
|
||||
|
||||
// Actual interrupt handlers //////////////////////////////////////////////////////////////
|
||||
|
||||
void HardwareSerial::_rx_complete_irq(void)
|
||||
{
|
||||
if (bit_is_clear(*_ucsra, UPE0)) {
|
||||
// No Parity error, read byte and store it in the buffer if there is
|
||||
// room
|
||||
unsigned char c = *_udr;
|
||||
rx_buffer_index_t i = (unsigned int)(_rx_buffer_head + 1) % SERIAL_RX_BUFFER_SIZE;
|
||||
|
||||
// if we should be storing the received character into the location
|
||||
// just before the tail (meaning that the head would advance to the
|
||||
// current location of the tail), we're about to overflow the buffer
|
||||
// and so we don't write the character or advance the head.
|
||||
if (i != _rx_buffer_tail) {
|
||||
_rx_buffer[_rx_buffer_head] = c;
|
||||
_rx_buffer_head = i;
|
||||
}
|
||||
} else {
|
||||
// Parity error, read byte but discard it
|
||||
*_udr;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // whole file
|
|
@ -0,0 +1,114 @@
|
|||
/*
|
||||
IPAddress.cpp - Base class that provides IPAddress
|
||||
Copyright (c) 2011 Adrian McEwen. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <IPAddress.h>
|
||||
|
||||
IPAddress::IPAddress()
|
||||
{
|
||||
_address.dword = 0;
|
||||
}
|
||||
|
||||
IPAddress::IPAddress(uint8_t first_octet, uint8_t second_octet, uint8_t third_octet, uint8_t fourth_octet)
|
||||
{
|
||||
_address.bytes[0] = first_octet;
|
||||
_address.bytes[1] = second_octet;
|
||||
_address.bytes[2] = third_octet;
|
||||
_address.bytes[3] = fourth_octet;
|
||||
}
|
||||
|
||||
IPAddress::IPAddress(uint32_t address)
|
||||
{
|
||||
_address.dword = address;
|
||||
}
|
||||
|
||||
IPAddress::IPAddress(const uint8_t *address)
|
||||
{
|
||||
memcpy(_address.bytes, address, sizeof(_address.bytes));
|
||||
}
|
||||
|
||||
bool IPAddress::fromString(const char *address)
|
||||
{
|
||||
uint16_t acc = 0; // Accumulator
|
||||
uint8_t dots = 0;
|
||||
|
||||
while (*address)
|
||||
{
|
||||
char c = *address++;
|
||||
if (c >= '0' && c <= '9')
|
||||
{
|
||||
acc = acc * 10 + (c - '0');
|
||||
if (acc > 255) {
|
||||
// Value out of [0..255] range
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (c == '.')
|
||||
{
|
||||
if (dots == 3) {
|
||||
// Too much dots (there must be 3 dots)
|
||||
return false;
|
||||
}
|
||||
_address.bytes[dots++] = acc;
|
||||
acc = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Invalid char
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (dots != 3) {
|
||||
// Too few dots (there must be 3 dots)
|
||||
return false;
|
||||
}
|
||||
_address.bytes[3] = acc;
|
||||
return true;
|
||||
}
|
||||
|
||||
IPAddress& IPAddress::operator=(const uint8_t *address)
|
||||
{
|
||||
memcpy(_address.bytes, address, sizeof(_address.bytes));
|
||||
return *this;
|
||||
}
|
||||
|
||||
IPAddress& IPAddress::operator=(uint32_t address)
|
||||
{
|
||||
_address.dword = address;
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool IPAddress::operator==(const uint8_t* addr) const
|
||||
{
|
||||
return memcmp(addr, _address.bytes, sizeof(_address.bytes)) == 0;
|
||||
}
|
||||
|
||||
size_t IPAddress::printTo(Print& p) const
|
||||
{
|
||||
size_t n = 0;
|
||||
for (int i =0; i < 3; i++)
|
||||
{
|
||||
n += p.print(_address.bytes[i], DEC);
|
||||
n += p.print('.');
|
||||
}
|
||||
n += p.print(_address.bytes[3], DEC);
|
||||
return n;
|
||||
}
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
/*
|
||||
IPAddress.h - Base class that provides IPAddress
|
||||
Copyright (c) 2011 Adrian McEwen. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef IPAddress_h
|
||||
#define IPAddress_h
|
||||
|
||||
#include <stdint.h>
|
||||
#include "Printable.h"
|
||||
#include "WString.h"
|
||||
|
||||
// A class to make it easier to handle and pass around IP addresses
|
||||
|
||||
class IPAddress : public Printable {
|
||||
private:
|
||||
union {
|
||||
uint8_t bytes[4]; // IPv4 address
|
||||
uint32_t dword;
|
||||
} _address;
|
||||
|
||||
// Access the raw byte array containing the address. Because this returns a pointer
|
||||
// to the internal structure rather than a copy of the address this function should only
|
||||
// be used when you know that the usage of the returned uint8_t* will be transient and not
|
||||
// stored.
|
||||
uint8_t* raw_address() { return _address.bytes; };
|
||||
|
||||
public:
|
||||
// Constructors
|
||||
IPAddress();
|
||||
IPAddress(uint8_t first_octet, uint8_t second_octet, uint8_t third_octet, uint8_t fourth_octet);
|
||||
IPAddress(uint32_t address);
|
||||
IPAddress(const uint8_t *address);
|
||||
|
||||
bool fromString(const char *address);
|
||||
bool fromString(const String &address) { return fromString(address.c_str()); }
|
||||
|
||||
// Overloaded cast operator to allow IPAddress objects to be used where a pointer
|
||||
// to a four-byte uint8_t array is expected
|
||||
operator uint32_t() const { return _address.dword; };
|
||||
bool operator==(const IPAddress& addr) const { return _address.dword == addr._address.dword; };
|
||||
bool operator==(const uint8_t* addr) const;
|
||||
|
||||
// Overloaded index operator to allow getting and setting individual octets of the address
|
||||
uint8_t operator[](int index) const { return _address.bytes[index]; };
|
||||
uint8_t& operator[](int index) { return _address.bytes[index]; };
|
||||
|
||||
// Overloaded copy operators to allow initialisation of IPAddress objects from other types
|
||||
IPAddress& operator=(const uint8_t *address);
|
||||
IPAddress& operator=(uint32_t address);
|
||||
|
||||
virtual size_t printTo(Print& p) const;
|
||||
|
||||
friend class EthernetClass;
|
||||
friend class UDP;
|
||||
friend class Client;
|
||||
friend class Server;
|
||||
friend class DhcpClass;
|
||||
friend class DNSClient;
|
||||
};
|
||||
|
||||
const IPAddress INADDR_NONE(0,0,0,0);
|
||||
|
||||
#endif
|
|
@ -0,0 +1,115 @@
|
|||
/*
|
||||
PluggableUSB.cpp
|
||||
Copyright (c) 2015 Arduino LLC
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "USBAPI.h"
|
||||
#include "PluggableUSB.h"
|
||||
|
||||
#if defined(USBCON)
|
||||
#ifdef PLUGGABLE_USB_ENABLED
|
||||
|
||||
extern uint8_t _initEndpoints[];
|
||||
|
||||
int PluggableUSB_::getInterface(uint8_t* interfaceCount)
|
||||
{
|
||||
int sent = 0;
|
||||
PluggableUSBModule* node;
|
||||
for (node = rootNode; node; node = node->next) {
|
||||
int res = node->getInterface(interfaceCount);
|
||||
if (res < 0)
|
||||
return -1;
|
||||
sent += res;
|
||||
}
|
||||
return sent;
|
||||
}
|
||||
|
||||
int PluggableUSB_::getDescriptor(USBSetup& setup)
|
||||
{
|
||||
PluggableUSBModule* node;
|
||||
for (node = rootNode; node; node = node->next) {
|
||||
int ret = node->getDescriptor(setup);
|
||||
// ret!=0 -> request has been processed
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void PluggableUSB_::getShortName(char *iSerialNum)
|
||||
{
|
||||
PluggableUSBModule* node;
|
||||
for (node = rootNode; node; node = node->next) {
|
||||
iSerialNum += node->getShortName(iSerialNum);
|
||||
}
|
||||
*iSerialNum = 0;
|
||||
}
|
||||
|
||||
bool PluggableUSB_::setup(USBSetup& setup)
|
||||
{
|
||||
PluggableUSBModule* node;
|
||||
for (node = rootNode; node; node = node->next) {
|
||||
if (node->setup(setup)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool PluggableUSB_::plug(PluggableUSBModule *node)
|
||||
{
|
||||
if ((lastEp + node->numEndpoints) > USB_ENDPOINTS) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!rootNode) {
|
||||
rootNode = node;
|
||||
} else {
|
||||
PluggableUSBModule *current = rootNode;
|
||||
while (current->next) {
|
||||
current = current->next;
|
||||
}
|
||||
current->next = node;
|
||||
}
|
||||
|
||||
node->pluggedInterface = lastIf;
|
||||
node->pluggedEndpoint = lastEp;
|
||||
lastIf += node->numInterfaces;
|
||||
for (uint8_t i = 0; i < node->numEndpoints; i++) {
|
||||
_initEndpoints[lastEp] = node->endpointType[i];
|
||||
lastEp++;
|
||||
}
|
||||
return true;
|
||||
// restart USB layer???
|
||||
}
|
||||
|
||||
PluggableUSB_& PluggableUSB()
|
||||
{
|
||||
static PluggableUSB_ obj;
|
||||
return obj;
|
||||
}
|
||||
|
||||
PluggableUSB_::PluggableUSB_() : lastIf(CDC_ACM_INTERFACE + CDC_INTERFACE_COUNT),
|
||||
lastEp(CDC_FIRST_ENDPOINT + CDC_ENPOINT_COUNT),
|
||||
rootNode(NULL)
|
||||
{
|
||||
// Empty
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* if defined(USBCON) */
|
|
@ -0,0 +1,74 @@
|
|||
/*
|
||||
PluggableUSB.h
|
||||
Copyright (c) 2015 Arduino LLC
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef PUSB_h
|
||||
#define PUSB_h
|
||||
|
||||
#include "USBAPI.h"
|
||||
#include <stdint.h>
|
||||
|
||||
#if defined(USBCON)
|
||||
|
||||
class PluggableUSBModule {
|
||||
public:
|
||||
PluggableUSBModule(uint8_t numEps, uint8_t numIfs, uint8_t *epType) :
|
||||
numEndpoints(numEps), numInterfaces(numIfs), endpointType(epType)
|
||||
{ }
|
||||
|
||||
protected:
|
||||
virtual bool setup(USBSetup& setup) = 0;
|
||||
virtual int getInterface(uint8_t* interfaceCount) = 0;
|
||||
virtual int getDescriptor(USBSetup& setup) = 0;
|
||||
virtual uint8_t getShortName(char *name) { name[0] = 'A'+pluggedInterface; return 1; }
|
||||
|
||||
uint8_t pluggedInterface;
|
||||
uint8_t pluggedEndpoint;
|
||||
|
||||
const uint8_t numEndpoints;
|
||||
const uint8_t numInterfaces;
|
||||
const uint8_t *endpointType;
|
||||
|
||||
PluggableUSBModule *next = NULL;
|
||||
|
||||
friend class PluggableUSB_;
|
||||
};
|
||||
|
||||
class PluggableUSB_ {
|
||||
public:
|
||||
PluggableUSB_();
|
||||
bool plug(PluggableUSBModule *node);
|
||||
int getInterface(uint8_t* interfaceCount);
|
||||
int getDescriptor(USBSetup& setup);
|
||||
bool setup(USBSetup& setup);
|
||||
void getShortName(char *iSerialNum);
|
||||
|
||||
private:
|
||||
uint8_t lastIf;
|
||||
uint8_t lastEp;
|
||||
PluggableUSBModule* rootNode;
|
||||
};
|
||||
|
||||
// Replacement for global singleton.
|
||||
// This function prevents static-initialization-order-fiasco
|
||||
// https://isocpp.org/wiki/faq/ctors#static-init-order-on-first-use
|
||||
PluggableUSB_& PluggableUSB();
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
|
@ -0,0 +1,266 @@
|
|||
/*
|
||||
Print.cpp - Base class that provides print() and println()
|
||||
Copyright (c) 2008 David A. Mellis. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Modified 23 November 2006 by David A. Mellis
|
||||
Modified 03 August 2015 by Chuck Todd
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include "Arduino.h"
|
||||
|
||||
#include "Print.h"
|
||||
|
||||
// Public Methods //////////////////////////////////////////////////////////////
|
||||
|
||||
/* default implementation: may be overridden */
|
||||
size_t Print::write(const uint8_t *buffer, size_t size)
|
||||
{
|
||||
size_t n = 0;
|
||||
while (size--) {
|
||||
if (write(*buffer++)) n++;
|
||||
else break;
|
||||
}
|
||||
return n;
|
||||
}
|
||||
|
||||
size_t Print::print(const __FlashStringHelper *ifsh)
|
||||
{
|
||||
PGM_P p = reinterpret_cast<PGM_P>(ifsh);
|
||||
size_t n = 0;
|
||||
while (1) {
|
||||
unsigned char c = pgm_read_byte(p++);
|
||||
if (c == 0) break;
|
||||
if (write(c)) n++;
|
||||
else break;
|
||||
}
|
||||
return n;
|
||||
}
|
||||
|
||||
size_t Print::print(const String &s)
|
||||
{
|
||||
return write(s.c_str(), s.length());
|
||||
}
|
||||
|
||||
size_t Print::print(const char str[])
|
||||
{
|
||||
return write(str);
|
||||
}
|
||||
|
||||
size_t Print::print(char c)
|
||||
{
|
||||
return write(c);
|
||||
}
|
||||
|
||||
size_t Print::print(unsigned char b, int base)
|
||||
{
|
||||
return print((unsigned long) b, base);
|
||||
}
|
||||
|
||||
size_t Print::print(int n, int base)
|
||||
{
|
||||
return print((long) n, base);
|
||||
}
|
||||
|
||||
size_t Print::print(unsigned int n, int base)
|
||||
{
|
||||
return print((unsigned long) n, base);
|
||||
}
|
||||
|
||||
size_t Print::print(long n, int base)
|
||||
{
|
||||
if (base == 0) {
|
||||
return write(n);
|
||||
} else if (base == 10) {
|
||||
if (n < 0) {
|
||||
int t = print('-');
|
||||
n = -n;
|
||||
return printNumber(n, 10) + t;
|
||||
}
|
||||
return printNumber(n, 10);
|
||||
} else {
|
||||
return printNumber(n, base);
|
||||
}
|
||||
}
|
||||
|
||||
size_t Print::print(unsigned long n, int base)
|
||||
{
|
||||
if (base == 0) return write(n);
|
||||
else return printNumber(n, base);
|
||||
}
|
||||
|
||||
size_t Print::print(double n, int digits)
|
||||
{
|
||||
return printFloat(n, digits);
|
||||
}
|
||||
|
||||
size_t Print::println(const __FlashStringHelper *ifsh)
|
||||
{
|
||||
size_t n = print(ifsh);
|
||||
n += println();
|
||||
return n;
|
||||
}
|
||||
|
||||
size_t Print::print(const Printable& x)
|
||||
{
|
||||
return x.printTo(*this);
|
||||
}
|
||||
|
||||
size_t Print::println(void)
|
||||
{
|
||||
return write("\r\n");
|
||||
}
|
||||
|
||||
size_t Print::println(const String &s)
|
||||
{
|
||||
size_t n = print(s);
|
||||
n += println();
|
||||
return n;
|
||||
}
|
||||
|
||||
size_t Print::println(const char c[])
|
||||
{
|
||||
size_t n = print(c);
|
||||
n += println();
|
||||
return n;
|
||||
}
|
||||
|
||||
size_t Print::println(char c)
|
||||
{
|
||||
size_t n = print(c);
|
||||
n += println();
|
||||
return n;
|
||||
}
|
||||
|
||||
size_t Print::println(unsigned char b, int base)
|
||||
{
|
||||
size_t n = print(b, base);
|
||||
n += println();
|
||||
return n;
|
||||
}
|
||||
|
||||
size_t Print::println(int num, int base)
|
||||
{
|
||||
size_t n = print(num, base);
|
||||
n += println();
|
||||
return n;
|
||||
}
|
||||
|
||||
size_t Print::println(unsigned int num, int base)
|
||||
{
|
||||
size_t n = print(num, base);
|
||||
n += println();
|
||||
return n;
|
||||
}
|
||||
|
||||
size_t Print::println(long num, int base)
|
||||
{
|
||||
size_t n = print(num, base);
|
||||
n += println();
|
||||
return n;
|
||||
}
|
||||
|
||||
size_t Print::println(unsigned long num, int base)
|
||||
{
|
||||
size_t n = print(num, base);
|
||||
n += println();
|
||||
return n;
|
||||
}
|
||||
|
||||
size_t Print::println(double num, int digits)
|
||||
{
|
||||
size_t n = print(num, digits);
|
||||
n += println();
|
||||
return n;
|
||||
}
|
||||
|
||||
size_t Print::println(const Printable& x)
|
||||
{
|
||||
size_t n = print(x);
|
||||
n += println();
|
||||
return n;
|
||||
}
|
||||
|
||||
// Private Methods /////////////////////////////////////////////////////////////
|
||||
|
||||
size_t Print::printNumber(unsigned long n, uint8_t base)
|
||||
{
|
||||
char buf[8 * sizeof(long) + 1]; // Assumes 8-bit chars plus zero byte.
|
||||
char *str = &buf[sizeof(buf) - 1];
|
||||
|
||||
*str = '\0';
|
||||
|
||||
// prevent crash if called with base == 1
|
||||
if (base < 2) base = 10;
|
||||
|
||||
do {
|
||||
char c = n % base;
|
||||
n /= base;
|
||||
|
||||
*--str = c < 10 ? c + '0' : c + 'A' - 10;
|
||||
} while(n);
|
||||
|
||||
return write(str);
|
||||
}
|
||||
|
||||
size_t Print::printFloat(double number, uint8_t digits)
|
||||
{
|
||||
size_t n = 0;
|
||||
|
||||
if (isnan(number)) return print("nan");
|
||||
if (isinf(number)) return print("inf");
|
||||
if (number > 4294967040.0) return print ("ovf"); // constant determined empirically
|
||||
if (number <-4294967040.0) return print ("ovf"); // constant determined empirically
|
||||
|
||||
// Handle negative numbers
|
||||
if (number < 0.0)
|
||||
{
|
||||
n += print('-');
|
||||
number = -number;
|
||||
}
|
||||
|
||||
// Round correctly so that print(1.999, 2) prints as "2.00"
|
||||
double rounding = 0.5;
|
||||
for (uint8_t i=0; i<digits; ++i)
|
||||
rounding /= 10.0;
|
||||
|
||||
number += rounding;
|
||||
|
||||
// Extract the integer part of the number and print it
|
||||
unsigned long int_part = (unsigned long)number;
|
||||
double remainder = number - (double)int_part;
|
||||
n += print(int_part);
|
||||
|
||||
// Print the decimal point, but only if there are digits beyond
|
||||
if (digits > 0) {
|
||||
n += print('.');
|
||||
}
|
||||
|
||||
// Extract digits from the remainder one at a time
|
||||
while (digits-- > 0)
|
||||
{
|
||||
remainder *= 10.0;
|
||||
unsigned int toPrint = (unsigned int)(remainder);
|
||||
n += print(toPrint);
|
||||
remainder -= toPrint;
|
||||
}
|
||||
|
||||
return n;
|
||||
}
|
|
@ -0,0 +1,93 @@
|
|||
/*
|
||||
Print.h - Base class that provides print() and println()
|
||||
Copyright (c) 2008 David A. Mellis. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef Print_h
|
||||
#define Print_h
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdio.h> // for size_t
|
||||
|
||||
#include "WString.h"
|
||||
#include "Printable.h"
|
||||
|
||||
#define DEC 10
|
||||
#define HEX 16
|
||||
#define OCT 8
|
||||
#ifdef BIN // Prevent warnings if BIN is previously defined in "iotnx4.h" or similar
|
||||
#undef BIN
|
||||
#endif
|
||||
#define BIN 2
|
||||
|
||||
class Print
|
||||
{
|
||||
private:
|
||||
int write_error;
|
||||
size_t printNumber(unsigned long, uint8_t);
|
||||
size_t printFloat(double, uint8_t);
|
||||
protected:
|
||||
void setWriteError(int err = 1) { write_error = err; }
|
||||
public:
|
||||
Print() : write_error(0) {}
|
||||
|
||||
int getWriteError() { return write_error; }
|
||||
void clearWriteError() { setWriteError(0); }
|
||||
|
||||
virtual size_t write(uint8_t) = 0;
|
||||
size_t write(const char *str) {
|
||||
if (str == NULL) return 0;
|
||||
return write((const uint8_t *)str, strlen(str));
|
||||
}
|
||||
virtual size_t write(const uint8_t *buffer, size_t size);
|
||||
size_t write(const char *buffer, size_t size) {
|
||||
return write((const uint8_t *)buffer, size);
|
||||
}
|
||||
|
||||
// default to zero, meaning "a single write may block"
|
||||
// should be overriden by subclasses with buffering
|
||||
virtual int availableForWrite() { return 0; }
|
||||
|
||||
size_t print(const __FlashStringHelper *);
|
||||
size_t print(const String &);
|
||||
size_t print(const char[]);
|
||||
size_t print(char);
|
||||
size_t print(unsigned char, int = DEC);
|
||||
size_t print(int, int = DEC);
|
||||
size_t print(unsigned int, int = DEC);
|
||||
size_t print(long, int = DEC);
|
||||
size_t print(unsigned long, int = DEC);
|
||||
size_t print(double, int = 2);
|
||||
size_t print(const Printable&);
|
||||
|
||||
size_t println(const __FlashStringHelper *);
|
||||
size_t println(const String &s);
|
||||
size_t println(const char[]);
|
||||
size_t println(char);
|
||||
size_t println(unsigned char, int = DEC);
|
||||
size_t println(int, int = DEC);
|
||||
size_t println(unsigned int, int = DEC);
|
||||
size_t println(long, int = DEC);
|
||||
size_t println(unsigned long, int = DEC);
|
||||
size_t println(double, int = 2);
|
||||
size_t println(const Printable&);
|
||||
size_t println(void);
|
||||
|
||||
virtual void flush() { /* Empty implementation for backward compatibility */ }
|
||||
};
|
||||
|
||||
#endif
|
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
Printable.h - Interface class that allows printing of complex types
|
||||
Copyright (c) 2011 Adrian McEwen. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef Printable_h
|
||||
#define Printable_h
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
class Print;
|
||||
|
||||
/** The Printable class provides a way for new classes to allow themselves to be printed.
|
||||
By deriving from Printable and implementing the printTo method, it will then be possible
|
||||
for users to print out instances of this class by passing them into the usual
|
||||
Print::print and Print::println methods.
|
||||
*/
|
||||
|
||||
class Printable
|
||||
{
|
||||
public:
|
||||
virtual size_t printTo(Print& p) const = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
Server.h - Base class that provides Server
|
||||
Copyright (c) 2011 Adrian McEwen. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef server_h
|
||||
#define server_h
|
||||
|
||||
#include "Print.h"
|
||||
|
||||
class Server : public Print {
|
||||
public:
|
||||
virtual void begin() =0;
|
||||
};
|
||||
|
||||
#endif
|
|
@ -0,0 +1,319 @@
|
|||
/*
|
||||
Stream.cpp - adds parsing methods to Stream class
|
||||
Copyright (c) 2008 David A. Mellis. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Created July 2011
|
||||
parsing functions based on TextFinder library by Michael Margolis
|
||||
|
||||
findMulti/findUntil routines written by Jim Leonard/Xuth
|
||||
*/
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "Stream.h"
|
||||
|
||||
#define PARSE_TIMEOUT 1000 // default number of milli-seconds to wait
|
||||
|
||||
// protected method to read stream with timeout
|
||||
int Stream::timedRead()
|
||||
{
|
||||
int c;
|
||||
_startMillis = millis();
|
||||
do {
|
||||
c = read();
|
||||
if (c >= 0) return c;
|
||||
} while(millis() - _startMillis < _timeout);
|
||||
return -1; // -1 indicates timeout
|
||||
}
|
||||
|
||||
// protected method to peek stream with timeout
|
||||
int Stream::timedPeek()
|
||||
{
|
||||
int c;
|
||||
_startMillis = millis();
|
||||
do {
|
||||
c = peek();
|
||||
if (c >= 0) return c;
|
||||
} while(millis() - _startMillis < _timeout);
|
||||
return -1; // -1 indicates timeout
|
||||
}
|
||||
|
||||
// returns peek of the next digit in the stream or -1 if timeout
|
||||
// discards non-numeric characters
|
||||
int Stream::peekNextDigit(LookaheadMode lookahead, bool detectDecimal)
|
||||
{
|
||||
int c;
|
||||
while (1) {
|
||||
c = timedPeek();
|
||||
|
||||
if( c < 0 ||
|
||||
c == '-' ||
|
||||
(c >= '0' && c <= '9') ||
|
||||
(detectDecimal && c == '.')) return c;
|
||||
|
||||
switch( lookahead ){
|
||||
case SKIP_NONE: return -1; // Fail code.
|
||||
case SKIP_WHITESPACE:
|
||||
switch( c ){
|
||||
case ' ':
|
||||
case '\t':
|
||||
case '\r':
|
||||
case '\n': break;
|
||||
default: return -1; // Fail code.
|
||||
}
|
||||
case SKIP_ALL:
|
||||
break;
|
||||
}
|
||||
read(); // discard non-numeric
|
||||
}
|
||||
}
|
||||
|
||||
// Public Methods
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
void Stream::setTimeout(unsigned long timeout) // sets the maximum number of milliseconds to wait
|
||||
{
|
||||
_timeout = timeout;
|
||||
}
|
||||
|
||||
// find returns true if the target string is found
|
||||
bool Stream::find(char *target)
|
||||
{
|
||||
return findUntil(target, strlen(target), NULL, 0);
|
||||
}
|
||||
|
||||
// reads data from the stream until the target string of given length is found
|
||||
// returns true if target string is found, false if timed out
|
||||
bool Stream::find(char *target, size_t length)
|
||||
{
|
||||
return findUntil(target, length, NULL, 0);
|
||||
}
|
||||
|
||||
// as find but search ends if the terminator string is found
|
||||
bool Stream::findUntil(char *target, char *terminator)
|
||||
{
|
||||
return findUntil(target, strlen(target), terminator, strlen(terminator));
|
||||
}
|
||||
|
||||
// reads data from the stream until the target string of the given length is found
|
||||
// search terminated if the terminator string is found
|
||||
// returns true if target string is found, false if terminated or timed out
|
||||
bool Stream::findUntil(char *target, size_t targetLen, char *terminator, size_t termLen)
|
||||
{
|
||||
if (terminator == NULL) {
|
||||
MultiTarget t[1] = {{target, targetLen, 0}};
|
||||
return findMulti(t, 1) == 0 ? true : false;
|
||||
} else {
|
||||
MultiTarget t[2] = {{target, targetLen, 0}, {terminator, termLen, 0}};
|
||||
return findMulti(t, 2) == 0 ? true : false;
|
||||
}
|
||||
}
|
||||
|
||||
// returns the first valid (long) integer value from the current position.
|
||||
// lookahead determines how parseInt looks ahead in the stream.
|
||||
// See LookaheadMode enumeration at the top of the file.
|
||||
// Lookahead is terminated by the first character that is not a valid part of an integer.
|
||||
// Once parsing commences, 'ignore' will be skipped in the stream.
|
||||
long Stream::parseInt(LookaheadMode lookahead, char ignore)
|
||||
{
|
||||
bool isNegative = false;
|
||||
long value = 0;
|
||||
int c;
|
||||
|
||||
c = peekNextDigit(lookahead, false);
|
||||
// ignore non numeric leading characters
|
||||
if(c < 0)
|
||||
return 0; // zero returned if timeout
|
||||
|
||||
do{
|
||||
if(c == ignore)
|
||||
; // ignore this character
|
||||
else if(c == '-')
|
||||
isNegative = true;
|
||||
else if(c >= '0' && c <= '9') // is c a digit?
|
||||
value = value * 10 + c - '0';
|
||||
read(); // consume the character we got with peek
|
||||
c = timedPeek();
|
||||
}
|
||||
while( (c >= '0' && c <= '9') || c == ignore );
|
||||
|
||||
if(isNegative)
|
||||
value = -value;
|
||||
return value;
|
||||
}
|
||||
|
||||
// as parseInt but returns a floating point value
|
||||
float Stream::parseFloat(LookaheadMode lookahead, char ignore)
|
||||
{
|
||||
bool isNegative = false;
|
||||
bool isFraction = false;
|
||||
long value = 0;
|
||||
int c;
|
||||
float fraction = 1.0;
|
||||
|
||||
c = peekNextDigit(lookahead, true);
|
||||
// ignore non numeric leading characters
|
||||
if(c < 0)
|
||||
return 0; // zero returned if timeout
|
||||
|
||||
do{
|
||||
if(c == ignore)
|
||||
; // ignore
|
||||
else if(c == '-')
|
||||
isNegative = true;
|
||||
else if (c == '.')
|
||||
isFraction = true;
|
||||
else if(c >= '0' && c <= '9') { // is c a digit?
|
||||
value = value * 10 + c - '0';
|
||||
if(isFraction)
|
||||
fraction *= 0.1;
|
||||
}
|
||||
read(); // consume the character we got with peek
|
||||
c = timedPeek();
|
||||
}
|
||||
while( (c >= '0' && c <= '9') || (c == '.' && !isFraction) || c == ignore );
|
||||
|
||||
if(isNegative)
|
||||
value = -value;
|
||||
if(isFraction)
|
||||
return value * fraction;
|
||||
else
|
||||
return value;
|
||||
}
|
||||
|
||||
// read characters from stream into buffer
|
||||
// terminates if length characters have been read, or timeout (see setTimeout)
|
||||
// returns the number of characters placed in the buffer
|
||||
// the buffer is NOT null terminated.
|
||||
//
|
||||
size_t Stream::readBytes(char *buffer, size_t length)
|
||||
{
|
||||
size_t count = 0;
|
||||
while (count < length) {
|
||||
int c = timedRead();
|
||||
if (c < 0) break;
|
||||
*buffer++ = (char)c;
|
||||
count++;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
|
||||
// as readBytes with terminator character
|
||||
// terminates if length characters have been read, timeout, or if the terminator character detected
|
||||
// returns the number of characters placed in the buffer (0 means no valid data found)
|
||||
|
||||
size_t Stream::readBytesUntil(char terminator, char *buffer, size_t length)
|
||||
{
|
||||
if (length < 1) return 0;
|
||||
size_t index = 0;
|
||||
while (index < length) {
|
||||
int c = timedRead();
|
||||
if (c < 0 || c == terminator) break;
|
||||
*buffer++ = (char)c;
|
||||
index++;
|
||||
}
|
||||
return index; // return number of characters, not including null terminator
|
||||
}
|
||||
|
||||
String Stream::readString()
|
||||
{
|
||||
String ret;
|
||||
int c = timedRead();
|
||||
while (c >= 0)
|
||||
{
|
||||
ret += (char)c;
|
||||
c = timedRead();
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
String Stream::readStringUntil(char terminator)
|
||||
{
|
||||
String ret;
|
||||
int c = timedRead();
|
||||
while (c >= 0 && c != terminator)
|
||||
{
|
||||
ret += (char)c;
|
||||
c = timedRead();
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
int Stream::findMulti( struct Stream::MultiTarget *targets, int tCount) {
|
||||
// any zero length target string automatically matches and would make
|
||||
// a mess of the rest of the algorithm.
|
||||
for (struct MultiTarget *t = targets; t < targets+tCount; ++t) {
|
||||
if (t->len <= 0)
|
||||
return t - targets;
|
||||
}
|
||||
|
||||
while (1) {
|
||||
int c = timedRead();
|
||||
if (c < 0)
|
||||
return -1;
|
||||
|
||||
for (struct MultiTarget *t = targets; t < targets+tCount; ++t) {
|
||||
// the simple case is if we match, deal with that first.
|
||||
if (c == t->str[t->index]) {
|
||||
if (++t->index == t->len)
|
||||
return t - targets;
|
||||
else
|
||||
continue;
|
||||
}
|
||||
|
||||
// if not we need to walk back and see if we could have matched further
|
||||
// down the stream (ie '1112' doesn't match the first position in '11112'
|
||||
// but it will match the second position so we can't just reset the current
|
||||
// index to 0 when we find a mismatch.
|
||||
if (t->index == 0)
|
||||
continue;
|
||||
|
||||
int origIndex = t->index;
|
||||
do {
|
||||
--t->index;
|
||||
// first check if current char works against the new current index
|
||||
if (c != t->str[t->index])
|
||||
continue;
|
||||
|
||||
// if it's the only char then we're good, nothing more to check
|
||||
if (t->index == 0) {
|
||||
t->index++;
|
||||
break;
|
||||
}
|
||||
|
||||
// otherwise we need to check the rest of the found string
|
||||
int diff = origIndex - t->index;
|
||||
size_t i;
|
||||
for (i = 0; i < t->index; ++i) {
|
||||
if (t->str[i] != t->str[i + diff])
|
||||
break;
|
||||
}
|
||||
|
||||
// if we successfully got through the previous loop then our current
|
||||
// index is good.
|
||||
if (i == t->index) {
|
||||
t->index++;
|
||||
break;
|
||||
}
|
||||
|
||||
// otherwise we just try the next index
|
||||
} while (t->index);
|
||||
}
|
||||
}
|
||||
// unreachable
|
||||
return -1;
|
||||
}
|
|
@ -0,0 +1,129 @@
|
|||
/*
|
||||
Stream.h - base class for character-based streams.
|
||||
Copyright (c) 2010 David A. Mellis. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
parsing functions based on TextFinder library by Michael Margolis
|
||||
*/
|
||||
|
||||
#ifndef Stream_h
|
||||
#define Stream_h
|
||||
|
||||
#include <inttypes.h>
|
||||
#include "Print.h"
|
||||
|
||||
// compatability macros for testing
|
||||
/*
|
||||
#define getInt() parseInt()
|
||||
#define getInt(ignore) parseInt(ignore)
|
||||
#define getFloat() parseFloat()
|
||||
#define getFloat(ignore) parseFloat(ignore)
|
||||
#define getString( pre_string, post_string, buffer, length)
|
||||
readBytesBetween( pre_string, terminator, buffer, length)
|
||||
*/
|
||||
|
||||
// This enumeration provides the lookahead options for parseInt(), parseFloat()
|
||||
// The rules set out here are used until either the first valid character is found
|
||||
// or a time out occurs due to lack of input.
|
||||
enum LookaheadMode{
|
||||
SKIP_ALL, // All invalid characters are ignored.
|
||||
SKIP_NONE, // Nothing is skipped, and the stream is not touched unless the first waiting character is valid.
|
||||
SKIP_WHITESPACE // Only tabs, spaces, line feeds & carriage returns are skipped.
|
||||
};
|
||||
|
||||
#define NO_IGNORE_CHAR '\x01' // a char not found in a valid ASCII numeric field
|
||||
|
||||
class Stream : public Print
|
||||
{
|
||||
protected:
|
||||
unsigned long _timeout; // number of milliseconds to wait for the next char before aborting timed read
|
||||
unsigned long _startMillis; // used for timeout measurement
|
||||
int timedRead(); // read stream with timeout
|
||||
int timedPeek(); // peek stream with timeout
|
||||
int peekNextDigit(LookaheadMode lookahead, bool detectDecimal); // returns the next numeric digit in the stream or -1 if timeout
|
||||
|
||||
public:
|
||||
virtual int available() = 0;
|
||||
virtual int read() = 0;
|
||||
virtual int peek() = 0;
|
||||
|
||||
Stream() {_timeout=1000;}
|
||||
|
||||
// parsing methods
|
||||
|
||||
void setTimeout(unsigned long timeout); // sets maximum milliseconds to wait for stream data, default is 1 second
|
||||
unsigned long getTimeout(void) { return _timeout; }
|
||||
|
||||
bool find(char *target); // reads data from the stream until the target string is found
|
||||
bool find(uint8_t *target) { return find ((char *)target); }
|
||||
// returns true if target string is found, false if timed out (see setTimeout)
|
||||
|
||||
bool find(char *target, size_t length); // reads data from the stream until the target string of given length is found
|
||||
bool find(uint8_t *target, size_t length) { return find ((char *)target, length); }
|
||||
// returns true if target string is found, false if timed out
|
||||
|
||||
bool find(char target) { return find (&target, 1); }
|
||||
|
||||
bool findUntil(char *target, char *terminator); // as find but search ends if the terminator string is found
|
||||
bool findUntil(uint8_t *target, char *terminator) { return findUntil((char *)target, terminator); }
|
||||
|
||||
bool findUntil(char *target, size_t targetLen, char *terminate, size_t termLen); // as above but search ends if the terminate string is found
|
||||
bool findUntil(uint8_t *target, size_t targetLen, char *terminate, size_t termLen) {return findUntil((char *)target, targetLen, terminate, termLen); }
|
||||
|
||||
long parseInt(LookaheadMode lookahead = SKIP_ALL, char ignore = NO_IGNORE_CHAR);
|
||||
// returns the first valid (long) integer value from the current position.
|
||||
// lookahead determines how parseInt looks ahead in the stream.
|
||||
// See LookaheadMode enumeration at the top of the file.
|
||||
// Lookahead is terminated by the first character that is not a valid part of an integer.
|
||||
// Once parsing commences, 'ignore' will be skipped in the stream.
|
||||
|
||||
float parseFloat(LookaheadMode lookahead = SKIP_ALL, char ignore = NO_IGNORE_CHAR);
|
||||
// float version of parseInt
|
||||
|
||||
size_t readBytes( char *buffer, size_t length); // read chars from stream into buffer
|
||||
size_t readBytes( uint8_t *buffer, size_t length) { return readBytes((char *)buffer, length); }
|
||||
// terminates if length characters have been read or timeout (see setTimeout)
|
||||
// returns the number of characters placed in the buffer (0 means no valid data found)
|
||||
|
||||
size_t readBytesUntil( char terminator, char *buffer, size_t length); // as readBytes with terminator character
|
||||
size_t readBytesUntil( char terminator, uint8_t *buffer, size_t length) { return readBytesUntil(terminator, (char *)buffer, length); }
|
||||
// terminates if length characters have been read, timeout, or if the terminator character detected
|
||||
// returns the number of characters placed in the buffer (0 means no valid data found)
|
||||
|
||||
// Arduino String functions to be added here
|
||||
String readString();
|
||||
String readStringUntil(char terminator);
|
||||
|
||||
protected:
|
||||
long parseInt(char ignore) { return parseInt(SKIP_ALL, ignore); }
|
||||
float parseFloat(char ignore) { return parseFloat(SKIP_ALL, ignore); }
|
||||
// These overload exists for compatibility with any class that has derived
|
||||
// Stream and used parseFloat/Int with a custom ignore character. To keep
|
||||
// the public API simple, these overload remains protected.
|
||||
|
||||
struct MultiTarget {
|
||||
const char *str; // string you're searching for
|
||||
size_t len; // length of string you're searching for
|
||||
size_t index; // index used by the search routine.
|
||||
};
|
||||
|
||||
// This allows you to search for an arbitrary number of strings.
|
||||
// Returns index of the target that is found first or -1 if timeout occurs.
|
||||
int findMulti(struct MultiTarget *targets, int tCount);
|
||||
};
|
||||
|
||||
#undef NO_IGNORE_CHAR
|
||||
#endif
|
|
@ -0,0 +1,619 @@
|
|||
/* Tone.cpp
|
||||
|
||||
A Tone Generator Library
|
||||
|
||||
Written by Brett Hagman
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Version Modified By Date Comments
|
||||
------- ----------- -------- --------
|
||||
0001 B Hagman 09/08/02 Initial coding
|
||||
0002 B Hagman 09/08/18 Multiple pins
|
||||
0003 B Hagman 09/08/18 Moved initialization from constructor to begin()
|
||||
0004 B Hagman 09/09/26 Fixed problems with ATmega8
|
||||
0005 B Hagman 09/11/23 Scanned prescalars for best fit on 8 bit timers
|
||||
09/11/25 Changed pin toggle method to XOR
|
||||
09/11/25 Fixed timer0 from being excluded
|
||||
0006 D Mellis 09/12/29 Replaced objects with functions
|
||||
0007 M Sproul 10/08/29 Changed #ifdefs from cpu to register
|
||||
0008 S Kanemoto 12/06/22 Fixed for Leonardo by @maris_HY
|
||||
0009 J Reucker 15/04/10 Issue #292 Fixed problems with ATmega8 (thanks to Pete62)
|
||||
0010 jipp 15/04/13 added additional define check #2923
|
||||
*************************************************/
|
||||
|
||||
#include <avr/interrupt.h>
|
||||
#include <avr/pgmspace.h>
|
||||
#include "Arduino.h"
|
||||
#include "pins_arduino.h"
|
||||
|
||||
#if defined(__AVR_ATmega8__) || defined(__AVR_ATmega128__)
|
||||
#define TCCR2A TCCR2
|
||||
#define TCCR2B TCCR2
|
||||
#define COM2A1 COM21
|
||||
#define COM2A0 COM20
|
||||
#define OCR2A OCR2
|
||||
#define TIMSK2 TIMSK
|
||||
#define OCIE2A OCIE2
|
||||
#define TIMER2_COMPA_vect TIMER2_COMP_vect
|
||||
#define TIMSK1 TIMSK
|
||||
#endif
|
||||
|
||||
// timerx_toggle_count:
|
||||
// > 0 - duration specified
|
||||
// = 0 - stopped
|
||||
// < 0 - infinitely (until stop() method called, or new play() called)
|
||||
|
||||
#if !defined(__AVR_ATmega8__)
|
||||
volatile long timer0_toggle_count;
|
||||
volatile uint8_t *timer0_pin_port;
|
||||
volatile uint8_t timer0_pin_mask;
|
||||
#endif
|
||||
|
||||
volatile long timer1_toggle_count;
|
||||
volatile uint8_t *timer1_pin_port;
|
||||
volatile uint8_t timer1_pin_mask;
|
||||
volatile long timer2_toggle_count;
|
||||
volatile uint8_t *timer2_pin_port;
|
||||
volatile uint8_t timer2_pin_mask;
|
||||
|
||||
#if defined(TIMSK3)
|
||||
volatile long timer3_toggle_count;
|
||||
volatile uint8_t *timer3_pin_port;
|
||||
volatile uint8_t timer3_pin_mask;
|
||||
#endif
|
||||
|
||||
#if defined(TIMSK4)
|
||||
volatile long timer4_toggle_count;
|
||||
volatile uint8_t *timer4_pin_port;
|
||||
volatile uint8_t timer4_pin_mask;
|
||||
#endif
|
||||
|
||||
#if defined(TIMSK5)
|
||||
volatile long timer5_toggle_count;
|
||||
volatile uint8_t *timer5_pin_port;
|
||||
volatile uint8_t timer5_pin_mask;
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
|
||||
|
||||
#define AVAILABLE_TONE_PINS 1
|
||||
#define USE_TIMER2
|
||||
|
||||
const uint8_t PROGMEM tone_pin_to_timer_PGM[] = { 2 /*, 3, 4, 5, 1, 0 */ };
|
||||
static uint8_t tone_pins[AVAILABLE_TONE_PINS] = { 255 /*, 255, 255, 255, 255, 255 */ };
|
||||
|
||||
#elif defined(__AVR_ATmega8__)
|
||||
|
||||
#define AVAILABLE_TONE_PINS 1
|
||||
#define USE_TIMER2
|
||||
|
||||
const uint8_t PROGMEM tone_pin_to_timer_PGM[] = { 2 /*, 1 */ };
|
||||
static uint8_t tone_pins[AVAILABLE_TONE_PINS] = { 255 /*, 255 */ };
|
||||
|
||||
#elif defined(__AVR_ATmega32U4__)
|
||||
|
||||
#define AVAILABLE_TONE_PINS 1
|
||||
#define USE_TIMER3
|
||||
|
||||
const uint8_t PROGMEM tone_pin_to_timer_PGM[] = { 3 /*, 1 */ };
|
||||
static uint8_t tone_pins[AVAILABLE_TONE_PINS] = { 255 /*, 255 */ };
|
||||
|
||||
#else
|
||||
|
||||
#define AVAILABLE_TONE_PINS 1
|
||||
#define USE_TIMER2
|
||||
|
||||
// Leave timer 0 to last.
|
||||
const uint8_t PROGMEM tone_pin_to_timer_PGM[] = { 2 /*, 1, 0 */ };
|
||||
static uint8_t tone_pins[AVAILABLE_TONE_PINS] = { 255 /*, 255, 255 */ };
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
static int8_t toneBegin(uint8_t _pin)
|
||||
{
|
||||
int8_t _timer = -1;
|
||||
|
||||
// if we're already using the pin, the timer should be configured.
|
||||
for (int i = 0; i < AVAILABLE_TONE_PINS; i++) {
|
||||
if (tone_pins[i] == _pin) {
|
||||
return pgm_read_byte(tone_pin_to_timer_PGM + i);
|
||||
}
|
||||
}
|
||||
|
||||
// search for an unused timer.
|
||||
for (int i = 0; i < AVAILABLE_TONE_PINS; i++) {
|
||||
if (tone_pins[i] == 255) {
|
||||
tone_pins[i] = _pin;
|
||||
_timer = pgm_read_byte(tone_pin_to_timer_PGM + i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (_timer != -1)
|
||||
{
|
||||
// Set timer specific stuff
|
||||
// All timers in CTC mode
|
||||
// 8 bit timers will require changing prescalar values,
|
||||
// whereas 16 bit timers are set to either ck/1 or ck/64 prescalar
|
||||
switch (_timer)
|
||||
{
|
||||
#if defined(TCCR0A) && defined(TCCR0B) && defined(WGM01)
|
||||
case 0:
|
||||
// 8 bit timer
|
||||
TCCR0A = 0;
|
||||
TCCR0B = 0;
|
||||
bitWrite(TCCR0A, WGM01, 1);
|
||||
bitWrite(TCCR0B, CS00, 1);
|
||||
timer0_pin_port = portOutputRegister(digitalPinToPort(_pin));
|
||||
timer0_pin_mask = digitalPinToBitMask(_pin);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR1A) && defined(TCCR1B) && defined(WGM12)
|
||||
case 1:
|
||||
// 16 bit timer
|
||||
TCCR1A = 0;
|
||||
TCCR1B = 0;
|
||||
bitWrite(TCCR1B, WGM12, 1);
|
||||
bitWrite(TCCR1B, CS10, 1);
|
||||
timer1_pin_port = portOutputRegister(digitalPinToPort(_pin));
|
||||
timer1_pin_mask = digitalPinToBitMask(_pin);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR2A) && defined(TCCR2B)
|
||||
case 2:
|
||||
// 8 bit timer
|
||||
TCCR2A = 0;
|
||||
TCCR2B = 0;
|
||||
bitWrite(TCCR2A, WGM21, 1);
|
||||
bitWrite(TCCR2B, CS20, 1);
|
||||
timer2_pin_port = portOutputRegister(digitalPinToPort(_pin));
|
||||
timer2_pin_mask = digitalPinToBitMask(_pin);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR3A) && defined(TCCR3B) && defined(TIMSK3)
|
||||
case 3:
|
||||
// 16 bit timer
|
||||
TCCR3A = 0;
|
||||
TCCR3B = 0;
|
||||
bitWrite(TCCR3B, WGM32, 1);
|
||||
bitWrite(TCCR3B, CS30, 1);
|
||||
timer3_pin_port = portOutputRegister(digitalPinToPort(_pin));
|
||||
timer3_pin_mask = digitalPinToBitMask(_pin);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR4A) && defined(TCCR4B) && defined(TIMSK4)
|
||||
case 4:
|
||||
// 16 bit timer
|
||||
TCCR4A = 0;
|
||||
TCCR4B = 0;
|
||||
#if defined(WGM42)
|
||||
bitWrite(TCCR4B, WGM42, 1);
|
||||
#elif defined(CS43)
|
||||
// TODO this may not be correct
|
||||
// atmega32u4
|
||||
bitWrite(TCCR4B, CS43, 1);
|
||||
#endif
|
||||
bitWrite(TCCR4B, CS40, 1);
|
||||
timer4_pin_port = portOutputRegister(digitalPinToPort(_pin));
|
||||
timer4_pin_mask = digitalPinToBitMask(_pin);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR5A) && defined(TCCR5B) && defined(TIMSK5)
|
||||
case 5:
|
||||
// 16 bit timer
|
||||
TCCR5A = 0;
|
||||
TCCR5B = 0;
|
||||
bitWrite(TCCR5B, WGM52, 1);
|
||||
bitWrite(TCCR5B, CS50, 1);
|
||||
timer5_pin_port = portOutputRegister(digitalPinToPort(_pin));
|
||||
timer5_pin_mask = digitalPinToBitMask(_pin);
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
return _timer;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// frequency (in hertz) and duration (in milliseconds).
|
||||
|
||||
void tone(uint8_t _pin, unsigned int frequency, unsigned long duration)
|
||||
{
|
||||
uint8_t prescalarbits = 0b001;
|
||||
long toggle_count = 0;
|
||||
uint32_t ocr = 0;
|
||||
int8_t _timer;
|
||||
|
||||
_timer = toneBegin(_pin);
|
||||
|
||||
if (_timer >= 0)
|
||||
{
|
||||
// Set the pinMode as OUTPUT
|
||||
pinMode(_pin, OUTPUT);
|
||||
|
||||
// if we are using an 8 bit timer, scan through prescalars to find the best fit
|
||||
if (_timer == 0 || _timer == 2)
|
||||
{
|
||||
ocr = F_CPU / frequency / 2 - 1;
|
||||
prescalarbits = 0b001; // ck/1: same for both timers
|
||||
if (ocr > 255)
|
||||
{
|
||||
ocr = F_CPU / frequency / 2 / 8 - 1;
|
||||
prescalarbits = 0b010; // ck/8: same for both timers
|
||||
|
||||
if (_timer == 2 && ocr > 255)
|
||||
{
|
||||
ocr = F_CPU / frequency / 2 / 32 - 1;
|
||||
prescalarbits = 0b011;
|
||||
}
|
||||
|
||||
if (ocr > 255)
|
||||
{
|
||||
ocr = F_CPU / frequency / 2 / 64 - 1;
|
||||
prescalarbits = _timer == 0 ? 0b011 : 0b100;
|
||||
|
||||
if (_timer == 2 && ocr > 255)
|
||||
{
|
||||
ocr = F_CPU / frequency / 2 / 128 - 1;
|
||||
prescalarbits = 0b101;
|
||||
}
|
||||
|
||||
if (ocr > 255)
|
||||
{
|
||||
ocr = F_CPU / frequency / 2 / 256 - 1;
|
||||
prescalarbits = _timer == 0 ? 0b100 : 0b110;
|
||||
if (ocr > 255)
|
||||
{
|
||||
// can't do any better than /1024
|
||||
ocr = F_CPU / frequency / 2 / 1024 - 1;
|
||||
prescalarbits = _timer == 0 ? 0b101 : 0b111;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(TCCR0B)
|
||||
if (_timer == 0)
|
||||
{
|
||||
TCCR0B = (TCCR0B & 0b11111000) | prescalarbits;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
#if defined(TCCR2B)
|
||||
{
|
||||
TCCR2B = (TCCR2B & 0b11111000) | prescalarbits;
|
||||
}
|
||||
#else
|
||||
{
|
||||
// dummy place holder to make the above ifdefs work
|
||||
}
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
// two choices for the 16 bit timers: ck/1 or ck/64
|
||||
ocr = F_CPU / frequency / 2 - 1;
|
||||
|
||||
prescalarbits = 0b001;
|
||||
if (ocr > 0xffff)
|
||||
{
|
||||
ocr = F_CPU / frequency / 2 / 64 - 1;
|
||||
prescalarbits = 0b011;
|
||||
}
|
||||
|
||||
if (_timer == 1)
|
||||
{
|
||||
#if defined(TCCR1B)
|
||||
TCCR1B = (TCCR1B & 0b11111000) | prescalarbits;
|
||||
#endif
|
||||
}
|
||||
#if defined(TCCR3B)
|
||||
else if (_timer == 3)
|
||||
TCCR3B = (TCCR3B & 0b11111000) | prescalarbits;
|
||||
#endif
|
||||
#if defined(TCCR4B)
|
||||
else if (_timer == 4)
|
||||
TCCR4B = (TCCR4B & 0b11111000) | prescalarbits;
|
||||
#endif
|
||||
#if defined(TCCR5B)
|
||||
else if (_timer == 5)
|
||||
TCCR5B = (TCCR5B & 0b11111000) | prescalarbits;
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Calculate the toggle count
|
||||
if (duration > 0)
|
||||
{
|
||||
toggle_count = 2 * frequency * duration / 1000;
|
||||
}
|
||||
else
|
||||
{
|
||||
toggle_count = -1;
|
||||
}
|
||||
|
||||
// Set the OCR for the given timer,
|
||||
// set the toggle count,
|
||||
// then turn on the interrupts
|
||||
switch (_timer)
|
||||
{
|
||||
|
||||
#if defined(OCR0A) && defined(TIMSK0) && defined(OCIE0A)
|
||||
case 0:
|
||||
OCR0A = ocr;
|
||||
timer0_toggle_count = toggle_count;
|
||||
bitWrite(TIMSK0, OCIE0A, 1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
case 1:
|
||||
#if defined(OCR1A) && defined(TIMSK1) && defined(OCIE1A)
|
||||
OCR1A = ocr;
|
||||
timer1_toggle_count = toggle_count;
|
||||
bitWrite(TIMSK1, OCIE1A, 1);
|
||||
#elif defined(OCR1A) && defined(TIMSK) && defined(OCIE1A)
|
||||
// this combination is for at least the ATmega32
|
||||
OCR1A = ocr;
|
||||
timer1_toggle_count = toggle_count;
|
||||
bitWrite(TIMSK, OCIE1A, 1);
|
||||
#endif
|
||||
break;
|
||||
|
||||
#if defined(OCR2A) && defined(TIMSK2) && defined(OCIE2A)
|
||||
case 2:
|
||||
OCR2A = ocr;
|
||||
timer2_toggle_count = toggle_count;
|
||||
bitWrite(TIMSK2, OCIE2A, 1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(OCR3A) && defined(TIMSK3) && defined(OCIE3A)
|
||||
case 3:
|
||||
OCR3A = ocr;
|
||||
timer3_toggle_count = toggle_count;
|
||||
bitWrite(TIMSK3, OCIE3A, 1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(OCR4A) && defined(TIMSK4) && defined(OCIE4A)
|
||||
case 4:
|
||||
OCR4A = ocr;
|
||||
timer4_toggle_count = toggle_count;
|
||||
bitWrite(TIMSK4, OCIE4A, 1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(OCR5A) && defined(TIMSK5) && defined(OCIE5A)
|
||||
case 5:
|
||||
OCR5A = ocr;
|
||||
timer5_toggle_count = toggle_count;
|
||||
bitWrite(TIMSK5, OCIE5A, 1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// XXX: this function only works properly for timer 2 (the only one we use
|
||||
// currently). for the others, it should end the tone, but won't restore
|
||||
// proper PWM functionality for the timer.
|
||||
void disableTimer(uint8_t _timer)
|
||||
{
|
||||
switch (_timer)
|
||||
{
|
||||
case 0:
|
||||
#if defined(TIMSK0)
|
||||
TIMSK0 = 0;
|
||||
#elif defined(TIMSK)
|
||||
TIMSK = 0; // atmega32
|
||||
#endif
|
||||
break;
|
||||
|
||||
#if defined(TIMSK1) && defined(OCIE1A)
|
||||
case 1:
|
||||
bitWrite(TIMSK1, OCIE1A, 0);
|
||||
break;
|
||||
#endif
|
||||
|
||||
case 2:
|
||||
#if defined(TIMSK2) && defined(OCIE2A)
|
||||
bitWrite(TIMSK2, OCIE2A, 0); // disable interrupt
|
||||
#endif
|
||||
#if defined(TCCR2A) && defined(WGM20)
|
||||
TCCR2A = (1 << WGM20);
|
||||
#endif
|
||||
#if defined(TCCR2B) && defined(CS22)
|
||||
TCCR2B = (TCCR2B & 0b11111000) | (1 << CS22);
|
||||
#endif
|
||||
#if defined(OCR2A)
|
||||
OCR2A = 0;
|
||||
#endif
|
||||
break;
|
||||
|
||||
#if defined(TIMSK3) && defined(OCIE3A)
|
||||
case 3:
|
||||
bitWrite(TIMSK3, OCIE3A, 0);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TIMSK4) && defined(OCIE4A)
|
||||
case 4:
|
||||
bitWrite(TIMSK4, OCIE4A, 0);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TIMSK5) && defined(OCIE5A)
|
||||
case 5:
|
||||
bitWrite(TIMSK5, OCIE5A, 0);
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void noTone(uint8_t _pin)
|
||||
{
|
||||
int8_t _timer = -1;
|
||||
|
||||
for (int i = 0; i < AVAILABLE_TONE_PINS; i++) {
|
||||
if (tone_pins[i] == _pin) {
|
||||
_timer = pgm_read_byte(tone_pin_to_timer_PGM + i);
|
||||
tone_pins[i] = 255;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
disableTimer(_timer);
|
||||
|
||||
digitalWrite(_pin, 0);
|
||||
}
|
||||
|
||||
#ifdef USE_TIMER0
|
||||
ISR(TIMER0_COMPA_vect)
|
||||
{
|
||||
if (timer0_toggle_count != 0)
|
||||
{
|
||||
// toggle the pin
|
||||
*timer0_pin_port ^= timer0_pin_mask;
|
||||
|
||||
if (timer0_toggle_count > 0)
|
||||
timer0_toggle_count--;
|
||||
}
|
||||
else
|
||||
{
|
||||
disableTimer(0);
|
||||
*timer0_pin_port &= ~(timer0_pin_mask); // keep pin low after stop
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef USE_TIMER1
|
||||
ISR(TIMER1_COMPA_vect)
|
||||
{
|
||||
if (timer1_toggle_count != 0)
|
||||
{
|
||||
// toggle the pin
|
||||
*timer1_pin_port ^= timer1_pin_mask;
|
||||
|
||||
if (timer1_toggle_count > 0)
|
||||
timer1_toggle_count--;
|
||||
}
|
||||
else
|
||||
{
|
||||
disableTimer(1);
|
||||
*timer1_pin_port &= ~(timer1_pin_mask); // keep pin low after stop
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef USE_TIMER2
|
||||
ISR(TIMER2_COMPA_vect)
|
||||
{
|
||||
|
||||
if (timer2_toggle_count != 0)
|
||||
{
|
||||
// toggle the pin
|
||||
*timer2_pin_port ^= timer2_pin_mask;
|
||||
|
||||
if (timer2_toggle_count > 0)
|
||||
timer2_toggle_count--;
|
||||
}
|
||||
else
|
||||
{
|
||||
// need to call noTone() so that the tone_pins[] entry is reset, so the
|
||||
// timer gets initialized next time we call tone().
|
||||
// XXX: this assumes timer 2 is always the first one used.
|
||||
noTone(tone_pins[0]);
|
||||
// disableTimer(2);
|
||||
// *timer2_pin_port &= ~(timer2_pin_mask); // keep pin low after stop
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef USE_TIMER3
|
||||
ISR(TIMER3_COMPA_vect)
|
||||
{
|
||||
if (timer3_toggle_count != 0)
|
||||
{
|
||||
// toggle the pin
|
||||
*timer3_pin_port ^= timer3_pin_mask;
|
||||
|
||||
if (timer3_toggle_count > 0)
|
||||
timer3_toggle_count--;
|
||||
}
|
||||
else
|
||||
{
|
||||
disableTimer(3);
|
||||
*timer3_pin_port &= ~(timer3_pin_mask); // keep pin low after stop
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef USE_TIMER4
|
||||
ISR(TIMER4_COMPA_vect)
|
||||
{
|
||||
if (timer4_toggle_count != 0)
|
||||
{
|
||||
// toggle the pin
|
||||
*timer4_pin_port ^= timer4_pin_mask;
|
||||
|
||||
if (timer4_toggle_count > 0)
|
||||
timer4_toggle_count--;
|
||||
}
|
||||
else
|
||||
{
|
||||
disableTimer(4);
|
||||
*timer4_pin_port &= ~(timer4_pin_mask); // keep pin low after stop
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef USE_TIMER5
|
||||
ISR(TIMER5_COMPA_vect)
|
||||
{
|
||||
if (timer5_toggle_count != 0)
|
||||
{
|
||||
// toggle the pin
|
||||
*timer5_pin_port ^= timer5_pin_mask;
|
||||
|
||||
if (timer5_toggle_count > 0)
|
||||
timer5_toggle_count--;
|
||||
}
|
||||
else
|
||||
{
|
||||
disableTimer(5);
|
||||
*timer5_pin_port &= ~(timer5_pin_mask); // keep pin low after stop
|
||||
}
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,207 @@
|
|||
/*
|
||||
USBAPI.h
|
||||
Copyright (c) 2005-2014 Arduino. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef __USBAPI__
|
||||
#define __USBAPI__
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <avr/pgmspace.h>
|
||||
#include <avr/eeprom.h>
|
||||
#include <avr/interrupt.h>
|
||||
#include <util/delay.h>
|
||||
|
||||
typedef unsigned char u8;
|
||||
typedef unsigned short u16;
|
||||
typedef unsigned long u32;
|
||||
|
||||
#include "Arduino.h"
|
||||
|
||||
// This definitions is usefull if you want to reduce the EP_SIZE to 16
|
||||
// at the moment only 64 and 16 as EP_SIZE for all EPs are supported except the control endpoint
|
||||
#ifndef USB_EP_SIZE
|
||||
#define USB_EP_SIZE 64
|
||||
#endif
|
||||
|
||||
#if defined(USBCON)
|
||||
|
||||
#include "USBDesc.h"
|
||||
#include "USBCore.h"
|
||||
|
||||
//================================================================================
|
||||
//================================================================================
|
||||
// USB
|
||||
|
||||
#define EP_TYPE_CONTROL (0x00)
|
||||
#define EP_TYPE_BULK_IN ((1<<EPTYPE1) | (1<<EPDIR))
|
||||
#define EP_TYPE_BULK_OUT (1<<EPTYPE1)
|
||||
#define EP_TYPE_INTERRUPT_IN ((1<<EPTYPE1) | (1<<EPTYPE0) | (1<<EPDIR))
|
||||
#define EP_TYPE_INTERRUPT_OUT ((1<<EPTYPE1) | (1<<EPTYPE0))
|
||||
#define EP_TYPE_ISOCHRONOUS_IN ((1<<EPTYPE0) | (1<<EPDIR))
|
||||
#define EP_TYPE_ISOCHRONOUS_OUT (1<<EPTYPE0)
|
||||
|
||||
class USBDevice_
|
||||
{
|
||||
public:
|
||||
USBDevice_();
|
||||
bool configured();
|
||||
|
||||
void attach();
|
||||
void detach(); // Serial port goes down too...
|
||||
void poll();
|
||||
bool wakeupHost(); // returns false, when wakeup cannot be processed
|
||||
};
|
||||
extern USBDevice_ USBDevice;
|
||||
|
||||
//================================================================================
|
||||
//================================================================================
|
||||
// Serial over CDC (Serial1 is the physical port)
|
||||
|
||||
struct ring_buffer;
|
||||
|
||||
#ifndef SERIAL_BUFFER_SIZE
|
||||
#if ((RAMEND - RAMSTART) < 1023)
|
||||
#define SERIAL_BUFFER_SIZE 16
|
||||
#else
|
||||
#define SERIAL_BUFFER_SIZE 64
|
||||
#endif
|
||||
#endif
|
||||
#if (SERIAL_BUFFER_SIZE>256)
|
||||
#error Please lower the CDC Buffer size
|
||||
#endif
|
||||
|
||||
class Serial_ : public Stream
|
||||
{
|
||||
private:
|
||||
int peek_buffer;
|
||||
public:
|
||||
Serial_() { peek_buffer = -1; };
|
||||
void begin(unsigned long);
|
||||
void begin(unsigned long, uint8_t);
|
||||
void end(void);
|
||||
|
||||
virtual int available(void);
|
||||
virtual int peek(void);
|
||||
virtual int read(void);
|
||||
virtual int availableForWrite(void);
|
||||
virtual void flush(void);
|
||||
virtual size_t write(uint8_t);
|
||||
virtual size_t write(const uint8_t*, size_t);
|
||||
using Print::write; // pull in write(str) and write(buf, size) from Print
|
||||
operator bool();
|
||||
|
||||
volatile uint8_t _rx_buffer_head;
|
||||
volatile uint8_t _rx_buffer_tail;
|
||||
unsigned char _rx_buffer[SERIAL_BUFFER_SIZE];
|
||||
|
||||
// This method allows processing "SEND_BREAK" requests sent by
|
||||
// the USB host. Those requests indicate that the host wants to
|
||||
// send a BREAK signal and are accompanied by a single uint16_t
|
||||
// value, specifying the duration of the break. The value 0
|
||||
// means to end any current break, while the value 0xffff means
|
||||
// to start an indefinite break.
|
||||
// readBreak() will return the value of the most recent break
|
||||
// request, but will return it at most once, returning -1 when
|
||||
// readBreak() is called again (until another break request is
|
||||
// received, which is again returned once).
|
||||
// This also mean that if two break requests are received
|
||||
// without readBreak() being called in between, the value of the
|
||||
// first request is lost.
|
||||
// Note that the value returned is a long, so it can return
|
||||
// 0-0xffff as well as -1.
|
||||
int32_t readBreak();
|
||||
|
||||
// These return the settings specified by the USB host for the
|
||||
// serial port. These aren't really used, but are offered here
|
||||
// in case a sketch wants to act on these settings.
|
||||
uint32_t baud();
|
||||
uint8_t stopbits();
|
||||
uint8_t paritytype();
|
||||
uint8_t numbits();
|
||||
bool dtr();
|
||||
bool rts();
|
||||
enum {
|
||||
ONE_STOP_BIT = 0,
|
||||
ONE_AND_HALF_STOP_BIT = 1,
|
||||
TWO_STOP_BITS = 2,
|
||||
};
|
||||
enum {
|
||||
NO_PARITY = 0,
|
||||
ODD_PARITY = 1,
|
||||
EVEN_PARITY = 2,
|
||||
MARK_PARITY = 3,
|
||||
SPACE_PARITY = 4,
|
||||
};
|
||||
|
||||
};
|
||||
extern Serial_ Serial;
|
||||
|
||||
#define HAVE_CDCSERIAL
|
||||
|
||||
//================================================================================
|
||||
//================================================================================
|
||||
// Low level API
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint8_t bmRequestType;
|
||||
uint8_t bRequest;
|
||||
uint8_t wValueL;
|
||||
uint8_t wValueH;
|
||||
uint16_t wIndex;
|
||||
uint16_t wLength;
|
||||
} USBSetup;
|
||||
|
||||
//================================================================================
|
||||
//================================================================================
|
||||
// MSC 'Driver'
|
||||
|
||||
int MSC_GetInterface(uint8_t* interfaceNum);
|
||||
int MSC_GetDescriptor(int i);
|
||||
bool MSC_Setup(USBSetup& setup);
|
||||
bool MSC_Data(uint8_t rx,uint8_t tx);
|
||||
|
||||
//================================================================================
|
||||
//================================================================================
|
||||
// CSC 'Driver'
|
||||
|
||||
int CDC_GetInterface(uint8_t* interfaceNum);
|
||||
int CDC_GetDescriptor(int i);
|
||||
bool CDC_Setup(USBSetup& setup);
|
||||
|
||||
//================================================================================
|
||||
//================================================================================
|
||||
|
||||
#define TRANSFER_PGM 0x80
|
||||
#define TRANSFER_RELEASE 0x40
|
||||
#define TRANSFER_ZERO 0x20
|
||||
|
||||
int USB_SendControl(uint8_t flags, const void* d, int len);
|
||||
int USB_RecvControl(void* d, int len);
|
||||
int USB_RecvControlLong(void* d, int len);
|
||||
|
||||
uint8_t USB_Available(uint8_t ep);
|
||||
uint8_t USB_SendSpace(uint8_t ep);
|
||||
int USB_Send(uint8_t ep, const void* data, int len); // blocking
|
||||
int USB_Recv(uint8_t ep, void* data, int len); // non-blocking
|
||||
int USB_Recv(uint8_t ep); // non-blocking
|
||||
void USB_Flush(uint8_t ep);
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* if defined(USBCON) */
|
|
@ -0,0 +1,869 @@
|
|||
|
||||
|
||||
/* Copyright (c) 2010, Peter Barrett
|
||||
** Sleep/Wakeup support added by Michael Dreher
|
||||
**
|
||||
** Permission to use, copy, modify, and/or distribute this software for
|
||||
** any purpose with or without fee is hereby granted, provided that the
|
||||
** above copyright notice and this permission notice appear in all copies.
|
||||
**
|
||||
** THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
||||
** WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
** WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
|
||||
** BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
|
||||
** OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||
** WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||
** ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
** SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "USBAPI.h"
|
||||
#include "PluggableUSB.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
#if defined(USBCON)
|
||||
|
||||
/** Pulse generation counters to keep track of the number of milliseconds remaining for each pulse type */
|
||||
#define TX_RX_LED_PULSE_MS 100
|
||||
volatile u8 TxLEDPulse; /**< Milliseconds remaining for data Tx LED pulse */
|
||||
volatile u8 RxLEDPulse; /**< Milliseconds remaining for data Rx LED pulse */
|
||||
|
||||
//==================================================================
|
||||
//==================================================================
|
||||
|
||||
extern const u16 STRING_LANGUAGE[] PROGMEM;
|
||||
extern const u8 STRING_PRODUCT[] PROGMEM;
|
||||
extern const u8 STRING_MANUFACTURER[] PROGMEM;
|
||||
extern const DeviceDescriptor USB_DeviceDescriptorIAD PROGMEM;
|
||||
#ifndef ARDUBOY_CORE
|
||||
extern bool _updatedLUFAbootloader;
|
||||
#endif
|
||||
|
||||
const u16 STRING_LANGUAGE[2] = {
|
||||
(3<<8) | (2+2),
|
||||
0x0409 // English
|
||||
};
|
||||
|
||||
#ifndef USB_PRODUCT
|
||||
// If no product is provided, use USB IO Board
|
||||
#define USB_PRODUCT "USB IO Board"
|
||||
#endif
|
||||
|
||||
const u8 STRING_PRODUCT[] PROGMEM = USB_PRODUCT;
|
||||
|
||||
#if USB_VID == 0x2341
|
||||
# if defined(USB_MANUFACTURER)
|
||||
# undef USB_MANUFACTURER
|
||||
# endif
|
||||
# define USB_MANUFACTURER "Arduino LLC"
|
||||
#elif USB_VID == 0x1b4f
|
||||
# if defined(USB_MANUFACTURER)
|
||||
# undef USB_MANUFACTURER
|
||||
# endif
|
||||
# define USB_MANUFACTURER "SparkFun"
|
||||
#elif !defined(USB_MANUFACTURER)
|
||||
// Fall through to unknown if no manufacturer name was provided in a macro
|
||||
# define USB_MANUFACTURER "Unknown"
|
||||
#endif
|
||||
|
||||
const u8 STRING_MANUFACTURER[] PROGMEM = USB_MANUFACTURER;
|
||||
|
||||
|
||||
#define DEVICE_CLASS 0x02
|
||||
|
||||
// DEVICE DESCRIPTOR
|
||||
const DeviceDescriptor USB_DeviceDescriptorIAD =
|
||||
D_DEVICE(0xEF,0x02,0x01,64,USB_VID,USB_PID,0x100,IMANUFACTURER,IPRODUCT,ISERIAL,1);
|
||||
|
||||
//==================================================================
|
||||
//==================================================================
|
||||
|
||||
volatile u8 _usbConfiguration = 0;
|
||||
volatile u8 _usbCurrentStatus = 0; // meaning of bits see usb_20.pdf, Figure 9-4. Information Returned by a GetStatus() Request to a Device
|
||||
volatile u8 _usbSuspendState = 0; // copy of UDINT to check SUSPI and WAKEUPI bits
|
||||
|
||||
static inline void WaitIN(void)
|
||||
{
|
||||
while (!(UEINTX & (1<<TXINI)))
|
||||
;
|
||||
}
|
||||
|
||||
static inline void ClearIN(void)
|
||||
{
|
||||
UEINTX = ~(1<<TXINI);
|
||||
}
|
||||
|
||||
static inline void WaitOUT(void)
|
||||
{
|
||||
while (!(UEINTX & (1<<RXOUTI)))
|
||||
;
|
||||
}
|
||||
|
||||
static inline u8 WaitForINOrOUT()
|
||||
{
|
||||
while (!(UEINTX & ((1<<TXINI)|(1<<RXOUTI))))
|
||||
;
|
||||
return (UEINTX & (1<<RXOUTI)) == 0;
|
||||
}
|
||||
|
||||
static inline void ClearOUT(void)
|
||||
{
|
||||
UEINTX = ~(1<<RXOUTI);
|
||||
}
|
||||
|
||||
static inline void Recv(volatile u8* data, u8 count)
|
||||
{
|
||||
while (count--)
|
||||
*data++ = UEDATX;
|
||||
|
||||
RXLED1; // light the RX LED
|
||||
RxLEDPulse = TX_RX_LED_PULSE_MS;
|
||||
}
|
||||
|
||||
static inline u8 Recv8()
|
||||
{
|
||||
RXLED1; // light the RX LED
|
||||
RxLEDPulse = TX_RX_LED_PULSE_MS;
|
||||
|
||||
return UEDATX;
|
||||
}
|
||||
|
||||
static inline void Send8(u8 d)
|
||||
{
|
||||
UEDATX = d;
|
||||
}
|
||||
|
||||
static inline void SetEP(u8 ep)
|
||||
{
|
||||
UENUM = ep;
|
||||
}
|
||||
|
||||
static inline u8 FifoByteCount()
|
||||
{
|
||||
return UEBCLX;
|
||||
}
|
||||
|
||||
static inline u8 ReceivedSetupInt()
|
||||
{
|
||||
return UEINTX & (1<<RXSTPI);
|
||||
}
|
||||
|
||||
static inline void ClearSetupInt()
|
||||
{
|
||||
UEINTX = ~((1<<RXSTPI) | (1<<RXOUTI) | (1<<TXINI));
|
||||
}
|
||||
|
||||
static inline void Stall()
|
||||
{
|
||||
UECONX = (1<<STALLRQ) | (1<<EPEN);
|
||||
}
|
||||
|
||||
static inline u8 ReadWriteAllowed()
|
||||
{
|
||||
return UEINTX & (1<<RWAL);
|
||||
}
|
||||
|
||||
static inline u8 Stalled()
|
||||
{
|
||||
return UEINTX & (1<<STALLEDI);
|
||||
}
|
||||
|
||||
static inline u8 FifoFree()
|
||||
{
|
||||
return UEINTX & (1<<FIFOCON);
|
||||
}
|
||||
|
||||
static inline void ReleaseRX()
|
||||
{
|
||||
UEINTX = 0x6B; // FIFOCON=0 NAKINI=1 RWAL=1 NAKOUTI=0 RXSTPI=1 RXOUTI=0 STALLEDI=1 TXINI=1
|
||||
}
|
||||
|
||||
static inline void ReleaseTX()
|
||||
{
|
||||
UEINTX = 0x3A; // FIFOCON=0 NAKINI=0 RWAL=1 NAKOUTI=1 RXSTPI=1 RXOUTI=0 STALLEDI=1 TXINI=0
|
||||
}
|
||||
|
||||
static inline u8 FrameNumber()
|
||||
{
|
||||
return UDFNUML;
|
||||
}
|
||||
|
||||
//==================================================================
|
||||
//==================================================================
|
||||
|
||||
u8 USBGetConfiguration(void)
|
||||
{
|
||||
return _usbConfiguration;
|
||||
}
|
||||
|
||||
#define USB_RECV_TIMEOUT
|
||||
class LockEP
|
||||
{
|
||||
u8 _sreg;
|
||||
public:
|
||||
LockEP(u8 ep) : _sreg(SREG)
|
||||
{
|
||||
cli();
|
||||
SetEP(ep & 7);
|
||||
}
|
||||
~LockEP()
|
||||
{
|
||||
SREG = _sreg;
|
||||
}
|
||||
};
|
||||
|
||||
// Number of bytes, assumes a rx endpoint
|
||||
u8 USB_Available(u8 ep)
|
||||
{
|
||||
LockEP lock(ep);
|
||||
return FifoByteCount();
|
||||
}
|
||||
|
||||
// Non Blocking receive
|
||||
// Return number of bytes read
|
||||
int USB_Recv(u8 ep, void* d, int len)
|
||||
{
|
||||
if (!_usbConfiguration || len < 0)
|
||||
return -1;
|
||||
|
||||
LockEP lock(ep);
|
||||
u8 n = FifoByteCount();
|
||||
len = min(n,len);
|
||||
n = len;
|
||||
u8* dst = (u8*)d;
|
||||
while (n--)
|
||||
*dst++ = Recv8();
|
||||
if (len && !FifoByteCount()) // release empty buffer
|
||||
ReleaseRX();
|
||||
|
||||
return len;
|
||||
}
|
||||
|
||||
// Recv 1 byte if ready
|
||||
int USB_Recv(u8 ep)
|
||||
{
|
||||
u8 c;
|
||||
if (USB_Recv(ep,&c,1) != 1)
|
||||
return -1;
|
||||
return c;
|
||||
}
|
||||
|
||||
// Space in send EP
|
||||
u8 USB_SendSpace(u8 ep)
|
||||
{
|
||||
LockEP lock(ep);
|
||||
if (!ReadWriteAllowed())
|
||||
return 0;
|
||||
return USB_EP_SIZE - FifoByteCount();
|
||||
}
|
||||
|
||||
// Blocking Send of data to an endpoint
|
||||
int USB_Send(u8 ep, const void* d, int len)
|
||||
{
|
||||
if (!_usbConfiguration)
|
||||
return -1;
|
||||
|
||||
if (_usbSuspendState & (1<<SUSPI)) {
|
||||
//send a remote wakeup
|
||||
UDCON |= (1 << RMWKUP);
|
||||
}
|
||||
|
||||
int r = len;
|
||||
const u8* data = (const u8*)d;
|
||||
u8 timeout = 250; // 250ms timeout on send? TODO
|
||||
bool sendZlp = false;
|
||||
|
||||
while (len || sendZlp)
|
||||
{
|
||||
u8 n = USB_SendSpace(ep);
|
||||
if (n == 0)
|
||||
{
|
||||
if (!(--timeout))
|
||||
return -1;
|
||||
delayShort(1);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (n > len) {
|
||||
n = len;
|
||||
}
|
||||
|
||||
{
|
||||
LockEP lock(ep);
|
||||
// Frame may have been released by the SOF interrupt handler
|
||||
if (!ReadWriteAllowed())
|
||||
continue;
|
||||
|
||||
len -= n;
|
||||
if (ep & TRANSFER_ZERO)
|
||||
{
|
||||
while (n--)
|
||||
Send8(0);
|
||||
}
|
||||
else if (ep & TRANSFER_PGM)
|
||||
{
|
||||
while (n--)
|
||||
Send8(pgm_read_byte(data++));
|
||||
}
|
||||
else
|
||||
{
|
||||
while (n--)
|
||||
Send8(*data++);
|
||||
}
|
||||
|
||||
if (sendZlp) {
|
||||
ReleaseTX();
|
||||
sendZlp = false;
|
||||
} else if (!ReadWriteAllowed()) { // ...release if buffer is full...
|
||||
ReleaseTX();
|
||||
if (len == 0) sendZlp = true;
|
||||
} else if ((len == 0) && (ep & TRANSFER_RELEASE)) { // ...or if forced with TRANSFER_RELEASE
|
||||
// XXX: TRANSFER_RELEASE is never used can be removed?
|
||||
ReleaseTX();
|
||||
}
|
||||
}
|
||||
}
|
||||
TXLED1; // light the TX LED
|
||||
TxLEDPulse = TX_RX_LED_PULSE_MS;
|
||||
return r;
|
||||
}
|
||||
|
||||
u8 _initEndpoints[USB_ENDPOINTS] =
|
||||
{
|
||||
0, // Control Endpoint
|
||||
|
||||
EP_TYPE_INTERRUPT_IN, // CDC_ENDPOINT_ACM
|
||||
EP_TYPE_BULK_OUT, // CDC_ENDPOINT_OUT
|
||||
EP_TYPE_BULK_IN, // CDC_ENDPOINT_IN
|
||||
|
||||
// Following endpoints are automatically initialized to 0
|
||||
};
|
||||
|
||||
#define EP_SINGLE_64 0x32 // EP0
|
||||
#define EP_DOUBLE_64 0x36 // Other endpoints
|
||||
#define EP_SINGLE_16 0x12
|
||||
|
||||
static
|
||||
void InitEP(u8 index, u8 type, u8 size)
|
||||
{
|
||||
UENUM = index;
|
||||
UECONX = (1<<EPEN);
|
||||
UECFG0X = type;
|
||||
UECFG1X = size;
|
||||
}
|
||||
|
||||
static
|
||||
void InitEndpoints()
|
||||
{
|
||||
for (u8 i = 1; i < sizeof(_initEndpoints) && _initEndpoints[i] != 0; i++)
|
||||
{
|
||||
UENUM = i;
|
||||
UECONX = (1<<EPEN);
|
||||
UECFG0X = _initEndpoints[i];
|
||||
#if USB_EP_SIZE == 16
|
||||
UECFG1X = EP_SINGLE_16;
|
||||
#elif USB_EP_SIZE == 64
|
||||
UECFG1X = EP_DOUBLE_64;
|
||||
#else
|
||||
#error Unsupported value for USB_EP_SIZE
|
||||
#endif
|
||||
}
|
||||
UERST = 0x7E; // And reset them
|
||||
UERST = 0;
|
||||
}
|
||||
|
||||
// Handle CLASS_INTERFACE requests
|
||||
static
|
||||
bool ClassInterfaceRequest(USBSetup& setup)
|
||||
{
|
||||
u8 i = setup.wIndex;
|
||||
|
||||
if (CDC_ACM_INTERFACE == i)
|
||||
return CDC_Setup(setup);
|
||||
|
||||
#ifdef PLUGGABLE_USB_ENABLED
|
||||
return PluggableUSB().setup(setup);
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
static int _cmark;
|
||||
static int _cend;
|
||||
void InitControl(int end)
|
||||
{
|
||||
SetEP(0);
|
||||
_cmark = 0;
|
||||
_cend = end;
|
||||
}
|
||||
|
||||
static
|
||||
bool SendControl(u8 d)
|
||||
{
|
||||
if (_cmark < _cend)
|
||||
{
|
||||
if (!WaitForINOrOUT())
|
||||
return false;
|
||||
Send8(d);
|
||||
if (!((_cmark + 1) & 0x3F))
|
||||
ClearIN(); // Fifo is full, release this packet
|
||||
}
|
||||
_cmark++;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Clipped by _cmark/_cend
|
||||
int USB_SendControl(u8 flags, const void* d, int len)
|
||||
{
|
||||
int sent = len;
|
||||
const u8* data = (const u8*)d;
|
||||
bool pgm = flags & TRANSFER_PGM;
|
||||
while (len--)
|
||||
{
|
||||
u8 c = pgm ? pgm_read_byte(data++) : *data++;
|
||||
if (!SendControl(c))
|
||||
return -1;
|
||||
}
|
||||
return sent;
|
||||
}
|
||||
|
||||
// Send a USB descriptor string. The string is stored in PROGMEM as a
|
||||
// plain ASCII string but is sent out as UTF-16 with the correct 2-byte
|
||||
// prefix
|
||||
static bool USB_SendStringDescriptor(const u8*string_P, u8 string_len, uint8_t flags) {
|
||||
SendControl(2 + string_len * 2);
|
||||
SendControl(3);
|
||||
bool pgm = flags & TRANSFER_PGM;
|
||||
for(u8 i = 0; i < string_len; i++) {
|
||||
bool r = SendControl(pgm ? pgm_read_byte(&string_P[i]) : string_P[i]);
|
||||
r &= SendControl(0); // high byte
|
||||
if(!r) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Does not timeout or cross fifo boundaries
|
||||
int USB_RecvControl(void* d, int len)
|
||||
{
|
||||
auto length = len;
|
||||
while(length)
|
||||
{
|
||||
// Dont receive more than the USB Control EP has to offer
|
||||
// Use fixed 64 because control EP always have 64 bytes even on 16u2.
|
||||
auto recvLength = length;
|
||||
if(recvLength > 64){
|
||||
recvLength = 64;
|
||||
}
|
||||
|
||||
// Write data to fit to the end (not the beginning) of the array
|
||||
WaitOUT();
|
||||
Recv((u8*)d + len - length, recvLength);
|
||||
ClearOUT();
|
||||
length -= recvLength;
|
||||
}
|
||||
return len;
|
||||
}
|
||||
|
||||
static u8 SendInterfaces()
|
||||
{
|
||||
u8 interfaces = 0;
|
||||
|
||||
CDC_GetInterface(&interfaces);
|
||||
|
||||
#ifdef PLUGGABLE_USB_ENABLED
|
||||
PluggableUSB().getInterface(&interfaces);
|
||||
#endif
|
||||
|
||||
return interfaces;
|
||||
}
|
||||
|
||||
// Construct a dynamic configuration descriptor
|
||||
// This really needs dynamic endpoint allocation etc
|
||||
// TODO
|
||||
static
|
||||
bool SendConfiguration(int maxlen)
|
||||
{
|
||||
// Count and measure interfaces
|
||||
InitControl(0);
|
||||
u8 interfaces = SendInterfaces();
|
||||
ConfigDescriptor config = D_CONFIG(_cmark + sizeof(ConfigDescriptor),interfaces);
|
||||
|
||||
// Now send them
|
||||
InitControl(maxlen);
|
||||
USB_SendControl(0,&config,sizeof(ConfigDescriptor));
|
||||
SendInterfaces();
|
||||
return true;
|
||||
}
|
||||
|
||||
static
|
||||
bool SendDescriptor(USBSetup& setup)
|
||||
{
|
||||
int ret;
|
||||
u8 t = setup.wValueH;
|
||||
if (USB_CONFIGURATION_DESCRIPTOR_TYPE == t)
|
||||
return SendConfiguration(setup.wLength);
|
||||
|
||||
InitControl(setup.wLength);
|
||||
#ifdef PLUGGABLE_USB_ENABLED
|
||||
ret = PluggableUSB().getDescriptor(setup);
|
||||
if (ret != 0) {
|
||||
return (ret > 0 ? true : false);
|
||||
}
|
||||
#endif
|
||||
|
||||
const u8* desc_addr = 0;
|
||||
if (USB_DEVICE_DESCRIPTOR_TYPE == t)
|
||||
{
|
||||
desc_addr = (const u8*)&USB_DeviceDescriptorIAD;
|
||||
}
|
||||
else if (USB_STRING_DESCRIPTOR_TYPE == t)
|
||||
{
|
||||
if (setup.wValueL == 0) {
|
||||
desc_addr = (const u8*)&STRING_LANGUAGE;
|
||||
}
|
||||
else if (setup.wValueL == IPRODUCT) {
|
||||
return USB_SendStringDescriptor(STRING_PRODUCT, strlen(USB_PRODUCT), TRANSFER_PGM);
|
||||
}
|
||||
else if (setup.wValueL == IMANUFACTURER) {
|
||||
return USB_SendStringDescriptor(STRING_MANUFACTURER, strlen(USB_MANUFACTURER), TRANSFER_PGM);
|
||||
}
|
||||
else if (setup.wValueL == ISERIAL) {
|
||||
#ifdef PLUGGABLE_USB_ENABLED
|
||||
char name[ISERIAL_MAX_LEN];
|
||||
PluggableUSB().getShortName(name);
|
||||
return USB_SendStringDescriptor((uint8_t*)name, strlen(name), 0);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
if (desc_addr == 0)
|
||||
return false;
|
||||
u8 desc_length = pgm_read_byte(desc_addr);
|
||||
|
||||
USB_SendControl(TRANSFER_PGM,desc_addr,desc_length);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Endpoint 0 interrupt
|
||||
ISR(USB_COM_vect)
|
||||
{
|
||||
SetEP(0);
|
||||
if (!ReceivedSetupInt())
|
||||
return;
|
||||
|
||||
USBSetup setup;
|
||||
Recv((u8*)&setup,8);
|
||||
ClearSetupInt();
|
||||
|
||||
u8 requestType = setup.bmRequestType;
|
||||
if (requestType & REQUEST_DEVICETOHOST)
|
||||
WaitIN();
|
||||
else
|
||||
ClearIN();
|
||||
|
||||
bool ok = true;
|
||||
if (REQUEST_STANDARD == (requestType & REQUEST_TYPE))
|
||||
{
|
||||
// Standard Requests
|
||||
u8 r = setup.bRequest;
|
||||
u16 wValue = setup.wValueL | (setup.wValueH << 8);
|
||||
if (GET_STATUS == r)
|
||||
{
|
||||
if (requestType == (REQUEST_DEVICETOHOST | REQUEST_STANDARD | REQUEST_DEVICE))
|
||||
{
|
||||
Send8(_usbCurrentStatus);
|
||||
Send8(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
// TODO: handle the HALT state of an endpoint here
|
||||
// see "Figure 9-6. Information Returned by a GetStatus() Request to an Endpoint" in usb_20.pdf for more information
|
||||
Send8(0);
|
||||
Send8(0);
|
||||
}
|
||||
}
|
||||
else if (CLEAR_FEATURE == r)
|
||||
{
|
||||
if((requestType == (REQUEST_HOSTTODEVICE | REQUEST_STANDARD | REQUEST_DEVICE))
|
||||
&& (wValue == DEVICE_REMOTE_WAKEUP))
|
||||
{
|
||||
_usbCurrentStatus &= ~FEATURE_REMOTE_WAKEUP_ENABLED;
|
||||
}
|
||||
}
|
||||
else if (SET_FEATURE == r)
|
||||
{
|
||||
if((requestType == (REQUEST_HOSTTODEVICE | REQUEST_STANDARD | REQUEST_DEVICE))
|
||||
&& (wValue == DEVICE_REMOTE_WAKEUP))
|
||||
{
|
||||
_usbCurrentStatus |= FEATURE_REMOTE_WAKEUP_ENABLED;
|
||||
}
|
||||
}
|
||||
else if (SET_ADDRESS == r)
|
||||
{
|
||||
WaitIN();
|
||||
UDADDR = setup.wValueL | (1<<ADDEN);
|
||||
}
|
||||
else if (GET_DESCRIPTOR == r)
|
||||
{
|
||||
ok = SendDescriptor(setup);
|
||||
}
|
||||
else if (SET_DESCRIPTOR == r)
|
||||
{
|
||||
ok = false;
|
||||
}
|
||||
else if (GET_CONFIGURATION == r)
|
||||
{
|
||||
Send8(1);
|
||||
}
|
||||
else if (SET_CONFIGURATION == r)
|
||||
{
|
||||
if (REQUEST_DEVICE == (requestType & REQUEST_RECIPIENT))
|
||||
{
|
||||
InitEndpoints();
|
||||
_usbConfiguration = setup.wValueL;
|
||||
} else
|
||||
ok = false;
|
||||
}
|
||||
else if (GET_INTERFACE == r)
|
||||
{
|
||||
}
|
||||
else if (SET_INTERFACE == r)
|
||||
{
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
InitControl(setup.wLength); // Max length of transfer
|
||||
ok = ClassInterfaceRequest(setup);
|
||||
}
|
||||
|
||||
if (ok)
|
||||
ClearIN();
|
||||
else
|
||||
{
|
||||
Stall();
|
||||
}
|
||||
}
|
||||
|
||||
void USB_Flush(u8 ep)
|
||||
{
|
||||
SetEP(ep);
|
||||
if (FifoByteCount())
|
||||
ReleaseTX();
|
||||
}
|
||||
|
||||
static inline void USB_ClockDisable()
|
||||
{
|
||||
#if defined(OTGPADE)
|
||||
USBCON = (USBCON & ~(1<<OTGPADE)) | (1<<FRZCLK); // freeze clock and disable VBUS Pad
|
||||
#else // u2 Series
|
||||
USBCON = (1 << FRZCLK); // freeze clock
|
||||
#endif
|
||||
PLLCSR &= ~(1<<PLLE); // stop PLL
|
||||
}
|
||||
|
||||
static inline void USB_ClockEnable()
|
||||
{
|
||||
#if defined(UHWCON)
|
||||
UHWCON |= (1<<UVREGE); // power internal reg
|
||||
#endif
|
||||
USBCON = (1<<USBE) | (1<<FRZCLK); // clock frozen, usb enabled
|
||||
|
||||
// ATmega32U4
|
||||
#if defined(PINDIV)
|
||||
#if F_CPU == 16000000UL
|
||||
PLLCSR |= (1<<PINDIV); // Need 16 MHz xtal
|
||||
#elif F_CPU == 8000000UL
|
||||
PLLCSR &= ~(1<<PINDIV); // Need 8 MHz xtal
|
||||
#else
|
||||
#error "Clock rate of F_CPU not supported"
|
||||
#endif
|
||||
|
||||
#elif defined(__AVR_AT90USB82__) || defined(__AVR_AT90USB162__) || defined(__AVR_ATmega32U2__) || defined(__AVR_ATmega16U2__) || defined(__AVR_ATmega8U2__)
|
||||
// for the u2 Series the datasheet is confusing. On page 40 its called PINDIV and on page 290 its called PLLP0
|
||||
#if F_CPU == 16000000UL
|
||||
// Need 16 MHz xtal
|
||||
PLLCSR |= (1 << PLLP0);
|
||||
#elif F_CPU == 8000000UL
|
||||
// Need 8 MHz xtal
|
||||
PLLCSR &= ~(1 << PLLP0);
|
||||
#endif
|
||||
|
||||
// AT90USB646, AT90USB647, AT90USB1286, AT90USB1287
|
||||
#elif defined(PLLP2)
|
||||
#if F_CPU == 16000000UL
|
||||
#if defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB1287__)
|
||||
// For Atmel AT90USB128x only. Do not use with Atmel AT90USB64x.
|
||||
PLLCSR = (PLLCSR & ~(1<<PLLP1)) | ((1<<PLLP2) | (1<<PLLP0)); // Need 16 MHz xtal
|
||||
#elif defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB647__)
|
||||
// For AT90USB64x only. Do not use with AT90USB128x.
|
||||
PLLCSR = (PLLCSR & ~(1<<PLLP0)) | ((1<<PLLP2) | (1<<PLLP1)); // Need 16 MHz xtal
|
||||
#else
|
||||
#error "USB Chip not supported, please defined method of USB PLL initialization"
|
||||
#endif
|
||||
#elif F_CPU == 8000000UL
|
||||
// for Atmel AT90USB128x and AT90USB64x
|
||||
PLLCSR = (PLLCSR & ~(1<<PLLP2)) | ((1<<PLLP1) | (1<<PLLP0)); // Need 8 MHz xtal
|
||||
#else
|
||||
#error "Clock rate of F_CPU not supported"
|
||||
#endif
|
||||
#else
|
||||
#error "USB Chip not supported, please defined method of USB PLL initialization"
|
||||
#endif
|
||||
|
||||
PLLCSR |= (1<<PLLE);
|
||||
while (!(PLLCSR & (1<<PLOCK))) // wait for lock pll
|
||||
{
|
||||
}
|
||||
|
||||
// Some tests on specific versions of macosx (10.7.3), reported some
|
||||
// strange behaviors when the board is reset using the serial
|
||||
// port touch at 1200 bps. This delay fixes this behavior.
|
||||
delayShort(1);
|
||||
#if defined(OTGPADE)
|
||||
USBCON = (USBCON & ~(1<<FRZCLK)) | (1<<OTGPADE); // start USB clock, enable VBUS Pad
|
||||
#else
|
||||
USBCON &= ~(1 << FRZCLK); // start USB clock
|
||||
#endif
|
||||
|
||||
#if defined(RSTCPU)
|
||||
#if defined(LSM)
|
||||
UDCON &= ~((1<<RSTCPU) | (1<<LSM) | (1<<RMWKUP) | (1<<DETACH)); // enable attach resistor, set full speed mode
|
||||
#else // u2 Series
|
||||
UDCON &= ~((1 << RSTCPU) | (1 << RMWKUP) | (1 << DETACH)); // enable attach resistor, set full speed mode
|
||||
#endif
|
||||
#else
|
||||
// AT90USB64x and AT90USB128x don't have RSTCPU
|
||||
UDCON &= ~((1<<LSM) | (1<<RMWKUP) | (1<<DETACH)); // enable attach resistor, set full speed mode
|
||||
#endif
|
||||
}
|
||||
|
||||
// General interrupt
|
||||
ISR(USB_GEN_vect)
|
||||
{
|
||||
u8 udint = UDINT;
|
||||
UDINT &= ~((1<<EORSTI) | (1<<SOFI)); // clear the IRQ flags for the IRQs which are handled here, except WAKEUPI and SUSPI (see below)
|
||||
|
||||
// End of Reset
|
||||
if (udint & (1<<EORSTI))
|
||||
{
|
||||
InitEP(0,EP_TYPE_CONTROL,EP_SINGLE_64); // init ep0
|
||||
_usbConfiguration = 0; // not configured yet
|
||||
UEIENX = 1 << RXSTPE; // Enable interrupts for ep0
|
||||
}
|
||||
|
||||
// Start of Frame - happens every millisecond so we use it for TX and RX LED one-shot timing, too
|
||||
if (udint & (1<<SOFI))
|
||||
{
|
||||
USB_Flush(CDC_TX); // Send a tx frame if found
|
||||
|
||||
// check whether the one-shot period has elapsed. if so, turn off the LED
|
||||
if (TxLEDPulse && !(--TxLEDPulse))
|
||||
TXLED0;
|
||||
if (RxLEDPulse && !(--RxLEDPulse))
|
||||
RXLED0;
|
||||
}
|
||||
|
||||
// the WAKEUPI interrupt is triggered as soon as there are non-idle patterns on the data
|
||||
// lines. Thus, the WAKEUPI interrupt can occur even if the controller is not in the "suspend" mode.
|
||||
// Therefore the we enable it only when USB is suspended
|
||||
if (udint & (1<<WAKEUPI))
|
||||
{
|
||||
UDIEN = (UDIEN & ~(1<<WAKEUPE)) | (1<<SUSPE); // Disable interrupts for WAKEUP and enable interrupts for SUSPEND
|
||||
|
||||
//TODO
|
||||
// WAKEUPI shall be cleared by software (USB clock inputs must be enabled before).
|
||||
//USB_ClockEnable();
|
||||
UDINT &= ~(1<<WAKEUPI);
|
||||
_usbSuspendState = (_usbSuspendState & ~(1<<SUSPI)) | (1<<WAKEUPI);
|
||||
}
|
||||
else if (udint & (1<<SUSPI)) // only one of the WAKEUPI / SUSPI bits can be active at time
|
||||
{
|
||||
UDIEN = (UDIEN & ~(1<<SUSPE)) | (1<<WAKEUPE); // Disable interrupts for SUSPEND and enable interrupts for WAKEUP
|
||||
|
||||
//TODO
|
||||
//USB_ClockDisable();
|
||||
|
||||
UDINT &= ~((1<<WAKEUPI) | (1<<SUSPI)); // clear any already pending WAKEUP IRQs and the SUSPI request
|
||||
_usbSuspendState = (_usbSuspendState & ~(1<<WAKEUPI)) | (1<<SUSPI);
|
||||
}
|
||||
}
|
||||
|
||||
// VBUS or counting frames
|
||||
// Any frame counting?
|
||||
u8 USBConnected()
|
||||
{
|
||||
u8 f = UDFNUML;
|
||||
delayShort(3);
|
||||
return f != UDFNUML;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=======================================================================
|
||||
|
||||
USBDevice_ USBDevice;
|
||||
|
||||
USBDevice_::USBDevice_()
|
||||
{
|
||||
}
|
||||
|
||||
void USBDevice_::attach()
|
||||
{
|
||||
_usbConfiguration = 0;
|
||||
_usbCurrentStatus = 0;
|
||||
_usbSuspendState = 0;
|
||||
USB_ClockEnable();
|
||||
|
||||
UDINT &= ~((1<<WAKEUPI) | (1<<SUSPI)); // clear already pending WAKEUP / SUSPEND requests
|
||||
UDIEN = (1<<EORSTE) | (1<<SOFE) | (1<<SUSPE); // Enable interrupts for EOR (End of Reset), SOF (start of frame) and SUSPEND
|
||||
|
||||
TX_RX_LED_INIT;
|
||||
|
||||
#ifndef ARDUBOY_CORE
|
||||
#if MAGIC_KEY_POS != (RAMEND-1)
|
||||
if (pgm_read_word(FLASHEND - 1) == NEW_LUFA_SIGNATURE) {
|
||||
_updatedLUFAbootloader = true;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
void USBDevice_::detach()
|
||||
{
|
||||
}
|
||||
|
||||
// Check for interrupts
|
||||
// TODO: VBUS detection
|
||||
bool USBDevice_::configured()
|
||||
{
|
||||
return _usbConfiguration;
|
||||
}
|
||||
|
||||
void USBDevice_::poll()
|
||||
{
|
||||
}
|
||||
|
||||
bool USBDevice_::wakeupHost()
|
||||
{
|
||||
// clear any previous wakeup request which might have been set but could be processed at that time
|
||||
// e.g. because the host was not suspended at that time
|
||||
UDCON &= ~(1 << RMWKUP);
|
||||
|
||||
if(!(UDCON & (1 << RMWKUP))
|
||||
&& (_usbSuspendState & (1<<SUSPI))
|
||||
&& (_usbCurrentStatus & FEATURE_REMOTE_WAKEUP_ENABLED))
|
||||
{
|
||||
// This short version will only work, when the device has not been suspended. Currently the
|
||||
// Arduino core doesn't handle SUSPEND at all, so this is ok.
|
||||
USB_ClockEnable();
|
||||
UDCON |= (1 << RMWKUP); // send the wakeup request
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif /* if defined(USBCON) */
|
|
@ -0,0 +1,302 @@
|
|||
|
||||
// Copyright (c) 2010, Peter Barrett
|
||||
/*
|
||||
** Permission to use, copy, modify, and/or distribute this software for
|
||||
** any purpose with or without fee is hereby granted, provided that the
|
||||
** above copyright notice and this permission notice appear in all copies.
|
||||
**
|
||||
** THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
||||
** WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
** WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
|
||||
** BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
|
||||
** OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||
** WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||
** ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
** SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __USBCORE_H__
|
||||
#define __USBCORE_H__
|
||||
|
||||
#include "USBAPI.h"
|
||||
|
||||
// Standard requests
|
||||
#define GET_STATUS 0
|
||||
#define CLEAR_FEATURE 1
|
||||
#define SET_FEATURE 3
|
||||
#define SET_ADDRESS 5
|
||||
#define GET_DESCRIPTOR 6
|
||||
#define SET_DESCRIPTOR 7
|
||||
#define GET_CONFIGURATION 8
|
||||
#define SET_CONFIGURATION 9
|
||||
#define GET_INTERFACE 10
|
||||
#define SET_INTERFACE 11
|
||||
|
||||
|
||||
// bmRequestType
|
||||
#define REQUEST_HOSTTODEVICE 0x00
|
||||
#define REQUEST_DEVICETOHOST 0x80
|
||||
#define REQUEST_DIRECTION 0x80
|
||||
|
||||
#define REQUEST_STANDARD 0x00
|
||||
#define REQUEST_CLASS 0x20
|
||||
#define REQUEST_VENDOR 0x40
|
||||
#define REQUEST_TYPE 0x60
|
||||
|
||||
#define REQUEST_DEVICE 0x00
|
||||
#define REQUEST_INTERFACE 0x01
|
||||
#define REQUEST_ENDPOINT 0x02
|
||||
#define REQUEST_OTHER 0x03
|
||||
#define REQUEST_RECIPIENT 0x03
|
||||
|
||||
#define REQUEST_DEVICETOHOST_CLASS_INTERFACE (REQUEST_DEVICETOHOST | REQUEST_CLASS | REQUEST_INTERFACE)
|
||||
#define REQUEST_HOSTTODEVICE_CLASS_INTERFACE (REQUEST_HOSTTODEVICE | REQUEST_CLASS | REQUEST_INTERFACE)
|
||||
#define REQUEST_DEVICETOHOST_STANDARD_INTERFACE (REQUEST_DEVICETOHOST | REQUEST_STANDARD | REQUEST_INTERFACE)
|
||||
|
||||
// Class requests
|
||||
|
||||
#define CDC_SET_LINE_CODING 0x20
|
||||
#define CDC_GET_LINE_CODING 0x21
|
||||
#define CDC_SET_CONTROL_LINE_STATE 0x22
|
||||
#define CDC_SEND_BREAK 0x23
|
||||
|
||||
#define MSC_RESET 0xFF
|
||||
#define MSC_GET_MAX_LUN 0xFE
|
||||
|
||||
// Descriptors
|
||||
|
||||
#define USB_DEVICE_DESC_SIZE 18
|
||||
#define USB_CONFIGUARTION_DESC_SIZE 9
|
||||
#define USB_INTERFACE_DESC_SIZE 9
|
||||
#define USB_ENDPOINT_DESC_SIZE 7
|
||||
|
||||
#define USB_DEVICE_DESCRIPTOR_TYPE 1
|
||||
#define USB_CONFIGURATION_DESCRIPTOR_TYPE 2
|
||||
#define USB_STRING_DESCRIPTOR_TYPE 3
|
||||
#define USB_INTERFACE_DESCRIPTOR_TYPE 4
|
||||
#define USB_ENDPOINT_DESCRIPTOR_TYPE 5
|
||||
|
||||
// usb_20.pdf Table 9.6 Standard Feature Selectors
|
||||
#define DEVICE_REMOTE_WAKEUP 1
|
||||
#define ENDPOINT_HALT 2
|
||||
#define TEST_MODE 3
|
||||
|
||||
// usb_20.pdf Figure 9-4. Information Returned by a GetStatus() Request to a Device
|
||||
#define FEATURE_SELFPOWERED_ENABLED (1 << 0)
|
||||
#define FEATURE_REMOTE_WAKEUP_ENABLED (1 << 1)
|
||||
|
||||
#define USB_DEVICE_CLASS_COMMUNICATIONS 0x02
|
||||
#define USB_DEVICE_CLASS_HUMAN_INTERFACE 0x03
|
||||
#define USB_DEVICE_CLASS_STORAGE 0x08
|
||||
#define USB_DEVICE_CLASS_VENDOR_SPECIFIC 0xFF
|
||||
|
||||
#define USB_CONFIG_POWERED_MASK 0x40
|
||||
#define USB_CONFIG_BUS_POWERED 0x80
|
||||
#define USB_CONFIG_SELF_POWERED 0xC0
|
||||
#define USB_CONFIG_REMOTE_WAKEUP 0x20
|
||||
|
||||
// bMaxPower in Configuration Descriptor
|
||||
#define USB_CONFIG_POWER_MA(mA) ((mA)/2)
|
||||
|
||||
// bEndpointAddress in Endpoint Descriptor
|
||||
#define USB_ENDPOINT_DIRECTION_MASK 0x80
|
||||
#define USB_ENDPOINT_OUT(addr) (lowByte((addr) | 0x00))
|
||||
#define USB_ENDPOINT_IN(addr) (lowByte((addr) | 0x80))
|
||||
|
||||
#define USB_ENDPOINT_TYPE_MASK 0x03
|
||||
#define USB_ENDPOINT_TYPE_CONTROL 0x00
|
||||
#define USB_ENDPOINT_TYPE_ISOCHRONOUS 0x01
|
||||
#define USB_ENDPOINT_TYPE_BULK 0x02
|
||||
#define USB_ENDPOINT_TYPE_INTERRUPT 0x03
|
||||
|
||||
#define TOBYTES(x) ((x) & 0xFF),(((x) >> 8) & 0xFF)
|
||||
|
||||
#define CDC_V1_10 0x0110
|
||||
#define CDC_COMMUNICATION_INTERFACE_CLASS 0x02
|
||||
|
||||
#define CDC_CALL_MANAGEMENT 0x01
|
||||
#define CDC_ABSTRACT_CONTROL_MODEL 0x02
|
||||
#define CDC_HEADER 0x00
|
||||
#define CDC_ABSTRACT_CONTROL_MANAGEMENT 0x02
|
||||
#define CDC_UNION 0x06
|
||||
#define CDC_CS_INTERFACE 0x24
|
||||
#define CDC_CS_ENDPOINT 0x25
|
||||
#define CDC_DATA_INTERFACE_CLASS 0x0A
|
||||
|
||||
#define MSC_SUBCLASS_SCSI 0x06
|
||||
#define MSC_PROTOCOL_BULK_ONLY 0x50
|
||||
|
||||
#ifndef USB_VERSION
|
||||
#define USB_VERSION 0x200
|
||||
#endif
|
||||
|
||||
// Device
|
||||
typedef struct {
|
||||
u8 len; // 18
|
||||
u8 dtype; // 1 USB_DEVICE_DESCRIPTOR_TYPE
|
||||
u16 usbVersion; // 0x200 or 0x210
|
||||
u8 deviceClass;
|
||||
u8 deviceSubClass;
|
||||
u8 deviceProtocol;
|
||||
u8 packetSize0; // Packet 0
|
||||
u16 idVendor;
|
||||
u16 idProduct;
|
||||
u16 deviceVersion; // 0x100
|
||||
u8 iManufacturer;
|
||||
u8 iProduct;
|
||||
u8 iSerialNumber;
|
||||
u8 bNumConfigurations;
|
||||
} DeviceDescriptor;
|
||||
|
||||
// Config
|
||||
typedef struct {
|
||||
u8 len; // 9
|
||||
u8 dtype; // 2
|
||||
u16 clen; // total length
|
||||
u8 numInterfaces;
|
||||
u8 config;
|
||||
u8 iconfig;
|
||||
u8 attributes;
|
||||
u8 maxPower;
|
||||
} ConfigDescriptor;
|
||||
|
||||
// String
|
||||
|
||||
// Interface
|
||||
typedef struct
|
||||
{
|
||||
u8 len; // 9
|
||||
u8 dtype; // 4
|
||||
u8 number;
|
||||
u8 alternate;
|
||||
u8 numEndpoints;
|
||||
u8 interfaceClass;
|
||||
u8 interfaceSubClass;
|
||||
u8 protocol;
|
||||
u8 iInterface;
|
||||
} InterfaceDescriptor;
|
||||
|
||||
// Endpoint
|
||||
typedef struct
|
||||
{
|
||||
u8 len; // 7
|
||||
u8 dtype; // 5
|
||||
u8 addr;
|
||||
u8 attr;
|
||||
u16 packetSize;
|
||||
u8 interval;
|
||||
} EndpointDescriptor;
|
||||
|
||||
// Interface Association Descriptor
|
||||
// Used to bind 2 interfaces together in CDC compostite device
|
||||
typedef struct
|
||||
{
|
||||
u8 len; // 8
|
||||
u8 dtype; // 11
|
||||
u8 firstInterface;
|
||||
u8 interfaceCount;
|
||||
u8 functionClass;
|
||||
u8 funtionSubClass;
|
||||
u8 functionProtocol;
|
||||
u8 iInterface;
|
||||
} IADDescriptor;
|
||||
|
||||
// CDC CS interface descriptor
|
||||
typedef struct
|
||||
{
|
||||
u8 len; // 5
|
||||
u8 dtype; // 0x24
|
||||
u8 subtype;
|
||||
u8 d0;
|
||||
u8 d1;
|
||||
} CDCCSInterfaceDescriptor;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
u8 len; // 4
|
||||
u8 dtype; // 0x24
|
||||
u8 subtype;
|
||||
u8 d0;
|
||||
} CDCCSInterfaceDescriptor4;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
u8 len;
|
||||
u8 dtype; // 0x24
|
||||
u8 subtype; // 1
|
||||
u8 bmCapabilities;
|
||||
u8 bDataInterface;
|
||||
} CMFunctionalDescriptor;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
u8 len;
|
||||
u8 dtype; // 0x24
|
||||
u8 subtype; // 1
|
||||
u8 bmCapabilities;
|
||||
} ACMFunctionalDescriptor;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
// IAD
|
||||
IADDescriptor iad; // Only needed on compound device
|
||||
|
||||
// Control
|
||||
InterfaceDescriptor cif; //
|
||||
CDCCSInterfaceDescriptor header;
|
||||
CMFunctionalDescriptor callManagement; // Call Management
|
||||
ACMFunctionalDescriptor controlManagement; // ACM
|
||||
CDCCSInterfaceDescriptor functionalDescriptor; // CDC_UNION
|
||||
EndpointDescriptor cifin;
|
||||
|
||||
// Data
|
||||
InterfaceDescriptor dif;
|
||||
EndpointDescriptor in;
|
||||
EndpointDescriptor out;
|
||||
} CDCDescriptor;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
InterfaceDescriptor msc;
|
||||
EndpointDescriptor in;
|
||||
EndpointDescriptor out;
|
||||
} MSCDescriptor;
|
||||
|
||||
|
||||
#define D_DEVICE(_class,_subClass,_proto,_packetSize0,_vid,_pid,_version,_im,_ip,_is,_configs) \
|
||||
{ 18, 1, USB_VERSION, _class,_subClass,_proto,_packetSize0,_vid,_pid,_version,_im,_ip,_is,_configs }
|
||||
|
||||
#define D_CONFIG(_totalLength,_interfaces) \
|
||||
{ 9, 2, _totalLength,_interfaces, 1, 0, USB_CONFIG_BUS_POWERED | USB_CONFIG_REMOTE_WAKEUP, USB_CONFIG_POWER_MA(500) }
|
||||
|
||||
#define D_INTERFACE(_n,_numEndpoints,_class,_subClass,_protocol) \
|
||||
{ 9, 4, _n, 0, _numEndpoints, _class,_subClass, _protocol, 0 }
|
||||
|
||||
#define D_ENDPOINT(_addr,_attr,_packetSize, _interval) \
|
||||
{ 7, 5, _addr,_attr,_packetSize, _interval }
|
||||
|
||||
#define D_IAD(_firstInterface, _count, _class, _subClass, _protocol) \
|
||||
{ 8, 11, _firstInterface, _count, _class, _subClass, _protocol, 0 }
|
||||
|
||||
#define D_CDCCS(_subtype,_d0,_d1) { 5, 0x24, _subtype, _d0, _d1 }
|
||||
#define D_CDCCS4(_subtype,_d0) { 4, 0x24, _subtype, _d0 }
|
||||
|
||||
// Bootloader related fields
|
||||
// Old Caterina bootloader places the MAGIC key into unsafe RAM locations (it can be rewritten
|
||||
// by the running sketch before to actual reboot).
|
||||
// Newer bootloaders, recognizable by the LUFA "signature" at the end of the flash, can handle both
|
||||
// the usafe and the safe location. Check once (in USBCore.cpp) if the bootloader in new, then set the global
|
||||
// _updatedLUFAbootloader variable to true/false and place the magic key consequently
|
||||
#ifndef MAGIC_KEY
|
||||
#define MAGIC_KEY 0x7777
|
||||
#endif
|
||||
|
||||
#ifndef MAGIC_KEY_POS
|
||||
#define MAGIC_KEY_POS 0x0800
|
||||
#endif
|
||||
|
||||
#ifndef NEW_LUFA_SIGNATURE
|
||||
#define NEW_LUFA_SIGNATURE 0xDCFB
|
||||
#endif
|
||||
|
||||
#endif
|
|
@ -0,0 +1,46 @@
|
|||
/*
|
||||
Copyright (c) 2011, Peter Barrett
|
||||
Copyright (c) 2015, Arduino LLC
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for
|
||||
any purpose with or without fee is hereby granted, provided that the
|
||||
above copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
||||
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
|
||||
BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
|
||||
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
SOFTWARE.
|
||||
*/
|
||||
|
||||
#define PLUGGABLE_USB_ENABLED
|
||||
|
||||
#if defined(EPRST6)
|
||||
#define USB_ENDPOINTS 7 // AtMegaxxU4
|
||||
#else
|
||||
#define USB_ENDPOINTS 5 // AtMegaxxU2
|
||||
#endif
|
||||
|
||||
#define ISERIAL_MAX_LEN 20
|
||||
|
||||
#define CDC_INTERFACE_COUNT 2
|
||||
#define CDC_ENPOINT_COUNT 3
|
||||
|
||||
#define CDC_ACM_INTERFACE 0 // CDC ACM
|
||||
#define CDC_DATA_INTERFACE 1 // CDC Data
|
||||
#define CDC_FIRST_ENDPOINT 1
|
||||
#define CDC_ENDPOINT_ACM (CDC_FIRST_ENDPOINT) // CDC First
|
||||
#define CDC_ENDPOINT_OUT (CDC_FIRST_ENDPOINT+1)
|
||||
#define CDC_ENDPOINT_IN (CDC_FIRST_ENDPOINT+2)
|
||||
|
||||
#define INTERFACE_COUNT (MSC_INTERFACE + MSC_INTERFACE_COUNT)
|
||||
|
||||
#define CDC_RX CDC_ENDPOINT_OUT
|
||||
#define CDC_TX CDC_ENDPOINT_IN
|
||||
|
||||
#define IMANUFACTURER 1
|
||||
#define IPRODUCT 2
|
||||
#define ISERIAL 3
|
|
@ -0,0 +1,89 @@
|
|||
/*
|
||||
* Udp.cpp: Library to send/receive UDP packets.
|
||||
*
|
||||
* NOTE: UDP is fast, but has some important limitations (thanks to Warren Gray for mentioning these)
|
||||
* 1) UDP does not guarantee the order in which assembled UDP packets are received. This
|
||||
* might not happen often in practice, but in larger network topologies, a UDP
|
||||
* packet can be received out of sequence.
|
||||
* 2) UDP does not guard against lost packets - so packets *can* disappear without the sender being
|
||||
* aware of it. Again, this may not be a concern in practice on small local networks.
|
||||
* For more information, see http://www.cafeaulait.org/course/week12/35.html
|
||||
*
|
||||
* MIT License:
|
||||
* Copyright (c) 2008 Bjoern Hartmann
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*
|
||||
* bjoern@cs.stanford.edu 12/30/2008
|
||||
*/
|
||||
|
||||
#ifndef udp_h
|
||||
#define udp_h
|
||||
|
||||
#include <Stream.h>
|
||||
#include <IPAddress.h>
|
||||
|
||||
class UDP : public Stream {
|
||||
|
||||
public:
|
||||
virtual uint8_t begin(uint16_t) =0; // initialize, start listening on specified port. Returns 1 if successful, 0 if there are no sockets available to use
|
||||
virtual uint8_t beginMulticast(IPAddress, uint16_t) { return 0; } // initialize, start listening on specified multicast IP address and port. Returns 1 if successful, 0 on failure
|
||||
virtual void stop() =0; // Finish with the UDP socket
|
||||
|
||||
// Sending UDP packets
|
||||
|
||||
// Start building up a packet to send to the remote host specific in ip and port
|
||||
// Returns 1 if successful, 0 if there was a problem with the supplied IP address or port
|
||||
virtual int beginPacket(IPAddress ip, uint16_t port) =0;
|
||||
// Start building up a packet to send to the remote host specific in host and port
|
||||
// Returns 1 if successful, 0 if there was a problem resolving the hostname or port
|
||||
virtual int beginPacket(const char *host, uint16_t port) =0;
|
||||
// Finish off this packet and send it
|
||||
// Returns 1 if the packet was sent successfully, 0 if there was an error
|
||||
virtual int endPacket() =0;
|
||||
// Write a single byte into the packet
|
||||
virtual size_t write(uint8_t) =0;
|
||||
// Write size bytes from buffer into the packet
|
||||
virtual size_t write(const uint8_t *buffer, size_t size) =0;
|
||||
|
||||
// Start processing the next available incoming packet
|
||||
// Returns the size of the packet in bytes, or 0 if no packets are available
|
||||
virtual int parsePacket() =0;
|
||||
// Number of bytes remaining in the current packet
|
||||
virtual int available() =0;
|
||||
// Read a single byte from the current packet
|
||||
virtual int read() =0;
|
||||
// Read up to len bytes from the current packet and place them into buffer
|
||||
// Returns the number of bytes read, or 0 if none are available
|
||||
virtual int read(unsigned char* buffer, size_t len) =0;
|
||||
// Read up to len characters from the current packet and place them into buffer
|
||||
// Returns the number of characters read, or 0 if none are available
|
||||
virtual int read(char* buffer, size_t len) =0;
|
||||
// Return the next byte from the current packet without moving on to the next byte
|
||||
virtual int peek() =0;
|
||||
virtual void flush() =0; // Finish reading the current packet
|
||||
|
||||
// Return the IP address of the host who sent the current incoming packet
|
||||
virtual IPAddress remoteIP() =0;
|
||||
// Return the port of the host who sent the current incoming packet
|
||||
virtual uint16_t remotePort() =0;
|
||||
protected:
|
||||
uint8_t* rawIPAddress(IPAddress& addr) { return addr.raw_address(); };
|
||||
};
|
||||
|
||||
#endif
|
|
@ -0,0 +1,168 @@
|
|||
/*
|
||||
WCharacter.h - Character utility functions for Wiring & Arduino
|
||||
Copyright (c) 2010 Hernando Barragan. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef Character_h
|
||||
#define Character_h
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
// WCharacter.h prototypes
|
||||
inline boolean isAlphaNumeric(int c) __attribute__((always_inline));
|
||||
inline boolean isAlpha(int c) __attribute__((always_inline));
|
||||
inline boolean isAscii(int c) __attribute__((always_inline));
|
||||
inline boolean isWhitespace(int c) __attribute__((always_inline));
|
||||
inline boolean isControl(int c) __attribute__((always_inline));
|
||||
inline boolean isDigit(int c) __attribute__((always_inline));
|
||||
inline boolean isGraph(int c) __attribute__((always_inline));
|
||||
inline boolean isLowerCase(int c) __attribute__((always_inline));
|
||||
inline boolean isPrintable(int c) __attribute__((always_inline));
|
||||
inline boolean isPunct(int c) __attribute__((always_inline));
|
||||
inline boolean isSpace(int c) __attribute__((always_inline));
|
||||
inline boolean isUpperCase(int c) __attribute__((always_inline));
|
||||
inline boolean isHexadecimalDigit(int c) __attribute__((always_inline));
|
||||
inline int toAscii(int c) __attribute__((always_inline));
|
||||
inline int toLowerCase(int c) __attribute__((always_inline));
|
||||
inline int toUpperCase(int c)__attribute__((always_inline));
|
||||
|
||||
|
||||
// Checks for an alphanumeric character.
|
||||
// It is equivalent to (isalpha(c) || isdigit(c)).
|
||||
inline boolean isAlphaNumeric(int c)
|
||||
{
|
||||
return ( isalnum(c) == 0 ? false : true);
|
||||
}
|
||||
|
||||
|
||||
// Checks for an alphabetic character.
|
||||
// It is equivalent to (isupper(c) || islower(c)).
|
||||
inline boolean isAlpha(int c)
|
||||
{
|
||||
return ( isalpha(c) == 0 ? false : true);
|
||||
}
|
||||
|
||||
|
||||
// Checks whether c is a 7-bit unsigned char value
|
||||
// that fits into the ASCII character set.
|
||||
inline boolean isAscii(int c)
|
||||
{
|
||||
return ( isascii (c) == 0 ? false : true);
|
||||
}
|
||||
|
||||
|
||||
// Checks for a blank character, that is, a space or a tab.
|
||||
inline boolean isWhitespace(int c)
|
||||
{
|
||||
return ( isblank (c) == 0 ? false : true);
|
||||
}
|
||||
|
||||
|
||||
// Checks for a control character.
|
||||
inline boolean isControl(int c)
|
||||
{
|
||||
return ( iscntrl (c) == 0 ? false : true);
|
||||
}
|
||||
|
||||
|
||||
// Checks for a digit (0 through 9).
|
||||
inline boolean isDigit(int c)
|
||||
{
|
||||
return ( isdigit (c) == 0 ? false : true);
|
||||
}
|
||||
|
||||
|
||||
// Checks for any printable character except space.
|
||||
inline boolean isGraph(int c)
|
||||
{
|
||||
return ( isgraph (c) == 0 ? false : true);
|
||||
}
|
||||
|
||||
|
||||
// Checks for a lower-case character.
|
||||
inline boolean isLowerCase(int c)
|
||||
{
|
||||
return (islower (c) == 0 ? false : true);
|
||||
}
|
||||
|
||||
|
||||
// Checks for any printable character including space.
|
||||
inline boolean isPrintable(int c)
|
||||
{
|
||||
return ( isprint (c) == 0 ? false : true);
|
||||
}
|
||||
|
||||
|
||||
// Checks for any printable character which is not a space
|
||||
// or an alphanumeric character.
|
||||
inline boolean isPunct(int c)
|
||||
{
|
||||
return ( ispunct (c) == 0 ? false : true);
|
||||
}
|
||||
|
||||
|
||||
// Checks for white-space characters. For the avr-libc library,
|
||||
// these are: space, formfeed ('\f'), newline ('\n'), carriage
|
||||
// return ('\r'), horizontal tab ('\t'), and vertical tab ('\v').
|
||||
inline boolean isSpace(int c)
|
||||
{
|
||||
return ( isspace (c) == 0 ? false : true);
|
||||
}
|
||||
|
||||
|
||||
// Checks for an uppercase letter.
|
||||
inline boolean isUpperCase(int c)
|
||||
{
|
||||
return ( isupper (c) == 0 ? false : true);
|
||||
}
|
||||
|
||||
|
||||
// Checks for a hexadecimal digits, i.e. one of 0 1 2 3 4 5 6 7
|
||||
// 8 9 a b c d e f A B C D E F.
|
||||
inline boolean isHexadecimalDigit(int c)
|
||||
{
|
||||
return ( isxdigit (c) == 0 ? false : true);
|
||||
}
|
||||
|
||||
|
||||
// Converts c to a 7-bit unsigned char value that fits into the
|
||||
// ASCII character set, by clearing the high-order bits.
|
||||
inline int toAscii(int c)
|
||||
{
|
||||
return toascii (c);
|
||||
}
|
||||
|
||||
|
||||
// Warning:
|
||||
// Many people will be unhappy if you use this function.
|
||||
// This function will convert accented letters into random
|
||||
// characters.
|
||||
|
||||
// Converts the letter c to lower case, if possible.
|
||||
inline int toLowerCase(int c)
|
||||
{
|
||||
return tolower (c);
|
||||
}
|
||||
|
||||
|
||||
// Converts the letter c to upper case, if possible.
|
||||
inline int toUpperCase(int c)
|
||||
{
|
||||
return toupper (c);
|
||||
}
|
||||
|
||||
#endif
|
|
@ -0,0 +1,324 @@
|
|||
/* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */
|
||||
|
||||
/*
|
||||
Part of the Wiring project - http://wiring.uniandes.edu.co
|
||||
|
||||
Copyright (c) 2004-05 Hernando Barragan
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General
|
||||
Public License along with this library; if not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307 USA
|
||||
|
||||
Modified 24 November 2006 by David A. Mellis
|
||||
Modified 1 August 2010 by Mark Sproul
|
||||
*/
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <avr/io.h>
|
||||
#include <avr/interrupt.h>
|
||||
#include <avr/pgmspace.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "wiring_private.h"
|
||||
|
||||
static void nothing(void) {
|
||||
}
|
||||
|
||||
static volatile voidFuncPtr intFunc[EXTERNAL_NUM_INTERRUPTS] = {
|
||||
#if EXTERNAL_NUM_INTERRUPTS > 8
|
||||
#warning There are more than 8 external interrupts. Some callbacks may not be initialized.
|
||||
nothing,
|
||||
#endif
|
||||
#if EXTERNAL_NUM_INTERRUPTS > 7
|
||||
nothing,
|
||||
#endif
|
||||
#if EXTERNAL_NUM_INTERRUPTS > 6
|
||||
nothing,
|
||||
#endif
|
||||
#if EXTERNAL_NUM_INTERRUPTS > 5
|
||||
nothing,
|
||||
#endif
|
||||
#if EXTERNAL_NUM_INTERRUPTS > 4
|
||||
nothing,
|
||||
#endif
|
||||
#if EXTERNAL_NUM_INTERRUPTS > 3
|
||||
nothing,
|
||||
#endif
|
||||
#if EXTERNAL_NUM_INTERRUPTS > 2
|
||||
nothing,
|
||||
#endif
|
||||
#if EXTERNAL_NUM_INTERRUPTS > 1
|
||||
nothing,
|
||||
#endif
|
||||
#if EXTERNAL_NUM_INTERRUPTS > 0
|
||||
nothing,
|
||||
#endif
|
||||
};
|
||||
// volatile static voidFuncPtr twiIntFunc;
|
||||
|
||||
void attachInterrupt(uint8_t interruptNum, void (*userFunc)(void), int mode) {
|
||||
if(interruptNum < EXTERNAL_NUM_INTERRUPTS) {
|
||||
intFunc[interruptNum] = userFunc;
|
||||
|
||||
// Configure the interrupt mode (trigger on low input, any change, rising
|
||||
// edge, or falling edge). The mode constants were chosen to correspond
|
||||
// to the configuration bits in the hardware register, so we simply shift
|
||||
// the mode into place.
|
||||
|
||||
// Enable the interrupt.
|
||||
|
||||
switch (interruptNum) {
|
||||
#if defined(__AVR_ATmega32U4__)
|
||||
// I hate doing this, but the register assignment differs between the 1280/2560
|
||||
// and the 32U4. Since avrlib defines registers PCMSK1 and PCMSK2 that aren't
|
||||
// even present on the 32U4 this is the only way to distinguish between them.
|
||||
case 0:
|
||||
EICRA = (EICRA & ~((1<<ISC00) | (1<<ISC01))) | (mode << ISC00);
|
||||
EIMSK |= (1<<INT0);
|
||||
break;
|
||||
case 1:
|
||||
EICRA = (EICRA & ~((1<<ISC10) | (1<<ISC11))) | (mode << ISC10);
|
||||
EIMSK |= (1<<INT1);
|
||||
break;
|
||||
case 2:
|
||||
EICRA = (EICRA & ~((1<<ISC20) | (1<<ISC21))) | (mode << ISC20);
|
||||
EIMSK |= (1<<INT2);
|
||||
break;
|
||||
case 3:
|
||||
EICRA = (EICRA & ~((1<<ISC30) | (1<<ISC31))) | (mode << ISC30);
|
||||
EIMSK |= (1<<INT3);
|
||||
break;
|
||||
case 4:
|
||||
EICRB = (EICRB & ~((1<<ISC60) | (1<<ISC61))) | (mode << ISC60);
|
||||
EIMSK |= (1<<INT6);
|
||||
break;
|
||||
#elif defined(EICRA) && defined(EICRB) && defined(EIMSK)
|
||||
case 2:
|
||||
EICRA = (EICRA & ~((1 << ISC00) | (1 << ISC01))) | (mode << ISC00);
|
||||
EIMSK |= (1 << INT0);
|
||||
break;
|
||||
case 3:
|
||||
EICRA = (EICRA & ~((1 << ISC10) | (1 << ISC11))) | (mode << ISC10);
|
||||
EIMSK |= (1 << INT1);
|
||||
break;
|
||||
case 4:
|
||||
EICRA = (EICRA & ~((1 << ISC20) | (1 << ISC21))) | (mode << ISC20);
|
||||
EIMSK |= (1 << INT2);
|
||||
break;
|
||||
case 5:
|
||||
EICRA = (EICRA & ~((1 << ISC30) | (1 << ISC31))) | (mode << ISC30);
|
||||
EIMSK |= (1 << INT3);
|
||||
break;
|
||||
case 0:
|
||||
EICRB = (EICRB & ~((1 << ISC40) | (1 << ISC41))) | (mode << ISC40);
|
||||
EIMSK |= (1 << INT4);
|
||||
break;
|
||||
case 1:
|
||||
EICRB = (EICRB & ~((1 << ISC50) | (1 << ISC51))) | (mode << ISC50);
|
||||
EIMSK |= (1 << INT5);
|
||||
break;
|
||||
case 6:
|
||||
EICRB = (EICRB & ~((1 << ISC60) | (1 << ISC61))) | (mode << ISC60);
|
||||
EIMSK |= (1 << INT6);
|
||||
break;
|
||||
case 7:
|
||||
EICRB = (EICRB & ~((1 << ISC70) | (1 << ISC71))) | (mode << ISC70);
|
||||
EIMSK |= (1 << INT7);
|
||||
break;
|
||||
#else
|
||||
case 0:
|
||||
#if defined(EICRA) && defined(ISC00) && defined(EIMSK)
|
||||
EICRA = (EICRA & ~((1 << ISC00) | (1 << ISC01))) | (mode << ISC00);
|
||||
EIMSK |= (1 << INT0);
|
||||
#elif defined(MCUCR) && defined(ISC00) && defined(GICR)
|
||||
MCUCR = (MCUCR & ~((1 << ISC00) | (1 << ISC01))) | (mode << ISC00);
|
||||
GICR |= (1 << INT0);
|
||||
#elif defined(MCUCR) && defined(ISC00) && defined(GIMSK)
|
||||
MCUCR = (MCUCR & ~((1 << ISC00) | (1 << ISC01))) | (mode << ISC00);
|
||||
GIMSK |= (1 << INT0);
|
||||
#else
|
||||
#error attachInterrupt not finished for this CPU (case 0)
|
||||
#endif
|
||||
break;
|
||||
|
||||
case 1:
|
||||
#if defined(EICRA) && defined(ISC10) && defined(ISC11) && defined(EIMSK)
|
||||
EICRA = (EICRA & ~((1 << ISC10) | (1 << ISC11))) | (mode << ISC10);
|
||||
EIMSK |= (1 << INT1);
|
||||
#elif defined(MCUCR) && defined(ISC10) && defined(ISC11) && defined(GICR)
|
||||
MCUCR = (MCUCR & ~((1 << ISC10) | (1 << ISC11))) | (mode << ISC10);
|
||||
GICR |= (1 << INT1);
|
||||
#elif defined(MCUCR) && defined(ISC10) && defined(GIMSK) && defined(GIMSK)
|
||||
MCUCR = (MCUCR & ~((1 << ISC10) | (1 << ISC11))) | (mode << ISC10);
|
||||
GIMSK |= (1 << INT1);
|
||||
#else
|
||||
#warning attachInterrupt may need some more work for this cpu (case 1)
|
||||
#endif
|
||||
break;
|
||||
|
||||
case 2:
|
||||
#if defined(EICRA) && defined(ISC20) && defined(ISC21) && defined(EIMSK)
|
||||
EICRA = (EICRA & ~((1 << ISC20) | (1 << ISC21))) | (mode << ISC20);
|
||||
EIMSK |= (1 << INT2);
|
||||
#elif defined(MCUCR) && defined(ISC20) && defined(ISC21) && defined(GICR)
|
||||
MCUCR = (MCUCR & ~((1 << ISC20) | (1 << ISC21))) | (mode << ISC20);
|
||||
GICR |= (1 << INT2);
|
||||
#elif defined(MCUCR) && defined(ISC20) && defined(GIMSK) && defined(GIMSK)
|
||||
MCUCR = (MCUCR & ~((1 << ISC20) | (1 << ISC21))) | (mode << ISC20);
|
||||
GIMSK |= (1 << INT2);
|
||||
#endif
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void detachInterrupt(uint8_t interruptNum) {
|
||||
if(interruptNum < EXTERNAL_NUM_INTERRUPTS) {
|
||||
// Disable the interrupt. (We can't assume that interruptNum is equal
|
||||
// to the number of the EIMSK bit to clear, as this isn't true on the
|
||||
// ATmega8. There, INT0 is 6 and INT1 is 7.)
|
||||
switch (interruptNum) {
|
||||
#if defined(__AVR_ATmega32U4__)
|
||||
case 0:
|
||||
EIMSK &= ~(1<<INT0);
|
||||
break;
|
||||
case 1:
|
||||
EIMSK &= ~(1<<INT1);
|
||||
break;
|
||||
case 2:
|
||||
EIMSK &= ~(1<<INT2);
|
||||
break;
|
||||
case 3:
|
||||
EIMSK &= ~(1<<INT3);
|
||||
break;
|
||||
case 4:
|
||||
EIMSK &= ~(1<<INT6);
|
||||
break;
|
||||
#elif defined(EICRA) && defined(EICRB) && defined(EIMSK)
|
||||
case 2:
|
||||
EIMSK &= ~(1 << INT0);
|
||||
break;
|
||||
case 3:
|
||||
EIMSK &= ~(1 << INT1);
|
||||
break;
|
||||
case 4:
|
||||
EIMSK &= ~(1 << INT2);
|
||||
break;
|
||||
case 5:
|
||||
EIMSK &= ~(1 << INT3);
|
||||
break;
|
||||
case 0:
|
||||
EIMSK &= ~(1 << INT4);
|
||||
break;
|
||||
case 1:
|
||||
EIMSK &= ~(1 << INT5);
|
||||
break;
|
||||
case 6:
|
||||
EIMSK &= ~(1 << INT6);
|
||||
break;
|
||||
case 7:
|
||||
EIMSK &= ~(1 << INT7);
|
||||
break;
|
||||
#else
|
||||
case 0:
|
||||
#if defined(EIMSK) && defined(INT0)
|
||||
EIMSK &= ~(1 << INT0);
|
||||
#elif defined(GICR) && defined(ISC00)
|
||||
GICR &= ~(1 << INT0); // atmega32
|
||||
#elif defined(GIMSK) && defined(INT0)
|
||||
GIMSK &= ~(1 << INT0);
|
||||
#else
|
||||
#error detachInterrupt not finished for this cpu
|
||||
#endif
|
||||
break;
|
||||
|
||||
case 1:
|
||||
#if defined(EIMSK) && defined(INT1)
|
||||
EIMSK &= ~(1 << INT1);
|
||||
#elif defined(GICR) && defined(INT1)
|
||||
GICR &= ~(1 << INT1); // atmega32
|
||||
#elif defined(GIMSK) && defined(INT1)
|
||||
GIMSK &= ~(1 << INT1);
|
||||
#else
|
||||
#warning detachInterrupt may need some more work for this cpu (case 1)
|
||||
#endif
|
||||
break;
|
||||
|
||||
case 2:
|
||||
#if defined(EIMSK) && defined(INT2)
|
||||
EIMSK &= ~(1 << INT2);
|
||||
#elif defined(GICR) && defined(INT2)
|
||||
GICR &= ~(1 << INT2); // atmega32
|
||||
#elif defined(GIMSK) && defined(INT2)
|
||||
GIMSK &= ~(1 << INT2);
|
||||
#elif defined(INT2)
|
||||
#warning detachInterrupt may need some more work for this cpu (case 2)
|
||||
#endif
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
|
||||
intFunc[interruptNum] = nothing;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
void attachInterruptTwi(void (*userFunc)(void) ) {
|
||||
twiIntFunc = userFunc;
|
||||
}
|
||||
*/
|
||||
|
||||
#define IMPLEMENT_ISR(vect, interrupt) \
|
||||
ISR(vect) { \
|
||||
intFunc[interrupt](); \
|
||||
}
|
||||
|
||||
#if defined(__AVR_ATmega32U4__)
|
||||
|
||||
IMPLEMENT_ISR(INT0_vect, EXTERNAL_INT_0)
|
||||
IMPLEMENT_ISR(INT1_vect, EXTERNAL_INT_1)
|
||||
IMPLEMENT_ISR(INT2_vect, EXTERNAL_INT_2)
|
||||
IMPLEMENT_ISR(INT3_vect, EXTERNAL_INT_3)
|
||||
IMPLEMENT_ISR(INT6_vect, EXTERNAL_INT_4)
|
||||
|
||||
#elif defined(EICRA) && defined(EICRB)
|
||||
|
||||
IMPLEMENT_ISR(INT0_vect, EXTERNAL_INT_2)
|
||||
IMPLEMENT_ISR(INT1_vect, EXTERNAL_INT_3)
|
||||
IMPLEMENT_ISR(INT2_vect, EXTERNAL_INT_4)
|
||||
IMPLEMENT_ISR(INT3_vect, EXTERNAL_INT_5)
|
||||
IMPLEMENT_ISR(INT4_vect, EXTERNAL_INT_0)
|
||||
IMPLEMENT_ISR(INT5_vect, EXTERNAL_INT_1)
|
||||
IMPLEMENT_ISR(INT6_vect, EXTERNAL_INT_6)
|
||||
IMPLEMENT_ISR(INT7_vect, EXTERNAL_INT_7)
|
||||
|
||||
#else
|
||||
|
||||
IMPLEMENT_ISR(INT0_vect, EXTERNAL_INT_0)
|
||||
IMPLEMENT_ISR(INT1_vect, EXTERNAL_INT_1)
|
||||
|
||||
#if defined(EICRA) && defined(ISC20)
|
||||
IMPLEMENT_ISR(INT2_vect, EXTERNAL_INT_2)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
ISR(TWI_vect) {
|
||||
if(twiIntFunc)
|
||||
twiIntFunc();
|
||||
}
|
||||
*/
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
/* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */
|
||||
|
||||
/*
|
||||
Part of the Wiring project - http://wiring.org.co
|
||||
Copyright (c) 2004-06 Hernando Barragan
|
||||
Modified 13 August 2006, David A. Mellis for Arduino - http://www.arduino.cc/
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General
|
||||
Public License along with this library; if not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
extern "C" {
|
||||
#include "stdlib.h"
|
||||
}
|
||||
|
||||
void randomSeed(unsigned long seed)
|
||||
{
|
||||
if (seed != 0) {
|
||||
srandom(seed);
|
||||
}
|
||||
}
|
||||
|
||||
long random(long howbig)
|
||||
{
|
||||
if (howbig == 0) {
|
||||
return 0;
|
||||
}
|
||||
return random() % howbig;
|
||||
}
|
||||
|
||||
long random(long howsmall, long howbig)
|
||||
{
|
||||
if (howsmall >= howbig) {
|
||||
return howsmall;
|
||||
}
|
||||
long diff = howbig - howsmall;
|
||||
return random(diff) + howsmall;
|
||||
}
|
||||
|
||||
long map(long x, long in_min, long in_max, long out_min, long out_max)
|
||||
{
|
||||
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
|
||||
}
|
||||
|
||||
unsigned int makeWord(unsigned int w) { return w; }
|
||||
unsigned int makeWord(unsigned char h, unsigned char l) { return (h << 8) | l; }
|
|
@ -0,0 +1,750 @@
|
|||
/*
|
||||
WString.cpp - String library for Wiring & Arduino
|
||||
...mostly rewritten by Paul Stoffregen...
|
||||
Copyright (c) 2009-10 Hernando Barragan. All rights reserved.
|
||||
Copyright 2011, Paul Stoffregen, paul@pjrc.com
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "WString.h"
|
||||
|
||||
/*********************************************/
|
||||
/* Constructors */
|
||||
/*********************************************/
|
||||
|
||||
String::String(const char *cstr)
|
||||
{
|
||||
init();
|
||||
if (cstr) copy(cstr, strlen(cstr));
|
||||
}
|
||||
|
||||
String::String(const String &value)
|
||||
{
|
||||
init();
|
||||
*this = value;
|
||||
}
|
||||
|
||||
String::String(const __FlashStringHelper *pstr)
|
||||
{
|
||||
init();
|
||||
*this = pstr;
|
||||
}
|
||||
|
||||
#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
String::String(String &&rval)
|
||||
{
|
||||
init();
|
||||
move(rval);
|
||||
}
|
||||
String::String(StringSumHelper &&rval)
|
||||
{
|
||||
init();
|
||||
move(rval);
|
||||
}
|
||||
#endif
|
||||
|
||||
String::String(char c)
|
||||
{
|
||||
init();
|
||||
char buf[2];
|
||||
buf[0] = c;
|
||||
buf[1] = 0;
|
||||
*this = buf;
|
||||
}
|
||||
|
||||
String::String(unsigned char value, unsigned char base)
|
||||
{
|
||||
init();
|
||||
char buf[1 + 8 * sizeof(unsigned char)];
|
||||
utoa(value, buf, base);
|
||||
*this = buf;
|
||||
}
|
||||
|
||||
String::String(int value, unsigned char base)
|
||||
{
|
||||
init();
|
||||
char buf[2 + 8 * sizeof(int)];
|
||||
itoa(value, buf, base);
|
||||
*this = buf;
|
||||
}
|
||||
|
||||
String::String(unsigned int value, unsigned char base)
|
||||
{
|
||||
init();
|
||||
char buf[1 + 8 * sizeof(unsigned int)];
|
||||
utoa(value, buf, base);
|
||||
*this = buf;
|
||||
}
|
||||
|
||||
String::String(long value, unsigned char base)
|
||||
{
|
||||
init();
|
||||
char buf[2 + 8 * sizeof(long)];
|
||||
ltoa(value, buf, base);
|
||||
*this = buf;
|
||||
}
|
||||
|
||||
String::String(unsigned long value, unsigned char base)
|
||||
{
|
||||
init();
|
||||
char buf[1 + 8 * sizeof(unsigned long)];
|
||||
ultoa(value, buf, base);
|
||||
*this = buf;
|
||||
}
|
||||
|
||||
String::String(float value, unsigned char decimalPlaces)
|
||||
{
|
||||
init();
|
||||
char buf[33];
|
||||
*this = dtostrf(value, (decimalPlaces + 2), decimalPlaces, buf);
|
||||
}
|
||||
|
||||
String::String(double value, unsigned char decimalPlaces)
|
||||
{
|
||||
init();
|
||||
char buf[33];
|
||||
*this = dtostrf(value, (decimalPlaces + 2), decimalPlaces, buf);
|
||||
}
|
||||
|
||||
String::~String()
|
||||
{
|
||||
free(buffer);
|
||||
}
|
||||
|
||||
/*********************************************/
|
||||
/* Memory Management */
|
||||
/*********************************************/
|
||||
|
||||
inline void String::init(void)
|
||||
{
|
||||
buffer = NULL;
|
||||
capacity = 0;
|
||||
len = 0;
|
||||
}
|
||||
|
||||
void String::invalidate(void)
|
||||
{
|
||||
if (buffer) free(buffer);
|
||||
buffer = NULL;
|
||||
capacity = len = 0;
|
||||
}
|
||||
|
||||
unsigned char String::reserve(unsigned int size)
|
||||
{
|
||||
if (buffer && capacity >= size) return 1;
|
||||
if (changeBuffer(size)) {
|
||||
if (len == 0) buffer[0] = 0;
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned char String::changeBuffer(unsigned int maxStrLen)
|
||||
{
|
||||
char *newbuffer = (char *)realloc(buffer, maxStrLen + 1);
|
||||
if (newbuffer) {
|
||||
buffer = newbuffer;
|
||||
capacity = maxStrLen;
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*********************************************/
|
||||
/* Copy and Move */
|
||||
/*********************************************/
|
||||
|
||||
String & String::copy(const char *cstr, unsigned int length)
|
||||
{
|
||||
if (!reserve(length)) {
|
||||
invalidate();
|
||||
return *this;
|
||||
}
|
||||
len = length;
|
||||
strcpy(buffer, cstr);
|
||||
return *this;
|
||||
}
|
||||
|
||||
String & String::copy(const __FlashStringHelper *pstr, unsigned int length)
|
||||
{
|
||||
if (!reserve(length)) {
|
||||
invalidate();
|
||||
return *this;
|
||||
}
|
||||
len = length;
|
||||
strcpy_P(buffer, (PGM_P)pstr);
|
||||
return *this;
|
||||
}
|
||||
|
||||
#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
void String::move(String &rhs)
|
||||
{
|
||||
if (buffer) {
|
||||
if (rhs && capacity >= rhs.len) {
|
||||
strcpy(buffer, rhs.buffer);
|
||||
len = rhs.len;
|
||||
rhs.len = 0;
|
||||
return;
|
||||
} else {
|
||||
free(buffer);
|
||||
}
|
||||
}
|
||||
buffer = rhs.buffer;
|
||||
capacity = rhs.capacity;
|
||||
len = rhs.len;
|
||||
rhs.buffer = NULL;
|
||||
rhs.capacity = 0;
|
||||
rhs.len = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
String & String::operator = (const String &rhs)
|
||||
{
|
||||
if (this == &rhs) return *this;
|
||||
|
||||
if (rhs.buffer) copy(rhs.buffer, rhs.len);
|
||||
else invalidate();
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
String & String::operator = (String &&rval)
|
||||
{
|
||||
if (this != &rval) move(rval);
|
||||
return *this;
|
||||
}
|
||||
|
||||
String & String::operator = (StringSumHelper &&rval)
|
||||
{
|
||||
if (this != &rval) move(rval);
|
||||
return *this;
|
||||
}
|
||||
#endif
|
||||
|
||||
String & String::operator = (const char *cstr)
|
||||
{
|
||||
if (cstr) copy(cstr, strlen(cstr));
|
||||
else invalidate();
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
String & String::operator = (const __FlashStringHelper *pstr)
|
||||
{
|
||||
if (pstr) copy(pstr, strlen_P((PGM_P)pstr));
|
||||
else invalidate();
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
/*********************************************/
|
||||
/* concat */
|
||||
/*********************************************/
|
||||
|
||||
unsigned char String::concat(const String &s)
|
||||
{
|
||||
return concat(s.buffer, s.len);
|
||||
}
|
||||
|
||||
unsigned char String::concat(const char *cstr, unsigned int length)
|
||||
{
|
||||
unsigned int newlen = len + length;
|
||||
if (!cstr) return 0;
|
||||
if (length == 0) return 1;
|
||||
if (!reserve(newlen)) return 0;
|
||||
strcpy(buffer + len, cstr);
|
||||
len = newlen;
|
||||
return 1;
|
||||
}
|
||||
|
||||
unsigned char String::concat(const char *cstr)
|
||||
{
|
||||
if (!cstr) return 0;
|
||||
return concat(cstr, strlen(cstr));
|
||||
}
|
||||
|
||||
unsigned char String::concat(char c)
|
||||
{
|
||||
char buf[2];
|
||||
buf[0] = c;
|
||||
buf[1] = 0;
|
||||
return concat(buf, 1);
|
||||
}
|
||||
|
||||
unsigned char String::concat(unsigned char num)
|
||||
{
|
||||
char buf[1 + 3 * sizeof(unsigned char)];
|
||||
itoa(num, buf, 10);
|
||||
return concat(buf, strlen(buf));
|
||||
}
|
||||
|
||||
unsigned char String::concat(int num)
|
||||
{
|
||||
char buf[2 + 3 * sizeof(int)];
|
||||
itoa(num, buf, 10);
|
||||
return concat(buf, strlen(buf));
|
||||
}
|
||||
|
||||
unsigned char String::concat(unsigned int num)
|
||||
{
|
||||
char buf[1 + 3 * sizeof(unsigned int)];
|
||||
utoa(num, buf, 10);
|
||||
return concat(buf, strlen(buf));
|
||||
}
|
||||
|
||||
unsigned char String::concat(long num)
|
||||
{
|
||||
char buf[2 + 3 * sizeof(long)];
|
||||
ltoa(num, buf, 10);
|
||||
return concat(buf, strlen(buf));
|
||||
}
|
||||
|
||||
unsigned char String::concat(unsigned long num)
|
||||
{
|
||||
char buf[1 + 3 * sizeof(unsigned long)];
|
||||
ultoa(num, buf, 10);
|
||||
return concat(buf, strlen(buf));
|
||||
}
|
||||
|
||||
unsigned char String::concat(float num)
|
||||
{
|
||||
char buf[20];
|
||||
char* string = dtostrf(num, 4, 2, buf);
|
||||
return concat(string, strlen(string));
|
||||
}
|
||||
|
||||
unsigned char String::concat(double num)
|
||||
{
|
||||
char buf[20];
|
||||
char* string = dtostrf(num, 4, 2, buf);
|
||||
return concat(string, strlen(string));
|
||||
}
|
||||
|
||||
unsigned char String::concat(const __FlashStringHelper * str)
|
||||
{
|
||||
if (!str) return 0;
|
||||
int length = strlen_P((const char *) str);
|
||||
if (length == 0) return 1;
|
||||
unsigned int newlen = len + length;
|
||||
if (!reserve(newlen)) return 0;
|
||||
strcpy_P(buffer + len, (const char *) str);
|
||||
len = newlen;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*********************************************/
|
||||
/* Concatenate */
|
||||
/*********************************************/
|
||||
|
||||
StringSumHelper & operator + (const StringSumHelper &lhs, const String &rhs)
|
||||
{
|
||||
StringSumHelper &a = const_cast<StringSumHelper&>(lhs);
|
||||
if (!a.concat(rhs.buffer, rhs.len)) a.invalidate();
|
||||
return a;
|
||||
}
|
||||
|
||||
StringSumHelper & operator + (const StringSumHelper &lhs, const char *cstr)
|
||||
{
|
||||
StringSumHelper &a = const_cast<StringSumHelper&>(lhs);
|
||||
if (!cstr || !a.concat(cstr, strlen(cstr))) a.invalidate();
|
||||
return a;
|
||||
}
|
||||
|
||||
StringSumHelper & operator + (const StringSumHelper &lhs, char c)
|
||||
{
|
||||
StringSumHelper &a = const_cast<StringSumHelper&>(lhs);
|
||||
if (!a.concat(c)) a.invalidate();
|
||||
return a;
|
||||
}
|
||||
|
||||
StringSumHelper & operator + (const StringSumHelper &lhs, unsigned char num)
|
||||
{
|
||||
StringSumHelper &a = const_cast<StringSumHelper&>(lhs);
|
||||
if (!a.concat(num)) a.invalidate();
|
||||
return a;
|
||||
}
|
||||
|
||||
StringSumHelper & operator + (const StringSumHelper &lhs, int num)
|
||||
{
|
||||
StringSumHelper &a = const_cast<StringSumHelper&>(lhs);
|
||||
if (!a.concat(num)) a.invalidate();
|
||||
return a;
|
||||
}
|
||||
|
||||
StringSumHelper & operator + (const StringSumHelper &lhs, unsigned int num)
|
||||
{
|
||||
StringSumHelper &a = const_cast<StringSumHelper&>(lhs);
|
||||
if (!a.concat(num)) a.invalidate();
|
||||
return a;
|
||||
}
|
||||
|
||||
StringSumHelper & operator + (const StringSumHelper &lhs, long num)
|
||||
{
|
||||
StringSumHelper &a = const_cast<StringSumHelper&>(lhs);
|
||||
if (!a.concat(num)) a.invalidate();
|
||||
return a;
|
||||
}
|
||||
|
||||
StringSumHelper & operator + (const StringSumHelper &lhs, unsigned long num)
|
||||
{
|
||||
StringSumHelper &a = const_cast<StringSumHelper&>(lhs);
|
||||
if (!a.concat(num)) a.invalidate();
|
||||
return a;
|
||||
}
|
||||
|
||||
StringSumHelper & operator + (const StringSumHelper &lhs, float num)
|
||||
{
|
||||
StringSumHelper &a = const_cast<StringSumHelper&>(lhs);
|
||||
if (!a.concat(num)) a.invalidate();
|
||||
return a;
|
||||
}
|
||||
|
||||
StringSumHelper & operator + (const StringSumHelper &lhs, double num)
|
||||
{
|
||||
StringSumHelper &a = const_cast<StringSumHelper&>(lhs);
|
||||
if (!a.concat(num)) a.invalidate();
|
||||
return a;
|
||||
}
|
||||
|
||||
StringSumHelper & operator + (const StringSumHelper &lhs, const __FlashStringHelper *rhs)
|
||||
{
|
||||
StringSumHelper &a = const_cast<StringSumHelper&>(lhs);
|
||||
if (!a.concat(rhs)) a.invalidate();
|
||||
return a;
|
||||
}
|
||||
|
||||
/*********************************************/
|
||||
/* Comparison */
|
||||
/*********************************************/
|
||||
|
||||
int String::compareTo(const String &s) const
|
||||
{
|
||||
if (!buffer || !s.buffer) {
|
||||
if (s.buffer && s.len > 0) return 0 - *(unsigned char *)s.buffer;
|
||||
if (buffer && len > 0) return *(unsigned char *)buffer;
|
||||
return 0;
|
||||
}
|
||||
return strcmp(buffer, s.buffer);
|
||||
}
|
||||
|
||||
unsigned char String::equals(const String &s2) const
|
||||
{
|
||||
return (len == s2.len && compareTo(s2) == 0);
|
||||
}
|
||||
|
||||
unsigned char String::equals(const char *cstr) const
|
||||
{
|
||||
if (len == 0) return (cstr == NULL || *cstr == 0);
|
||||
if (cstr == NULL) return buffer[0] == 0;
|
||||
return strcmp(buffer, cstr) == 0;
|
||||
}
|
||||
|
||||
unsigned char String::operator<(const String &rhs) const
|
||||
{
|
||||
return compareTo(rhs) < 0;
|
||||
}
|
||||
|
||||
unsigned char String::operator>(const String &rhs) const
|
||||
{
|
||||
return compareTo(rhs) > 0;
|
||||
}
|
||||
|
||||
unsigned char String::operator<=(const String &rhs) const
|
||||
{
|
||||
return compareTo(rhs) <= 0;
|
||||
}
|
||||
|
||||
unsigned char String::operator>=(const String &rhs) const
|
||||
{
|
||||
return compareTo(rhs) >= 0;
|
||||
}
|
||||
|
||||
unsigned char String::equalsIgnoreCase( const String &s2 ) const
|
||||
{
|
||||
if (this == &s2) return 1;
|
||||
if (len != s2.len) return 0;
|
||||
if (len == 0) return 1;
|
||||
const char *p1 = buffer;
|
||||
const char *p2 = s2.buffer;
|
||||
while (*p1) {
|
||||
if (tolower(*p1++) != tolower(*p2++)) return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
unsigned char String::startsWith( const String &s2 ) const
|
||||
{
|
||||
if (len < s2.len) return 0;
|
||||
return startsWith(s2, 0);
|
||||
}
|
||||
|
||||
unsigned char String::startsWith( const String &s2, unsigned int offset ) const
|
||||
{
|
||||
if (offset > len - s2.len || !buffer || !s2.buffer) return 0;
|
||||
return strncmp( &buffer[offset], s2.buffer, s2.len ) == 0;
|
||||
}
|
||||
|
||||
unsigned char String::endsWith( const String &s2 ) const
|
||||
{
|
||||
if ( len < s2.len || !buffer || !s2.buffer) return 0;
|
||||
return strcmp(&buffer[len - s2.len], s2.buffer) == 0;
|
||||
}
|
||||
|
||||
/*********************************************/
|
||||
/* Character Access */
|
||||
/*********************************************/
|
||||
|
||||
char String::charAt(unsigned int loc) const
|
||||
{
|
||||
return operator[](loc);
|
||||
}
|
||||
|
||||
void String::setCharAt(unsigned int loc, char c)
|
||||
{
|
||||
if (loc < len) buffer[loc] = c;
|
||||
}
|
||||
|
||||
char & String::operator[](unsigned int index)
|
||||
{
|
||||
static char dummy_writable_char;
|
||||
if (index >= len || !buffer) {
|
||||
dummy_writable_char = 0;
|
||||
return dummy_writable_char;
|
||||
}
|
||||
return buffer[index];
|
||||
}
|
||||
|
||||
char String::operator[]( unsigned int index ) const
|
||||
{
|
||||
if (index >= len || !buffer) return 0;
|
||||
return buffer[index];
|
||||
}
|
||||
|
||||
void String::getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index) const
|
||||
{
|
||||
if (!bufsize || !buf) return;
|
||||
if (index >= len) {
|
||||
buf[0] = 0;
|
||||
return;
|
||||
}
|
||||
unsigned int n = bufsize - 1;
|
||||
if (n > len - index) n = len - index;
|
||||
strncpy((char *)buf, buffer + index, n);
|
||||
buf[n] = 0;
|
||||
}
|
||||
|
||||
/*********************************************/
|
||||
/* Search */
|
||||
/*********************************************/
|
||||
|
||||
int String::indexOf(char c) const
|
||||
{
|
||||
return indexOf(c, 0);
|
||||
}
|
||||
|
||||
int String::indexOf( char ch, unsigned int fromIndex ) const
|
||||
{
|
||||
if (fromIndex >= len) return -1;
|
||||
const char* temp = strchr(buffer + fromIndex, ch);
|
||||
if (temp == NULL) return -1;
|
||||
return temp - buffer;
|
||||
}
|
||||
|
||||
int String::indexOf(const String &s2) const
|
||||
{
|
||||
return indexOf(s2, 0);
|
||||
}
|
||||
|
||||
int String::indexOf(const String &s2, unsigned int fromIndex) const
|
||||
{
|
||||
if (fromIndex >= len) return -1;
|
||||
const char *found = strstr(buffer + fromIndex, s2.buffer);
|
||||
if (found == NULL) return -1;
|
||||
return found - buffer;
|
||||
}
|
||||
|
||||
int String::lastIndexOf( char theChar ) const
|
||||
{
|
||||
return lastIndexOf(theChar, len - 1);
|
||||
}
|
||||
|
||||
int String::lastIndexOf(char ch, unsigned int fromIndex) const
|
||||
{
|
||||
if (fromIndex >= len) return -1;
|
||||
char tempchar = buffer[fromIndex + 1];
|
||||
buffer[fromIndex + 1] = '\0';
|
||||
char* temp = strrchr( buffer, ch );
|
||||
buffer[fromIndex + 1] = tempchar;
|
||||
if (temp == NULL) return -1;
|
||||
return temp - buffer;
|
||||
}
|
||||
|
||||
int String::lastIndexOf(const String &s2) const
|
||||
{
|
||||
return lastIndexOf(s2, len - s2.len);
|
||||
}
|
||||
|
||||
int String::lastIndexOf(const String &s2, unsigned int fromIndex) const
|
||||
{
|
||||
if (s2.len == 0 || len == 0 || s2.len > len) return -1;
|
||||
if (fromIndex >= len) fromIndex = len - 1;
|
||||
int found = -1;
|
||||
for (char *p = buffer; p <= buffer + fromIndex; p++) {
|
||||
p = strstr(p, s2.buffer);
|
||||
if (!p) break;
|
||||
if ((unsigned int)(p - buffer) <= fromIndex) found = p - buffer;
|
||||
}
|
||||
return found;
|
||||
}
|
||||
|
||||
String String::substring(unsigned int left, unsigned int right) const
|
||||
{
|
||||
if (left > right) {
|
||||
unsigned int temp = right;
|
||||
right = left;
|
||||
left = temp;
|
||||
}
|
||||
String out;
|
||||
if (left >= len) return out;
|
||||
if (right > len) right = len;
|
||||
char temp = buffer[right]; // save the replaced character
|
||||
buffer[right] = '\0';
|
||||
out = buffer + left; // pointer arithmetic
|
||||
buffer[right] = temp; //restore character
|
||||
return out;
|
||||
}
|
||||
|
||||
/*********************************************/
|
||||
/* Modification */
|
||||
/*********************************************/
|
||||
|
||||
void String::replace(char find, char replace)
|
||||
{
|
||||
if (!buffer) return;
|
||||
for (char *p = buffer; *p; p++) {
|
||||
if (*p == find) *p = replace;
|
||||
}
|
||||
}
|
||||
|
||||
void String::replace(const String& find, const String& replace)
|
||||
{
|
||||
if (len == 0 || find.len == 0) return;
|
||||
int diff = replace.len - find.len;
|
||||
char *readFrom = buffer;
|
||||
char *foundAt;
|
||||
if (diff == 0) {
|
||||
while ((foundAt = strstr(readFrom, find.buffer)) != NULL) {
|
||||
memcpy(foundAt, replace.buffer, replace.len);
|
||||
readFrom = foundAt + replace.len;
|
||||
}
|
||||
} else if (diff < 0) {
|
||||
char *writeTo = buffer;
|
||||
while ((foundAt = strstr(readFrom, find.buffer)) != NULL) {
|
||||
unsigned int n = foundAt - readFrom;
|
||||
memcpy(writeTo, readFrom, n);
|
||||
writeTo += n;
|
||||
memcpy(writeTo, replace.buffer, replace.len);
|
||||
writeTo += replace.len;
|
||||
readFrom = foundAt + find.len;
|
||||
len += diff;
|
||||
}
|
||||
strcpy(writeTo, readFrom);
|
||||
} else {
|
||||
unsigned int size = len; // compute size needed for result
|
||||
while ((foundAt = strstr(readFrom, find.buffer)) != NULL) {
|
||||
readFrom = foundAt + find.len;
|
||||
size += diff;
|
||||
}
|
||||
if (size == len) return;
|
||||
if (size > capacity && !changeBuffer(size)) return; // XXX: tell user!
|
||||
int index = len - 1;
|
||||
while (index >= 0 && (index = lastIndexOf(find, index)) >= 0) {
|
||||
readFrom = buffer + index + find.len;
|
||||
memmove(readFrom + diff, readFrom, len - (readFrom - buffer));
|
||||
len += diff;
|
||||
buffer[len] = 0;
|
||||
memcpy(buffer + index, replace.buffer, replace.len);
|
||||
index--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void String::remove(unsigned int index){
|
||||
// Pass the biggest integer as the count. The remove method
|
||||
// below will take care of truncating it at the end of the
|
||||
// string.
|
||||
remove(index, (unsigned int)-1);
|
||||
}
|
||||
|
||||
void String::remove(unsigned int index, unsigned int count){
|
||||
if (index >= len) { return; }
|
||||
if (count <= 0) { return; }
|
||||
if (count > len - index) { count = len - index; }
|
||||
char *writeTo = buffer + index;
|
||||
len = len - count;
|
||||
strncpy(writeTo, buffer + index + count,len - index);
|
||||
buffer[len] = 0;
|
||||
}
|
||||
|
||||
void String::toLowerCase(void)
|
||||
{
|
||||
if (!buffer) return;
|
||||
for (char *p = buffer; *p; p++) {
|
||||
*p = tolower(*p);
|
||||
}
|
||||
}
|
||||
|
||||
void String::toUpperCase(void)
|
||||
{
|
||||
if (!buffer) return;
|
||||
for (char *p = buffer; *p; p++) {
|
||||
*p = toupper(*p);
|
||||
}
|
||||
}
|
||||
|
||||
void String::trim(void)
|
||||
{
|
||||
if (!buffer || len == 0) return;
|
||||
char *begin = buffer;
|
||||
while (isspace(*begin)) begin++;
|
||||
char *end = buffer + len - 1;
|
||||
while (isspace(*end) && end >= begin) end--;
|
||||
len = end + 1 - begin;
|
||||
if (begin > buffer) memcpy(buffer, begin, len);
|
||||
buffer[len] = 0;
|
||||
}
|
||||
|
||||
/*********************************************/
|
||||
/* Parsing / Conversion */
|
||||
/*********************************************/
|
||||
|
||||
long String::toInt(void) const
|
||||
{
|
||||
if (buffer) return atol(buffer);
|
||||
return 0;
|
||||
}
|
||||
|
||||
float String::toFloat(void) const
|
||||
{
|
||||
return float(toDouble());
|
||||
}
|
||||
|
||||
double String::toDouble(void) const
|
||||
{
|
||||
if (buffer) return atof(buffer);
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,229 @@
|
|||
/*
|
||||
WString.h - String library for Wiring & Arduino
|
||||
...mostly rewritten by Paul Stoffregen...
|
||||
Copyright (c) 2009-10 Hernando Barragan. All right reserved.
|
||||
Copyright 2011, Paul Stoffregen, paul@pjrc.com
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef String_class_h
|
||||
#define String_class_h
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <avr/pgmspace.h>
|
||||
|
||||
// When compiling programs with this class, the following gcc parameters
|
||||
// dramatically increase performance and memory (RAM) efficiency, typically
|
||||
// with little or no increase in code size.
|
||||
// -felide-constructors
|
||||
// -std=c++0x
|
||||
|
||||
class __FlashStringHelper;
|
||||
#define F(string_literal) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal)))
|
||||
|
||||
// An inherited class for holding the result of a concatenation. These
|
||||
// result objects are assumed to be writable by subsequent concatenations.
|
||||
class StringSumHelper;
|
||||
|
||||
// The string class
|
||||
class String
|
||||
{
|
||||
// use a function pointer to allow for "if (s)" without the
|
||||
// complications of an operator bool(). for more information, see:
|
||||
// http://www.artima.com/cppsource/safebool.html
|
||||
typedef void (String::*StringIfHelperType)() const;
|
||||
void StringIfHelper() const {}
|
||||
|
||||
public:
|
||||
// constructors
|
||||
// creates a copy of the initial value.
|
||||
// if the initial value is null or invalid, or if memory allocation
|
||||
// fails, the string will be marked as invalid (i.e. "if (s)" will
|
||||
// be false).
|
||||
String(const char *cstr = "");
|
||||
String(const String &str);
|
||||
String(const __FlashStringHelper *str);
|
||||
#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
String(String &&rval);
|
||||
String(StringSumHelper &&rval);
|
||||
#endif
|
||||
explicit String(char c);
|
||||
explicit String(unsigned char, unsigned char base=10);
|
||||
explicit String(int, unsigned char base=10);
|
||||
explicit String(unsigned int, unsigned char base=10);
|
||||
explicit String(long, unsigned char base=10);
|
||||
explicit String(unsigned long, unsigned char base=10);
|
||||
explicit String(float, unsigned char decimalPlaces=2);
|
||||
explicit String(double, unsigned char decimalPlaces=2);
|
||||
~String(void);
|
||||
|
||||
// memory management
|
||||
// return true on success, false on failure (in which case, the string
|
||||
// is left unchanged). reserve(0), if successful, will validate an
|
||||
// invalid string (i.e., "if (s)" will be true afterwards)
|
||||
unsigned char reserve(unsigned int size);
|
||||
inline unsigned int length(void) const {return len;}
|
||||
|
||||
// creates a copy of the assigned value. if the value is null or
|
||||
// invalid, or if the memory allocation fails, the string will be
|
||||
// marked as invalid ("if (s)" will be false).
|
||||
String & operator = (const String &rhs);
|
||||
String & operator = (const char *cstr);
|
||||
String & operator = (const __FlashStringHelper *str);
|
||||
#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
String & operator = (String &&rval);
|
||||
String & operator = (StringSumHelper &&rval);
|
||||
#endif
|
||||
|
||||
// concatenate (works w/ built-in types)
|
||||
|
||||
// returns true on success, false on failure (in which case, the string
|
||||
// is left unchanged). if the argument is null or invalid, the
|
||||
// concatenation is considered unsucessful.
|
||||
unsigned char concat(const String &str);
|
||||
unsigned char concat(const char *cstr);
|
||||
unsigned char concat(char c);
|
||||
unsigned char concat(unsigned char c);
|
||||
unsigned char concat(int num);
|
||||
unsigned char concat(unsigned int num);
|
||||
unsigned char concat(long num);
|
||||
unsigned char concat(unsigned long num);
|
||||
unsigned char concat(float num);
|
||||
unsigned char concat(double num);
|
||||
unsigned char concat(const __FlashStringHelper * str);
|
||||
|
||||
// if there's not enough memory for the concatenated value, the string
|
||||
// will be left unchanged (but this isn't signalled in any way)
|
||||
String & operator += (const String &rhs) {concat(rhs); return (*this);}
|
||||
String & operator += (const char *cstr) {concat(cstr); return (*this);}
|
||||
String & operator += (char c) {concat(c); return (*this);}
|
||||
String & operator += (unsigned char num) {concat(num); return (*this);}
|
||||
String & operator += (int num) {concat(num); return (*this);}
|
||||
String & operator += (unsigned int num) {concat(num); return (*this);}
|
||||
String & operator += (long num) {concat(num); return (*this);}
|
||||
String & operator += (unsigned long num) {concat(num); return (*this);}
|
||||
String & operator += (float num) {concat(num); return (*this);}
|
||||
String & operator += (double num) {concat(num); return (*this);}
|
||||
String & operator += (const __FlashStringHelper *str){concat(str); return (*this);}
|
||||
|
||||
friend StringSumHelper & operator + (const StringSumHelper &lhs, const String &rhs);
|
||||
friend StringSumHelper & operator + (const StringSumHelper &lhs, const char *cstr);
|
||||
friend StringSumHelper & operator + (const StringSumHelper &lhs, char c);
|
||||
friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned char num);
|
||||
friend StringSumHelper & operator + (const StringSumHelper &lhs, int num);
|
||||
friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned int num);
|
||||
friend StringSumHelper & operator + (const StringSumHelper &lhs, long num);
|
||||
friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned long num);
|
||||
friend StringSumHelper & operator + (const StringSumHelper &lhs, float num);
|
||||
friend StringSumHelper & operator + (const StringSumHelper &lhs, double num);
|
||||
friend StringSumHelper & operator + (const StringSumHelper &lhs, const __FlashStringHelper *rhs);
|
||||
|
||||
// comparison (only works w/ Strings and "strings")
|
||||
operator StringIfHelperType() const { return buffer ? &String::StringIfHelper : 0; }
|
||||
int compareTo(const String &s) const;
|
||||
unsigned char equals(const String &s) const;
|
||||
unsigned char equals(const char *cstr) const;
|
||||
unsigned char operator == (const String &rhs) const {return equals(rhs);}
|
||||
unsigned char operator == (const char *cstr) const {return equals(cstr);}
|
||||
unsigned char operator != (const String &rhs) const {return !equals(rhs);}
|
||||
unsigned char operator != (const char *cstr) const {return !equals(cstr);}
|
||||
unsigned char operator < (const String &rhs) const;
|
||||
unsigned char operator > (const String &rhs) const;
|
||||
unsigned char operator <= (const String &rhs) const;
|
||||
unsigned char operator >= (const String &rhs) const;
|
||||
unsigned char equalsIgnoreCase(const String &s) const;
|
||||
unsigned char startsWith( const String &prefix) const;
|
||||
unsigned char startsWith(const String &prefix, unsigned int offset) const;
|
||||
unsigned char endsWith(const String &suffix) const;
|
||||
|
||||
// character acccess
|
||||
char charAt(unsigned int index) const;
|
||||
void setCharAt(unsigned int index, char c);
|
||||
char operator [] (unsigned int index) const;
|
||||
char& operator [] (unsigned int index);
|
||||
void getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index=0) const;
|
||||
void toCharArray(char *buf, unsigned int bufsize, unsigned int index=0) const
|
||||
{ getBytes((unsigned char *)buf, bufsize, index); }
|
||||
const char* c_str() const { return buffer; }
|
||||
char* begin() { return buffer; }
|
||||
char* end() { return buffer + length(); }
|
||||
const char* begin() const { return c_str(); }
|
||||
const char* end() const { return c_str() + length(); }
|
||||
|
||||
// search
|
||||
int indexOf( char ch ) const;
|
||||
int indexOf( char ch, unsigned int fromIndex ) const;
|
||||
int indexOf( const String &str ) const;
|
||||
int indexOf( const String &str, unsigned int fromIndex ) const;
|
||||
int lastIndexOf( char ch ) const;
|
||||
int lastIndexOf( char ch, unsigned int fromIndex ) const;
|
||||
int lastIndexOf( const String &str ) const;
|
||||
int lastIndexOf( const String &str, unsigned int fromIndex ) const;
|
||||
String substring( unsigned int beginIndex ) const { return substring(beginIndex, len); };
|
||||
String substring( unsigned int beginIndex, unsigned int endIndex ) const;
|
||||
|
||||
// modification
|
||||
void replace(char find, char replace);
|
||||
void replace(const String& find, const String& replace);
|
||||
void remove(unsigned int index);
|
||||
void remove(unsigned int index, unsigned int count);
|
||||
void toLowerCase(void);
|
||||
void toUpperCase(void);
|
||||
void trim(void);
|
||||
|
||||
// parsing/conversion
|
||||
long toInt(void) const;
|
||||
float toFloat(void) const;
|
||||
double toDouble(void) const;
|
||||
|
||||
protected:
|
||||
char *buffer; // the actual char array
|
||||
unsigned int capacity; // the array length minus one (for the '\0')
|
||||
unsigned int len; // the String length (not counting the '\0')
|
||||
protected:
|
||||
void init(void);
|
||||
void invalidate(void);
|
||||
unsigned char changeBuffer(unsigned int maxStrLen);
|
||||
unsigned char concat(const char *cstr, unsigned int length);
|
||||
|
||||
// copy and move
|
||||
String & copy(const char *cstr, unsigned int length);
|
||||
String & copy(const __FlashStringHelper *pstr, unsigned int length);
|
||||
#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
void move(String &rhs);
|
||||
#endif
|
||||
};
|
||||
|
||||
class StringSumHelper : public String
|
||||
{
|
||||
public:
|
||||
StringSumHelper(const String &s) : String(s) {}
|
||||
StringSumHelper(const char *p) : String(p) {}
|
||||
StringSumHelper(char c) : String(c) {}
|
||||
StringSumHelper(unsigned char num) : String(num) {}
|
||||
StringSumHelper(int num) : String(num) {}
|
||||
StringSumHelper(unsigned int num) : String(num) {}
|
||||
StringSumHelper(long num) : String(num) {}
|
||||
StringSumHelper(unsigned long num) : String(num) {}
|
||||
StringSumHelper(float num) : String(num) {}
|
||||
StringSumHelper(double num) : String(num) {}
|
||||
};
|
||||
|
||||
#endif // __cplusplus
|
||||
#endif // String_class_h
|
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
Copyright (c) 2014 Arduino. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
See the GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
extern "C" void __cxa_pure_virtual(void) __attribute__ ((__naked__));
|
||||
extern "C" void __cxa_deleted_virtual(void) __attribute__ ((__naked__));
|
||||
|
||||
void __cxa_pure_virtual(void) {
|
||||
// We might want to write some diagnostics to uart in this case
|
||||
//std::terminate();
|
||||
//abort();
|
||||
}
|
||||
|
||||
void __cxa_deleted_virtual(void) {
|
||||
// We might want to write some diagnostics to uart in this case
|
||||
//std::terminate();
|
||||
//abort();
|
||||
}
|
||||
|
|
@ -0,0 +1,534 @@
|
|||
/*
|
||||
binary.h - Definitions for binary constants
|
||||
Copyright (c) 2006 David A. Mellis. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef Binary_h
|
||||
#define Binary_h
|
||||
|
||||
#define B0 0
|
||||
#define B00 0
|
||||
#define B000 0
|
||||
#define B0000 0
|
||||
#define B00000 0
|
||||
#define B000000 0
|
||||
#define B0000000 0
|
||||
#define B00000000 0
|
||||
#define B1 1
|
||||
#define B01 1
|
||||
#define B001 1
|
||||
#define B0001 1
|
||||
#define B00001 1
|
||||
#define B000001 1
|
||||
#define B0000001 1
|
||||
#define B00000001 1
|
||||
#define B10 2
|
||||
#define B010 2
|
||||
#define B0010 2
|
||||
#define B00010 2
|
||||
#define B000010 2
|
||||
#define B0000010 2
|
||||
#define B00000010 2
|
||||
#define B11 3
|
||||
#define B011 3
|
||||
#define B0011 3
|
||||
#define B00011 3
|
||||
#define B000011 3
|
||||
#define B0000011 3
|
||||
#define B00000011 3
|
||||
#define B100 4
|
||||
#define B0100 4
|
||||
#define B00100 4
|
||||
#define B000100 4
|
||||
#define B0000100 4
|
||||
#define B00000100 4
|
||||
#define B101 5
|
||||
#define B0101 5
|
||||
#define B00101 5
|
||||
#define B000101 5
|
||||
#define B0000101 5
|
||||
#define B00000101 5
|
||||
#define B110 6
|
||||
#define B0110 6
|
||||
#define B00110 6
|
||||
#define B000110 6
|
||||
#define B0000110 6
|
||||
#define B00000110 6
|
||||
#define B111 7
|
||||
#define B0111 7
|
||||
#define B00111 7
|
||||
#define B000111 7
|
||||
#define B0000111 7
|
||||
#define B00000111 7
|
||||
#define B1000 8
|
||||
#define B01000 8
|
||||
#define B001000 8
|
||||
#define B0001000 8
|
||||
#define B00001000 8
|
||||
#define B1001 9
|
||||
#define B01001 9
|
||||
#define B001001 9
|
||||
#define B0001001 9
|
||||
#define B00001001 9
|
||||
#define B1010 10
|
||||
#define B01010 10
|
||||
#define B001010 10
|
||||
#define B0001010 10
|
||||
#define B00001010 10
|
||||
#define B1011 11
|
||||
#define B01011 11
|
||||
#define B001011 11
|
||||
#define B0001011 11
|
||||
#define B00001011 11
|
||||
#define B1100 12
|
||||
#define B01100 12
|
||||
#define B001100 12
|
||||
#define B0001100 12
|
||||
#define B00001100 12
|
||||
#define B1101 13
|
||||
#define B01101 13
|
||||
#define B001101 13
|
||||
#define B0001101 13
|
||||
#define B00001101 13
|
||||
#define B1110 14
|
||||
#define B01110 14
|
||||
#define B001110 14
|
||||
#define B0001110 14
|
||||
#define B00001110 14
|
||||
#define B1111 15
|
||||
#define B01111 15
|
||||
#define B001111 15
|
||||
#define B0001111 15
|
||||
#define B00001111 15
|
||||
#define B10000 16
|
||||
#define B010000 16
|
||||
#define B0010000 16
|
||||
#define B00010000 16
|
||||
#define B10001 17
|
||||
#define B010001 17
|
||||
#define B0010001 17
|
||||
#define B00010001 17
|
||||
#define B10010 18
|
||||
#define B010010 18
|
||||
#define B0010010 18
|
||||
#define B00010010 18
|
||||
#define B10011 19
|
||||
#define B010011 19
|
||||
#define B0010011 19
|
||||
#define B00010011 19
|
||||
#define B10100 20
|
||||
#define B010100 20
|
||||
#define B0010100 20
|
||||
#define B00010100 20
|
||||
#define B10101 21
|
||||
#define B010101 21
|
||||
#define B0010101 21
|
||||
#define B00010101 21
|
||||
#define B10110 22
|
||||
#define B010110 22
|
||||
#define B0010110 22
|
||||
#define B00010110 22
|
||||
#define B10111 23
|
||||
#define B010111 23
|
||||
#define B0010111 23
|
||||
#define B00010111 23
|
||||
#define B11000 24
|
||||
#define B011000 24
|
||||
#define B0011000 24
|
||||
#define B00011000 24
|
||||
#define B11001 25
|
||||
#define B011001 25
|
||||
#define B0011001 25
|
||||
#define B00011001 25
|
||||
#define B11010 26
|
||||
#define B011010 26
|
||||
#define B0011010 26
|
||||
#define B00011010 26
|
||||
#define B11011 27
|
||||
#define B011011 27
|
||||
#define B0011011 27
|
||||
#define B00011011 27
|
||||
#define B11100 28
|
||||
#define B011100 28
|
||||
#define B0011100 28
|
||||
#define B00011100 28
|
||||
#define B11101 29
|
||||
#define B011101 29
|
||||
#define B0011101 29
|
||||
#define B00011101 29
|
||||
#define B11110 30
|
||||
#define B011110 30
|
||||
#define B0011110 30
|
||||
#define B00011110 30
|
||||
#define B11111 31
|
||||
#define B011111 31
|
||||
#define B0011111 31
|
||||
#define B00011111 31
|
||||
#define B100000 32
|
||||
#define B0100000 32
|
||||
#define B00100000 32
|
||||
#define B100001 33
|
||||
#define B0100001 33
|
||||
#define B00100001 33
|
||||
#define B100010 34
|
||||
#define B0100010 34
|
||||
#define B00100010 34
|
||||
#define B100011 35
|
||||
#define B0100011 35
|
||||
#define B00100011 35
|
||||
#define B100100 36
|
||||
#define B0100100 36
|
||||
#define B00100100 36
|
||||
#define B100101 37
|
||||
#define B0100101 37
|
||||
#define B00100101 37
|
||||
#define B100110 38
|
||||
#define B0100110 38
|
||||
#define B00100110 38
|
||||
#define B100111 39
|
||||
#define B0100111 39
|
||||
#define B00100111 39
|
||||
#define B101000 40
|
||||
#define B0101000 40
|
||||
#define B00101000 40
|
||||
#define B101001 41
|
||||
#define B0101001 41
|
||||
#define B00101001 41
|
||||
#define B101010 42
|
||||
#define B0101010 42
|
||||
#define B00101010 42
|
||||
#define B101011 43
|
||||
#define B0101011 43
|
||||
#define B00101011 43
|
||||
#define B101100 44
|
||||
#define B0101100 44
|
||||
#define B00101100 44
|
||||
#define B101101 45
|
||||
#define B0101101 45
|
||||
#define B00101101 45
|
||||
#define B101110 46
|
||||
#define B0101110 46
|
||||
#define B00101110 46
|
||||
#define B101111 47
|
||||
#define B0101111 47
|
||||
#define B00101111 47
|
||||
#define B110000 48
|
||||
#define B0110000 48
|
||||
#define B00110000 48
|
||||
#define B110001 49
|
||||
#define B0110001 49
|
||||
#define B00110001 49
|
||||
#define B110010 50
|
||||
#define B0110010 50
|
||||
#define B00110010 50
|
||||
#define B110011 51
|
||||
#define B0110011 51
|
||||
#define B00110011 51
|
||||
#define B110100 52
|
||||
#define B0110100 52
|
||||
#define B00110100 52
|
||||
#define B110101 53
|
||||
#define B0110101 53
|
||||
#define B00110101 53
|
||||
#define B110110 54
|
||||
#define B0110110 54
|
||||
#define B00110110 54
|
||||
#define B110111 55
|
||||
#define B0110111 55
|
||||
#define B00110111 55
|
||||
#define B111000 56
|
||||
#define B0111000 56
|
||||
#define B00111000 56
|
||||
#define B111001 57
|
||||
#define B0111001 57
|
||||
#define B00111001 57
|
||||
#define B111010 58
|
||||
#define B0111010 58
|
||||
#define B00111010 58
|
||||
#define B111011 59
|
||||
#define B0111011 59
|
||||
#define B00111011 59
|
||||
#define B111100 60
|
||||
#define B0111100 60
|
||||
#define B00111100 60
|
||||
#define B111101 61
|
||||
#define B0111101 61
|
||||
#define B00111101 61
|
||||
#define B111110 62
|
||||
#define B0111110 62
|
||||
#define B00111110 62
|
||||
#define B111111 63
|
||||
#define B0111111 63
|
||||
#define B00111111 63
|
||||
#define B1000000 64
|
||||
#define B01000000 64
|
||||
#define B1000001 65
|
||||
#define B01000001 65
|
||||
#define B1000010 66
|
||||
#define B01000010 66
|
||||
#define B1000011 67
|
||||
#define B01000011 67
|
||||
#define B1000100 68
|
||||
#define B01000100 68
|
||||
#define B1000101 69
|
||||
#define B01000101 69
|
||||
#define B1000110 70
|
||||
#define B01000110 70
|
||||
#define B1000111 71
|
||||
#define B01000111 71
|
||||
#define B1001000 72
|
||||
#define B01001000 72
|
||||
#define B1001001 73
|
||||
#define B01001001 73
|
||||
#define B1001010 74
|
||||
#define B01001010 74
|
||||
#define B1001011 75
|
||||
#define B01001011 75
|
||||
#define B1001100 76
|
||||
#define B01001100 76
|
||||
#define B1001101 77
|
||||
#define B01001101 77
|
||||
#define B1001110 78
|
||||
#define B01001110 78
|
||||
#define B1001111 79
|
||||
#define B01001111 79
|
||||
#define B1010000 80
|
||||
#define B01010000 80
|
||||
#define B1010001 81
|
||||
#define B01010001 81
|
||||
#define B1010010 82
|
||||
#define B01010010 82
|
||||
#define B1010011 83
|
||||
#define B01010011 83
|
||||
#define B1010100 84
|
||||
#define B01010100 84
|
||||
#define B1010101 85
|
||||
#define B01010101 85
|
||||
#define B1010110 86
|
||||
#define B01010110 86
|
||||
#define B1010111 87
|
||||
#define B01010111 87
|
||||
#define B1011000 88
|
||||
#define B01011000 88
|
||||
#define B1011001 89
|
||||
#define B01011001 89
|
||||
#define B1011010 90
|
||||
#define B01011010 90
|
||||
#define B1011011 91
|
||||
#define B01011011 91
|
||||
#define B1011100 92
|
||||
#define B01011100 92
|
||||
#define B1011101 93
|
||||
#define B01011101 93
|
||||
#define B1011110 94
|
||||
#define B01011110 94
|
||||
#define B1011111 95
|
||||
#define B01011111 95
|
||||
#define B1100000 96
|
||||
#define B01100000 96
|
||||
#define B1100001 97
|
||||
#define B01100001 97
|
||||
#define B1100010 98
|
||||
#define B01100010 98
|
||||
#define B1100011 99
|
||||
#define B01100011 99
|
||||
#define B1100100 100
|
||||
#define B01100100 100
|
||||
#define B1100101 101
|
||||
#define B01100101 101
|
||||
#define B1100110 102
|
||||
#define B01100110 102
|
||||
#define B1100111 103
|
||||
#define B01100111 103
|
||||
#define B1101000 104
|
||||
#define B01101000 104
|
||||
#define B1101001 105
|
||||
#define B01101001 105
|
||||
#define B1101010 106
|
||||
#define B01101010 106
|
||||
#define B1101011 107
|
||||
#define B01101011 107
|
||||
#define B1101100 108
|
||||
#define B01101100 108
|
||||
#define B1101101 109
|
||||
#define B01101101 109
|
||||
#define B1101110 110
|
||||
#define B01101110 110
|
||||
#define B1101111 111
|
||||
#define B01101111 111
|
||||
#define B1110000 112
|
||||
#define B01110000 112
|
||||
#define B1110001 113
|
||||
#define B01110001 113
|
||||
#define B1110010 114
|
||||
#define B01110010 114
|
||||
#define B1110011 115
|
||||
#define B01110011 115
|
||||
#define B1110100 116
|
||||
#define B01110100 116
|
||||
#define B1110101 117
|
||||
#define B01110101 117
|
||||
#define B1110110 118
|
||||
#define B01110110 118
|
||||
#define B1110111 119
|
||||
#define B01110111 119
|
||||
#define B1111000 120
|
||||
#define B01111000 120
|
||||
#define B1111001 121
|
||||
#define B01111001 121
|
||||
#define B1111010 122
|
||||
#define B01111010 122
|
||||
#define B1111011 123
|
||||
#define B01111011 123
|
||||
#define B1111100 124
|
||||
#define B01111100 124
|
||||
#define B1111101 125
|
||||
#define B01111101 125
|
||||
#define B1111110 126
|
||||
#define B01111110 126
|
||||
#define B1111111 127
|
||||
#define B01111111 127
|
||||
#define B10000000 128
|
||||
#define B10000001 129
|
||||
#define B10000010 130
|
||||
#define B10000011 131
|
||||
#define B10000100 132
|
||||
#define B10000101 133
|
||||
#define B10000110 134
|
||||
#define B10000111 135
|
||||
#define B10001000 136
|
||||
#define B10001001 137
|
||||
#define B10001010 138
|
||||
#define B10001011 139
|
||||
#define B10001100 140
|
||||
#define B10001101 141
|
||||
#define B10001110 142
|
||||
#define B10001111 143
|
||||
#define B10010000 144
|
||||
#define B10010001 145
|
||||
#define B10010010 146
|
||||
#define B10010011 147
|
||||
#define B10010100 148
|
||||
#define B10010101 149
|
||||
#define B10010110 150
|
||||
#define B10010111 151
|
||||
#define B10011000 152
|
||||
#define B10011001 153
|
||||
#define B10011010 154
|
||||
#define B10011011 155
|
||||
#define B10011100 156
|
||||
#define B10011101 157
|
||||
#define B10011110 158
|
||||
#define B10011111 159
|
||||
#define B10100000 160
|
||||
#define B10100001 161
|
||||
#define B10100010 162
|
||||
#define B10100011 163
|
||||
#define B10100100 164
|
||||
#define B10100101 165
|
||||
#define B10100110 166
|
||||
#define B10100111 167
|
||||
#define B10101000 168
|
||||
#define B10101001 169
|
||||
#define B10101010 170
|
||||
#define B10101011 171
|
||||
#define B10101100 172
|
||||
#define B10101101 173
|
||||
#define B10101110 174
|
||||
#define B10101111 175
|
||||
#define B10110000 176
|
||||
#define B10110001 177
|
||||
#define B10110010 178
|
||||
#define B10110011 179
|
||||
#define B10110100 180
|
||||
#define B10110101 181
|
||||
#define B10110110 182
|
||||
#define B10110111 183
|
||||
#define B10111000 184
|
||||
#define B10111001 185
|
||||
#define B10111010 186
|
||||
#define B10111011 187
|
||||
#define B10111100 188
|
||||
#define B10111101 189
|
||||
#define B10111110 190
|
||||
#define B10111111 191
|
||||
#define B11000000 192
|
||||
#define B11000001 193
|
||||
#define B11000010 194
|
||||
#define B11000011 195
|
||||
#define B11000100 196
|
||||
#define B11000101 197
|
||||
#define B11000110 198
|
||||
#define B11000111 199
|
||||
#define B11001000 200
|
||||
#define B11001001 201
|
||||
#define B11001010 202
|
||||
#define B11001011 203
|
||||
#define B11001100 204
|
||||
#define B11001101 205
|
||||
#define B11001110 206
|
||||
#define B11001111 207
|
||||
#define B11010000 208
|
||||
#define B11010001 209
|
||||
#define B11010010 210
|
||||
#define B11010011 211
|
||||
#define B11010100 212
|
||||
#define B11010101 213
|
||||
#define B11010110 214
|
||||
#define B11010111 215
|
||||
#define B11011000 216
|
||||
#define B11011001 217
|
||||
#define B11011010 218
|
||||
#define B11011011 219
|
||||
#define B11011100 220
|
||||
#define B11011101 221
|
||||
#define B11011110 222
|
||||
#define B11011111 223
|
||||
#define B11100000 224
|
||||
#define B11100001 225
|
||||
#define B11100010 226
|
||||
#define B11100011 227
|
||||
#define B11100100 228
|
||||
#define B11100101 229
|
||||
#define B11100110 230
|
||||
#define B11100111 231
|
||||
#define B11101000 232
|
||||
#define B11101001 233
|
||||
#define B11101010 234
|
||||
#define B11101011 235
|
||||
#define B11101100 236
|
||||
#define B11101101 237
|
||||
#define B11101110 238
|
||||
#define B11101111 239
|
||||
#define B11110000 240
|
||||
#define B11110001 241
|
||||
#define B11110010 242
|
||||
#define B11110011 243
|
||||
#define B11110100 244
|
||||
#define B11110101 245
|
||||
#define B11110110 246
|
||||
#define B11110111 247
|
||||
#define B11111000 248
|
||||
#define B11111001 249
|
||||
#define B11111010 250
|
||||
#define B11111011 251
|
||||
#define B11111100 252
|
||||
#define B11111101 253
|
||||
#define B11111110 254
|
||||
#define B11111111 255
|
||||
|
||||
#endif
|
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
Copyright (c) 2012 Arduino. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
See the GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/**
|
||||
* Empty yield() hook.
|
||||
*
|
||||
* This function is intended to be used by library writers to build
|
||||
* libraries or sketches that supports cooperative threads.
|
||||
*
|
||||
* Its defined as a weak symbol and it can be redefined to implement a
|
||||
* real cooperative scheduler.
|
||||
*/
|
||||
static void __empty() {
|
||||
// Empty
|
||||
}
|
||||
void yield(void) __attribute__ ((weak, alias("__empty")));
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
main.cpp - Main loop for Arduino sketches
|
||||
Copyright (c) 2005-2013 Arduino Team. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
// Declared weak in Arduino.h to allow user redefinitions.
|
||||
int atexit(void (* /*func*/ )()) { return 0; }
|
||||
|
||||
// Weak empty variant initialization function.
|
||||
// May be redefined by variant files.
|
||||
void initVariant() __attribute__((weak));
|
||||
void initVariant() { }
|
||||
|
||||
void setupUSB() __attribute__((weak));
|
||||
void setupUSB() { }
|
||||
|
||||
int __attribute__ ((OS_main)) main(void)
|
||||
{
|
||||
init();
|
||||
|
||||
initVariant();
|
||||
|
||||
#if defined(USBCON)
|
||||
USBDevice.attach();
|
||||
#endif
|
||||
|
||||
setup();
|
||||
|
||||
for (;;) {
|
||||
loop();
|
||||
if (serialEventRun) serialEventRun();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
Copyright (c) 2014 Arduino. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
See the GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
void *operator new(size_t size) {
|
||||
return malloc(size);
|
||||
}
|
||||
|
||||
void *operator new[](size_t size) {
|
||||
return malloc(size);
|
||||
}
|
||||
|
||||
void operator delete(void * ptr) {
|
||||
free(ptr);
|
||||
}
|
||||
|
||||
void operator delete[](void * ptr) {
|
||||
free(ptr);
|
||||
}
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
Copyright (c) 2014 Arduino. All right reserved.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
See the GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef NEW_H
|
||||
#define NEW_H
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
void * operator new(size_t size);
|
||||
void * operator new[](size_t size);
|
||||
void operator delete(void * ptr);
|
||||
void operator delete[](void * ptr);
|
||||
|
||||
#endif
|
||||
|
|
@ -0,0 +1,854 @@
|
|||
/*
|
||||
wiring.c - Partial implementation of the Wiring API for the ATmega8.
|
||||
Part of Arduino - http://www.arduino.cc/
|
||||
|
||||
Copyright (c) 2005-2006 David A. Mellis
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General
|
||||
Public License along with this library; if not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#define ARDUBOY_CORE_WIRING_C
|
||||
|
||||
#include "wiring_private.h"
|
||||
|
||||
// the prescaler is set so that timer0 ticks every 64 clock cycles, and the
|
||||
// the overflow handler is called every 256 ticks.
|
||||
#define MICROSECONDS_PER_TIMER0_OVERFLOW (clockCyclesToMicroseconds(64 * 256))
|
||||
|
||||
// the whole number of milliseconds per timer0 overflow
|
||||
#define MILLIS_INC (MICROSECONDS_PER_TIMER0_OVERFLOW / 1000)
|
||||
|
||||
// the fractional number of milliseconds per timer0 overflow. we shift right
|
||||
// by three to fit these numbers into a byte. (for the clock speeds we care
|
||||
// about - 8 and 16 MHz - this doesn't lose precision.)
|
||||
#define FRACT_INC ((MICROSECONDS_PER_TIMER0_OVERFLOW % 1000) >> 3)
|
||||
#define FRACT_MAX (1000 >> 3)
|
||||
|
||||
volatile unsigned long timer0_overflow_count = 0;
|
||||
volatile unsigned long timer0_millis = 0;
|
||||
static unsigned char timer0_fract = 0;
|
||||
|
||||
volatile unsigned char button_ticks_hold = 0;
|
||||
volatile unsigned char button_ticks_now = 0;
|
||||
volatile unsigned char button_ticks_last = 0;
|
||||
volatile unsigned char bootloader_timer = 0;
|
||||
|
||||
#if defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__)
|
||||
ISR(TIM0_OVF_vect)
|
||||
#else
|
||||
ISR(TIMER0_OVF_vect, ISR_NAKED)
|
||||
#endif
|
||||
{
|
||||
// copy these to local variables so they can be stored in registers
|
||||
// (volatile variables must be read from memory on every access)
|
||||
/*
|
||||
unsigned long m = timer0_millis;
|
||||
unsigned char f = timer0_fract;
|
||||
|
||||
m += MILLIS_INC;
|
||||
f += FRACT_INC;
|
||||
if (f >= FRACT_MAX) {
|
||||
f -= FRACT_MAX;
|
||||
m += 1;
|
||||
}
|
||||
|
||||
timer0_fract = f;
|
||||
timer0_millis = m;
|
||||
timer0_overflow_count++;
|
||||
*/
|
||||
// save registers and SREG
|
||||
asm volatile(
|
||||
" push r16 \n\t"
|
||||
" in r16, __SREG__ \n\t"
|
||||
" push r16 \n\t" //use as more functional temp reg
|
||||
" push r1 \n\t"
|
||||
" clr r1 \n\t" //zero reg
|
||||
" push r24 \n\t"
|
||||
" push r25 \n\t"
|
||||
" push r30 \n\t"
|
||||
" push r31 \n\t"
|
||||
);
|
||||
asm volatile(
|
||||
" lds r24, %[fract] \n\t" // f= timer0_fract;
|
||||
" ldi r25, %[millis_inc] \n\t" // millis_inc = MILLIS_INC;
|
||||
" subi r24, %[fract_inc] \n\t" // f += FRACT_INC;
|
||||
" cpi r24, %[fract_max] \n\t" // if (f >= FRACT_MAX) {
|
||||
" brcs 1f \n\t"
|
||||
|
||||
" subi r24, %[fract_max] \n\t" // f -= FRACT_MAX;
|
||||
" inc r25 \n\t" // millis_inc++ }
|
||||
"1: \n\t"
|
||||
" sts %[fract], r24 \n\t" // timer0_fract = f;
|
||||
" ld r24, z \n\t" //timer0_millis += millis_inc
|
||||
" add r24, r25 \n\t"
|
||||
" st z, r24 \n\t"
|
||||
" ldd r25, z+1 \n\t"
|
||||
" adc r25, r1 \n\t"
|
||||
" std z+1, r25 \n\t" // r25 = (millis >>8)
|
||||
" ldd r16, z+2 \n\t"
|
||||
" adc r16, r1 \n\t"
|
||||
" std z+2, r16 \n\t" // r16 = (millis >>16)
|
||||
" ldd r24, z+3 \n\t"
|
||||
" adc r24, r1 \n\t"
|
||||
" std z+3, r24 \n\t"
|
||||
|
||||
" eor r16, r25 \n\t" //button_ticks_now = (millis >> 12)
|
||||
" andi r16, 0x0F \n\t"
|
||||
" eor r16, r25 \n\t"
|
||||
" swap r16 \n\t"
|
||||
" sts %[buttons_now], r16 \n\t"
|
||||
:
|
||||
: [millis] "z" (&timer0_millis),
|
||||
[fract] "" (&timer0_fract),
|
||||
[buttons_now] "" (&button_ticks_now),
|
||||
[millis_inc] "M" (MILLIS_INC),
|
||||
[fract_inc] "M" (256 - FRACT_INC), // negated for subi instruction
|
||||
[fract_max] "M" (FRACT_MAX)
|
||||
:
|
||||
);
|
||||
//Arduboy bootloader and reset button feature
|
||||
asm volatile (
|
||||
" rcall scan_buttons \n\t"
|
||||
" cpse r24, r1 \n\t" //if (buttons) button_ticks_last = (uint8_t)(Millis >> 12)
|
||||
" sts %[apd], r16 \n\t"
|
||||
#ifdef AB_DEVKIT
|
||||
" cpi r24, 0x33 \n\t" // test LEFT+UP+A+B for bootloader
|
||||
" breq 2f \n\t"
|
||||
" cpi r24, 0x47 \n\t" // test RIGHT+DOWN+A+B for reset sketch
|
||||
" brne 5f \n\t"
|
||||
#else
|
||||
" cpi r24, 0xAC \n\t" // test LEFT+UP+A+B for bootloader
|
||||
" breq 2f \n\t"
|
||||
" cpi r24, 0x5C \n\t" // test RIGHT+DOWN+A+B for reset sketch
|
||||
" brne 5f \n\t"
|
||||
#endif
|
||||
"2: lds r16, %[hold] \n\t"
|
||||
" sub r25, r16 \n\t" // (uint8_t)(timer0_millis >> 6) - button_ticks_last
|
||||
" cpi r25, 6 \n\t"
|
||||
" brcs 6f \n\t" // if ((millis - hold) < 6)
|
||||
#ifdef AB_DEVKIT
|
||||
" subi r24, 0x33 - 0x77 \n\t" //get bootloader key or reset key value
|
||||
#else
|
||||
" subi r24, 0xAC - 0x77 \n\t" //get bootloader key or reset key value
|
||||
#endif
|
||||
"3: sts 0x800, r24 \n\t"
|
||||
" sts 0x801, r24 \n\t"
|
||||
#ifndef ARDUINO_AVR_MICRO
|
||||
" cbi %[led_port], %[led_bit] \n\t" //light up LED to acknowledge bootloader or reset is triggered
|
||||
#else
|
||||
" sbi %[led_port], %[led_bit] \n\t"
|
||||
#endif
|
||||
"4: rcall scan_buttons \n\t" //wait for buttons to be released
|
||||
" brne 4b \n\t"
|
||||
" ldi r24, %[value1] \n\t"
|
||||
" ldi r25, %[value2] \n\t"
|
||||
" sts %[wdtcsr], r24 \n\t"
|
||||
" sts %[wdtcsr], r25 \n\t"
|
||||
" rjmp .-2 \n\t"
|
||||
"5: \n\t"
|
||||
" sts %[hold], r25 \n\t" //button_ticks_hold = (uint8_t)(Millis >> 8)
|
||||
"6: \n\t"
|
||||
" lds r24, %[btimer] \n\t" //if (bootloader_timer--) {
|
||||
" subi r24, 1 \n\t"
|
||||
" brcs 7f \n\t"
|
||||
" sts %[btimer],r24 \n\t"
|
||||
" ldi r24, 0x77 \n\t"
|
||||
" breq 3b \n\t" // if (bootloader_timer == 0) runBootLoader;
|
||||
"7: \n\t" //}
|
||||
:
|
||||
: [hold] "" (&button_ticks_hold),
|
||||
[apd] "" (&button_ticks_last),
|
||||
[btimer] "" (&bootloader_timer),
|
||||
[led_port] "M" (_SFR_IO_ADDR(PORTB)), //RX LED
|
||||
[led_bit] "M" (0),
|
||||
[value1] "M" ((uint8_t)(_BV(WDCE) | _BV(WDE))),
|
||||
[value2] "M" ((uint8_t)(_BV(WDE))),
|
||||
[wdtcsr] "M" (_SFR_MEM_ADDR(WDTCSR))
|
||||
:
|
||||
);
|
||||
//timer0_overflow_count++;
|
||||
asm volatile (
|
||||
" ld r24, z \n\t"
|
||||
" ldd r25, z+1 \n\t"
|
||||
" adiw r24, 1 \n\t"
|
||||
" st z, r24 \n\t"
|
||||
" std z+1, r25 \n\t"
|
||||
" ldd r24, z+2 \n\t"
|
||||
" ldd r25, z+3 \n\t"
|
||||
" adc r24, r1 \n\t"
|
||||
" adc r25, r1 \n\t"
|
||||
" std z+2, r24 \n\t"
|
||||
" std z+3, r25 \n\t"
|
||||
:
|
||||
: "z" (&timer0_overflow_count)
|
||||
);
|
||||
//restore registers and retirn from interrupt
|
||||
asm volatile (
|
||||
" pop r31 \n\t"
|
||||
" pop r30 \n\t"
|
||||
" pop r25 \n\t"
|
||||
" pop r24 \n\t"
|
||||
" pop r1 \n\t"
|
||||
" pop r16 \n\t"
|
||||
" out __SREG__, r16 \n\t"
|
||||
" pop r16 \n\t"
|
||||
" reti \n\t"
|
||||
".global scan_buttons \n\t"
|
||||
"scan_buttons: \n\t"
|
||||
#ifdef AB_DEVKIT
|
||||
" in r24, %[pinb] \n\t" // down, left, up buttons
|
||||
" com r24 \n\t"
|
||||
" andi r24, 0x70 \n\t"
|
||||
" sbis %[pinc], 6 \n\t" // right button
|
||||
" ori r24, 0x04 \n\t"
|
||||
" sbis %[pinf], 7 \n\t" // A button
|
||||
" ori r24, 0x02 \n\t"
|
||||
" sbis %[pinf], 6 \n\t" // B button
|
||||
" ori r24, 0x01 \n\t"
|
||||
#else
|
||||
" in r24, %[pinf] \n\t" // directional buttons
|
||||
" com r24 \n\t"
|
||||
" andi r24, 0xF0 \n\t"
|
||||
" sbis %[pine], 6 \n\t" // A button
|
||||
" ori r24, 0x08 \n\t"
|
||||
" sbis %[pinb], 4 \n\t" // B button
|
||||
" ori r24, 0x04 \n\t"
|
||||
#endif
|
||||
" ret \n\t" // Z flag set from AND when no button is pressed
|
||||
:
|
||||
: [pinf] "I" (_SFR_IO_ADDR(PINF)),
|
||||
[pine] "I" (_SFR_IO_ADDR(PINE)),
|
||||
[pinc] "I" (_SFR_IO_ADDR(PINC)),
|
||||
[pinb] "I" (_SFR_IO_ADDR(PINB))
|
||||
);
|
||||
}
|
||||
|
||||
unsigned char buttonsIdleTime()
|
||||
{
|
||||
return button_ticks_now - button_ticks_last;
|
||||
}
|
||||
|
||||
unsigned char millisChar()
|
||||
{
|
||||
return *(unsigned char*)&timer0_millis;
|
||||
}
|
||||
|
||||
unsigned long millis()
|
||||
{
|
||||
unsigned long m;
|
||||
uint8_t oldSREG = SREG;
|
||||
|
||||
// disable interrupts while we read timer0_millis or we might get an
|
||||
// inconsistent value (e.g. in the middle of a write to timer0_millis)
|
||||
cli();
|
||||
m = timer0_millis;
|
||||
SREG = oldSREG;
|
||||
|
||||
return m;
|
||||
}
|
||||
|
||||
unsigned long micros() {
|
||||
/*
|
||||
unsigned long m;
|
||||
uint8_t oldSREG = SREG, t;
|
||||
|
||||
cli();
|
||||
m = timer0_overflow_count;
|
||||
#if defined(TCNT0)
|
||||
t = TCNT0;
|
||||
#elif defined(TCNT0L)
|
||||
t = TCNT0L;
|
||||
#else
|
||||
#error TIMER 0 not defined
|
||||
#endif
|
||||
|
||||
#ifdef TIFR0
|
||||
if ((TIFR0 & _BV(TOV0)) && (t < 255))
|
||||
m++;
|
||||
#else
|
||||
if ((TIFR & _BV(TOV0)) && (t < 255))
|
||||
m++;
|
||||
#endif
|
||||
SREG = oldSREG;
|
||||
return ((m << 8) + t) * (64 / clockCyclesPerMicrosecond());
|
||||
*/
|
||||
//assembly optimalisation
|
||||
register unsigned long m asm("r22");
|
||||
asm volatile(
|
||||
" in r18, %[sreg] \n" //oldSREG = SREG
|
||||
" cli \n" //
|
||||
" ld r23, x+ \n" // m = timer0_overflow_count << 8
|
||||
" ld r24, x+ \n"
|
||||
" ld r25, x \n"
|
||||
" in r22, %[tcnt] \n" // (m << 8) | t
|
||||
" out %[sreg], r18 \n" //SREG = oldSREG
|
||||
" sbis %[tif], %[tov] \n" // if ((TIFR & _BV(TOV) &&
|
||||
" rjmp 1f \n"
|
||||
" cpi r22, 0xFF \n" // t < 0xFF)
|
||||
" brcc 1f \n"
|
||||
" \n"
|
||||
" subi r23, 0xFF \n" // m++ (m+=256)
|
||||
" sbci r24, 0xFF \n" //
|
||||
" sbci r25, 0xFF \n" //
|
||||
"1: \n"
|
||||
" ldi r18,%[fm] \n" // *( 64 / clockCyclesPerMicrosecond()
|
||||
"2: \n"
|
||||
" add r22, r22 \n"
|
||||
" adc r23, r23 \n"
|
||||
" adc r24, r24 \n"
|
||||
" adc r25, r25 \n"
|
||||
" dec r18 \n"
|
||||
" brne 2b \n"
|
||||
: "=d" (m)
|
||||
: [sreg] "I" (_SFR_IO_ADDR(SREG)),
|
||||
#if defined(TCNT0)
|
||||
[tcnt] "I" (_SFR_IO_ADDR(TCNT0)),
|
||||
#elif defined(TCNT0L)
|
||||
[tcnt] "I" (_SFR_IO_ADDR(TCNT0L)),
|
||||
#else
|
||||
#error TIMER 0 not defined
|
||||
#endif
|
||||
#ifdef TIFR0
|
||||
[tif] "I" (_SFR_IO_ADDR(TIFR0)),
|
||||
#else
|
||||
[tif] "I" (_SFR_IO_ADDR(TIFR)),
|
||||
#endif
|
||||
[tov] "M" (TOV0),
|
||||
#if (F_CPU == 8000000L)
|
||||
[fm] "M" (4),
|
||||
#elif (F_CPU ==16000000L)
|
||||
[fm] "M" (2),
|
||||
#else
|
||||
#error this version of wiring.c only supports 8MHz and 16MHz CPU clock
|
||||
#endif
|
||||
"x" (&timer0_overflow_count)
|
||||
: "r18"
|
||||
);
|
||||
}
|
||||
|
||||
void delay(unsigned long ms)
|
||||
{
|
||||
/*
|
||||
uint32_t start = micros();
|
||||
while (ms > 0) {
|
||||
yield();
|
||||
while ( ms > 0 && (micros() - start) >= 1000) {
|
||||
ms--;
|
||||
start += 1000;
|
||||
}
|
||||
}
|
||||
*/
|
||||
//assembly optimalisation
|
||||
asm volatile(
|
||||
" movw r20, %A0 \n" //ms
|
||||
" movw r30, %C0 \n"
|
||||
" call micros \n" //endMicros = micros()
|
||||
"1: \n"
|
||||
" subi r20, 1 \n" //while (ms > 0)
|
||||
" sbc r21, r1 \n"
|
||||
" sbc r30, r1 \n"
|
||||
" sbc r31, r1 \n"
|
||||
" brcs 2f \n"
|
||||
" \n"
|
||||
" subi r22, 0x18 \n" //endMicros += 1000
|
||||
" sbci r23, 0xFC \n"
|
||||
" sbci r24, 0xFF \n"
|
||||
" sbci r25, 0xFF \n"
|
||||
" rjmp 1b \n"
|
||||
"2: \n"
|
||||
" movw r20, r22 \n"
|
||||
" movw r30, r24 \n"
|
||||
"3: \n"
|
||||
" call micros \n" //while (micros() < endMicros);
|
||||
" cp r22, r20 \n"
|
||||
" cpc r23, r21 \n"
|
||||
" cpc r24, r30 \n"
|
||||
" cpc r25, r31 \n"
|
||||
" brcs 3b \n"
|
||||
:
|
||||
: "d" (ms),
|
||||
"" (micros)
|
||||
|
||||
: "r20", "r21", "r30", "r31", /*from micros: */ "r18", "r26", "r27"
|
||||
);
|
||||
}
|
||||
|
||||
void delayShort(unsigned short ms)
|
||||
{
|
||||
asm volatile(
|
||||
" call micros \n" //endMicros = micros()
|
||||
"1: \n"
|
||||
" sbiw r30, 1 \n" //while (ms > 0)
|
||||
" brcs 2f \n"
|
||||
" \n"
|
||||
" subi r22, 0x18 \n" //endMicros += 1000
|
||||
" sbci r23, 0xFC \n"
|
||||
" sbci r24, 0xFF \n"
|
||||
" sbci r25, 0xFF \n"
|
||||
" rjmp 1b \n"
|
||||
"2: \n"
|
||||
" movw r20, r22 \n"
|
||||
" movw r30, r24 \n"
|
||||
"3: \n"
|
||||
" call micros \n" //while (micros() < endMicros);
|
||||
" cp r22, r20 \n"
|
||||
" cpc r23, r21 \n"
|
||||
" cpc r24, r30 \n"
|
||||
" cpc r25, r31 \n"
|
||||
" brcs 3b \n"
|
||||
:
|
||||
: "z" (ms),
|
||||
"" (micros)
|
||||
|
||||
: "r20", "r21", "r22", "r23", /*from micros: */ "r18", "r26", "r27"
|
||||
);
|
||||
}
|
||||
|
||||
/* Delay for the given number of microseconds. Assumes a 1, 8, 12, 16, 20 or 24 MHz clock. */
|
||||
void delayMicroseconds(unsigned int us)
|
||||
{
|
||||
// call = 4 cycles + 2 to 4 cycles to init us(2 for constant delay, 4 for variable)
|
||||
|
||||
// calling avrlib's delay_us() function with low values (e.g. 1 or
|
||||
// 2 microseconds) gives delays longer than desired.
|
||||
//delay_us(us);
|
||||
#if F_CPU >= 24000000L
|
||||
// for the 24 MHz clock for the aventurous ones, trying to overclock
|
||||
|
||||
// zero delay fix
|
||||
if (!us) return; // = 3 cycles, (4 when true)
|
||||
|
||||
// the following loop takes a 1/6 of a microsecond (4 cycles)
|
||||
// per iteration, so execute it six times for each microsecond of
|
||||
// delay requested.
|
||||
us *= 6; // x6 us, = 7 cycles
|
||||
|
||||
// account for the time taken in the preceeding commands.
|
||||
// we just burned 22 (24) cycles above, remove 5, (5*4=20)
|
||||
// us is at least 6 so we can substract 5
|
||||
us -= 5; //=2 cycles
|
||||
|
||||
#elif F_CPU >= 20000000L
|
||||
// for the 20 MHz clock on rare Arduino boards
|
||||
|
||||
// for a one-microsecond delay, simply return. the overhead
|
||||
// of the function call takes 18 (20) cycles, which is 1us
|
||||
__asm__ __volatile__ (
|
||||
"nop" "\n\t"
|
||||
"nop" "\n\t"
|
||||
"nop" "\n\t"
|
||||
"nop"); //just waiting 4 cycles
|
||||
if (us <= 1) return; // = 3 cycles, (4 when true)
|
||||
|
||||
// the following loop takes a 1/5 of a microsecond (4 cycles)
|
||||
// per iteration, so execute it five times for each microsecond of
|
||||
// delay requested.
|
||||
us = (us << 2) + us; // x5 us, = 7 cycles
|
||||
|
||||
// account for the time taken in the preceeding commands.
|
||||
// we just burned 26 (28) cycles above, remove 7, (7*4=28)
|
||||
// us is at least 10 so we can substract 7
|
||||
us -= 7; // 2 cycles
|
||||
|
||||
#elif F_CPU >= 16000000L
|
||||
// for the 16 MHz clock on most Arduino boards
|
||||
|
||||
// for a one-microsecond delay, simply return. the overhead
|
||||
// of the function call takes 14 (16) cycles, which is 1us
|
||||
if (us <= 1) return; // = 3 cycles, (4 when true)
|
||||
|
||||
// the following loop takes 1/4 of a microsecond (4 cycles)
|
||||
// per iteration, so execute it four times for each microsecond of
|
||||
// delay requested.
|
||||
us <<= 2; // x4 us, = 4 cycles
|
||||
|
||||
// account for the time taken in the preceeding commands.
|
||||
// we just burned 19 (21) cycles above, remove 5, (5*4=20)
|
||||
// us is at least 8 so we can substract 5
|
||||
us -= 5; // = 2 cycles,
|
||||
|
||||
#elif F_CPU >= 12000000L
|
||||
// for the 12 MHz clock if somebody is working with USB
|
||||
|
||||
// for a 1 microsecond delay, simply return. the overhead
|
||||
// of the function call takes 14 (16) cycles, which is 1.5us
|
||||
if (us <= 1) return; // = 3 cycles, (4 when true)
|
||||
|
||||
// the following loop takes 1/3 of a microsecond (4 cycles)
|
||||
// per iteration, so execute it three times for each microsecond of
|
||||
// delay requested.
|
||||
us = (us << 1) + us; // x3 us, = 5 cycles
|
||||
|
||||
// account for the time taken in the preceeding commands.
|
||||
// we just burned 20 (22) cycles above, remove 5, (5*4=20)
|
||||
// us is at least 6 so we can substract 5
|
||||
us -= 5; //2 cycles
|
||||
|
||||
#elif F_CPU >= 8000000L
|
||||
// for the 8 MHz internal clock
|
||||
|
||||
// for a 1 and 2 microsecond delay, simply return. the overhead
|
||||
// of the function call takes 14 (16) cycles, which is 2us
|
||||
if (us <= 2) return; // = 3 cycles, (4 when true)
|
||||
|
||||
// the following loop takes 1/2 of a microsecond (4 cycles)
|
||||
// per iteration, so execute it twice for each microsecond of
|
||||
// delay requested.
|
||||
us <<= 1; //x2 us, = 2 cycles
|
||||
|
||||
// account for the time taken in the preceeding commands.
|
||||
// we just burned 17 (19) cycles above, remove 4, (4*4=16)
|
||||
// us is at least 6 so we can substract 4
|
||||
us -= 4; // = 2 cycles
|
||||
|
||||
#else
|
||||
// for the 1 MHz internal clock (default settings for common Atmega microcontrollers)
|
||||
|
||||
// the overhead of the function calls is 14 (16) cycles
|
||||
if (us <= 16) return; //= 3 cycles, (4 when true)
|
||||
if (us <= 25) return; //= 3 cycles, (4 when true), (must be at least 25 if we want to substract 22)
|
||||
|
||||
// compensate for the time taken by the preceeding and next commands (about 22 cycles)
|
||||
us -= 22; // = 2 cycles
|
||||
// the following loop takes 4 microseconds (4 cycles)
|
||||
// per iteration, so execute it us/4 times
|
||||
// us is at least 4, divided by 4 gives us 1 (no zero delay bug)
|
||||
us >>= 2; // us div 4, = 4 cycles
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
// busy wait
|
||||
__asm__ __volatile__ (
|
||||
"1: sbiw %0,1" "\n\t" // 2 cycles
|
||||
"brne 1b" : "=w" (us) : "0" (us) // 2 cycles
|
||||
);
|
||||
// return = 4 cycles
|
||||
}
|
||||
|
||||
void init() //assembly optimized by 68 bytes
|
||||
{
|
||||
// this needs to be called before setup() or some functions won't
|
||||
// work there
|
||||
sei();
|
||||
|
||||
// on the ATmega168, timer 0 is also used for fast hardware pwm
|
||||
// (using phase-correct PWM would mean that timer 0 overflowed half as often
|
||||
// resulting in different millis() behavior on the ATmega8 and ATmega168)
|
||||
#if defined(TCCR0A) && defined(WGM01)
|
||||
//sbi(TCCR0A, WGM01);
|
||||
//sbi(TCCR0A, WGM00);
|
||||
asm volatile(
|
||||
" in r24, %[tccr0a] \n\t"
|
||||
" ori r24, %[wgm01] \n\t"
|
||||
" out %[tccr0a], r24 \n\t"
|
||||
" ori r24, %[wgm00] \n\t"
|
||||
" out %[tccr0a], r24 \n\t"
|
||||
:
|
||||
: [tccr0a] "I" (_SFR_IO_ADDR(TCCR0A)),
|
||||
[wgm01] "M" (_BV(WGM01)),
|
||||
[wgm00] "M" (_BV(WGM00))
|
||||
: "r24"
|
||||
);
|
||||
#endif
|
||||
|
||||
// set timer 0 prescale factor to 64
|
||||
#if defined(__AVR_ATmega128__)
|
||||
// CPU specific: different values for the ATmega128
|
||||
sbi(TCCR0, CS02);
|
||||
#elif defined(TCCR0) && defined(CS01) && defined(CS00)
|
||||
// this combination is for the standard atmega8
|
||||
sbi(TCCR0, CS01);
|
||||
sbi(TCCR0, CS00);
|
||||
#elif defined(TCCR0B) && defined(CS01) && defined(CS00)
|
||||
// this combination is for the standard 168/328/1280/2560
|
||||
//sbi(TCCR0B, CS01);
|
||||
//sbi(TCCR0B, CS00);
|
||||
asm volatile(
|
||||
" in r24, %[tccr0b] \n\t"
|
||||
" ori r24, %[cs01] \n\t"
|
||||
" out %[tccr0b], r24 \n\t"
|
||||
" ori r24, %[cs00] \n\t"
|
||||
" out %[tccr0b], r24 \n\t"
|
||||
:
|
||||
: [tccr0b] "I" (_SFR_IO_ADDR(TCCR0B)),
|
||||
[cs01] "M" (_BV(CS01)),
|
||||
[cs00] "M" (_BV(CS00))
|
||||
: "r24"
|
||||
);
|
||||
#elif defined(TCCR0A) && defined(CS01) && defined(CS00)
|
||||
// this combination is for the __AVR_ATmega645__ series
|
||||
sbi(TCCR0A, CS01);
|
||||
sbi(TCCR0A, CS00);
|
||||
#else
|
||||
#error Timer 0 prescale factor 64 not set correctly
|
||||
#endif
|
||||
|
||||
// enable timer 0 overflow interrupt
|
||||
#if defined(TIMSK) && defined(TOIE0)
|
||||
sbi(TIMSK, TOIE0);
|
||||
#elif defined(TIMSK0) && defined(TOIE0)
|
||||
TIMSK0 = _BV(TOIE0);
|
||||
#else
|
||||
#error Timer 0 overflow interrupt not set correctly
|
||||
#endif
|
||||
|
||||
// timers 1 and 2 are used for phase-correct hardware pwm
|
||||
// this is better for motors as it ensures an even waveform
|
||||
// note, however, that fast pwm mode can achieve a frequency of up
|
||||
// 8 MHz (with a 16 MHz clock) at 50% duty cycle
|
||||
|
||||
#if defined(TCCR1B) && defined(CS11) && defined(CS10)
|
||||
//TCCR1B = 0;
|
||||
|
||||
// set timer 1 prescale factor to 64
|
||||
//sbi(TCCR1B, CS11);
|
||||
asm volatile(
|
||||
" ldi r30, %[tccr1b] \n\t"
|
||||
" ldi r31, 0x00 \n\t"
|
||||
" st z, r1 \n\t"
|
||||
" ldi r24, %[cs11] \n\t"
|
||||
" st z, r24 \n\t"
|
||||
:
|
||||
: [tccr1b] "M" (_SFR_MEM_ADDR(TCCR1B)),
|
||||
[cs11] "M" (_BV(CS11))
|
||||
: "r24", "r30", "r31"
|
||||
);
|
||||
|
||||
#if F_CPU >= 8000000L
|
||||
//sbi(TCCR1B, CS10);
|
||||
asm volatile(
|
||||
" ori r24, %[cs10] \n\t"
|
||||
" st z, r24 \n\t"
|
||||
:
|
||||
: [cs10] "M" (_BV(CS10))
|
||||
: "r24", "r30", "r31"
|
||||
);
|
||||
#endif
|
||||
#elif defined(TCCR1) && defined(CS11) && defined(CS10)
|
||||
sbi(TCCR1, CS11);
|
||||
#if F_CPU >= 8000000L
|
||||
sbi(TCCR1, CS10);
|
||||
#endif
|
||||
#endif
|
||||
// put timer 1 in 8-bit phase correct pwm mode
|
||||
#if defined(TCCR1A) && defined(WGM10)
|
||||
//sbi(TCCR1A, WGM10);
|
||||
asm volatile(
|
||||
" ldi r30, %[tccr1a] \n\t"
|
||||
" ld r24, z \n\t"
|
||||
" ori r24, %[wgm10] \n\t"
|
||||
" st z, r24 \n\t"
|
||||
:
|
||||
: [tccr1a] "M" (_SFR_MEM_ADDR(TCCR1A)),
|
||||
[wgm10] "M" (_BV(WGM10))
|
||||
: "r24", "r30", "r31"
|
||||
);
|
||||
#endif
|
||||
|
||||
// set timer 2 prescale factor to 64
|
||||
#if defined(TCCR2) && defined(CS22)
|
||||
sbi(TCCR2, CS22);
|
||||
#elif defined(TCCR2B) && defined(CS22)
|
||||
sbi(TCCR2B, CS22);
|
||||
//#else
|
||||
// Timer 2 not finished (may not be present on this CPU)
|
||||
#endif
|
||||
|
||||
// configure timer 2 for phase correct pwm (8-bit)
|
||||
#if defined(TCCR2) && defined(WGM20)
|
||||
sbi(TCCR2, WGM20);
|
||||
#elif defined(TCCR2A) && defined(WGM20)
|
||||
sbi(TCCR2A, WGM20);
|
||||
//#else
|
||||
// Timer 2 not finished (may not be present on this CPU)
|
||||
#endif
|
||||
|
||||
#if defined(TCCR3B) && defined(CS31) && defined(WGM30)
|
||||
//sbi(TCCR3B, CS31); // set timer 3 prescale factor to 64
|
||||
//sbi(TCCR3B, CS30);
|
||||
asm volatile(
|
||||
" ldi r30, %[tccr3b] \n\t"
|
||||
" ld r24, z \n\t"
|
||||
" ori r24, %[cs31] \n\t"
|
||||
" st z, r24 \n\t"
|
||||
" ori r24, %[cs30] \n\t"
|
||||
" st z, r24 \n\t"
|
||||
:
|
||||
: [tccr3b] "M" (_SFR_MEM_ADDR(TCCR3B)),
|
||||
[cs31] "M" (_BV(CS31)),
|
||||
[cs30] "M" (_BV(CS30))
|
||||
: "r24", "r30", "r31"
|
||||
);
|
||||
//sbi(TCCR3A, WGM30); // put timer 3 in 8-bit phase correct pwm mode
|
||||
asm volatile(
|
||||
" ldi r30, %[tccr3a] \n\t"
|
||||
" ld r24, z \n\t"
|
||||
" ori r24, %[wgm30] \n\t"
|
||||
" st z, r24 \n\t"
|
||||
:
|
||||
: [tccr3a] "M" (_SFR_MEM_ADDR(TCCR3A)),
|
||||
[wgm30] "M" (_BV(WGM30))
|
||||
: "r24", "r30", "r31"
|
||||
);
|
||||
#endif
|
||||
|
||||
#if defined(TCCR4A) && defined(TCCR4B) && defined(TCCR4D) /* beginning of timer4 block for 32U4 and similar */
|
||||
//sbi(TCCR4B, CS42); // set timer4 prescale factor to 64
|
||||
//sbi(TCCR4B, CS41);
|
||||
//sbi(TCCR4B, CS40);
|
||||
asm volatile(
|
||||
" ldi r30, %[tccr4b] \n\t"
|
||||
" ld r24, z \n\t"
|
||||
" ori r24, %[cs42] \n\t"
|
||||
" st z, r24 \n\t"
|
||||
" ori r24, %[cs41] \n\t"
|
||||
" st z, r24 \n\t"
|
||||
" ori r24, %[cs40] \n\t"
|
||||
" st z, r24 \n\t"
|
||||
:
|
||||
: [tccr4b] "M" (_SFR_MEM_ADDR(TCCR4B)),
|
||||
[cs42] "M" (_BV(CS42)),
|
||||
[cs41] "M" (_BV(CS41)),
|
||||
[cs40] "M" (_BV(CS40))
|
||||
: "r24", "r30", "r31"
|
||||
);
|
||||
//sbi(TCCR4D, WGM40); // put timer 4 in phase- and frequency-correct PWM mode
|
||||
asm volatile(
|
||||
" ldi r30, %[tccr4d] \n\t"
|
||||
" ld r24, z \n\t"
|
||||
" ori r24, %[wgm40] \n\t"
|
||||
" st z, r24 \n\t"
|
||||
:
|
||||
: [tccr4d] "M" (_SFR_MEM_ADDR(TCCR4D)),
|
||||
[wgm40] "M" (_BV(WGM40))
|
||||
: "r24", "r30", "r31"
|
||||
);
|
||||
//sbi(TCCR4A, PWM4A); // enable PWM mode for comparator OCR4A
|
||||
asm volatile(
|
||||
" ldi r30, %[tccr4a] \n\t"
|
||||
" ld r24, z \n\t"
|
||||
" ori r24, %[pwm4a] \n\t"
|
||||
" st z, r24 \n\t"
|
||||
:
|
||||
: [tccr4a] "M" (_SFR_MEM_ADDR(TCCR4A)),
|
||||
[pwm4a] "M" (_BV(PWM4A))
|
||||
: "r24", "r30", "r31"
|
||||
);
|
||||
//sbi(TCCR4C, PWM4D); // enable PWM mode for comparator OCR4D
|
||||
asm volatile(
|
||||
" ldi r30, %[tccr4c] \n\t"
|
||||
" ld r24, z \n\t"
|
||||
" ori r24, %[pwm4d] \n\t"
|
||||
" st z, r24 \n\t"
|
||||
:
|
||||
: [tccr4c] "M" (_SFR_MEM_ADDR(TCCR4C)),
|
||||
[pwm4d] "M" (_BV(PWM4D))
|
||||
: "r24", "r30", "r31"
|
||||
);
|
||||
#else /* beginning of timer4 block for ATMEGA1280 and ATMEGA2560 */
|
||||
#if defined(TCCR4B) && defined(CS41) && defined(WGM40)
|
||||
sbi(TCCR4B, CS41); // set timer 4 prescale factor to 64
|
||||
sbi(TCCR4B, CS40);
|
||||
sbi(TCCR4A, WGM40); // put timer 4 in 8-bit phase correct pwm mode
|
||||
#endif
|
||||
#endif /* end timer4 block for ATMEGA1280/2560 and similar */
|
||||
|
||||
#if defined(TCCR5B) && defined(CS51) && defined(WGM50)
|
||||
sbi(TCCR5B, CS51); // set timer 5 prescale factor to 64
|
||||
sbi(TCCR5B, CS50);
|
||||
sbi(TCCR5A, WGM50); // put timer 5 in 8-bit phase correct pwm mode
|
||||
#endif
|
||||
|
||||
#if defined(ADCSRA)
|
||||
// set a2d prescaler so we are inside the desired 50-200 KHz range.
|
||||
#if F_CPU >= 16000000 // 16 MHz / 128 = 125 KHz
|
||||
//sbi(ADCSRA, ADPS2);
|
||||
//sbi(ADCSRA, ADPS1);
|
||||
//sbi(ADCSRA, ADPS0);
|
||||
asm volatile(
|
||||
" ldi r30, %[adcsra] \n\t"
|
||||
" ld r24, z \n\t"
|
||||
" ori r24, %[adps2] \n\t"
|
||||
" st z, r24 \n\t"
|
||||
" ori r24, %[adps1] \n\t"
|
||||
" st z, r24 \n\t"
|
||||
" ori r24, %[adps0] \n\t"
|
||||
" st z, r24 \n\t"
|
||||
:
|
||||
: [adcsra] "M" (_SFR_MEM_ADDR(ADCSRA)),
|
||||
[adps2] "M" (_BV(ADPS2)),
|
||||
[adps1] "M" (_BV(ADPS1)),
|
||||
[adps0] "M" (_BV(ADPS0))
|
||||
: "r24", "r30", "r31"
|
||||
);
|
||||
#elif F_CPU >= 8000000 // 8 MHz / 64 = 125 KHz
|
||||
//sbi(ADCSRA, ADPS2);
|
||||
//sbi(ADCSRA, ADPS1);
|
||||
//cbi(ADCSRA, ADPS0);
|
||||
asm volatile(
|
||||
" ldi r30, %[adcsra] \n\t"
|
||||
" ld r24, z \n\t"
|
||||
" ori r24, %[adps2] \n\t"
|
||||
" st z, r24 \n\t"
|
||||
" ori r24, %[adps1] \n\t"
|
||||
" st z, r24 \n\t"
|
||||
" andi r24, %[adps0] \n\t"
|
||||
" st z, r24 \n\t"
|
||||
:
|
||||
: [adcsra] "M" (_SFR_MEM_ADDR(ADCSRA)),
|
||||
[adps2] "M" (_BV(ADPS2)),
|
||||
[adps1] "M" (_BV(ADPS1)),
|
||||
[adps0] "M" (~_BV(ADPS0))
|
||||
: "r24", "r30", "r31"
|
||||
);
|
||||
#elif F_CPU >= 4000000 // 4 MHz / 32 = 125 KHz
|
||||
sbi(ADCSRA, ADPS2);
|
||||
cbi(ADCSRA, ADPS1);
|
||||
sbi(ADCSRA, ADPS0);
|
||||
#elif F_CPU >= 2000000 // 2 MHz / 16 = 125 KHz
|
||||
sbi(ADCSRA, ADPS2);
|
||||
cbi(ADCSRA, ADPS1);
|
||||
cbi(ADCSRA, ADPS0);
|
||||
#elif F_CPU >= 1000000 // 1 MHz / 8 = 125 KHz
|
||||
cbi(ADCSRA, ADPS2);
|
||||
sbi(ADCSRA, ADPS1);
|
||||
sbi(ADCSRA, ADPS0);
|
||||
#else // 128 kHz / 2 = 64 KHz -> This is the closest you can get, the prescaler is 2
|
||||
cbi(ADCSRA, ADPS2);
|
||||
cbi(ADCSRA, ADPS1);
|
||||
sbi(ADCSRA, ADPS0);
|
||||
#endif
|
||||
// enable a2d conversions
|
||||
//sbi(ADCSRA, ADEN);
|
||||
asm volatile(
|
||||
" ori r24, %[aden] \n\t"
|
||||
" st z, r24 \n\t"
|
||||
:
|
||||
: [aden] "M" (_BV(ADEN))
|
||||
: "r24", "r30", "r31"
|
||||
);
|
||||
#endif
|
||||
|
||||
// the bootloader connects pins 0 and 1 to the USART; disconnect them
|
||||
// here so they can be used as normal digital i/o; they will be
|
||||
// reconnected in Serial.begin()
|
||||
#if defined(UCSRB)
|
||||
UCSRB = 0;
|
||||
#elif defined(UCSR0B)
|
||||
UCSR0B = 0;
|
||||
#endif
|
||||
}
|
|
@ -0,0 +1,294 @@
|
|||
/*
|
||||
wiring_analog.c - analog input and output
|
||||
Part of Arduino - http://www.arduino.cc/
|
||||
|
||||
Copyright (c) 2005-2006 David A. Mellis
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General
|
||||
Public License along with this library; if not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307 USA
|
||||
|
||||
Modified 28 September 2010 by Mark Sproul
|
||||
*/
|
||||
|
||||
#include "wiring_private.h"
|
||||
#include "pins_arduino.h"
|
||||
|
||||
uint8_t analog_reference = DEFAULT;
|
||||
|
||||
void analogReference(uint8_t mode)
|
||||
{
|
||||
// can't actually set the register here because the default setting
|
||||
// will connect AVCC and the AREF pin, which would cause a short if
|
||||
// there's something connected to AREF.
|
||||
analog_reference = mode;
|
||||
}
|
||||
|
||||
int analogRead(uint8_t pin)
|
||||
{
|
||||
uint8_t low, high;
|
||||
|
||||
#if defined(analogPinToChannel)
|
||||
#if defined(__AVR_ATmega32U4__)
|
||||
if (pin >= 18) pin -= 18; // allow for channel or pin numbers
|
||||
#endif
|
||||
pin = analogPinToChannel(pin);
|
||||
#elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
|
||||
if (pin >= 54) pin -= 54; // allow for channel or pin numbers
|
||||
#elif defined(__AVR_ATmega32U4__)
|
||||
if (pin >= 18) pin -= 18; // allow for channel or pin numbers
|
||||
#elif defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644__) || defined(__AVR_ATmega644A__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644PA__)
|
||||
if (pin >= 24) pin -= 24; // allow for channel or pin numbers
|
||||
#else
|
||||
if (pin >= 14) pin -= 14; // allow for channel or pin numbers
|
||||
#endif
|
||||
|
||||
#if defined(ADCSRB) && defined(MUX5)
|
||||
// the MUX5 bit of ADCSRB selects whether we're reading from channels
|
||||
// 0 to 7 (MUX5 low) or 8 to 15 (MUX5 high).
|
||||
ADCSRB = (ADCSRB & ~(1 << MUX5)) | (((pin >> 3) & 0x01) << MUX5);
|
||||
#endif
|
||||
|
||||
// set the analog reference (high two bits of ADMUX) and select the
|
||||
// channel (low 4 bits). this also sets ADLAR (left-adjust result)
|
||||
// to 0 (the default).
|
||||
#if defined(ADMUX)
|
||||
#if defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__)
|
||||
ADMUX = (analog_reference << 4) | (pin & 0x07);
|
||||
#else
|
||||
ADMUX = (analog_reference << 6) | (pin & 0x07);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// without a delay, we seem to read from the wrong channel
|
||||
//delay(1);
|
||||
|
||||
#if defined(ADCSRA) && defined(ADCL)
|
||||
// start the conversion
|
||||
sbi(ADCSRA, ADSC);
|
||||
|
||||
// ADSC is cleared when the conversion finishes
|
||||
while (bit_is_set(ADCSRA, ADSC));
|
||||
|
||||
// we have to read ADCL first; doing so locks both ADCL
|
||||
// and ADCH until ADCH is read. reading ADCL second would
|
||||
// cause the results of each conversion to be discarded,
|
||||
// as ADCL and ADCH would be locked when it completed.
|
||||
low = ADCL;
|
||||
high = ADCH;
|
||||
#else
|
||||
// we dont have an ADC, return 0
|
||||
low = 0;
|
||||
high = 0;
|
||||
#endif
|
||||
|
||||
// combine the two bytes
|
||||
return (high << 8) | low;
|
||||
}
|
||||
|
||||
// Right now, PWM output only works on the pins with
|
||||
// hardware support. These are defined in the appropriate
|
||||
// pins_*.c file. For the rest of the pins, we default
|
||||
// to digital output.
|
||||
void analogWrite(uint8_t pin, int val)
|
||||
{
|
||||
// We need to make sure the PWM output is enabled for those pins
|
||||
// that support it, as we turn it off when digitally reading or
|
||||
// writing with them. Also, make sure the pin is in output mode
|
||||
// for consistenty with Wiring, which doesn't require a pinMode
|
||||
// call for the analog output pins.
|
||||
pinMode(pin, OUTPUT);
|
||||
if (val == 0)
|
||||
{
|
||||
digitalWrite(pin, LOW);
|
||||
}
|
||||
else if (val == 255)
|
||||
{
|
||||
digitalWrite(pin, HIGH);
|
||||
}
|
||||
else
|
||||
{
|
||||
switch(digitalPinToTimer(pin))
|
||||
{
|
||||
// XXX fix needed for atmega8
|
||||
#if defined(TCCR0) && defined(COM00) && !defined(__AVR_ATmega8__)
|
||||
case TIMER0A:
|
||||
// connect pwm to pin on timer 0
|
||||
sbi(TCCR0, COM00);
|
||||
OCR0 = val; // set pwm duty
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR0A) && defined(COM0A1)
|
||||
case TIMER0A:
|
||||
// connect pwm to pin on timer 0, channel A
|
||||
sbi(TCCR0A, COM0A1);
|
||||
OCR0A = val; // set pwm duty
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR0A) && defined(COM0B1)
|
||||
case TIMER0B:
|
||||
// connect pwm to pin on timer 0, channel B
|
||||
sbi(TCCR0A, COM0B1);
|
||||
OCR0B = val; // set pwm duty
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR1A) && defined(COM1A1)
|
||||
case TIMER1A:
|
||||
// connect pwm to pin on timer 1, channel A
|
||||
sbi(TCCR1A, COM1A1);
|
||||
OCR1A = val; // set pwm duty
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR1A) && defined(COM1B1)
|
||||
case TIMER1B:
|
||||
// connect pwm to pin on timer 1, channel B
|
||||
sbi(TCCR1A, COM1B1);
|
||||
OCR1B = val; // set pwm duty
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR1A) && defined(COM1C1)
|
||||
case TIMER1C:
|
||||
// connect pwm to pin on timer 1, channel B
|
||||
sbi(TCCR1A, COM1C1);
|
||||
OCR1C = val; // set pwm duty
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR2) && defined(COM21)
|
||||
case TIMER2:
|
||||
// connect pwm to pin on timer 2
|
||||
sbi(TCCR2, COM21);
|
||||
OCR2 = val; // set pwm duty
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR2A) && defined(COM2A1)
|
||||
case TIMER2A:
|
||||
// connect pwm to pin on timer 2, channel A
|
||||
sbi(TCCR2A, COM2A1);
|
||||
OCR2A = val; // set pwm duty
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR2A) && defined(COM2B1)
|
||||
case TIMER2B:
|
||||
// connect pwm to pin on timer 2, channel B
|
||||
sbi(TCCR2A, COM2B1);
|
||||
OCR2B = val; // set pwm duty
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR3A) && defined(COM3A1)
|
||||
case TIMER3A:
|
||||
// connect pwm to pin on timer 3, channel A
|
||||
sbi(TCCR3A, COM3A1);
|
||||
OCR3A = val; // set pwm duty
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR3A) && defined(COM3B1)
|
||||
case TIMER3B:
|
||||
// connect pwm to pin on timer 3, channel B
|
||||
sbi(TCCR3A, COM3B1);
|
||||
OCR3B = val; // set pwm duty
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR3A) && defined(COM3C1)
|
||||
case TIMER3C:
|
||||
// connect pwm to pin on timer 3, channel C
|
||||
sbi(TCCR3A, COM3C1);
|
||||
OCR3C = val; // set pwm duty
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR4A)
|
||||
case TIMER4A:
|
||||
//connect pwm to pin on timer 4, channel A
|
||||
sbi(TCCR4A, COM4A1);
|
||||
#if defined(COM4A0) // only used on 32U4
|
||||
cbi(TCCR4A, COM4A0);
|
||||
#endif
|
||||
OCR4A = val; // set pwm duty
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR4A) && defined(COM4B1)
|
||||
case TIMER4B:
|
||||
// connect pwm to pin on timer 4, channel B
|
||||
sbi(TCCR4A, COM4B1);
|
||||
OCR4B = val; // set pwm duty
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR4A) && defined(COM4C1)
|
||||
case TIMER4C:
|
||||
// connect pwm to pin on timer 4, channel C
|
||||
sbi(TCCR4A, COM4C1);
|
||||
OCR4C = val; // set pwm duty
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR4C) && defined(COM4D1)
|
||||
case TIMER4D:
|
||||
// connect pwm to pin on timer 4, channel D
|
||||
sbi(TCCR4C, COM4D1);
|
||||
#if defined(COM4D0) // only used on 32U4
|
||||
cbi(TCCR4C, COM4D0);
|
||||
#endif
|
||||
OCR4D = val; // set pwm duty
|
||||
break;
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(TCCR5A) && defined(COM5A1)
|
||||
case TIMER5A:
|
||||
// connect pwm to pin on timer 5, channel A
|
||||
sbi(TCCR5A, COM5A1);
|
||||
OCR5A = val; // set pwm duty
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR5A) && defined(COM5B1)
|
||||
case TIMER5B:
|
||||
// connect pwm to pin on timer 5, channel B
|
||||
sbi(TCCR5A, COM5B1);
|
||||
OCR5B = val; // set pwm duty
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR5A) && defined(COM5C1)
|
||||
case TIMER5C:
|
||||
// connect pwm to pin on timer 5, channel C
|
||||
sbi(TCCR5A, COM5C1);
|
||||
OCR5C = val; // set pwm duty
|
||||
break;
|
||||
#endif
|
||||
|
||||
case NOT_ON_TIMER:
|
||||
default:
|
||||
if (val < 128) {
|
||||
digitalWrite(pin, LOW);
|
||||
} else {
|
||||
digitalWrite(pin, HIGH);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,179 @@
|
|||
/*
|
||||
wiring_digital.c - digital input and output functions
|
||||
Part of Arduino - http://www.arduino.cc/
|
||||
|
||||
Copyright (c) 2005-2006 David A. Mellis
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General
|
||||
Public License along with this library; if not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307 USA
|
||||
|
||||
Modified 28 September 2010 by Mark Sproul
|
||||
*/
|
||||
|
||||
#define ARDUINO_MAIN
|
||||
#include "wiring_private.h"
|
||||
#include "pins_arduino.h"
|
||||
|
||||
void pinMode(uint8_t pin, uint8_t mode)
|
||||
{
|
||||
uint8_t bit = digitalPinToBitMask(pin);
|
||||
uint8_t port = digitalPinToPort(pin);
|
||||
volatile uint8_t *reg, *out;
|
||||
|
||||
if (port == NOT_A_PIN) return;
|
||||
|
||||
// JWS: can I let the optimizer do this?
|
||||
reg = portModeRegister(port);
|
||||
out = portOutputRegister(port);
|
||||
|
||||
if (mode == INPUT) {
|
||||
uint8_t oldSREG = SREG;
|
||||
cli();
|
||||
*reg &= ~bit;
|
||||
*out &= ~bit;
|
||||
SREG = oldSREG;
|
||||
} else if (mode == INPUT_PULLUP) {
|
||||
uint8_t oldSREG = SREG;
|
||||
cli();
|
||||
*reg &= ~bit;
|
||||
*out |= bit;
|
||||
SREG = oldSREG;
|
||||
} else {
|
||||
uint8_t oldSREG = SREG;
|
||||
cli();
|
||||
*reg |= bit;
|
||||
SREG = oldSREG;
|
||||
}
|
||||
}
|
||||
|
||||
// Forcing this inline keeps the callers from having to push their own stuff
|
||||
// on the stack. It is a good performance win and only takes 1 more byte per
|
||||
// user than calling. (It will take more bytes on the 168.)
|
||||
//
|
||||
// But shouldn't this be moved into pinMode? Seems silly to check and do on
|
||||
// each digitalread or write.
|
||||
//
|
||||
// Mark Sproul:
|
||||
// - Removed inline. Save 170 bytes on atmega1280
|
||||
// - changed to a switch statment; added 32 bytes but much easier to read and maintain.
|
||||
// - Added more #ifdefs, now compiles for atmega645
|
||||
//
|
||||
//static inline void turnOffPWM(uint8_t timer) __attribute__ ((always_inline));
|
||||
//static inline void turnOffPWM(uint8_t timer)
|
||||
static void turnOffPWM(uint8_t timer)
|
||||
{
|
||||
switch (timer)
|
||||
{
|
||||
#if defined(TCCR1A) && defined(COM1A1)
|
||||
case TIMER1A: cbi(TCCR1A, COM1A1); break;
|
||||
#endif
|
||||
#if defined(TCCR1A) && defined(COM1B1)
|
||||
case TIMER1B: cbi(TCCR1A, COM1B1); break;
|
||||
#endif
|
||||
#if defined(TCCR1A) && defined(COM1C1)
|
||||
case TIMER1C: cbi(TCCR1A, COM1C1); break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR2) && defined(COM21)
|
||||
case TIMER2: cbi(TCCR2, COM21); break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR0A) && defined(COM0A1)
|
||||
case TIMER0A: cbi(TCCR0A, COM0A1); break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR0A) && defined(COM0B1)
|
||||
case TIMER0B: cbi(TCCR0A, COM0B1); break;
|
||||
#endif
|
||||
#if defined(TCCR2A) && defined(COM2A1)
|
||||
case TIMER2A: cbi(TCCR2A, COM2A1); break;
|
||||
#endif
|
||||
#if defined(TCCR2A) && defined(COM2B1)
|
||||
case TIMER2B: cbi(TCCR2A, COM2B1); break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR3A) && defined(COM3A1)
|
||||
case TIMER3A: cbi(TCCR3A, COM3A1); break;
|
||||
#endif
|
||||
#if defined(TCCR3A) && defined(COM3B1)
|
||||
case TIMER3B: cbi(TCCR3A, COM3B1); break;
|
||||
#endif
|
||||
#if defined(TCCR3A) && defined(COM3C1)
|
||||
case TIMER3C: cbi(TCCR3A, COM3C1); break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR4A) && defined(COM4A1)
|
||||
case TIMER4A: cbi(TCCR4A, COM4A1); break;
|
||||
#endif
|
||||
#if defined(TCCR4A) && defined(COM4B1)
|
||||
case TIMER4B: cbi(TCCR4A, COM4B1); break;
|
||||
#endif
|
||||
#if defined(TCCR4A) && defined(COM4C1)
|
||||
case TIMER4C: cbi(TCCR4A, COM4C1); break;
|
||||
#endif
|
||||
#if defined(TCCR4C) && defined(COM4D1)
|
||||
case TIMER4D: cbi(TCCR4C, COM4D1); break;
|
||||
#endif
|
||||
|
||||
#if defined(TCCR5A)
|
||||
case TIMER5A: cbi(TCCR5A, COM5A1); break;
|
||||
case TIMER5B: cbi(TCCR5A, COM5B1); break;
|
||||
case TIMER5C: cbi(TCCR5A, COM5C1); break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
void digitalWrite(uint8_t pin, uint8_t val)
|
||||
{
|
||||
uint8_t timer = digitalPinToTimer(pin);
|
||||
uint8_t bit = digitalPinToBitMask(pin);
|
||||
uint8_t port = digitalPinToPort(pin);
|
||||
volatile uint8_t *out;
|
||||
|
||||
if (port == NOT_A_PIN) return;
|
||||
|
||||
// If the pin that support PWM output, we need to turn it off
|
||||
// before doing a digital write.
|
||||
if (timer != NOT_ON_TIMER) turnOffPWM(timer);
|
||||
|
||||
out = portOutputRegister(port);
|
||||
|
||||
uint8_t oldSREG = SREG;
|
||||
cli();
|
||||
|
||||
if (val == LOW) {
|
||||
*out &= ~bit;
|
||||
} else {
|
||||
*out |= bit;
|
||||
}
|
||||
|
||||
SREG = oldSREG;
|
||||
}
|
||||
|
||||
int digitalRead(uint8_t pin)
|
||||
{
|
||||
uint8_t timer = digitalPinToTimer(pin);
|
||||
uint8_t bit = digitalPinToBitMask(pin);
|
||||
uint8_t port = digitalPinToPort(pin);
|
||||
|
||||
if (port == NOT_A_PIN) return LOW;
|
||||
|
||||
// If the pin that support PWM output, we need to turn it off
|
||||
// before getting a digital reading.
|
||||
if (timer != NOT_ON_TIMER) turnOffPWM(timer);
|
||||
|
||||
if (*portInputRegister(port) & bit) return HIGH;
|
||||
return LOW;
|
||||
}
|
|
@ -0,0 +1,72 @@
|
|||
/*
|
||||
wiring_private.h - Internal header file.
|
||||
Part of Arduino - http://www.arduino.cc/
|
||||
|
||||
Copyright (c) 2005-2006 David A. Mellis
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General
|
||||
Public License along with this library; if not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef WiringPrivate_h
|
||||
#define WiringPrivate_h
|
||||
|
||||
#include <avr/io.h>
|
||||
#include <avr/interrupt.h>
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "Arduino.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"{
|
||||
#endif
|
||||
|
||||
#ifndef cbi
|
||||
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
|
||||
#endif
|
||||
#ifndef sbi
|
||||
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))
|
||||
#endif
|
||||
|
||||
uint32_t countPulseASM(volatile uint8_t *port, uint8_t bit, uint8_t stateMask, unsigned long maxloops);
|
||||
|
||||
#define EXTERNAL_INT_0 0
|
||||
#define EXTERNAL_INT_1 1
|
||||
#define EXTERNAL_INT_2 2
|
||||
#define EXTERNAL_INT_3 3
|
||||
#define EXTERNAL_INT_4 4
|
||||
#define EXTERNAL_INT_5 5
|
||||
#define EXTERNAL_INT_6 6
|
||||
#define EXTERNAL_INT_7 7
|
||||
|
||||
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega128RFA1__) || defined(__AVR_ATmega256RFR2__) || \
|
||||
defined(__AVR_AT90USB82__) || defined(__AVR_AT90USB162__) || defined(__AVR_ATmega32U2__) || defined(__AVR_ATmega16U2__) || defined(__AVR_ATmega8U2__)
|
||||
#define EXTERNAL_NUM_INTERRUPTS 8
|
||||
#elif defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644__) || defined(__AVR_ATmega644A__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644PA__)
|
||||
#define EXTERNAL_NUM_INTERRUPTS 3
|
||||
#elif defined(__AVR_ATmega32U4__)
|
||||
#define EXTERNAL_NUM_INTERRUPTS 5
|
||||
#else
|
||||
#define EXTERNAL_NUM_INTERRUPTS 2
|
||||
#endif
|
||||
|
||||
typedef void (*voidFuncPtr)(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif
|
|
@ -0,0 +1,178 @@
|
|||
/*
|
||||
wiring_pulse.s - pulseInASM() function in different flavours
|
||||
Part of Arduino - http://www.arduino.cc/
|
||||
|
||||
Copyright (c) 2014 Martino Facchin
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General
|
||||
Public License along with this library; if not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* The following routine was generated by avr-gcc 4.8.3 with the following parameters
|
||||
* -gstabs -Wa,-ahlmsd=output.lst -dp -fverbose-asm -O2
|
||||
* on the original C function
|
||||
*
|
||||
* unsigned long pulseInSimpl(volatile uint8_t *port, uint8_t bit, uint8_t stateMask, unsigned long maxloops)
|
||||
* {
|
||||
* unsigned long width = 0;
|
||||
* // wait for any previous pulse to end
|
||||
* while ((*port & bit) == stateMask)
|
||||
* if (--maxloops == 0)
|
||||
* return 0;
|
||||
*
|
||||
* // wait for the pulse to start
|
||||
* while ((*port & bit) != stateMask)
|
||||
* if (--maxloops == 0)
|
||||
* return 0;
|
||||
*
|
||||
* // wait for the pulse to stop
|
||||
* while ((*port & bit) == stateMask) {
|
||||
* if (++width == maxloops)
|
||||
* return 0;
|
||||
* }
|
||||
* return width;
|
||||
* }
|
||||
*
|
||||
* some compiler outputs were removed but the rest of the code is untouched
|
||||
*/
|
||||
|
||||
#include <avr/io.h>
|
||||
|
||||
.section .text
|
||||
|
||||
.global countPulseASM
|
||||
|
||||
countPulseASM:
|
||||
|
||||
.LM0:
|
||||
.LFBB1:
|
||||
push r12 ; ; 130 pushqi1/1 [length = 1]
|
||||
push r13 ; ; 131 pushqi1/1 [length = 1]
|
||||
push r14 ; ; 132 pushqi1/1 [length = 1]
|
||||
push r15 ; ; 133 pushqi1/1 [length = 1]
|
||||
push r16 ; ; 134 pushqi1/1 [length = 1]
|
||||
push r17 ; ; 135 pushqi1/1 [length = 1]
|
||||
/* prologue: function */
|
||||
/* frame size = 0 */
|
||||
/* stack size = 6 */
|
||||
.L__stack_usage = 6
|
||||
mov r30,r24 ; port, port ; 2 *movhi/1 [length = 2]
|
||||
mov r31,r25 ; port, port
|
||||
/* unsigned long width = 0;
|
||||
*** // wait for any previous pulse to end
|
||||
*** while ((*port & bit) == stateMask)
|
||||
*/
|
||||
.LM1:
|
||||
rjmp .L2 ; ; 181 jump [length = 1]
|
||||
.L4:
|
||||
/* if (--maxloops == 0) */
|
||||
.LM2:
|
||||
subi r16,1 ; maxloops, ; 17 addsi3/2 [length = 4]
|
||||
sbc r17, r1 ; maxloops
|
||||
sbc r18, r1 ; maxloops
|
||||
sbc r19, r1 ; maxloops
|
||||
breq .L13 ; , ; 19 branch [length = 1]
|
||||
.L2:
|
||||
/* if (--maxloops == 0) */
|
||||
.LM3:
|
||||
ld r25,Z ; D.1554, *port_7(D) ; 22 movqi_insn/4 [length = 1]
|
||||
and r25,r22 ; D.1554, bit ; 24 andqi3/1 [length = 1]
|
||||
cp r25,r20 ; D.1554, stateMask ; 25 *cmpqi/2 [length = 1]
|
||||
breq .L4 ; , ; 26 branch [length = 1]
|
||||
rjmp .L6 ; ; 184 jump [length = 1]
|
||||
.L7:
|
||||
/* return 0;
|
||||
***
|
||||
*** // wait for the pulse to start
|
||||
*** while ((*port & bit) != stateMask)
|
||||
*** if (--maxloops == 0)
|
||||
*/
|
||||
.LM4:
|
||||
subi r16,1 ; maxloops, ; 31 addsi3/2 [length = 4]
|
||||
sbc r17, r1 ; maxloops
|
||||
sbc r18, r1 ; maxloops
|
||||
sbc r19, r1 ; maxloops
|
||||
breq .L13 ; , ; 33 branch [length = 1]
|
||||
.L6:
|
||||
/* if (--maxloops == 0) */
|
||||
.LM5:
|
||||
ld r25,Z ; D.1554, *port_7(D) ; 41 movqi_insn/4 [length = 1]
|
||||
and r25,r22 ; D.1554, bit ; 43 andqi3/1 [length = 1]
|
||||
cpse r25,r20 ; D.1554, stateMask ; 44 enable_interrupt-3 [length = 1]
|
||||
rjmp .L7 ;
|
||||
mov r12, r1 ; width ; 7 *movsi/2 [length = 4]
|
||||
mov r13, r1 ; width
|
||||
mov r14, r1 ; width
|
||||
mov r15, r1 ; width
|
||||
rjmp .L9 ; ; 186 jump [length = 1]
|
||||
.L10:
|
||||
/* return 0;
|
||||
***
|
||||
*** // wait for the pulse to stop
|
||||
*** while ((*port & bit) == stateMask) {
|
||||
*** if (++width == maxloops)
|
||||
*/
|
||||
.LM6:
|
||||
ldi r24,-1 ; , ; 50 addsi3/3 [length = 5]
|
||||
sub r12,r24 ; width,
|
||||
sbc r13,r24 ; width,
|
||||
sbc r14,r24 ; width,
|
||||
sbc r15,r24 ; width,
|
||||
cp r16,r12 ; maxloops, width ; 51 *cmpsi/2 [length = 4]
|
||||
cpc r17,r13 ; maxloops, width
|
||||
cpc r18,r14 ; maxloops, width
|
||||
cpc r19,r15 ; maxloops, width
|
||||
breq .L13 ; , ; 52 branch [length = 1]
|
||||
.L9:
|
||||
/* if (++width == maxloops) */
|
||||
.LM7:
|
||||
ld r24,Z ; D.1554, *port_7(D) ; 60 movqi_insn/4 [length = 1]
|
||||
and r24,r22 ; D.1554, bit ; 62 andqi3/1 [length = 1]
|
||||
cp r24,r20 ; D.1554, stateMask ; 63 *cmpqi/2 [length = 1]
|
||||
breq .L10 ; , ; 64 branch [length = 1]
|
||||
/* return 0;
|
||||
*** }
|
||||
*** return width;
|
||||
*/
|
||||
.LM8:
|
||||
mov r22,r12 ; D.1553, width ; 108 movqi_insn/1 [length = 1]
|
||||
mov r23,r13 ; D.1553, width ; 109 movqi_insn/1 [length = 1]
|
||||
mov r24,r14 ; D.1553, width ; 110 movqi_insn/1 [length = 1]
|
||||
mov r25,r15 ; D.1553, width ; 111 movqi_insn/1 [length = 1]
|
||||
/* epilogue start */
|
||||
.LM9:
|
||||
pop r17 ; ; 171 popqi [length = 1]
|
||||
pop r16 ; ; 172 popqi [length = 1]
|
||||
pop r15 ; ; 173 popqi [length = 1]
|
||||
pop r14 ; ; 174 popqi [length = 1]
|
||||
pop r13 ; ; 175 popqi [length = 1]
|
||||
pop r12 ; ; 176 popqi [length = 1]
|
||||
ret ; 177 return_from_epilogue [length = 1]
|
||||
.L13:
|
||||
.LM10:
|
||||
ldi r22,0 ; D.1553 ; 120 movqi_insn/1 [length = 1]
|
||||
ldi r23,0 ; D.1553 ; 121 movqi_insn/1 [length = 1]
|
||||
ldi r24,0 ; D.1553 ; 122 movqi_insn/1 [length = 1]
|
||||
ldi r25,0 ; D.1553 ; 123 movqi_insn/1 [length = 1]
|
||||
/* epilogue start */
|
||||
.LM11:
|
||||
pop r17 ; ; 138 popqi [length = 1]
|
||||
pop r16 ; ; 139 popqi [length = 1]
|
||||
pop r15 ; ; 140 popqi [length = 1]
|
||||
pop r14 ; ; 141 popqi [length = 1]
|
||||
pop r13 ; ; 142 popqi [length = 1]
|
||||
pop r12 ; ; 143 popqi [length = 1]
|
||||
ret ; 144 return_from_epilogue [length = 1]
|
|
@ -0,0 +1,93 @@
|
|||
/*
|
||||
wiring_pulse.c - pulseIn() function
|
||||
Part of Arduino - http://www.arduino.cc/
|
||||
|
||||
Copyright (c) 2005-2006 David A. Mellis
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General
|
||||
Public License along with this library; if not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include "wiring_private.h"
|
||||
#include "pins_arduino.h"
|
||||
|
||||
/* Measures the length (in microseconds) of a pulse on the pin; state is HIGH
|
||||
* or LOW, the type of pulse to measure. Works on pulses from 2-3 microseconds
|
||||
* to 3 minutes in length, but must be called at least a few dozen microseconds
|
||||
* before the start of the pulse.
|
||||
*
|
||||
* This function performs better with short pulses in noInterrupt() context
|
||||
*/
|
||||
unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout)
|
||||
{
|
||||
// cache the port and bit of the pin in order to speed up the
|
||||
// pulse width measuring loop and achieve finer resolution. calling
|
||||
// digitalRead() instead yields much coarser resolution.
|
||||
uint8_t bit = digitalPinToBitMask(pin);
|
||||
uint8_t port = digitalPinToPort(pin);
|
||||
uint8_t stateMask = (state ? bit : 0);
|
||||
|
||||
// convert the timeout from microseconds to a number of times through
|
||||
// the initial loop; it takes approximately 16 clock cycles per iteration
|
||||
unsigned long maxloops = microsecondsToClockCycles(timeout)/16;
|
||||
|
||||
unsigned long width = countPulseASM(portInputRegister(port), bit, stateMask, maxloops);
|
||||
|
||||
// prevent clockCyclesToMicroseconds to return bogus values if countPulseASM timed out
|
||||
if (width)
|
||||
return clockCyclesToMicroseconds(width * 16 + 16);
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Measures the length (in microseconds) of a pulse on the pin; state is HIGH
|
||||
* or LOW, the type of pulse to measure. Works on pulses from 2-3 microseconds
|
||||
* to 3 minutes in length, but must be called at least a few dozen microseconds
|
||||
* before the start of the pulse.
|
||||
*
|
||||
* ATTENTION:
|
||||
* this function relies on micros() so cannot be used in noInterrupt() context
|
||||
*/
|
||||
unsigned long pulseInLong(uint8_t pin, uint8_t state, unsigned long timeout)
|
||||
{
|
||||
// cache the port and bit of the pin in order to speed up the
|
||||
// pulse width measuring loop and achieve finer resolution. calling
|
||||
// digitalRead() instead yields much coarser resolution.
|
||||
uint8_t bit = digitalPinToBitMask(pin);
|
||||
uint8_t port = digitalPinToPort(pin);
|
||||
uint8_t stateMask = (state ? bit : 0);
|
||||
|
||||
unsigned long startMicros = micros();
|
||||
|
||||
// wait for any previous pulse to end
|
||||
while ((*portInputRegister(port) & bit) == stateMask) {
|
||||
if (micros() - startMicros > timeout)
|
||||
return 0;
|
||||
}
|
||||
|
||||
// wait for the pulse to start
|
||||
while ((*portInputRegister(port) & bit) != stateMask) {
|
||||
if (micros() - startMicros > timeout)
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned long start = micros();
|
||||
// wait for the pulse to stop
|
||||
while ((*portInputRegister(port) & bit) == stateMask) {
|
||||
if (micros() - startMicros > timeout)
|
||||
return 0;
|
||||
}
|
||||
return micros() - start;
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
/*
|
||||
wiring_shift.c - shiftOut() function
|
||||
Part of Arduino - http://www.arduino.cc/
|
||||
|
||||
Copyright (c) 2005-2006 David A. Mellis
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General
|
||||
Public License along with this library; if not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include "wiring_private.h"
|
||||
|
||||
uint8_t shiftIn(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder) {
|
||||
uint8_t value = 0;
|
||||
uint8_t i;
|
||||
|
||||
for (i = 0; i < 8; ++i) {
|
||||
digitalWrite(clockPin, HIGH);
|
||||
if (bitOrder == LSBFIRST)
|
||||
value |= digitalRead(dataPin) << i;
|
||||
else
|
||||
value |= digitalRead(dataPin) << (7 - i);
|
||||
digitalWrite(clockPin, LOW);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val)
|
||||
{
|
||||
uint8_t i;
|
||||
|
||||
for (i = 0; i < 8; i++) {
|
||||
if (bitOrder == LSBFIRST)
|
||||
digitalWrite(dataPin, !!(val & (1 << i)));
|
||||
else
|
||||
digitalWrite(dataPin, !!(val & (1 << (7 - i))));
|
||||
|
||||
digitalWrite(clockPin, HIGH);
|
||||
digitalWrite(clockPin, LOW);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,131 @@
|
|||
|
||||
# Arduino AVR Core and platform.
|
||||
# ------------------------------
|
||||
#
|
||||
# For more info:
|
||||
# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5-3rd-party-Hardware-specification
|
||||
|
||||
name=Arduboy versions
|
||||
version=1.6.20
|
||||
|
||||
# AVR compile variables
|
||||
# ---------------------
|
||||
|
||||
compiler.warning_flags=-w
|
||||
compiler.warning_flags.none=-w
|
||||
compiler.warning_flags.default=
|
||||
compiler.warning_flags.more=-Wall
|
||||
compiler.warning_flags.all=-Wall -Wextra
|
||||
|
||||
# Default "compiler.path" is correct, change only if you want to override the initial value
|
||||
compiler.path={runtime.tools.avr-gcc.path}/bin/
|
||||
compiler.c.cmd=avr-gcc
|
||||
compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects
|
||||
compiler.c.elf.flags={compiler.warning_flags} -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections
|
||||
compiler.c.elf.cmd=avr-gcc
|
||||
compiler.S.flags=-c -g -x assembler-with-cpp -flto -MMD
|
||||
compiler.cpp.cmd=avr-g++
|
||||
compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto
|
||||
compiler.ar.cmd=avr-gcc-ar
|
||||
compiler.ar.flags=rcs
|
||||
compiler.objcopy.cmd=avr-objcopy
|
||||
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
|
||||
compiler.elf2hex.flags=-O ihex -R .eeprom
|
||||
compiler.elf2hex.cmd=avr-objcopy
|
||||
compiler.ldflags=
|
||||
compiler.size.cmd=avr-size
|
||||
|
||||
# This can be overridden in boards.txt
|
||||
build.extra_flags=
|
||||
build.display=
|
||||
|
||||
# These can be overridden in platform.local.txt
|
||||
compiler.c.extra_flags=
|
||||
compiler.c.elf.extra_flags=
|
||||
compiler.S.extra_flags=
|
||||
compiler.cpp.extra_flags=
|
||||
compiler.ar.extra_flags=
|
||||
compiler.objcopy.eep.extra_flags=
|
||||
compiler.elf2hex.extra_flags=
|
||||
|
||||
# AVR compile patterns
|
||||
# --------------------
|
||||
|
||||
## Compile c files
|
||||
recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.c.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{object_file}"
|
||||
|
||||
## Compile c++ files
|
||||
recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{object_file}"
|
||||
|
||||
## Compile S files
|
||||
recipe.S.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.S.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{object_file}"
|
||||
|
||||
## Create archives
|
||||
# archive_file_path is needed for backwards compatibility with IDE 1.6.5 or older, IDE 1.6.6 or newer overrides this value
|
||||
archive_file_path={build.path}/{archive_file}
|
||||
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
|
||||
|
||||
## Combine gc-sections, archives, and objects
|
||||
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mmcu={build.mcu} {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" {object_files} "{build.path}/{archive_file}" "-L{build.path}" -lm
|
||||
|
||||
## Create output files (.eep and .hex)
|
||||
recipe.objcopy.eep.pattern="{compiler.path}{compiler.objcopy.cmd}" {compiler.objcopy.eep.flags} {compiler.objcopy.eep.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.eep"
|
||||
recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex"
|
||||
|
||||
## Save hex
|
||||
recipe.output.tmp_file={build.project_name}.hex
|
||||
recipe.output.save_file={build.project_name}-{build.variant}{build.display}.hex
|
||||
|
||||
## Compute size
|
||||
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
|
||||
recipe.size.regex=^(?:\.text|\.data|\.bootloader)\s+([0-9]+).*
|
||||
recipe.size.regex.data=^(?:\.data|\.bss|\.noinit)\s+([0-9]+).*
|
||||
recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
|
||||
|
||||
## Preprocessor
|
||||
preproc.includes.flags=-w -x c++ -M -MG -MP
|
||||
recipe.preproc.includes="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} {preproc.includes.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {includes} "{source_file}"
|
||||
|
||||
preproc.macros.flags=-w -x c++ -E -CC
|
||||
recipe.preproc.macros="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} {preproc.macros.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{preprocessed_file_path}"
|
||||
|
||||
# AVR Uploader/Programmers tools
|
||||
# ------------------------------
|
||||
|
||||
tools.avrdude.path={runtime.tools.avrdude.path}
|
||||
tools.avrdude.cmd.path={path}/bin/avrdude
|
||||
tools.avrdude.config.path={path}/etc/avrdude.conf
|
||||
|
||||
tools.avrdude.network_cmd={runtime.tools.arduinoOTA.path}/bin/arduinoOTA
|
||||
|
||||
tools.avrdude.upload.params.verbose=-v
|
||||
tools.avrdude.upload.params.quiet=-q -q
|
||||
# tools.avrdude.upload.verify is needed for backwards compatibility with IDE 1.6.8 or older, IDE 1.6.9 or newer overrides this value
|
||||
tools.avrdude.upload.verify=
|
||||
tools.avrdude.upload.params.noverify=-V
|
||||
tools.avrdude.upload.pattern="{cmd.path}" "-C{config.path}" {upload.verbose} {upload.verify} -p{build.mcu} -c{upload.protocol} "-P{serial.port}" -b{upload.speed} -D "-Uflash:w:{build.path}/{build.project_name}.hex:i"
|
||||
|
||||
tools.avrdude.program.params.verbose=-v
|
||||
tools.avrdude.program.params.quiet=-q -q
|
||||
# tools.avrdude.program.verify is needed for backwards compatibility with IDE 1.6.8 or older, IDE 1.6.9 or newer overrides this value
|
||||
tools.avrdude.program.verify=
|
||||
tools.avrdude.program.params.noverify=-V
|
||||
tools.avrdude.program.pattern="{cmd.path}" "-C{config.path}" {program.verbose} {program.verify} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{build.path}/{build.project_name}.hex:i"
|
||||
|
||||
tools.avrdude.erase.params.verbose=-v
|
||||
tools.avrdude.erase.params.quiet=-q -q
|
||||
tools.avrdude.erase.pattern="{cmd.path}" "-C{config.path}" {erase.verbose} -p{build.mcu} -c{protocol} {program.extra_params} -e -Ulock:w:{bootloader.unlock_bits}:m -Uefuse:w:{bootloader.extended_fuses}:m -Uhfuse:w:{bootloader.high_fuses}:m -Ulfuse:w:{bootloader.low_fuses}:m
|
||||
|
||||
tools.avrdude.bootloader.params.verbose=-v
|
||||
tools.avrdude.bootloader.params.quiet=-q -q
|
||||
tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{runtime.platform.path}/bootloaders/{bootloader.file}:i" -Ulock:w:{bootloader.lock_bits}:m
|
||||
|
||||
tools.avrdude_remote.upload.pattern=/usr/bin/run-avrdude /tmp/sketch.hex {upload.verbose} -p{build.mcu}
|
||||
|
||||
tools.avrdude.upload.network_pattern="{network_cmd}" -address {serial.port} -port {upload.network.port} -sketch "{build.path}/{build.project_name}.hex" -upload {upload.network.endpoint_upload} -sync {upload.network.endpoint_sync} -reset {upload.network.endpoint_reset} -sync_exp {upload.network.sync_return}
|
||||
|
||||
# USB Default Flags
|
||||
# Default blank usb manufacturer will be filled in at compile time
|
||||
# - from numeric vendor ID, set to Unknown otherwise
|
||||
build.usb_manufacturer="Unknown"
|
||||
build.usb_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'
|
|
@ -0,0 +1,3 @@
|
|||
Arduboy HomeMade package source
|
||||
|
||||
This is the latest source and may contain changes not yet available in the latest zip archive
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
pins_arduino.h - Pin definition functions for Arduino
|
||||
Part of Arduino - http://www.arduino.cc/
|
||||
|
||||
Copyright (c) 2007 David A. Mellis
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General
|
||||
Public License along with this library; if not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include "../arduboy-leonardo/pins_arduino.h"
|
||||
|
||||
#undef LED_BUILTIN
|
||||
|
||||
#define LED_BUILTIN 17
|
|
@ -0,0 +1,391 @@
|
|||
/*
|
||||
pins_arduino.h - Pin definition functions for Arduino
|
||||
Part of Arduino - http://www.arduino.cc/
|
||||
|
||||
Copyright (c) 2007 David A. Mellis
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General
|
||||
Public License along with this library; if not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <avr/pgmspace.h>
|
||||
|
||||
// Workaround for wrong definitions in "iom32u4.h".
|
||||
// This should be fixed in the AVR toolchain.
|
||||
#undef UHCON
|
||||
#undef UHINT
|
||||
#undef UHIEN
|
||||
#undef UHADDR
|
||||
#undef UHFNUM
|
||||
#undef UHFNUML
|
||||
#undef UHFNUMH
|
||||
#undef UHFLEN
|
||||
#undef UPINRQX
|
||||
#undef UPINTX
|
||||
#undef UPNUM
|
||||
#undef UPRST
|
||||
#undef UPCONX
|
||||
#undef UPCFG0X
|
||||
#undef UPCFG1X
|
||||
#undef UPSTAX
|
||||
#undef UPCFG2X
|
||||
#undef UPIENX
|
||||
#undef UPDATX
|
||||
#undef TCCR2A
|
||||
#undef WGM20
|
||||
#undef WGM21
|
||||
#undef COM2B0
|
||||
#undef COM2B1
|
||||
#undef COM2A0
|
||||
#undef COM2A1
|
||||
#undef TCCR2B
|
||||
#undef CS20
|
||||
#undef CS21
|
||||
#undef CS22
|
||||
#undef WGM22
|
||||
#undef FOC2B
|
||||
#undef FOC2A
|
||||
#undef TCNT2
|
||||
#undef TCNT2_0
|
||||
#undef TCNT2_1
|
||||
#undef TCNT2_2
|
||||
#undef TCNT2_3
|
||||
#undef TCNT2_4
|
||||
#undef TCNT2_5
|
||||
#undef TCNT2_6
|
||||
#undef TCNT2_7
|
||||
#undef OCR2A
|
||||
#undef OCR2_0
|
||||
#undef OCR2_1
|
||||
#undef OCR2_2
|
||||
#undef OCR2_3
|
||||
#undef OCR2_4
|
||||
#undef OCR2_5
|
||||
#undef OCR2_6
|
||||
#undef OCR2_7
|
||||
#undef OCR2B
|
||||
#undef OCR2_0
|
||||
#undef OCR2_1
|
||||
#undef OCR2_2
|
||||
#undef OCR2_3
|
||||
#undef OCR2_4
|
||||
#undef OCR2_5
|
||||
#undef OCR2_6
|
||||
#undef OCR2_7
|
||||
|
||||
#define NUM_DIGITAL_PINS 31
|
||||
#define NUM_ANALOG_INPUTS 12
|
||||
|
||||
#define TX_RX_LED_INIT DDRD |= (1<<5), DDRB |= (1<<0)
|
||||
#define TXLED0 PORTD |= (1<<5)
|
||||
#define TXLED1 PORTD &= ~(1<<5)
|
||||
#define RXLED0 PORTB |= (1<<0)
|
||||
#define RXLED1 PORTB &= ~(1<<0)
|
||||
|
||||
#define PIN_WIRE_SDA (2)
|
||||
#define PIN_WIRE_SCL (3)
|
||||
|
||||
static const uint8_t SDA = PIN_WIRE_SDA;
|
||||
static const uint8_t SCL = PIN_WIRE_SCL;
|
||||
|
||||
#define LED_BUILTIN 13
|
||||
#define LED_BUILTIN_RX 17
|
||||
#define LED_BUILTIN_TX 30
|
||||
|
||||
// Map SPI port to 'new' pins D14..D17
|
||||
#define PIN_SPI_SS (17)
|
||||
#define PIN_SPI_MOSI (16)
|
||||
#define PIN_SPI_MISO (14)
|
||||
#define PIN_SPI_SCK (15)
|
||||
|
||||
static const uint8_t SS = PIN_SPI_SS;
|
||||
static const uint8_t MOSI = PIN_SPI_MOSI;
|
||||
static const uint8_t MISO = PIN_SPI_MISO;
|
||||
static const uint8_t SCK = PIN_SPI_SCK;
|
||||
|
||||
// Mapping of analog pins as digital I/O
|
||||
// A6-A11 share with digital pins
|
||||
#define PIN_A0 (18)
|
||||
#define PIN_A1 (19)
|
||||
#define PIN_A2 (20)
|
||||
#define PIN_A3 (21)
|
||||
#define PIN_A4 (22)
|
||||
#define PIN_A5 (23)
|
||||
#define PIN_A6 (24)
|
||||
#define PIN_A7 (25)
|
||||
#define PIN_A8 (26)
|
||||
#define PIN_A9 (27)
|
||||
#define PIN_A10 (28)
|
||||
#define PIN_A11 (29)
|
||||
|
||||
static const uint8_t A0 = PIN_A0;
|
||||
static const uint8_t A1 = PIN_A1;
|
||||
static const uint8_t A2 = PIN_A2;
|
||||
static const uint8_t A3 = PIN_A3;
|
||||
static const uint8_t A4 = PIN_A4;
|
||||
static const uint8_t A5 = PIN_A5;
|
||||
static const uint8_t A6 = PIN_A6; // D4
|
||||
static const uint8_t A7 = PIN_A7; // D6
|
||||
static const uint8_t A8 = PIN_A8; // D8
|
||||
static const uint8_t A9 = PIN_A9; // D9
|
||||
static const uint8_t A10 = PIN_A10; // D10
|
||||
static const uint8_t A11 = PIN_A11; // D12
|
||||
|
||||
#define digitalPinToPCICR(p) ((((p) >= 8 && (p) <= 11) || ((p) >= 14 && (p) <= 17) || ((p) >= A8 && (p) <= A10)) ? (&PCICR) : ((uint8_t *)0))
|
||||
#define digitalPinToPCICRbit(p) 0
|
||||
#define digitalPinToPCMSK(p) ((((p) >= 8 && (p) <= 11) || ((p) >= 14 && (p) <= 17) || ((p) >= A8 && (p) <= A10)) ? (&PCMSK0) : ((uint8_t *)0))
|
||||
#define digitalPinToPCMSKbit(p) ( ((p) >= 8 && (p) <= 11) ? (p) - 4 : ((p) == 14 ? 3 : ((p) == 15 ? 1 : ((p) == 16 ? 2 : ((p) == 17 ? 0 : (p - A8 + 4))))))
|
||||
|
||||
// __AVR_ATmega32U4__ has an unusual mapping of pins to channels
|
||||
extern const uint8_t PROGMEM analog_pin_to_channel_PGM[];
|
||||
#define analogPinToChannel(P) ( pgm_read_byte( analog_pin_to_channel_PGM + (P) ) )
|
||||
|
||||
#define digitalPinHasPWM(p) ((p) == 3 || (p) == 5 || (p) == 6 || (p) == 9 || (p) == 10 || (p) == 11 || (p) == 13)
|
||||
|
||||
#define digitalPinToInterrupt(p) ((p) == 0 ? 2 : ((p) == 1 ? 3 : ((p) == 2 ? 1 : ((p) == 3 ? 0 : ((p) == 7 ? 4 : NOT_AN_INTERRUPT)))))
|
||||
|
||||
#ifdef ARDUINO_MAIN
|
||||
|
||||
// On the Arduino board, digital pins are also used
|
||||
// for the analog output (software PWM). Analog input
|
||||
// pins are a separate set.
|
||||
|
||||
// ATMEL ATMEGA32U4 / ARDUINO LEONARDO
|
||||
//
|
||||
// D0 PD2 RXD1/INT2
|
||||
// D1 PD3 TXD1/INT3
|
||||
// D2 PD1 SDA SDA/INT1
|
||||
// D3# PD0 PWM8/SCL OC0B/SCL/INT0
|
||||
// D4 A6 PD4 ADC8
|
||||
// D5# PC6 ??? OC3A/#OC4A
|
||||
// D6# A7 PD7 FastPWM #OC4D/ADC10
|
||||
// D7 PE6 INT6/AIN0
|
||||
//
|
||||
// D8 A8 PB4 ADC11/PCINT4
|
||||
// D9# A9 PB5 PWM16 OC1A/#OC4B/ADC12/PCINT5
|
||||
// D10# A10 PB6 PWM16 OC1B/0c4B/ADC13/PCINT6
|
||||
// D11# PB7 PWM8/16 0C0A/OC1C/#RTS/PCINT7
|
||||
// D12 A11 PD6 T1/#OC4D/ADC9
|
||||
// D13# PC7 PWM10 CLK0/OC4A
|
||||
//
|
||||
// A0 D18 PF7 ADC7
|
||||
// A1 D19 PF6 ADC6
|
||||
// A2 D20 PF5 ADC5
|
||||
// A3 D21 PF4 ADC4
|
||||
// A4 D22 PF1 ADC1
|
||||
// A5 D23 PF0 ADC0
|
||||
//
|
||||
// New pins D14..D17 to map SPI port to digital pins
|
||||
//
|
||||
// MISO D14 PB3 MISO,PCINT3
|
||||
// SCK D15 PB1 SCK,PCINT1
|
||||
// MOSI D16 PB2 MOSI,PCINT2
|
||||
// SS D17 PB0 RXLED,SS/PCINT0
|
||||
//
|
||||
// TXLED D30 PD5 XCK1
|
||||
// RXLED D17 PB0
|
||||
// HWB PE2 HWB
|
||||
|
||||
// these arrays map port names (e.g. port B) to the
|
||||
// appropriate addresses for various functions (e.g. reading
|
||||
// and writing)
|
||||
const uint16_t PROGMEM port_to_mode_PGM[] = {
|
||||
NOT_A_PORT,
|
||||
NOT_A_PORT,
|
||||
(uint16_t) &DDRB,
|
||||
(uint16_t) &DDRC,
|
||||
(uint16_t) &DDRD,
|
||||
(uint16_t) &DDRE,
|
||||
(uint16_t) &DDRF,
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM port_to_output_PGM[] = {
|
||||
NOT_A_PORT,
|
||||
NOT_A_PORT,
|
||||
(uint16_t) &PORTB,
|
||||
(uint16_t) &PORTC,
|
||||
(uint16_t) &PORTD,
|
||||
(uint16_t) &PORTE,
|
||||
(uint16_t) &PORTF,
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM port_to_input_PGM[] = {
|
||||
NOT_A_PORT,
|
||||
NOT_A_PORT,
|
||||
(uint16_t) &PINB,
|
||||
(uint16_t) &PINC,
|
||||
(uint16_t) &PIND,
|
||||
(uint16_t) &PINE,
|
||||
(uint16_t) &PINF,
|
||||
};
|
||||
|
||||
const uint8_t PROGMEM digital_pin_to_port_PGM[] = {
|
||||
PD, // D0 - PD2
|
||||
PD, // D1 - PD3
|
||||
PD, // D2 - PD1
|
||||
PD, // D3 - PD0
|
||||
PD, // D4 - PD4
|
||||
PC, // D5 - PC6
|
||||
PD, // D6 - PD7
|
||||
PE, // D7 - PE6
|
||||
|
||||
PB, // D8 - PB4
|
||||
PB, // D9 - PB5
|
||||
PB, // D10 - PB6
|
||||
PB, // D11 - PB7
|
||||
PD, // D12 - PD6
|
||||
PC, // D13 - PC7
|
||||
|
||||
PB, // D14 - MISO - PB3
|
||||
PB, // D15 - SCK - PB1
|
||||
PB, // D16 - MOSI - PB2
|
||||
PB, // D17 - SS - PB0
|
||||
|
||||
PF, // D18 - A0 - PF7
|
||||
PF, // D19 - A1 - PF6
|
||||
PF, // D20 - A2 - PF5
|
||||
PF, // D21 - A3 - PF4
|
||||
PF, // D22 - A4 - PF1
|
||||
PF, // D23 - A5 - PF0
|
||||
|
||||
PD, // D24 / D4 - A6 - PD4
|
||||
PD, // D25 / D6 - A7 - PD7
|
||||
PB, // D26 / D8 - A8 - PB4
|
||||
PB, // D27 / D9 - A9 - PB5
|
||||
PB, // D28 / D10 - A10 - PB6
|
||||
PD, // D29 / D12 - A11 - PD6
|
||||
PD, // D30 / TX Led - PD5
|
||||
};
|
||||
|
||||
const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[] = {
|
||||
_BV(2), // D0 - PD2
|
||||
_BV(3), // D1 - PD3
|
||||
_BV(1), // D2 - PD1
|
||||
_BV(0), // D3 - PD0
|
||||
_BV(4), // D4 - PD4
|
||||
_BV(6), // D5 - PC6
|
||||
_BV(7), // D6 - PD7
|
||||
_BV(6), // D7 - PE6
|
||||
|
||||
_BV(4), // D8 - PB4
|
||||
_BV(5), // D9 - PB5
|
||||
_BV(6), // D10 - PB6
|
||||
_BV(7), // D11 - PB7
|
||||
_BV(6), // D12 - PD6
|
||||
_BV(7), // D13 - PC7
|
||||
|
||||
_BV(3), // D14 - MISO - PB3
|
||||
_BV(1), // D15 - SCK - PB1
|
||||
_BV(2), // D16 - MOSI - PB2
|
||||
_BV(0), // D17 - SS - PB0
|
||||
|
||||
_BV(7), // D18 - A0 - PF7
|
||||
_BV(6), // D19 - A1 - PF6
|
||||
_BV(5), // D20 - A2 - PF5
|
||||
_BV(4), // D21 - A3 - PF4
|
||||
_BV(1), // D22 - A4 - PF1
|
||||
_BV(0), // D23 - A5 - PF0
|
||||
|
||||
_BV(4), // D24 / D4 - A6 - PD4
|
||||
_BV(7), // D25 / D6 - A7 - PD7
|
||||
_BV(4), // D26 / D8 - A8 - PB4
|
||||
_BV(5), // D27 / D9 - A9 - PB5
|
||||
_BV(6), // D28 / D10 - A10 - PB6
|
||||
_BV(6), // D29 / D12 - A11 - PD6
|
||||
_BV(5), // D30 / TX Led - PD5
|
||||
};
|
||||
|
||||
const uint8_t PROGMEM digital_pin_to_timer_PGM[] = {
|
||||
NOT_ON_TIMER,
|
||||
NOT_ON_TIMER,
|
||||
NOT_ON_TIMER,
|
||||
TIMER0B, /* 3 */
|
||||
NOT_ON_TIMER,
|
||||
TIMER3A, /* 5 */
|
||||
TIMER4D, /* 6 */
|
||||
NOT_ON_TIMER,
|
||||
|
||||
NOT_ON_TIMER,
|
||||
TIMER1A, /* 9 */
|
||||
TIMER1B, /* 10 */
|
||||
TIMER0A, /* 11 */
|
||||
|
||||
NOT_ON_TIMER,
|
||||
TIMER4A, /* 13 */
|
||||
|
||||
NOT_ON_TIMER,
|
||||
NOT_ON_TIMER,
|
||||
NOT_ON_TIMER,
|
||||
NOT_ON_TIMER,
|
||||
NOT_ON_TIMER,
|
||||
NOT_ON_TIMER,
|
||||
|
||||
NOT_ON_TIMER,
|
||||
NOT_ON_TIMER,
|
||||
NOT_ON_TIMER,
|
||||
NOT_ON_TIMER,
|
||||
NOT_ON_TIMER,
|
||||
NOT_ON_TIMER,
|
||||
NOT_ON_TIMER,
|
||||
NOT_ON_TIMER,
|
||||
NOT_ON_TIMER,
|
||||
NOT_ON_TIMER,
|
||||
NOT_ON_TIMER,
|
||||
};
|
||||
|
||||
const uint8_t PROGMEM analog_pin_to_channel_PGM[] = {
|
||||
7, // A0 PF7 ADC7
|
||||
6, // A1 PF6 ADC6
|
||||
5, // A2 PF5 ADC5
|
||||
4, // A3 PF4 ADC4
|
||||
1, // A4 PF1 ADC1
|
||||
0, // A5 PF0 ADC0
|
||||
8, // A6 D4 PD4 ADC8
|
||||
10, // A7 D6 PD7 ADC10
|
||||
11, // A8 D8 PB4 ADC11
|
||||
12, // A9 D9 PB5 ADC12
|
||||
13, // A10 D10 PB6 ADC13
|
||||
9 // A11 D12 PD6 ADC9
|
||||
};
|
||||
|
||||
#endif /* ARDUINO_MAIN */
|
||||
|
||||
// These serial port names are intended to allow libraries and architecture-neutral
|
||||
// sketches to automatically default to the correct port name for a particular type
|
||||
// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
|
||||
// the first hardware serial port whose RX/TX pins are not dedicated to another use.
|
||||
//
|
||||
// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
|
||||
//
|
||||
// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
|
||||
//
|
||||
// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
|
||||
//
|
||||
// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
|
||||
//
|
||||
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
|
||||
// pins are NOT connected to anything by default.
|
||||
#define SERIAL_PORT_MONITOR Serial
|
||||
#define SERIAL_PORT_USBVIRTUAL Serial
|
||||
#define SERIAL_PORT_HARDWARE Serial1
|
||||
#define SERIAL_PORT_HARDWARE_OPEN Serial1
|
||||
|
||||
// Alias SerialUSB to Serial
|
||||
#define SerialUSB SERIAL_PORT_USBVIRTUAL
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
pins_arduino.h - Pin definition functions for Arduino
|
||||
Part of Arduino - http://www.arduino.cc/
|
||||
|
||||
Copyright (c) 2007 David A. Mellis
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General
|
||||
Public License along with this library; if not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include "../arduboy-leonardo/pins_arduino.h"
|
||||
|
||||
#undef TXLED0
|
||||
#undef TXLED1
|
||||
#undef RXLED0
|
||||
#undef RXLED1
|
||||
#undef TX_RX_LED_INIT
|
||||
|
||||
#define TXLED0 PORTD &= ~(1<<5)
|
||||
#define TXLED1 PORTD |= (1<<5)
|
||||
#define RXLED0 PORTB &= ~(1<<0)
|
||||
#define RXLED1 PORTB |= (1<<0)
|
||||
#define TX_RX_LED_INIT DDRD |= (1<<5), DDRB |= (1<<0), TXLED0, RXLED0
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
pins_arduino.h - Pin definition functions for Arduino
|
||||
Part of Arduino - http://www.arduino.cc/
|
||||
|
||||
Copyright (c) 2007 David A. Mellis
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General
|
||||
Public License along with this library; if not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include "../arduboy-leonardo/pins_arduino.h"
|
||||
|
||||
#undef LED_BUILTIN
|
||||
|
||||
#define LED_BUILTIN 17
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
pins_arduino.h - Pin definition functions for Arduino
|
||||
Part of Arduino - http://www.arduino.cc/
|
||||
|
||||
Copyright (c) 2007 David A. Mellis
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General
|
||||
Public License along with this library; if not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include "../arduboy-leonardo/pins_arduino.h"
|
||||
|
||||
#undef LED_BUILTIN
|
||||
|
||||
#define LED_BUILTIN 17
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
pins_arduino.h - Pin definition functions for Arduino
|
||||
Part of Arduino - http://www.arduino.cc/
|
||||
|
||||
Copyright (c) 2007 David A. Mellis
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General
|
||||
Public License along with this library; if not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include "../arduboy-leonardo/pins_arduino.h"
|
||||
|
||||
#undef LED_BUILTIN
|
||||
|
||||
#define LED_BUILTIN 9
|
Loading…
Reference in New Issue