Refactored ADC to use new regedit functions.
This commit is contained in:
parent
3aac942e6d
commit
c731aae201
2 changed files with 2 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ void ADC_Setup(void)
|
|||
|
||||
void ADC_PowerOn(void)
|
||||
{
|
||||
RegEdit_SetBit((void *)&ADC1->CTLR2, ADC_ADON);
|
||||
RegEdit_u32_SetBit((void *)&ADC1->CTLR2, ADC_ADON);
|
||||
}
|
||||
|
||||
void ADC_Init(uint8_t pin_num)
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
#define ADC_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue