ether2ser 0.1.0
Ethernet <-> synchronous V.24 bridge firmware for RP2040 + W5500
Loading...
Searching...
No Matches
main.c File Reference
#include <stdint.h>
#include <stdio.h>
#include "pico/stdio.h"
#include "pico/time.h"
#include "socket.h"
#include "w5500.h"
#include "wizchip_conf.h"
#include "wizchip_qspi_pio.h"
#include "wizchip_spi.h"
Include dependency graph for examples/w55_udp_echo/main.c:

Go to the source code of this file.

Macros

#define UDP_SOCK   0
 
#define UDP_PORT   6969
 

Functions

static void w5500_init_no_linkwait (void)
 
static void configure_network (void)
 
static void run_udp_echo_server (void)
 
int main (void)
 

Variables

wiznet_spi_handle_t spi_handle
 

Macro Definition Documentation

◆ UDP_PORT

#define UDP_PORT   6969

Definition at line 33 of file examples/w55_udp_echo/main.c.

◆ UDP_SOCK

#define UDP_SOCK   0

Definition at line 32 of file examples/w55_udp_echo/main.c.

Function Documentation

◆ configure_network()

static void configure_network ( void  )
static

Definition at line 55 of file examples/w55_udp_echo/main.c.

Referenced by main().

Here is the caller graph for this function:

◆ main()

int main ( void  )

Definition at line 127 of file examples/w55_udp_echo/main.c.

References configure_network(), and run_udp_echo_server().

Here is the call graph for this function:

◆ run_udp_echo_server()

static void run_udp_echo_server ( void  )
static

Definition at line 69 of file examples/w55_udp_echo/main.c.

References UDP_PORT, and UDP_SOCK.

Referenced by main().

Here is the caller graph for this function:

◆ w5500_init_no_linkwait()

static void w5500_init_no_linkwait ( void  )
static

Definition at line 35 of file examples/w55_udp_echo/main.c.

Variable Documentation

◆ spi_handle

wiznet_spi_handle_t spi_handle
extern