Compare commits
No commits in common. "155c4cce9ecacb5f983f458d884ad112be16e0a5" and "a60646542509899ba544274415987a42b20c412e" have entirely different histories.
155c4cce9e
...
a606465425
3 changed files with 29 additions and 5 deletions
17
dist/attiny404/debug/memoryfile.xml
vendored
Normal file
17
dist/attiny404/debug/memoryfile.xml
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?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,6 +2,11 @@
|
||||||
<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>
|
||||||
|
|
|
||||||
10
src/main.c
10
src/main.c
|
|
@ -50,11 +50,13 @@ int main(int argc, char **argv)
|
||||||
_delay_ms(2500);
|
_delay_ms(2500);
|
||||||
ZCD_Poll();
|
ZCD_Poll();
|
||||||
|
|
||||||
|
//Enable pins are enabled(set high) if the ADCLOAD value is valid.
|
||||||
|
Load_HandleLoadPortA(ADC_LOAD1, EN1);
|
||||||
|
Load_HandleLoadPortB(ADC_LOAD2, EN2);
|
||||||
|
Load_HandleLoadPortB(ADC_LOAD3, EN3);
|
||||||
|
|
||||||
while(true){
|
while(true){
|
||||||
//Enable pins are enabled(set high) if the ADCLOAD value is valid.
|
//; //Do nothing until new Power cycle/reset occurs
|
||||||
Load_HandleLoadPortA(ADC_LOAD1, EN1);
|
|
||||||
Load_HandleLoadPortB(ADC_LOAD2, EN2);
|
|
||||||
Load_HandleLoadPortB(ADC_LOAD3, EN3);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue