资源简介
这是一个用stm32驱动超声波测距模块US-100的工程,其中主要是应用hal库,添加了oled的相关文件,剩余是测距模块的使用代码,希望能给大家提供一些参考
代码片段和文件信息
/******************************************************************************
* @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();
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2020-03-06 19:53 OLED_TEST2\
文件 6550 2020-03-06 19:53 OLED_TEST2\.mxproject
目录 0 2020-03-03 13:58 OLED_TEST2\Drivers\
目录 0 2020-03-03 13:58 OLED_TEST2\Drivers\CMSIS\
目录 0 2020-03-03 13:58 OLED_TEST2\Drivers\CMSIS\Core\
目录 0 2020-03-03 13:58 OLED_TEST2\Drivers\CMSIS\Core\Include\
文件 28208 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\cmsis_armcc.h
文件 56497 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\cmsis_armclang.h
文件 9014 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\cmsis_compiler.h
文件 62344 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\cmsis_gcc.h
文件 28414 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\cmsis_iccarm.h
文件 1716 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\cmsis_version.h
文件 97995 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\core_armv8mbl.h
文件 168914 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\core_armv8mml.h
文件 42208 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\core_cm0.h
文件 50464 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\core_cm0plus.h
文件 43456 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\core_cm1.h
文件 104628 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\core_cm23.h
文件 111854 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\core_cm3.h
文件 175600 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\core_cm33.h
文件 123607 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\core_cm4.h
文件 148588 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\core_cm7.h
文件 47249 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\core_sc000.h
文件 110523 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\core_sc300.h
文件 11711 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\mpu_armv7.h
文件 10958 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\mpu_armv8.h
文件 2757 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Include\tz_context.h
目录 0 2020-03-03 13:58 OLED_TEST2\Drivers\CMSIS\Core\Template\
目录 0 2020-03-03 13:58 OLED_TEST2\Drivers\CMSIS\Core\Template\ARMv8-M\
文件 1877 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Template\ARMv8-M\main_s.c
文件 6001 2020-02-22 14:33 OLED_TEST2\Drivers\CMSIS\Core\Template\ARMv8-M\tz_context.c
............此处省略1209个文件信息
相关资源
- 基于STM32步进电机位置速度双环串级控
- STM32F407RFID-RC522门禁控制系统.zip
- 正点原子精英版标准例程-库函数版本
- Keil.STM32F1xx_DFP.2.3.0.zip
- stm32f103c8t6移植RT-Thread之线程管理
- ESP8266获取网络天气.zip
- Examples.zip
- STM32读取VL53激光传感器
- 04 canOpen PDO非循环同步.zip
- 单片机STM32 MODBUS RTU通讯 功能码很全
- STM32 控制步进电机程序
- 基于STM32的智能小车研究 20181125
- STM32F1xx芯片型号选型驱动
- 无外部基准电压时STM32L151精确采集A
- 野火stm32-库开发高级篇-例程part1
- Keil.STM32F1xx_DFP.1.1.0.pack
- STM32读写MPU6050例程
- 超级牛的STM32 BLDC直流电机控制器设计
- STM32驱动OV2640
- 2017年电子设计竞赛板球系统源码
- 基于STM32音乐播放器设计 SD卡文件
- STM32L151-ADC例程
- VisualGDBSuitVS2017.rar
- FreeRTOS源码详解与应用开发 基于STM3
- STM32_Min.zip
- 零死角玩转STM32_PDF教程
- STM32_UCGUI
- 用s3c2440开发板和r301指纹模块做指纹识
- 基于STM32单片机与12864液晶的万年历时
- 基于stm32和TLC2543的数字电压表
评论
共有 条评论