thermosphere: uart refactor, now it doesn't work at all

This commit is contained in:
TuxSH
2019-07-20 23:24:16 +02:00
parent 66b047255b
commit 88382f4fc3
6 changed files with 119 additions and 46 deletions

View File

@@ -1,16 +1,9 @@
#include "utils.h"
#include "uart.h"
#include "car.h"
#include "log.h"
#include "gpio.h"
int main(void)
{
// Init uart (hardcoded atm)
gpio_configure_mode(TEGRA_GPIO(G, 0), GPIO_MODE_GPIO); // Leave UART-B as GPIO
gpio_configure_mode(TEGRA_GPIO(D, 1), GPIO_MODE_SFIO); // Change UART-C to SPIO
uart_select(UART_C); // Configure pinmux for UART-C
clkrst_reboot(CARDEVICE_UARTC); // Enable UART-C clock
uart_init(UART_C, 115200, true);
//uart_send(UART_C, "0123\n", 3);