led.h 445 B

1234567891011121314151617181920212223
  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. * 2013-13-05 bright the first version
  9. */
  10. #ifndef __LED_H__
  11. #define __LED_H__
  12. #include <rtthread.h>
  13. #include <stm32f0xx.h>
  14. #define rt_hw_led_on() GPIO_SetBits(GPIOC, GPIO_Pin_9)
  15. #define rt_hw_led_off() GPIO_ResetBits(GPIOC, GPIO_Pin_9)
  16. int rt_hw_led_init(void);
  17. #endif