drv_led.h 642 B

123456789101112131415161718192021222324
  1. /*
  2. * File : drv_led.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2015, 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. * 2017-08-25 LongfeiMa the first version for stm32h7xx
  13. */
  14. #ifndef __DRV_LED_H__
  15. #define __DRV_LED_H__
  16. #include "board.h"
  17. #define led_on() HAL_GPIO_WritePin(GPIOB, GPIO_PIN_14, GPIO_PIN_SET)
  18. #define led_off() HAL_GPIO_WritePin(GPIOB, GPIO_PIN_14, GPIO_PIN_RESET)
  19. int led_hw_init(void);
  20. #endif