123456789101112131415161718192021222324 |
- /*
- * File : drv_led.h
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2015, RT-Thread Development Team
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
- *
- * Change Logs:
- * Date Author Notes
- * 2017-08-25 LongfeiMa the first version for stm32h7xx
- */
- #ifndef __DRV_LED_H__
- #define __DRV_LED_H__
- #include "board.h"
- #define led_on() HAL_GPIO_WritePin(GPIOB, GPIO_PIN_14, GPIO_PIN_SET)
- #define led_off() HAL_GPIO_WritePin(GPIOB, GPIO_PIN_14, GPIO_PIN_RESET)
- int led_hw_init(void);
- #endif
|