Issue 83 fixed

Problem with wav files played twice when loading a model
Different EEPROM format for Expos/DRs on ARM
Issue 102 fixed
This commit is contained in:
bsongis
2012-08-21 20:54:48 +00:00
parent 223c0645e8
commit bf2055e1ad
9 changed files with 107 additions and 67 deletions
+36
View File
@@ -729,6 +729,42 @@ template<class t> FORCEINLINE t limit(t mi, t x, t ma) { return min(max(mi,x),ma
uint16_t isqrt32(uint32_t n);
#endif
#if defined(PCBARM)
#if !defined(SIMU)
extern "C" {
#include <CoOS.h>
}
#endif
extern OS_MutexID mixerMutex;
inline void pauseMixerCalculations()
{
CoEnterMutexSection(mixerMutex);
}
inline void resumeMixerCalculations()
{
CoLeaveMutexSection(mixerMutex);
}
#elif defined(PCBV4)
inline void pauseMixerCalculations()
{
cli();
TIMSK5 &= ~(1<<OCIE5A);
sei();
}
inline void resumeMixerCalculations()
{
cli();
TIMSK5 |= (1<<OCIE5A);
sei();
}
#else
#define pauseMixerCalculations()
#define resumeMixerCalculations()
#endif
/// Markiert einen EEPROM-Bereich als dirty. der Bereich wird dann in
/// eeCheck ins EEPROM zurueckgeschrieben.
void eeWriteBlockCmp(const void *i_pointer_ram, uint16_t i_pointer_eeprom, size_t size);