2017-12-04 18:52:02 +08:00
|
|
|
/*
|
2021-03-29 07:20:47 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2017-12-04 18:52:02 +08:00
|
|
|
*
|
2021-03-29 07:20:47 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2017-12-04 18:52:02 +08:00
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2017-12-04 Haley the first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __PWM_H_
|
|
|
|
#define __PWM_H_
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief External function definitions
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
int rt_hw_pwm_init(void);
|
2018-09-21 16:10:44 +08:00
|
|
|
void am_pwm_start(int led);
|
|
|
|
void am_pwm_stop(int led);
|
2017-12-04 18:52:02 +08:00
|
|
|
|
|
|
|
#endif // __PWM_H_
|