Part Number: MOTORWARE
Tool/software: Code Composer Studio
Hello,
I am new to TI MCUs and starting to develop a project which will utilize MotorWare modules. TI is encouraging to use their HAL module instead of direct calls to the hardware, so I'd like to comply. From what I understood, this means that any usage of peripheral devices implies changing HAL source files from "C:/ti/Motorware/XX/sw" directory. There are however some issues I find with this approach:
- Will the future update of MotorWare software not overwrite my changes in those files?
- What if I want to create another project that will use the same modules? It will have to utilize the same files, adapted to a different project!
- Say that I want to open the project on another computer. Instead of just copying the project files, I will have to copy the whole "sw" directory as well - what a complication. And what if I can't overwrite already existing files (ex. that are used by someone else)?
A question to more experienced developers - am I right with my concerns and how do you walk around this?
I've been thinking about copying the files that shall be changed to my project's location, but the #include dependencies may make it troublesome. I could possibly copy the whole "sw" directory, but it gives me plenty of files I might not even use. Is there no smarter solution?