Subversion Repositories HomeAutomation

Rev

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

  1. #ifndef ACT_KS0108
  2. #define ACT_KS0108
  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.  
  17. #include <drivers/lcd/glcd/ks0108.h>
  18. #include <avr/pgmspace.h>
  19.  
  20. #if act_ks0108_USE_EXTERNAL_EEPROM==1
  21.   #include <drivers/mcu/TWI_Master.h>
  22.   #define MEMORY_ADDR  0xA0 // For first 256 bytes of EEPROM
  23.   #define MESSAGEBUF_SIZE       131     // Three more than the memory block length
  24. #endif
  25.  
  26. void act_ks0108_Init(void);
  27. void act_ks0108_Process(void);
  28. void act_ks0108_HandleMessage(StdCan_Msg_t *rxMsg);
  29. void act_ks0108_List(uint8_t ModuleSequenceNumber);
  30.  
  31. #endif // ACT_KS0108
  32.