Subversion Repositories HomeAutomation

Rev

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

  1. /* IO defintions HDI */
  2.  
  3. #ifndef GPIO_H_
  4. #define GPIO_H_
  5.  
  6. #include <inttypes.h>
  7.  
  8. #define LEDPORT (PORTC)
  9. #define LEDDDR  (DDRC)
  10. #define LED0 (1<<PC0)
  11. #define LED1 (1<<PC1)
  12. #define LED2 (1<<PC0)
  13.  
  14. void gpio_init(void);
  15. void gpio_set_led(const uint8_t bitmask);
  16. void gpio_clear_led(const uint8_t bitmask);
  17. void gpio_toggle_led(const uint8_t bitmask);
  18.  
  19. #endif
  20.  
  21.