reform

MNT Reform: Open Source Portable Computer
Log (Feed) | Files | Refs (Tags) | README

commit 822310eca813e77d2ed5171960eaeb4aa7acf8f5
parent 13b604f8f2fa4676ba84cafe772626e1aeeacea0
Author: mntmn <lukas@mntmn.com>
Date:   Tue,  3 Nov 2020 18:10:15 +0100

reform2-lpc-fw: output charger status to imx uart, too

Diffstat:
Mreform2-lpc-fw/src/boards/reform2/board_reform2.c | 14+++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/reform2-lpc-fw/src/boards/reform2/board_reform2.c b/reform2-lpc-fw/src/boards/reform2/board_reform2.c @@ -500,14 +500,22 @@ void boardInit(void) // SPI0 connected to the main SOM (they're controller) ssp0Init(); ssp0ClockSlow(); - - LPC_GPIO->DIR[1] |= (1 << 31); - LPC_GPIO->DIR[1] |= (1 << 25); // SPI chip select LPC_GPIO->DIR[1] |= (1 << 23); LPC_GPIO->SET[1] = (1 << 23); // active low + // UART connected to i.MX8M ttymxc2 REFORM + /* Set 0.14 UART RXD */ + // this disrupts keyboard communication when main power turned off + //LPC_IOCON->PIO1_14 &= ~0x07; + //LPC_IOCON->PIO1_14 |= 0x03; + + // only send to reform, don't receive from it + /* Set 0.13 UART TXD */ + LPC_IOCON->PIO1_13 &= ~0x07; + LPC_IOCON->PIO1_13 |= 0x3; + #ifdef REF2_DEBUG sprintf(uartBuffer, "\r\nMNT Reform 2.0 MCU initialized.\r\n"); uartSend((uint8_t*)uartBuffer, strlen(uartBuffer));