8000 Add ADC 14bit support in U5 by ouoam · Pull Request #2747 · stm32duino/Arduino_Core_STM32 · GitHub
[go: up one dir, main page]

Skip to content

Add ADC 14bit support in U5 #2747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions cores/arduino/wiring_analog.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ extern "C" {
uint32_t g_anOutputPinConfigured[MAX_NB_PORT] = {0};
#endif

#if !defined(ADC_RESOLUTION_16B)
#define MAX_ADC_RESOLUTION 12
#else
#if defined(ADC_RESOLUTION_16B)
#define MAX_ADC_RESOLUTION 16
#elif defined(ADC_RESOLUTION_14B)
#define MAX_ADC_RESOLUTION 14
#else
#define MAX_ADC_RESOLUTION 12
#endif
#define MAX_PWM_RESOLUTION 16

Expand Down
Loading
0