We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cab21d commit e2c7d87Copy full SHA for e2c7d87
2 files changed
firmware/chipignite/polysat/include/uart.h
@@ -9,6 +9,10 @@
9
10
#include <stdint.h>
11
12
+#define UART_BAUD_RATE 9600
13
+#define CRYSTAL_CLK 10000000
14
+#define UART_CLKDIV ((CRYSTAL_CLK / UART_BAUD_RATE))
15
+
16
/* Begin typedef declarations */
17
18
/* Begin function prototype declarations */
firmware/chipignite/polysat/src/uart.c
@@ -14,7 +14,7 @@
*/
void uart_init(void) {
// Configure the UART
- reg_uart_clkdiv = 10;
+ reg_uart_clkdiv = UART_CLKDIV;
reg_uart_enable = 1;
19
20
// Clear any pending interrupts
0 commit comments