提交 674ded6a 编写于 作者: W Wayne Lin

Fix format issues.

上级 17cbdda1
...@@ -322,7 +322,7 @@ static rt_err_t nau8822_init(void) ...@@ -322,7 +322,7 @@ static rt_err_t nau8822_init(void)
I2C_WriteNAU8822(48, 0x100); /* Gain value */ I2C_WriteNAU8822(48, 0x100); /* Gain value */
I2C_WriteNAU8822(50, 0x001); /* Left DAC connected to LMIX */ I2C_WriteNAU8822(50, 0x001); /* Left DAC connected to LMIX */
I2C_WriteNAU8822(51, 0x001); /* Right DAC connected to RMIX */ I2C_WriteNAU8822(51, 0x001); /* Right DAC connected to RMIX */
I2C_WriteNAU8822(0x34, 0x13F); I2C_WriteNAU8822(0x34, 0x13F);
I2C_WriteNAU8822(0x35, 0x13F); I2C_WriteNAU8822(0x35, 0x13F);
......
...@@ -1134,7 +1134,7 @@ EMAC_DESCRIPTOR_T * EMAC_RecvPktDoneWoRxTrigger(EMAC_MEMMGR_T *psMemMgr) ...@@ -1134,7 +1134,7 @@ EMAC_DESCRIPTOR_T * EMAC_RecvPktDoneWoRxTrigger(EMAC_MEMMGR_T *psMemMgr)
/* Get Rx Frame Descriptor */ /* Get Rx Frame Descriptor */
EMAC_DESCRIPTOR_T *desc = (EMAC_DESCRIPTOR_T *)psMemMgr->psCurrentRxDesc; EMAC_DESCRIPTOR_T *desc = (EMAC_DESCRIPTOR_T *)psMemMgr->psCurrentRxDesc;
EMAC_DESCRIPTOR_T *ret = desc; EMAC_DESCRIPTOR_T *ret = desc;
/* Restore descriptor link list and data pointer they will be overwrite if time stamp enabled */ /* Restore descriptor link list and data pointer they will be overwrite if time stamp enabled */
desc->u32Data = desc->u32Backup1; desc->u32Data = desc->u32Backup1;
desc->u32Next = desc->u32Backup2; desc->u32Next = desc->u32Backup2;
......
...@@ -461,7 +461,7 @@ void nu_emac_pbuf_free(struct pbuf *p) ...@@ -461,7 +461,7 @@ void nu_emac_pbuf_free(struct pbuf *p)
//rt_kprintf("%08x %08x\n",my_buf, my_buf->rx_desc); //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); EMAC_RxTrigger(my_buf->psMemMgr, my_buf->rx_desc);
memp_free_pool(my_buf->memp_rx_pool, my_buf); memp_free_pool(my_buf->memp_rx_pool, my_buf);
...@@ -483,7 +483,7 @@ static struct pbuf *nu_emac_rx(rt_device_t dev) ...@@ -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); nu_emac_lwip_pbuf_t my_pbuf = (nu_emac_lwip_pbuf_t)memp_malloc_pool(psNuEmac->memp_rx_pool);
if (my_pbuf != RT_NULL) if (my_pbuf != RT_NULL)
{ {
my_pbuf->p.custom_free_function = nu_emac_pbuf_free; my_pbuf->p.custom_free_function = nu_emac_pbuf_free;
my_pbuf->psPktFrameDataBuf = (EMAC_FRAME_T *)pu8DataBuf; my_pbuf->psPktFrameDataBuf = (EMAC_FRAME_T *)pu8DataBuf;
my_pbuf->rx_desc = cur_rx; my_pbuf->rx_desc = cur_rx;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册