led.h 454 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. *
  9. */
  10. #ifndef __LED_H__
  11. #define __LED_H__
  12. #include <rtthread.h>
  13. enum LED_NUM
  14. {
  15. LED_BLUE,
  16. LED_RED,
  17. LED_GREEN,
  18. LED_MAX
  19. };
  20. void rt_hw_led_init(void);
  21. void rt_hw_led_uninit(void);
  22. void rt_hw_led_on(rt_uint32_t n);
  23. void rt_hw_led_off(rt_uint32_t n);
  24. #endif /* end of __LED_H__ */