Skip to content

Commit

Permalink
DPORT register access change
Browse files Browse the repository at this point in the history
  • Loading branch information
Constantino Schillebeeckx committed Jul 8, 2017
1 parent 4b1326c commit 8264c54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/ws2812.c
Expand Up @@ -126,8 +126,8 @@ void ws2812_handleInterrupt(void *arg)

void ws2812_init(int gpioNum)
{
SET_PERI_REG_MASK(DPORT_PERIP_CLK_EN_REG, DPORT_RMT_CLK_EN);
CLEAR_PERI_REG_MASK(DPORT_PERIP_RST_EN_REG, DPORT_RMT_RST);
DPORT_SET_PERI_REG_MASK(DPORT_PERIP_CLK_EN_REG, DPORT_RMT_CLK_EN);
DPORT_CLEAR_PERI_REG_MASK(DPORT_PERIP_RST_EN_REG, DPORT_RMT_RST);

PIN_FUNC_SELECT(GPIO_PIN_MUX_REG[gpioNum], 2);
gpio_matrix_out(gpioNum, RMT_SIG_OUT0_IDX + RMTCHANNEL, 0, 0);
Expand Down

0 comments on commit 8264c54

Please sign in to comment.