mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-05 14:37:02 +00:00
New pin definitions for serial port Nucleo-64 STM32F446RE board, Arduino header
This commit is contained in:
parent
ed13addd3d
commit
1ce71bcd62
2 changed files with 34 additions and 9 deletions
|
|
@ -543,7 +543,11 @@ void CIO::interrupt()
|
|||
m_txBuffer.get(sample, control);
|
||||
|
||||
// Send the value to the DAC
|
||||
#if defined(STM32F4_NUCLEO) && defined(STM32F4_NUCLEO_ARDUINO_HEADER)
|
||||
DAC_SetChannel2Data(DAC_Align_12b_R, sample);
|
||||
#else
|
||||
DAC_SetChannel1Data(DAC_Align_12b_R, sample);
|
||||
#endif
|
||||
|
||||
// Read value from ADC1 and ADC2
|
||||
if ((ADC_GetFlagStatus(ADC1, ADC_FLAG_EOC) == RESET)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue