Skip to content

Commit

Permalink
fixed build errors and incs
Browse files Browse the repository at this point in the history
  • Loading branch information
wxkim committed Sep 15, 2024
1 parent 7f59de9 commit 565dfa9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Platform/STM/F4/ADC/adc_stmf4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@

#include "../../../Interfaces/iadc.hpp" // dfr custom interface
#include "adc_stmf4.hpp" //include header
#include <stdio.h>

namespace platform {
AdcStmF4::AdcStmF4(ADC_HandleTypeDef* hadc, DMA_HandleTypeDef* hdma)
: hdma(hdma), hadc(hadc){
: hadc(hadc), hdma(hdma){
MX_ADC1_Init();
HAL_ADC_Init(hadc);
HAL_DMA_Init(hdma);
Expand Down Expand Up @@ -50,7 +51,7 @@ namespace platform {

if( (adc_buf != nullptr) && (adc_buf->size() < buffer_size) )
{
adc_buf->push_back(convert());
adc_buf->push_back(ADC_Conversion_Result);
}

else
Expand Down

0 comments on commit 565dfa9

Please sign in to comment.