Repair compilability of code

This commit is contained in:
2020-01-17 10:13:01 +01:00
parent a0c215e954
commit a93f257f2e
14 changed files with 73 additions and 33 deletions
+4 -4
View File
@@ -14,9 +14,9 @@
*/
#include <aarch64/aarch64.h>
#include <aarch64/bcm2837.h>
#include <drivers/soc/bcm2837/bcm2837.h>
#include "UARTMini.h"
#include "uart_mini.h"
int
@@ -49,9 +49,9 @@ UARTMini_init(void)
AArch64_setReg32(GPFSEL1, sel);
AArch64_setReg32(GPPUD, 0);
AArch64_delay(150);
AArch64_idle(150);
AArch64_setReg32(GPPUDCLK0, (1 << 14) | (1 << 15));
AArch64_delay(150);
AArch64_idle(150);
AArch64_setReg32(GPPUDCLK0, 0);
/* Enable TX and RX */