What software/libraries are you using with the BMP085?
Adafruit..
What software/libraries are you using with the BMP085?
Adafruit..
fat16lib,
Even though it appears that you have written this specifically for the NilRTOS library, will it work with your ChiBiOS port as well?
Thanks,
Yes I designed it so a tiny bit of code will make it work with any RTOS.
You don't need to modify TwiMaster, just add a small file to the RTOS directory that redefines the two weak symbols twiMstrSignal and twiMstrWait.
Here is the Nil RTOS file:
#include <NilRTOS.h>
static SEMAPHORE_DECL(twiSem, 0);
void twiMstrSignal() {
NIL_IRQ_PROLOGUE();
nilSemSignalI(&twiSem);
NIL_IRQ_EPILOGUE();
}
void twiMstrWait() {
if (nilIsIdleThread()) {
// Can't sleep in idle thread.
while (nilSemGetCounter(&twiSem) <= 0) {}
}
nilSemWait(&twiSem);
}
The ChibiOS code should be even simpler but I haven't tested it yet.