Advertisement
sunu

basic AVR C template

Oct 8th, 2013
128
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. avr-gcc -Wall  -g -c "%f"
  3. avr-gcc -Wall  -g -o "%e" "%f"
  4. */
  5.  
  6. #define __AVR_ATmega328P__
  7.  
  8. #ifndef F_CPU
  9.    #define F_CPU 16000000UL    
  10. #endif
  11.  
  12. #include <avr/io.h>
  13. #include <util/delay.h>
  14.  
  15.  
  16.  
  17. int main(void)
  18. {
  19.  
  20.     return 0;
  21. }
Advertisement
RAW Paste Data Copied
Advertisement