Subversion Repositories HomeAutomation

Rev

Rev 2234 | 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. #ifndef tst_Benchmark_CpuTime_TestActive
  32. #define tst_Benchmark_CpuTime_TestActive 0
  33. #endif
  34.  
  35.  
  36. #ifndef tst_Benchmark_USEEEPROM
  37. #define tst_Benchmark_USEEEPROM 0
  38. #endif
  39.  
  40. #if tst_Benchmark_USEEEPROM==1
  41.     struct tst_Benchmark_Data{
  42.         ///TODO: Define EEPROM variables needed by the module
  43.         uint8_t x;
  44.         uint16_t y;
  45.     }; 
  46. #endif
  47.  
  48.  
  49. #endif // TST_BENCHMARK
  50.