fork download
  1. #include <iom8535v.h>
  2. #include <macros.h.>
  3.  
  4. void port_init(void)
  5. {
  6. PORTA=0xF1; //na vhod
  7. DDRA=0x00;
  8. PORTB=0x00;
  9. DDRB=0xF0; //na vihod
  10. }
  11. void sdvig(void)
  12. {
  13. int i;
  14. for(i=1;i<4000;i++);
  15. PORTB=PORTB>>1;
  16. }
  17.  
  18. void main(void)
  19. {
  20. port_init();
  21. PORTB=PINA&0xF0;
  22. while(1)
  23. {
  24. if(PINA&0x01==0x01)
  25. sdvig();
  26. }
  27. }
  28.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:22: fatal error: iom8535v.h: No such file or directory
compilation terminated.
stdout
Standard output is empty