I'm looking at log_uart_init in the nRF5_SDK_11.0.0-2.alpha and wondering if it would make more sense to allow the application writer to pass in a baud rate.
I'm looking at log_uart_init in the nRF5_SDK_11.0.0-2.alpha and wondering if it would make more sense to allow the application writer to pass in a baud rate.
Hi Richard,
Thanks for the suggestion. I assume that the developer want to simplify the configuration for the nrf_log.c library. But it should be clearly documented, I think.
I guess it's somewhat philosophical. I don't think it's unreasonable for an application writer to have to specify what speed they want a serial port to run at. In fact, it's probably worse to take that away from them and put it in a library that will be shared among potentially many applications. Now when one application writer wants to change his UART speed he changes the library, affecting all other applications as soon as they rebuild.