I have a problem with the correct sequence of deinitialization and subsequent initialization of Serial1, with changing the state of RX and TX pins to output with level 0
(if the state of the pins is left as it is, parasitic powering of secondary circuits connected to these pins occurs).
Current code to DeInit:
But i am found that after deinit pins and execute Serial1.end() device not going to sleep mode.
Its going after udrv_serial_deinit (SERIAL_UART1), but after this command, repeated activation of serialport (execution init pins and Serial1.begin(…)) not successful and communication not work.
Can you please provide right code sequence to reactivate serialport ?
Inside of udrv_serial_deinit() after runing fund_circular_queue_reset() quue was setted to zero, but after udrv_serial_init() this queue not initialised and stay zero.
After disable reset this queue all work as expected