Skip to content
Snippets Groups Projects
Commit 2845e9fc authored by Federico's avatar Federico
Browse files

Fix stm32f1 serial port when using XRAM

parent a996381b
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,11 @@ const unsigned int MAIN_STACK_SIZE=4*1024;
const unsigned int defaultSerial=1;
const unsigned int defaultSerialSpeed=115200;
const bool defaultSerialFlowctrl=false;
#ifndef __ENABLE_XRAM
const bool defaultSerialDma=true;
#else //__ENABLE_XRAM
const bool defaultSerialDma=false; //STM32F1 can't DMA to XRAM due to HW bug
#endif //__ENABLE_XRAM
// Default serial 1 pins (uncomment when using serial 1)
using defaultSerialTxPin = Gpio<GPIOA_BASE,9>;
using defaultSerialRxPin = Gpio<GPIOA_BASE,10>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment