ioLibrary for Cortex M series
Macros | Functions | Variables
wizplatform.c File Reference

Platform Specific Source File - For W5500 Evaluation Board. More...

#include "common/common.h"
Include dependency graph for wizplatform.c:

Go to the source code of this file.

Macros

#define USART1_RX_INTERRUPT   VAL_DISABLE
 
#define USART2_RX_INTERRUPT   VAL_DISABLE
 
#define SYSTICK_HZ   1000
 
#define U0RX_BUF_SIZE   16
 
#define U1RX_BUF_SIZE   16
 

Functions

void SysTickIntHandler (void)
 
void USART0_IRQHandler (void)
 
void USART1_IRQHandler (void)
 
int8_t platform_init (usart_param *up)
 
void wizchip_HW_reset (void)
 
void Delay_us (uint8_t time_us)
 
void Delay_ms (uint16_t time_ms)
 
void Delay_tick (uint32_t tick)
 
uint32_t wizpf_get_systick (void)
 
uint32_t wizpf_tick_conv (uint8_t istick2sec, uint32_t tickorsec)
 
int32_t wizpf_tick_elapse (uint32_t tick)
 
int8_t wizpf_spi_init (wizpf_spi spi)
 
int8_t wizpf_led_set (wizpf_led led, uint8_t action)
 
int8_t wizpf_led_get (wizpf_led led)
 
void wizpf_led_trap (uint8_t repeat)
 
void wizpf_wizchip_cris_enter ()
 
void wizpf_wizchip_cris_exit ()
 
void wizpf_wizchip_select ()
 
void wizpf_wizchip_deselect ()
 
void wizpf_wizchip_spi_writebyte (uint8_t wb)
 
uint8_t wizpf_wizchip_spi_readbyte ()
 
int32_t wizpf_putchar (int32_t ch, wizpf_usart usart)
 
int32_t wizpf_getchar (wizpf_usart usart)
 
int32_t wizpf_getcharNB (wizpf_usart usart)
 

Variables

uint32_t msTicks = 0
 
uint8_t u0rx_buf [U0RX_BUF_SIZE]
 
uint16_t u0rx_wr =0
 
uint16_t u0rx_rd =0
 
uint8_t u1rx_buf [U1RX_BUF_SIZE]
 
uint16_t u1rx_wr =0
 
uint16_t u1rx_rd =0
 

Detailed Description

Platform Specific Source File - For W5500 Evaluation Board.

Version
1.0
Date
2013/02/22
Revision
2013/02/22 - 1.0 Release
Author
EunKyoung

Copyright (C) 2013 WIZnet. All rights reserved.

Definition in file wizplatform.c.

Macro Definition Documentation

#define USART1_RX_INTERRUPT   VAL_DISABLE

Definition at line 15 of file wizplatform.c.

#define USART2_RX_INTERRUPT   VAL_DISABLE

Definition at line 16 of file wizplatform.c.

#define SYSTICK_HZ   1000

Definition at line 17 of file wizplatform.c.

Referenced by wizpf_tick_conv().

#define U0RX_BUF_SIZE   16

Definition at line 29 of file wizplatform.c.

Referenced by USART0_IRQHandler(), wizpf_getchar(), and wizpf_getcharNB().

#define U1RX_BUF_SIZE   16

Definition at line 51 of file wizplatform.c.

Referenced by USART1_IRQHandler(), wizpf_getchar(), and wizpf_getcharNB().

Function Documentation

void SysTickIntHandler ( void  )

Definition at line 21 of file wizplatform.c.

References msTicks.

void USART0_IRQHandler ( void  )

Definition at line 32 of file wizplatform.c.

References u0rx_buf, U0RX_BUF_SIZE, u0rx_rd, and u0rx_wr.

Referenced by platform_init().

void USART1_IRQHandler ( void  )

Definition at line 54 of file wizplatform.c.

References u1rx_buf, U1RX_BUF_SIZE, u1rx_rd, and u1rx_wr.

Referenced by platform_init().

int8_t platform_init ( usart_param up)
void wizchip_HW_reset ( void  )

Definition at line 157 of file wizplatform.c.

References Delay_ms(), and Delay_us().

Referenced by platform_init().

void Delay_us ( uint8_t  time_us)

Definition at line 167 of file wizplatform.c.

Referenced by Delay_ms(), and wizchip_HW_reset().

void Delay_ms ( uint16_t  time_ms)

Definition at line 182 of file wizplatform.c.

References Delay_us().

Referenced by wizchip_HW_reset(), and wizpf_led_trap().

void Delay_tick ( uint32_t  tick)

Definition at line 195 of file wizplatform.c.

References msTicks.

uint32_t wizpf_get_systick ( void  )

Definition at line 203 of file wizplatform.c.

References msTicks.

Referenced by alarm_set(), TCPReSendNB(), and wizpf_tick_elapse().

uint32_t wizpf_tick_conv ( uint8_t  istick2sec,
uint32_t  tickorsec 
)

Definition at line 208 of file wizplatform.c.

References SYSTICK_HZ.

int32_t wizpf_tick_elapse ( uint32_t  tick)

Definition at line 214 of file wizplatform.c.

References wizpf_get_systick().

Referenced by alarm_run(), and TCPReSendNB().

Variable Documentation

uint32_t msTicks = 0

Definition at line 20 of file wizplatform.c.

Referenced by Delay_tick(), SysTickIntHandler(), and wizpf_get_systick().

uint8_t u0rx_buf[U0RX_BUF_SIZE]

Definition at line 30 of file wizplatform.c.

Referenced by USART0_IRQHandler(), wizpf_getchar(), and wizpf_getcharNB().

uint16_t u0rx_wr =0

Definition at line 31 of file wizplatform.c.

Referenced by USART0_IRQHandler(), wizpf_getchar(), and wizpf_getcharNB().

uint16_t u0rx_rd =0

Definition at line 31 of file wizplatform.c.

Referenced by USART0_IRQHandler(), wizpf_getchar(), and wizpf_getcharNB().

uint8_t u1rx_buf[U1RX_BUF_SIZE]

Definition at line 52 of file wizplatform.c.

Referenced by USART1_IRQHandler(), wizpf_getchar(), and wizpf_getcharNB().

uint16_t u1rx_wr =0

Definition at line 53 of file wizplatform.c.

Referenced by USART1_IRQHandler(), wizpf_getchar(), and wizpf_getcharNB().

uint16_t u1rx_rd =0

Definition at line 53 of file wizplatform.c.

Referenced by USART1_IRQHandler(), wizpf_getchar(), and wizpf_getcharNB().