mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 12:35:28 +00:00
component/esp32 : do more fix of dualcore bug
1. the cache API in romcode will access DPORT register, so protect it. 2. fix STALL spelling. 3. check dport access by non-dport access function
This commit is contained in:
@@ -95,9 +95,9 @@ void emac_reset(void)
|
||||
void emac_enable_clk(bool enable)
|
||||
{
|
||||
if (enable == true) {
|
||||
REG_SET_BIT(EMAC_CLK_EN_REG, EMAC_CLK_EN);
|
||||
DPORT_REG_SET_BIT(EMAC_CLK_EN_REG, EMAC_CLK_EN);
|
||||
} else {
|
||||
REG_CLR_BIT(EMAC_CLK_EN_REG, EMAC_CLK_EN);
|
||||
DPORT_REG_CLR_BIT(EMAC_CLK_EN_REG, EMAC_CLK_EN);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user