25 lines
599 B
C
25 lines
599 B
C
#include "adc.h"
|
|
#include "derivative.h"
|
|
#include "sstv.h"
|
|
#include "systick.h"
|
|
#include "tftlcd.h"
|
|
#include "uart.h"
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
int main(void) {
|
|
// Initialize
|
|
uart_init(UART_MSG, 9600); // Initialize UART1 with PC
|
|
uart_rie_enable(UART_MSG); // Enable UART1 receive interrupt
|
|
LCD_Init(); // Initialize LCD
|
|
adc0_Init(); // Initialize ADC0
|
|
|
|
uart_printf(UART_MSG, "System Clock: %lu\r\n", CORCLK);
|
|
uart_printf(UART_MSG, "Bus Clock: %lu\r\n", BUSCLK);
|
|
|
|
fADC = 1;
|
|
for (;;) {
|
|
decode_sstv();
|
|
}
|
|
}
|