Compare commits
2 commits
a606465425
...
155c4cce9e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
155c4cce9e | ||
|
|
41cc5b2eef |
3 changed files with 5 additions and 29 deletions
17
dist/attiny404/debug/memoryfile.xml
vendored
17
dist/attiny404/debug/memoryfile.xml
vendored
|
|
@ -1,17 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project>
|
|
||||||
<executable name="dist/attiny404/debug/High.debug.elf">
|
|
||||||
<memory name="program">
|
|
||||||
<units>bytes</units>
|
|
||||||
<length>4096</length>
|
|
||||||
<used>1900</used>
|
|
||||||
<free>2196</free>
|
|
||||||
</memory>
|
|
||||||
<memory name="data">
|
|
||||||
<units>bytes</units>
|
|
||||||
<length>256</length>
|
|
||||||
<used>4</used>
|
|
||||||
<free>252</free>
|
|
||||||
</memory>
|
|
||||||
</executable>
|
|
||||||
</project>
|
|
||||||
|
|
@ -2,11 +2,6 @@
|
||||||
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
|
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
|
||||||
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
|
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
|
||||||
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
|
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
|
||||||
<group>
|
<group/>
|
||||||
<file>file:/home/ronin/Documents/projects/freelance/laith_naaman/High/src/main.c</file>
|
|
||||||
<file>file:/home/ronin/Documents/projects/freelance/laith_naaman/High/src/load/load.c</file>
|
|
||||||
<file>file:/home/ronin/Documents/projects/freelance/laith_naaman/High/src/ADC/ADC.c</file>
|
|
||||||
<file>file:/home/ronin/Documents/projects/freelance/laith_naaman/High/src/RegEdit/RegEdit.c</file>
|
|
||||||
</group>
|
|
||||||
</open-files>
|
</open-files>
|
||||||
</project-private>
|
</project-private>
|
||||||
|
|
|
||||||
|
|
@ -50,13 +50,11 @@ int main(int argc, char **argv)
|
||||||
_delay_ms(2500);
|
_delay_ms(2500);
|
||||||
ZCD_Poll();
|
ZCD_Poll();
|
||||||
|
|
||||||
|
while(true){
|
||||||
//Enable pins are enabled(set high) if the ADCLOAD value is valid.
|
//Enable pins are enabled(set high) if the ADCLOAD value is valid.
|
||||||
Load_HandleLoadPortA(ADC_LOAD1, EN1);
|
Load_HandleLoadPortA(ADC_LOAD1, EN1);
|
||||||
Load_HandleLoadPortB(ADC_LOAD2, EN2);
|
Load_HandleLoadPortB(ADC_LOAD2, EN2);
|
||||||
Load_HandleLoadPortB(ADC_LOAD3, EN3);
|
Load_HandleLoadPortB(ADC_LOAD3, EN3);
|
||||||
|
|
||||||
while(true){
|
|
||||||
//; //Do nothing until new Power cycle/reset occurs
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue