/* Output buffer */
volatile char out_buff[SERIAL_OUT_BUFF_SIZE];
volatile uint32_t sending; /* Actual sending position in out buffer */
+ /* This lock only prevents multiple calls to serial_write() to execute simultaneously */
volatile uint32_t out_lock;
volatile uint32_t out_length; /* actual position to add in out buffer */
return length;
}
+
+
+/***************************************************************************** */
+/* UART Setup : private part : Clocks, Pins, Power and Mode */
+
struct uart_clk_cfg {
uint32_t baudrate;
uint8_t divisor_latch_lsb;
{ 0, 0, 0, 0, },
};
-/***************************************************************************** */
-/* UART Setup : private part : Clocks, Pins, Power and Mode */
-
/* UART Clock Setup */
/* Note : for both uarts we use full peripheral clock.
* With a minimum main clock of 12MHz, ths gives 12MHz/16 = 750kbauds at least