diff Small_CPU/Src/baseCPU2.c @ 554:3328189786e7

Added external ADC interface functionality (MCP3424): Added communication protocoll to read data from external ADC. At the moment 16bit and 18bit resolutions are supported. External data will be read and forwarded depending on the conversion time of the ADC.
author Ideenmodellierer
date Thu, 12 Nov 2020 19:46:03 +0100
parents 02e7e11fdbe8
children 06ec1da5e105
line wrap: on
line diff
--- a/Small_CPU/Src/baseCPU2.c	Sun Nov 08 18:49:54 2020 +0100
+++ b/Small_CPU/Src/baseCPU2.c	Thu Nov 12 19:46:03 2020 +0100
@@ -141,6 +141,7 @@
 #include "batteryCharger.h"
 #include "scheduler.h"
 #include "tm_stm32f4_otp.h"
+#include "externalInterface.h"
 
 // From Common/Inc:
 #include "calc_crush.h"
@@ -397,6 +398,7 @@
 			//				ReInit_battery_charger_status_pins();
 			compass_init(0, 7);
 			accelerator_init();
+			externalInterface_Init();
 
 			if (global.mode == MODE_BOOT) {
 				GPIO_Power_MainCPU_OFF();