[Nuvoton] Fix IP initialization sequence
Better IP initialization sequence:
1. Configure IP pins
2. Select IP clock source and then enable it
3. Reset the IP (SYS_ResetModule)

NOTE1: IP reset takes effect regardless of IP clock. So it doesn't matter if
       IP clock enable is before IP reset.
NOTE2: Non-configured pins may disturb IP's state, so IP pinout first and then
       IP reset.
NOTE3: IP reset at the end of IP initialization sequence can cover unexpected
       situation.
ls
1 parent 560fe33 commit fef138a3cda1b347fb5820ed3c17435daa562c06
@Chun-Chieh Li Chun-Chieh Li authored on 25 Jul 2019
Showing 47 changed files
View
targets/TARGET_NUVOTON/TARGET_M2351/analogin_api.c
View
targets/TARGET_NUVOTON/TARGET_M2351/analogout_api.c
View
targets/TARGET_NUVOTON/TARGET_M2351/dma_api.c
View
targets/TARGET_NUVOTON/TARGET_M2351/i2c_api.c
View
targets/TARGET_NUVOTON/TARGET_M2351/lp_ticker.c
View
targets/TARGET_NUVOTON/TARGET_M2351/pwmout_api.c
View
targets/TARGET_NUVOTON/TARGET_M2351/serial_api.c
View
targets/TARGET_NUVOTON/TARGET_M2351/spi_api.c
View
targets/TARGET_NUVOTON/TARGET_M2351/us_ticker.c
View
targets/TARGET_NUVOTON/TARGET_M451/analogin_api.c
View
targets/TARGET_NUVOTON/TARGET_M451/analogout_api.c
View
targets/TARGET_NUVOTON/TARGET_M451/can_api.c
View
targets/TARGET_NUVOTON/TARGET_M451/dma_api.c
View
targets/TARGET_NUVOTON/TARGET_M451/i2c_api.c
View
targets/TARGET_NUVOTON/TARGET_M451/lp_ticker.c
View
targets/TARGET_NUVOTON/TARGET_M451/pwmout_api.c
View
targets/TARGET_NUVOTON/TARGET_M451/serial_api.c
View
targets/TARGET_NUVOTON/TARGET_M451/spi_api.c
View
targets/TARGET_NUVOTON/TARGET_M451/us_ticker.c
View
targets/TARGET_NUVOTON/TARGET_M480/analogin_api.c
View
targets/TARGET_NUVOTON/TARGET_M480/analogout_api.c
View
targets/TARGET_NUVOTON/TARGET_M480/can_api.c
View
targets/TARGET_NUVOTON/TARGET_M480/dma_api.c
View
targets/TARGET_NUVOTON/TARGET_M480/i2c_api.c
View
targets/TARGET_NUVOTON/TARGET_M480/lp_ticker.c
View
targets/TARGET_NUVOTON/TARGET_M480/pwmout_api.c
View
targets/TARGET_NUVOTON/TARGET_M480/serial_api.c
View
targets/TARGET_NUVOTON/TARGET_M480/spi_api.c
View
targets/TARGET_NUVOTON/TARGET_M480/us_ticker.c
View
targets/TARGET_NUVOTON/TARGET_NANO100/analogin_api.c
View
targets/TARGET_NUVOTON/TARGET_NANO100/analogout_api.c
View
targets/TARGET_NUVOTON/TARGET_NANO100/dma_api.c
View
targets/TARGET_NUVOTON/TARGET_NANO100/i2c_api.c
View
targets/TARGET_NUVOTON/TARGET_NANO100/lp_ticker.c
View
targets/TARGET_NUVOTON/TARGET_NANO100/pwmout_api.c
View
targets/TARGET_NUVOTON/TARGET_NANO100/serial_api.c
View
targets/TARGET_NUVOTON/TARGET_NANO100/spi_api.c
View
targets/TARGET_NUVOTON/TARGET_NANO100/us_ticker.c
View
targets/TARGET_NUVOTON/TARGET_NUC472/analogin_api.c
View
targets/TARGET_NUVOTON/TARGET_NUC472/can_api.c
View
targets/TARGET_NUVOTON/TARGET_NUC472/dma_api.c
View
targets/TARGET_NUVOTON/TARGET_NUC472/i2c_api.c
View
targets/TARGET_NUVOTON/TARGET_NUC472/lp_ticker.c
View
targets/TARGET_NUVOTON/TARGET_NUC472/pwmout_api.c
View
targets/TARGET_NUVOTON/TARGET_NUC472/serial_api.c
View
targets/TARGET_NUVOTON/TARGET_NUC472/spi_api.c
View
targets/TARGET_NUVOTON/TARGET_NUC472/us_ticker.c