Share source code between projects. | Cypress Semiconductor
Share source code between projects.
Given two projects, one using UART, the other using SPI.
80% of the C programming for these projects is identical, the remaining code is dependent on the communication means.
What is best practice for maintaining the common code in one place and sharing it between the projects?