]> granicus.if.org Git - esp-idf/commitdiff
soc/io_mux: make CLK_OUT fields compatible with REG_SET/GET_FIELD
authorIvan Grokhotkov <ivan@espressif.com>
Thu, 22 Mar 2018 10:10:43 +0000 (18:10 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Tue, 27 Mar 2018 04:10:18 +0000 (12:10 +0800)
components/soc/esp32/include/soc/io_mux_reg.h

index 5516e59834c5126dde057ce5ddb7de9e3c2634cc..25978b326ffb7a7ce71d4a6ae3ff5a4087dce1b1 100644 (file)
@@ -117,11 +117,17 @@ static inline void __attribute__ ((deprecated)) PIN_PULLDWN_EN(uint32_t PIN_NAME
 
 #define PIN_CTRL                          (DR_REG_IO_MUX_BASE +0x00)
 #define CLK_OUT3                                    0xf
+#define CLK_OUT3_V                                  CLK_OUT3
 #define CLK_OUT3_S                                  8
+#define CLK_OUT3_M                                  (CLK_OUT3_V << CLK_OUT3_S)
 #define CLK_OUT2                                    0xf
+#define CLK_OUT2_V                                  CLK_OUT2
 #define CLK_OUT2_S                                  4
+#define CLK_OUT2_M                                  (CLK_OUT2_V << CLK_OUT2_S)
 #define CLK_OUT1                                    0xf
+#define CLK_OUT1_V                                  CLK_OUT1
 #define CLK_OUT1_S                                  0
+#define CLK_OUT1_M                                  (CLK_OUT1_V << CLK_OUT1_S)
 
 #define PERIPHS_IO_MUX_GPIO0_U            (DR_REG_IO_MUX_BASE +0x44)
 #define IO_MUX_GPIO0_REG                  PERIPHS_IO_MUX_GPIO0_U