Compare commits

..

No commits in common. "155c4cce9ecacb5f983f458d884ad112be16e0a5" and "a60646542509899ba544274415987a42b20c412e" have entirely different histories.

3 changed files with 29 additions and 5 deletions

17
dist/attiny404/debug/memoryfile.xml vendored Normal file
View 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>

View file

@ -2,6 +2,11 @@
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<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">
<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>
</project-private>

View file

@ -49,12 +49,14 @@ int main(int argc, char **argv)
//The G1 pin is low at this point.
_delay_ms(2500);
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){
//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);
//; //Do nothing until new Power cycle/reset occurs
}
}
}