timerutil.cpp
1 /* 2 Copyright Frank Bösing, 2017 3 4 This file is part of Teensy64. 5 6 Teensy64 is free software: you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation, either version 3 of the License, or 9 (at your option) any later version. 10 11 Teensy64 is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with Teensy64. If not, see <http://www.gnu.org/licenses/>. 18 19 Diese Datei ist Teil von Teensy64. 20 21 Teensy64 ist Freie Software: Sie können es unter den Bedingungen 22 der GNU General Public License, wie von der Free Software Foundation, 23 Version 3 der Lizenz oder (nach Ihrer Wahl) jeder späteren 24 veröffentlichten Version, weiterverbreiten und/oder modifizieren. 25 26 Teensy64 wird in der Hoffnung, dass es nützlich sein wird, aber 27 OHNE JEDE GEWÄHRLEISTUNG, bereitgestellt; sogar ohne die implizite 28 Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK. 29 Siehe die GNU General Public License für weitere Details. 30 31 Sie sollten eine Kopie der GNU General Public License zusammen mit diesem 32 Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>. 33 34 */ 35 #include <stdint.h> 36 #include <stdio.h> 37 #include "timerutil.h" 38 39 //Attention, don't use WFI-instruction - the CPU does not count cycles during sleep 40 void enableCycleCounter(void) { 41 42 } 43 44 extern "C" volatile uint32_t systick_millis_count; 45 void mySystick_isr(void) { systick_millis_count++; } 46 void myUnused_isr(void) {}; 47 48 void disableEventResponder(void) { 49 } 50 51 static float setDACFreq(float freq) { 52 53 return (float)0; 54 } 55 56 float setAudioSampleFreq(float freq) { 57 int f=0; 58 return f; 59 } 60 61 void setAudioOff(void) { 62 63 } 64 65 void setAudioOn(void) { 66 67 } 68 69 void listInterrupts() { 70 71 }