Subversion Repositories HomeAutomation

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | SVN | RSS feed

  1. #ifndef TST_BENCHMARK
  2. #define TST_BENCHMARK
  3.  
  4. /*-----------------------------------------------------------------------------
  5.  * Includes
  6.  *---------------------------------------------------------------------------*/
  7. /* system files */
  8. #include <avr/io.h>
  9. #include <avr/interrupt.h>
  10. #include <stdio.h>
  11. /* lib files */
  12. #include <config.h>
  13. #include <bios.h>
  14. #include <drivers/can/stdcan.h>
  15. #include <drivers/timer/timer.h>
  16. #include <drivers/mcu/gpio.h>
  17. #include <drivers/adc/adc.h>
  18. #include <drivers/mcu/pcint.h>
  19.  
  20. void tst_Benchmark_Init(void);
  21. void tst_Benchmark_Process(void);
  22. void tst_Benchmark_HandleMessage(StdCan_Msg_t *rxMsg);
  23. void tst_Benchmark_List(uint8_t ModuleSequenceNumber);
  24.  
  25. /* LIST ALL TESTS HERE AND DEACTIVATE BY DEFAULT */
  26.  
  27. #ifndef tst_Benchmark_CanSend_TestActive
  28. #define tst_Benchmark_CanSend_TestActive 0
  29. #endif
  30.  
  31.  
  32. #ifndef tst_Benchmark_USEEEPROM
  33. #define tst_Benchmark_USEEEPROM 0
  34. #endif
  35.  
  36. #if tst_Benchmark_USEEEPROM==1
  37.     struct tst_Benchmark_Data{
  38.         ///TODO: Define EEPROM variables needed by the module
  39.         uint8_t x;
  40.         uint16_t y;
  41.     }; 
  42. #endif
  43.  
  44.  
  45. #endif // TST_BENCHMARK
  46.