|
|
@@ -3,1216 +3,1929 @@
|
|
|
*
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
*/
|
|
|
-#ifndef _SOC_LEDC_REG_H_
|
|
|
-#define _SOC_LEDC_REG_H_
|
|
|
+#pragma once
|
|
|
|
|
|
+#include <stdint.h>
|
|
|
+#include "soc/soc.h"
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
extern "C" {
|
|
|
#endif
|
|
|
-#include "soc.h"
|
|
|
-#define LEDC_LSCH0_CONF0_REG (DR_REG_LEDC_BASE + 0x0000)
|
|
|
-/* LEDC_OVF_CNT_RESET_LSCH0 : WO ;bitpos:[16] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH0 (BIT(16))
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH0_M (BIT(16))
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH0_V 0x1
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH0_S 16
|
|
|
-/* LEDC_OVF_CNT_EN_LSCH0 : R/W ;bitpos:[15] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH0 (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH0_M (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH0_V 0x1
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH0_S 15
|
|
|
-/* LEDC_OVF_NUM_LSCH0 : R/W ;bitpos:[14:5] ;default: 10'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_NUM_LSCH0 0x000003FF
|
|
|
-#define LEDC_OVF_NUM_LSCH0_M ((LEDC_OVF_NUM_LSCH0_V)<<(LEDC_OVF_NUM_LSCH0_S))
|
|
|
-#define LEDC_OVF_NUM_LSCH0_V 0x3FF
|
|
|
-#define LEDC_OVF_NUM_LSCH0_S 5
|
|
|
-/* LEDC_PARA_UP_LSCH0 : WO ;bitpos:[4] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_PARA_UP_LSCH0 (BIT(4))
|
|
|
-#define LEDC_PARA_UP_LSCH0_M (BIT(4))
|
|
|
-#define LEDC_PARA_UP_LSCH0_V 0x1
|
|
|
-#define LEDC_PARA_UP_LSCH0_S 4
|
|
|
-/* LEDC_IDLE_LV_LSCH0 : R/W ;bitpos:[3] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_IDLE_LV_LSCH0 (BIT(3))
|
|
|
-#define LEDC_IDLE_LV_LSCH0_M (BIT(3))
|
|
|
-#define LEDC_IDLE_LV_LSCH0_V 0x1
|
|
|
-#define LEDC_IDLE_LV_LSCH0_S 3
|
|
|
-/* LEDC_SIG_OUT_EN_LSCH0 : R/W ;bitpos:[2] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH0 (BIT(2))
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH0_M (BIT(2))
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH0_V 0x1
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH0_S 2
|
|
|
-/* LEDC_TIMER_SEL_LSCH0 : R/W ;bitpos:[1:0] ;default: 2'd0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_TIMER_SEL_LSCH0 0x00000003
|
|
|
-#define LEDC_TIMER_SEL_LSCH0_M ((LEDC_TIMER_SEL_LSCH0_V)<<(LEDC_TIMER_SEL_LSCH0_S))
|
|
|
-#define LEDC_TIMER_SEL_LSCH0_V 0x3
|
|
|
-#define LEDC_TIMER_SEL_LSCH0_S 0
|
|
|
+/** Configuration Register */
|
|
|
|
|
|
-#define LEDC_LSCH0_HPOINT_REG (DR_REG_LEDC_BASE + 0x0004)
|
|
|
-/* LEDC_HPOINT_LSCH0 : R/W ;bitpos:[13:0] ;default: 14'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_HPOINT_LSCH0 0x00003FFF
|
|
|
-#define LEDC_HPOINT_LSCH0_M ((LEDC_HPOINT_LSCH0_V)<<(LEDC_HPOINT_LSCH0_S))
|
|
|
-#define LEDC_HPOINT_LSCH0_V 0x3FFF
|
|
|
-#define LEDC_HPOINT_LSCH0_S 0
|
|
|
+/** LEDC_CH0_CONF0_REG register
|
|
|
+ * Configuration register 0 for channel
|
|
|
+ * 0
|
|
|
+ */
|
|
|
+#define LEDC_CH0_CONF0_REG (DR_REG_LEDC_BASE + 0x0)
|
|
|
+/* LEDC_TIMER_SEL_CH0 : R/W; bitpos: [2:0]; default: 0;
|
|
|
+ * This field is used to select one of timers for channel 0.
|
|
|
+ * 0: select timer0; 1: select timer1; 2: select timer2; 3: select
|
|
|
+ * timer3
|
|
|
+ */
|
|
|
+#define LEDC_TIMER_SEL_CH0 0x00000003
|
|
|
+#define LEDC_TIMER_SEL_CH0_M (LEDC_TIMER_SEL_CH0_V << LEDC_TIMER_SEL_CH0_S)
|
|
|
+#define LEDC_TIMER_SEL_CH0_V 0x00000003
|
|
|
+#define LEDC_TIMER_SEL_CH0_S 0
|
|
|
+/* LEDC_SIG_OUT_EN_CH0 : R/W; bitpos: [2]; default: 0;
|
|
|
+ * Set this bit to enable signal output on channel
|
|
|
+ * 0.
|
|
|
+ */
|
|
|
+#define LEDC_SIG_OUT_EN_CH0 (BIT(2))
|
|
|
+#define LEDC_SIG_OUT_EN_CH0_M (LEDC_SIG_OUT_EN_CH0_V << LEDC_SIG_OUT_EN_CH0_S)
|
|
|
+#define LEDC_SIG_OUT_EN_CH0_V 0x00000001
|
|
|
+#define LEDC_SIG_OUT_EN_CH0_S 2
|
|
|
+/* LEDC_IDLE_LV_CH0 : R/W; bitpos: [3]; default: 0;
|
|
|
+ * This bit is used to control the output value when channel 0 is inactive
|
|
|
+ * (when LEDC_SIG_OUT_EN_CH0 is
|
|
|
+ * 0).
|
|
|
+ */
|
|
|
+#define LEDC_IDLE_LV_CH0 (BIT(3))
|
|
|
+#define LEDC_IDLE_LV_CH0_M (LEDC_IDLE_LV_CH0_V << LEDC_IDLE_LV_CH0_S)
|
|
|
+#define LEDC_IDLE_LV_CH0_V 0x00000001
|
|
|
+#define LEDC_IDLE_LV_CH0_S 3
|
|
|
+/* LEDC_PARA_UP_CH0 : WT; bitpos: [4]; default: 0;
|
|
|
+ * This bit is used to update LEDC_HPOINT_CH0, LEDC_DUTY_START_CH0,
|
|
|
+ * LEDC_SIG_OUT_EN_CH0, LEDC_TIMER_SEL_CH0, LEDC_DUTY_NUM_CH0,
|
|
|
+ * LEDC_DUTY_CYCLE_CH0, LEDC_DUTY_SCALE_CH0, LEDC_DUTY_INC_CH0, and
|
|
|
+ * LEDC_OVF_CNT_EN_CH0 fields for channel 0, and will be automatically
|
|
|
+ * cleared by
|
|
|
+ * hardware.
|
|
|
+ */
|
|
|
+#define LEDC_PARA_UP_CH0 (BIT(4))
|
|
|
+#define LEDC_PARA_UP_CH0_M (LEDC_PARA_UP_CH0_V << LEDC_PARA_UP_CH0_S)
|
|
|
+#define LEDC_PARA_UP_CH0_V 0x00000001
|
|
|
+#define LEDC_PARA_UP_CH0_S 4
|
|
|
+/* LEDC_OVF_NUM_CH0 : R/W; bitpos: [15:5]; default: 0;
|
|
|
+ * This register is used to configure the maximum times of overflow minus
|
|
|
+ * 1.
|
|
|
+ * The LEDC_OVF_CNT_CH0_INT interrupt will be triggered when channel 0
|
|
|
+ * overflows for (LEDC_OVF_NUM_CH0 + 1)
|
|
|
+ * times.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_NUM_CH0 0x000003FF
|
|
|
+#define LEDC_OVF_NUM_CH0_M (LEDC_OVF_NUM_CH0_V << LEDC_OVF_NUM_CH0_S)
|
|
|
+#define LEDC_OVF_NUM_CH0_V 0x000003FF
|
|
|
+#define LEDC_OVF_NUM_CH0_S 5
|
|
|
+/* LEDC_OVF_CNT_EN_CH0 : R/W; bitpos: [15]; default: 0;
|
|
|
+ * This bit is used to enable the ovf_cnt of channel
|
|
|
+ * 0.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_EN_CH0 (BIT(15))
|
|
|
+#define LEDC_OVF_CNT_EN_CH0_M (LEDC_OVF_CNT_EN_CH0_V << LEDC_OVF_CNT_EN_CH0_S)
|
|
|
+#define LEDC_OVF_CNT_EN_CH0_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_EN_CH0_S 15
|
|
|
+/* LEDC_OVF_CNT_RESET_CH0 : WT; bitpos: [16]; default: 0;
|
|
|
+ * Set this bit to reset the ovf_cnt of channel
|
|
|
+ * 0.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_RESET_CH0 (BIT(16))
|
|
|
+#define LEDC_OVF_CNT_RESET_CH0_M (LEDC_OVF_CNT_RESET_CH0_V << LEDC_OVF_CNT_RESET_CH0_S)
|
|
|
+#define LEDC_OVF_CNT_RESET_CH0_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_RESET_CH0_S 16
|
|
|
+
|
|
|
+/** LEDC_CH0_CONF1_REG register
|
|
|
+ * Configuration register 1 for channel
|
|
|
+ * 0
|
|
|
+ */
|
|
|
+#define LEDC_CH0_CONF1_REG (DR_REG_LEDC_BASE + 0xc)
|
|
|
+/* LEDC_DUTY_SCALE_CH0 : R/W; bitpos: [10:0]; default: 0;
|
|
|
+ * This register is used to configure the changing step scale of duty on
|
|
|
+ * channel
|
|
|
+ * 0.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_SCALE_CH0 0x000003FF
|
|
|
+#define LEDC_DUTY_SCALE_CH0_M (LEDC_DUTY_SCALE_CH0_V << LEDC_DUTY_SCALE_CH0_S)
|
|
|
+#define LEDC_DUTY_SCALE_CH0_V 0x000003FF
|
|
|
+#define LEDC_DUTY_SCALE_CH0_S 0
|
|
|
+/* LEDC_DUTY_CYCLE_CH0 : R/W; bitpos: [20:10]; default: 0;
|
|
|
+ * The duty will change every LEDC_DUTY_CYCLE_CH0 on channel
|
|
|
+ * 0.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CYCLE_CH0 0x000003FF
|
|
|
+#define LEDC_DUTY_CYCLE_CH0_M (LEDC_DUTY_CYCLE_CH0_V << LEDC_DUTY_CYCLE_CH0_S)
|
|
|
+#define LEDC_DUTY_CYCLE_CH0_V 0x000003FF
|
|
|
+#define LEDC_DUTY_CYCLE_CH0_S 10
|
|
|
+/* LEDC_DUTY_NUM_CH0 : R/W; bitpos: [30:20]; default: 0;
|
|
|
+ * This register is used to control the number of times the duty cycle
|
|
|
+ * will be
|
|
|
+ * changed.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_NUM_CH0 0x000003FF
|
|
|
+#define LEDC_DUTY_NUM_CH0_M (LEDC_DUTY_NUM_CH0_V << LEDC_DUTY_NUM_CH0_S)
|
|
|
+#define LEDC_DUTY_NUM_CH0_V 0x000003FF
|
|
|
+#define LEDC_DUTY_NUM_CH0_S 20
|
|
|
+/* LEDC_DUTY_INC_CH0 : R/W; bitpos: [30]; default: 1;
|
|
|
+ * This register is used to increase or decrease the duty of output signal
|
|
|
+ * on channel 0. 1: Increase; 0:
|
|
|
+ * Decrease.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_INC_CH0 (BIT(30))
|
|
|
+#define LEDC_DUTY_INC_CH0_M (LEDC_DUTY_INC_CH0_V << LEDC_DUTY_INC_CH0_S)
|
|
|
+#define LEDC_DUTY_INC_CH0_V 0x00000001
|
|
|
+#define LEDC_DUTY_INC_CH0_S 30
|
|
|
+/* LEDC_DUTY_START_CH0 : R/W/SC; bitpos: [31]; default: 0;
|
|
|
+ * Other configured fields in LEDC_CH0_CONF1_REG will start to take effect
|
|
|
+ * when this bit is set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_START_CH0 (BIT(31))
|
|
|
+#define LEDC_DUTY_START_CH0_M (LEDC_DUTY_START_CH0_V << LEDC_DUTY_START_CH0_S)
|
|
|
+#define LEDC_DUTY_START_CH0_V 0x00000001
|
|
|
+#define LEDC_DUTY_START_CH0_S 31
|
|
|
+
|
|
|
+/** LEDC_CH1_CONF0_REG register
|
|
|
+ * Configuration register 0 for channel
|
|
|
+ * 1
|
|
|
+ */
|
|
|
+#define LEDC_CH1_CONF0_REG (DR_REG_LEDC_BASE + 0x14)
|
|
|
+/* LEDC_TIMER_SEL_CH1 : R/W; bitpos: [2:0]; default: 0;
|
|
|
+ * This field is used to select one of timers for channel 1.
|
|
|
+ * 0: select timer0; 1: select timer1; 2: select timer2; 3: select
|
|
|
+ * timer3
|
|
|
+ */
|
|
|
+#define LEDC_TIMER_SEL_CH1 0x00000003
|
|
|
+#define LEDC_TIMER_SEL_CH1_M (LEDC_TIMER_SEL_CH1_V << LEDC_TIMER_SEL_CH1_S)
|
|
|
+#define LEDC_TIMER_SEL_CH1_V 0x00000003
|
|
|
+#define LEDC_TIMER_SEL_CH1_S 0
|
|
|
+/* LEDC_SIG_OUT_EN_CH1 : R/W; bitpos: [2]; default: 0;
|
|
|
+ * Set this bit to enable signal output on channel
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_SIG_OUT_EN_CH1 (BIT(2))
|
|
|
+#define LEDC_SIG_OUT_EN_CH1_M (LEDC_SIG_OUT_EN_CH1_V << LEDC_SIG_OUT_EN_CH1_S)
|
|
|
+#define LEDC_SIG_OUT_EN_CH1_V 0x00000001
|
|
|
+#define LEDC_SIG_OUT_EN_CH1_S 2
|
|
|
+/* LEDC_IDLE_LV_CH1 : R/W; bitpos: [3]; default: 0;
|
|
|
+ * This bit is used to control the output value when channel 1 is inactive
|
|
|
+ * (when LEDC_SIG_OUT_EN_CH1 is
|
|
|
+ * 0).
|
|
|
+ */
|
|
|
+#define LEDC_IDLE_LV_CH1 (BIT(3))
|
|
|
+#define LEDC_IDLE_LV_CH1_M (LEDC_IDLE_LV_CH1_V << LEDC_IDLE_LV_CH1_S)
|
|
|
+#define LEDC_IDLE_LV_CH1_V 0x00000001
|
|
|
+#define LEDC_IDLE_LV_CH1_S 3
|
|
|
+/* LEDC_PARA_UP_CH1 : WT; bitpos: [4]; default: 0;
|
|
|
+ * This bit is used to update LEDC_HPOINT_CH1, LEDC_DUTY_START_CH1,
|
|
|
+ * LEDC_SIG_OUT_EN_CH1, LEDC_TIMER_SEL_CH1, LEDC_DUTY_NUM_CH1,
|
|
|
+ * LEDC_DUTY_CYCLE_CH1, LEDC_DUTY_SCALE_CH1, LEDC_DUTY_INC_CH1, and
|
|
|
+ * LEDC_OVF_CNT_EN_CH1 fields for channel 1, and will be automatically
|
|
|
+ * cleared by
|
|
|
+ * hardware.
|
|
|
+ */
|
|
|
+#define LEDC_PARA_UP_CH1 (BIT(4))
|
|
|
+#define LEDC_PARA_UP_CH1_M (LEDC_PARA_UP_CH1_V << LEDC_PARA_UP_CH1_S)
|
|
|
+#define LEDC_PARA_UP_CH1_V 0x00000001
|
|
|
+#define LEDC_PARA_UP_CH1_S 4
|
|
|
+/* LEDC_OVF_NUM_CH1 : R/W; bitpos: [15:5]; default: 0;
|
|
|
+ * This register is used to configure the maximum times of overflow minus
|
|
|
+ * 1.
|
|
|
+ * The LEDC_OVF_CNT_CH1_INT interrupt will be triggered when channel 1
|
|
|
+ * overflows for (LEDC_OVF_NUM_CH1 + 1)
|
|
|
+ * times.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_NUM_CH1 0x000003FF
|
|
|
+#define LEDC_OVF_NUM_CH1_M (LEDC_OVF_NUM_CH1_V << LEDC_OVF_NUM_CH1_S)
|
|
|
+#define LEDC_OVF_NUM_CH1_V 0x000003FF
|
|
|
+#define LEDC_OVF_NUM_CH1_S 5
|
|
|
+/* LEDC_OVF_CNT_EN_CH1 : R/W; bitpos: [15]; default: 0;
|
|
|
+ * This bit is used to enable the ovf_cnt of channel
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_EN_CH1 (BIT(15))
|
|
|
+#define LEDC_OVF_CNT_EN_CH1_M (LEDC_OVF_CNT_EN_CH1_V << LEDC_OVF_CNT_EN_CH1_S)
|
|
|
+#define LEDC_OVF_CNT_EN_CH1_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_EN_CH1_S 15
|
|
|
+/* LEDC_OVF_CNT_RESET_CH1 : WT; bitpos: [16]; default: 0;
|
|
|
+ * Set this bit to reset the ovf_cnt of channel
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_RESET_CH1 (BIT(16))
|
|
|
+#define LEDC_OVF_CNT_RESET_CH1_M (LEDC_OVF_CNT_RESET_CH1_V << LEDC_OVF_CNT_RESET_CH1_S)
|
|
|
+#define LEDC_OVF_CNT_RESET_CH1_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_RESET_CH1_S 16
|
|
|
+
|
|
|
+/** LEDC_CH1_CONF1_REG register
|
|
|
+ * Configuration register 1 for channel
|
|
|
+ * 1
|
|
|
+ */
|
|
|
+#define LEDC_CH1_CONF1_REG (DR_REG_LEDC_BASE + 0x20)
|
|
|
+/* LEDC_DUTY_SCALE_CH1 : R/W; bitpos: [10:0]; default: 0;
|
|
|
+ * This register is used to configure the changing step scale of duty on
|
|
|
+ * channel
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_SCALE_CH1 0x000003FF
|
|
|
+#define LEDC_DUTY_SCALE_CH1_M (LEDC_DUTY_SCALE_CH1_V << LEDC_DUTY_SCALE_CH1_S)
|
|
|
+#define LEDC_DUTY_SCALE_CH1_V 0x000003FF
|
|
|
+#define LEDC_DUTY_SCALE_CH1_S 0
|
|
|
+/* LEDC_DUTY_CYCLE_CH1 : R/W; bitpos: [20:10]; default: 0;
|
|
|
+ * The duty will change every LEDC_DUTY_CYCLE_CH1 on channel
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CYCLE_CH1 0x000003FF
|
|
|
+#define LEDC_DUTY_CYCLE_CH1_M (LEDC_DUTY_CYCLE_CH1_V << LEDC_DUTY_CYCLE_CH1_S)
|
|
|
+#define LEDC_DUTY_CYCLE_CH1_V 0x000003FF
|
|
|
+#define LEDC_DUTY_CYCLE_CH1_S 10
|
|
|
+/* LEDC_DUTY_NUM_CH1 : R/W; bitpos: [30:20]; default: 0;
|
|
|
+ * This register is used to control the number of times the duty cycle
|
|
|
+ * will be
|
|
|
+ * changed.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_NUM_CH1 0x000003FF
|
|
|
+#define LEDC_DUTY_NUM_CH1_M (LEDC_DUTY_NUM_CH1_V << LEDC_DUTY_NUM_CH1_S)
|
|
|
+#define LEDC_DUTY_NUM_CH1_V 0x000003FF
|
|
|
+#define LEDC_DUTY_NUM_CH1_S 20
|
|
|
+/* LEDC_DUTY_INC_CH1 : R/W; bitpos: [30]; default: 1;
|
|
|
+ * This register is used to increase or decrease the duty of output signal
|
|
|
+ * on channel 1. 1: Increase; 0:
|
|
|
+ * Decrease.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_INC_CH1 (BIT(30))
|
|
|
+#define LEDC_DUTY_INC_CH1_M (LEDC_DUTY_INC_CH1_V << LEDC_DUTY_INC_CH1_S)
|
|
|
+#define LEDC_DUTY_INC_CH1_V 0x00000001
|
|
|
+#define LEDC_DUTY_INC_CH1_S 30
|
|
|
+/* LEDC_DUTY_START_CH1 : R/W/SC; bitpos: [31]; default: 0;
|
|
|
+ * Other configured fields in LEDC_CH1_CONF1_REG will start to take effect
|
|
|
+ * when this bit is set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_START_CH1 (BIT(31))
|
|
|
+#define LEDC_DUTY_START_CH1_M (LEDC_DUTY_START_CH1_V << LEDC_DUTY_START_CH1_S)
|
|
|
+#define LEDC_DUTY_START_CH1_V 0x00000001
|
|
|
+#define LEDC_DUTY_START_CH1_S 31
|
|
|
+
|
|
|
+/** LEDC_CH2_CONF0_REG register
|
|
|
+ * Configuration register 0 for channel
|
|
|
+ * 2
|
|
|
+ */
|
|
|
+#define LEDC_CH2_CONF0_REG (DR_REG_LEDC_BASE + 0x28)
|
|
|
+/* LEDC_TIMER_SEL_CH2 : R/W; bitpos: [2:0]; default: 0;
|
|
|
+ * This field is used to select one of timers for channel 2.
|
|
|
+ * 0: select timer0; 1: select timer1; 2: select timer2; 3: select
|
|
|
+ * timer3
|
|
|
+ */
|
|
|
+#define LEDC_TIMER_SEL_CH2 0x00000003
|
|
|
+#define LEDC_TIMER_SEL_CH2_M (LEDC_TIMER_SEL_CH2_V << LEDC_TIMER_SEL_CH2_S)
|
|
|
+#define LEDC_TIMER_SEL_CH2_V 0x00000003
|
|
|
+#define LEDC_TIMER_SEL_CH2_S 0
|
|
|
+/* LEDC_SIG_OUT_EN_CH2 : R/W; bitpos: [2]; default: 0;
|
|
|
+ * Set this bit to enable signal output on channel
|
|
|
+ * 2.
|
|
|
+ */
|
|
|
+#define LEDC_SIG_OUT_EN_CH2 (BIT(2))
|
|
|
+#define LEDC_SIG_OUT_EN_CH2_M (LEDC_SIG_OUT_EN_CH2_V << LEDC_SIG_OUT_EN_CH2_S)
|
|
|
+#define LEDC_SIG_OUT_EN_CH2_V 0x00000001
|
|
|
+#define LEDC_SIG_OUT_EN_CH2_S 2
|
|
|
+/* LEDC_IDLE_LV_CH2 : R/W; bitpos: [3]; default: 0;
|
|
|
+ * This bit is used to control the output value when channel 2 is inactive
|
|
|
+ * (when LEDC_SIG_OUT_EN_CH2 is
|
|
|
+ * 0).
|
|
|
+ */
|
|
|
+#define LEDC_IDLE_LV_CH2 (BIT(3))
|
|
|
+#define LEDC_IDLE_LV_CH2_M (LEDC_IDLE_LV_CH2_V << LEDC_IDLE_LV_CH2_S)
|
|
|
+#define LEDC_IDLE_LV_CH2_V 0x00000001
|
|
|
+#define LEDC_IDLE_LV_CH2_S 3
|
|
|
+/* LEDC_PARA_UP_CH2 : WT; bitpos: [4]; default: 0;
|
|
|
+ * This bit is used to update LEDC_HPOINT_CH2, LEDC_DUTY_START_CH2,
|
|
|
+ * LEDC_SIG_OUT_EN_CH2, LEDC_TIMER_SEL_CH2, LEDC_DUTY_NUM_CH2,
|
|
|
+ * LEDC_DUTY_CYCLE_CH2, LEDC_DUTY_SCALE_CH2, LEDC_DUTY_INC_CH2, and
|
|
|
+ * LEDC_OVF_CNT_EN_CH2 fields for channel 2, and will be automatically
|
|
|
+ * cleared by
|
|
|
+ * hardware.
|
|
|
+ */
|
|
|
+#define LEDC_PARA_UP_CH2 (BIT(4))
|
|
|
+#define LEDC_PARA_UP_CH2_M (LEDC_PARA_UP_CH2_V << LEDC_PARA_UP_CH2_S)
|
|
|
+#define LEDC_PARA_UP_CH2_V 0x00000001
|
|
|
+#define LEDC_PARA_UP_CH2_S 4
|
|
|
+/* LEDC_OVF_NUM_CH2 : R/W; bitpos: [15:5]; default: 0;
|
|
|
+ * This register is used to configure the maximum times of overflow minus
|
|
|
+ * 1.
|
|
|
+ * The LEDC_OVF_CNT_CH2_INT interrupt will be triggered when channel 2
|
|
|
+ * overflows for (LEDC_OVF_NUM_CH2 + 1)
|
|
|
+ * times.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_NUM_CH2 0x000003FF
|
|
|
+#define LEDC_OVF_NUM_CH2_M (LEDC_OVF_NUM_CH2_V << LEDC_OVF_NUM_CH2_S)
|
|
|
+#define LEDC_OVF_NUM_CH2_V 0x000003FF
|
|
|
+#define LEDC_OVF_NUM_CH2_S 5
|
|
|
+/* LEDC_OVF_CNT_EN_CH2 : R/W; bitpos: [15]; default: 0;
|
|
|
+ * This bit is used to enable the ovf_cnt of channel
|
|
|
+ * 2.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_EN_CH2 (BIT(15))
|
|
|
+#define LEDC_OVF_CNT_EN_CH2_M (LEDC_OVF_CNT_EN_CH2_V << LEDC_OVF_CNT_EN_CH2_S)
|
|
|
+#define LEDC_OVF_CNT_EN_CH2_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_EN_CH2_S 15
|
|
|
+/* LEDC_OVF_CNT_RESET_CH2 : WT; bitpos: [16]; default: 0;
|
|
|
+ * Set this bit to reset the ovf_cnt of channel
|
|
|
+ * 2.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_RESET_CH2 (BIT(16))
|
|
|
+#define LEDC_OVF_CNT_RESET_CH2_M (LEDC_OVF_CNT_RESET_CH2_V << LEDC_OVF_CNT_RESET_CH2_S)
|
|
|
+#define LEDC_OVF_CNT_RESET_CH2_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_RESET_CH2_S 16
|
|
|
+
|
|
|
+/** LEDC_CH2_CONF1_REG register
|
|
|
+ * Configuration register 1 for channel
|
|
|
+ * 2
|
|
|
+ */
|
|
|
+#define LEDC_CH2_CONF1_REG (DR_REG_LEDC_BASE + 0x34)
|
|
|
+/* LEDC_DUTY_SCALE_CH2 : R/W; bitpos: [10:0]; default: 0;
|
|
|
+ * This register is used to configure the changing step scale of duty on
|
|
|
+ * channel
|
|
|
+ * 2.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_SCALE_CH2 0x000003FF
|
|
|
+#define LEDC_DUTY_SCALE_CH2_M (LEDC_DUTY_SCALE_CH2_V << LEDC_DUTY_SCALE_CH2_S)
|
|
|
+#define LEDC_DUTY_SCALE_CH2_V 0x000003FF
|
|
|
+#define LEDC_DUTY_SCALE_CH2_S 0
|
|
|
+/* LEDC_DUTY_CYCLE_CH2 : R/W; bitpos: [20:10]; default: 0;
|
|
|
+ * The duty will change every LEDC_DUTY_CYCLE_CH2 on channel
|
|
|
+ * 2.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CYCLE_CH2 0x000003FF
|
|
|
+#define LEDC_DUTY_CYCLE_CH2_M (LEDC_DUTY_CYCLE_CH2_V << LEDC_DUTY_CYCLE_CH2_S)
|
|
|
+#define LEDC_DUTY_CYCLE_CH2_V 0x000003FF
|
|
|
+#define LEDC_DUTY_CYCLE_CH2_S 10
|
|
|
+/* LEDC_DUTY_NUM_CH2 : R/W; bitpos: [30:20]; default: 0;
|
|
|
+ * This register is used to control the number of times the duty cycle
|
|
|
+ * will be
|
|
|
+ * changed.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_NUM_CH2 0x000003FF
|
|
|
+#define LEDC_DUTY_NUM_CH2_M (LEDC_DUTY_NUM_CH2_V << LEDC_DUTY_NUM_CH2_S)
|
|
|
+#define LEDC_DUTY_NUM_CH2_V 0x000003FF
|
|
|
+#define LEDC_DUTY_NUM_CH2_S 20
|
|
|
+/* LEDC_DUTY_INC_CH2 : R/W; bitpos: [30]; default: 1;
|
|
|
+ * This register is used to increase or decrease the duty of output signal
|
|
|
+ * on channel 2. 1: Increase; 0:
|
|
|
+ * Decrease.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_INC_CH2 (BIT(30))
|
|
|
+#define LEDC_DUTY_INC_CH2_M (LEDC_DUTY_INC_CH2_V << LEDC_DUTY_INC_CH2_S)
|
|
|
+#define LEDC_DUTY_INC_CH2_V 0x00000001
|
|
|
+#define LEDC_DUTY_INC_CH2_S 30
|
|
|
+/* LEDC_DUTY_START_CH2 : R/W/SC; bitpos: [31]; default: 0;
|
|
|
+ * Other configured fields in LEDC_CH2_CONF1_REG will start to take effect
|
|
|
+ * when this bit is set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_START_CH2 (BIT(31))
|
|
|
+#define LEDC_DUTY_START_CH2_M (LEDC_DUTY_START_CH2_V << LEDC_DUTY_START_CH2_S)
|
|
|
+#define LEDC_DUTY_START_CH2_V 0x00000001
|
|
|
+#define LEDC_DUTY_START_CH2_S 31
|
|
|
+
|
|
|
+/** LEDC_CH3_CONF0_REG register
|
|
|
+ * Configuration register 0 for channel
|
|
|
+ * 3
|
|
|
+ */
|
|
|
+#define LEDC_CH3_CONF0_REG (DR_REG_LEDC_BASE + 0x3c)
|
|
|
+/* LEDC_TIMER_SEL_CH3 : R/W; bitpos: [2:0]; default: 0;
|
|
|
+ * This field is used to select one of timers for channel 3.
|
|
|
+ * 0: select timer0; 1: select timer1; 2: select timer2; 3: select
|
|
|
+ * timer3
|
|
|
+ */
|
|
|
+#define LEDC_TIMER_SEL_CH3 0x00000003
|
|
|
+#define LEDC_TIMER_SEL_CH3_M (LEDC_TIMER_SEL_CH3_V << LEDC_TIMER_SEL_CH3_S)
|
|
|
+#define LEDC_TIMER_SEL_CH3_V 0x00000003
|
|
|
+#define LEDC_TIMER_SEL_CH3_S 0
|
|
|
+/* LEDC_SIG_OUT_EN_CH3 : R/W; bitpos: [2]; default: 0;
|
|
|
+ * Set this bit to enable signal output on channel
|
|
|
+ * 3.
|
|
|
+ */
|
|
|
+#define LEDC_SIG_OUT_EN_CH3 (BIT(2))
|
|
|
+#define LEDC_SIG_OUT_EN_CH3_M (LEDC_SIG_OUT_EN_CH3_V << LEDC_SIG_OUT_EN_CH3_S)
|
|
|
+#define LEDC_SIG_OUT_EN_CH3_V 0x00000001
|
|
|
+#define LEDC_SIG_OUT_EN_CH3_S 2
|
|
|
+/* LEDC_IDLE_LV_CH3 : R/W; bitpos: [3]; default: 0;
|
|
|
+ * This bit is used to control the output value when channel 3 is inactive
|
|
|
+ * (when LEDC_SIG_OUT_EN_CH3 is
|
|
|
+ * 0).
|
|
|
+ */
|
|
|
+#define LEDC_IDLE_LV_CH3 (BIT(3))
|
|
|
+#define LEDC_IDLE_LV_CH3_M (LEDC_IDLE_LV_CH3_V << LEDC_IDLE_LV_CH3_S)
|
|
|
+#define LEDC_IDLE_LV_CH3_V 0x00000001
|
|
|
+#define LEDC_IDLE_LV_CH3_S 3
|
|
|
+/* LEDC_PARA_UP_CH3 : WT; bitpos: [4]; default: 0;
|
|
|
+ * This bit is used to update LEDC_HPOINT_CH3, LEDC_DUTY_START_CH3,
|
|
|
+ * LEDC_SIG_OUT_EN_CH3, LEDC_TIMER_SEL_CH3, LEDC_DUTY_NUM_CH3,
|
|
|
+ * LEDC_DUTY_CYCLE_CH3, LEDC_DUTY_SCALE_CH3, LEDC_DUTY_INC_CH3, and
|
|
|
+ * LEDC_OVF_CNT_EN_CH3 fields for channel 3, and will be automatically
|
|
|
+ * cleared by
|
|
|
+ * hardware.
|
|
|
+ */
|
|
|
+#define LEDC_PARA_UP_CH3 (BIT(4))
|
|
|
+#define LEDC_PARA_UP_CH3_M (LEDC_PARA_UP_CH3_V << LEDC_PARA_UP_CH3_S)
|
|
|
+#define LEDC_PARA_UP_CH3_V 0x00000001
|
|
|
+#define LEDC_PARA_UP_CH3_S 4
|
|
|
+/* LEDC_OVF_NUM_CH3 : R/W; bitpos: [15:5]; default: 0;
|
|
|
+ * This register is used to configure the maximum times of overflow minus
|
|
|
+ * 1.
|
|
|
+ * The LEDC_OVF_CNT_CH3_INT interrupt will be triggered when channel 3
|
|
|
+ * overflows for (LEDC_OVF_NUM_CH3 + 1)
|
|
|
+ * times.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_NUM_CH3 0x000003FF
|
|
|
+#define LEDC_OVF_NUM_CH3_M (LEDC_OVF_NUM_CH3_V << LEDC_OVF_NUM_CH3_S)
|
|
|
+#define LEDC_OVF_NUM_CH3_V 0x000003FF
|
|
|
+#define LEDC_OVF_NUM_CH3_S 5
|
|
|
+/* LEDC_OVF_CNT_EN_CH3 : R/W; bitpos: [15]; default: 0;
|
|
|
+ * This bit is used to enable the ovf_cnt of channel
|
|
|
+ * 3.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_EN_CH3 (BIT(15))
|
|
|
+#define LEDC_OVF_CNT_EN_CH3_M (LEDC_OVF_CNT_EN_CH3_V << LEDC_OVF_CNT_EN_CH3_S)
|
|
|
+#define LEDC_OVF_CNT_EN_CH3_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_EN_CH3_S 15
|
|
|
+/* LEDC_OVF_CNT_RESET_CH3 : WT; bitpos: [16]; default: 0;
|
|
|
+ * Set this bit to reset the ovf_cnt of channel
|
|
|
+ * 3.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_RESET_CH3 (BIT(16))
|
|
|
+#define LEDC_OVF_CNT_RESET_CH3_M (LEDC_OVF_CNT_RESET_CH3_V << LEDC_OVF_CNT_RESET_CH3_S)
|
|
|
+#define LEDC_OVF_CNT_RESET_CH3_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_RESET_CH3_S 16
|
|
|
+
|
|
|
+/** LEDC_CH3_CONF1_REG register
|
|
|
+ * Configuration register 1 for channel
|
|
|
+ * 3
|
|
|
+ */
|
|
|
+#define LEDC_CH3_CONF1_REG (DR_REG_LEDC_BASE + 0x48)
|
|
|
+/* LEDC_DUTY_SCALE_CH3 : R/W; bitpos: [10:0]; default: 0;
|
|
|
+ * This register is used to configure the changing step scale of duty on
|
|
|
+ * channel
|
|
|
+ * 3.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_SCALE_CH3 0x000003FF
|
|
|
+#define LEDC_DUTY_SCALE_CH3_M (LEDC_DUTY_SCALE_CH3_V << LEDC_DUTY_SCALE_CH3_S)
|
|
|
+#define LEDC_DUTY_SCALE_CH3_V 0x000003FF
|
|
|
+#define LEDC_DUTY_SCALE_CH3_S 0
|
|
|
+/* LEDC_DUTY_CYCLE_CH3 : R/W; bitpos: [20:10]; default: 0;
|
|
|
+ * The duty will change every LEDC_DUTY_CYCLE_CH3 on channel
|
|
|
+ * 3.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CYCLE_CH3 0x000003FF
|
|
|
+#define LEDC_DUTY_CYCLE_CH3_M (LEDC_DUTY_CYCLE_CH3_V << LEDC_DUTY_CYCLE_CH3_S)
|
|
|
+#define LEDC_DUTY_CYCLE_CH3_V 0x000003FF
|
|
|
+#define LEDC_DUTY_CYCLE_CH3_S 10
|
|
|
+/* LEDC_DUTY_NUM_CH3 : R/W; bitpos: [30:20]; default: 0;
|
|
|
+ * This register is used to control the number of times the duty cycle
|
|
|
+ * will be
|
|
|
+ * changed.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_NUM_CH3 0x000003FF
|
|
|
+#define LEDC_DUTY_NUM_CH3_M (LEDC_DUTY_NUM_CH3_V << LEDC_DUTY_NUM_CH3_S)
|
|
|
+#define LEDC_DUTY_NUM_CH3_V 0x000003FF
|
|
|
+#define LEDC_DUTY_NUM_CH3_S 20
|
|
|
+/* LEDC_DUTY_INC_CH3 : R/W; bitpos: [30]; default: 1;
|
|
|
+ * This register is used to increase or decrease the duty of output signal
|
|
|
+ * on channel 3. 1: Increase; 0:
|
|
|
+ * Decrease.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_INC_CH3 (BIT(30))
|
|
|
+#define LEDC_DUTY_INC_CH3_M (LEDC_DUTY_INC_CH3_V << LEDC_DUTY_INC_CH3_S)
|
|
|
+#define LEDC_DUTY_INC_CH3_V 0x00000001
|
|
|
+#define LEDC_DUTY_INC_CH3_S 30
|
|
|
+/* LEDC_DUTY_START_CH3 : R/W/SC; bitpos: [31]; default: 0;
|
|
|
+ * Other configured fields in LEDC_CH3_CONF1_REG will start to take effect
|
|
|
+ * when this bit is set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_START_CH3 (BIT(31))
|
|
|
+#define LEDC_DUTY_START_CH3_M (LEDC_DUTY_START_CH3_V << LEDC_DUTY_START_CH3_S)
|
|
|
+#define LEDC_DUTY_START_CH3_V 0x00000001
|
|
|
+#define LEDC_DUTY_START_CH3_S 31
|
|
|
+
|
|
|
+/** LEDC_CH4_CONF0_REG register
|
|
|
+ * Configuration register 0 for channel
|
|
|
+ * 4
|
|
|
+ */
|
|
|
+#define LEDC_CH4_CONF0_REG (DR_REG_LEDC_BASE + 0x50)
|
|
|
+/* LEDC_TIMER_SEL_CH4 : R/W; bitpos: [2:0]; default: 0;
|
|
|
+ * This field is used to select one of timers for channel 4.
|
|
|
+ * 0: select timer0; 1: select timer1; 2: select timer2; 3: select
|
|
|
+ * timer3
|
|
|
+ */
|
|
|
+#define LEDC_TIMER_SEL_CH4 0x00000003
|
|
|
+#define LEDC_TIMER_SEL_CH4_M (LEDC_TIMER_SEL_CH4_V << LEDC_TIMER_SEL_CH4_S)
|
|
|
+#define LEDC_TIMER_SEL_CH4_V 0x00000003
|
|
|
+#define LEDC_TIMER_SEL_CH4_S 0
|
|
|
+/* LEDC_SIG_OUT_EN_CH4 : R/W; bitpos: [2]; default: 0;
|
|
|
+ * Set this bit to enable signal output on channel
|
|
|
+ * 4.
|
|
|
+ */
|
|
|
+#define LEDC_SIG_OUT_EN_CH4 (BIT(2))
|
|
|
+#define LEDC_SIG_OUT_EN_CH4_M (LEDC_SIG_OUT_EN_CH4_V << LEDC_SIG_OUT_EN_CH4_S)
|
|
|
+#define LEDC_SIG_OUT_EN_CH4_V 0x00000001
|
|
|
+#define LEDC_SIG_OUT_EN_CH4_S 2
|
|
|
+/* LEDC_IDLE_LV_CH4 : R/W; bitpos: [3]; default: 0;
|
|
|
+ * This bit is used to control the output value when channel 4 is inactive
|
|
|
+ * (when LEDC_SIG_OUT_EN_CH4 is
|
|
|
+ * 0).
|
|
|
+ */
|
|
|
+#define LEDC_IDLE_LV_CH4 (BIT(3))
|
|
|
+#define LEDC_IDLE_LV_CH4_M (LEDC_IDLE_LV_CH4_V << LEDC_IDLE_LV_CH4_S)
|
|
|
+#define LEDC_IDLE_LV_CH4_V 0x00000001
|
|
|
+#define LEDC_IDLE_LV_CH4_S 3
|
|
|
+/* LEDC_PARA_UP_CH4 : WT; bitpos: [4]; default: 0;
|
|
|
+ * This bit is used to update LEDC_HPOINT_CH4, LEDC_DUTY_START_CH4,
|
|
|
+ * LEDC_SIG_OUT_EN_CH4, LEDC_TIMER_SEL_CH4, LEDC_DUTY_NUM_CH4,
|
|
|
+ * LEDC_DUTY_CYCLE_CH4, LEDC_DUTY_SCALE_CH4, LEDC_DUTY_INC_CH4, and
|
|
|
+ * LEDC_OVF_CNT_EN_CH4 fields for channel 4, and will be automatically
|
|
|
+ * cleared by
|
|
|
+ * hardware.
|
|
|
+ */
|
|
|
+#define LEDC_PARA_UP_CH4 (BIT(4))
|
|
|
+#define LEDC_PARA_UP_CH4_M (LEDC_PARA_UP_CH4_V << LEDC_PARA_UP_CH4_S)
|
|
|
+#define LEDC_PARA_UP_CH4_V 0x00000001
|
|
|
+#define LEDC_PARA_UP_CH4_S 4
|
|
|
+/* LEDC_OVF_NUM_CH4 : R/W; bitpos: [15:5]; default: 0;
|
|
|
+ * This register is used to configure the maximum times of overflow minus
|
|
|
+ * 1.
|
|
|
+ * The LEDC_OVF_CNT_CH4_INT interrupt will be triggered when channel 4
|
|
|
+ * overflows for (LEDC_OVF_NUM_CH4 + 1)
|
|
|
+ * times.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_NUM_CH4 0x000003FF
|
|
|
+#define LEDC_OVF_NUM_CH4_M (LEDC_OVF_NUM_CH4_V << LEDC_OVF_NUM_CH4_S)
|
|
|
+#define LEDC_OVF_NUM_CH4_V 0x000003FF
|
|
|
+#define LEDC_OVF_NUM_CH4_S 5
|
|
|
+/* LEDC_OVF_CNT_EN_CH4 : R/W; bitpos: [15]; default: 0;
|
|
|
+ * This bit is used to enable the ovf_cnt of channel
|
|
|
+ * 4.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_EN_CH4 (BIT(15))
|
|
|
+#define LEDC_OVF_CNT_EN_CH4_M (LEDC_OVF_CNT_EN_CH4_V << LEDC_OVF_CNT_EN_CH4_S)
|
|
|
+#define LEDC_OVF_CNT_EN_CH4_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_EN_CH4_S 15
|
|
|
+/* LEDC_OVF_CNT_RESET_CH4 : WT; bitpos: [16]; default: 0;
|
|
|
+ * Set this bit to reset the ovf_cnt of channel
|
|
|
+ * 4.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_RESET_CH4 (BIT(16))
|
|
|
+#define LEDC_OVF_CNT_RESET_CH4_M (LEDC_OVF_CNT_RESET_CH4_V << LEDC_OVF_CNT_RESET_CH4_S)
|
|
|
+#define LEDC_OVF_CNT_RESET_CH4_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_RESET_CH4_S 16
|
|
|
+
|
|
|
+/** LEDC_CH4_CONF1_REG register
|
|
|
+ * Configuration register 1 for channel
|
|
|
+ * 4
|
|
|
+ */
|
|
|
+#define LEDC_CH4_CONF1_REG (DR_REG_LEDC_BASE + 0x5c)
|
|
|
+/* LEDC_DUTY_SCALE_CH4 : R/W; bitpos: [10:0]; default: 0;
|
|
|
+ * This register is used to configure the changing step scale of duty on
|
|
|
+ * channel
|
|
|
+ * 4.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_SCALE_CH4 0x000003FF
|
|
|
+#define LEDC_DUTY_SCALE_CH4_M (LEDC_DUTY_SCALE_CH4_V << LEDC_DUTY_SCALE_CH4_S)
|
|
|
+#define LEDC_DUTY_SCALE_CH4_V 0x000003FF
|
|
|
+#define LEDC_DUTY_SCALE_CH4_S 0
|
|
|
+/* LEDC_DUTY_CYCLE_CH4 : R/W; bitpos: [20:10]; default: 0;
|
|
|
+ * The duty will change every LEDC_DUTY_CYCLE_CH4 on channel
|
|
|
+ * 4.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CYCLE_CH4 0x000003FF
|
|
|
+#define LEDC_DUTY_CYCLE_CH4_M (LEDC_DUTY_CYCLE_CH4_V << LEDC_DUTY_CYCLE_CH4_S)
|
|
|
+#define LEDC_DUTY_CYCLE_CH4_V 0x000003FF
|
|
|
+#define LEDC_DUTY_CYCLE_CH4_S 10
|
|
|
+/* LEDC_DUTY_NUM_CH4 : R/W; bitpos: [30:20]; default: 0;
|
|
|
+ * This register is used to control the number of times the duty cycle
|
|
|
+ * will be
|
|
|
+ * changed.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_NUM_CH4 0x000003FF
|
|
|
+#define LEDC_DUTY_NUM_CH4_M (LEDC_DUTY_NUM_CH4_V << LEDC_DUTY_NUM_CH4_S)
|
|
|
+#define LEDC_DUTY_NUM_CH4_V 0x000003FF
|
|
|
+#define LEDC_DUTY_NUM_CH4_S 20
|
|
|
+/* LEDC_DUTY_INC_CH4 : R/W; bitpos: [30]; default: 1;
|
|
|
+ * This register is used to increase or decrease the duty of output signal
|
|
|
+ * on channel 4. 1: Increase; 0:
|
|
|
+ * Decrease.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_INC_CH4 (BIT(30))
|
|
|
+#define LEDC_DUTY_INC_CH4_M (LEDC_DUTY_INC_CH4_V << LEDC_DUTY_INC_CH4_S)
|
|
|
+#define LEDC_DUTY_INC_CH4_V 0x00000001
|
|
|
+#define LEDC_DUTY_INC_CH4_S 30
|
|
|
+/* LEDC_DUTY_START_CH4 : R/W/SC; bitpos: [31]; default: 0;
|
|
|
+ * Other configured fields in LEDC_CH4_CONF1_REG will start to take effect
|
|
|
+ * when this bit is set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_START_CH4 (BIT(31))
|
|
|
+#define LEDC_DUTY_START_CH4_M (LEDC_DUTY_START_CH4_V << LEDC_DUTY_START_CH4_S)
|
|
|
+#define LEDC_DUTY_START_CH4_V 0x00000001
|
|
|
+#define LEDC_DUTY_START_CH4_S 31
|
|
|
+
|
|
|
+/** LEDC_CH5_CONF0_REG register
|
|
|
+ * Configuration register 0 for channel
|
|
|
+ * 5
|
|
|
+ */
|
|
|
+#define LEDC_CH5_CONF0_REG (DR_REG_LEDC_BASE + 0x64)
|
|
|
+/* LEDC_TIMER_SEL_CH5 : R/W; bitpos: [2:0]; default: 0;
|
|
|
+ * This field is used to select one of timers for channel 5.
|
|
|
+ * 0: select timer0; 1: select timer1; 2: select timer2; 3: select
|
|
|
+ * timer3
|
|
|
+ */
|
|
|
+#define LEDC_TIMER_SEL_CH5 0x00000003
|
|
|
+#define LEDC_TIMER_SEL_CH5_M (LEDC_TIMER_SEL_CH5_V << LEDC_TIMER_SEL_CH5_S)
|
|
|
+#define LEDC_TIMER_SEL_CH5_V 0x00000003
|
|
|
+#define LEDC_TIMER_SEL_CH5_S 0
|
|
|
+/* LEDC_SIG_OUT_EN_CH5 : R/W; bitpos: [2]; default: 0;
|
|
|
+ * Set this bit to enable signal output on channel
|
|
|
+ * 5.
|
|
|
+ */
|
|
|
+#define LEDC_SIG_OUT_EN_CH5 (BIT(2))
|
|
|
+#define LEDC_SIG_OUT_EN_CH5_M (LEDC_SIG_OUT_EN_CH5_V << LEDC_SIG_OUT_EN_CH5_S)
|
|
|
+#define LEDC_SIG_OUT_EN_CH5_V 0x00000001
|
|
|
+#define LEDC_SIG_OUT_EN_CH5_S 2
|
|
|
+/* LEDC_IDLE_LV_CH5 : R/W; bitpos: [3]; default: 0;
|
|
|
+ * This bit is used to control the output value when channel 5 is inactive
|
|
|
+ * (when LEDC_SIG_OUT_EN_CH5 is
|
|
|
+ * 0).
|
|
|
+ */
|
|
|
+#define LEDC_IDLE_LV_CH5 (BIT(3))
|
|
|
+#define LEDC_IDLE_LV_CH5_M (LEDC_IDLE_LV_CH5_V << LEDC_IDLE_LV_CH5_S)
|
|
|
+#define LEDC_IDLE_LV_CH5_V 0x00000001
|
|
|
+#define LEDC_IDLE_LV_CH5_S 3
|
|
|
+/* LEDC_PARA_UP_CH5 : WT; bitpos: [4]; default: 0;
|
|
|
+ * This bit is used to update LEDC_HPOINT_CH5, LEDC_DUTY_START_CH5,
|
|
|
+ * LEDC_SIG_OUT_EN_CH5, LEDC_TIMER_SEL_CH5, LEDC_DUTY_NUM_CH5,
|
|
|
+ * LEDC_DUTY_CYCLE_CH5, LEDC_DUTY_SCALE_CH5, LEDC_DUTY_INC_CH5, and
|
|
|
+ * LEDC_OVF_CNT_EN_CH5 fields for channel 5, and will be automatically
|
|
|
+ * cleared by
|
|
|
+ * hardware.
|
|
|
+ */
|
|
|
+#define LEDC_PARA_UP_CH5 (BIT(4))
|
|
|
+#define LEDC_PARA_UP_CH5_M (LEDC_PARA_UP_CH5_V << LEDC_PARA_UP_CH5_S)
|
|
|
+#define LEDC_PARA_UP_CH5_V 0x00000001
|
|
|
+#define LEDC_PARA_UP_CH5_S 4
|
|
|
+/* LEDC_OVF_NUM_CH5 : R/W; bitpos: [15:5]; default: 0;
|
|
|
+ * This register is used to configure the maximum times of overflow minus
|
|
|
+ * 1.
|
|
|
+ * The LEDC_OVF_CNT_CH5_INT interrupt will be triggered when channel 5
|
|
|
+ * overflows for (LEDC_OVF_NUM_CH5 + 1)
|
|
|
+ * times.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_NUM_CH5 0x000003FF
|
|
|
+#define LEDC_OVF_NUM_CH5_M (LEDC_OVF_NUM_CH5_V << LEDC_OVF_NUM_CH5_S)
|
|
|
+#define LEDC_OVF_NUM_CH5_V 0x000003FF
|
|
|
+#define LEDC_OVF_NUM_CH5_S 5
|
|
|
+/* LEDC_OVF_CNT_EN_CH5 : R/W; bitpos: [15]; default: 0;
|
|
|
+ * This bit is used to enable the ovf_cnt of channel
|
|
|
+ * 5.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_EN_CH5 (BIT(15))
|
|
|
+#define LEDC_OVF_CNT_EN_CH5_M (LEDC_OVF_CNT_EN_CH5_V << LEDC_OVF_CNT_EN_CH5_S)
|
|
|
+#define LEDC_OVF_CNT_EN_CH5_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_EN_CH5_S 15
|
|
|
+/* LEDC_OVF_CNT_RESET_CH5 : WT; bitpos: [16]; default: 0;
|
|
|
+ * Set this bit to reset the ovf_cnt of channel
|
|
|
+ * 5.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_RESET_CH5 (BIT(16))
|
|
|
+#define LEDC_OVF_CNT_RESET_CH5_M (LEDC_OVF_CNT_RESET_CH5_V << LEDC_OVF_CNT_RESET_CH5_S)
|
|
|
+#define LEDC_OVF_CNT_RESET_CH5_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_RESET_CH5_S 16
|
|
|
+
|
|
|
+/** LEDC_CH5_CONF1_REG register
|
|
|
+ * Configuration register 1 for channel
|
|
|
+ * 5
|
|
|
+ */
|
|
|
+#define LEDC_CH5_CONF1_REG (DR_REG_LEDC_BASE + 0x70)
|
|
|
+/* LEDC_DUTY_SCALE_CH5 : R/W; bitpos: [10:0]; default: 0;
|
|
|
+ * This register is used to configure the changing step scale of duty on
|
|
|
+ * channel
|
|
|
+ * 5.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_SCALE_CH5 0x000003FF
|
|
|
+#define LEDC_DUTY_SCALE_CH5_M (LEDC_DUTY_SCALE_CH5_V << LEDC_DUTY_SCALE_CH5_S)
|
|
|
+#define LEDC_DUTY_SCALE_CH5_V 0x000003FF
|
|
|
+#define LEDC_DUTY_SCALE_CH5_S 0
|
|
|
+/* LEDC_DUTY_CYCLE_CH5 : R/W; bitpos: [20:10]; default: 0;
|
|
|
+ * The duty will change every LEDC_DUTY_CYCLE_CH5 on channel
|
|
|
+ * 5.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CYCLE_CH5 0x000003FF
|
|
|
+#define LEDC_DUTY_CYCLE_CH5_M (LEDC_DUTY_CYCLE_CH5_V << LEDC_DUTY_CYCLE_CH5_S)
|
|
|
+#define LEDC_DUTY_CYCLE_CH5_V 0x000003FF
|
|
|
+#define LEDC_DUTY_CYCLE_CH5_S 10
|
|
|
+/* LEDC_DUTY_NUM_CH5 : R/W; bitpos: [30:20]; default: 0;
|
|
|
+ * This register is used to control the number of times the duty cycle
|
|
|
+ * will be
|
|
|
+ * changed.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_NUM_CH5 0x000003FF
|
|
|
+#define LEDC_DUTY_NUM_CH5_M (LEDC_DUTY_NUM_CH5_V << LEDC_DUTY_NUM_CH5_S)
|
|
|
+#define LEDC_DUTY_NUM_CH5_V 0x000003FF
|
|
|
+#define LEDC_DUTY_NUM_CH5_S 20
|
|
|
+/* LEDC_DUTY_INC_CH5 : R/W; bitpos: [30]; default: 1;
|
|
|
+ * This register is used to increase or decrease the duty of output signal
|
|
|
+ * on channel 5. 1: Increase; 0:
|
|
|
+ * Decrease.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_INC_CH5 (BIT(30))
|
|
|
+#define LEDC_DUTY_INC_CH5_M (LEDC_DUTY_INC_CH5_V << LEDC_DUTY_INC_CH5_S)
|
|
|
+#define LEDC_DUTY_INC_CH5_V 0x00000001
|
|
|
+#define LEDC_DUTY_INC_CH5_S 30
|
|
|
+/* LEDC_DUTY_START_CH5 : R/W/SC; bitpos: [31]; default: 0;
|
|
|
+ * Other configured fields in LEDC_CH5_CONF1_REG will start to take effect
|
|
|
+ * when this bit is set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_START_CH5 (BIT(31))
|
|
|
+#define LEDC_DUTY_START_CH5_M (LEDC_DUTY_START_CH5_V << LEDC_DUTY_START_CH5_S)
|
|
|
+#define LEDC_DUTY_START_CH5_V 0x00000001
|
|
|
+#define LEDC_DUTY_START_CH5_S 31
|
|
|
|
|
|
-#define LEDC_LSCH0_DUTY_REG (DR_REG_LEDC_BASE + 0x0008)
|
|
|
-/* LEDC_DUTY_LSCH0 : R/W ;bitpos:[18:0] ;default: 19'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_LSCH0 0x0007FFFF
|
|
|
-#define LEDC_DUTY_LSCH0_M ((LEDC_DUTY_LSCH0_V)<<(LEDC_DUTY_LSCH0_S))
|
|
|
-#define LEDC_DUTY_LSCH0_V 0x7FFFF
|
|
|
-#define LEDC_DUTY_LSCH0_S 0
|
|
|
+/** LEDC_CONF_REG register
|
|
|
+ * Global ledc configuration
|
|
|
+ * register
|
|
|
+ */
|
|
|
+#define LEDC_CONF_REG (DR_REG_LEDC_BASE + 0xd0)
|
|
|
+/* LEDC_APB_CLK_SEL : R/W; bitpos: [2:0]; default: 0;
|
|
|
+ * This bit is used to select clock source for the 4 timers .
|
|
|
+ * 2'd1: APB_CLK 2'd2: RTC8M_CLK 2'd3:
|
|
|
+ * XTAL_CLK
|
|
|
+ */
|
|
|
+#define LEDC_APB_CLK_SEL 0x00000003
|
|
|
+#define LEDC_APB_CLK_SEL_M (LEDC_APB_CLK_SEL_V << LEDC_APB_CLK_SEL_S)
|
|
|
+#define LEDC_APB_CLK_SEL_V 0x00000003
|
|
|
+#define LEDC_APB_CLK_SEL_S 0
|
|
|
+/* LEDC_CLK_EN : R/W; bitpos: [31]; default: 0;
|
|
|
+ * This bit is used to control clock.
|
|
|
+ * 1'b1: Force clock on for register. 1'h0: Support clock only when
|
|
|
+ * application writes
|
|
|
+ * registers.
|
|
|
+ */
|
|
|
+#define LEDC_CLK_EN (BIT(31))
|
|
|
+#define LEDC_CLK_EN_M (LEDC_CLK_EN_V << LEDC_CLK_EN_S)
|
|
|
+#define LEDC_CLK_EN_V 0x00000001
|
|
|
+#define LEDC_CLK_EN_S 31
|
|
|
|
|
|
-#define LEDC_LSCH0_CONF1_REG (DR_REG_LEDC_BASE + 0x000C)
|
|
|
-/* LEDC_DUTY_START_LSCH0 : R/W ;bitpos:[31] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_START_LSCH0 (BIT(31))
|
|
|
-#define LEDC_DUTY_START_LSCH0_M (BIT(31))
|
|
|
-#define LEDC_DUTY_START_LSCH0_V 0x1
|
|
|
-#define LEDC_DUTY_START_LSCH0_S 31
|
|
|
-/* LEDC_DUTY_INC_LSCH0 : R/W ;bitpos:[30] ;default: 1'b1 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_INC_LSCH0 (BIT(30))
|
|
|
-#define LEDC_DUTY_INC_LSCH0_M (BIT(30))
|
|
|
-#define LEDC_DUTY_INC_LSCH0_V 0x1
|
|
|
-#define LEDC_DUTY_INC_LSCH0_S 30
|
|
|
-/* LEDC_DUTY_NUM_LSCH0 : R/W ;bitpos:[29:20] ;default: 10'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_NUM_LSCH0 0x000003FF
|
|
|
-#define LEDC_DUTY_NUM_LSCH0_M ((LEDC_DUTY_NUM_LSCH0_V)<<(LEDC_DUTY_NUM_LSCH0_S))
|
|
|
-#define LEDC_DUTY_NUM_LSCH0_V 0x3FF
|
|
|
-#define LEDC_DUTY_NUM_LSCH0_S 20
|
|
|
-/* LEDC_DUTY_CYCLE_LSCH0 : R/W ;bitpos:[19:10] ;default: 10'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH0 0x000003FF
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH0_M ((LEDC_DUTY_CYCLE_LSCH0_V)<<(LEDC_DUTY_CYCLE_LSCH0_S))
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH0_V 0x3FF
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH0_S 10
|
|
|
-/* LEDC_DUTY_SCALE_LSCH0 : R/W ;bitpos:[9:0] ;default: 10'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_SCALE_LSCH0 0x000003FF
|
|
|
-#define LEDC_DUTY_SCALE_LSCH0_M ((LEDC_DUTY_SCALE_LSCH0_V)<<(LEDC_DUTY_SCALE_LSCH0_S))
|
|
|
-#define LEDC_DUTY_SCALE_LSCH0_V 0x3FF
|
|
|
-#define LEDC_DUTY_SCALE_LSCH0_S 0
|
|
|
|
|
|
-#define LEDC_LSCH0_DUTY_R_REG (DR_REG_LEDC_BASE + 0x0010)
|
|
|
-/* LEDC_DUTY_LSCH0 : RO ;bitpos:[18:0] ;default: 19'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_LSCH0 0x0007FFFF
|
|
|
-#define LEDC_DUTY_LSCH0_M ((LEDC_DUTY_LSCH0_V)<<(LEDC_DUTY_LSCH0_S))
|
|
|
-#define LEDC_DUTY_LSCH0_V 0x7FFFF
|
|
|
-#define LEDC_DUTY_LSCH0_S 0
|
|
|
+/** Hpoint Register */
|
|
|
|
|
|
-#define LEDC_LSCH1_CONF0_REG (DR_REG_LEDC_BASE + 0x0014)
|
|
|
-/* LEDC_OVF_CNT_RESET_LSCH1 : WO ;bitpos:[16] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH1 (BIT(16))
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH1_M (BIT(16))
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH1_V 0x1
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH1_S 16
|
|
|
-/* LEDC_OVF_CNT_EN_LSCH1 : R/W ;bitpos:[15] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH1 (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH1_M (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH1_V 0x1
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH1_S 15
|
|
|
-/* LEDC_OVF_NUM_LSCH1 : R/W ;bitpos:[14:5] ;default: 10'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_NUM_LSCH1 0x000003FF
|
|
|
-#define LEDC_OVF_NUM_LSCH1_M ((LEDC_OVF_NUM_LSCH1_V)<<(LEDC_OVF_NUM_LSCH1_S))
|
|
|
-#define LEDC_OVF_NUM_LSCH1_V 0x3FF
|
|
|
-#define LEDC_OVF_NUM_LSCH1_S 5
|
|
|
-/* LEDC_PARA_UP_LSCH1 : WO ;bitpos:[4] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_PARA_UP_LSCH1 (BIT(4))
|
|
|
-#define LEDC_PARA_UP_LSCH1_M (BIT(4))
|
|
|
-#define LEDC_PARA_UP_LSCH1_V 0x1
|
|
|
-#define LEDC_PARA_UP_LSCH1_S 4
|
|
|
-/* LEDC_IDLE_LV_LSCH1 : R/W ;bitpos:[3] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_IDLE_LV_LSCH1 (BIT(3))
|
|
|
-#define LEDC_IDLE_LV_LSCH1_M (BIT(3))
|
|
|
-#define LEDC_IDLE_LV_LSCH1_V 0x1
|
|
|
-#define LEDC_IDLE_LV_LSCH1_S 3
|
|
|
-/* LEDC_SIG_OUT_EN_LSCH1 : R/W ;bitpos:[2] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH1 (BIT(2))
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH1_M (BIT(2))
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH1_V 0x1
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH1_S 2
|
|
|
-/* LEDC_TIMER_SEL_LSCH1 : R/W ;bitpos:[1:0] ;default: 2'd0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_TIMER_SEL_LSCH1 0x00000003
|
|
|
-#define LEDC_TIMER_SEL_LSCH1_M ((LEDC_TIMER_SEL_LSCH1_V)<<(LEDC_TIMER_SEL_LSCH1_S))
|
|
|
-#define LEDC_TIMER_SEL_LSCH1_V 0x3
|
|
|
-#define LEDC_TIMER_SEL_LSCH1_S 0
|
|
|
+/** LEDC_CH0_HPOINT_REG register
|
|
|
+ * High point register for channel
|
|
|
+ * 0
|
|
|
+ */
|
|
|
+#define LEDC_CH0_HPOINT_REG (DR_REG_LEDC_BASE + 0x4)
|
|
|
+/* LEDC_HPOINT_CH0 : R/W; bitpos: [14:0]; default: 0;
|
|
|
+ * The output value changes to high when the selected timers has reached
|
|
|
+ * the value specified by this
|
|
|
+ * register.
|
|
|
+ */
|
|
|
+#define LEDC_HPOINT_CH0 0x00003FFF
|
|
|
+#define LEDC_HPOINT_CH0_M (LEDC_HPOINT_CH0_V << LEDC_HPOINT_CH0_S)
|
|
|
+#define LEDC_HPOINT_CH0_V 0x00003FFF
|
|
|
+#define LEDC_HPOINT_CH0_S 0
|
|
|
|
|
|
-#define LEDC_LSCH1_HPOINT_REG (DR_REG_LEDC_BASE + 0x0018)
|
|
|
-/* LEDC_HPOINT_LSCH1 : R/W ;bitpos:[13:0] ;default: 14'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_HPOINT_LSCH1 0x00003FFF
|
|
|
-#define LEDC_HPOINT_LSCH1_M ((LEDC_HPOINT_LSCH1_V)<<(LEDC_HPOINT_LSCH1_S))
|
|
|
-#define LEDC_HPOINT_LSCH1_V 0x3FFF
|
|
|
-#define LEDC_HPOINT_LSCH1_S 0
|
|
|
+/** LEDC_CH1_HPOINT_REG register
|
|
|
+ * High point register for channel
|
|
|
+ * 1
|
|
|
+ */
|
|
|
+#define LEDC_CH1_HPOINT_REG (DR_REG_LEDC_BASE + 0x18)
|
|
|
+/* LEDC_HPOINT_CH1 : R/W; bitpos: [14:0]; default: 0;
|
|
|
+ * The output value changes to high when the selected timers has reached
|
|
|
+ * the value specified by this
|
|
|
+ * register.
|
|
|
+ */
|
|
|
+#define LEDC_HPOINT_CH1 0x00003FFF
|
|
|
+#define LEDC_HPOINT_CH1_M (LEDC_HPOINT_CH1_V << LEDC_HPOINT_CH1_S)
|
|
|
+#define LEDC_HPOINT_CH1_V 0x00003FFF
|
|
|
+#define LEDC_HPOINT_CH1_S 0
|
|
|
|
|
|
-#define LEDC_LSCH1_DUTY_REG (DR_REG_LEDC_BASE + 0x001C)
|
|
|
-/* LEDC_DUTY_LSCH1 : R/W ;bitpos:[18:0] ;default: 19'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_LSCH1 0x0007FFFF
|
|
|
-#define LEDC_DUTY_LSCH1_M ((LEDC_DUTY_LSCH1_V)<<(LEDC_DUTY_LSCH1_S))
|
|
|
-#define LEDC_DUTY_LSCH1_V 0x7FFFF
|
|
|
-#define LEDC_DUTY_LSCH1_S 0
|
|
|
+/** LEDC_CH2_HPOINT_REG register
|
|
|
+ * High point register for channel
|
|
|
+ * 2
|
|
|
+ */
|
|
|
+#define LEDC_CH2_HPOINT_REG (DR_REG_LEDC_BASE + 0x2c)
|
|
|
+/* LEDC_HPOINT_CH2 : R/W; bitpos: [14:0]; default: 0;
|
|
|
+ * The output value changes to high when the selected timers has reached
|
|
|
+ * the value specified by this
|
|
|
+ * register.
|
|
|
+ */
|
|
|
+#define LEDC_HPOINT_CH2 0x00003FFF
|
|
|
+#define LEDC_HPOINT_CH2_M (LEDC_HPOINT_CH2_V << LEDC_HPOINT_CH2_S)
|
|
|
+#define LEDC_HPOINT_CH2_V 0x00003FFF
|
|
|
+#define LEDC_HPOINT_CH2_S 0
|
|
|
|
|
|
-#define LEDC_LSCH1_CONF1_REG (DR_REG_LEDC_BASE + 0x0020)
|
|
|
-/* LEDC_DUTY_START_LSCH1 : R/W ;bitpos:[31] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_START_LSCH1 (BIT(31))
|
|
|
-#define LEDC_DUTY_START_LSCH1_M (BIT(31))
|
|
|
-#define LEDC_DUTY_START_LSCH1_V 0x1
|
|
|
-#define LEDC_DUTY_START_LSCH1_S 31
|
|
|
-/* LEDC_DUTY_INC_LSCH1 : R/W ;bitpos:[30] ;default: 1'b1 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_INC_LSCH1 (BIT(30))
|
|
|
-#define LEDC_DUTY_INC_LSCH1_M (BIT(30))
|
|
|
-#define LEDC_DUTY_INC_LSCH1_V 0x1
|
|
|
-#define LEDC_DUTY_INC_LSCH1_S 30
|
|
|
-/* LEDC_DUTY_NUM_LSCH1 : R/W ;bitpos:[29:20] ;default: 10'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_NUM_LSCH1 0x000003FF
|
|
|
-#define LEDC_DUTY_NUM_LSCH1_M ((LEDC_DUTY_NUM_LSCH1_V)<<(LEDC_DUTY_NUM_LSCH1_S))
|
|
|
-#define LEDC_DUTY_NUM_LSCH1_V 0x3FF
|
|
|
-#define LEDC_DUTY_NUM_LSCH1_S 20
|
|
|
-/* LEDC_DUTY_CYCLE_LSCH1 : R/W ;bitpos:[19:10] ;default: 10'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH1 0x000003FF
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH1_M ((LEDC_DUTY_CYCLE_LSCH1_V)<<(LEDC_DUTY_CYCLE_LSCH1_S))
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH1_V 0x3FF
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH1_S 10
|
|
|
-/* LEDC_DUTY_SCALE_LSCH1 : R/W ;bitpos:[9:0] ;default: 10'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_SCALE_LSCH1 0x000003FF
|
|
|
-#define LEDC_DUTY_SCALE_LSCH1_M ((LEDC_DUTY_SCALE_LSCH1_V)<<(LEDC_DUTY_SCALE_LSCH1_S))
|
|
|
-#define LEDC_DUTY_SCALE_LSCH1_V 0x3FF
|
|
|
-#define LEDC_DUTY_SCALE_LSCH1_S 0
|
|
|
+/** LEDC_CH3_HPOINT_REG register
|
|
|
+ * High point register for channel
|
|
|
+ * 3
|
|
|
+ */
|
|
|
+#define LEDC_CH3_HPOINT_REG (DR_REG_LEDC_BASE + 0x40)
|
|
|
+/* LEDC_HPOINT_CH3 : R/W; bitpos: [14:0]; default: 0;
|
|
|
+ * The output value changes to high when the selected timers has reached
|
|
|
+ * the value specified by this
|
|
|
+ * register.
|
|
|
+ */
|
|
|
+#define LEDC_HPOINT_CH3 0x00003FFF
|
|
|
+#define LEDC_HPOINT_CH3_M (LEDC_HPOINT_CH3_V << LEDC_HPOINT_CH3_S)
|
|
|
+#define LEDC_HPOINT_CH3_V 0x00003FFF
|
|
|
+#define LEDC_HPOINT_CH3_S 0
|
|
|
|
|
|
-#define LEDC_LSCH1_DUTY_R_REG (DR_REG_LEDC_BASE + 0x0024)
|
|
|
-/* LEDC_DUTY_LSCH1 : RO ;bitpos:[18:0] ;default: 19'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_LSCH1 0x0007FFFF
|
|
|
-#define LEDC_DUTY_LSCH1_M ((LEDC_DUTY_LSCH1_V)<<(LEDC_DUTY_LSCH1_S))
|
|
|
-#define LEDC_DUTY_LSCH1_V 0x7FFFF
|
|
|
-#define LEDC_DUTY_LSCH1_S 0
|
|
|
+/** LEDC_CH4_HPOINT_REG register
|
|
|
+ * High point register for channel
|
|
|
+ * 4
|
|
|
+ */
|
|
|
+#define LEDC_CH4_HPOINT_REG (DR_REG_LEDC_BASE + 0x54)
|
|
|
+/* LEDC_HPOINT_CH4 : R/W; bitpos: [14:0]; default: 0;
|
|
|
+ * The output value changes to high when the selected timers has reached
|
|
|
+ * the value specified by this
|
|
|
+ * register.
|
|
|
+ */
|
|
|
+#define LEDC_HPOINT_CH4 0x00003FFF
|
|
|
+#define LEDC_HPOINT_CH4_M (LEDC_HPOINT_CH4_V << LEDC_HPOINT_CH4_S)
|
|
|
+#define LEDC_HPOINT_CH4_V 0x00003FFF
|
|
|
+#define LEDC_HPOINT_CH4_S 0
|
|
|
|
|
|
-#define LEDC_LSCH2_CONF0_REG (DR_REG_LEDC_BASE + 0x0028)
|
|
|
-/* LEDC_OVF_CNT_RESET_LSCH2 : WO ;bitpos:[16] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH2 (BIT(16))
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH2_M (BIT(16))
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH2_V 0x1
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH2_S 16
|
|
|
-/* LEDC_OVF_CNT_EN_LSCH2 : R/W ;bitpos:[15] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH2 (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH2_M (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH2_V 0x1
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH2_S 15
|
|
|
-/* LEDC_OVF_NUM_LSCH2 : R/W ;bitpos:[14:5] ;default: 10'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_NUM_LSCH2 0x000003FF
|
|
|
-#define LEDC_OVF_NUM_LSCH2_M ((LEDC_OVF_NUM_LSCH2_V)<<(LEDC_OVF_NUM_LSCH2_S))
|
|
|
-#define LEDC_OVF_NUM_LSCH2_V 0x3FF
|
|
|
-#define LEDC_OVF_NUM_LSCH2_S 5
|
|
|
-/* LEDC_PARA_UP_LSCH2 : WO ;bitpos:[4] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_PARA_UP_LSCH2 (BIT(4))
|
|
|
-#define LEDC_PARA_UP_LSCH2_M (BIT(4))
|
|
|
-#define LEDC_PARA_UP_LSCH2_V 0x1
|
|
|
-#define LEDC_PARA_UP_LSCH2_S 4
|
|
|
-/* LEDC_IDLE_LV_LSCH2 : R/W ;bitpos:[3] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_IDLE_LV_LSCH2 (BIT(3))
|
|
|
-#define LEDC_IDLE_LV_LSCH2_M (BIT(3))
|
|
|
-#define LEDC_IDLE_LV_LSCH2_V 0x1
|
|
|
-#define LEDC_IDLE_LV_LSCH2_S 3
|
|
|
-/* LEDC_SIG_OUT_EN_LSCH2 : R/W ;bitpos:[2] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH2 (BIT(2))
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH2_M (BIT(2))
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH2_V 0x1
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH2_S 2
|
|
|
-/* LEDC_TIMER_SEL_LSCH2 : R/W ;bitpos:[1:0] ;default: 2'd0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_TIMER_SEL_LSCH2 0x00000003
|
|
|
-#define LEDC_TIMER_SEL_LSCH2_M ((LEDC_TIMER_SEL_LSCH2_V)<<(LEDC_TIMER_SEL_LSCH2_S))
|
|
|
-#define LEDC_TIMER_SEL_LSCH2_V 0x3
|
|
|
-#define LEDC_TIMER_SEL_LSCH2_S 0
|
|
|
+/** LEDC_CH5_HPOINT_REG register
|
|
|
+ * High point register for channel
|
|
|
+ * 5
|
|
|
+ */
|
|
|
+#define LEDC_CH5_HPOINT_REG (DR_REG_LEDC_BASE + 0x68)
|
|
|
+/* LEDC_HPOINT_CH5 : R/W; bitpos: [14:0]; default: 0;
|
|
|
+ * The output value changes to high when the selected timers has reached
|
|
|
+ * the value specified by this
|
|
|
+ * register.
|
|
|
+ */
|
|
|
+#define LEDC_HPOINT_CH5 0x00003FFF
|
|
|
+#define LEDC_HPOINT_CH5_M (LEDC_HPOINT_CH5_V << LEDC_HPOINT_CH5_S)
|
|
|
+#define LEDC_HPOINT_CH5_V 0x00003FFF
|
|
|
+#define LEDC_HPOINT_CH5_S 0
|
|
|
|
|
|
-#define LEDC_LSCH2_HPOINT_REG (DR_REG_LEDC_BASE + 0x002C)
|
|
|
-/* LEDC_HPOINT_LSCH2 : R/W ;bitpos:[13:0] ;default: 14'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_HPOINT_LSCH2 0x00003FFF
|
|
|
-#define LEDC_HPOINT_LSCH2_M ((LEDC_HPOINT_LSCH2_V)<<(LEDC_HPOINT_LSCH2_S))
|
|
|
-#define LEDC_HPOINT_LSCH2_V 0x3FFF
|
|
|
-#define LEDC_HPOINT_LSCH2_S 0
|
|
|
|
|
|
-#define LEDC_LSCH2_DUTY_REG (DR_REG_LEDC_BASE + 0x0030)
|
|
|
-/* LEDC_DUTY_LSCH2 : R/W ;bitpos:[18:0] ;default: 19'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_LSCH2 0x0007FFFF
|
|
|
-#define LEDC_DUTY_LSCH2_M ((LEDC_DUTY_LSCH2_V)<<(LEDC_DUTY_LSCH2_S))
|
|
|
-#define LEDC_DUTY_LSCH2_V 0x7FFFF
|
|
|
-#define LEDC_DUTY_LSCH2_S 0
|
|
|
+/** Duty Cycle Register */
|
|
|
|
|
|
-#define LEDC_LSCH2_CONF1_REG (DR_REG_LEDC_BASE + 0x0034)
|
|
|
-/* LEDC_DUTY_START_LSCH2 : R/W ;bitpos:[31] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_START_LSCH2 (BIT(31))
|
|
|
-#define LEDC_DUTY_START_LSCH2_M (BIT(31))
|
|
|
-#define LEDC_DUTY_START_LSCH2_V 0x1
|
|
|
-#define LEDC_DUTY_START_LSCH2_S 31
|
|
|
-/* LEDC_DUTY_INC_LSCH2 : R/W ;bitpos:[30] ;default: 1'b1 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_INC_LSCH2 (BIT(30))
|
|
|
-#define LEDC_DUTY_INC_LSCH2_M (BIT(30))
|
|
|
-#define LEDC_DUTY_INC_LSCH2_V 0x1
|
|
|
-#define LEDC_DUTY_INC_LSCH2_S 30
|
|
|
-/* LEDC_DUTY_NUM_LSCH2 : R/W ;bitpos:[29:20] ;default: 10'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_NUM_LSCH2 0x000003FF
|
|
|
-#define LEDC_DUTY_NUM_LSCH2_M ((LEDC_DUTY_NUM_LSCH2_V)<<(LEDC_DUTY_NUM_LSCH2_S))
|
|
|
-#define LEDC_DUTY_NUM_LSCH2_V 0x3FF
|
|
|
-#define LEDC_DUTY_NUM_LSCH2_S 20
|
|
|
-/* LEDC_DUTY_CYCLE_LSCH2 : R/W ;bitpos:[19:10] ;default: 10'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH2 0x000003FF
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH2_M ((LEDC_DUTY_CYCLE_LSCH2_V)<<(LEDC_DUTY_CYCLE_LSCH2_S))
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH2_V 0x3FF
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH2_S 10
|
|
|
-/* LEDC_DUTY_SCALE_LSCH2 : R/W ;bitpos:[9:0] ;default: 10'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_SCALE_LSCH2 0x000003FF
|
|
|
-#define LEDC_DUTY_SCALE_LSCH2_M ((LEDC_DUTY_SCALE_LSCH2_V)<<(LEDC_DUTY_SCALE_LSCH2_S))
|
|
|
-#define LEDC_DUTY_SCALE_LSCH2_V 0x3FF
|
|
|
-#define LEDC_DUTY_SCALE_LSCH2_S 0
|
|
|
+/** LEDC_CH0_DUTY_REG register
|
|
|
+ * Initial duty cycle for channel
|
|
|
+ * 0
|
|
|
+ */
|
|
|
+#define LEDC_CH0_DUTY_REG (DR_REG_LEDC_BASE + 0x8)
|
|
|
+/* LEDC_DUTY_CH0 : R/W; bitpos: [19:0]; default: 0;
|
|
|
+ * This register is used to change the output duty by controlling the
|
|
|
+ * Lpoint.
|
|
|
+ * The output value turns to low when the selected timers has reached the
|
|
|
+ * Lpoint.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CH0 0x0007FFFF
|
|
|
+#define LEDC_DUTY_CH0_M (LEDC_DUTY_CH0_V << LEDC_DUTY_CH0_S)
|
|
|
+#define LEDC_DUTY_CH0_V 0x0007FFFF
|
|
|
+#define LEDC_DUTY_CH0_S 0
|
|
|
|
|
|
-#define LEDC_LSCH2_DUTY_R_REG (DR_REG_LEDC_BASE + 0x0038)
|
|
|
-/* LEDC_DUTY_LSCH2 : RO ;bitpos:[18:0] ;default: 19'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_LSCH2 0x0007FFFF
|
|
|
-#define LEDC_DUTY_LSCH2_M ((LEDC_DUTY_LSCH2_V)<<(LEDC_DUTY_LSCH2_S))
|
|
|
-#define LEDC_DUTY_LSCH2_V 0x7FFFF
|
|
|
-#define LEDC_DUTY_LSCH2_S 0
|
|
|
+/** LEDC_CH0_DUTY_R_REG register
|
|
|
+ * Current duty cycle for channel
|
|
|
+ * 0
|
|
|
+ */
|
|
|
+#define LEDC_CH0_DUTY_R_REG (DR_REG_LEDC_BASE + 0x10)
|
|
|
+/* LEDC_DUTY_R_CH0 : RO; bitpos: [19:0]; default: 0;
|
|
|
+ * This register stores the current duty of output signal on channel
|
|
|
+ * 0.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_R_CH0 0x0007FFFF
|
|
|
+#define LEDC_DUTY_R_CH0_M (LEDC_DUTY_R_CH0_V << LEDC_DUTY_R_CH0_S)
|
|
|
+#define LEDC_DUTY_R_CH0_V 0x0007FFFF
|
|
|
+#define LEDC_DUTY_R_CH0_S 0
|
|
|
|
|
|
-#define LEDC_LSCH3_CONF0_REG (DR_REG_LEDC_BASE + 0x003C)
|
|
|
-/* LEDC_OVF_CNT_RESET_LSCH3 : WO ;bitpos:[16] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH3 (BIT(16))
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH3_M (BIT(16))
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH3_V 0x1
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH3_S 16
|
|
|
-/* LEDC_OVF_CNT_EN_LSCH3 : R/W ;bitpos:[15] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH3 (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH3_M (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH3_V 0x1
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH3_S 15
|
|
|
-/* LEDC_OVF_NUM_LSCH3 : R/W ;bitpos:[14:5] ;default: 10'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_NUM_LSCH3 0x000003FF
|
|
|
-#define LEDC_OVF_NUM_LSCH3_M ((LEDC_OVF_NUM_LSCH3_V)<<(LEDC_OVF_NUM_LSCH3_S))
|
|
|
-#define LEDC_OVF_NUM_LSCH3_V 0x3FF
|
|
|
-#define LEDC_OVF_NUM_LSCH3_S 5
|
|
|
-/* LEDC_PARA_UP_LSCH3 : WO ;bitpos:[4] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_PARA_UP_LSCH3 (BIT(4))
|
|
|
-#define LEDC_PARA_UP_LSCH3_M (BIT(4))
|
|
|
-#define LEDC_PARA_UP_LSCH3_V 0x1
|
|
|
-#define LEDC_PARA_UP_LSCH3_S 4
|
|
|
-/* LEDC_IDLE_LV_LSCH3 : R/W ;bitpos:[3] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_IDLE_LV_LSCH3 (BIT(3))
|
|
|
-#define LEDC_IDLE_LV_LSCH3_M (BIT(3))
|
|
|
-#define LEDC_IDLE_LV_LSCH3_V 0x1
|
|
|
-#define LEDC_IDLE_LV_LSCH3_S 3
|
|
|
-/* LEDC_SIG_OUT_EN_LSCH3 : R/W ;bitpos:[2] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH3 (BIT(2))
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH3_M (BIT(2))
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH3_V 0x1
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH3_S 2
|
|
|
-/* LEDC_TIMER_SEL_LSCH3 : R/W ;bitpos:[1:0] ;default: 2'd0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_TIMER_SEL_LSCH3 0x00000003
|
|
|
-#define LEDC_TIMER_SEL_LSCH3_M ((LEDC_TIMER_SEL_LSCH3_V)<<(LEDC_TIMER_SEL_LSCH3_S))
|
|
|
-#define LEDC_TIMER_SEL_LSCH3_V 0x3
|
|
|
-#define LEDC_TIMER_SEL_LSCH3_S 0
|
|
|
+/** LEDC_CH1_DUTY_REG register
|
|
|
+ * Initial duty cycle for channel
|
|
|
+ * 1
|
|
|
+ */
|
|
|
+#define LEDC_CH1_DUTY_REG (DR_REG_LEDC_BASE + 0x1c)
|
|
|
+/* LEDC_DUTY_CH1 : R/W; bitpos: [19:0]; default: 0;
|
|
|
+ * This register is used to change the output duty by controlling the
|
|
|
+ * Lpoint.
|
|
|
+ * The output value turns to low when the selected timers has reached the
|
|
|
+ * Lpoint.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CH1 0x0007FFFF
|
|
|
+#define LEDC_DUTY_CH1_M (LEDC_DUTY_CH1_V << LEDC_DUTY_CH1_S)
|
|
|
+#define LEDC_DUTY_CH1_V 0x0007FFFF
|
|
|
+#define LEDC_DUTY_CH1_S 0
|
|
|
|
|
|
-#define LEDC_LSCH3_HPOINT_REG (DR_REG_LEDC_BASE + 0x0040)
|
|
|
-/* LEDC_HPOINT_LSCH3 : R/W ;bitpos:[13:0] ;default: 14'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_HPOINT_LSCH3 0x00003FFF
|
|
|
-#define LEDC_HPOINT_LSCH3_M ((LEDC_HPOINT_LSCH3_V)<<(LEDC_HPOINT_LSCH3_S))
|
|
|
-#define LEDC_HPOINT_LSCH3_V 0x3FFF
|
|
|
-#define LEDC_HPOINT_LSCH3_S 0
|
|
|
+/** LEDC_CH1_DUTY_R_REG register
|
|
|
+ * Current duty cycle for channel
|
|
|
+ * 1
|
|
|
+ */
|
|
|
+#define LEDC_CH1_DUTY_R_REG (DR_REG_LEDC_BASE + 0x24)
|
|
|
+/* LEDC_DUTY_R_CH1 : RO; bitpos: [19:0]; default: 0;
|
|
|
+ * This register stores the current duty of output signal on channel
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_R_CH1 0x0007FFFF
|
|
|
+#define LEDC_DUTY_R_CH1_M (LEDC_DUTY_R_CH1_V << LEDC_DUTY_R_CH1_S)
|
|
|
+#define LEDC_DUTY_R_CH1_V 0x0007FFFF
|
|
|
+#define LEDC_DUTY_R_CH1_S 0
|
|
|
|
|
|
-#define LEDC_LSCH3_DUTY_REG (DR_REG_LEDC_BASE + 0x0044)
|
|
|
-/* LEDC_DUTY_LSCH3 : R/W ;bitpos:[18:0] ;default: 19'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_LSCH3 0x0007FFFF
|
|
|
-#define LEDC_DUTY_LSCH3_M ((LEDC_DUTY_LSCH3_V)<<(LEDC_DUTY_LSCH3_S))
|
|
|
-#define LEDC_DUTY_LSCH3_V 0x7FFFF
|
|
|
-#define LEDC_DUTY_LSCH3_S 0
|
|
|
+/** LEDC_CH2_DUTY_REG register
|
|
|
+ * Initial duty cycle for channel
|
|
|
+ * 2
|
|
|
+ */
|
|
|
+#define LEDC_CH2_DUTY_REG (DR_REG_LEDC_BASE + 0x30)
|
|
|
+/* LEDC_DUTY_CH2 : R/W; bitpos: [19:0]; default: 0;
|
|
|
+ * This register is used to change the output duty by controlling the
|
|
|
+ * Lpoint.
|
|
|
+ * The output value turns to low when the selected timers has reached the
|
|
|
+ * Lpoint.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CH2 0x0007FFFF
|
|
|
+#define LEDC_DUTY_CH2_M (LEDC_DUTY_CH2_V << LEDC_DUTY_CH2_S)
|
|
|
+#define LEDC_DUTY_CH2_V 0x0007FFFF
|
|
|
+#define LEDC_DUTY_CH2_S 0
|
|
|
+
|
|
|
+/** LEDC_CH2_DUTY_R_REG register
|
|
|
+ * Current duty cycle for channel
|
|
|
+ * 2
|
|
|
+ */
|
|
|
+#define LEDC_CH2_DUTY_R_REG (DR_REG_LEDC_BASE + 0x38)
|
|
|
+/* LEDC_DUTY_R_CH2 : RO; bitpos: [19:0]; default: 0;
|
|
|
+ * This register stores the current duty of output signal on channel
|
|
|
+ * 2.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_R_CH2 0x0007FFFF
|
|
|
+#define LEDC_DUTY_R_CH2_M (LEDC_DUTY_R_CH2_V << LEDC_DUTY_R_CH2_S)
|
|
|
+#define LEDC_DUTY_R_CH2_V 0x0007FFFF
|
|
|
+#define LEDC_DUTY_R_CH2_S 0
|
|
|
|
|
|
-#define LEDC_LSCH3_CONF1_REG (DR_REG_LEDC_BASE + 0x0048)
|
|
|
-/* LEDC_DUTY_START_LSCH3 : R/W ;bitpos:[31] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_START_LSCH3 (BIT(31))
|
|
|
-#define LEDC_DUTY_START_LSCH3_M (BIT(31))
|
|
|
-#define LEDC_DUTY_START_LSCH3_V 0x1
|
|
|
-#define LEDC_DUTY_START_LSCH3_S 31
|
|
|
-/* LEDC_DUTY_INC_LSCH3 : R/W ;bitpos:[30] ;default: 1'b1 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_INC_LSCH3 (BIT(30))
|
|
|
-#define LEDC_DUTY_INC_LSCH3_M (BIT(30))
|
|
|
-#define LEDC_DUTY_INC_LSCH3_V 0x1
|
|
|
-#define LEDC_DUTY_INC_LSCH3_S 30
|
|
|
-/* LEDC_DUTY_NUM_LSCH3 : R/W ;bitpos:[29:20] ;default: 10'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_NUM_LSCH3 0x000003FF
|
|
|
-#define LEDC_DUTY_NUM_LSCH3_M ((LEDC_DUTY_NUM_LSCH3_V)<<(LEDC_DUTY_NUM_LSCH3_S))
|
|
|
-#define LEDC_DUTY_NUM_LSCH3_V 0x3FF
|
|
|
-#define LEDC_DUTY_NUM_LSCH3_S 20
|
|
|
-/* LEDC_DUTY_CYCLE_LSCH3 : R/W ;bitpos:[19:10] ;default: 10'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH3 0x000003FF
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH3_M ((LEDC_DUTY_CYCLE_LSCH3_V)<<(LEDC_DUTY_CYCLE_LSCH3_S))
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH3_V 0x3FF
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH3_S 10
|
|
|
-/* LEDC_DUTY_SCALE_LSCH3 : R/W ;bitpos:[9:0] ;default: 10'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_SCALE_LSCH3 0x000003FF
|
|
|
-#define LEDC_DUTY_SCALE_LSCH3_M ((LEDC_DUTY_SCALE_LSCH3_V)<<(LEDC_DUTY_SCALE_LSCH3_S))
|
|
|
-#define LEDC_DUTY_SCALE_LSCH3_V 0x3FF
|
|
|
-#define LEDC_DUTY_SCALE_LSCH3_S 0
|
|
|
+/** LEDC_CH3_DUTY_REG register
|
|
|
+ * Initial duty cycle for channel
|
|
|
+ * 3
|
|
|
+ */
|
|
|
+#define LEDC_CH3_DUTY_REG (DR_REG_LEDC_BASE + 0x44)
|
|
|
+/* LEDC_DUTY_CH3 : R/W; bitpos: [19:0]; default: 0;
|
|
|
+ * This register is used to change the output duty by controlling the
|
|
|
+ * Lpoint.
|
|
|
+ * The output value turns to low when the selected timers has reached the
|
|
|
+ * Lpoint.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CH3 0x0007FFFF
|
|
|
+#define LEDC_DUTY_CH3_M (LEDC_DUTY_CH3_V << LEDC_DUTY_CH3_S)
|
|
|
+#define LEDC_DUTY_CH3_V 0x0007FFFF
|
|
|
+#define LEDC_DUTY_CH3_S 0
|
|
|
|
|
|
-#define LEDC_LSCH3_DUTY_R_REG (DR_REG_LEDC_BASE + 0x004C)
|
|
|
-/* LEDC_DUTY_LSCH3 : RO ;bitpos:[18:0] ;default: 19'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_LSCH3 0x0007FFFF
|
|
|
-#define LEDC_DUTY_LSCH3_M ((LEDC_DUTY_LSCH3_V)<<(LEDC_DUTY_LSCH3_S))
|
|
|
-#define LEDC_DUTY_LSCH3_V 0x7FFFF
|
|
|
-#define LEDC_DUTY_LSCH3_S 0
|
|
|
+/** LEDC_CH3_DUTY_R_REG register
|
|
|
+ * Current duty cycle for channel
|
|
|
+ * 3
|
|
|
+ */
|
|
|
+#define LEDC_CH3_DUTY_R_REG (DR_REG_LEDC_BASE + 0x4c)
|
|
|
+/* LEDC_DUTY_R_CH3 : RO; bitpos: [19:0]; default: 0;
|
|
|
+ * This register stores the current duty of output signal on channel
|
|
|
+ * 3.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_R_CH3 0x0007FFFF
|
|
|
+#define LEDC_DUTY_R_CH3_M (LEDC_DUTY_R_CH3_V << LEDC_DUTY_R_CH3_S)
|
|
|
+#define LEDC_DUTY_R_CH3_V 0x0007FFFF
|
|
|
+#define LEDC_DUTY_R_CH3_S 0
|
|
|
|
|
|
-#define LEDC_LSCH4_CONF0_REG (DR_REG_LEDC_BASE + 0x0050)
|
|
|
-/* LEDC_OVF_CNT_RESET_LSCH4 : WO ;bitpos:[16] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH4 (BIT(16))
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH4_M (BIT(16))
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH4_V 0x1
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH4_S 16
|
|
|
-/* LEDC_OVF_CNT_EN_LSCH4 : R/W ;bitpos:[15] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH4 (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH4_M (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH4_V 0x1
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH4_S 15
|
|
|
-/* LEDC_OVF_NUM_LSCH4 : R/W ;bitpos:[14:5] ;default: 10'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_NUM_LSCH4 0x000003FF
|
|
|
-#define LEDC_OVF_NUM_LSCH4_M ((LEDC_OVF_NUM_LSCH4_V)<<(LEDC_OVF_NUM_LSCH4_S))
|
|
|
-#define LEDC_OVF_NUM_LSCH4_V 0x3FF
|
|
|
-#define LEDC_OVF_NUM_LSCH4_S 5
|
|
|
-/* LEDC_PARA_UP_LSCH4 : WO ;bitpos:[4] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_PARA_UP_LSCH4 (BIT(4))
|
|
|
-#define LEDC_PARA_UP_LSCH4_M (BIT(4))
|
|
|
-#define LEDC_PARA_UP_LSCH4_V 0x1
|
|
|
-#define LEDC_PARA_UP_LSCH4_S 4
|
|
|
-/* LEDC_IDLE_LV_LSCH4 : R/W ;bitpos:[3] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_IDLE_LV_LSCH4 (BIT(3))
|
|
|
-#define LEDC_IDLE_LV_LSCH4_M (BIT(3))
|
|
|
-#define LEDC_IDLE_LV_LSCH4_V 0x1
|
|
|
-#define LEDC_IDLE_LV_LSCH4_S 3
|
|
|
-/* LEDC_SIG_OUT_EN_LSCH4 : R/W ;bitpos:[2] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH4 (BIT(2))
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH4_M (BIT(2))
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH4_V 0x1
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH4_S 2
|
|
|
-/* LEDC_TIMER_SEL_LSCH4 : R/W ;bitpos:[1:0] ;default: 2'd0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_TIMER_SEL_LSCH4 0x00000003
|
|
|
-#define LEDC_TIMER_SEL_LSCH4_M ((LEDC_TIMER_SEL_LSCH4_V)<<(LEDC_TIMER_SEL_LSCH4_S))
|
|
|
-#define LEDC_TIMER_SEL_LSCH4_V 0x3
|
|
|
-#define LEDC_TIMER_SEL_LSCH4_S 0
|
|
|
+/** LEDC_CH4_DUTY_REG register
|
|
|
+ * Initial duty cycle for channel
|
|
|
+ * 4
|
|
|
+ */
|
|
|
+#define LEDC_CH4_DUTY_REG (DR_REG_LEDC_BASE + 0x58)
|
|
|
+/* LEDC_DUTY_CH4 : R/W; bitpos: [19:0]; default: 0;
|
|
|
+ * This register is used to change the output duty by controlling the
|
|
|
+ * Lpoint.
|
|
|
+ * The output value turns to low when the selected timers has reached the
|
|
|
+ * Lpoint.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CH4 0x0007FFFF
|
|
|
+#define LEDC_DUTY_CH4_M (LEDC_DUTY_CH4_V << LEDC_DUTY_CH4_S)
|
|
|
+#define LEDC_DUTY_CH4_V 0x0007FFFF
|
|
|
+#define LEDC_DUTY_CH4_S 0
|
|
|
|
|
|
-#define LEDC_LSCH4_HPOINT_REG (DR_REG_LEDC_BASE + 0x0054)
|
|
|
-/* LEDC_HPOINT_LSCH4 : R/W ;bitpos:[13:0] ;default: 14'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_HPOINT_LSCH4 0x00003FFF
|
|
|
-#define LEDC_HPOINT_LSCH4_M ((LEDC_HPOINT_LSCH4_V)<<(LEDC_HPOINT_LSCH4_S))
|
|
|
-#define LEDC_HPOINT_LSCH4_V 0x3FFF
|
|
|
-#define LEDC_HPOINT_LSCH4_S 0
|
|
|
+/** LEDC_CH4_DUTY_R_REG register
|
|
|
+ * Current duty cycle for channel
|
|
|
+ * 4
|
|
|
+ */
|
|
|
+#define LEDC_CH4_DUTY_R_REG (DR_REG_LEDC_BASE + 0x60)
|
|
|
+/* LEDC_DUTY_R_CH4 : RO; bitpos: [19:0]; default: 0;
|
|
|
+ * This register stores the current duty of output signal on channel
|
|
|
+ * 4.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_R_CH4 0x0007FFFF
|
|
|
+#define LEDC_DUTY_R_CH4_M (LEDC_DUTY_R_CH4_V << LEDC_DUTY_R_CH4_S)
|
|
|
+#define LEDC_DUTY_R_CH4_V 0x0007FFFF
|
|
|
+#define LEDC_DUTY_R_CH4_S 0
|
|
|
|
|
|
-#define LEDC_LSCH4_DUTY_REG (DR_REG_LEDC_BASE + 0x0058)
|
|
|
-/* LEDC_DUTY_LSCH4 : R/W ;bitpos:[18:0] ;default: 19'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_LSCH4 0x0007FFFF
|
|
|
-#define LEDC_DUTY_LSCH4_M ((LEDC_DUTY_LSCH4_V)<<(LEDC_DUTY_LSCH4_S))
|
|
|
-#define LEDC_DUTY_LSCH4_V 0x7FFFF
|
|
|
-#define LEDC_DUTY_LSCH4_S 0
|
|
|
+/** LEDC_CH5_DUTY_REG register
|
|
|
+ * Initial duty cycle for channel
|
|
|
+ * 5
|
|
|
+ */
|
|
|
+#define LEDC_CH5_DUTY_REG (DR_REG_LEDC_BASE + 0x6c)
|
|
|
+/* LEDC_DUTY_CH5 : R/W; bitpos: [19:0]; default: 0;
|
|
|
+ * This register is used to change the output duty by controlling the
|
|
|
+ * Lpoint.
|
|
|
+ * The output value turns to low when the selected timers has reached the
|
|
|
+ * Lpoint.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CH5 0x0007FFFF
|
|
|
+#define LEDC_DUTY_CH5_M (LEDC_DUTY_CH5_V << LEDC_DUTY_CH5_S)
|
|
|
+#define LEDC_DUTY_CH5_V 0x0007FFFF
|
|
|
+#define LEDC_DUTY_CH5_S 0
|
|
|
|
|
|
-#define LEDC_LSCH4_CONF1_REG (DR_REG_LEDC_BASE + 0x005C)
|
|
|
-/* LEDC_DUTY_START_LSCH4 : R/W ;bitpos:[31] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_START_LSCH4 (BIT(31))
|
|
|
-#define LEDC_DUTY_START_LSCH4_M (BIT(31))
|
|
|
-#define LEDC_DUTY_START_LSCH4_V 0x1
|
|
|
-#define LEDC_DUTY_START_LSCH4_S 31
|
|
|
-/* LEDC_DUTY_INC_LSCH4 : R/W ;bitpos:[30] ;default: 1'b1 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_INC_LSCH4 (BIT(30))
|
|
|
-#define LEDC_DUTY_INC_LSCH4_M (BIT(30))
|
|
|
-#define LEDC_DUTY_INC_LSCH4_V 0x1
|
|
|
-#define LEDC_DUTY_INC_LSCH4_S 30
|
|
|
-/* LEDC_DUTY_NUM_LSCH4 : R/W ;bitpos:[29:20] ;default: 10'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_NUM_LSCH4 0x000003FF
|
|
|
-#define LEDC_DUTY_NUM_LSCH4_M ((LEDC_DUTY_NUM_LSCH4_V)<<(LEDC_DUTY_NUM_LSCH4_S))
|
|
|
-#define LEDC_DUTY_NUM_LSCH4_V 0x3FF
|
|
|
-#define LEDC_DUTY_NUM_LSCH4_S 20
|
|
|
-/* LEDC_DUTY_CYCLE_LSCH4 : R/W ;bitpos:[19:10] ;default: 10'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH4 0x000003FF
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH4_M ((LEDC_DUTY_CYCLE_LSCH4_V)<<(LEDC_DUTY_CYCLE_LSCH4_S))
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH4_V 0x3FF
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH4_S 10
|
|
|
-/* LEDC_DUTY_SCALE_LSCH4 : R/W ;bitpos:[9:0] ;default: 10'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_SCALE_LSCH4 0x000003FF
|
|
|
-#define LEDC_DUTY_SCALE_LSCH4_M ((LEDC_DUTY_SCALE_LSCH4_V)<<(LEDC_DUTY_SCALE_LSCH4_S))
|
|
|
-#define LEDC_DUTY_SCALE_LSCH4_V 0x3FF
|
|
|
-#define LEDC_DUTY_SCALE_LSCH4_S 0
|
|
|
+/** LEDC_CH5_DUTY_R_REG register
|
|
|
+ * Current duty cycle for channel
|
|
|
+ * 5
|
|
|
+ */
|
|
|
+#define LEDC_CH5_DUTY_R_REG (DR_REG_LEDC_BASE + 0x74)
|
|
|
+/* LEDC_DUTY_R_CH5 : RO; bitpos: [19:0]; default: 0;
|
|
|
+ * This register stores the current duty of output signal on channel
|
|
|
+ * 5.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_R_CH5 0x0007FFFF
|
|
|
+#define LEDC_DUTY_R_CH5_M (LEDC_DUTY_R_CH5_V << LEDC_DUTY_R_CH5_S)
|
|
|
+#define LEDC_DUTY_R_CH5_V 0x0007FFFF
|
|
|
+#define LEDC_DUTY_R_CH5_S 0
|
|
|
|
|
|
-#define LEDC_LSCH4_DUTY_R_REG (DR_REG_LEDC_BASE + 0x0060)
|
|
|
-/* LEDC_DUTY_LSCH4 : RO ;bitpos:[18:0] ;default: 19'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_LSCH4 0x0007FFFF
|
|
|
-#define LEDC_DUTY_LSCH4_M ((LEDC_DUTY_LSCH4_V)<<(LEDC_DUTY_LSCH4_S))
|
|
|
-#define LEDC_DUTY_LSCH4_V 0x7FFFF
|
|
|
-#define LEDC_DUTY_LSCH4_S 0
|
|
|
|
|
|
-#define LEDC_LSCH5_CONF0_REG (DR_REG_LEDC_BASE + 0x0064)
|
|
|
-/* LEDC_OVF_CNT_RESET_LSCH5 : WO ;bitpos:[16] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH5 (BIT(16))
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH5_M (BIT(16))
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH5_V 0x1
|
|
|
-#define LEDC_OVF_CNT_RESET_LSCH5_S 16
|
|
|
-/* LEDC_OVF_CNT_EN_LSCH5 : R/W ;bitpos:[15] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH5 (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH5_M (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH5_V 0x1
|
|
|
-#define LEDC_OVF_CNT_EN_LSCH5_S 15
|
|
|
-/* LEDC_OVF_NUM_LSCH5 : R/W ;bitpos:[14:5] ;default: 10'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_NUM_LSCH5 0x000003FF
|
|
|
-#define LEDC_OVF_NUM_LSCH5_M ((LEDC_OVF_NUM_LSCH5_V)<<(LEDC_OVF_NUM_LSCH5_S))
|
|
|
-#define LEDC_OVF_NUM_LSCH5_V 0x3FF
|
|
|
-#define LEDC_OVF_NUM_LSCH5_S 5
|
|
|
-/* LEDC_PARA_UP_LSCH5 : WO ;bitpos:[4] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_PARA_UP_LSCH5 (BIT(4))
|
|
|
-#define LEDC_PARA_UP_LSCH5_M (BIT(4))
|
|
|
-#define LEDC_PARA_UP_LSCH5_V 0x1
|
|
|
-#define LEDC_PARA_UP_LSCH5_S 4
|
|
|
-/* LEDC_IDLE_LV_LSCH5 : R/W ;bitpos:[3] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_IDLE_LV_LSCH5 (BIT(3))
|
|
|
-#define LEDC_IDLE_LV_LSCH5_M (BIT(3))
|
|
|
-#define LEDC_IDLE_LV_LSCH5_V 0x1
|
|
|
-#define LEDC_IDLE_LV_LSCH5_S 3
|
|
|
-/* LEDC_SIG_OUT_EN_LSCH5 : R/W ;bitpos:[2] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH5 (BIT(2))
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH5_M (BIT(2))
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH5_V 0x1
|
|
|
-#define LEDC_SIG_OUT_EN_LSCH5_S 2
|
|
|
-/* LEDC_TIMER_SEL_LSCH5 : R/W ;bitpos:[1:0] ;default: 2'd0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_TIMER_SEL_LSCH5 0x00000003
|
|
|
-#define LEDC_TIMER_SEL_LSCH5_M ((LEDC_TIMER_SEL_LSCH5_V)<<(LEDC_TIMER_SEL_LSCH5_S))
|
|
|
-#define LEDC_TIMER_SEL_LSCH5_V 0x3
|
|
|
-#define LEDC_TIMER_SEL_LSCH5_S 0
|
|
|
+/** Timer Register */
|
|
|
|
|
|
-#define LEDC_LSCH5_HPOINT_REG (DR_REG_LEDC_BASE + 0x0068)
|
|
|
-/* LEDC_HPOINT_LSCH5 : R/W ;bitpos:[13:0] ;default: 14'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_HPOINT_LSCH5 0x00003FFF
|
|
|
-#define LEDC_HPOINT_LSCH5_M ((LEDC_HPOINT_LSCH5_V)<<(LEDC_HPOINT_LSCH5_S))
|
|
|
-#define LEDC_HPOINT_LSCH5_V 0x3FFF
|
|
|
-#define LEDC_HPOINT_LSCH5_S 0
|
|
|
+/** LEDC_TIMER0_CONF_REG register
|
|
|
+ * Timer 0
|
|
|
+ * configuration
|
|
|
+ */
|
|
|
+#define LEDC_TIMER0_CONF_REG (DR_REG_LEDC_BASE + 0xa0)
|
|
|
+/* LEDC_TIMER0_DUTY_RES : R/W; bitpos: [4:0]; default: 0;
|
|
|
+ * This register is used to control the range of the counter in timer
|
|
|
+ * 0.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER0_DUTY_RES 0x0000000F
|
|
|
+#define LEDC_TIMER0_DUTY_RES_M (LEDC_TIMER0_DUTY_RES_V << LEDC_TIMER0_DUTY_RES_S)
|
|
|
+#define LEDC_TIMER0_DUTY_RES_V 0x0000000F
|
|
|
+#define LEDC_TIMER0_DUTY_RES_S 0
|
|
|
+/* LEDC_CLK_DIV_TIMER0 : R/W; bitpos: [22:4]; default: 0;
|
|
|
+ * This register is used to configure the divisor for the divider in timer
|
|
|
+ * 0.
|
|
|
+ * The least significant eight bits represent the fractional
|
|
|
+ * part.
|
|
|
+ */
|
|
|
+#define LEDC_CLK_DIV_TIMER0 0x0003FFFF
|
|
|
+#define LEDC_CLK_DIV_TIMER0_M (LEDC_CLK_DIV_TIMER0_V << LEDC_CLK_DIV_TIMER0_S)
|
|
|
+#define LEDC_CLK_DIV_TIMER0_V 0x0003FFFF
|
|
|
+#define LEDC_CLK_DIV_TIMER0_S 4
|
|
|
+/* LEDC_TIMER0_PAUSE : R/W; bitpos: [22]; default: 0;
|
|
|
+ * This bit is used to suspend the counter in timer
|
|
|
+ * 0.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER0_PAUSE (BIT(22))
|
|
|
+#define LEDC_TIMER0_PAUSE_M (LEDC_TIMER0_PAUSE_V << LEDC_TIMER0_PAUSE_S)
|
|
|
+#define LEDC_TIMER0_PAUSE_V 0x00000001
|
|
|
+#define LEDC_TIMER0_PAUSE_S 22
|
|
|
+/* LEDC_TIMER0_RST : R/W; bitpos: [23]; default: 1;
|
|
|
+ * This bit is used to reset timer 0. The counter will show 0 after
|
|
|
+ * reset.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER0_RST (BIT(23))
|
|
|
+#define LEDC_TIMER0_RST_M (LEDC_TIMER0_RST_V << LEDC_TIMER0_RST_S)
|
|
|
+#define LEDC_TIMER0_RST_V 0x00000001
|
|
|
+#define LEDC_TIMER0_RST_S 23
|
|
|
+/* LEDC_TICK_SEL_TIMER0 : R/W; bitpos: [24]; default: 0;
|
|
|
+ * This bit is used to select clock for timer 0. When this bit is set to 1
|
|
|
+ * LEDC_APB_CLK_SEL[1:0] should be 1, otherwise the timer clock may be not
|
|
|
+ * accurate.
|
|
|
+ * 1'h0: SLOW_CLK 1'h1:
|
|
|
+ * REF_TICK
|
|
|
+ */
|
|
|
+#define LEDC_TICK_SEL_TIMER0 (BIT(24))
|
|
|
+#define LEDC_TICK_SEL_TIMER0_M (LEDC_TICK_SEL_TIMER0_V << LEDC_TICK_SEL_TIMER0_S)
|
|
|
+#define LEDC_TICK_SEL_TIMER0_V 0x00000001
|
|
|
+#define LEDC_TICK_SEL_TIMER0_S 24
|
|
|
+/* LEDC_TIMER0_PARA_UP : WT; bitpos: [25]; default: 0;
|
|
|
+ * Set this bit to update LEDC_CLK_DIV_TIMER0 and
|
|
|
+ * LEDC_TIMER0_DUTY_RES.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER0_PARA_UP (BIT(25))
|
|
|
+#define LEDC_TIMER0_PARA_UP_M (LEDC_TIMER0_PARA_UP_V << LEDC_TIMER0_PARA_UP_S)
|
|
|
+#define LEDC_TIMER0_PARA_UP_V 0x00000001
|
|
|
+#define LEDC_TIMER0_PARA_UP_S 25
|
|
|
|
|
|
-#define LEDC_LSCH5_DUTY_REG (DR_REG_LEDC_BASE + 0x006C)
|
|
|
-/* LEDC_DUTY_LSCH5 : R/W ;bitpos:[18:0] ;default: 19'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_LSCH5 0x0007FFFF
|
|
|
-#define LEDC_DUTY_LSCH5_M ((LEDC_DUTY_LSCH5_V)<<(LEDC_DUTY_LSCH5_S))
|
|
|
-#define LEDC_DUTY_LSCH5_V 0x7FFFF
|
|
|
-#define LEDC_DUTY_LSCH5_S 0
|
|
|
+/** LEDC_TIMER0_VALUE_REG register
|
|
|
+ * Timer 0 current counter
|
|
|
+ * value
|
|
|
+ */
|
|
|
+#define LEDC_TIMER0_VALUE_REG (DR_REG_LEDC_BASE + 0xa4)
|
|
|
+/* LEDC_TIMER0_CNT : RO; bitpos: [14:0]; default: 0;
|
|
|
+ * This register stores the current counter value of timer
|
|
|
+ * 0.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER0_CNT 0x00003FFF
|
|
|
+#define LEDC_TIMER0_CNT_M (LEDC_TIMER0_CNT_V << LEDC_TIMER0_CNT_S)
|
|
|
+#define LEDC_TIMER0_CNT_V 0x00003FFF
|
|
|
+#define LEDC_TIMER0_CNT_S 0
|
|
|
|
|
|
-#define LEDC_LSCH5_CONF1_REG (DR_REG_LEDC_BASE + 0x0070)
|
|
|
-/* LEDC_DUTY_START_LSCH5 : R/W ;bitpos:[31] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_START_LSCH5 (BIT(31))
|
|
|
-#define LEDC_DUTY_START_LSCH5_M (BIT(31))
|
|
|
-#define LEDC_DUTY_START_LSCH5_V 0x1
|
|
|
-#define LEDC_DUTY_START_LSCH5_S 31
|
|
|
-/* LEDC_DUTY_INC_LSCH5 : R/W ;bitpos:[30] ;default: 1'b1 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_INC_LSCH5 (BIT(30))
|
|
|
-#define LEDC_DUTY_INC_LSCH5_M (BIT(30))
|
|
|
-#define LEDC_DUTY_INC_LSCH5_V 0x1
|
|
|
-#define LEDC_DUTY_INC_LSCH5_S 30
|
|
|
-/* LEDC_DUTY_NUM_LSCH5 : R/W ;bitpos:[29:20] ;default: 10'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_NUM_LSCH5 0x000003FF
|
|
|
-#define LEDC_DUTY_NUM_LSCH5_M ((LEDC_DUTY_NUM_LSCH5_V)<<(LEDC_DUTY_NUM_LSCH5_S))
|
|
|
-#define LEDC_DUTY_NUM_LSCH5_V 0x3FF
|
|
|
-#define LEDC_DUTY_NUM_LSCH5_S 20
|
|
|
-/* LEDC_DUTY_CYCLE_LSCH5 : R/W ;bitpos:[19:10] ;default: 10'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH5 0x000003FF
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH5_M ((LEDC_DUTY_CYCLE_LSCH5_V)<<(LEDC_DUTY_CYCLE_LSCH5_S))
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH5_V 0x3FF
|
|
|
-#define LEDC_DUTY_CYCLE_LSCH5_S 10
|
|
|
-/* LEDC_DUTY_SCALE_LSCH5 : R/W ;bitpos:[9:0] ;default: 10'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_SCALE_LSCH5 0x000003FF
|
|
|
-#define LEDC_DUTY_SCALE_LSCH5_M ((LEDC_DUTY_SCALE_LSCH5_V)<<(LEDC_DUTY_SCALE_LSCH5_S))
|
|
|
-#define LEDC_DUTY_SCALE_LSCH5_V 0x3FF
|
|
|
-#define LEDC_DUTY_SCALE_LSCH5_S 0
|
|
|
+/** LEDC_TIMER1_CONF_REG register
|
|
|
+ * Timer 1
|
|
|
+ * configuration
|
|
|
+ */
|
|
|
+#define LEDC_TIMER1_CONF_REG (DR_REG_LEDC_BASE + 0xa8)
|
|
|
+/* LEDC_TIMER1_DUTY_RES : R/W; bitpos: [4:0]; default: 0;
|
|
|
+ * This register is used to control the range of the counter in timer
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER1_DUTY_RES 0x0000000F
|
|
|
+#define LEDC_TIMER1_DUTY_RES_M (LEDC_TIMER1_DUTY_RES_V << LEDC_TIMER1_DUTY_RES_S)
|
|
|
+#define LEDC_TIMER1_DUTY_RES_V 0x0000000F
|
|
|
+#define LEDC_TIMER1_DUTY_RES_S 0
|
|
|
+/* LEDC_CLK_DIV_TIMER1 : R/W; bitpos: [22:4]; default: 0;
|
|
|
+ * This register is used to configure the divisor for the divider in timer
|
|
|
+ * 1.
|
|
|
+ * The least significant eight bits represent the fractional
|
|
|
+ * part.
|
|
|
+ */
|
|
|
+#define LEDC_CLK_DIV_TIMER1 0x0003FFFF
|
|
|
+#define LEDC_CLK_DIV_TIMER1_M (LEDC_CLK_DIV_TIMER1_V << LEDC_CLK_DIV_TIMER1_S)
|
|
|
+#define LEDC_CLK_DIV_TIMER1_V 0x0003FFFF
|
|
|
+#define LEDC_CLK_DIV_TIMER1_S 4
|
|
|
+/* LEDC_TIMER1_PAUSE : R/W; bitpos: [22]; default: 0;
|
|
|
+ * This bit is used to suspend the counter in timer
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER1_PAUSE (BIT(22))
|
|
|
+#define LEDC_TIMER1_PAUSE_M (LEDC_TIMER1_PAUSE_V << LEDC_TIMER1_PAUSE_S)
|
|
|
+#define LEDC_TIMER1_PAUSE_V 0x00000001
|
|
|
+#define LEDC_TIMER1_PAUSE_S 22
|
|
|
+/* LEDC_TIMER1_RST : R/W; bitpos: [23]; default: 1;
|
|
|
+ * This bit is used to reset timer 1. The counter will show 0 after
|
|
|
+ * reset.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER1_RST (BIT(23))
|
|
|
+#define LEDC_TIMER1_RST_M (LEDC_TIMER1_RST_V << LEDC_TIMER1_RST_S)
|
|
|
+#define LEDC_TIMER1_RST_V 0x00000001
|
|
|
+#define LEDC_TIMER1_RST_S 23
|
|
|
+/* LEDC_TICK_SEL_TIMER1 : R/W; bitpos: [24]; default: 0;
|
|
|
+ * This bit is used to select clock for timer 1. When this bit is set to 1
|
|
|
+ * LEDC_APB_CLK_SEL[1:0] should be 1, otherwise the timer clock may be not
|
|
|
+ * accurate.
|
|
|
+ * 1'h0: SLOW_CLK 1'h1:
|
|
|
+ * REF_TICK
|
|
|
+ */
|
|
|
+#define LEDC_TICK_SEL_TIMER1 (BIT(24))
|
|
|
+#define LEDC_TICK_SEL_TIMER1_M (LEDC_TICK_SEL_TIMER1_V << LEDC_TICK_SEL_TIMER1_S)
|
|
|
+#define LEDC_TICK_SEL_TIMER1_V 0x00000001
|
|
|
+#define LEDC_TICK_SEL_TIMER1_S 24
|
|
|
+/* LEDC_TIMER1_PARA_UP : WT; bitpos: [25]; default: 0;
|
|
|
+ * Set this bit to update LEDC_CLK_DIV_TIMER1 and
|
|
|
+ * LEDC_TIMER1_DUTY_RES.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER1_PARA_UP (BIT(25))
|
|
|
+#define LEDC_TIMER1_PARA_UP_M (LEDC_TIMER1_PARA_UP_V << LEDC_TIMER1_PARA_UP_S)
|
|
|
+#define LEDC_TIMER1_PARA_UP_V 0x00000001
|
|
|
+#define LEDC_TIMER1_PARA_UP_S 25
|
|
|
|
|
|
-#define LEDC_LSCH5_DUTY_R_REG (DR_REG_LEDC_BASE + 0x0074)
|
|
|
-/* LEDC_DUTY_LSCH5 : RO ;bitpos:[18:0] ;default: 19'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_LSCH5 0x0007FFFF
|
|
|
-#define LEDC_DUTY_LSCH5_M ((LEDC_DUTY_LSCH5_V)<<(LEDC_DUTY_LSCH5_S))
|
|
|
-#define LEDC_DUTY_LSCH5_V 0x7FFFF
|
|
|
-#define LEDC_DUTY_LSCH5_S 0
|
|
|
+/** LEDC_TIMER1_VALUE_REG register
|
|
|
+ * Timer 1 current counter
|
|
|
+ * value
|
|
|
+ */
|
|
|
+#define LEDC_TIMER1_VALUE_REG (DR_REG_LEDC_BASE + 0xac)
|
|
|
+/* LEDC_TIMER1_CNT : RO; bitpos: [14:0]; default: 0;
|
|
|
+ * This register stores the current counter value of timer
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER1_CNT 0x00003FFF
|
|
|
+#define LEDC_TIMER1_CNT_M (LEDC_TIMER1_CNT_V << LEDC_TIMER1_CNT_S)
|
|
|
+#define LEDC_TIMER1_CNT_V 0x00003FFF
|
|
|
+#define LEDC_TIMER1_CNT_S 0
|
|
|
|
|
|
-#define LEDC_LSTIMER0_CONF_REG (DR_REG_LEDC_BASE + 0x00a0)
|
|
|
-/* LEDC_LSTIMER0_PARA_UP : WO ;bitpos:[25] ;default: 1'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER0_PARA_UP (BIT(25))
|
|
|
-#define LEDC_LSTIMER0_PARA_UP_M (BIT(25))
|
|
|
-#define LEDC_LSTIMER0_PARA_UP_V 0x1
|
|
|
-#define LEDC_LSTIMER0_PARA_UP_S 25
|
|
|
-/* LEDC_TICK_SEL_LSTIMER0 : R/W ;bitpos:[24] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_TICK_SEL_LSTIMER0 (BIT(24))
|
|
|
-#define LEDC_TICK_SEL_LSTIMER0_M (BIT(24))
|
|
|
-#define LEDC_TICK_SEL_LSTIMER0_V 0x1
|
|
|
-#define LEDC_TICK_SEL_LSTIMER0_S 24
|
|
|
-/* LEDC_LSTIMER0_RST : R/W ;bitpos:[23] ;default: 1'b1 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER0_RST (BIT(23))
|
|
|
-#define LEDC_LSTIMER0_RST_M (BIT(23))
|
|
|
-#define LEDC_LSTIMER0_RST_V 0x1
|
|
|
-#define LEDC_LSTIMER0_RST_S 23
|
|
|
-/* LEDC_LSTIMER0_PAUSE : R/W ;bitpos:[22] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER0_PAUSE (BIT(22))
|
|
|
-#define LEDC_LSTIMER0_PAUSE_M (BIT(22))
|
|
|
-#define LEDC_LSTIMER0_PAUSE_V 0x1
|
|
|
-#define LEDC_LSTIMER0_PAUSE_S 22
|
|
|
-/* LEDC_CLK_DIV_LSTIMER0 : R/W ;bitpos:[21:4] ;default: 18'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_CLK_DIV_LSTIMER0 0x0003FFFF
|
|
|
-#define LEDC_CLK_DIV_LSTIMER0_M ((LEDC_CLK_DIV_LSTIMER0_V)<<(LEDC_CLK_DIV_LSTIMER0_S))
|
|
|
-#define LEDC_CLK_DIV_LSTIMER0_V 0x3FFFF
|
|
|
-#define LEDC_CLK_DIV_LSTIMER0_S 4
|
|
|
-/* LEDC_LSTIMER0_DUTY_RES : R/W ;bitpos:[3:0] ;default: 4'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER0_DUTY_RES 0x0000000F
|
|
|
-#define LEDC_LSTIMER0_DUTY_RES_M ((LEDC_LSTIMER0_DUTY_RES_V)<<(LEDC_LSTIMER0_DUTY_RES_S))
|
|
|
-#define LEDC_LSTIMER0_DUTY_RES_V 0xF
|
|
|
-#define LEDC_LSTIMER0_DUTY_RES_S 0
|
|
|
+/** LEDC_TIMER2_CONF_REG register
|
|
|
+ * Timer 2
|
|
|
+ * configuration
|
|
|
+ */
|
|
|
+#define LEDC_TIMER2_CONF_REG (DR_REG_LEDC_BASE + 0xb0)
|
|
|
+/* LEDC_TIMER2_DUTY_RES : R/W; bitpos: [4:0]; default: 0;
|
|
|
+ * This register is used to control the range of the counter in timer
|
|
|
+ * 2.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER2_DUTY_RES 0x0000000F
|
|
|
+#define LEDC_TIMER2_DUTY_RES_M (LEDC_TIMER2_DUTY_RES_V << LEDC_TIMER2_DUTY_RES_S)
|
|
|
+#define LEDC_TIMER2_DUTY_RES_V 0x0000000F
|
|
|
+#define LEDC_TIMER2_DUTY_RES_S 0
|
|
|
+/* LEDC_CLK_DIV_TIMER2 : R/W; bitpos: [22:4]; default: 0;
|
|
|
+ * This register is used to configure the divisor for the divider in timer
|
|
|
+ * 2.
|
|
|
+ * The least significant eight bits represent the fractional
|
|
|
+ * part.
|
|
|
+ */
|
|
|
+#define LEDC_CLK_DIV_TIMER2 0x0003FFFF
|
|
|
+#define LEDC_CLK_DIV_TIMER2_M (LEDC_CLK_DIV_TIMER2_V << LEDC_CLK_DIV_TIMER2_S)
|
|
|
+#define LEDC_CLK_DIV_TIMER2_V 0x0003FFFF
|
|
|
+#define LEDC_CLK_DIV_TIMER2_S 4
|
|
|
+/* LEDC_TIMER2_PAUSE : R/W; bitpos: [22]; default: 0;
|
|
|
+ * This bit is used to suspend the counter in timer
|
|
|
+ * 2.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER2_PAUSE (BIT(22))
|
|
|
+#define LEDC_TIMER2_PAUSE_M (LEDC_TIMER2_PAUSE_V << LEDC_TIMER2_PAUSE_S)
|
|
|
+#define LEDC_TIMER2_PAUSE_V 0x00000001
|
|
|
+#define LEDC_TIMER2_PAUSE_S 22
|
|
|
+/* LEDC_TIMER2_RST : R/W; bitpos: [23]; default: 1;
|
|
|
+ * This bit is used to reset timer 2. The counter will show 0 after
|
|
|
+ * reset.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER2_RST (BIT(23))
|
|
|
+#define LEDC_TIMER2_RST_M (LEDC_TIMER2_RST_V << LEDC_TIMER2_RST_S)
|
|
|
+#define LEDC_TIMER2_RST_V 0x00000001
|
|
|
+#define LEDC_TIMER2_RST_S 23
|
|
|
+/* LEDC_TICK_SEL_TIMER2 : R/W; bitpos: [24]; default: 0;
|
|
|
+ * This bit is used to select clock for timer 2. When this bit is set to 1
|
|
|
+ * LEDC_APB_CLK_SEL[1:0] should be 1, otherwise the timer clock may be not
|
|
|
+ * accurate.
|
|
|
+ * 1'h0: SLOW_CLK 1'h1:
|
|
|
+ * REF_TICK
|
|
|
+ */
|
|
|
+#define LEDC_TICK_SEL_TIMER2 (BIT(24))
|
|
|
+#define LEDC_TICK_SEL_TIMER2_M (LEDC_TICK_SEL_TIMER2_V << LEDC_TICK_SEL_TIMER2_S)
|
|
|
+#define LEDC_TICK_SEL_TIMER2_V 0x00000001
|
|
|
+#define LEDC_TICK_SEL_TIMER2_S 24
|
|
|
+/* LEDC_TIMER2_PARA_UP : WT; bitpos: [25]; default: 0;
|
|
|
+ * Set this bit to update LEDC_CLK_DIV_TIMER2 and
|
|
|
+ * LEDC_TIMER2_DUTY_RES.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER2_PARA_UP (BIT(25))
|
|
|
+#define LEDC_TIMER2_PARA_UP_M (LEDC_TIMER2_PARA_UP_V << LEDC_TIMER2_PARA_UP_S)
|
|
|
+#define LEDC_TIMER2_PARA_UP_V 0x00000001
|
|
|
+#define LEDC_TIMER2_PARA_UP_S 25
|
|
|
|
|
|
-#define LEDC_LSTIMER0_VALUE_REG (DR_REG_LEDC_BASE + 0x00a4)
|
|
|
-/* LEDC_LSTIMER0_CNT : RO ;bitpos:[13:0] ;default: 14'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER0_CNT 0x00003FFF
|
|
|
-#define LEDC_LSTIMER0_CNT_M ((LEDC_LSTIMER0_CNT_V)<<(LEDC_LSTIMER0_CNT_S))
|
|
|
-#define LEDC_LSTIMER0_CNT_V 0x3FFF
|
|
|
-#define LEDC_LSTIMER0_CNT_S 0
|
|
|
+/** LEDC_TIMER2_VALUE_REG register
|
|
|
+ * Timer 2 current counter
|
|
|
+ * value
|
|
|
+ */
|
|
|
+#define LEDC_TIMER2_VALUE_REG (DR_REG_LEDC_BASE + 0xb4)
|
|
|
+/* LEDC_TIMER2_CNT : RO; bitpos: [14:0]; default: 0;
|
|
|
+ * This register stores the current counter value of timer
|
|
|
+ * 2.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER2_CNT 0x00003FFF
|
|
|
+#define LEDC_TIMER2_CNT_M (LEDC_TIMER2_CNT_V << LEDC_TIMER2_CNT_S)
|
|
|
+#define LEDC_TIMER2_CNT_V 0x00003FFF
|
|
|
+#define LEDC_TIMER2_CNT_S 0
|
|
|
|
|
|
-#define LEDC_LSTIMER1_CONF_REG (DR_REG_LEDC_BASE + 0x00a8)
|
|
|
-/* LEDC_LSTIMER1_PARA_UP : WO ;bitpos:[25] ;default: 1'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER1_PARA_UP (BIT(25))
|
|
|
-#define LEDC_LSTIMER1_PARA_UP_M (BIT(25))
|
|
|
-#define LEDC_LSTIMER1_PARA_UP_V 0x1
|
|
|
-#define LEDC_LSTIMER1_PARA_UP_S 25
|
|
|
-/* LEDC_TICK_SEL_LSTIMER1 : R/W ;bitpos:[24] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_TICK_SEL_LSTIMER1 (BIT(24))
|
|
|
-#define LEDC_TICK_SEL_LSTIMER1_M (BIT(24))
|
|
|
-#define LEDC_TICK_SEL_LSTIMER1_V 0x1
|
|
|
-#define LEDC_TICK_SEL_LSTIMER1_S 24
|
|
|
-/* LEDC_LSTIMER1_RST : R/W ;bitpos:[23] ;default: 1'b1 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER1_RST (BIT(23))
|
|
|
-#define LEDC_LSTIMER1_RST_M (BIT(23))
|
|
|
-#define LEDC_LSTIMER1_RST_V 0x1
|
|
|
-#define LEDC_LSTIMER1_RST_S 23
|
|
|
-/* LEDC_LSTIMER1_PAUSE : R/W ;bitpos:[22] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER1_PAUSE (BIT(22))
|
|
|
-#define LEDC_LSTIMER1_PAUSE_M (BIT(22))
|
|
|
-#define LEDC_LSTIMER1_PAUSE_V 0x1
|
|
|
-#define LEDC_LSTIMER1_PAUSE_S 22
|
|
|
-/* LEDC_CLK_DIV_LSTIMER1 : R/W ;bitpos:[21:4] ;default: 18'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_CLK_DIV_LSTIMER1 0x0003FFFF
|
|
|
-#define LEDC_CLK_DIV_LSTIMER1_M ((LEDC_CLK_DIV_LSTIMER1_V)<<(LEDC_CLK_DIV_LSTIMER1_S))
|
|
|
-#define LEDC_CLK_DIV_LSTIMER1_V 0x3FFFF
|
|
|
-#define LEDC_CLK_DIV_LSTIMER1_S 4
|
|
|
-/* LEDC_LSTIMER1_DUTY_RES : R/W ;bitpos:[3:0] ;default: 4'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER1_DUTY_RES 0x0000000F
|
|
|
-#define LEDC_LSTIMER1_DUTY_RES_M ((LEDC_LSTIMER1_DUTY_RES_V)<<(LEDC_LSTIMER1_DUTY_RES_S))
|
|
|
-#define LEDC_LSTIMER1_DUTY_RES_V 0xF
|
|
|
-#define LEDC_LSTIMER1_DUTY_RES_S 0
|
|
|
+/** LEDC_TIMER3_CONF_REG register
|
|
|
+ * Timer 3
|
|
|
+ * configuration
|
|
|
+ */
|
|
|
+#define LEDC_TIMER3_CONF_REG (DR_REG_LEDC_BASE + 0xb8)
|
|
|
+/* LEDC_TIMER3_DUTY_RES : R/W; bitpos: [4:0]; default: 0;
|
|
|
+ * This register is used to control the range of the counter in timer
|
|
|
+ * 3.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER3_DUTY_RES 0x0000000F
|
|
|
+#define LEDC_TIMER3_DUTY_RES_M (LEDC_TIMER3_DUTY_RES_V << LEDC_TIMER3_DUTY_RES_S)
|
|
|
+#define LEDC_TIMER3_DUTY_RES_V 0x0000000F
|
|
|
+#define LEDC_TIMER3_DUTY_RES_S 0
|
|
|
+/* LEDC_CLK_DIV_TIMER3 : R/W; bitpos: [22:4]; default: 0;
|
|
|
+ * This register is used to configure the divisor for the divider in timer
|
|
|
+ * 3.
|
|
|
+ * The least significant eight bits represent the fractional
|
|
|
+ * part.
|
|
|
+ */
|
|
|
+#define LEDC_CLK_DIV_TIMER3 0x0003FFFF
|
|
|
+#define LEDC_CLK_DIV_TIMER3_M (LEDC_CLK_DIV_TIMER3_V << LEDC_CLK_DIV_TIMER3_S)
|
|
|
+#define LEDC_CLK_DIV_TIMER3_V 0x0003FFFF
|
|
|
+#define LEDC_CLK_DIV_TIMER3_S 4
|
|
|
+/* LEDC_TIMER3_PAUSE : R/W; bitpos: [22]; default: 0;
|
|
|
+ * This bit is used to suspend the counter in timer
|
|
|
+ * 3.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER3_PAUSE (BIT(22))
|
|
|
+#define LEDC_TIMER3_PAUSE_M (LEDC_TIMER3_PAUSE_V << LEDC_TIMER3_PAUSE_S)
|
|
|
+#define LEDC_TIMER3_PAUSE_V 0x00000001
|
|
|
+#define LEDC_TIMER3_PAUSE_S 22
|
|
|
+/* LEDC_TIMER3_RST : R/W; bitpos: [23]; default: 1;
|
|
|
+ * This bit is used to reset timer 3. The counter will show 0 after
|
|
|
+ * reset.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER3_RST (BIT(23))
|
|
|
+#define LEDC_TIMER3_RST_M (LEDC_TIMER3_RST_V << LEDC_TIMER3_RST_S)
|
|
|
+#define LEDC_TIMER3_RST_V 0x00000001
|
|
|
+#define LEDC_TIMER3_RST_S 23
|
|
|
+/* LEDC_TICK_SEL_TIMER3 : R/W; bitpos: [24]; default: 0;
|
|
|
+ * This bit is used to select clock for timer 3. When this bit is set to 1
|
|
|
+ * LEDC_APB_CLK_SEL[1:0] should be 1, otherwise the timer clock may be not
|
|
|
+ * accurate.
|
|
|
+ * 1'h0: SLOW_CLK 1'h1:
|
|
|
+ * REF_TICK
|
|
|
+ */
|
|
|
+#define LEDC_TICK_SEL_TIMER3 (BIT(24))
|
|
|
+#define LEDC_TICK_SEL_TIMER3_M (LEDC_TICK_SEL_TIMER3_V << LEDC_TICK_SEL_TIMER3_S)
|
|
|
+#define LEDC_TICK_SEL_TIMER3_V 0x00000001
|
|
|
+#define LEDC_TICK_SEL_TIMER3_S 24
|
|
|
+/* LEDC_TIMER3_PARA_UP : WT; bitpos: [25]; default: 0;
|
|
|
+ * Set this bit to update LEDC_CLK_DIV_TIMER3 and
|
|
|
+ * LEDC_TIMER3_DUTY_RES.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER3_PARA_UP (BIT(25))
|
|
|
+#define LEDC_TIMER3_PARA_UP_M (LEDC_TIMER3_PARA_UP_V << LEDC_TIMER3_PARA_UP_S)
|
|
|
+#define LEDC_TIMER3_PARA_UP_V 0x00000001
|
|
|
+#define LEDC_TIMER3_PARA_UP_S 25
|
|
|
|
|
|
-#define LEDC_LSTIMER1_VALUE_REG (DR_REG_LEDC_BASE + 0x00aC)
|
|
|
-/* LEDC_LSTIMER1_CNT : RO ;bitpos:[13:0] ;default: 14'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER1_CNT 0x00003FFF
|
|
|
-#define LEDC_LSTIMER1_CNT_M ((LEDC_LSTIMER1_CNT_V)<<(LEDC_LSTIMER1_CNT_S))
|
|
|
-#define LEDC_LSTIMER1_CNT_V 0x3FFF
|
|
|
-#define LEDC_LSTIMER1_CNT_S 0
|
|
|
+/** LEDC_TIMER3_VALUE_REG register
|
|
|
+ * Timer 3 current counter
|
|
|
+ * value
|
|
|
+ */
|
|
|
+#define LEDC_TIMER3_VALUE_REG (DR_REG_LEDC_BASE + 0xbc)
|
|
|
+/* LEDC_TIMER3_CNT : RO; bitpos: [14:0]; default: 0;
|
|
|
+ * This register stores the current counter value of timer
|
|
|
+ * 3.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER3_CNT 0x00003FFF
|
|
|
+#define LEDC_TIMER3_CNT_M (LEDC_TIMER3_CNT_V << LEDC_TIMER3_CNT_S)
|
|
|
+#define LEDC_TIMER3_CNT_V 0x00003FFF
|
|
|
+#define LEDC_TIMER3_CNT_S 0
|
|
|
|
|
|
-#define LEDC_LSTIMER2_CONF_REG (DR_REG_LEDC_BASE + 0x00b0)
|
|
|
-/* LEDC_LSTIMER2_PARA_UP : WO ;bitpos:[25] ;default: 1'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER2_PARA_UP (BIT(25))
|
|
|
-#define LEDC_LSTIMER2_PARA_UP_M (BIT(25))
|
|
|
-#define LEDC_LSTIMER2_PARA_UP_V 0x1
|
|
|
-#define LEDC_LSTIMER2_PARA_UP_S 25
|
|
|
-/* LEDC_TICK_SEL_LSTIMER2 : R/W ;bitpos:[24] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_TICK_SEL_LSTIMER2 (BIT(24))
|
|
|
-#define LEDC_TICK_SEL_LSTIMER2_M (BIT(24))
|
|
|
-#define LEDC_TICK_SEL_LSTIMER2_V 0x1
|
|
|
-#define LEDC_TICK_SEL_LSTIMER2_S 24
|
|
|
-/* LEDC_LSTIMER2_RST : R/W ;bitpos:[23] ;default: 1'b1 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER2_RST (BIT(23))
|
|
|
-#define LEDC_LSTIMER2_RST_M (BIT(23))
|
|
|
-#define LEDC_LSTIMER2_RST_V 0x1
|
|
|
-#define LEDC_LSTIMER2_RST_S 23
|
|
|
-/* LEDC_LSTIMER2_PAUSE : R/W ;bitpos:[22] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER2_PAUSE (BIT(22))
|
|
|
-#define LEDC_LSTIMER2_PAUSE_M (BIT(22))
|
|
|
-#define LEDC_LSTIMER2_PAUSE_V 0x1
|
|
|
-#define LEDC_LSTIMER2_PAUSE_S 22
|
|
|
-/* LEDC_CLK_DIV_LSTIMER2 : R/W ;bitpos:[21:4] ;default: 18'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_CLK_DIV_LSTIMER2 0x0003FFFF
|
|
|
-#define LEDC_CLK_DIV_LSTIMER2_M ((LEDC_CLK_DIV_LSTIMER2_V)<<(LEDC_CLK_DIV_LSTIMER2_S))
|
|
|
-#define LEDC_CLK_DIV_LSTIMER2_V 0x3FFFF
|
|
|
-#define LEDC_CLK_DIV_LSTIMER2_S 4
|
|
|
-/* LEDC_LSTIMER2_DUTY_RES : R/W ;bitpos:[3:0] ;default: 4'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER2_DUTY_RES 0x0000000F
|
|
|
-#define LEDC_LSTIMER2_DUTY_RES_M ((LEDC_LSTIMER2_DUTY_RES_V)<<(LEDC_LSTIMER2_DUTY_RES_S))
|
|
|
-#define LEDC_LSTIMER2_DUTY_RES_V 0xF
|
|
|
-#define LEDC_LSTIMER2_DUTY_RES_S 0
|
|
|
|
|
|
-#define LEDC_LSTIMER2_VALUE_REG (DR_REG_LEDC_BASE + 0x00b4)
|
|
|
-/* LEDC_LSTIMER2_CNT : RO ;bitpos:[13:0] ;default: 14'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER2_CNT 0x00003FFF
|
|
|
-#define LEDC_LSTIMER2_CNT_M ((LEDC_LSTIMER2_CNT_V)<<(LEDC_LSTIMER2_CNT_S))
|
|
|
-#define LEDC_LSTIMER2_CNT_V 0x3FFF
|
|
|
-#define LEDC_LSTIMER2_CNT_S 0
|
|
|
+/** Interrupt Register */
|
|
|
|
|
|
-#define LEDC_LSTIMER3_CONF_REG (DR_REG_LEDC_BASE + 0x00b8)
|
|
|
-/* LEDC_LSTIMER3_PARA_UP : WO ;bitpos:[25] ;default: 1'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER3_PARA_UP (BIT(25))
|
|
|
-#define LEDC_LSTIMER3_PARA_UP_M (BIT(25))
|
|
|
-#define LEDC_LSTIMER3_PARA_UP_V 0x1
|
|
|
-#define LEDC_LSTIMER3_PARA_UP_S 25
|
|
|
-/* LEDC_TICK_SEL_LSTIMER3 : R/W ;bitpos:[24] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_TICK_SEL_LSTIMER3 (BIT(24))
|
|
|
-#define LEDC_TICK_SEL_LSTIMER3_M (BIT(24))
|
|
|
-#define LEDC_TICK_SEL_LSTIMER3_V 0x1
|
|
|
-#define LEDC_TICK_SEL_LSTIMER3_S 24
|
|
|
-/* LEDC_LSTIMER3_RST : R/W ;bitpos:[23] ;default: 1'b1 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER3_RST (BIT(23))
|
|
|
-#define LEDC_LSTIMER3_RST_M (BIT(23))
|
|
|
-#define LEDC_LSTIMER3_RST_V 0x1
|
|
|
-#define LEDC_LSTIMER3_RST_S 23
|
|
|
-/* LEDC_LSTIMER3_PAUSE : R/W ;bitpos:[22] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER3_PAUSE (BIT(22))
|
|
|
-#define LEDC_LSTIMER3_PAUSE_M (BIT(22))
|
|
|
-#define LEDC_LSTIMER3_PAUSE_V 0x1
|
|
|
-#define LEDC_LSTIMER3_PAUSE_S 22
|
|
|
-/* LEDC_CLK_DIV_LSTIMER3 : R/W ;bitpos:[21:4] ;default: 18'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_CLK_DIV_LSTIMER3 0x0003FFFF
|
|
|
-#define LEDC_CLK_DIV_LSTIMER3_M ((LEDC_CLK_DIV_LSTIMER3_V)<<(LEDC_CLK_DIV_LSTIMER3_S))
|
|
|
-#define LEDC_CLK_DIV_LSTIMER3_V 0x3FFFF
|
|
|
-#define LEDC_CLK_DIV_LSTIMER3_S 4
|
|
|
-/* LEDC_LSTIMER3_DUTY_RES : R/W ;bitpos:[3:0] ;default: 4'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER3_DUTY_RES 0x0000000F
|
|
|
-#define LEDC_LSTIMER3_DUTY_RES_M ((LEDC_LSTIMER3_DUTY_RES_V)<<(LEDC_LSTIMER3_DUTY_RES_S))
|
|
|
-#define LEDC_LSTIMER3_DUTY_RES_V 0xF
|
|
|
-#define LEDC_LSTIMER3_DUTY_RES_S 0
|
|
|
+/** LEDC_INT_RAW_REG register
|
|
|
+ * Raw interrupt
|
|
|
+ * status
|
|
|
+ */
|
|
|
+#define LEDC_INT_RAW_REG (DR_REG_LEDC_BASE + 0xc0)
|
|
|
+/* LEDC_TIMER0_OVF_INT_RAW : R/WTC/SS; bitpos: [0]; default: 0;
|
|
|
+ * Triggered when the timer0 has reached its maximum counter
|
|
|
+ * value.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER0_OVF_INT_RAW (BIT(0))
|
|
|
+#define LEDC_TIMER0_OVF_INT_RAW_M (LEDC_TIMER0_OVF_INT_RAW_V << LEDC_TIMER0_OVF_INT_RAW_S)
|
|
|
+#define LEDC_TIMER0_OVF_INT_RAW_V 0x00000001
|
|
|
+#define LEDC_TIMER0_OVF_INT_RAW_S 0
|
|
|
+/* LEDC_TIMER1_OVF_INT_RAW : R/WTC/SS; bitpos: [1]; default: 0;
|
|
|
+ * Triggered when the timer1 has reached its maximum counter
|
|
|
+ * value.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER1_OVF_INT_RAW (BIT(1))
|
|
|
+#define LEDC_TIMER1_OVF_INT_RAW_M (LEDC_TIMER1_OVF_INT_RAW_V << LEDC_TIMER1_OVF_INT_RAW_S)
|
|
|
+#define LEDC_TIMER1_OVF_INT_RAW_V 0x00000001
|
|
|
+#define LEDC_TIMER1_OVF_INT_RAW_S 1
|
|
|
+/* LEDC_TIMER2_OVF_INT_RAW : R/WTC/SS; bitpos: [2]; default: 0;
|
|
|
+ * Triggered when the timer2 has reached its maximum counter
|
|
|
+ * value.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER2_OVF_INT_RAW (BIT(2))
|
|
|
+#define LEDC_TIMER2_OVF_INT_RAW_M (LEDC_TIMER2_OVF_INT_RAW_V << LEDC_TIMER2_OVF_INT_RAW_S)
|
|
|
+#define LEDC_TIMER2_OVF_INT_RAW_V 0x00000001
|
|
|
+#define LEDC_TIMER2_OVF_INT_RAW_S 2
|
|
|
+/* LEDC_TIMER3_OVF_INT_RAW : R/WTC/SS; bitpos: [3]; default: 0;
|
|
|
+ * Triggered when the timer3 has reached its maximum counter
|
|
|
+ * value.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER3_OVF_INT_RAW (BIT(3))
|
|
|
+#define LEDC_TIMER3_OVF_INT_RAW_M (LEDC_TIMER3_OVF_INT_RAW_V << LEDC_TIMER3_OVF_INT_RAW_S)
|
|
|
+#define LEDC_TIMER3_OVF_INT_RAW_V 0x00000001
|
|
|
+#define LEDC_TIMER3_OVF_INT_RAW_S 3
|
|
|
+/* LEDC_DUTY_CHNG_END_CH0_INT_RAW : R/WTC/SS; bitpos: [4]; default: 0;
|
|
|
+ * Interrupt raw bit for channel 0. Triggered when the gradual change of
|
|
|
+ * duty has
|
|
|
+ * finished.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH0_INT_RAW (BIT(4))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH0_INT_RAW_M (LEDC_DUTY_CHNG_END_CH0_INT_RAW_V << LEDC_DUTY_CHNG_END_CH0_INT_RAW_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH0_INT_RAW_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH0_INT_RAW_S 4
|
|
|
+/* LEDC_DUTY_CHNG_END_CH1_INT_RAW : R/WTC/SS; bitpos: [5]; default: 0;
|
|
|
+ * Interrupt raw bit for channel 1. Triggered when the gradual change of
|
|
|
+ * duty has
|
|
|
+ * finished.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH1_INT_RAW (BIT(5))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH1_INT_RAW_M (LEDC_DUTY_CHNG_END_CH1_INT_RAW_V << LEDC_DUTY_CHNG_END_CH1_INT_RAW_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH1_INT_RAW_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH1_INT_RAW_S 5
|
|
|
+/* LEDC_DUTY_CHNG_END_CH2_INT_RAW : R/WTC/SS; bitpos: [6]; default: 0;
|
|
|
+ * Interrupt raw bit for channel 2. Triggered when the gradual change of
|
|
|
+ * duty has
|
|
|
+ * finished.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH2_INT_RAW (BIT(6))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH2_INT_RAW_M (LEDC_DUTY_CHNG_END_CH2_INT_RAW_V << LEDC_DUTY_CHNG_END_CH2_INT_RAW_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH2_INT_RAW_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH2_INT_RAW_S 6
|
|
|
+/* LEDC_DUTY_CHNG_END_CH3_INT_RAW : R/WTC/SS; bitpos: [7]; default: 0;
|
|
|
+ * Interrupt raw bit for channel 3. Triggered when the gradual change of
|
|
|
+ * duty has
|
|
|
+ * finished.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH3_INT_RAW (BIT(7))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH3_INT_RAW_M (LEDC_DUTY_CHNG_END_CH3_INT_RAW_V << LEDC_DUTY_CHNG_END_CH3_INT_RAW_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH3_INT_RAW_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH3_INT_RAW_S 7
|
|
|
+/* LEDC_DUTY_CHNG_END_CH4_INT_RAW : R/WTC/SS; bitpos: [8]; default: 0;
|
|
|
+ * Interrupt raw bit for channel 4. Triggered when the gradual change of
|
|
|
+ * duty has
|
|
|
+ * finished.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH4_INT_RAW (BIT(8))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH4_INT_RAW_M (LEDC_DUTY_CHNG_END_CH4_INT_RAW_V << LEDC_DUTY_CHNG_END_CH4_INT_RAW_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH4_INT_RAW_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH4_INT_RAW_S 8
|
|
|
+/* LEDC_DUTY_CHNG_END_CH5_INT_RAW : R/WTC/SS; bitpos: [9]; default: 0;
|
|
|
+ * Interrupt raw bit for channel 5. Triggered when the gradual change of
|
|
|
+ * duty has
|
|
|
+ * finished.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH5_INT_RAW (BIT(9))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH5_INT_RAW_M (LEDC_DUTY_CHNG_END_CH5_INT_RAW_V << LEDC_DUTY_CHNG_END_CH5_INT_RAW_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH5_INT_RAW_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH5_INT_RAW_S 9
|
|
|
+/* LEDC_OVF_CNT_CH0_INT_RAW : R/WTC/SS; bitpos: [10]; default: 0;
|
|
|
+ * Interrupt raw bit for channel 0. Triggered when the ovf_cnt has reached
|
|
|
+ * the value specified by
|
|
|
+ * LEDC_OVF_NUM_CH0.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH0_INT_RAW (BIT(10))
|
|
|
+#define LEDC_OVF_CNT_CH0_INT_RAW_M (LEDC_OVF_CNT_CH0_INT_RAW_V << LEDC_OVF_CNT_CH0_INT_RAW_S)
|
|
|
+#define LEDC_OVF_CNT_CH0_INT_RAW_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH0_INT_RAW_S 10
|
|
|
+/* LEDC_OVF_CNT_CH1_INT_RAW : R/WTC/SS; bitpos: [11]; default: 0;
|
|
|
+ * Interrupt raw bit for channel 1. Triggered when the ovf_cnt has reached
|
|
|
+ * the value specified by
|
|
|
+ * LEDC_OVF_NUM_CH1.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH1_INT_RAW (BIT(11))
|
|
|
+#define LEDC_OVF_CNT_CH1_INT_RAW_M (LEDC_OVF_CNT_CH1_INT_RAW_V << LEDC_OVF_CNT_CH1_INT_RAW_S)
|
|
|
+#define LEDC_OVF_CNT_CH1_INT_RAW_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH1_INT_RAW_S 11
|
|
|
+/* LEDC_OVF_CNT_CH2_INT_RAW : R/WTC/SS; bitpos: [12]; default: 0;
|
|
|
+ * Interrupt raw bit for channel 2. Triggered when the ovf_cnt has reached
|
|
|
+ * the value specified by
|
|
|
+ * LEDC_OVF_NUM_CH2.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH2_INT_RAW (BIT(12))
|
|
|
+#define LEDC_OVF_CNT_CH2_INT_RAW_M (LEDC_OVF_CNT_CH2_INT_RAW_V << LEDC_OVF_CNT_CH2_INT_RAW_S)
|
|
|
+#define LEDC_OVF_CNT_CH2_INT_RAW_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH2_INT_RAW_S 12
|
|
|
+/* LEDC_OVF_CNT_CH3_INT_RAW : R/WTC/SS; bitpos: [13]; default: 0;
|
|
|
+ * Interrupt raw bit for channel 3. Triggered when the ovf_cnt has reached
|
|
|
+ * the value specified by
|
|
|
+ * LEDC_OVF_NUM_CH3.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH3_INT_RAW (BIT(13))
|
|
|
+#define LEDC_OVF_CNT_CH3_INT_RAW_M (LEDC_OVF_CNT_CH3_INT_RAW_V << LEDC_OVF_CNT_CH3_INT_RAW_S)
|
|
|
+#define LEDC_OVF_CNT_CH3_INT_RAW_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH3_INT_RAW_S 13
|
|
|
+/* LEDC_OVF_CNT_CH4_INT_RAW : R/WTC/SS; bitpos: [14]; default: 0;
|
|
|
+ * Interrupt raw bit for channel 4. Triggered when the ovf_cnt has reached
|
|
|
+ * the value specified by
|
|
|
+ * LEDC_OVF_NUM_CH4.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH4_INT_RAW (BIT(14))
|
|
|
+#define LEDC_OVF_CNT_CH4_INT_RAW_M (LEDC_OVF_CNT_CH4_INT_RAW_V << LEDC_OVF_CNT_CH4_INT_RAW_S)
|
|
|
+#define LEDC_OVF_CNT_CH4_INT_RAW_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH4_INT_RAW_S 14
|
|
|
+/* LEDC_OVF_CNT_CH5_INT_RAW : R/WTC/SS; bitpos: [15]; default: 0;
|
|
|
+ * Interrupt raw bit for channel 5. Triggered when the ovf_cnt has reached
|
|
|
+ * the value specified by
|
|
|
+ * LEDC_OVF_NUM_CH5.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH5_INT_RAW (BIT(15))
|
|
|
+#define LEDC_OVF_CNT_CH5_INT_RAW_M (LEDC_OVF_CNT_CH5_INT_RAW_V << LEDC_OVF_CNT_CH5_INT_RAW_S)
|
|
|
+#define LEDC_OVF_CNT_CH5_INT_RAW_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH5_INT_RAW_S 15
|
|
|
|
|
|
-#define LEDC_LSTIMER3_VALUE_REG (DR_REG_LEDC_BASE + 0x00BC)
|
|
|
-/* LEDC_LSTIMER3_CNT : RO ;bitpos:[13:0] ;default: 14'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER3_CNT 0x00003FFF
|
|
|
-#define LEDC_LSTIMER3_CNT_M ((LEDC_LSTIMER3_CNT_V)<<(LEDC_LSTIMER3_CNT_S))
|
|
|
-#define LEDC_LSTIMER3_CNT_V 0x3FFF
|
|
|
-#define LEDC_LSTIMER3_CNT_S 0
|
|
|
+/** LEDC_INT_ST_REG register
|
|
|
+ * Masked interrupt
|
|
|
+ * status
|
|
|
+ */
|
|
|
+#define LEDC_INT_ST_REG (DR_REG_LEDC_BASE + 0xc4)
|
|
|
+/* LEDC_TIMER0_OVF_INT_ST : RO; bitpos: [0]; default: 0;
|
|
|
+ * This is the masked interrupt status bit for the LEDC_TIMER0_OVF_INT
|
|
|
+ * interrupt when LEDC_TIMER0_OVF_INT_ENA is set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER0_OVF_INT_ST (BIT(0))
|
|
|
+#define LEDC_TIMER0_OVF_INT_ST_M (LEDC_TIMER0_OVF_INT_ST_V << LEDC_TIMER0_OVF_INT_ST_S)
|
|
|
+#define LEDC_TIMER0_OVF_INT_ST_V 0x00000001
|
|
|
+#define LEDC_TIMER0_OVF_INT_ST_S 0
|
|
|
+/* LEDC_TIMER1_OVF_INT_ST : RO; bitpos: [1]; default: 0;
|
|
|
+ * This is the masked interrupt status bit for the LEDC_TIMER1_OVF_INT
|
|
|
+ * interrupt when LEDC_TIMER1_OVF_INT_ENA is set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER1_OVF_INT_ST (BIT(1))
|
|
|
+#define LEDC_TIMER1_OVF_INT_ST_M (LEDC_TIMER1_OVF_INT_ST_V << LEDC_TIMER1_OVF_INT_ST_S)
|
|
|
+#define LEDC_TIMER1_OVF_INT_ST_V 0x00000001
|
|
|
+#define LEDC_TIMER1_OVF_INT_ST_S 1
|
|
|
+/* LEDC_TIMER2_OVF_INT_ST : RO; bitpos: [2]; default: 0;
|
|
|
+ * This is the masked interrupt status bit for the LEDC_TIMER2_OVF_INT
|
|
|
+ * interrupt when LEDC_TIMER2_OVF_INT_ENA is set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER2_OVF_INT_ST (BIT(2))
|
|
|
+#define LEDC_TIMER2_OVF_INT_ST_M (LEDC_TIMER2_OVF_INT_ST_V << LEDC_TIMER2_OVF_INT_ST_S)
|
|
|
+#define LEDC_TIMER2_OVF_INT_ST_V 0x00000001
|
|
|
+#define LEDC_TIMER2_OVF_INT_ST_S 2
|
|
|
+/* LEDC_TIMER3_OVF_INT_ST : RO; bitpos: [3]; default: 0;
|
|
|
+ * This is the masked interrupt status bit for the LEDC_TIMER3_OVF_INT
|
|
|
+ * interrupt when LEDC_TIMER3_OVF_INT_ENA is set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER3_OVF_INT_ST (BIT(3))
|
|
|
+#define LEDC_TIMER3_OVF_INT_ST_M (LEDC_TIMER3_OVF_INT_ST_V << LEDC_TIMER3_OVF_INT_ST_S)
|
|
|
+#define LEDC_TIMER3_OVF_INT_ST_V 0x00000001
|
|
|
+#define LEDC_TIMER3_OVF_INT_ST_S 3
|
|
|
+/* LEDC_DUTY_CHNG_END_CH0_INT_ST : RO; bitpos: [4]; default: 0;
|
|
|
+ * This is the masked interrupt status bit for the
|
|
|
+ * LEDC_DUTY_CHNG_END_CH0_INT interrupt when
|
|
|
+ * LEDC_DUTY_CHNG_END_CH0_INT_ENAIS set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH0_INT_ST (BIT(4))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH0_INT_ST_M (LEDC_DUTY_CHNG_END_CH0_INT_ST_V << LEDC_DUTY_CHNG_END_CH0_INT_ST_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH0_INT_ST_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH0_INT_ST_S 4
|
|
|
+/* LEDC_DUTY_CHNG_END_CH1_INT_ST : RO; bitpos: [5]; default: 0;
|
|
|
+ * This is the masked interrupt status bit for the
|
|
|
+ * LEDC_DUTY_CHNG_END_CH1_INT interrupt when
|
|
|
+ * LEDC_DUTY_CHNG_END_CH1_INT_ENAIS set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH1_INT_ST (BIT(5))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH1_INT_ST_M (LEDC_DUTY_CHNG_END_CH1_INT_ST_V << LEDC_DUTY_CHNG_END_CH1_INT_ST_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH1_INT_ST_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH1_INT_ST_S 5
|
|
|
+/* LEDC_DUTY_CHNG_END_CH2_INT_ST : RO; bitpos: [6]; default: 0;
|
|
|
+ * This is the masked interrupt status bit for the
|
|
|
+ * LEDC_DUTY_CHNG_END_CH2_INT interrupt when
|
|
|
+ * LEDC_DUTY_CHNG_END_CH2_INT_ENAIS set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH2_INT_ST (BIT(6))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH2_INT_ST_M (LEDC_DUTY_CHNG_END_CH2_INT_ST_V << LEDC_DUTY_CHNG_END_CH2_INT_ST_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH2_INT_ST_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH2_INT_ST_S 6
|
|
|
+/* LEDC_DUTY_CHNG_END_CH3_INT_ST : RO; bitpos: [7]; default: 0;
|
|
|
+ * This is the masked interrupt status bit for the
|
|
|
+ * LEDC_DUTY_CHNG_END_CH3_INT interrupt when
|
|
|
+ * LEDC_DUTY_CHNG_END_CH3_INT_ENAIS set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH3_INT_ST (BIT(7))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH3_INT_ST_M (LEDC_DUTY_CHNG_END_CH3_INT_ST_V << LEDC_DUTY_CHNG_END_CH3_INT_ST_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH3_INT_ST_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH3_INT_ST_S 7
|
|
|
+/* LEDC_DUTY_CHNG_END_CH4_INT_ST : RO; bitpos: [8]; default: 0;
|
|
|
+ * This is the masked interrupt status bit for the
|
|
|
+ * LEDC_DUTY_CHNG_END_CH4_INT interrupt when
|
|
|
+ * LEDC_DUTY_CHNG_END_CH4_INT_ENAIS set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH4_INT_ST (BIT(8))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH4_INT_ST_M (LEDC_DUTY_CHNG_END_CH4_INT_ST_V << LEDC_DUTY_CHNG_END_CH4_INT_ST_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH4_INT_ST_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH4_INT_ST_S 8
|
|
|
+/* LEDC_DUTY_CHNG_END_CH5_INT_ST : RO; bitpos: [9]; default: 0;
|
|
|
+ * This is the masked interrupt status bit for the
|
|
|
+ * LEDC_DUTY_CHNG_END_CH5_INT interrupt when
|
|
|
+ * LEDC_DUTY_CHNG_END_CH5_INT_ENAIS set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH5_INT_ST (BIT(9))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH5_INT_ST_M (LEDC_DUTY_CHNG_END_CH5_INT_ST_V << LEDC_DUTY_CHNG_END_CH5_INT_ST_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH5_INT_ST_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH5_INT_ST_S 9
|
|
|
+/* LEDC_OVF_CNT_CH0_INT_ST : RO; bitpos: [10]; default: 0;
|
|
|
+ * This is the masked interrupt status bit for the LEDC_OVF_CNT_CH0_INT
|
|
|
+ * interrupt when LEDC_OVF_CNT_CH0_INT_ENA is set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH0_INT_ST (BIT(10))
|
|
|
+#define LEDC_OVF_CNT_CH0_INT_ST_M (LEDC_OVF_CNT_CH0_INT_ST_V << LEDC_OVF_CNT_CH0_INT_ST_S)
|
|
|
+#define LEDC_OVF_CNT_CH0_INT_ST_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH0_INT_ST_S 10
|
|
|
+/* LEDC_OVF_CNT_CH1_INT_ST : RO; bitpos: [11]; default: 0;
|
|
|
+ * This is the masked interrupt status bit for the LEDC_OVF_CNT_CH1_INT
|
|
|
+ * interrupt when LEDC_OVF_CNT_CH1_INT_ENA is set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH1_INT_ST (BIT(11))
|
|
|
+#define LEDC_OVF_CNT_CH1_INT_ST_M (LEDC_OVF_CNT_CH1_INT_ST_V << LEDC_OVF_CNT_CH1_INT_ST_S)
|
|
|
+#define LEDC_OVF_CNT_CH1_INT_ST_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH1_INT_ST_S 11
|
|
|
+/* LEDC_OVF_CNT_CH2_INT_ST : RO; bitpos: [12]; default: 0;
|
|
|
+ * This is the masked interrupt status bit for the LEDC_OVF_CNT_CH2_INT
|
|
|
+ * interrupt when LEDC_OVF_CNT_CH2_INT_ENA is set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH2_INT_ST (BIT(12))
|
|
|
+#define LEDC_OVF_CNT_CH2_INT_ST_M (LEDC_OVF_CNT_CH2_INT_ST_V << LEDC_OVF_CNT_CH2_INT_ST_S)
|
|
|
+#define LEDC_OVF_CNT_CH2_INT_ST_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH2_INT_ST_S 12
|
|
|
+/* LEDC_OVF_CNT_CH3_INT_ST : RO; bitpos: [13]; default: 0;
|
|
|
+ * This is the masked interrupt status bit for the LEDC_OVF_CNT_CH3_INT
|
|
|
+ * interrupt when LEDC_OVF_CNT_CH3_INT_ENA is set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH3_INT_ST (BIT(13))
|
|
|
+#define LEDC_OVF_CNT_CH3_INT_ST_M (LEDC_OVF_CNT_CH3_INT_ST_V << LEDC_OVF_CNT_CH3_INT_ST_S)
|
|
|
+#define LEDC_OVF_CNT_CH3_INT_ST_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH3_INT_ST_S 13
|
|
|
+/* LEDC_OVF_CNT_CH4_INT_ST : RO; bitpos: [14]; default: 0;
|
|
|
+ * This is the masked interrupt status bit for the LEDC_OVF_CNT_CH4_INT
|
|
|
+ * interrupt when LEDC_OVF_CNT_CH4_INT_ENA is set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH4_INT_ST (BIT(14))
|
|
|
+#define LEDC_OVF_CNT_CH4_INT_ST_M (LEDC_OVF_CNT_CH4_INT_ST_V << LEDC_OVF_CNT_CH4_INT_ST_S)
|
|
|
+#define LEDC_OVF_CNT_CH4_INT_ST_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH4_INT_ST_S 14
|
|
|
+/* LEDC_OVF_CNT_CH5_INT_ST : RO; bitpos: [15]; default: 0;
|
|
|
+ * This is the masked interrupt status bit for the LEDC_OVF_CNT_CH5_INT
|
|
|
+ * interrupt when LEDC_OVF_CNT_CH5_INT_ENA is set to
|
|
|
+ * 1.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH5_INT_ST (BIT(15))
|
|
|
+#define LEDC_OVF_CNT_CH5_INT_ST_M (LEDC_OVF_CNT_CH5_INT_ST_V << LEDC_OVF_CNT_CH5_INT_ST_S)
|
|
|
+#define LEDC_OVF_CNT_CH5_INT_ST_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH5_INT_ST_S 15
|
|
|
|
|
|
-#define LEDC_INT_RAW_REG (DR_REG_LEDC_BASE + 0x00C0)
|
|
|
-/* LEDC_OVF_CNT_LSCH5_INT_RAW : RO ;bitpos:[15] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH5_INT_RAW (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_LSCH5_INT_RAW_M (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_LSCH5_INT_RAW_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH5_INT_RAW_S 15
|
|
|
-/* LEDC_OVF_CNT_LSCH4_INT_RAW : RO ;bitpos:[14] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH4_INT_RAW (BIT(14))
|
|
|
-#define LEDC_OVF_CNT_LSCH4_INT_RAW_M (BIT(14))
|
|
|
-#define LEDC_OVF_CNT_LSCH4_INT_RAW_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH4_INT_RAW_S 14
|
|
|
-/* LEDC_OVF_CNT_LSCH3_INT_RAW : RO ;bitpos:[13] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH3_INT_RAW (BIT(13))
|
|
|
-#define LEDC_OVF_CNT_LSCH3_INT_RAW_M (BIT(13))
|
|
|
-#define LEDC_OVF_CNT_LSCH3_INT_RAW_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH3_INT_RAW_S 13
|
|
|
-/* LEDC_OVF_CNT_LSCH2_INT_RAW : RO ;bitpos:[12] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH2_INT_RAW (BIT(12))
|
|
|
-#define LEDC_OVF_CNT_LSCH2_INT_RAW_M (BIT(12))
|
|
|
-#define LEDC_OVF_CNT_LSCH2_INT_RAW_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH2_INT_RAW_S 12
|
|
|
-/* LEDC_OVF_CNT_LSCH1_INT_RAW : RO ;bitpos:[11] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH1_INT_RAW (BIT(11))
|
|
|
-#define LEDC_OVF_CNT_LSCH1_INT_RAW_M (BIT(11))
|
|
|
-#define LEDC_OVF_CNT_LSCH1_INT_RAW_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH1_INT_RAW_S 11
|
|
|
-/* LEDC_OVF_CNT_LSCH0_INT_RAW : RO ;bitpos:[10] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH0_INT_RAW (BIT(10))
|
|
|
-#define LEDC_OVF_CNT_LSCH0_INT_RAW_M (BIT(10))
|
|
|
-#define LEDC_OVF_CNT_LSCH0_INT_RAW_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH0_INT_RAW_S 10
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH5_INT_RAW : RO ;bitpos:[9] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH5_INT_RAW (BIT(9))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH5_INT_RAW_M (BIT(9))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH5_INT_RAW_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH5_INT_RAW_S 9
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH4_INT_RAW : RO ;bitpos:[8] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH4_INT_RAW (BIT(8))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH4_INT_RAW_M (BIT(8))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH4_INT_RAW_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH4_INT_RAW_S 8
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH3_INT_RAW : RO ;bitpos:[7] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH3_INT_RAW (BIT(7))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH3_INT_RAW_M (BIT(7))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH3_INT_RAW_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH3_INT_RAW_S 7
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH2_INT_RAW : RO ;bitpos:[6] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH2_INT_RAW (BIT(6))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH2_INT_RAW_M (BIT(6))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH2_INT_RAW_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH2_INT_RAW_S 6
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH1_INT_RAW : RO ;bitpos:[5] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH1_INT_RAW (BIT(5))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH1_INT_RAW_M (BIT(5))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH1_INT_RAW_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH1_INT_RAW_S 5
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH0_INT_RAW : RO ;bitpos:[4] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH0_INT_RAW (BIT(4))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH0_INT_RAW_M (BIT(4))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH0_INT_RAW_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH0_INT_RAW_S 4
|
|
|
-/* LEDC_LSTIMER3_OVF_INT_RAW : RO ;bitpos:[3] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER3_OVF_INT_RAW (BIT(3))
|
|
|
-#define LEDC_LSTIMER3_OVF_INT_RAW_M (BIT(3))
|
|
|
-#define LEDC_LSTIMER3_OVF_INT_RAW_V 0x1
|
|
|
-#define LEDC_LSTIMER3_OVF_INT_RAW_S 3
|
|
|
-/* LEDC_LSTIMER2_OVF_INT_RAW : RO ;bitpos:[2] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER2_OVF_INT_RAW (BIT(2))
|
|
|
-#define LEDC_LSTIMER2_OVF_INT_RAW_M (BIT(2))
|
|
|
-#define LEDC_LSTIMER2_OVF_INT_RAW_V 0x1
|
|
|
-#define LEDC_LSTIMER2_OVF_INT_RAW_S 2
|
|
|
-/* LEDC_LSTIMER1_OVF_INT_RAW : RO ;bitpos:[1] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER1_OVF_INT_RAW (BIT(1))
|
|
|
-#define LEDC_LSTIMER1_OVF_INT_RAW_M (BIT(1))
|
|
|
-#define LEDC_LSTIMER1_OVF_INT_RAW_V 0x1
|
|
|
-#define LEDC_LSTIMER1_OVF_INT_RAW_S 1
|
|
|
-/* LEDC_LSTIMER0_OVF_INT_RAW : RO ;bitpos:[0] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER0_OVF_INT_RAW (BIT(0))
|
|
|
-#define LEDC_LSTIMER0_OVF_INT_RAW_M (BIT(0))
|
|
|
-#define LEDC_LSTIMER0_OVF_INT_RAW_V 0x1
|
|
|
-#define LEDC_LSTIMER0_OVF_INT_RAW_S 0
|
|
|
+/** LEDC_INT_ENA_REG register
|
|
|
+ * Interrupt enable
|
|
|
+ * bits
|
|
|
+ */
|
|
|
+#define LEDC_INT_ENA_REG (DR_REG_LEDC_BASE + 0xc8)
|
|
|
+/* LEDC_TIMER0_OVF_INT_ENA : R/W; bitpos: [0]; default: 0;
|
|
|
+ * The interrupt enable bit for the LEDC_TIMER0_OVF_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER0_OVF_INT_ENA (BIT(0))
|
|
|
+#define LEDC_TIMER0_OVF_INT_ENA_M (LEDC_TIMER0_OVF_INT_ENA_V << LEDC_TIMER0_OVF_INT_ENA_S)
|
|
|
+#define LEDC_TIMER0_OVF_INT_ENA_V 0x00000001
|
|
|
+#define LEDC_TIMER0_OVF_INT_ENA_S 0
|
|
|
+/* LEDC_TIMER1_OVF_INT_ENA : R/W; bitpos: [1]; default: 0;
|
|
|
+ * The interrupt enable bit for the LEDC_TIMER1_OVF_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER1_OVF_INT_ENA (BIT(1))
|
|
|
+#define LEDC_TIMER1_OVF_INT_ENA_M (LEDC_TIMER1_OVF_INT_ENA_V << LEDC_TIMER1_OVF_INT_ENA_S)
|
|
|
+#define LEDC_TIMER1_OVF_INT_ENA_V 0x00000001
|
|
|
+#define LEDC_TIMER1_OVF_INT_ENA_S 1
|
|
|
+/* LEDC_TIMER2_OVF_INT_ENA : R/W; bitpos: [2]; default: 0;
|
|
|
+ * The interrupt enable bit for the LEDC_TIMER2_OVF_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER2_OVF_INT_ENA (BIT(2))
|
|
|
+#define LEDC_TIMER2_OVF_INT_ENA_M (LEDC_TIMER2_OVF_INT_ENA_V << LEDC_TIMER2_OVF_INT_ENA_S)
|
|
|
+#define LEDC_TIMER2_OVF_INT_ENA_V 0x00000001
|
|
|
+#define LEDC_TIMER2_OVF_INT_ENA_S 2
|
|
|
+/* LEDC_TIMER3_OVF_INT_ENA : R/W; bitpos: [3]; default: 0;
|
|
|
+ * The interrupt enable bit for the LEDC_TIMER3_OVF_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER3_OVF_INT_ENA (BIT(3))
|
|
|
+#define LEDC_TIMER3_OVF_INT_ENA_M (LEDC_TIMER3_OVF_INT_ENA_V << LEDC_TIMER3_OVF_INT_ENA_S)
|
|
|
+#define LEDC_TIMER3_OVF_INT_ENA_V 0x00000001
|
|
|
+#define LEDC_TIMER3_OVF_INT_ENA_S 3
|
|
|
+/* LEDC_DUTY_CHNG_END_CH0_INT_ENA : R/W; bitpos: [4]; default: 0;
|
|
|
+ * The interrupt enable bit for the LEDC_DUTY_CHNG_END_CH0_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH0_INT_ENA (BIT(4))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH0_INT_ENA_M (LEDC_DUTY_CHNG_END_CH0_INT_ENA_V << LEDC_DUTY_CHNG_END_CH0_INT_ENA_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH0_INT_ENA_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH0_INT_ENA_S 4
|
|
|
+/* LEDC_DUTY_CHNG_END_CH1_INT_ENA : R/W; bitpos: [5]; default: 0;
|
|
|
+ * The interrupt enable bit for the LEDC_DUTY_CHNG_END_CH1_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH1_INT_ENA (BIT(5))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH1_INT_ENA_M (LEDC_DUTY_CHNG_END_CH1_INT_ENA_V << LEDC_DUTY_CHNG_END_CH1_INT_ENA_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH1_INT_ENA_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH1_INT_ENA_S 5
|
|
|
+/* LEDC_DUTY_CHNG_END_CH2_INT_ENA : R/W; bitpos: [6]; default: 0;
|
|
|
+ * The interrupt enable bit for the LEDC_DUTY_CHNG_END_CH2_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH2_INT_ENA (BIT(6))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH2_INT_ENA_M (LEDC_DUTY_CHNG_END_CH2_INT_ENA_V << LEDC_DUTY_CHNG_END_CH2_INT_ENA_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH2_INT_ENA_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH2_INT_ENA_S 6
|
|
|
+/* LEDC_DUTY_CHNG_END_CH3_INT_ENA : R/W; bitpos: [7]; default: 0;
|
|
|
+ * The interrupt enable bit for the LEDC_DUTY_CHNG_END_CH3_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH3_INT_ENA (BIT(7))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH3_INT_ENA_M (LEDC_DUTY_CHNG_END_CH3_INT_ENA_V << LEDC_DUTY_CHNG_END_CH3_INT_ENA_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH3_INT_ENA_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH3_INT_ENA_S 7
|
|
|
+/* LEDC_DUTY_CHNG_END_CH4_INT_ENA : R/W; bitpos: [8]; default: 0;
|
|
|
+ * The interrupt enable bit for the LEDC_DUTY_CHNG_END_CH4_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH4_INT_ENA (BIT(8))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH4_INT_ENA_M (LEDC_DUTY_CHNG_END_CH4_INT_ENA_V << LEDC_DUTY_CHNG_END_CH4_INT_ENA_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH4_INT_ENA_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH4_INT_ENA_S 8
|
|
|
+/* LEDC_DUTY_CHNG_END_CH5_INT_ENA : R/W; bitpos: [9]; default: 0;
|
|
|
+ * The interrupt enable bit for the LEDC_DUTY_CHNG_END_CH5_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH5_INT_ENA (BIT(9))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH5_INT_ENA_M (LEDC_DUTY_CHNG_END_CH5_INT_ENA_V << LEDC_DUTY_CHNG_END_CH5_INT_ENA_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH5_INT_ENA_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH5_INT_ENA_S 9
|
|
|
+/* LEDC_OVF_CNT_CH0_INT_ENA : R/W; bitpos: [10]; default: 0;
|
|
|
+ * The interrupt enable bit for the LEDC_OVF_CNT_CH0_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH0_INT_ENA (BIT(10))
|
|
|
+#define LEDC_OVF_CNT_CH0_INT_ENA_M (LEDC_OVF_CNT_CH0_INT_ENA_V << LEDC_OVF_CNT_CH0_INT_ENA_S)
|
|
|
+#define LEDC_OVF_CNT_CH0_INT_ENA_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH0_INT_ENA_S 10
|
|
|
+/* LEDC_OVF_CNT_CH1_INT_ENA : R/W; bitpos: [11]; default: 0;
|
|
|
+ * The interrupt enable bit for the LEDC_OVF_CNT_CH1_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH1_INT_ENA (BIT(11))
|
|
|
+#define LEDC_OVF_CNT_CH1_INT_ENA_M (LEDC_OVF_CNT_CH1_INT_ENA_V << LEDC_OVF_CNT_CH1_INT_ENA_S)
|
|
|
+#define LEDC_OVF_CNT_CH1_INT_ENA_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH1_INT_ENA_S 11
|
|
|
+/* LEDC_OVF_CNT_CH2_INT_ENA : R/W; bitpos: [12]; default: 0;
|
|
|
+ * The interrupt enable bit for the LEDC_OVF_CNT_CH2_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH2_INT_ENA (BIT(12))
|
|
|
+#define LEDC_OVF_CNT_CH2_INT_ENA_M (LEDC_OVF_CNT_CH2_INT_ENA_V << LEDC_OVF_CNT_CH2_INT_ENA_S)
|
|
|
+#define LEDC_OVF_CNT_CH2_INT_ENA_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH2_INT_ENA_S 12
|
|
|
+/* LEDC_OVF_CNT_CH3_INT_ENA : R/W; bitpos: [13]; default: 0;
|
|
|
+ * The interrupt enable bit for the LEDC_OVF_CNT_CH3_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH3_INT_ENA (BIT(13))
|
|
|
+#define LEDC_OVF_CNT_CH3_INT_ENA_M (LEDC_OVF_CNT_CH3_INT_ENA_V << LEDC_OVF_CNT_CH3_INT_ENA_S)
|
|
|
+#define LEDC_OVF_CNT_CH3_INT_ENA_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH3_INT_ENA_S 13
|
|
|
+/* LEDC_OVF_CNT_CH4_INT_ENA : R/W; bitpos: [14]; default: 0;
|
|
|
+ * The interrupt enable bit for the LEDC_OVF_CNT_CH4_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH4_INT_ENA (BIT(14))
|
|
|
+#define LEDC_OVF_CNT_CH4_INT_ENA_M (LEDC_OVF_CNT_CH4_INT_ENA_V << LEDC_OVF_CNT_CH4_INT_ENA_S)
|
|
|
+#define LEDC_OVF_CNT_CH4_INT_ENA_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH4_INT_ENA_S 14
|
|
|
+/* LEDC_OVF_CNT_CH5_INT_ENA : R/W; bitpos: [15]; default: 0;
|
|
|
+ * The interrupt enable bit for the LEDC_OVF_CNT_CH5_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH5_INT_ENA (BIT(15))
|
|
|
+#define LEDC_OVF_CNT_CH5_INT_ENA_M (LEDC_OVF_CNT_CH5_INT_ENA_V << LEDC_OVF_CNT_CH5_INT_ENA_S)
|
|
|
+#define LEDC_OVF_CNT_CH5_INT_ENA_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH5_INT_ENA_S 15
|
|
|
|
|
|
-#define LEDC_INT_ST_REG (DR_REG_LEDC_BASE + 0x00c4)
|
|
|
-/* LEDC_OVF_CNT_LSCH5_INT_ST : RO ;bitpos:[15] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH5_INT_ST (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_LSCH5_INT_ST_M (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_LSCH5_INT_ST_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH5_INT_ST_S 15
|
|
|
-/* LEDC_OVF_CNT_LSCH4_INT_ST : RO ;bitpos:[14] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH4_INT_ST (BIT(14))
|
|
|
-#define LEDC_OVF_CNT_LSCH4_INT_ST_M (BIT(14))
|
|
|
-#define LEDC_OVF_CNT_LSCH4_INT_ST_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH4_INT_ST_S 14
|
|
|
-/* LEDC_OVF_CNT_LSCH3_INT_ST : RO ;bitpos:[13] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH3_INT_ST (BIT(13))
|
|
|
-#define LEDC_OVF_CNT_LSCH3_INT_ST_M (BIT(13))
|
|
|
-#define LEDC_OVF_CNT_LSCH3_INT_ST_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH3_INT_ST_S 13
|
|
|
-/* LEDC_OVF_CNT_LSCH2_INT_ST : RO ;bitpos:[12] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH2_INT_ST (BIT(12))
|
|
|
-#define LEDC_OVF_CNT_LSCH2_INT_ST_M (BIT(12))
|
|
|
-#define LEDC_OVF_CNT_LSCH2_INT_ST_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH2_INT_ST_S 12
|
|
|
-/* LEDC_OVF_CNT_LSCH1_INT_ST : RO ;bitpos:[11] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH1_INT_ST (BIT(11))
|
|
|
-#define LEDC_OVF_CNT_LSCH1_INT_ST_M (BIT(11))
|
|
|
-#define LEDC_OVF_CNT_LSCH1_INT_ST_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH1_INT_ST_S 11
|
|
|
-/* LEDC_OVF_CNT_LSCH0_INT_ST : RO ;bitpos:[10] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH0_INT_ST (BIT(10))
|
|
|
-#define LEDC_OVF_CNT_LSCH0_INT_ST_M (BIT(10))
|
|
|
-#define LEDC_OVF_CNT_LSCH0_INT_ST_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH0_INT_ST_S 10
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH5_INT_ST : RO ;bitpos:[9] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH5_INT_ST (BIT(9))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH5_INT_ST_M (BIT(9))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH5_INT_ST_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH5_INT_ST_S 9
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH4_INT_ST : RO ;bitpos:[8] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH4_INT_ST (BIT(8))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH4_INT_ST_M (BIT(8))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH4_INT_ST_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH4_INT_ST_S 8
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH3_INT_ST : RO ;bitpos:[7] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH3_INT_ST (BIT(7))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH3_INT_ST_M (BIT(7))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH3_INT_ST_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH3_INT_ST_S 7
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH2_INT_ST : RO ;bitpos:[6] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH2_INT_ST (BIT(6))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH2_INT_ST_M (BIT(6))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH2_INT_ST_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH2_INT_ST_S 6
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH1_INT_ST : RO ;bitpos:[5] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH1_INT_ST (BIT(5))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH1_INT_ST_M (BIT(5))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH1_INT_ST_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH1_INT_ST_S 5
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH0_INT_ST : RO ;bitpos:[4] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH0_INT_ST (BIT(4))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH0_INT_ST_M (BIT(4))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH0_INT_ST_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH0_INT_ST_S 4
|
|
|
-/* LEDC_LSTIMER3_OVF_INT_ST : RO ;bitpos:[3] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER3_OVF_INT_ST (BIT(3))
|
|
|
-#define LEDC_LSTIMER3_OVF_INT_ST_M (BIT(3))
|
|
|
-#define LEDC_LSTIMER3_OVF_INT_ST_V 0x1
|
|
|
-#define LEDC_LSTIMER3_OVF_INT_ST_S 3
|
|
|
-/* LEDC_LSTIMER2_OVF_INT_ST : RO ;bitpos:[2] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER2_OVF_INT_ST (BIT(2))
|
|
|
-#define LEDC_LSTIMER2_OVF_INT_ST_M (BIT(2))
|
|
|
-#define LEDC_LSTIMER2_OVF_INT_ST_V 0x1
|
|
|
-#define LEDC_LSTIMER2_OVF_INT_ST_S 2
|
|
|
-/* LEDC_LSTIMER1_OVF_INT_ST : RO ;bitpos:[1] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER1_OVF_INT_ST (BIT(1))
|
|
|
-#define LEDC_LSTIMER1_OVF_INT_ST_M (BIT(1))
|
|
|
-#define LEDC_LSTIMER1_OVF_INT_ST_V 0x1
|
|
|
-#define LEDC_LSTIMER1_OVF_INT_ST_S 1
|
|
|
-/* LEDC_LSTIMER0_OVF_INT_ST : RO ;bitpos:[0] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER0_OVF_INT_ST (BIT(0))
|
|
|
-#define LEDC_LSTIMER0_OVF_INT_ST_M (BIT(0))
|
|
|
-#define LEDC_LSTIMER0_OVF_INT_ST_V 0x1
|
|
|
-#define LEDC_LSTIMER0_OVF_INT_ST_S 0
|
|
|
+/** LEDC_INT_CLR_REG register
|
|
|
+ * Interrupt clear
|
|
|
+ * bits
|
|
|
+ */
|
|
|
+#define LEDC_INT_CLR_REG (DR_REG_LEDC_BASE + 0xcc)
|
|
|
+/* LEDC_TIMER0_OVF_INT_CLR : WT; bitpos: [0]; default: 0;
|
|
|
+ * Set this bit to clear the LEDC_TIMER0_OVF_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER0_OVF_INT_CLR (BIT(0))
|
|
|
+#define LEDC_TIMER0_OVF_INT_CLR_M (LEDC_TIMER0_OVF_INT_CLR_V << LEDC_TIMER0_OVF_INT_CLR_S)
|
|
|
+#define LEDC_TIMER0_OVF_INT_CLR_V 0x00000001
|
|
|
+#define LEDC_TIMER0_OVF_INT_CLR_S 0
|
|
|
+/* LEDC_TIMER1_OVF_INT_CLR : WT; bitpos: [1]; default: 0;
|
|
|
+ * Set this bit to clear the LEDC_TIMER1_OVF_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER1_OVF_INT_CLR (BIT(1))
|
|
|
+#define LEDC_TIMER1_OVF_INT_CLR_M (LEDC_TIMER1_OVF_INT_CLR_V << LEDC_TIMER1_OVF_INT_CLR_S)
|
|
|
+#define LEDC_TIMER1_OVF_INT_CLR_V 0x00000001
|
|
|
+#define LEDC_TIMER1_OVF_INT_CLR_S 1
|
|
|
+/* LEDC_TIMER2_OVF_INT_CLR : WT; bitpos: [2]; default: 0;
|
|
|
+ * Set this bit to clear the LEDC_TIMER2_OVF_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER2_OVF_INT_CLR (BIT(2))
|
|
|
+#define LEDC_TIMER2_OVF_INT_CLR_M (LEDC_TIMER2_OVF_INT_CLR_V << LEDC_TIMER2_OVF_INT_CLR_S)
|
|
|
+#define LEDC_TIMER2_OVF_INT_CLR_V 0x00000001
|
|
|
+#define LEDC_TIMER2_OVF_INT_CLR_S 2
|
|
|
+/* LEDC_TIMER3_OVF_INT_CLR : WT; bitpos: [3]; default: 0;
|
|
|
+ * Set this bit to clear the LEDC_TIMER3_OVF_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_TIMER3_OVF_INT_CLR (BIT(3))
|
|
|
+#define LEDC_TIMER3_OVF_INT_CLR_M (LEDC_TIMER3_OVF_INT_CLR_V << LEDC_TIMER3_OVF_INT_CLR_S)
|
|
|
+#define LEDC_TIMER3_OVF_INT_CLR_V 0x00000001
|
|
|
+#define LEDC_TIMER3_OVF_INT_CLR_S 3
|
|
|
+/* LEDC_DUTY_CHNG_END_CH0_INT_CLR : WT; bitpos: [4]; default: 0;
|
|
|
+ * Set this bit to clear the LEDC_DUTY_CHNG_END_CH0_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH0_INT_CLR (BIT(4))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH0_INT_CLR_M (LEDC_DUTY_CHNG_END_CH0_INT_CLR_V << LEDC_DUTY_CHNG_END_CH0_INT_CLR_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH0_INT_CLR_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH0_INT_CLR_S 4
|
|
|
+/* LEDC_DUTY_CHNG_END_CH1_INT_CLR : WT; bitpos: [5]; default: 0;
|
|
|
+ * Set this bit to clear the LEDC_DUTY_CHNG_END_CH1_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH1_INT_CLR (BIT(5))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH1_INT_CLR_M (LEDC_DUTY_CHNG_END_CH1_INT_CLR_V << LEDC_DUTY_CHNG_END_CH1_INT_CLR_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH1_INT_CLR_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH1_INT_CLR_S 5
|
|
|
+/* LEDC_DUTY_CHNG_END_CH2_INT_CLR : WT; bitpos: [6]; default: 0;
|
|
|
+ * Set this bit to clear the LEDC_DUTY_CHNG_END_CH2_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH2_INT_CLR (BIT(6))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH2_INT_CLR_M (LEDC_DUTY_CHNG_END_CH2_INT_CLR_V << LEDC_DUTY_CHNG_END_CH2_INT_CLR_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH2_INT_CLR_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH2_INT_CLR_S 6
|
|
|
+/* LEDC_DUTY_CHNG_END_CH3_INT_CLR : WT; bitpos: [7]; default: 0;
|
|
|
+ * Set this bit to clear the LEDC_DUTY_CHNG_END_CH3_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH3_INT_CLR (BIT(7))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH3_INT_CLR_M (LEDC_DUTY_CHNG_END_CH3_INT_CLR_V << LEDC_DUTY_CHNG_END_CH3_INT_CLR_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH3_INT_CLR_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH3_INT_CLR_S 7
|
|
|
+/* LEDC_DUTY_CHNG_END_CH4_INT_CLR : WT; bitpos: [8]; default: 0;
|
|
|
+ * Set this bit to clear the LEDC_DUTY_CHNG_END_CH4_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH4_INT_CLR (BIT(8))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH4_INT_CLR_M (LEDC_DUTY_CHNG_END_CH4_INT_CLR_V << LEDC_DUTY_CHNG_END_CH4_INT_CLR_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH4_INT_CLR_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH4_INT_CLR_S 8
|
|
|
+/* LEDC_DUTY_CHNG_END_CH5_INT_CLR : WT; bitpos: [9]; default: 0;
|
|
|
+ * Set this bit to clear the LEDC_DUTY_CHNG_END_CH5_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_DUTY_CHNG_END_CH5_INT_CLR (BIT(9))
|
|
|
+#define LEDC_DUTY_CHNG_END_CH5_INT_CLR_M (LEDC_DUTY_CHNG_END_CH5_INT_CLR_V << LEDC_DUTY_CHNG_END_CH5_INT_CLR_S)
|
|
|
+#define LEDC_DUTY_CHNG_END_CH5_INT_CLR_V 0x00000001
|
|
|
+#define LEDC_DUTY_CHNG_END_CH5_INT_CLR_S 9
|
|
|
+/* LEDC_OVF_CNT_CH0_INT_CLR : WT; bitpos: [10]; default: 0;
|
|
|
+ * Set this bit to clear the LEDC_OVF_CNT_CH0_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH0_INT_CLR (BIT(10))
|
|
|
+#define LEDC_OVF_CNT_CH0_INT_CLR_M (LEDC_OVF_CNT_CH0_INT_CLR_V << LEDC_OVF_CNT_CH0_INT_CLR_S)
|
|
|
+#define LEDC_OVF_CNT_CH0_INT_CLR_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH0_INT_CLR_S 10
|
|
|
+/* LEDC_OVF_CNT_CH1_INT_CLR : WT; bitpos: [11]; default: 0;
|
|
|
+ * Set this bit to clear the LEDC_OVF_CNT_CH1_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH1_INT_CLR (BIT(11))
|
|
|
+#define LEDC_OVF_CNT_CH1_INT_CLR_M (LEDC_OVF_CNT_CH1_INT_CLR_V << LEDC_OVF_CNT_CH1_INT_CLR_S)
|
|
|
+#define LEDC_OVF_CNT_CH1_INT_CLR_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH1_INT_CLR_S 11
|
|
|
+/* LEDC_OVF_CNT_CH2_INT_CLR : WT; bitpos: [12]; default: 0;
|
|
|
+ * Set this bit to clear the LEDC_OVF_CNT_CH2_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH2_INT_CLR (BIT(12))
|
|
|
+#define LEDC_OVF_CNT_CH2_INT_CLR_M (LEDC_OVF_CNT_CH2_INT_CLR_V << LEDC_OVF_CNT_CH2_INT_CLR_S)
|
|
|
+#define LEDC_OVF_CNT_CH2_INT_CLR_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH2_INT_CLR_S 12
|
|
|
+/* LEDC_OVF_CNT_CH3_INT_CLR : WT; bitpos: [13]; default: 0;
|
|
|
+ * Set this bit to clear the LEDC_OVF_CNT_CH3_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH3_INT_CLR (BIT(13))
|
|
|
+#define LEDC_OVF_CNT_CH3_INT_CLR_M (LEDC_OVF_CNT_CH3_INT_CLR_V << LEDC_OVF_CNT_CH3_INT_CLR_S)
|
|
|
+#define LEDC_OVF_CNT_CH3_INT_CLR_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH3_INT_CLR_S 13
|
|
|
+/* LEDC_OVF_CNT_CH4_INT_CLR : WT; bitpos: [14]; default: 0;
|
|
|
+ * Set this bit to clear the LEDC_OVF_CNT_CH4_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH4_INT_CLR (BIT(14))
|
|
|
+#define LEDC_OVF_CNT_CH4_INT_CLR_M (LEDC_OVF_CNT_CH4_INT_CLR_V << LEDC_OVF_CNT_CH4_INT_CLR_S)
|
|
|
+#define LEDC_OVF_CNT_CH4_INT_CLR_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH4_INT_CLR_S 14
|
|
|
+/* LEDC_OVF_CNT_CH5_INT_CLR : WT; bitpos: [15]; default: 0;
|
|
|
+ * Set this bit to clear the LEDC_OVF_CNT_CH5_INT
|
|
|
+ * interrupt.
|
|
|
+ */
|
|
|
+#define LEDC_OVF_CNT_CH5_INT_CLR (BIT(15))
|
|
|
+#define LEDC_OVF_CNT_CH5_INT_CLR_M (LEDC_OVF_CNT_CH5_INT_CLR_V << LEDC_OVF_CNT_CH5_INT_CLR_S)
|
|
|
+#define LEDC_OVF_CNT_CH5_INT_CLR_V 0x00000001
|
|
|
+#define LEDC_OVF_CNT_CH5_INT_CLR_S 15
|
|
|
|
|
|
-#define LEDC_INT_ENA_REG (DR_REG_LEDC_BASE + 0xC8)
|
|
|
-/* LEDC_OVF_CNT_LSCH5_INT_ENA : R/W ;bitpos:[15] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH5_INT_ENA (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_LSCH5_INT_ENA_M (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_LSCH5_INT_ENA_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH5_INT_ENA_S 15
|
|
|
-/* LEDC_OVF_CNT_LSCH4_INT_ENA : R/W ;bitpos:[14] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH4_INT_ENA (BIT(14))
|
|
|
-#define LEDC_OVF_CNT_LSCH4_INT_ENA_M (BIT(14))
|
|
|
-#define LEDC_OVF_CNT_LSCH4_INT_ENA_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH4_INT_ENA_S 14
|
|
|
-/* LEDC_OVF_CNT_LSCH3_INT_ENA : R/W ;bitpos:[13] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH3_INT_ENA (BIT(13))
|
|
|
-#define LEDC_OVF_CNT_LSCH3_INT_ENA_M (BIT(13))
|
|
|
-#define LEDC_OVF_CNT_LSCH3_INT_ENA_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH3_INT_ENA_S 13
|
|
|
-/* LEDC_OVF_CNT_LSCH2_INT_ENA : R/W ;bitpos:[12] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH2_INT_ENA (BIT(12))
|
|
|
-#define LEDC_OVF_CNT_LSCH2_INT_ENA_M (BIT(12))
|
|
|
-#define LEDC_OVF_CNT_LSCH2_INT_ENA_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH2_INT_ENA_S 12
|
|
|
-/* LEDC_OVF_CNT_LSCH1_INT_ENA : R/W ;bitpos:[11] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH1_INT_ENA (BIT(11))
|
|
|
-#define LEDC_OVF_CNT_LSCH1_INT_ENA_M (BIT(11))
|
|
|
-#define LEDC_OVF_CNT_LSCH1_INT_ENA_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH1_INT_ENA_S 11
|
|
|
-/* LEDC_OVF_CNT_LSCH0_INT_ENA : R/W ;bitpos:[10] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH0_INT_ENA (BIT(10))
|
|
|
-#define LEDC_OVF_CNT_LSCH0_INT_ENA_M (BIT(10))
|
|
|
-#define LEDC_OVF_CNT_LSCH0_INT_ENA_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH0_INT_ENA_S 10
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH5_INT_ENA : R/W ;bitpos:[9] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH5_INT_ENA (BIT(9))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH5_INT_ENA_M (BIT(9))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH5_INT_ENA_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH5_INT_ENA_S 9
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH4_INT_ENA : R/W ;bitpos:[8] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH4_INT_ENA (BIT(8))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH4_INT_ENA_M (BIT(8))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH4_INT_ENA_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH4_INT_ENA_S 8
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH3_INT_ENA : R/W ;bitpos:[7] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH3_INT_ENA (BIT(7))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH3_INT_ENA_M (BIT(7))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH3_INT_ENA_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH3_INT_ENA_S 7
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH2_INT_ENA : R/W ;bitpos:[6] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH2_INT_ENA (BIT(6))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH2_INT_ENA_M (BIT(6))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH2_INT_ENA_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH2_INT_ENA_S 6
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH1_INT_ENA : R/W ;bitpos:[5] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH1_INT_ENA (BIT(5))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH1_INT_ENA_M (BIT(5))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH1_INT_ENA_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH1_INT_ENA_S 5
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH0_INT_ENA : R/W ;bitpos:[4] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH0_INT_ENA (BIT(4))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH0_INT_ENA_M (BIT(4))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH0_INT_ENA_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH0_INT_ENA_S 4
|
|
|
-/* LEDC_LSTIMER3_OVF_INT_ENA : R/W ;bitpos:[3] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER3_OVF_INT_ENA (BIT(3))
|
|
|
-#define LEDC_LSTIMER3_OVF_INT_ENA_M (BIT(3))
|
|
|
-#define LEDC_LSTIMER3_OVF_INT_ENA_V 0x1
|
|
|
-#define LEDC_LSTIMER3_OVF_INT_ENA_S 3
|
|
|
-/* LEDC_LSTIMER2_OVF_INT_ENA : R/W ;bitpos:[2] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER2_OVF_INT_ENA (BIT(2))
|
|
|
-#define LEDC_LSTIMER2_OVF_INT_ENA_M (BIT(2))
|
|
|
-#define LEDC_LSTIMER2_OVF_INT_ENA_V 0x1
|
|
|
-#define LEDC_LSTIMER2_OVF_INT_ENA_S 2
|
|
|
-/* LEDC_LSTIMER1_OVF_INT_ENA : R/W ;bitpos:[1] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER1_OVF_INT_ENA (BIT(1))
|
|
|
-#define LEDC_LSTIMER1_OVF_INT_ENA_M (BIT(1))
|
|
|
-#define LEDC_LSTIMER1_OVF_INT_ENA_V 0x1
|
|
|
-#define LEDC_LSTIMER1_OVF_INT_ENA_S 1
|
|
|
-/* LEDC_LSTIMER0_OVF_INT_ENA : R/W ;bitpos:[0] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER0_OVF_INT_ENA (BIT(0))
|
|
|
-#define LEDC_LSTIMER0_OVF_INT_ENA_M (BIT(0))
|
|
|
-#define LEDC_LSTIMER0_OVF_INT_ENA_V 0x1
|
|
|
-#define LEDC_LSTIMER0_OVF_INT_ENA_S 0
|
|
|
|
|
|
-#define LEDC_INT_CLR_REG (DR_REG_LEDC_BASE + 0xCC)
|
|
|
-/* LEDC_OVF_CNT_LSCH5_INT_CLR : WO ;bitpos:[15] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH5_INT_CLR (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_LSCH5_INT_CLR_M (BIT(15))
|
|
|
-#define LEDC_OVF_CNT_LSCH5_INT_CLR_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH5_INT_CLR_S 15
|
|
|
-/* LEDC_OVF_CNT_LSCH4_INT_CLR : WO ;bitpos:[14] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH4_INT_CLR (BIT(14))
|
|
|
-#define LEDC_OVF_CNT_LSCH4_INT_CLR_M (BIT(14))
|
|
|
-#define LEDC_OVF_CNT_LSCH4_INT_CLR_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH4_INT_CLR_S 14
|
|
|
-/* LEDC_OVF_CNT_LSCH3_INT_CLR : WO ;bitpos:[13] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH3_INT_CLR (BIT(13))
|
|
|
-#define LEDC_OVF_CNT_LSCH3_INT_CLR_M (BIT(13))
|
|
|
-#define LEDC_OVF_CNT_LSCH3_INT_CLR_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH3_INT_CLR_S 13
|
|
|
-/* LEDC_OVF_CNT_LSCH2_INT_CLR : WO ;bitpos:[12] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH2_INT_CLR (BIT(12))
|
|
|
-#define LEDC_OVF_CNT_LSCH2_INT_CLR_M (BIT(12))
|
|
|
-#define LEDC_OVF_CNT_LSCH2_INT_CLR_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH2_INT_CLR_S 12
|
|
|
-/* LEDC_OVF_CNT_LSCH1_INT_CLR : WO ;bitpos:[11] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH1_INT_CLR (BIT(11))
|
|
|
-#define LEDC_OVF_CNT_LSCH1_INT_CLR_M (BIT(11))
|
|
|
-#define LEDC_OVF_CNT_LSCH1_INT_CLR_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH1_INT_CLR_S 11
|
|
|
-/* LEDC_OVF_CNT_LSCH0_INT_CLR : WO ;bitpos:[10] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_OVF_CNT_LSCH0_INT_CLR (BIT(10))
|
|
|
-#define LEDC_OVF_CNT_LSCH0_INT_CLR_M (BIT(10))
|
|
|
-#define LEDC_OVF_CNT_LSCH0_INT_CLR_V 0x1
|
|
|
-#define LEDC_OVF_CNT_LSCH0_INT_CLR_S 10
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH5_INT_CLR : WT ;bitpos:[9] ;default: 1'b0 ; */
|
|
|
-/*description: reg_duty_chng_end_lsch5_int_clr..*/
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH5_INT_CLR (BIT(9))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH5_INT_CLR_M (BIT(9))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH5_INT_CLR_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH5_INT_CLR_S 9
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH4_INT_CLR : WO ;bitpos:[8] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH4_INT_CLR (BIT(8))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH4_INT_CLR_M (BIT(8))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH4_INT_CLR_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH4_INT_CLR_S 8
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH3_INT_CLR : WO ;bitpos:[7] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH3_INT_CLR (BIT(7))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH3_INT_CLR_M (BIT(7))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH3_INT_CLR_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH3_INT_CLR_S 7
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH2_INT_CLR : WO ;bitpos:[6] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH2_INT_CLR (BIT(6))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH2_INT_CLR_M (BIT(6))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH2_INT_CLR_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH2_INT_CLR_S 6
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH1_INT_CLR : WO ;bitpos:[5] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH1_INT_CLR (BIT(5))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH1_INT_CLR_M (BIT(5))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH1_INT_CLR_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH1_INT_CLR_S 5
|
|
|
-/* LEDC_DUTY_CHNG_END_LSCH0_INT_CLR : WO ;bitpos:[4] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH0_INT_CLR (BIT(4))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH0_INT_CLR_M (BIT(4))
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH0_INT_CLR_V 0x1
|
|
|
-#define LEDC_DUTY_CHNG_END_LSCH0_INT_CLR_S 4
|
|
|
-/* LEDC_LSTIMER3_OVF_INT_CLR : WO ;bitpos:[3] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER3_OVF_INT_CLR (BIT(3))
|
|
|
-#define LEDC_LSTIMER3_OVF_INT_CLR_M (BIT(3))
|
|
|
-#define LEDC_LSTIMER3_OVF_INT_CLR_V 0x1
|
|
|
-#define LEDC_LSTIMER3_OVF_INT_CLR_S 3
|
|
|
-/* LEDC_LSTIMER2_OVF_INT_CLR : WO ;bitpos:[2] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER2_OVF_INT_CLR (BIT(2))
|
|
|
-#define LEDC_LSTIMER2_OVF_INT_CLR_M (BIT(2))
|
|
|
-#define LEDC_LSTIMER2_OVF_INT_CLR_V 0x1
|
|
|
-#define LEDC_LSTIMER2_OVF_INT_CLR_S 2
|
|
|
-/* LEDC_LSTIMER1_OVF_INT_CLR : WO ;bitpos:[1] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER1_OVF_INT_CLR (BIT(1))
|
|
|
-#define LEDC_LSTIMER1_OVF_INT_CLR_M (BIT(1))
|
|
|
-#define LEDC_LSTIMER1_OVF_INT_CLR_V 0x1
|
|
|
-#define LEDC_LSTIMER1_OVF_INT_CLR_S 1
|
|
|
-/* LEDC_LSTIMER0_OVF_INT_CLR : WO ;bitpos:[0] ;default: 1'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_LSTIMER0_OVF_INT_CLR (BIT(0))
|
|
|
-#define LEDC_LSTIMER0_OVF_INT_CLR_M (BIT(0))
|
|
|
-#define LEDC_LSTIMER0_OVF_INT_CLR_V 0x1
|
|
|
-#define LEDC_LSTIMER0_OVF_INT_CLR_S 0
|
|
|
+/** Version Register */
|
|
|
|
|
|
-#define LEDC_CONF_REG (DR_REG_LEDC_BASE + 0x00d0)
|
|
|
-/* LEDC_CLK_EN : R/W ;bitpos:[31] ;default: 1'h0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_CLK_EN (BIT(31))
|
|
|
-#define LEDC_CLK_EN_M (BIT(31))
|
|
|
-#define LEDC_CLK_EN_V 0x1
|
|
|
-#define LEDC_CLK_EN_S 31
|
|
|
-/* LEDC_APB_CLK_SEL : R/W ;bitpos:[1:0] ;default: 2'b0 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_APB_CLK_SEL 0x00000003
|
|
|
-#define LEDC_APB_CLK_SEL_M ((LEDC_APB_CLK_SEL_V)<<(LEDC_APB_CLK_SEL_S))
|
|
|
-#define LEDC_APB_CLK_SEL_V 0x3
|
|
|
-#define LEDC_APB_CLK_SEL_S 0
|
|
|
+/** LEDC_DATE_REG register
|
|
|
+ * Version control
|
|
|
+ * register
|
|
|
+ */
|
|
|
+#define LEDC_DATE_REG (DR_REG_LEDC_BASE + 0xfc)
|
|
|
+/* LEDC_LEDC_DATE : R/W; bitpos: [32:0]; default: 419829504;
|
|
|
+ * This is the version control
|
|
|
+ * register.
|
|
|
+ */
|
|
|
+#define LEDC_LEDC_DATE 0xFFFFFFFF
|
|
|
+#define LEDC_LEDC_DATE_M (LEDC_LEDC_DATE_V << LEDC_LEDC_DATE_S)
|
|
|
+#define LEDC_LEDC_DATE_V 0xFFFFFFFF
|
|
|
+#define LEDC_LEDC_DATE_S 0
|
|
|
|
|
|
-#define LEDC_DATE_REG (DR_REG_LEDC_BASE + 0x00FC)
|
|
|
-/* LEDC_DATE : R/W ;bitpos:[31:0] ;default: 32'h19061700 ; */
|
|
|
-/*description: */
|
|
|
-#define LEDC_DATE 0xFFFFFFFF
|
|
|
-#define LEDC_DATE_M ((LEDC_DATE_V)<<(LEDC_DATE_S))
|
|
|
-#define LEDC_DATE_V 0xFFFFFFFF
|
|
|
-#define LEDC_DATE_S 0
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
}
|
|
|
#endif
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-#endif /*_SOC_LEDC_REG_H_ */
|