--- /dev/null
+/**\r
+ * Battery Voltage. The returned value represents the difference\r
+ * between the battery voltage and V_BG (1.23V). The formula to convert\r
+ * it to mV is: 1223 * 1024 / value.\r
+ *\r
+ * @author Razvan Musaloiu-E.\r
+ */\r
+\r
+generic configuration VoltageC()\r
+{\r
+ provides interface Read<uint16_t>;\r
+}\r
+\r
+implementation\r
+{\r
+ components new AdcReadClientC(), VoltageP;\r
+\r
+ Read = AdcReadClientC;\r
+\r
+ AdcReadClientC.Atm128AdcConfig -> VoltageP;\r
+}\r