Pico GPS Teseo I2C
|
#include <string>
#include <cstring>
#include "hardware/gpio.h"
#include <stdio.h>
#include "pico/stdlib.h"
#include <algorithm>
#include "hardware/regs/intctrl.h"
#include "hardware/uart.h"
#include <cassert>
import port_pico_reset;
Go to the source code of this file.
Macros | |
#define | MAX_SATELLITE_REPLIES 7 |
#define | UART_PORT (uart1) |
#define | UART_BAUD (9600) |
#define | UART_TX (4) |
#define | UART_RX (5) |
#define | BUFFSIZE (70 * MAX_SATELLITE_REPLIES + 60) |
#define | UART_WAITFORREPLY_MS (40) |
Functions | |
void | on_uart_rx () |
void | initialize () |
void | write (const ::std::string &s) |
void | read (::std::string &s) |
Variables | |
const size_t | NMEA_MAX_REPLIES = MAX_SATELLITE_REPLIES |
uint8_t | buf [BUFFSIZE] |
volatile bool | bWantChars |
volatile absolute_time_t | fail_at |
int | UART_IRQ = UART1_IRQ |
uint8_t * | pBuf |
#define BUFFSIZE (70 * MAX_SATELLITE_REPLIES + 60) |
Definition at line 36 of file teseo_communicate.cpp.
#define MAX_SATELLITE_REPLIES 7 |
Definition at line 25 of file teseo_communicate.cpp.
#define UART_BAUD (9600) |
Definition at line 30 of file teseo_communicate.cpp.
#define UART_PORT (uart1) |
Definition at line 29 of file teseo_communicate.cpp.
#define UART_RX (5) |
Definition at line 32 of file teseo_communicate.cpp.
#define UART_TX (4) |
Definition at line 31 of file teseo_communicate.cpp.
#define UART_WAITFORREPLY_MS (40) |
Definition at line 38 of file teseo_communicate.cpp.
|
export |
Definition at line 53 of file teseo_communicate.cpp.
void on_uart_rx | ( | ) |
Definition at line 68 of file teseo_communicate.cpp.
|
export |
Definition at line 93 of file teseo_communicate.cpp.
|
export |
Definition at line 88 of file teseo_communicate.cpp.
uint8_t buf[BUFFSIZE] |
Definition at line 46 of file teseo_communicate.cpp.
volatile bool bWantChars |
Definition at line 48 of file teseo_communicate.cpp.
volatile absolute_time_t fail_at |
Definition at line 49 of file teseo_communicate.cpp.
|
export |
Definition at line 44 of file teseo_communicate.cpp.
uint8_t* pBuf |
Definition at line 51 of file teseo_communicate.cpp.
int UART_IRQ = UART1_IRQ |
Definition at line 50 of file teseo_communicate.cpp.