Zephyr Project API
4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pwm_mchp_pwm_g1.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2026 Microchip Technology Inc.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
11
12
#ifndef __PWM_MCHP_PWM_G1_H__
13
#define __PWM_MCHP_PWM_G1_H__
14
23
25
#define PWM_PRESCALER_POS 8
26
27
/* the clock for the PWM channel is divided by peripheral clock */
28
#define PWM_PRESCALER_DIV_1 (1 << PWM_PRESCALER_POS)
29
#define PWM_PRESCALER_DIV_2 (2 << PWM_PRESCALER_POS)
30
#define PWM_PRESCALER_DIV_4 (3 << PWM_PRESCALER_POS)
31
#define PWM_PRESCALER_DIV_8 (4 << PWM_PRESCALER_POS)
32
#define PWM_PRESCALER_DIV_16 (5 << PWM_PRESCALER_POS)
33
#define PWM_PRESCALER_DIV_32 (6 << PWM_PRESCALER_POS)
34
#define PWM_PRESCALER_DIV_64 (7 << PWM_PRESCALER_POS)
35
#define PWM_PRESCALER_DIV_128 (8 << PWM_PRESCALER_POS)
36
#define PWM_PRESCALER_DIV_256 (9 << PWM_PRESCALER_POS)
37
#define PWM_PRESCALER_DIV_1024 (10 << PWM_PRESCALER_POS)
38
39
/* the clock for the PWM channel is from CLKA */
40
#define PWM_PRESCALER_CLKA (11 << PWM_PRESCALER_POS)
41
42
/* the clock for the PWM channel is from CLKA */
43
#define PWM_PRESCALER_CLKB (12 << PWM_PRESCALER_POS)
44
45
#define PWM_PRESCALER_MASK (0xF << PWM_PRESCALER_POS)
48
49
#endif
/* __PWM_MCHP_PWM_G1_H__ */
include
zephyr
drivers
pwm
pwm_mchp_pwm_g1.h
Generated on
for Zephyr Project API by
1.16.1