From 618bf3266a55ba0d83f2f5da764d64a4417dab37 Mon Sep 17 00:00:00 2001 From: Peter McGoron Date: Thu, 14 Jul 2022 15:46:59 -0400 Subject: [PATCH] fix io.c includes and logging --- software/src/io.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/software/src/io.c b/software/src/io.c index 764fb0a..e712dad 100644 --- a/software/src/io.c +++ b/software/src/io.c @@ -1,5 +1,11 @@ +#include #include +#include + +LOG_MODULE_REGISTER(adc_dac_io); + #include +#define CSR_LOCATIONS #include "pin_io.h" /* LT ADCs work like this: @@ -85,7 +91,7 @@ dac_write_raw(size_t n, uint32_t data) k_sleep(K_NSEC(10)); if (n >= DAC_MAX) { - LOG_ERROR("dac_write_raw got bad ADC %d\n", n); + LOG_ERR("dac_write_raw got bad ADC %d\n", n); k_fatal_halt(K_ERR_KERNEL_OOPS); }