led.h 620 B

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