[riot-notifications] [RIOT-OS/RIOT] cpu/nrf52: add SAUL driver for VDDH sensor (#16003)

benpicco notifications at github.com
Fri May 21 13:46:37 CEST 2021


@benpicco commented on this pull request.



> + * @file
+ * @brief       Auto initialization of internal voltage sensor directly mapped to SAUL reg
+ *
+ * @author      Benjamin Valentin <benjamin.valentin at ml-pa.com>
+ *
+ * @}
+ */
+
+#include "cpu.h"
+#include "log.h"
+#include "saul_reg.h"
+#include "saul/periph.h"
+#include "periph/adc.h"
+
+/* ADC uses ¼ Vdd for Vref amplified by 4 */
+#define VDD_REF_mV  (3300)

fixed

-- 
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/16003#discussion_r636854537
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210521/7be9f91d/attachment.htm>


More information about the notifications mailing list