11 #include "../firmware.h"
13 #include "inc/hw_memmap.h"
14 #include "inc/hw_types.h"
16 #include "driverlib/gpio.h"
17 #include "driverlib/pin_map.h"
18 #include "driverlib/sysctl.h"
23 #define GPS_SERIAL UART_GNSS
24 #define CAM_SERIAL UART_CAMERA
26 #define DEBUG_SERIAL GPS_SERIAL
34 unsigned int UART_getw(
long int serial)
40 unsigned int UART_getw4(
long int serial)
43 return c1|(c2<<8)|(c3<<16)|(c4<<24);
47 void packet_send (
char *start_addr,
unsigned int len)
59 for (
char *addr=start_addr;addr<start_addr+len;addr++)
61 unsigned int s_addr= (int) start_addr;
99 for (
unsigned int wdt_kicker=100000;wdt_kicker>0;wdt_kicker--)
107 char *ad=UART_getw4(DEBUG_SERIAL);
108 unsigned int len=UART_getw(DEBUG_SERIAL);
void UART_init(uint8_t uart_num, uint32_t baudrate)
bool UART_getc_nonblocking(uint8_t uart_num, char *c)
char UART_getc(uint8_t uart_num)
int main(void)
Runs all module tests.
void UART_puts(uint8_t uart_num, char *str)
void UART_putc(uint8_t uart_num, char c)