📄 k60-keil
字号:
/* ----------------------------------------------------------------------
* Copyright (C) 2010 ARM Limited. All rights reserved.
*
* $Date: 15. July 2011
* $Revision: V1.0.10
*
* Project: CMSIS DSP Library
* Title: arm_cfft_radix4_init_f32.c
*
* Description: Radix-4 Decimation in Frequency Floating-point CFFT & CIFFT Initialization function
*
* Target Processor: Cortex-M4/Cortex-M3/Cortex-M0
*
* Version 1.0.10 2011/7/15
* Big Endian support added and Merged M0 and M3/M4 Source code.
*
* Version 1.0.3 2010/11/29
* Re-organized the CMSIS folders and updated documentation.
*
* Version 1.0.2 2010/11/11
* Documentation updated.
*
* Version 1.0.1 2010/10/05
* Production release and review comments incorporated.
*
* Version 1.0.0 2010/09/20
* Production release and review comments incorporated.
*
* Version 0.0.5 2010/04/26
* incorporated review comments and updated with latest CMSIS layer
*
* Version 0.0.3 2010/03/10
* Initial version
* -------------------------------------------------------------------- */
#include "arm_math.h"
#include "arm_common_tables.h"
/**
* @ingroup groupTransforms
*/
/**
* @addtogroup CFFT_CIFFT
* @{
*/
/*
* @brief Floating-point Twiddle factors Table Generation
*/
/**
* \par
* Example code for Floating-point Twiddle factors Generation:
* \par
* <pre>for(i = 0; i< N; i++)
* {
* twiddleCoef[2*i]= cos(i * 2*PI/(float)N);
* twiddleCoef[2*i+1]= sin(i * 2*PI/(float)N);
* } </pre>
* \par
* where N = 1024 and PI = 3.14159265358979
* \par
* Cos and Sin values are in interleaved fashion
*
*/
static const float32_t twiddleCoef[2048] = {
1.000000000000000000f, 0.000000000000000000f,
0.999981175282601110f, 0.006135884649154475f,
0.999924701839144500f, 0.012271538285719925f,
0.999830581795823400f, 0.018406729905804820f,
0.999698818696204250f, 0.024541228522912288f,
0.999529417501093140f, 0.030674803176636626f,
0.999322384588349540f, 0.036807222941358832f,
0.999077727752645360f, 0.042938256934940820f,
0.998795456205172410f, 0.049067674327418015f,
0.998475580573294770f, 0.055195244349689934f,
0.998118112900149180f, 0.061320736302208578f,
0.997723066644191640f, 0.067443919563664051f,
0.997290456678690210f, 0.073564563599667426f,
0.996820299291165670f, 0.079682437971430126f,
0.996312612182778000f, 0.085797312344439894f,
0.995767414467659820f, 0.091908956497132724f,
0.995184726672196930f, 0.098017140329560604f,
0.994564570734255420f, 0.104121633872054590f,
0.993906970002356060f, 0.110222207293883060f,
0.993211949234794500f, 0.116318630911904750f,
0.992479534598709970f, 0.122410675199216200f,
0.991709753669099530f, 0.128498110793793170f,
0.990902635427780010f, 0.134580708507126170f,
0.990058210262297120f, 0.140658239332849210f,
0.989176509964781010f, 0.146730474455361750f,
0.988257567730749460f, 0.152797185258443440f,
0.987301418157858430f, 0.158858143333861450f,
0.986308097244598670f, 0.164913120489969890f,
0.985277642388941220f, 0.170961888760301220f,
0.984210092386929030f, 0.177004220412148750f,
0.983105487431216290f, 0.183039887955140950f,
0.981963869109555240f, 0.189068664149806190f,
0.980785280403230430f, 0.195090322016128250f,
0.979569765685440520f, 0.201104634842091900f,
0.978317370719627650f, 0.207111376192218560f,
0.977028142657754390f, 0.213110319916091360f,
0.975702130038528570f, 0.219101240156869800f,
0.974339382785575860f, 0.225083911359792830f,
0.972939952205560180f, 0.231058108280671110f,
0.971503890986251780f, 0.237023605994367200f,
0.970031253194543970f, 0.242980179903263870f,
0.968522094274417380f, 0.248927605745720150f,
0.966976471044852070f, 0.254865659604514570f,
0.965394441697689400f, 0.260794117915275510f,
0.963776065795439840f, 0.266712757474898370f,
0.962121404269041580f, 0.272621355449948980f,
0.960430519415565790f, 0.278519689385053060f,
0.958703474895871600f, 0.284407537211271880f,
0.956940335732208820f, 0.290284677254462330f,
0.955141168305770780f, 0.296150888243623790f,
0.953306040354193860f, 0.302005949319228080f,
0.951435020969008340f, 0.307849640041534870f,
0.949528180593036670f, 0.313681740398891520f,
0.947585591017741090f, 0.319502030816015690f,
0.945607325380521280f, 0.325310292162262930f,
0.943593458161960390f, 0.331106305759876430f,
0.941544065183020810f, 0.336889853392220050f,
0.939459223602189920f, 0.342660717311994380f,
0.937339011912574960f, 0.348418680249434560f,
0.935183509938947610f, 0.354163525420490340f,
0.932992798834738960f, 0.359895036534988110f,
0.930766961078983710f, 0.365612997804773850f,
0.928506080473215590f, 0.371317193951837540f,
0.926210242138311380f, 0.377007410216418260f,
0.923879532511286740f, 0.382683432365089780f,
0.921514039342042010f, 0.388345046698826250f,
0.919113851690057770f, 0.393992040061048100f,
0.916679059921042700f, 0.399624199845646790f,
0.914209755703530690f, 0.405241314004989860f,
0.911706032005429880f, 0.410843171057903910f,
0.909167983090522380f, 0.416429560097637150f,
0.906595704514915330f, 0.422000270799799680f,
0.903989293123443340f, 0.427555093430282080f,
0.901348847046022030f, 0.433093818853151960f,
0.898674465693953820f, 0.438616238538527660f,
0.895966249756185220f, 0.444122144570429200f,
0.893224301195515320f, 0.449611329654606540f,
0.890448723244757880f, 0.455083587126343840f,
0.887639620402853930f, 0.460538710958240010f,
0.884797098430937790f, 0.465976495767966180f,
0.881921264348355050f, 0.471396736825997640f,
0.879012226428633530f, 0.476799230063322090f,
0.876070094195406600f, 0.482183772079122720f,
0.873094978418290090f, 0.487550160148436000f,
0.870086991108711460f, 0.492898192229784040f,
0.867046245515692650f, 0.498227666972781870f,
0.863972856121586810f, 0.503538383725717580f,
0.860866938637767310f, 0.508830142543106990f,
0.857728610000272120f, 0.514102744193221660f,
0.854557988365400530f, 0.519355990165589640f,
0.851355193105265200f, 0.524589682678468950f,
0.848120344803297230f, 0.529803624686294610f,
0.844853565249707120f, 0.534997619887097150f,
0.841554977436898440f, 0.540171472729892850f,
0.838224705554838080f, 0.545324988422046460f,
0.834862874986380010f, 0.550457972936604810f,
0.831469612302545240f, 0.555570233019602180f,
0.828045045257755800f, 0.560661576197336030f,
0.824589302785025290f, 0.565731810783613120f,
0.821102514991104650f, 0.570780745886967260f,
0.817584813151583710f, 0.575808191417845340f,
0.814036329705948410f, 0.580813958095764530f,
0.810457198252594770f, 0.585797857456438860f,
0.806847553543799330f, 0.590759701858874160f,
0.803207531480644940f, 0.595699304492433360f,
0.799537269107905010f, 0.600616479383868970f,
0.795836904608883570f, 0.605511041404325550f,
0.792106577300212390f, 0.610382806276309480f,
0.788346427626606340f, 0.615231590580626820f,
0.784556597155575240f, 0.620057211763289100f,
0.780737228572094490f, 0.624859488142386340f,
0.776888465673232440f, 0.629638238914926980f,
0.773010453362736990f, 0.634393284163645490f,
0.769103337645579700f, 0.639124444863775730f,
0.765167265622458960f, 0.643831542889791390f,
0.761202385484261780f, 0.648514401022112440f,
0.757208846506484570f, 0.653172842953776760f,
0.753186799043612520f, 0.657806693297078640f,
0.749136394523459370f, 0.662415777590171780f,
0.745057785441466060f, 0.666999922303637470f,
0.740951125354959110f, 0.671558954847018330f,
0.736816568877369900f, 0.676092703575315920f,
0.732654271672412820f, 0.680600997795453020f,
0.728464390448225200f, 0.685083667772700360f,
0.724247082951467000f, 0.689540544737066830f,
0.720002507961381650f, 0.693971460889654000f,
0.715730825283818590f, 0.698376249408972920f,
0.711432195745216430f, 0.702754744457225300f,
0.707106781186547570f, 0.707106781186547460f,
0.702754744457225300f, 0.711432195745216430f,
0.698376249408972920f, 0.715730825283818590f,
0.693971460889654000f, 0.720002507961381650f,
0.689540544737066940f, 0.724247082951466890f,
0.685083667772700360f, 0.728464390448225200f,
0.680600997795453130f, 0.732654271672412820f,
0.676092703575316030f, 0.736816568877369790f,
0.671558954847018330f, 0.740951125354959110f,
0.666999922303637470f, 0.745057785441465950f,
0.662415777590171780f, 0.749136394523459260f,
0.657806693297078640f, 0.753186799043612410f,
0.653172842953776760f, 0.757208846506484460f,
0.648514401022112550f, 0.761202385484261780f,
0.643831542889791500f, 0.765167265622458960f,
0.639124444863775730f, 0.769103337645579590f,
0.634393284163645490f, 0.773010453362736990f,
0.629638238914927100f, 0.776888465673232440f,
0.624859488142386450f, 0.780737228572094380f,
0.620057211763289210f, 0.784556597155575240f,
0.615231590580626820f, 0.788346427626606230f,
0.610382806276309480f, 0.792106577300212390f,
0.605511041404325550f, 0.795836904608883460f,
0.600616479383868970f, 0.799537269107905010f,
0.595699304492433470f, 0.803207531480644830f,
0.590759701858874280f, 0.806847553543799220f,
0.585797857456438860f, 0.810457198252594770f,
0.580813958095764530f, 0.814036329705948300f,
0.575808191417845340f, 0.817584813151583710f,
0.570780745886967370f, 0.821102514991104650f,
0.565731810783613230f, 0.824589302785025290f,
0.560661576197336030f, 0.828045045257755800f,
0.555570233019602290f, 0.831469612302545240f,
0.550457972936604810f, 0.834862874986380010f,
0.545324988422046460f, 0.838224705554837970f,
0.540171472729892970f, 0.841554977436898330f,
0.534997619887097260f, 0.844853565249707010f,
0.529803624686294830f, 0.848120344803297120f,
0.524589682678468840f, 0.851355193105265200f,
0.519355990165589530f, 0.854557988365400530f,
0.514102744193221660f, 0.857728610000272120f,
0.508830142543106990f, 0.860866938637767310f,
0.503538383725717580f, 0.863972856121586700f,
0.498227666972781870f, 0.867046245515692650f,
0.492898192229784090f, 0.870086991108711350f,
0.487550160148436050f, 0.873094978418290090f,
0.482183772079122830f, 0.876070094195406600f,
0.476799230063322250f, 0.879012226428633410f,
0.471396736825997810f, 0.881921264348354940f,
0.465976495767966130f, 0.884797098430937790f,
0.460538710958240010f, 0.887639620402853930f,
0.455083587126343840f, 0.890448723244757880f,
0.449611329654606600f, 0.893224301195515320f,
0.444122144570429260f, 0.895966249756185110f,
0.438616238538527710f, 0.898674465693953820f,
0.433093818853152010f, 0.901348847046022030f,
0.427555093430282200f, 0.903989293123443340f,
0.422000270799799790f, 0.906595704514915330f,
0.416429560097637320f, 0.909167983090522270f,
0.410843171057903910f, 0.911706032005429880f,
0.405241314004989860f, 0.914209755703530690f,
0.399624199845646790f, 0.916679059921042700f,
0.393992040061048100f, 0.919113851690057770f,
0.388345046698826300f, 0.921514039342041900f,
0.382683432365089840f, 0.923879532511286740f,
0.377007410216418310f, 0.926210242138311270f,
0.371317193951837600f, 0.928506080473215480f,
0.365612997804773960f, 0.930766961078983710f,
0.359895036534988280f, 0.932992798834738850f,
0.354163525420490510f, 0.935183509938947500f,
0.348418680249434510f, 0.937339011912574960f,
0.342660717311994380f, 0.939459223602189920f,
0.336889853392220050f, 0.941544065183020810f,
0.331106305759876430f, 0.943593458161960390f,
0.325310292162262980f, 0.945607325380521280f,
0.319502030816015750f, 0.947585591017741090f,
0.313681740398891570f, 0.949528180593036670f,
0.307849640041534980f, 0.951435020969008340f,
0.302005949319228200f, 0.953306040354193750f,
0.296150888243623960f, 0.955141168305770670f,
0.290284677254462330f, 0.956940335732208940f,
0.284407537211271820f, 0.958703474895871600f,
0.278519689385053060f, 0.960430519415565790f,
0.272621355449948980f, 0.962121404269041580f,
0.266712757474898420f, 0.963776065795439840f,
0.260794117915275570f, 0.965394441697689400f,
0.254865659604514630f, 0.966976471044852070f,
0.248927605745720260f, 0.968522094274417270f,
0.242980179903263980f, 0.970031253194543970f,
0.237023605994367340f, 0.971503890986251780f,
0.231058108280671280f, 0.972939952205560070f,
0.225083911359792780f, 0.974339382785575860f,
0.219101240156869770f, 0.975702130038528570f,
0.213110319916091360f, 0.977028142657754390f,
0.207111376192218560f, 0.978317370719627650f,
0.201104634842091960f, 0.979569765685440520f,
0.195090322016128330f, 0.980785280403230430f,
0.189068664149806280f, 0.981963869109555240f,
0.183039887955141060f, 0.983105487431216290f,
0.177004220412148860f, 0.984210092386929030f,
0.170961888760301360f, 0.985277642388941220f,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -