Fix bug in clock manager and remove DMA sampling from ADC code. Will be rewritten in a different way
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <adc-meas.h>
|
||||
#include <clock-enable-manager.h>
|
||||
|
||||
static void setup_nvic_priorities()
|
||||
{
|
||||
@@ -27,7 +28,8 @@ static float pt1000_value;
|
||||
static volatile int pt1000_value_status;
|
||||
|
||||
int main() {
|
||||
RCC->AHB1ENR |= RCC_AHB1ENR_GPIOBEN;
|
||||
rcc_manager_enable_clock(&RCC->AHB1ENR, BITMASK_TO_BITNO(RCC_AHB1ENR_GPIOBEN));
|
||||
|
||||
__DSB();
|
||||
GPIOB->MODER = OUTPUT(2) | OUTPUT(3);
|
||||
GPIOB->ODR |= (1<<2);
|
||||
|
Reference in New Issue
Block a user