Pārlūkot izejas kodu

Протестирован partial assist. Параметры рассчитываются верно.

Anatoliy Chigirinskiy 1 gadu atpakaļ
vecāks
revīzija
eb8247a0a7
4 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  1. 2 0
      CMakeLists.txt
  2. 1 1
      Devices/dac8811.c
  3. 1 0
      Devices/lmx2594.c
  4. 1 1
      command.c

+ 2 - 0
CMakeLists.txt

@@ -5,5 +5,7 @@ add_executable(TMSG44_CoolPi command.c main.c
         Devices/ad9912.c
         Devices/lmk04821.c
         Devices/lmx2594.c
+        Devices/dac8811.c
         Devices/tmsgheaders.c)
 
+target_link_libraries(TMSG44_CoolPi m)

+ 1 - 1
Devices/dac8811.c

@@ -1,4 +1,4 @@
-#include <dac8811.h>
+#include "dac8811.h"
 
 
 void dac8811_set(void *bar1, uint16_t dac_data) {

+ 1 - 0
Devices/lmx2594.c

@@ -1,4 +1,5 @@
 #include "lmx2594.h"
+#include <math.h>
 
 
 const uint32_t lmx2594_rst[] = {

+ 1 - 1
command.c

@@ -97,7 +97,7 @@ void handleAttCmd(const char* recvBuff)
 
 	splitLexeme(recvBuff, attCode, sizeof(attCode[0]), convertToUInt16);
 	printf("\n%u\n", attCode[0]);
-	dac8811_set_att(bar1,attCode[0]);
+	dac8811_att_set(bar1,attCode[0]);
 }
 
 void handleIdnCmd(const char* recvBuff)