summaryrefslogtreecommitdiff
path: root/bsp/tm4c123bsp/libraries/Drivers/drv_pwm.h
blob: dfbd6551882fe865199e771753acb2b2404fb602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2020-06-27     AHTYDHD      the first version
 */

#ifndef __DRV_PWM_H__
#define __DRV_PWM_H__

#include <stdint.h>
#include<rtdevice.h>
#include<rthw.h>

struct tm4c123_pwm
{
    struct tm4c123_pwm_config *config;
    struct rt_device_pwm  pwm_device;
};

/* tm4c123 config class */
struct tm4c123_pwm_config
{
    rt_uint8_t channel;
    char *name;
    uint32_t   counterMode;
    uint32_t   syncMode;
};

int rt_hw_pwm_init(void);

#endif /*__DRV_PWM_H__*/

/************************** end of file ******************/