]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/RISC-V-Qemu-sifive_e-FreedomStudio/freedom-e-sdk/include/sifive/devices/pwm.h
Recreate the RISC-V-Qemu demo using Vanilla Eclipse in place of Freedom Studio as...
[freertos] / FreeRTOS / Demo / RISC-V-Qemu-sifive_e-FreedomStudio / freedom-e-sdk / include / sifive / devices / pwm.h
1 // See LICENSE for license details.\r
2 \r
3 #ifndef _SIFIVE_PWM_H\r
4 #define _SIFIVE_PWM_H\r
5 \r
6 /* Register offsets */\r
7 \r
8 #define PWM_CFG   0x00\r
9 #define PWM_COUNT 0x08\r
10 #define PWM_S     0x10\r
11 #define PWM_CMP0  0x20\r
12 #define PWM_CMP1  0x24\r
13 #define PWM_CMP2  0x28\r
14 #define PWM_CMP3  0x2C\r
15 \r
16 /* Constants */\r
17 \r
18 #define PWM_CFG_SCALE       0x0000000F\r
19 #define PWM_CFG_STICKY      0x00000100\r
20 #define PWM_CFG_ZEROCMP     0x00000200\r
21 #define PWM_CFG_DEGLITCH    0x00000400\r
22 #define PWM_CFG_ENALWAYS    0x00001000\r
23 #define PWM_CFG_ONESHOT     0x00002000\r
24 #define PWM_CFG_CMP0CENTER  0x00010000\r
25 #define PWM_CFG_CMP1CENTER  0x00020000\r
26 #define PWM_CFG_CMP2CENTER  0x00040000\r
27 #define PWM_CFG_CMP3CENTER  0x00080000\r
28 #define PWM_CFG_CMP0GANG    0x01000000\r
29 #define PWM_CFG_CMP1GANG    0x02000000\r
30 #define PWM_CFG_CMP2GANG    0x04000000\r
31 #define PWM_CFG_CMP3GANG    0x08000000\r
32 #define PWM_CFG_CMP0IP      0x10000000\r
33 #define PWM_CFG_CMP1IP      0x20000000\r
34 #define PWM_CFG_CMP2IP      0x40000000\r
35 #define PWM_CFG_CMP3IP      0x80000000\r
36 \r
37 #endif /* _SIFIVE_PWM_H */\r