Simplified version of FFT code - drives on-board LED as a "Colour Organ".
Dependencies: FastAnalogIn NVIC_set_all_priorities mbed-dsp mbed
Fork of KL25Z_FFT_Demo_tony by
arm_const_structs.h@2:177596541c8d, 2016-11-15 (annotated)
- Committer:
- luisda130595
- Date:
- Tue Nov 15 23:04:41 2016 +0000
- Revision:
- 2:177596541c8d
- Parent:
- 0:b8c9dffbbe7e
Pa' Chuy
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tony1tf | 0:b8c9dffbbe7e | 1 | /* ---------------------------------------------------------------------- |
tony1tf | 0:b8c9dffbbe7e | 2 | * Copyright (C) 2010-2013 ARM Limited. All rights reserved. |
tony1tf | 0:b8c9dffbbe7e | 3 | * |
tony1tf | 0:b8c9dffbbe7e | 4 | * $Date: 17. January 2013 |
tony1tf | 0:b8c9dffbbe7e | 5 | * $Revision: V1.4.1 |
tony1tf | 0:b8c9dffbbe7e | 6 | * |
tony1tf | 0:b8c9dffbbe7e | 7 | * Project: CMSIS DSP Library |
tony1tf | 0:b8c9dffbbe7e | 8 | * Title: arm_const_structs.h |
tony1tf | 0:b8c9dffbbe7e | 9 | * |
tony1tf | 0:b8c9dffbbe7e | 10 | * Description: This file has constant structs that are initialized for |
tony1tf | 0:b8c9dffbbe7e | 11 | * user convenience. For example, some can be given as |
tony1tf | 0:b8c9dffbbe7e | 12 | * arguments to the arm_cfft_f32() function. |
tony1tf | 0:b8c9dffbbe7e | 13 | * |
tony1tf | 0:b8c9dffbbe7e | 14 | * Target Processor: Cortex-M4/Cortex-M3 |
tony1tf | 0:b8c9dffbbe7e | 15 | * |
tony1tf | 0:b8c9dffbbe7e | 16 | * Redistribution and use in source and binary forms, with or without |
tony1tf | 0:b8c9dffbbe7e | 17 | * modification, are permitted provided that the following conditions |
tony1tf | 0:b8c9dffbbe7e | 18 | * are met: |
tony1tf | 0:b8c9dffbbe7e | 19 | * - Redistributions of source code must retain the above copyright |
tony1tf | 0:b8c9dffbbe7e | 20 | * notice, this list of conditions and the following disclaimer. |
tony1tf | 0:b8c9dffbbe7e | 21 | * - Redistributions in binary form must reproduce the above copyright |
tony1tf | 0:b8c9dffbbe7e | 22 | * notice, this list of conditions and the following disclaimer in |
tony1tf | 0:b8c9dffbbe7e | 23 | * the documentation and/or other materials provided with the |
tony1tf | 0:b8c9dffbbe7e | 24 | * distribution. |
tony1tf | 0:b8c9dffbbe7e | 25 | * - Neither the name of ARM LIMITED nor the names of its contributors |
tony1tf | 0:b8c9dffbbe7e | 26 | * may be used to endorse or promote products derived from this |
tony1tf | 0:b8c9dffbbe7e | 27 | * software without specific prior written permission. |
tony1tf | 0:b8c9dffbbe7e | 28 | * |
tony1tf | 0:b8c9dffbbe7e | 29 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
tony1tf | 0:b8c9dffbbe7e | 30 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
tony1tf | 0:b8c9dffbbe7e | 31 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
tony1tf | 0:b8c9dffbbe7e | 32 | * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
tony1tf | 0:b8c9dffbbe7e | 33 | * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
tony1tf | 0:b8c9dffbbe7e | 34 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
tony1tf | 0:b8c9dffbbe7e | 35 | * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
tony1tf | 0:b8c9dffbbe7e | 36 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
tony1tf | 0:b8c9dffbbe7e | 37 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
tony1tf | 0:b8c9dffbbe7e | 38 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
tony1tf | 0:b8c9dffbbe7e | 39 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
tony1tf | 0:b8c9dffbbe7e | 40 | * POSSIBILITY OF SUCH DAMAGE. |
tony1tf | 0:b8c9dffbbe7e | 41 | * -------------------------------------------------------------------- */ |
tony1tf | 0:b8c9dffbbe7e | 42 | |
tony1tf | 0:b8c9dffbbe7e | 43 | #ifndef _ARM_CONST_STRUCTS_H |
tony1tf | 0:b8c9dffbbe7e | 44 | #define _ARM_CONST_STRUCTS_H |
tony1tf | 0:b8c9dffbbe7e | 45 | |
tony1tf | 0:b8c9dffbbe7e | 46 | #include "arm_math.h" |
tony1tf | 0:b8c9dffbbe7e | 47 | #include "arm_common_tables.h" |
tony1tf | 0:b8c9dffbbe7e | 48 | |
tony1tf | 0:b8c9dffbbe7e | 49 | const arm_cfft_instance_f32 arm_cfft_sR_f32_len16 = { |
tony1tf | 0:b8c9dffbbe7e | 50 | 16, twiddleCoef_16, armBitRevIndexTable16, ARMBITREVINDEXTABLE__16_TABLE_LENGTH |
tony1tf | 0:b8c9dffbbe7e | 51 | }; |
tony1tf | 0:b8c9dffbbe7e | 52 | |
tony1tf | 0:b8c9dffbbe7e | 53 | const arm_cfft_instance_f32 arm_cfft_sR_f32_len32 = { |
tony1tf | 0:b8c9dffbbe7e | 54 | 32, twiddleCoef_32, armBitRevIndexTable32, ARMBITREVINDEXTABLE__32_TABLE_LENGTH |
tony1tf | 0:b8c9dffbbe7e | 55 | }; |
tony1tf | 0:b8c9dffbbe7e | 56 | |
tony1tf | 0:b8c9dffbbe7e | 57 | const arm_cfft_instance_f32 arm_cfft_sR_f32_len64 = { |
tony1tf | 0:b8c9dffbbe7e | 58 | 64, twiddleCoef_64, armBitRevIndexTable64, ARMBITREVINDEXTABLE__64_TABLE_LENGTH |
tony1tf | 0:b8c9dffbbe7e | 59 | }; |
tony1tf | 0:b8c9dffbbe7e | 60 | |
tony1tf | 0:b8c9dffbbe7e | 61 | const arm_cfft_instance_f32 arm_cfft_sR_f32_len128 = { |
tony1tf | 0:b8c9dffbbe7e | 62 | 128, twiddleCoef_128, armBitRevIndexTable128, ARMBITREVINDEXTABLE_128_TABLE_LENGTH |
tony1tf | 0:b8c9dffbbe7e | 63 | }; |
tony1tf | 0:b8c9dffbbe7e | 64 | |
tony1tf | 0:b8c9dffbbe7e | 65 | const arm_cfft_instance_f32 arm_cfft_sR_f32_len256 = { |
tony1tf | 0:b8c9dffbbe7e | 66 | 256, twiddleCoef_256, armBitRevIndexTable256, ARMBITREVINDEXTABLE_256_TABLE_LENGTH |
tony1tf | 0:b8c9dffbbe7e | 67 | }; |
tony1tf | 0:b8c9dffbbe7e | 68 | |
tony1tf | 0:b8c9dffbbe7e | 69 | const arm_cfft_instance_f32 arm_cfft_sR_f32_len512 = { |
tony1tf | 0:b8c9dffbbe7e | 70 | 512, twiddleCoef_512, armBitRevIndexTable512, ARMBITREVINDEXTABLE_512_TABLE_LENGTH |
tony1tf | 0:b8c9dffbbe7e | 71 | }; |
tony1tf | 0:b8c9dffbbe7e | 72 | |
tony1tf | 0:b8c9dffbbe7e | 73 | const arm_cfft_instance_f32 arm_cfft_sR_f32_len1024 = { |
tony1tf | 0:b8c9dffbbe7e | 74 | 1024, twiddleCoef_1024, armBitRevIndexTable1024, ARMBITREVINDEXTABLE1024_TABLE_LENGTH |
tony1tf | 0:b8c9dffbbe7e | 75 | }; |
tony1tf | 0:b8c9dffbbe7e | 76 | |
tony1tf | 0:b8c9dffbbe7e | 77 | const arm_cfft_instance_f32 arm_cfft_sR_f32_len2048 = { |
tony1tf | 0:b8c9dffbbe7e | 78 | 2048, twiddleCoef_2048, armBitRevIndexTable2048, ARMBITREVINDEXTABLE2048_TABLE_LENGTH |
tony1tf | 0:b8c9dffbbe7e | 79 | }; |
tony1tf | 0:b8c9dffbbe7e | 80 | |
tony1tf | 0:b8c9dffbbe7e | 81 | const arm_cfft_instance_f32 arm_cfft_sR_f32_len4096 = { |
tony1tf | 0:b8c9dffbbe7e | 82 | 4096, twiddleCoef_4096, armBitRevIndexTable4096, ARMBITREVINDEXTABLE4096_TABLE_LENGTH |
tony1tf | 0:b8c9dffbbe7e | 83 | }; |
tony1tf | 0:b8c9dffbbe7e | 84 | |
tony1tf | 0:b8c9dffbbe7e | 85 | #endif |
tony1tf | 0:b8c9dffbbe7e | 86 |