5. Peripherals and Examples
The table below lists the driver files and the example count of every peripheral and functional module in Nsing.N32H49x_Library.1.2.0; click a module name to jump to its section. The supported parts, development environment, and wiring of each example are given by the readme.txt in its directory.
| Peripheral / Category | Examples | Main driver files |
|---|---|---|
| ADC | 12 | n32h49x_adc.h / n32h49x_adc.c |
| ALGO | 1 | n32h49x_algo_lib/ (Keil .lib / GCC .a) |
| CORDIC | 3 | n32h49x_cordic.h / n32h49x_cordic.c |
| Cortex-M4F | 3 | CMSIS Core |
| CRC | 2 | n32h49x_crc.h / n32h49x_crc.c |
| DAC | 5 | n32h49x_dac.h / n32h49x_dac.c |
| DMA | 2 | n32h49x_dma.h / n32h49x_dma.c |
| DSMU | 3 | n32h49x_dsmu.h / n32h49x_dsmu.c |
| DVP | 1 | n32h49x_dvp.h / n32h49x_dvp.c |
| ETH | 12 | n32h49x_eth.h / n32h49x_eth.c |
| EXTI | 1 | n32h49x_exti.h / n32h49x_exti.c |
| FDCAN | 6 | n32h49x_fdcan.h / n32h49x_fdcan.c |
| FEMC | 5 | n32h49x_femc.h / n32h49x_femc.c |
| Flash | 6 | n32h49x_flash.h / n32h49x_flash.c |
| GPIO | 2 | n32h49x_gpio.h / n32h49x_gpio.c |
| I2C | 12 | n32h49x_i2c.h / n32h49x_i2c.c |
| I2S | 4 | n32h49x_spi.h / n32h49x_spi.c |
| IWDG | 1 | n32h49x_iwdg.h / n32h49x_iwdg.c |
| LPTIM | 5 | n32h49x_lptim.h / n32h49x_lptim.c |
| NVIC | 3 | misc.h / misc.c |
| PWR | 4 | n32h49x_pwr.h / n32h49x_pwr.c |
| RCC | 1 | n32h49x_rcc.h / n32h49x_rcc.c |
| RTC | 7 | n32h49x_rtc.h / n32h49x_rtc.c |
| SDIO | 1 | n32h49x_sdio.h / n32h49x_sdio.c |
| SDRAM | 2 | n32h49x_sdram.h / n32h49x_sdram.c |
| SPI | 8 | n32h49x_spi.h / n32h49x_spi.c |
| TIM | 21 | n32h49x_tim.h / n32h49x_tim.c |
| USART | 16 | n32h49x_usart.h / n32h49x_usart.c |
| USBFSD | 12 | firmware/n32h49x_usbfsd_driver/ (standalone driver directory, not a standard peripheral driver) |
| USBHS | 16 | firmware/n32h49x_usbhs_driver/ (contains the driver, device and host directories) |
| VREFBUF | 1 | n32h49x_vrefbuf.h / n32h49x_vrefbuf.c |
| WWDG | 1 | n32h49x_wwdg.h / n32h49x_wwdg.c |
| XSPI | 3 | n32h49x_xspi.h / n32h49x_xspi.c |
| XSPI_V2 | 2 | n32h49x_xspi_v2.h / n32h49x_xspi_v2.c |
| DBG | No standalone demo | n32h49x_dbg.h / n32h49x_dbg.c |
Examples are counted as entries that contain an MDK-ARM or EWARM build project, 184 in total. Grouping directories such as USART/485, USART/LIN, USART/IrDA_Tx&Rx, USBHS/USBHS_Device, USBHS/USBHS_Host, and USBHS/USBHS_Dual_Role contain no project themselves;
their sub-projects each carry their own description file and are counted separately. The DBG driver module has no standalone example project. I2S and SPI share n32h49x_spi.h, and the I2S section covers the functions prefixed with I2S_;
the NVIC category corresponds to misc.h, and the XSPI_V2 category corresponds to n32h49x_xspi_v2.h / n32h49x_xspi_v2.c in the standard peripheral drivers. The four categories ALGO, Cortex-M4F, USBFSD, and USBHS do not use the standard peripheral drivers under n32h49x_std_periph_driver/, and their API sections state where the interfaces come from.