Updated ADICUP360 demo

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13682 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Rocco Marco Guglielmi 2020-06-02 12:55:44 +00:00
parent c709dd2a9f
commit 6740b61022
2 changed files with 8 additions and 8 deletions

View File

@ -62,11 +62,11 @@ int main(void) {
/* /*
* Activates the serial driver 0 using the driver default configuration. * Activates the serial driver 0 using the driver default configuration.
* P0.1(TX) and P0.2(RX) are routed to UART0. * P0.6(RX) and P0.7(TX) are routed to UART0.
*/ */
sdStart(&SD0, NULL); sdStart(&SD0, NULL);
palSetPadMode(GP0, 1, PAL_MODE_MULTIPLEXER(3) | PAL_ADUCM_PUL_PULLUP); palSetPadMode(GP0, 6, PAL_MODE_MULTIPLEXER(1) | PAL_ADUCM_PUL_PULLUP);
palSetPadMode(GP0, 2, PAL_MODE_MULTIPLEXER(3) | PAL_ADUCM_PUL_PULLUP); palSetPadMode(GP0, 7, PAL_MODE_MULTIPLEXER(2) | PAL_ADUCM_PUL_PULLUP);
/* /*
* Normal main() thread activity, in this demo it does nothing except * Normal main() thread activity, in this demo it does nothing except

View File

@ -10,15 +10,15 @@ The demo runs on an ADICUP360 board.
The demo flashes the two on-board LEDs using a thread, by pressing the button The demo flashes the two on-board LEDs using a thread, by pressing the button
located on the board (BOOT) the test procedure is activated with output on the located on the board (BOOT) the test procedure is activated with output on the
serial port SD0 (UART0, mapped on mBED debug COM port). serial port SD0 (UART0, mapped on the User COM port).
** Board setup ** ** Board setup **
To redirect P0.1 and P0.2 to the mBED debug COM port it is required to setup To redirect P0.6 and P0.7 to the User COM port it is required to setup
the switch matrix as: the switch matrix as:
- S1 -> 0 - S1 -> Don't Care
- S2 -> 1 - S2 -> 0
- S3 -> 1 - S3 -> Don't Care
- S4 -> 0 - S4 -> 0
** Build Procedure ** ** Build Procedure **