From 3d1ecdc38a5d9d0f644cc9363d5f99bbd27afdb1 Mon Sep 17 00:00:00 2001 From: HaidySamir1696 Date: Fri, 3 May 2019 14:39:04 +0200 Subject: [PATCH] ADC_Init_Potentiometer #4 --- Tivac2/adc.c | 26 ++++++++++++++++++++++++++ Tivac2/adc.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 Tivac2/adc.c create mode 100644 Tivac2/adc.h diff --git a/Tivac2/adc.c b/Tivac2/adc.c new file mode 100644 index 0000000..65ba6d0 --- /dev/null +++ b/Tivac2/adc.c @@ -0,0 +1,26 @@ +#include "adc.h" + + +void ADC0_SS3_Init (void) +{ + SYSCTL_RCGCADC_R |= (1<<0); //enable ADC0 clock + ADC0_ACTSS_R &= ~(1<