1.1 --- a/lib/init.c Tue Oct 23 21:34:54 2018 +0200
1.2 +++ b/lib/init.c Tue Oct 23 22:11:05 2018 +0200
1.3 @@ -21,10 +21,6 @@
1.4 #include "pic32_c.h"
1.5 #include "init.h"
1.6
1.7 -/* Application-specific configuration. */
1.8 -
1.9 -#include "devconfig.h"
1.10 -
1.11
1.12
1.13 /* Basic memory and pin initialisation. */
1.14 @@ -505,7 +501,7 @@
1.15
1.16 /* UART configuration. */
1.17
1.18 -void uart_init(int uart, uint32_t baudrate)
1.19 +void uart_init(int uart, int fpb, uint32_t baudrate)
1.20 {
1.21 /* FPB is configured in the devconfig.h file and set in the start.S file. */
1.22
1.23 @@ -524,7 +520,7 @@
1.24 = 12
1.25 */
1.26
1.27 - REG(UART_REG(uart, UxBRG)) = (FPB / (16 * baudrate)) - 1;
1.28 + REG(UART_REG(uart, UxBRG)) = (fpb / (16 * baudrate)) - 1;
1.29 }
1.30
1.31 /* Configure interrupts caused by the UART. */