| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- /**
- * @file HW_PWM_ATY.h
- *
- * @param Project DEVICE_GENERAL_ATY_LIB
- *
- * @author ATY
- *
- * @copyright
- * - Copyright 2017 - 2023 MZ-ATY
- * - This code follows:
- * - MZ-ATY Various Contents Joint Statement -
- * <a href="https://mengze.top/MZ-ATY_VCJS">
- * https://mengze.top/MZ-ATY_VCJS</a>
- * - CC 4.0 BY-NC-SA -
- * <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
- * https://creativecommons.org/licenses/by-nc-sa/4.0/</a>
- * - Your use will be deemed to have accepted the terms of this statement.
- *
- * @brief Familiar definition of PWM for users
- *
- * @version
- * - 1_01_220602 > ATY
- * -# Preliminary version, first Release
- * - Undone
- ********************************************************************************
- */
- #ifndef __HW_PWM_ATY_H
- #define __HW_PWM_ATY_H
- #include "INCLUDE_ATY.h"
- /******************************* For user *************************************/
- // #define __DEBUG_HW_PWM_ATY
- /******************************************************************************/
- #if defined(__STC51_ATY)
- #elif defined(__STM32_HAL_ATY)
- #elif defined(__ESP8266_RTOS_ATY)
- #endif /* PLATFORM */
- void PWM_Start(uint32_t periodS, float dutyS, uint8_t channelS);
- void PWM_Stop(uint8_t level, uint8_t channelS);
- void PwmFreqSet(uint32_t periodS, uint8_t channelS);
- #if defined(__STC8G_ATY)
- void PWM_StartPulse(uint32_t periodS, uint8_t channelS);
- #endif
- #ifdef __DEBUG_HW_PWM_ATY
- void PWM_Test(uint8_t testType);
- #endif /* __DEBUG_HW_PWM_ATY */
- #endif /* __HW_PWM_ATY_H */
- /******************************** End Of File *********************************/
|