skrupellos

config.h

Aug 29th, 2011
60
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // UART
  2. #define BAUD               9600UL
  3.  
  4. // The following addresses have to be below 0x20
  5. #define PORT_UP    PORTF
  6. #define DDR_UP     DDRF
  7. #define PIN_UP     PF0
  8.  
  9. #define PORT_DOWN  PORTE
  10. #define DDR_DOWN   DDRE
  11. #define PIN_DOWN   PE3
  12.  
  13. #define HISTORY_LEN 10
  14. #define SW_SAMPLES 10
  15. #define THRESHOLD 0.98
  16.  
  17. // CS02:0: Clock Select (clk/64)
  18. #define PRESCALER (_BV(CS01) | _BV(CS00))
RAW Paste Data