Init the ADC.

This commit is contained in:
László Monda
2017-05-08 02:19:20 +02:00
parent 1fb3c8b132
commit 13e0d02574
2 changed files with 12 additions and 0 deletions

View File

@@ -60,6 +60,16 @@
<type>2</type>
<locationURI>virtual:/virtual</locationURI>
</link>
<link>
<name>drivers/fsl_adc16.c</name>
<type>1</type>
<locationURI>$%7BPARENT-3-PROJECT_LOC%7D/lib/KSDK_2.0_MK22FN512xxx12/devices/MK22F51212/drivers/fsl_adc16.c</locationURI>
</link>
<link>
<name>drivers/fsl_adc16.h</name>
<type>1</type>
<locationURI>$%7BPARENT-3-PROJECT_LOC%7D/lib/KSDK_2.0_MK22FN512xxx12/devices/MK22F51212/drivers/fsl_adc16.h</locationURI>
</link>
<link>
<name>drivers/fsl_clock.c</name>
<type>1</type>

View File

@@ -8,6 +8,7 @@
#include "peripherals/merge_sensor.h"
#include "led_pwm.h"
#include "slave_scheduler.h"
#include "peripherals/adc.h"
volatile uint32_t temp, counter;
@@ -52,6 +53,7 @@ void InitPeripherials(void)
{
InitResetButton();
InitMergeSensor();
ADC_Init();
InitI2c();
InitTestLed();
#if UHK_PCB_MAJOR_VERSION >= 7