Merge pull request #319 from haukepetersen/avsextrem-smb380-fix

Fixed old ktimer references in the avsextrem smb380 driver
This commit is contained in:
Christian Mehlis 2013-11-12 06:03:38 -08:00
commit 69d4f9a4bd

View File

@ -411,7 +411,7 @@ uint8_t writeRingBuff(int16_t *value)
/* measuring temperature dependent internal sample rate of SMB380 */ /* measuring temperature dependent internal sample rate of SMB380 */
if (smb380_mode == SMB380_CONTINOUS) { if (smb380_mode == SMB380_CONTINOUS) {
tickLastSample = ktimer_now(); tickLastSample = hwtimer_now();
tickCurrentSamples++; tickCurrentSamples++;
} }
@ -1050,7 +1050,7 @@ void SMB380_enableNewDataInt(void)
SMB380_ssp_read(); SMB380_ssp_read();
SMB380_Unprepare(); SMB380_Unprepare();
// measuring temperature dependent internal sample rate of SMB380 // measuring temperature dependent internal sample rate of SMB380
tickStart = ktimer_now(); tickStart = hwtimer_now();
tickCurrentSamples = 0; tickCurrentSamples = 0;
restoreIRQ(cpsr); restoreIRQ(cpsr);
} }