[riot-notifications] [RIOT-OS/RIOT] cpu/esp32: fix of periph_* submodule compilation (#11337)

Gunar Schorcht notifications at github.com
Wed Apr 24 21:19:33 CEST 2019


gschorcht commented on this pull request.



> +
+    /* SAR ADC2 controller configuration */
+    SENS.sar_read_ctrl2.sar2_dig_force = 0;     /* SAR ADC2 controlled by RTC not DIG*/
+    SENS.sar_meas_start2.meas2_start_force = 1; /* SAR ADC2 started by SW */
+    SENS.sar_meas_start2.sar2_en_pad_force = 1; /* pad enable bitmap controlled by SW */
+    SENS.sar_read_ctrl2.sar2_data_inv = 1;      /* invert data */
+    SENS.sar_atten2 = 0xffffffff;               /* set attenuation to 11 dB for all pads
+                                                   (input range 0 ... 3,3 V) */
+    /* set default resolution */
+    SENS.sar_start_force.sar2_bit_width = ADC_RES_12BIT;
+    SENS.sar_read_ctrl2.sar2_sample_bit = ADC_RES_12BIT;
+
+    _adc2_ctrl_initialized = true;
+}
+
+extern const gpio_t _gpio_rtcio_map[];

of course

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11337#discussion_r278279454
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190424/7607b9ee/attachment.html>


More information about the notifications mailing list