2017-12-25 16:51:34 +08:00
|
|
|
/*
|
2018-10-16 13:00:37 +08:00
|
|
|
* Copyright (c) 2006-2018, RT-Thread Development Team
|
2017-12-25 16:51:34 +08:00
|
|
|
*
|
2018-10-16 13:00:37 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2017-12-25 16:51:34 +08:00
|
|
|
*
|
|
|
|
* 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
|