#ifndef __CHIP__H_
#define __CHIP__H_

#include "gd32f4xx.h"

#define lpc_wdt_reset() do { FWDGT_CTL = FWDGT_KEY_RELOAD; } while(0)

#define __dmb() asm volatile ("dmb" ::: "memory")   /* data memory barrier, e.g. before DMA */

#include "chip_pins.h"


#define LUSB_DD_DATA_SIZE_MAX   (4096*4)

#endif /* __CHIP__H_ */
