File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -318,11 +318,16 @@ void goToSleep(uint32_t sysTicksToSleep)
318
318
am_hal_gpio_pinconfig (PIN_QWIIC_SCL , g_AM_HAL_GPIO_DISABLE);
319
319
320
320
// If requested, disable pins 48 and 49 (UART0) to stop them back-feeding the CH340
321
- if (settings.serialTxRxDuringSleep == false )
322
- {
321
+ if (settings.serialTxRxDuringSleep == false )
322
+ {
323
323
am_hal_gpio_pinconfig (48 , g_AM_HAL_GPIO_DISABLE); // TX0
324
324
am_hal_gpio_pinconfig (49 , g_AM_HAL_GPIO_DISABLE); // RX0
325
- }
325
+ if (settings.useTxRxPinsForTerminal == true )
326
+ {
327
+ am_hal_gpio_pinconfig (12 , g_AM_HAL_GPIO_DISABLE); // TX1
328
+ am_hal_gpio_pinconfig (13 , g_AM_HAL_GPIO_DISABLE); // RX1
329
+ }
330
+ }
326
331
327
332
// Make sure PIN_POWER_LOSS is configured as an input for the WDT
328
333
pinMode (PIN_POWER_LOSS, INPUT); // BD49K30G-TL has CMOS output and does not need a pull-up
@@ -470,6 +475,7 @@ void wakeFromSleep()
470
475
pin_config (PinName (48 ), g_AM_BSP_GPIO_COM_UART_TX);
471
476
pin_config (PinName (49 ), g_AM_BSP_GPIO_COM_UART_RX);
472
477
}
478
+
473
479
474
480
// Re-enable CIPO, COPI, SCK and the chip selects but may as well leave ICM_INT disabled
475
481
pin_config (PinName (PIN_SPI_CIPO), g_AM_BSP_GPIO_IOM0_MISO);
You can’t perform that action at this time.
0 commit comments