Prusa MINI Firmware overview
|
#define TCP_SYN
Definition: tcp.h:73
err_t tcpip_callback_with_block(tcpip_callback_fn function, void *ctx, u8_t block)
Definition: tcpip.c:234
#define MIB2_STATS_NETIF_ADD(n, x, val)
Definition: snmp.h:140
#define S16_F
Definition: arch.h:146
#define TCP_ACK
Definition: tcp.h:76
#define lwip_ntohs(x)
Definition: def.h:76
const uint8_t O_EXCL
Definition: SdBaseFile.h:64
#define ip_addr_cmp(addr1, addr2)
Definition: ip_addr.h:316
u16_t recved
Definition: slipif.c:100
#define NETIF_FLAG_UP
Definition: netif.h:78
u16_t len
Definition: pbuf.h:159
#define IP6H_PLEN_SET(hdr, plen)
Definition: ip6.h:161
#define SYS_ARCH_UNPROTECT(lev)
Definition: sys.h:403
int16_t s16_t
Definition: arch.h:122
#define PACK_STRUCT_BEGIN
Definition: arch.h:242
#define PBUF_FLAG_LLBCAST
Definition: pbuf.h:135
bool error
Definition: auto_build.py:637
#define ETHADDR32_COPY(dst, src)
Definition: ethernet.h:155
#define IP_IS_V6_VAL(ipaddr)
Definition: ip_addr.h:294
#define PBUF_LINK_ENCAPSULATION_HLEN
Definition: opt.h:1364
#define SLIP_SIO_SPEED(sio_fd)
Definition: slipif.c:87
ip4_addr_t ipaddr
Definition: lwip.c:73
#define LL_IP6_MULTICAST_ADDR_0
Definition: ethernet.h:149
Definition: ethernet.h:124
#define LWIP_ASSERT(message, assertion)
Definition: debug.h:116
#define MIB2_STATS_NETIF_INC(n, x)
Definition: snmp.h:139
u16_t i
Definition: slipif.c:100
#define IP6H_HOPLIM_SET(hdr, hl)
Definition: ip6.h:163
#define PBUF_LINK_HLEN
Definition: opt.h:1355
#define IN_CLASSC_NET
Definition: inet.h:105
Definition: tcpip_priv.h:97
#define SIZEOF_ETH_HDR
Definition: ethernet.h:84
#define SLIPIF_THREAD_PRIO
Definition: opt.h:1599
uint16_t u16_t
Definition: arch.h:121
png_const_structrp png_const_inforp int * unit
Definition: png.h:2161
#define LWIP_ARRAYSIZE(x)
Definition: def.h:58
netif_input_fn input
Definition: netif.h:244
#define ntohs(x)
Definition: def.h:109
u16_t tot_len
Definition: pbuf.h:156
void * sio_fd_t
Definition: sio.h:48
void netif_remove(struct netif *netif)
Definition: netif.c:377
uint8_t type
Definition: UsbCore.h:184
#define NETIF_FLAG_ETHARP
Definition: netif.h:91
#define LWIP_MEMPOOL_INIT(name)
Definition: memp.h:117
u32_t sys_jiffies(void)
Returns the current time in milliseconds when LWIP_TIMERS == 1 and NO_SYS == 1.
Definition: ethernetif.c:606
#define SLIP_ESC
Definition: slipif.c:73
#define LOWPAN6_DEBUG
Definition: lowpan6_opts.h:67
#define ETHARP_STATS_INC(x)
Definition: stats.h:376
#define IPH_ID_SET(hdr, id)
Definition: ip4.h:116
u8_t hwaddr[NETIF_MAX_HWADDR_LEN]
Definition: netif.h:303
uint8_t data[8]
Definition: masstorage.h:49
uint32_t u32_t
Definition: arch.h:123
void * state
Definition: netif.h:279
err_t pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len)
Definition: pbuf.c:1149
uint8_t i
Definition: screen_test_graph.c:72
const uint8_t O_RDONLY
Definition: SdBaseFile.h:54
struct pbuf * next
Definition: pbuf.h:144
#define PP_NTOHL(x)
Definition: def.h:82
static err_t slipif_output(struct netif *netif, struct pbuf *p)
Definition: slipif.c:116
#define LINK_STATS_INC(x)
Definition: stats.h:384
static volatile fsensor_t state
Definition: filament_sensor.c:23
u8_t pbuf_free(struct pbuf *p)
Definition: pbuf.c:715
#define LL_IP4_MULTICAST_ADDR_1
Definition: ethernet.h:145
#define LWIP_6LOWPAN_NUM_CONTEXTS
Definition: lowpan6_opts.h:51
sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, int stacksize, int prio)
Definition: sys_arch.c:376
void kill(PGM_P const lcd_error, PGM_P const lcd_component, const bool steppers_off)
Definition: Marlin.cpp:718
#define SYS_ARCH_PROTECT(lev)
Definition: sys.h:402
u16_t mtu
Definition: netif.h:299
#define LWIP_DBG_TRACE
Definition: debug.h:83
struct ip_globals ip_data
#define A(CODE)
Definition: macros.h:75
#define IP6H_NEXTH_SET(hdr, nexth)
Definition: ip6.h:162
png_const_structrp png_const_inforp int png_fixed_point * width
Definition: png.h:2161
u8_t flags
Definition: netif.h:305
#define SLIP_DEBUG
Definition: opt.h:2821
#define SLIP_END
Definition: slipif.c:72
#define SLIP_ESC_ESC
Definition: slipif.c:75
#define PACK_STRUCT_STRUCT
Definition: arch.h:263
#define NULL
Definition: usbd_def.h:53
#define LWIP_MIN(x, y)
Definition: def.h:55
#define X16_F
Definition: arch.h:149
netif_linkoutput_fn linkoutput
Definition: netif.h:255
ip4_addr_t gw
Definition: lwip.c:75
#define htonl(x)
Definition: def.h:110
u8_t flags
Definition: pbuf.h:165
#define X8_F
Definition: arch.h:140
#define pw
Definition: screen_home.cpp:76
#define eth_addr_cmp(addr1, addr2)
Definition: ethernet.h:164
#define LL_IP4_MULTICAST_ADDR_2
Definition: ethernet.h:146
static int close(struct _reent *_r, void *pv)
Definition: gcode_file.cpp:21
u16_t pbuf_copy_partial(const struct pbuf *buf, void *dataptr, u16_t len, u16_t offset)
Definition: pbuf.c:1015
#define IPH_HL(hdr)
Definition: ip4.h:103
#define LWIP_DBG_LEVEL_SERIOUS
Definition: debug.h:57
#define LWIP_RAND()
Definition: cc.h:86
#define PBUF_POOL_BUFSIZE
Definition: opt.h:1373
#define IP_PROTO_TCP
Definition: ip.h:46
err_t slipif_init(struct netif *netif)
Definition: slipif.c:361
#define min(a, b)
Definition: wiring_constants.h:36
#define SLIPIF_THREAD_NAME
Definition: opt.h:1581
u8_t num
Definition: netif.h:309
#define IP_OFFMASK
Definition: ip4.h:85
#define lwip_ntohl(x)
Definition: def.h:78
#define ETHARP_DEBUG
Definition: opt.h:2631
struct pbuf * pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type)
Definition: pbuf.c:248
#define IP6H_HOPLIM(hdr)
Definition: ip6.h:158
pwd
Definition: auto_build.py:78
#define PBUF_FLAG_LLMCAST
Definition: pbuf.h:137
eth_type
Definition: ethernet.h:108
int32_t s32_t
Definition: arch.h:124
#define TCPH_SET_FLAG(phdr, flags)
Definition: tcp.h:90
uint8_t u8_t
Definition: arch.h:119
ip4_addr_t netmask
Definition: lwip.c:74
ip6_addr_t ip_addr_t
Definition: ip_addr.h:290
#define IN_CLASSA_NET
Definition: inet.h:93
const uint8_t O_WRONLY
Definition: SdBaseFile.h:56
Definition: ethernet.h:122
#define TCP_RST
Definition: tcp.h:74
#define SLIP_MAX_SIZE
Definition: slipif.c:79
u32_t sys_now(void)
Returns the current time in milliseconds when LWIP_TIMERS == 1 and NO_SYS == 1.
Definition: ethernetif.c:616
#define API_EXPR_REF(expr)
Definition: tcpip_priv.h:88
#define TCPH_UNSET_FLAG(phdr, flags)
Definition: tcp.h:91
Definition: ethernet.h:71
void
Definition: png.h:1083
Definition: ethernet.h:120
#define MIB2_INIT_NETIF(netif, type, speed)
Definition: snmp.h:138
#define LWIP_MAX(x, y)
Definition: def.h:54
#define ip_2_ip6(ipaddr)
Definition: ip_addr.h:301
u8_t hwaddr_len
Definition: netif.h:301
void pbuf_realloc(struct pbuf *p, u16_t new_len)
Definition: pbuf.c:493
ip_addr_t current_iphdr_src
Definition: ip.h:122
err_t pbuf_copy(struct pbuf *p_to, const struct pbuf *p_from)
Definition: pbuf.c:948
#define LWIP_UNUSED_ARG(x)
Definition: arch.h:308
sio_fd_t sd
Definition: slipif.c:96
#define IPH_LEN_SET(hdr, len)
Definition: ip4.h:115
err_t tcpip_inpkt(struct pbuf *p, struct netif *inp, netif_input_fn input_fn)
Definition: tcpip.c:169
u32_t lwip_htonl(u32_t n)
Definition: def.c:90
char name[2]
Definition: netif.h:307
#define TCP_FIN
Definition: tcp.h:72
#define IPH_ID(hdr)
Definition: ip4.h:106
#define IN_CLASSC(c)
Definition: inet.h:104
u16_t lwip_htons(u16_t n)
Definition: def.c:76
#define LWIP_MEMPOOL_FREE(name, x)
Definition: memp.h:127
if(size<=((png_alloc_size_t) -1) - ob)
Definition: pngwrite.c:2176
const uint8_t O_TRUNC
Definition: SdBaseFile.h:61
while(sofevent)
Definition: USB_HOST_SHIELD.h:456
void pbuf_chain(struct pbuf *h, struct pbuf *t)
Definition: pbuf.c:882
list a
Definition: createSpeedLookupTable.py:29
#define IN_CLASSA(a)
Definition: inet.h:92
#define IN_MULTICAST(a)
Definition: inet.h:116
struct netif * next
Definition: netif.h:227
int8_t s8_t
Definition: arch.h:120
#define LWIP_MEM_ALIGN(addr)
Definition: arch.h:229
#define L(CODE)
Definition: macros.h:76
#define IPH_PROTO(hdr)
Definition: ip4.h:109
void pbuf_cat(struct pbuf *h, struct pbuf *t)
Definition: pbuf.c:840
#define LL_IP4_MULTICAST_ADDR_0
Definition: ethernet.h:144
u32_t sio_tryread(sio_fd_t fd, u8_t *data, u32_t len)
#define MEMCPY(dst, src, len)
Definition: opt.h:137
#define local
Definition: gzguts.h:115
#define U16_F
Definition: arch.h:143
slipif_recv_state
Definition: slipif.c:90
#define IN_LOOPBACKNET
Definition: inet.h:121
#define ip_addr_copy_from_ip6(dest, src)
Definition: ip_addr.h:306
#define ETHADDR16_COPY(dst, src)
Definition: ethernet.h:161
struct netif * netif_add(struct netif *netif, void *state, netif_init_fn init, netif_input_fn input)
Definition: netif.c:241
unsigned int word
Definition: wiring_constants.h:108
s8_t err_t
Definition: err.h:57
#define SYS_ARCH_DECL_PROTECT(lev)
Definition: sys.h:401
Definition: ethernet.h:58
struct pbuf * p
Definition: slipif.c:98
#define ip_addr_copy(dest, src)
Definition: ip_addr.h:305
#define SMEMCPY(dst, src, len)
Definition: opt.h:145
static int read(struct _reent *_r, void *pv, char *pc, int n)
Definition: gcode_file.cpp:9
sio_fd_t sio_open(u8_t devnum)
#define IPH_CHKSUM_SET(hdr, chksum)
Definition: ip4.h:120
static void slipif_rxbyte_input(struct netif *netif, u8_t c)
Definition: slipif.c:310
#define IN_CLASSA_NSHIFT
Definition: inet.h:94
struct pbuf * q
Definition: slipif.c:98
#define IPH_OFFSET(hdr)
Definition: ip4.h:107
#define SIZEOF_VLAN_HDR
Definition: ethernet.h:102
void netif_set_link_down(struct netif *netif)
Definition: netif.c:760
u32_t sio_read(sio_fd_t fd, u8_t *data, u32_t len)
static status_t status
Definition: filament_sensor.c:37
struct pbuf * pbuf_dechain(struct pbuf *p)
Definition: pbuf.c:899
#define LL_IP6_MULTICAST_ADDR_1
Definition: ethernet.h:150
#define IP6_HLEN
Definition: ip6.h:62
#define LWIP_MEMPOOL_DECLARE(name, num, size, desc)
Definition: memp.h:95
ip_addr_t current_iphdr_dest
Definition: ip.h:124
Definition: ethernet.h:110
#define LWIP_DBG_LEVEL_WARNING
Definition: debug.h:55
#define IPH_LEN(hdr)
Definition: ip4.h:105
void * mem_malloc(mem_size_t size)
Definition: mem.c:603
u8_t pbuf_header(struct pbuf *p, s16_t header_size_increment)
Definition: pbuf.c:665
#define TCP_PSH
Definition: tcp.h:75
int ZEXPORT deflate(z_streamp strm, int flush)
Definition: deflate.c:763
#define LWIP_IPV4
Definition: opt.h:640
#define TCP_URG
Definition: tcp.h:77
#define PACK_STRUCT_END
Definition: arch.h:251
#define IPH_PROTO_SET(hdr, proto)
Definition: ip4.h:119
#define TCPH_HDRLEN(phdr)
Definition: tcp.h:83
#define IN_BADCLASS(a)
Definition: inet.h:119
#define IN_CLASSB_NET
Definition: inet.h:99
int
Definition: createSpeedLookupTable.py:15
void netif_set_link_up(struct netif *netif)
Definition: netif.c:735
#define SLIPIF_THREAD_STACKSIZE
Definition: opt.h:1590
void sio_send(u8_t c, sio_fd_t fd)
#define PACK_STRUCT_FIELD(x)
Definition: arch.h:273
#define MEMP_NUM_PPP_PCB
Definition: ppp_opts.h:80
args
Definition: createSpeedLookupTable.py:17
Definition: ethernet.h:118
#define PP_HTONL(x)
Definition: def.h:81
png_uint_32 length
Definition: png.c:2247
void mem_free(void *rmem)
Definition: mem.c:419
u8_t state
Definition: slipif.c:99
Definition: inftrees.h:24
#define IP6H_TC(hdr)
Definition: ip6.h:153
#define VLAN_ID(vlan_hdr)
Definition: ethernet.h:103
#define ETH_HWADDR_LEN
Definition: ethernet.h:50
static struct pbuf * slipif_rxbyte(struct netif *netif, u8_t c)
Definition: slipif.c:207
void slipif_poll(struct netif *netif)
Definition: slipif.c:427
png_structrp int mode
Definition: png.h:1139
Definition: ethernet.h:93
uint8_t byte
Definition: wiring_constants.h:112
#define SLIP_ESC_END
Definition: slipif.c:74
list b
Definition: createSpeedLookupTable.py:30
const uint8_t O_RDWR
Definition: SdBaseFile.h:57
#define LWIP_DEBUGF(debug, message)
Definition: debug.h:164
void idle()
Definition: Marlin.cpp:629
#define TCPH_FLAGS(phdr)
Definition: tcp.h:84
#define LWIP_MEMPOOL_PROTOTYPE(name)
Definition: memp.h:67
Definition: ethernet.h:112
#define IN_CLASSB(b)
Definition: inet.h:98
#define LWIP_MEMPOOL_ALLOC(name)
Definition: memp.h:122
static int write(struct _reent *_r, void *pv, const char *pc, int n)
Definition: gcode_file.cpp:17
#define UDP_HLEN
Definition: udp.h:46
#define PPPOL2TP_AUTH_SUPPORT
Definition: ppp_opts.h:58
#define IP6H_NEXTH(hdr)
Definition: ip6.h:156
err_t tcpip_api_call(tcpip_api_call_fn fn, struct tcpip_api_call_data *call)
Definition: tcpip.c:365
void * payload
Definition: pbuf.h:147
#define IP6H_FL(hdr)
Definition: ip6.h:154
#define IP_GET_TYPE(ipaddr)
Definition: ip_addr.h:300
#define LWIP_DNS
Definition: opt.h:1011
#define const
Definition: zconf.h:230
#define PP_HTONS(x)
Definition: def.h:79
#define NETIF_FLAG_BROADCAST
Definition: netif.h:81
#define bit(b)
Definition: wiring_constants.h:96
#define IP6H_VTCFL_SET(hdr, v, tc, fl)
Definition: ip6.h:160
#define IP6_NEXTH_UDP
Definition: ip6.h:66
const uint8_t O_CREAT
Definition: SdBaseFile.h:63
uint8_t info[12]
Definition: masstorage.h:54