I would like to write a state machine library function that will require some MSP hardware (ie timer, UART). Can someone tell me when you create a library where within the project do you set up the ISRs and configure the hardware required? Does it get set up within it's own c file or as part of the same file?
I am new to creating libraries. I guess I envision three files.
HWConfiguration.c
ISR.c
state machine.c
All compile to state machine.lib
Any comments on the appropriate way to do this would be appreciated.....
thanks