资源简介
stm32f103 BLDC无刷电机代码,三电阻采样, 可以正常运行。
代码片段和文件信息
/******************************************************************************
* @file main_s.c
* @brief Code template for secure main function
* @version V1.1.1
* @date 10. January 2018
******************************************************************************/
/*
* Copyright (c) 2013-2018 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an AS IS BASIS WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* Use CMSE intrinsics */
#include
#include “RTE_Components.h“
#include CMSIS_device_header
/* TZ_START_NS: Start address of non-secure application */
#ifndef TZ_START_NS
#define TZ_START_NS (0x200000U)
#endif
/* typedef for non-secure callback functions */
typedef void (*funcptr_void) (void) __attribute__((cmse_nonsecure_call));
/* Secure main() */
int main(void) {
funcptr_void NonSecure_ResetHandler;
/* Add user setup code for secure part here*/
/* Set non-secure main stack (MSP_NS) */
__TZ_set_MSP_NS(*((uint32_t *)(TZ_START_NS)));
/* Get non-secure reset handler */
NonSecure_ResetHandler = (funcptr_void)(*((uint32_t *)((TZ_START_NS) + 4U)));
/* Start non-secure state software application */
NonSecure_ResetHandler();
/* Non-secure software does not return this code is not executed */
while (1) {
__NOP();
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
.CA.... 31 2020-04-28 09:54 foc_pll\foc_pll\.extSettings
.CA.... 18623 2020-04-28 09:55 foc_pll\foc_pll\.mxproject
.CA.... 28208 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\cmsis_armcc.h
.CA.... 56497 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\cmsis_armclang.h
.CA.... 9014 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\cmsis_compiler.h
.CA.... 62344 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\cmsis_gcc.h
.CA.... 28414 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\cmsis_iccarm.h
.CA.... 1716 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\cmsis_version.h
.CA.... 97995 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\core_armv8mbl.h
.CA.... 168914 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\core_armv8mml.h
.CA.... 42208 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\core_cm0.h
.CA.... 50464 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\core_cm0plus.h
.CA.... 43456 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\core_cm1.h
.CA.... 104628 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\core_cm23.h
.CA.... 111854 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\core_cm3.h
.CA.... 175600 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\core_cm33.h
.CA.... 123607 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\core_cm4.h
.CA.... 148588 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\core_cm7.h
.CA.... 47249 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\core_sc000.h
.CA.... 110523 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\core_sc300.h
.CA.... 11711 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\mpu_armv7.h
.CA.... 10958 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\mpu_armv8.h
.CA.... 2757 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Include\tz_context.h
.CA.... 1877 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Template\ARMv8-M\main_s.c
.CA.... 6001 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core\Template\ARMv8-M\tz_context.c
.CA.... 16600 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core_A\Include\cmsis_armcc.h
.CA.... 16510 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core_A\Include\cmsis_armclang.h
.CA.... 5456 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core_A\Include\cmsis_compiler.h
.CA.... 12551 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core_A\Include\cmsis_cp15.h
.CA.... 21749 2019-09-04 17:24 foc_pll\foc_pll\Drivers\CMSIS\Core_A\Include\cmsis_gcc.h
............此处省略1301个文件信息
相关资源
- 安川电机选型软件
- 基于STM32F407FFT音乐五彩频谱显示
- 陶晶池 USART HMI 串口屏与STM32F1通信详
- 绝对官方 !绝对官方!可以直接打板
- STM32分辨标准波形三角波、方波、正弦
- 基于stm32 的LCD1602驱动代码
- 2019电赛准备程序.rar
- STM32F407的wifi及DHT11,MQ2 Keil开发源码
- STM32超声波测距代码-HC-SR04.zip
- 开源云台--STM32代码
- 零死角玩转STM32完整版
- 简易风洞及控制系统stm32控制源码ke
- 基于stm32升降压DC-DC设计原理图+程序
- STM32F103移植FreeModbus同时实现ModbusRTU和
- HAL库 STM32 USART1和USART2 DMA模式透传。
- STM32F103移植的UCOSIIIHAL库
- modbus通用读取电表数据源码,使用的
- STM32F4官方库帮助文档,库函数说明
- 电机学详细课件
- STM32示波器源代码 便携式数字示波器
- stm32IAP远程更新资料包
- stm32_CAN测试代码.rar
- STM32 官方原厂 IAP升级代码
- STM32F1开发指南-库函数版本_V3.1 .pdf
- 基于stm32设计的一款简易示波器
- ILI9325驱动显示屏显示完整代码
- STM32CubeMX_v5.2.0.rar
- ROS机器人开发实践
- STM32CubeMX 4.26.1
- Analysis of Synchronous Machines-Lipo--2012年第
评论
共有 条评论