Other Parts Discussed in Thread: SYSCONFIG,
Tool/software:
Hello,
I am working on a project which is interfacing with some external devices using I2C, PWM and ADC (to name a few peripherals). I have been doing some pre-development investigation of the MSPM0 SDK (version 2.5.1.0) and found there are two types of drivers that I can use with my project: DriverLib and TI-Drivers. Given that TI-Drivers seems more abstracted than using the drivers within DriverLib I plan on integrating it with my project. The issue I am facing is that TI-Drivers only has the following modules: ADC, DMA, GPIO, I2C, SPI and UART. Unfortunately, since I need to use the PWM peripheral, I need to also use the DriverLib. This means my project will use both driver libraries.
With that in mind, I had the following question:
- Is there a problem with integrating both drivers into my project?
I also noticed that the way you configure the system when using a DriverLib only project and a TI-Drivers project is different. DriverLib utilizes the SysConfig tool to configure the chip peripherals (clock, gpio, etc). TI-Driver does not have something similar. It has pre-made ti_drivers_config.c and ti_msp_dl_config.c files within the example project.
With that in mind, I had the following question(s):
- How do you configure the peripherals for a TI-Drivers project? This includes clock speed, pins, peripherals, etc.
- How do you use a project if you want to use both DriverLib and TI-Drivers? Does SysConfig still work?
My project will require the use of the following peripherals:
- UART
- ADC
- GPIO
- I2C
- PWM
- Watchdog
Thank you for your time and your help.