summaryrefslogtreecommitdiff
path: root/test/ldTest/tests/avr-hw.ld
diff options
context:
space:
mode:
authorRr422018-06-04 15:25:44 +0530
committerRr422018-06-04 15:25:44 +0530
commit1f483baf37359032ca3224a5d07853aaf725def4 (patch)
tree040f6aa8f4bf07fd7fff0dd4ab2b874dc54a1fd3 /test/ldTest/tests/avr-hw.ld
parent1941edf7847565074fc79f339c8f8e609c5dca9d (diff)
downloadLDMicroGtk-1f483baf37359032ca3224a5d07853aaf725def4.tar.gz
LDMicroGtk-1f483baf37359032ca3224a5d07853aaf725def4.tar.bz2
LDMicroGtk-1f483baf37359032ca3224a5d07853aaf725def4.zip
Commented all GUI code for core test
Diffstat (limited to 'test/ldTest/tests/avr-hw.ld')
-rw-r--r--test/ldTest/tests/avr-hw.ld61
1 files changed, 61 insertions, 0 deletions
diff --git a/test/ldTest/tests/avr-hw.ld b/test/ldTest/tests/avr-hw.ld
new file mode 100644
index 0000000..7053aa4
--- /dev/null
+++ b/test/ldTest/tests/avr-hw.ld
@@ -0,0 +1,61 @@
+LDmicro0.1
+MICRO=Atmel AVR ATmega128 64-TQFP
+CYCLE=10000
+CRYSTAL=4000000
+BAUD=2400
+COMPILED=C:\depot\ldmicro\reg\expected\avr-hw.hex
+
+IO LIST
+ Xinc at 2
+ Aanalog at 61
+END
+
+PROGRAM
+RUNG
+ COMMENT The more hardware-oriented ops (PWM, ADC, UART, EEPROM), test for the\r\nAVRs.
+END
+RUNG
+ PERSIST saved
+END
+RUNG
+ READ_ADC Aanalog
+END
+RUNG
+ PARALLEL
+ CONTACTS Xinc 0
+ GEQ Aanalog 512
+ END
+ OSR
+ ADD saved saved 1
+END
+RUNG
+ PARALLEL
+ SERIES
+ LES saved 10
+ MOVE duty 20
+ END
+ SERIES
+ GEQ saved 10
+ MOVE duty 50
+ END
+ SET_PWM duty 2000
+ END
+END
+RUNG
+ TON Tfmtd 1000000
+ OSR
+ FORMATTED_STRING saved 15 115 97 118 101 100 32 61 32 92 45 53 92 114 92 110
+END
+RUNG
+ MOVE char 'x'
+END
+RUNG
+ TON Tutx 2000000
+ OSR
+ UART_SEND char
+END
+RUNG
+ UART_RECV inchar
+ EQU inchar 'a'
+ MOVE saved 0
+END