ioLibrary for Cortex M series
|
Library Common Header File. This header file influence on all library area directly. More...
#include "xhw_types.h"
#include "xcore.h"
#include "xhw_memmap.h"
#include "xsysctl.h"
#include "xhw_spi.h"
#include "xgpio.h"
#include "xuart.h"
#include "xspi.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdint.h>
#include "common/util.h"
#include "ethernet/wizchip_conf.h"
#include "ethernet/netctrl.h"
#include "ethernet/socket.h"
#include "ethernet/sockutil.h"
#include "host/Nuvoton_M051/Cookie/cookie_evb.h"
#include "host/wizplatform.h"
Go to the source code of this file.
Macros | |
#define | RET_FAIL 1 |
#define | RET_OK 0 |
#define | RET_NOK -1 |
#define | VAL_HIGH 1 |
#define | VAL_LOW 0 |
#define | VAL_TOG 2 |
#define | VAL_ON 1 |
#define | VAL_OFF 0 |
#define | VAL_SET 1 |
#define | VAL_CLEAR 0 |
#define | VAL_TRUE 1 |
#define | VAL_FALSE 0 |
#define | VAL_ENABLE 1 |
#define | VAL_DISABLE 0 |
#define | VAL_NONE -1 |
#define | VAL_INVALID -2 |
#define | WIZ_LOG_LEVEL 2 |
#define | ERR(fmt) do { printf("### ERROR ### %s(%d): "fmt"\r\n", __FUNCTION__, __LINE__); } while(0) |
#define | ERRA(fmt,...) do { printf("### ERROR ### %s(%d): "fmt"\r\n", __FUNCTION__, __LINE__, __VA_ARGS__); } while(0) |
#define | ERRF(fmt) do { printf("### ERROR ### %s(%d): "fmt, __FUNCTION__, __LINE__); } while(0) |
#define | ERRFA(fmt,...) do { printf("### ERROR ### %s(%d): "fmt, __FUNCTION__, __LINE__, __VA_ARGS__); } while(0) |
#define | LOG(fmt) do { printf(fmt"\r\n"); } while(0) |
#define | LOGA(fmt,...) do { printf(fmt"\r\n", __VA_ARGS__); } while(0) |
#define | LOGF(fmt) do { printf(fmt); } while(0) |
#define | LOGFA(fmt,...) do { printf(fmt, __VA_ARGS__); } while(0) |
#define | DBG(fmt) |
#define | DBGA(fmt,...) |
#define | DBGF(fmt) |
#define | DBGFA(fmt,...) |
#define | DBGCRTC(cond_v, fmt) |
#define | DBGCRTCA(cond_v, fmt,...) |
#define | DBGDUMP(data_p, len_v) |
#define | DBGFUNC(func_p) |
#define | NL1 printf("\r\n") |
#define | NL2 printf("\r\n\r\n") |
#define | NL3 printf("\r\n\r\n\r\n") |
Library Common Header File. This header file influence on all library area directly.
Definition in file common.h.
#define RET_OK 0 |
Definition at line 45 of file common.h.
Referenced by alarm_set(), ip_check(), mac_check(), network_init(), platform_init(), port_check(), sockwatch_chk(), sockwatch_close(), sockwatch_clr(), sockwatch_open(), sockwatch_run(), sockwatch_set(), str_check(), TCPClientOpen(), TCPClose(), TCPCloseCHK(), TCPCloseNB(), TCPClsRcvCHK(), TCPCltOpenNB(), TCPConnChk(), TCPDisconnect(), TCPReSend(), TCPReSendNB(), TCPSend(), TCPSendNB(), TCPServerOpen(), UDPClose(), UDPOpen(), UDPSend(), UDPSendCHK(), wizpf_led_set(), and wizpf_spi_init().
#define RET_NOK -1 |
Definition at line 46 of file common.h.
Referenced by alarm_set(), digit_length(), ip_check(), mac_check(), network_init(), platform_init(), port_check(), sockwatch_chk(), sockwatch_close(), sockwatch_clr(), sockwatch_open(), sockwatch_set(), str_check(), TCPDisconnect(), wizpf_getchar(), wizpf_getcharNB(), wizpf_led_get(), wizpf_led_set(), wizpf_putchar(), and wizpf_spi_init().
#define VAL_TOG 2 |
Definition at line 51 of file common.h.
Referenced by wizpf_led_set().
#define VAL_ON 1 |
Definition at line 52 of file common.h.
Referenced by platform_init(), wizpf_led_set(), and wizpf_led_trap().
#define VAL_OFF 0 |
Definition at line 53 of file common.h.
Referenced by wizpf_led_set(), and wizpf_led_trap().
#define ERR | ( | fmt) | do { printf("### ERROR ### %s(%d): "fmt"\r\n", __FUNCTION__, __LINE__); } while(0) |
Definition at line 82 of file common.h.
Referenced by loopback_udp(), platform_init(), TCPCltOpenNB(), TCPDisconnect(), TCPRecv(), TCPSendNB(), UDPRecv(), UDPSendNB(), wizpf_wizchip_cris_enter(), and wizpf_wizchip_cris_exit().
#define ERRA | ( | fmt, | |
... | |||
) | do { printf("### ERROR ### %s(%d): "fmt"\r\n", __FUNCTION__, __LINE__, __VA_ARGS__); } while(0) |
Definition at line 83 of file common.h.
Referenced by alarm_set(), ClsNetInfo(), GetTCPSocketStatus(), GetUDPSocketStatus(), sockwatch_close(), sockwatch_clr(), sockwatch_open(), sockwatch_set(), TCPCloseCHK(), TCPCloseNB(), TCPClsRcvCHK(), TCPCltOpenNB(), TCPConnChk(), TCPDisconnect(), TCPRecv(), TCPReSendNB(), TCPSendNB(), TCPServerOpen(), UDPClose(), UDPOpen(), UDPRecv(), and UDPSendNB().
#define ERRF | ( | fmt) | do { printf("### ERROR ### %s(%d): "fmt, __FUNCTION__, __LINE__); } while(0) |
#define ERRFA | ( | fmt, | |
... | |||
) | do { printf("### ERROR ### %s(%d): "fmt, __FUNCTION__, __LINE__, __VA_ARGS__); } while(0) |
#define LOG | ( | fmt) | do { printf(fmt"\r\n"); } while(0) |
Definition at line 103 of file common.h.
Referenced by loopback_tcpc(), loopback_tcps(), network_disp(), and print_dump().
#define LOGA | ( | fmt, | |
... | |||
) | do { printf(fmt"\r\n", __VA_ARGS__); } while(0) |
Definition at line 104 of file common.h.
Referenced by loopback_tcpc(), loopback_tcps(), loopback_udp(), network_disp(), and print_dump().
#define LOGFA | ( | fmt, | |
... | |||
) | do { printf(fmt, __VA_ARGS__); } while(0) |
Definition at line 106 of file common.h.
Referenced by print_dump().
#define DBG | ( | fmt) |
Definition at line 129 of file common.h.
Referenced by loopback_tcpc(), loopback_tcps(), loopback_udp(), TCPClientOpen(), TCPClose(), TCPCloseCHK(), TCPCloseNB(), TCPCltOpenNB(), TCPDisconnect(), TCPReSendNB(), TCPSendCHK(), TCPSendNB(), TCPServerOpen(), UDPClose(), UDPOpen(), UDPRecv(), UDPSendCHK(), and UDPSendNB().
#define DBGA | ( | fmt, | |
... | |||
) |
Definition at line 130 of file common.h.
Referenced by alarm_chk(), alarm_del(), ClsNetInfo(), network_init(), sockwatch_close(), sockwatch_clr(), sockwatch_open(), sockwatch_set(), TCPCltOpenNB(), TCPServerOpen(), UDPOpen(), UDPRecv(), and UDPSendNB().
#define NL1 printf("\r\n") |
Definition at line 148 of file common.h.
Referenced by print_dump().