Skip to content

Commit

Permalink
add features to f37
Browse files Browse the repository at this point in the history
  • Loading branch information
victorandrehc committed Mar 24, 2023
1 parent f3599fe commit 4b31b0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/modm/platform/adc/stm32/adc.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ public:
Event5 = 0x5u,
Event6 = 0x6u,
Event7 = 0x7u,
%% if target["family"] not in ["f1", "f3"]
Event8 = 0x8u,
Event9 = 0x9u,
Event10 = 0xAu,
Expand All @@ -165,6 +166,7 @@ public:
Event13 = 0xDu,
Event14 = 0xEu,
Event15 = 0xFu,
%% endif
};

/**
Expand Down Expand Up @@ -264,7 +266,6 @@ public:
static inline uint16_t
getValue();


static inline uint16_t
readChannel(Channel channel);

Expand Down Expand Up @@ -310,14 +311,12 @@ public:
static inline Channel
getChannel();


static inline void
enableFreeRunningMode();

static inline void
disableFreeRunningMode();


static inline void
setLeftAdjustResult();

Expand Down
2 changes: 0 additions & 2 deletions src/modm/platform/adc/stm32/adc_impl.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ modm::platform::Adc{{ id }}::enableRegularConversionExternalTrigger(
}
%%endif

%% if target["family"] not in ["f3"]
void
modm::platform::Adc{{ id }}::enableDmaMode()
{
Expand All @@ -306,7 +305,6 @@ modm::platform::Adc{{ id }}::getAdcEnabled()
return (ADC{{ per }}->CR2 & ADC_CR2_ADON) == ADC_CR2_ADON;
}

%%endif
%% if target["family"] not in ["f1","f3"]
void
modm::platform::Adc{{ id }}::enableDMASelection()
Expand Down

0 comments on commit 4b31b0b

Please sign in to comment.