硬汉嵌入式论坛

 找回密码
 立即注册
查看: 1606|回复: 3
收起左侧

[有问必答] 我在加入arm_math.h文件中找不到ARMCM4.h

[复制链接]

33

主题

44

回帖

143

积分

初级会员

积分
143
发表于 2021-10-19 11:27:03 | 显示全部楼层 |阅读模式
我在加入arm_math.h文件中找不到ARMCM4.h
回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
111540
QQ
发表于 2021-10-19 11:31:16 | 显示全部楼层
最新版的是这样的。
  1. /******************************************************************************
  2. * @file     arm_math.h
  3. * @brief    Public header file for CMSIS DSP Library
  4. * @version  V1.9.0
  5. * @date     23 April 2021
  6. * Target Processor: Cortex-M and Cortex-A cores
  7. ******************************************************************************/
  8. /*
  9. * Copyright (c) 2010-2021 Arm Limited or its affiliates. All rights reserved.
  10. *
  11. * SPDX-License-Identifier: Apache-2.0
  12. *
  13. * Licensed under the Apache License, Version 2.0 (the License); you may
  14. * not use this file except in compliance with the License.
  15. * You may obtain a copy of the License at
  16. *
  17. * www.apache.org/licenses/LICENSE-2.0
  18. *
  19. * Unless required by applicable law or agreed to in writing, software
  20. * distributed under the License is distributed on an AS IS BASIS, WITHOUT
  21. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  22. * See the License for the specific language governing permissions and
  23. * limitations under the License.
  24. */

  25. /**
  26.    \mainpage CMSIS DSP Software Library
  27.    *
  28.    * \section intro Introduction
  29.    *
  30.    * This user manual describes the CMSIS DSP software library,
  31.    * a suite of common signal processing functions for use on Cortex-M and Cortex-A processor
  32.    * based devices.
  33.    *
  34.    * The library is divided into a number of functions each covering a specific category:
  35.    * - Basic math functions
  36.    * - Fast math functions
  37.    * - Complex math functions
  38.    * - Filtering functions
  39.    * - Matrix functions
  40.    * - Transform functions
  41.    * - Motor control functions
  42.    * - Statistical functions
  43.    * - Support functions
  44.    * - Interpolation functions
  45.    * - Support Vector Machine functions (SVM)
  46.    * - Bayes classifier functions
  47.    * - Distance functions
  48.    * - Quaternion functions
  49.    *
  50.    * The library has generally separate functions for operating on 8-bit integers, 16-bit integers,
  51.    * 32-bit integer and 32-bit floating-point values.
  52.    *
  53.    * The library is providing vectorized versions of most algorthms for Helium
  54.    * and of most f32 algorithms for Neon.
  55.    *
  56.    * When using a vectorized version, provide a little bit of padding after the end of
  57.    * a buffer (3 words) because the vectorized code may read a little bit after the end
  58.    * of a buffer. You don't have to modify your buffers but just ensure that the
  59.    * end of buffer + padding is not outside of a memory region.
  60.    *
  61.    * \section using Using the Library
  62.    *
  63.    * The library is released in source form. It is strongly advised to compile the library using -Ofast to
  64.    * have the best performances.
  65.    *
  66.    * The library functions are declared in the public file <code>arm_math.h</code> which is placed in the <code>Include</code> folder.
  67.    * Simply include this file. If you don't want to include everything, you can also rely
  68.    * on headers in Include/dsp folder and use only what you need.
  69.    *
  70.    * \section example Examples
  71.    *
  72.    * The library ships with a number of examples which demonstrate how to use the library functions.
  73.    *
  74.    * \section toolchain Toolchain Support
  75.    *
  76.    * The library is now tested on Fast Models building with cmake.
  77.    * Core M0, M4, M7, M33, M55, A32 are tested.
  78.    *
  79.    *
  80.    * \section preprocessor Preprocessor Macros
  81.    *
  82.    * Each library project have different preprocessor macros.
  83.    *
  84.    * - ARM_MATH_BIG_ENDIAN:
  85.    *
  86.    * Define macro ARM_MATH_BIG_ENDIAN to build the library for big endian targets. By default library builds for little endian targets.
  87.    *
  88.    * - ARM_MATH_MATRIX_CHECK:
  89.    *
  90.    * Define macro ARM_MATH_MATRIX_CHECK for checking on the input and output sizes of matrices
  91.    *
  92.    * - ARM_MATH_ROUNDING:
  93.    *
  94.    * Define macro ARM_MATH_ROUNDING for rounding on support functions
  95.    *
  96.    * - ARM_MATH_LOOPUNROLL:
  97.    *
  98.    * Define macro ARM_MATH_LOOPUNROLL to enable manual loop unrolling in DSP functions
  99.    *
  100.    * - ARM_MATH_NEON:
  101.    *
  102.    * Define macro ARM_MATH_NEON to enable Neon versions of the DSP functions.
  103.    * It is not enabled by default when Neon is available because performances are
  104.    * dependent on the compiler and target architecture.
  105.    *
  106.    * - ARM_MATH_NEON_EXPERIMENTAL:
  107.    *
  108.    * Define macro ARM_MATH_NEON_EXPERIMENTAL to enable experimental Neon versions of
  109.    * of some DSP functions. Experimental Neon versions currently do not have better
  110.    * performances than the scalar versions.
  111.    *
  112.    * - ARM_MATH_HELIUM:
  113.    *
  114.    * It implies the flags ARM_MATH_MVEF and ARM_MATH_MVEI and ARM_MATH_MVE_FLOAT16.
  115.    *
  116.    * - ARM_MATH_HELIUM_EXPERIMENTAL:
  117.    *
  118.    * Only taken into account when ARM_MATH_MVEF, ARM_MATH_MVEI or ARM_MATH_MVE_FLOAT16 are defined.
  119.    * Enable some vector versions which may have worse performance than scalar
  120.    * depending on the core / compiler configuration.
  121.    *
  122.    * - ARM_MATH_MVEF:
  123.    *
  124.    * Select Helium versions of the f32 algorithms.
  125.    * It implies ARM_MATH_FLOAT16 and ARM_MATH_MVEI.
  126.    *
  127.    * - ARM_MATH_MVEI:
  128.    *
  129.    * Select Helium versions of the int and fixed point algorithms.
  130.    *
  131.    * - ARM_MATH_MVE_FLOAT16:
  132.    *
  133.    * MVE Float16 implementations of some algorithms (Requires MVE extension).
  134.    *
  135.    * - DISABLEFLOAT16:
  136.    *
  137.    * Disable float16 algorithms when __fp16 is not supported for a
  138.    * specific compiler / core configuration.
  139.    * This is only valid for scalar. When vector architecture is
  140.    * supporting f16 then it can't be disabled.
  141.    *
  142.    * - ARM_MATH_AUTOVECTORIZE:
  143.    *
  144.    * With Helium or Neon, disable the use of vectorized code with C intrinsics
  145.    * and use pure C instead. The vectorization is then done by the compiler.
  146.    *
  147.    * <hr>
  148.    * \section pack CMSIS-DSP in ARM::CMSIS Pack
  149.    *
  150.    * The following files relevant to CMSIS-DSP are present in the <b>ARM::CMSIS</b> Pack directories:
  151.    * |File/Folder                      |Content                                                                 |
  152.    * |---------------------------------|------------------------------------------------------------------------|
  153.    * |\b CMSIS\\Documentation\\DSP     | This documentation                                                     |
  154.    * |\b CMSIS\\DSP\\Examples          | Example projects demonstrating the usage of the library functions      |
  155.    * |\b CMSIS\\DSP\\Include           | DSP_Lib include files for using and building the lib
  156.    * |\b CMSIS\\DSP\\PrivateInclude    | DSP_Lib private include files for building the lib                                               |
  157.    * |\b CMSIS\\DSP\\Lib               | DSP_Lib binaries                                                       |
  158.    * |\b CMSIS\\DSP\\Source            | DSP_Lib source files                                                   |
  159.    *
  160.    * <hr>
  161.    * \section rev Revision History of CMSIS-DSP
  162.    * Please refer to \ref ChangeLog_pg.
  163.    */











  164. /**
  165. * @defgroup groupExamples Examples
  166. */





  167. #ifndef _ARM_MATH_H
  168. #define _ARM_MATH_H


  169. #include "arm_math_types.h"
  170. #include "arm_math_memory.h"

  171. #include "dsp/none.h"
  172. #include "dsp/utils.h"

  173. #include "dsp/basic_math_functions.h"  
  174. #include "dsp/interpolation_functions.h"
  175. #include "dsp/bayes_functions.h"
  176. #include "dsp/matrix_functions.h"
  177. #include "dsp/complex_math_functions.h"
  178. #include "dsp/statistics_functions.h"
  179. #include "dsp/controller_functions.h"
  180. #include "dsp/support_functions.h"
  181. #include "dsp/distance_functions.h"
  182. #include "dsp/svm_functions.h"
  183. #include "dsp/fast_math_functions.h"
  184. #include "dsp/transform_functions.h"
  185. #include "dsp/filtering_functions.h"
  186. #include "dsp/quaternion_math_functions.h"



  187. #ifdef   __cplusplus
  188. extern "C"
  189. {
  190. #endif




  191. //#define TABLE_SPACING_Q31     0x400000
  192. //#define TABLE_SPACING_Q15     0x80





  193. #ifdef   __cplusplus
  194. }
  195. #endif


  196. #endif /* _ARM_MATH_H */

  197. /**
  198. *
  199. * End of file.
  200. */
复制代码


回复

使用道具 举报

33

主题

44

回帖

143

积分

初级会员

积分
143
 楼主| 发表于 2021-10-19 13:38:03 | 显示全部楼层
eric2013 发表于 2021-10-19 11:31
最新版的是这样的。

那我现在程序中的这个错误应该怎么解决呢?我不知道这个.h文件在哪
屏幕截图 2021-10-19 133659.png
回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
111540
QQ
发表于 2021-10-19 14:43:03 | 显示全部楼层
发的好的话 发表于 2021-10-19 13:38
那我现在程序中的这个错误应该怎么解决呢?我不知道这个.h文件在哪

建议升级下,你用的太老了

事隔五年之后,开启第2版DSP数字信号处理和CMSIS-NN神经网络教程,同步开启三代示波器,更至49章(2021-09-20)
http://www.armbbs.cn/forum.php?m ... 4547&fromuid=58
(出处: 硬汉嵌入式论坛)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-11-1 07:39 , Processed in 0.238754 second(s), 28 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表