MCUME/MCUME_pico/pico64/timerutil.cpp

71 wiersze
2.0 KiB
C++
Executable File

/*
Copyright Frank Bösing, 2017
This file is part of Teensy64.
Teensy64 is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Teensy64 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Teensy64. If not, see <http://www.gnu.org/licenses/>.
Diese Datei ist Teil von Teensy64.
Teensy64 ist Freie Software: Sie können es unter den Bedingungen
der GNU General Public License, wie von der Free Software Foundation,
Version 3 der Lizenz oder (nach Ihrer Wahl) jeder späteren
veröffentlichten Version, weiterverbreiten und/oder modifizieren.
Teensy64 wird in der Hoffnung, dass es nützlich sein wird, aber
OHNE JEDE GEWÄHRLEISTUNG, bereitgestellt; sogar ohne die implizite
Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK.
Siehe die GNU General Public License für weitere Details.
Sie sollten eine Kopie der GNU General Public License zusammen mit diesem
Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <stdio.h>
#include "timerutil.h"
//Attention, don't use WFI-instruction - the CPU does not count cycles during sleep
void enableCycleCounter(void) {
}
extern "C" volatile uint32_t systick_millis_count;
void mySystick_isr(void) { systick_millis_count++; }
void myUnused_isr(void) {};
void disableEventResponder(void) {
}
static float setDACFreq(float freq) {
return (float)0;
}
float setAudioSampleFreq(float freq) {
int f=0;
return f;
}
void setAudioOff(void) {
}
void setAudioOn(void) {
}
void listInterrupts() {
}