Skip to content

Commit 49e20f9

Browse files
committed
CubeIDE project
1 parent 4344b23 commit 49e20f9

File tree

541 files changed

+351832
-0
lines changed

Some content is hidden

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

541 files changed

+351832
-0
lines changed

src/third_party/stm32_cubeide/.cproject

+423
Large diffs are not rendered by default.

src/third_party/stm32_cubeide/.mxproject

+103
Large diffs are not rendered by default.
+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>bb3</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
10+
<triggers>clean,full,incremental,</triggers>
11+
<arguments>
12+
</arguments>
13+
</buildCommand>
14+
<buildCommand>
15+
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
16+
<triggers>full,incremental,</triggers>
17+
<arguments>
18+
</arguments>
19+
</buildCommand>
20+
</buildSpec>
21+
<natures>
22+
<nature>com.st.stm32cube.ide.mcu.MCUProjectNature</nature>
23+
<nature>com.st.stm32cube.ide.mcu.MCUCubeProjectNature</nature>
24+
<nature>org.eclipse.cdt.core.cnature</nature>
25+
<nature>com.st.stm32cube.ide.mcu.MCUCubeIdeServicesRevAProjectNature</nature>
26+
<nature>com.st.stm32cube.ide.mcu.MCUAdvancedStructureProjectNature</nature>
27+
<nature>com.st.stm32cube.ide.mcu.MCUEndUserDisabledTrustZoneProjectNature</nature>
28+
<nature>com.st.stm32cube.ide.mcu.MCUSingleCpuProjectNature</nature>
29+
<nature>com.st.stm32cube.ide.mcu.MCURootProjectNature</nature>
30+
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
31+
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
32+
<nature>org.eclipse.cdt.core.ccnature</nature>
33+
</natures>
34+
<linkedResources>
35+
<link>
36+
<name>eez</name>
37+
<type>2</type>
38+
<locationURI>PARENT-2-PROJECT_LOC/eez</locationURI>
39+
</link>
40+
<link>
41+
<name>libscpi</name>
42+
<type>2</type>
43+
<locationURI>PARENT-1-PROJECT_LOC/libscpi</locationURI>
44+
</link>
45+
<link>
46+
<name>micropython</name>
47+
<type>2</type>
48+
<locationURI>PARENT-1-PROJECT_LOC/micropython</locationURI>
49+
</link>
50+
</linkedResources>
51+
</projectDescription>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
eclipse.preferences.version=1
2+
svd_custom_file_path=
3+
svd_file_path=platform\:/plugin/com.st.stm32cube.ide.mcu.productdb.debug/resources/cmsis/STMicroelectronics_CMSIS_SVD/STM32F769.svd
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<project>
3+
<configuration id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1388326417" name="Debug">
4+
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
5+
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
6+
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
7+
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
8+
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
9+
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="1262792135867913807" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
10+
<language-scope id="org.eclipse.cdt.core.gcc"/>
11+
<language-scope id="org.eclipse.cdt.core.g++"/>
12+
</provider>
13+
</extension>
14+
</configuration>
15+
<configuration id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.2090027988" name="Release">
16+
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
17+
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
18+
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
19+
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
20+
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
21+
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="1262792135867913807" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
22+
<language-scope id="org.eclipse.cdt.core.gcc"/>
23+
<language-scope id="org.eclipse.cdt.core.g++"/>
24+
</provider>
25+
</extension>
26+
</configuration>
27+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
/* USER CODE BEGIN Header */
2+
/*
3+
* FreeRTOS Kernel V10.2.1
4+
* Portion Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
5+
* Portion Copyright (C) 2019 StMicroelectronics, Inc. All Rights Reserved.
6+
*
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
8+
* this software and associated documentation files (the "Software"), to deal in
9+
* the Software without restriction, including without limitation the rights to
10+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
11+
* the Software, and to permit persons to whom the Software is furnished to do so,
12+
* subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
19+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
20+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23+
*
24+
* http://www.FreeRTOS.org
25+
* http://aws.amazon.com/freertos
26+
*
27+
* 1 tab == 4 spaces!
28+
*/
29+
/* USER CODE END Header */
30+
31+
#ifndef FREERTOS_CONFIG_H
32+
#define FREERTOS_CONFIG_H
33+
34+
/*-----------------------------------------------------------
35+
* Application specific definitions.
36+
*
37+
* These definitions should be adjusted for your particular hardware and
38+
* application requirements.
39+
*
40+
* THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
41+
* FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
42+
*
43+
* See http://www.freertos.org/a00110.html.
44+
*----------------------------------------------------------*/
45+
46+
/* USER CODE BEGIN Includes */
47+
/* Section where include file can be added */
48+
/* USER CODE END Includes */
49+
50+
/* Ensure definitions are only used by the compiler, and not by the assembler. */
51+
#if defined(__ICCARM__) || defined(__CC_ARM) || defined(__GNUC__)
52+
#include <stdint.h>
53+
extern uint32_t SystemCoreClock;
54+
#endif
55+
#define configENABLE_FPU 0
56+
#define configENABLE_MPU 0
57+
58+
#define configUSE_PREEMPTION 1
59+
#define configSUPPORT_STATIC_ALLOCATION 1
60+
#define configSUPPORT_DYNAMIC_ALLOCATION 1
61+
#define configUSE_IDLE_HOOK 0
62+
#define configUSE_TICK_HOOK 0
63+
#define configCPU_CLOCK_HZ ( SystemCoreClock )
64+
#define configTICK_RATE_HZ ((TickType_t)1000)
65+
#define configMAX_PRIORITIES ( 7 )
66+
#define configMINIMAL_STACK_SIZE ((uint16_t)1024)
67+
#define configTOTAL_HEAP_SIZE ((size_t)131072)
68+
#define configMAX_TASK_NAME_LEN ( 16 )
69+
#define configUSE_16_BIT_TICKS 0
70+
#define configUSE_MUTEXES 1
71+
#define configQUEUE_REGISTRY_SIZE 8
72+
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
73+
/* USER CODE BEGIN MESSAGE_BUFFER_LENGTH_TYPE */
74+
/* Defaults to size_t for backward compatibility, but can be changed
75+
if lengths will always be less than the number of bytes in a size_t. */
76+
#define configMESSAGE_BUFFER_LENGTH_TYPE size_t
77+
/* USER CODE END MESSAGE_BUFFER_LENGTH_TYPE */
78+
79+
/* Co-routine definitions. */
80+
#define configUSE_CO_ROUTINES 0
81+
#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
82+
83+
/* Set the following definitions to 1 to include the API function, or zero
84+
to exclude the API function. */
85+
#define INCLUDE_vTaskPrioritySet 1
86+
#define INCLUDE_uxTaskPriorityGet 1
87+
#define INCLUDE_vTaskDelete 1
88+
#define INCLUDE_vTaskCleanUpResources 0
89+
#define INCLUDE_vTaskSuspend 1
90+
#define INCLUDE_vTaskDelayUntil 0
91+
#define INCLUDE_vTaskDelay 1
92+
#define INCLUDE_xTaskGetSchedulerState 1
93+
94+
/* Cortex-M specific definitions. */
95+
#ifdef __NVIC_PRIO_BITS
96+
/* __BVIC_PRIO_BITS will be specified when CMSIS is being used. */
97+
#define configPRIO_BITS __NVIC_PRIO_BITS
98+
#else
99+
#define configPRIO_BITS 4
100+
#endif
101+
102+
/* The lowest interrupt priority that can be used in a call to a "set priority"
103+
function. */
104+
#define configLIBRARY_LOWEST_INTERRUPT_PRIORITY 15
105+
106+
/* The highest interrupt priority that can be used by any interrupt service
107+
routine that makes calls to interrupt safe FreeRTOS API functions. DO NOT CALL
108+
INTERRUPT SAFE FREERTOS API FUNCTIONS FROM ANY INTERRUPT THAT HAS A HIGHER
109+
PRIORITY THAN THIS! (higher priorities are lower numeric values. */
110+
#define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 5
111+
112+
/* Interrupt priorities used by the kernel port layer itself. These are generic
113+
to all Cortex-M ports, and do not rely on any particular library functions. */
114+
#define configKERNEL_INTERRUPT_PRIORITY ( configLIBRARY_LOWEST_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
115+
/* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!!
116+
See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
117+
#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
118+
119+
/* Normal assert() semantics without relying on the provision of an assert.h
120+
header file. */
121+
/* USER CODE BEGIN 1 */
122+
#define configASSERT( x ) if ((x) == 0) {taskDISABLE_INTERRUPTS(); for( ;; );}
123+
/* USER CODE END 1 */
124+
125+
/* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS
126+
standard names. */
127+
#define vPortSVCHandler SVC_Handler
128+
#define xPortPendSVHandler PendSV_Handler
129+
130+
/* IMPORTANT: This define is commented when used with STM32Cube firmware, when the timebase source is SysTick,
131+
to prevent overwriting SysTick_Handler defined within STM32Cube HAL */
132+
133+
#define xPortSysTickHandler SysTick_Handler
134+
135+
/* USER CODE BEGIN Defines */
136+
#define configUSE_NEWLIB_REENTRANT 1
137+
/* USER CODE END Defines */
138+
139+
#endif /* FREERTOS_CONFIG_H */
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/**
2+
******************************************************************************
3+
* File Name : ADC.h
4+
* Description : This file provides code for the configuration
5+
* of the ADC instances.
6+
******************************************************************************
7+
* @attention
8+
*
9+
* <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
10+
* All rights reserved.</center></h2>
11+
*
12+
* This software component is licensed by ST under Ultimate Liberty license
13+
* SLA0044, the "License"; You may not use this file except in compliance with
14+
* the License. You may obtain a copy of the License at:
15+
* www.st.com/SLA0044
16+
*
17+
******************************************************************************
18+
*/
19+
/* Define to prevent recursive inclusion -------------------------------------*/
20+
#ifndef __adc_H
21+
#define __adc_H
22+
#ifdef __cplusplus
23+
extern "C" {
24+
#endif
25+
26+
/* Includes ------------------------------------------------------------------*/
27+
#include "main.h"
28+
29+
/* USER CODE BEGIN Includes */
30+
31+
/* USER CODE END Includes */
32+
33+
extern ADC_HandleTypeDef hadc1;
34+
35+
/* USER CODE BEGIN Private defines */
36+
37+
/* USER CODE END Private defines */
38+
39+
void MX_ADC1_Init(void);
40+
41+
/* USER CODE BEGIN Prototypes */
42+
43+
/* USER CODE END Prototypes */
44+
45+
#ifdef __cplusplus
46+
}
47+
#endif
48+
#endif /*__ adc_H */
49+
50+
/**
51+
* @}
52+
*/
53+
54+
/**
55+
* @}
56+
*/
57+
58+
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/**
2+
******************************************************************************
3+
* File Name : CRC.h
4+
* Description : This file provides code for the configuration
5+
* of the CRC instances.
6+
******************************************************************************
7+
* @attention
8+
*
9+
* <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
10+
* All rights reserved.</center></h2>
11+
*
12+
* This software component is licensed by ST under Ultimate Liberty license
13+
* SLA0044, the "License"; You may not use this file except in compliance with
14+
* the License. You may obtain a copy of the License at:
15+
* www.st.com/SLA0044
16+
*
17+
******************************************************************************
18+
*/
19+
/* Define to prevent recursive inclusion -------------------------------------*/
20+
#ifndef __crc_H
21+
#define __crc_H
22+
#ifdef __cplusplus
23+
extern "C" {
24+
#endif
25+
26+
/* Includes ------------------------------------------------------------------*/
27+
#include "main.h"
28+
29+
/* USER CODE BEGIN Includes */
30+
31+
/* USER CODE END Includes */
32+
33+
extern CRC_HandleTypeDef hcrc;
34+
35+
/* USER CODE BEGIN Private defines */
36+
37+
/* USER CODE END Private defines */
38+
39+
void MX_CRC_Init(void);
40+
41+
/* USER CODE BEGIN Prototypes */
42+
43+
/* USER CODE END Prototypes */
44+
45+
#ifdef __cplusplus
46+
}
47+
#endif
48+
#endif /*__ crc_H */
49+
50+
/**
51+
* @}
52+
*/
53+
54+
/**
55+
* @}
56+
*/
57+
58+
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

0 commit comments

Comments
 (0)