Fixed misconfiguration of UART pins in the RT-360ADUCM360-ADICUP360/main.c

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13112 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Rocco Marco Guglielmi 2019-10-17 08:08:13 +00:00
parent 95baefba25
commit 25f3600e71
1 changed files with 2 additions and 2 deletions

View File

@ -65,8 +65,8 @@ int main(void) {
* P0.1(TX) and P0.2(RX) are routed to UART0.
*/
sdStart(&SD0, NULL);
palSetPadMode(GP0, 1, PAL_MODE_MULTIPLEXER(3));
palSetPadMode(GP0, 2, PAL_MODE_MULTIPLEXER(3));
palSetPadMode(GP0, 1, PAL_MODE_MULTIPLEXER(3) | PAL_ADUCM_PUL_PULLUP);
palSetPadMode(GP0, 2, PAL_MODE_MULTIPLEXER(3) | PAL_ADUCM_PUL_PULLUP);
/*
* Normal main() thread activity, in this demo it does nothing except