Hi folks
Q1)
I wish to use the asm function DELAY_US(A). I have copied and added the DSP2802x_usDelay.asm file to my project directory, and added the below code to the PeripheralHeaderIncludes.h file:
void DSP28x_usDelay(Uint32 Count);
#define CPU_RATE 16.667L // for a 60MHz CPU clock speed (SYSCLKOUT)
// DO NOT MODIFY THIS LINE.
#define DELAY_US(A) DSP28x_usDelay(((((long double) A * 1000.0L) / (long double)CPU_RATE) - 9.0L) / 5.0L)
The code has just been copied from DSP2802x_Examples.h and DSP2802x_GlobalPrototypes.h files.
Ive copied and pasted to avoid including these files (via the DSP28x_Project.h file) as they duplicate a lot of other stuff already included by the DSP2802x_PeripheralHeaderIncludes.h file
Is this the recommended way to do this?? Is there a more correct method??
Q2)
Also what is the way to remove unused header files from a project?
For example, before the modifications mentioned above, I had been including DSP2802x_Project.h, now I am not, yet it is still shown in the projects listing of included files....
If I try to right click > Delete the file from the project listing in the Project explorere pane, the entire project is deleted from the pane and I have to re-import it.
When I do re-import it the offending header file is still there...
Many thanks
PiccoloControlSTICK F28027PT & CCS V 4.1.0.02005