Fix format issues.
This commit is contained in:
parent
17cbdda13d
commit
674ded6aa5
@ -322,7 +322,7 @@ static rt_err_t nau8822_init(void)
|
||||
I2C_WriteNAU8822(48, 0x100); /* Gain value */
|
||||
I2C_WriteNAU8822(50, 0x001); /* Left DAC connected to LMIX */
|
||||
I2C_WriteNAU8822(51, 0x001); /* Right DAC connected to RMIX */
|
||||
|
||||
|
||||
I2C_WriteNAU8822(0x34, 0x13F);
|
||||
I2C_WriteNAU8822(0x35, 0x13F);
|
||||
|
||||
|
@ -1134,7 +1134,7 @@ EMAC_DESCRIPTOR_T * EMAC_RecvPktDoneWoRxTrigger(EMAC_MEMMGR_T *psMemMgr)
|
||||
/* Get Rx Frame Descriptor */
|
||||
EMAC_DESCRIPTOR_T *desc = (EMAC_DESCRIPTOR_T *)psMemMgr->psCurrentRxDesc;
|
||||
EMAC_DESCRIPTOR_T *ret = desc;
|
||||
|
||||
|
||||
/* Restore descriptor link list and data pointer they will be overwrite if time stamp enabled */
|
||||
desc->u32Data = desc->u32Backup1;
|
||||
desc->u32Next = desc->u32Backup2;
|
||||
|
@ -461,7 +461,7 @@ void nu_emac_pbuf_free(struct pbuf *p)
|
||||
|
||||
//rt_kprintf("%08x %08x\n",my_buf, my_buf->rx_desc);
|
||||
|
||||
/* Update RX descriptor & trigger */
|
||||
/* Update RX descriptor & trigger */
|
||||
EMAC_RxTrigger(my_buf->psMemMgr, my_buf->rx_desc);
|
||||
|
||||
memp_free_pool(my_buf->memp_rx_pool, my_buf);
|
||||
@ -483,7 +483,7 @@ static struct pbuf *nu_emac_rx(rt_device_t dev)
|
||||
nu_emac_lwip_pbuf_t my_pbuf = (nu_emac_lwip_pbuf_t)memp_malloc_pool(psNuEmac->memp_rx_pool);
|
||||
if (my_pbuf != RT_NULL)
|
||||
{
|
||||
|
||||
|
||||
my_pbuf->p.custom_free_function = nu_emac_pbuf_free;
|
||||
my_pbuf->psPktFrameDataBuf = (EMAC_FRAME_T *)pu8DataBuf;
|
||||
my_pbuf->rx_desc = cur_rx;
|
||||
|
Loading…
x
Reference in New Issue
Block a user