I am working with the ex08_ringio code, specifically the dsp side of this code. To begin, I am trying to insert this snippet of code from the Eric & Scott Sys/Bios Workshop:
//-----------------------------------------------------------------------------
// USTIMER_delay()
//
// LogicPD BSL fxn - re-written for a few BSL.c files that need it.
// The original USTIMER_init() is not used because it is NOT BIOS compatible
// and took both timers so that BIOS PRDs would not work. This is a
// workaround.
//
// If you need a "delay" in this app, call this routine with the number
// of usec's of delay you need. It is approximate - not exact.
// value for time<300 is perfect for 1us. We padded it some.
//-----------------------------------------------------------------------------
void USTIMER_delay(uint32_t usec) {
volatile int32_t i, start, time, current;
for (i=0; i<usec; i++) {
start = Timestamp_get32();
time = 0;
while (time < 350) {
current = Timestamp_get32();
time = current - start;
}
}
}
I have also added:
#include <xdc/runtime/Timestamp.h>
Now at link time I am receiving:
undefined first referenced
symbol in file
--------- ----------------
xdc_runtime_Timestamp_get32__E bin/debug/obj/main_dsp.oe674
error: unresolved symbols remain
I cannot seem to locate which library to include in my build at this point. Which library do I need? A grep shows multiple libraries which contain this symbol.