led.h 629 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * File : led.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2009, RT-Thread Development 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. *
  13. */
  14. #ifndef __LED_H__
  15. #define __LED_H__
  16. #include <rtthread.h>
  17. enum LED_NUM
  18. {
  19. LED_BLUE,
  20. LED_RED,
  21. LED_GREEN,
  22. LED_MAX
  23. };
  24. void rt_hw_led_init(void);
  25. void rt_hw_led_uninit(void);
  26. void rt_hw_led_on(rt_uint32_t n);
  27. void rt_hw_led_off(rt_uint32_t n);
  28. #endif /* end of __LED_H__ */