Embedded TCP/IP stack  3.9.4
CPU-specific library API

Detailed Description

The CPU-specific library provides commonly used platform dependent functions. Most of these functions are not used by the FNET, but can be useful for an application.

Macros

#define FNET_CPU_ADDR_TO_INSTRUCTION(addr)
 Adjust value of the instruction address. More...
 

Typedefs

typedef fnet_uint32_t fnet_cpu_irq_desc_t
 IRQ status descriptor returned by the fnet_cpu_irq_disable() function. Actually it corresponds to the interrupt level mask value. More...
 

Functions

void fnet_cpu_reset (void)
 Initiates software reset. More...
 
fnet_cpu_irq_desc_t fnet_cpu_irq_disable (void)
 Disables all interrupts. More...
 
void fnet_cpu_irq_enable (fnet_cpu_irq_desc_t irq_desc)
 Enables interrupts. More...
 
void fnet_cpu_serial_putchar (fnet_index_t port_number, fnet_char_t character)
 Writes character to the serial port. More...
 
fnet_int32_t fnet_cpu_serial_getchar (fnet_index_t port_number)
 Reads character from the serial port. More...
 
void fnet_cpu_serial_init (fnet_index_t port_number, fnet_uint32_t baud_rate)
 Initializes the serial port. More...
 
void fnet_cpu_cache_invalidate (void)
 Invalidates CPU-cache memory. More...
 
fnet_return_t fnet_cpu_flash_erase (void *flash_addr, fnet_size_t bytes)
 Erases the specified range of the Flash memory. More...
 
fnet_return_t fnet_cpu_flash_write (fnet_uint8_t *dest, const fnet_uint8_t *data)
 Writes the specified data to the Flash memory. More...
 
void fnet_cpu_isr (void)
 CPU-specific FNET interrupt service routine. More...
 

© 2005-2017 by Andrey Butok. http://fnet.sourceforge.net