mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
arch/arm/src/imxrt/imxrt_enet.c: Fix a warning about imxrt_calcethcrc() being defined, but not used.
This commit is contained in:
@@ -1471,7 +1471,7 @@ static int imxrt_txavail(struct net_driver_s *dev)
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if defined(CONFIG_NET_IGMP) || defined(CONFIG_NET_ICMPv6)
|
#ifdef CONFIG_NET_IGMP
|
||||||
static uint32_t imxrt_calcethcrc(const uint8_t *data, size_t length)
|
static uint32_t imxrt_calcethcrc(const uint8_t *data, size_t length)
|
||||||
{
|
{
|
||||||
uint32_t crc = 0xFFFFFFFFU;
|
uint32_t crc = 0xFFFFFFFFU;
|
||||||
|
|||||||
@@ -788,7 +788,7 @@ static void sam_dfll_configure(const struct sam_dfll_config_s *config)
|
|||||||
regval32 = getreg32(SAM_OSCCTRL_DFLLVAL);
|
regval32 = getreg32(SAM_OSCCTRL_DFLLVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Writing to the DFLLVAL will force it to re-syncrhonize */
|
/* Writing to the DFLLVAL will force it to re-synchronize */
|
||||||
|
|
||||||
putreg32(regval32, SAM_OSCCTRL_DFLLVAL);
|
putreg32(regval32, SAM_OSCCTRL_DFLLVAL);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user