6#define SPI_DEVICE_CC1101 1
10#define DELAY_ESP2SERIAL 2
11#define DELAY_WRITESPI 3
14#define MAIN_MCULIBHANDLE 1
19#define USART_CONSOLE 1
20#define USART_ESP8266 2
26#include "platform-header.h"
27#include "ascii_parser.h"
28#include "ringbuffer.h"
29#include "packetbuffer.h"
30#include "fatal-error.h"
31#include "command-parser.h"
33#include "espressif/esp8266.h"
34#include "espressif/esp8266_cloud.h"
35#include "strings-common.h"
36#include "addressing.h"
37#include "command-handler.h"
41#include "decode_esp_packet.h"
42#include "build_version.h"
47#include "mculibrary.h"
48#include "loader-api.h"
54long systick_diff(
long timestamp);
55void Delay(uint32_t nTime);
56void TimingDelay_Decrement(
void);
60int open_serial(
int num,
int baudrate);
61void set_baudrate(
int num,
int baudrate);
62int write_serial_char(
int handle,
char c);
63int write_serial_string(
int handle,
const char *txt);
64int write_serial_line(
int handle,
const char *txt);
65void serial_fail_port(
int port);
66void serial_ok_port(
int port);
68void restart_app(
void) __attribute__((no_instrument_function));
71void reset_delay_counter(
int n);
72int get_delay_counter(
int n);
75int startsWith(
const char *c1,
const char *c2);
77void gpio_init(
byte remap);
78void gpio_configure_pins(
byte remap);
79void gpioa_on(
int pin);
80void gpioa_off(
int pin);
81void gpiob_on(
int pin);
82void gpiob_off(
int pin);
83void gpioc_on(
int pin);
84void gpioc_off(
int pin);
87void gpio_enable_irq_on_pb15();
88void gpio_disable_irq_on_pb15();
90byte is_gpiob_irq_triggered(
int num);
91void clear_gpiob_irq(
int num);
93byte get_status_of_gpio_b(
int num);
106long get_seconds_since_boot() __attribute__((no_instrument_function));
108void set_relay(
int relay,
int state,
int timeout);
115void UserSysTick_Handler(
void);
119void setquietflag(
byte x);
121void print_to_usb(
int x);
123void print(const
char *txt);
127void *get_flash_config_addr();
128void *get_flash_user_config_addr();
132int send_buf_via_device(
int dev, const
byte *buf,
int size);
134uint16_t console_get_byte();
135int console_get_line(
char *outbuf,
int bufsize);
137void console_add_byte(uint8_t b);
142void *sc_realloc(
void *ptr,
size_t size);
143void sc_free(
void *ptr);
145void process_terminal_input();
146void print_program_status();
void print_boot_info()
print startup information
void process_command(struct command *com)
command is parsed, now execute it
definitions of routing table structures
definitions of routing table structures