drv_led.h 463 B

1234567891011121314151617181920
  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. * 2017-08-25 LongfeiMa the first version for stm32h7xx
  9. */
  10. #ifndef __DRV_LED_H__
  11. #define __DRV_LED_H__
  12. #include "board.h"
  13. #define led_on() HAL_GPIO_WritePin(GPIOB, GPIO_PIN_14, GPIO_PIN_SET)
  14. #define led_off() HAL_GPIO_WritePin(GPIOB, GPIO_PIN_14, GPIO_PIN_RESET)
  15. int led_hw_init(void);
  16. #endif