led.h 631 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * File : led.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006, RT-Thread Develop Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2009-12-27 rdghx mini2440
  13. */
  14. #ifndef __LED_H__
  15. #define __LED_H__
  16. #define LED1 0x01
  17. #define LED2 0x02
  18. #define LED3 0x04
  19. #define LED4 0x08
  20. #define LED_ALL 0x0f
  21. void rt_hw_led_init(void);
  22. void rt_hw_led_on(unsigned char value);
  23. void rt_hw_led_off(unsigned char value);
  24. #endif