aboutsummaryrefslogtreecommitdiffstats
path: root/testhal
diff options
context:
space:
mode:
Diffstat (limited to 'testhal')
-rw-r--r--testhal/SPC563Mxx/SPI/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/testhal/SPC563Mxx/SPI/main.c b/testhal/SPC563Mxx/SPI/main.c
index d58cb08c0..8a21eb918 100644
--- a/testhal/SPC563Mxx/SPI/main.c
+++ b/testhal/SPC563Mxx/SPI/main.c
@@ -116,6 +116,11 @@ int main(void) {
txbuf[i] = (uint8_t)i;
spiStart(&SPID2, &hs_spicfg);
+ SIU.PCR[102].R = PAL_MODE_OUTPUT_ALTERNATE(1); /* SCK */
+ SIU.PCR[103].R = PAL_MODE_OUTPUT_ALTERNATE(1); /* SIN */
+ SIU.PCR[104].R = PAL_MODE_OUTPUT_ALTERNATE(1); /* SOUT */
+ SIU.PCR[105].R = PAL_MODE_OUTPUT_ALTERNATE(1); /* PCS[0] */
+
spiExchange(&SPID2, 4, txbuf, rxbuf);
spiExchange(&SPID2, 4, txbuf, rxbuf);
spiExchange(&SPID2, 4, txbuf, rxbuf);