[riot-notifications] [RIOT-OS/RIOT] sys/analog_util: Refactor, add test (#8577)

Joakim NohlgÄrd notifications at github.com
Mon Apr 16 13:09:04 CEST 2018

gebart commented on this pull request.

> +#include "analog_util.h"
+#define ENABLE_DEBUG (0)
+#include "debug.h"
+typedef struct {
+    int expected;
+    int sample;
+    int min;
+    int max;
+    adc_res_t res;
+} test_values_t;
+/* Arbitrarily chosen test vectors */
+/* TODO: Choose test vectors in a more qualified manner to catch any edge cases */
+static test_values_t test_data[] = {

Added a notice in the main refactor commit regarding why it can be useful.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20180416/7b59409a/attachment.html>

More information about the notifications mailing list