不韋 呂 / UIT_ADDA

Dependents:   UIT2_MovingAverage UIT2_AllpassReverb UIT2_CombReverb UIT2_FIR_LPF_Symmetry ... more

Revision:
8:f933fcd30408
Parent:
7:6a9c1633dd90
Child:
9:72fe42a4323c
--- a/ScfClockTim3.hpp	Tue Nov 11 10:04:00 2014 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-//--------------------------------------------------------
-// Clock generator for SCF using PwmOut class
-//      Output pin: D9 (PC7) ------ TIM3 CH2
-// 2014/09/30, Copyright (c) 2014 MIKAMI, Naoki
-//--------------------------------------------------------
-
-#ifndef SCF_CLOCK_TIM3_HPP
-#define SCF_CLOCK_TIM3_HPP
-
-#include "mbed.h"
- 
-namespace Mikami
-{
-    void ScfClockTim3(uint32_t clock)
-    {
-        PwmOut clockSCF_(D9);
-        
-        TIM3->ARR =  SystemCoreClock/clock - 1;
-        TIM3->PSC = 0;
-        // Set capture/compare register 2
-        TIM3->CCR2 = (TIM3->ARR + 1)/2;    
-    }
-}
-#endif  // SCF_CLOCK_TIM3_HPP
\ No newline at end of file