Embedded TCP/IP stack
4.1.0
|
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) |
Converts address value to the instruction. More... | |
#define | FNET_CPU_INSTRUCTION_TO_ADDR(addr) |
Converts instruction to address value. More... | |
#define | FNET_CPU_NETIF_NUMBER |
Number of supported network interfaces. 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-2018 by Andrey Butok. http://fnet.sourceforge.net