
#ifndef __IRQHANDLER_H__
#define __IRQHANDLER_H__

#include <string.h>
#include "ES8P508x.h"
#include "lib_config.h"

extern uint8_t g_wbuf[8];
extern uint8_t g_rbuf[8];
uint32_t recv_cnt;
uint32_t send_cnt;

union byteconvert_t
{
    uint8_t  u8data[4];
    uint16_t u16data;
    uint32_t u32data;
} byteconv;

/************ÖÐ¶Ïº¯ÊýÉùÃ÷***********/
void    NMI_IRQHandler(void);
void    HardFault_IRQHandler(void);
void    SVC_IRQHandler(void);
void    PendSV_IRQHandler(void);
void    SysTick_IRQHandler(void);


#endif

