Skip to content

Commit 4d8499c

Browse files
committed
deploy: abd3731
1 parent 1d61c18 commit 4d8499c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1887
-505
lines changed

.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: be31dd513aa3923cc20da342ca97ba2e
3+
config: 5b083a7bea8a4a5c33b97e49d8d6d35c
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

_sources/intermediate_tutorial/arm_math.rst.txt

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ In STM32 project, ``arm_math`` header and source files are inside ``Drivers > C
1717
2. Linking Arm Math Library for ARM Cortex-M3
1818
---------------------------------------------
1919

20-
You can link the library by adding the GCC library path ``Drivers/CMSIS/Lib/GCC`` and the linker flag ``libarm_cortexM3l_math.a`` in the Makefile or CMakeList.txt.
20+
You can link the library by adding the GCC library path ``Drivers/CMSIS/Lib/GCC`` and the linker flag ``libarm_cortexM3l_math`` in the Makefile or CMakeList.txt.
2121

2222
.. tabs::
2323

@@ -26,8 +26,8 @@ You can link the library by adding the GCC library path ``Drivers/CMSIS/Lib/GCC`
2626
.. code-block:: none
2727
2828
# libraries
29-
LIBS = -lc -lm -lnosys -larm_cortexM3l_math.a
30-
LIBDIR = -LDrivers/CMSIS/Lib/GCC/
29+
LIBS = -lc -lm -lnosys -larm_cortexM3l_math
30+
LIBDIR = -LDrivers/CMSIS/Lib/GCC
3131
3232
.. group-tab:: CMakeLists.txt
3333

@@ -86,33 +86,6 @@ To use the arm math library, you need to include the header file ``arm_math.h``
8686
8787
#include "arm_math.h"
8888
89-
Let's suppose you want to calculate **sine** and **cosine** of an angle. To do so, you need to add the respective sources in the **Makefile** or **CMakeLists.txt**.
90-
91-
.. tabs::
92-
93-
.. group-tab:: Makefile
94-
95-
.. code-block:: none
96-
:emphasize-lines: 4-5
97-
98-
# C sources
99-
C_SOURCES = \
100-
...
101-
Drivers/CMSIS/DSP/Source/FastMathFunctions/arm_sin_f32.c \
102-
Drivers/CMSIS/DSP/Source/FastMathFunctions/arm_cos_f32.c
103-
104-
.. group-tab:: CMakeLists.txt
105-
106-
.. code-block:: cmake
107-
:emphasize-lines: 4-5
108-
109-
# Add sources to executable
110-
target_sources(${CMAKE_PROJECT_NAME} PRIVATE
111-
# Add user sources here
112-
Drivers/CMSIS/DSP/Source/FastMathFunctions/arm_sin_f32.c
113-
Drivers/CMSIS/DSP/Source/FastMathFunctions/arm_cos_f32.c
114-
)
115-
11689
Don't forget to define ARM_MATH version in the **Makefile** or **CMakeLists.txt**.
11790

11891
.. tabs::

0 commit comments

Comments
 (0)