Init the ADC.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user