Subversion Repositories HomeAutomation

Rev

Blame | Last modification | View Log | SVN | RSS feed

  1. #ifndef DTMFGENERATE_H_
  2. #define DTMFGENERATE_H_
  3. /*-----------------------------------------------------------------------------
  4.  * Includes
  5.  *---------------------------------------------------------------------------*/
  6. #include <inttypes.h>
  7. #include <avr/interrupt.h>
  8. #include <avr/io.h>
  9. #include <avr/pgmspace.h>
  10.  
  11. /*-----------------------------------------------------------------------------
  12.  * Defines
  13.  *---------------------------------------------------------------------------*/
  14. #define  PRESCALER  1                // timer1 prescaler
  15. #define  N_SAMPLES  256              // Number of samples in lookup table
  16. #define  FCK        F_CPU/PRESCALER   // Timer1 working frequency
  17. #define  FP         256
  18. #define  FPSHIFT    8
  19.  
  20. /*-----------------------------------------------------------------------------
  21.  * Public Function Prototypes
  22.  *---------------------------------------------------------------------------*/
  23. uint8_t DTMFOUT_Init (void);
  24.  
  25. #endif /*DTMFGENERATE_H_*/
  26.