资源简介
基于STM32F103的驱动PCA968516路板,PCA9685的底层驱动,包括占空比计算,数值给定,驱动四路舵机完美实现
代码片段和文件信息
/**************************************************************************//**
* @file core_cm3.c
* @brief CMSIS Cortex-M3 Core Peripheral Access layer Source File
* @version V1.30
* @date 30. October 2009
*
* @note
* Copyright (C) 2009 ARM Limited. All rights reserved.
*
* @par
* ARM Limited (ARM) is supplying this software for use with Cortex-M
* processor based microcontrollers. This file can be freely distributed
* within development tools that are supporting such ARM based processors.
*
* @par
* THIS SOFTWARE IS PROVIDED “AS IS“. NO WARRANTIES WHETHER EXPRESS IMPLIED
* OR STATUTORY INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
* ARM SHALL NOT IN ANY CIRCUMSTANCES BE LIABLE FOR SPECIAL INCIDENTAL OR
* CONSEQUENTIAL DAMAGES FOR ANY REASON WHATSOEVER.
*
******************************************************************************/
#include
/* define compiler specific symbols */
#if defined ( __CC_ARM )
#define __ASM __asm /*!< asm keyword for ARM Compiler */
#define __INLINE __inline /*!< inline keyword for ARM Compiler */
#elif defined ( __ICCARM__ )
#define __ASM __asm /*!< asm keyword for IAR Compiler */
#define __INLINE inline /*!< inline keyword for IAR Compiler. Only avaiable in High optimization mode! */
#elif defined ( __GNUC__ )
#define __ASM __asm /*!< asm keyword for GNU Compiler */
#define __INLINE inline /*!< inline keyword for GNU Compiler */
#elif defined ( __TASKING__ )
#define __ASM __asm /*!< asm keyword for TASKING Compiler */
#define __INLINE inline /*!< inline keyword for TASKING Compiler */
#endif
/* ################### Compiler specific Intrinsics ########################### */
#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/
/* ARM armcc specific functions */
/**
* @brief Return the Process Stack Pointer
*
* @return ProcessStackPointer
*
* Return the actual process stack pointer
*/
__ASM uint32_t __get_PSP(void)
{
mrs r0 psp
bx lr
}
/**
* @brief Set the Process Stack Pointer
*
* @param topOfProcStack Process Stack Pointer
*
* Assign the value ProcessStackPointer to the MSP
* (process stack pointer) Cortex processor register
*/
__ASM void __set_PSP(uint32_t topOfProcStack)
{
msr psp r0
bx lr
}
/**
* @brief Return the Main Stack Pointer
*
* @return Main Stack Pointer
*
* Return the curren
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-03-18 14:03 PCA9685+STM32F103\
目录 0 2019-03-18 14:03 PCA9685+STM32F103\CORE\
文件 17273 2019-03-18 14:03 PCA9685+STM32F103\CORE\core_cm3.c
文件 85714 2019-03-18 14:03 PCA9685+STM32F103\CORE\core_cm3.h
文件 15503 2019-03-18 14:03 PCA9685+STM32F103\CORE\startup_stm32f10x_hd.s
目录 0 2019-03-18 14:03 PCA9685+STM32F103\HARDWARE\
目录 0 2019-03-18 14:03 PCA9685+STM32F103\HARDWARE\24CXX\
文件 3885 2019-03-18 14:03 PCA9685+STM32F103\HARDWARE\24CXX\24cxx.c
文件 1530 2019-03-18 14:03 PCA9685+STM32F103\HARDWARE\24CXX\24cxx.h
目录 0 2019-03-18 14:03 PCA9685+STM32F103\HARDWARE\IIC\
文件 3070 2019-03-18 14:03 PCA9685+STM32F103\HARDWARE\IIC\myiic.c
文件 1354 2019-03-18 14:03 PCA9685+STM32F103\HARDWARE\IIC\myiic.h
目录 0 2019-03-18 14:03 PCA9685+STM32F103\HARDWARE\KEY\
文件 1827 2019-03-18 14:03 PCA9685+STM32F103\HARDWARE\KEY\key.c
文件 1186 2019-03-18 14:03 PCA9685+STM32F103\HARDWARE\KEY\key.h
目录 0 2019-03-18 14:03 PCA9685+STM32F103\HARDWARE\LCD\
文件 35016 2019-03-18 14:03 PCA9685+STM32F103\HARDWARE\LCD\font.h
文件 85363 2019-03-18 14:03 PCA9685+STM32F103\HARDWARE\LCD\lcd.c
文件 7529 2019-03-18 14:03 PCA9685+STM32F103\HARDWARE\LCD\lcd.h
目录 0 2019-03-18 14:03 PCA9685+STM32F103\HARDWARE\LED\
文件 1298 2019-03-18 14:03 PCA9685+STM32F103\HARDWARE\LED\led.c
文件 638 2019-03-18 14:03 PCA9685+STM32F103\HARDWARE\LED\led.h
目录 0 2019-03-18 14:03 PCA9685+STM32F103\HARDWARE\pca\
文件 5412 2019-03-18 14:03 PCA9685+STM32F103\HARDWARE\pca\pca9685.c
文件 973 2019-03-18 14:15 PCA9685+STM32F103\HARDWARE\pca\pca9685.h
目录 0 2019-03-18 14:23 PCA9685+STM32F103\OBJ\
文件 352218 2019-03-18 14:10 PCA9685+STM32F103\OBJ\24cxx.crf
文件 1755 2019-03-18 14:10 PCA9685+STM32F103\OBJ\24cxx.d
文件 387708 2019-03-18 14:10 PCA9685+STM32F103\OBJ\24cxx.o
文件 595012 2019-03-18 14:23 PCA9685+STM32F103\OBJ\IIC.axf
文件 2075 2019-03-18 14:23 PCA9685+STM32F103\OBJ\IIC.build_log.htm
............此处省略156个文件信息
相关资源
- 2017年电子设计大赛专科组简易水清检
- 基于STM32F103的半桥、全桥移相PWM控制
- stm32超声波测距程序STM32F103ZET6程序
- STM32F469TouchGFX配置.docx
- 基于STM32F103的最方便的I/O口任意定义
- STM32固件库函数说明手册中文版,ST
- STM32F103双ADC模式同步采集两通道电压
- DLT645_2007forkeil4.rar
- STM32F103_SPI驱动nRF24L01
- STM32F107-lwip-UDP-client发送数据
- INA226硬件IICSTM32F4驱动.7z
- 基于stm32f103vc的超声波测距
- STM32F103 SX1278通讯程序
- STM32F103C8T6定时器秒表TM1650显示.rar
- ULN2003驱动28BYJ-48步进电机STM32F103库函
- STM32F0工程模板
- STM32F103串口使用空闲IDLE中断接收不定
- BQ40Z50通讯正常-基于STM32F0.rar
- 51单片机智能电表全套解决方案ad原理
- lsm303dlhc Stm32f103 驱动程序
- ARM stm32f407 开发板原理图及 PCB图
- 基于LABVIEW的STM32F0多路数据采集系统源
- STM32F103R LCD显示汉字.rar
- stm32f103zet6矩阵键盘(4x4)实现数字密
- stm32f072 can 通讯代码
- STM32F103硬件i2c读取bmp085串口输出
- STM32F103ZET6_USB_自定义BULK
- STM32F103 CAN端口主从收发驱动例程
- STM32F103ZET6+IAP+超级终端
- stm32f103c8t6原理图及PCB
评论
共有 条评论