资源简介
int main(void)
{
delay_init(); //延时函数初始化
JTAG_Set(JTAG_SWD_DISABLE);
JTAG_Set(SWD_ENABLE);
//设置NVIC中断分组2:2位抢占优先级,2位响应优先级
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
uart_init(9600);
LED_Init(); //初始化与LED连接的硬件接口
OLED_Init();
NRF24L01_Init();
Adc_Init();
KEY_EXTIX_Init();
TIM3_Int_Init(9999, 7199); //10Khz的计数频率,计数到5000为500ms
Detection_Hardware_Drive();//判断硬件状态
代码片段和文件信息
/**************************************************************************//**
* @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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 17273 2010-06-07 10:25 STM32_OLED_三级菜单框架\项目\CORE\core_cm3.c
文件 85714 2011-02-09 14:59 STM32_OLED_三级菜单框架\项目\CORE\core_cm3.h
文件 15503 2011-03-10 10:52 STM32_OLED_三级菜单框架\项目\CORE\startup_stm32f10x_hd.s
文件 12765 2011-03-10 10:52 STM32_OLED_三级菜单框架\项目\CORE\startup_stm32f10x_md.s
文件 8894 2018-10-02 12:24 STM32_OLED_三级菜单框架\项目\HARDWARE\24L01\24l01.c
文件 4638 2018-10-02 12:24 STM32_OLED_三级菜单框架\项目\HARDWARE\24L01\24l01.h
文件 6759 2018-10-02 12:23 STM32_OLED_三级菜单框架\项目\HARDWARE\ADC\adc.c
文件 519 2018-10-01 23:40 STM32_OLED_三级菜单框架\项目\HARDWARE\ADC\adc.h
文件 40289 2018-10-02 16:44 STM32_OLED_三级菜单框架\项目\HARDWARE\DISPLAY\DISPLAY.c
文件 4864 2018-10-02 12:26 STM32_OLED_三级菜单框架\项目\HARDWARE\DISPLAY\DISPLAY.h
文件 2352 2018-10-02 12:26 STM32_OLED_三级菜单框架\项目\HARDWARE\ESP8266\ESP8266.c
文件 142 2018-09-28 21:42 STM32_OLED_三级菜单框架\项目\HARDWARE\ESP8266\ESP8266.h
文件 5928 2018-10-02 16:45 STM32_OLED_三级菜单框架\项目\HARDWARE\EXTI\exti.c
文件 110 2018-09-29 22:06 STM32_OLED_三级菜单框架\项目\HARDWARE\EXTI\exti.h
文件 2986 2018-10-02 12:23 STM32_OLED_三级菜单框架\项目\HARDWARE\IIC\IIC.c
文件 878 2018-09-18 21:34 STM32_OLED_三级菜单框架\项目\HARDWARE\IIC\IIC.h
文件 3376 2018-10-02 12:23 STM32_OLED_三级菜单框架\项目\HARDWARE\KEY\key.c
文件 774 2018-09-27 16:28 STM32_OLED_三级菜单框架\项目\HARDWARE\KEY\key.h
文件 1009 2018-10-02 12:22 STM32_OLED_三级菜单框架\项目\HARDWARE\LED\led.c
文件 175 2018-09-20 13:25 STM32_OLED_三级菜单框架\项目\HARDWARE\LED\led.h
文件 24236 2018-10-02 12:22 STM32_OLED_三级菜单框架\项目\HARDWARE\OLED\oled.c
文件 6281 2018-10-01 14:15 STM32_OLED_三级菜单框架\项目\HARDWARE\OLED\oled.h
文件 376204 2018-10-01 16:59 STM32_OLED_三级菜单框架\项目\HARDWARE\OLED\oledfont.h
文件 86012 2018-06-26 14:30 STM32_OLED_三级菜单框架\项目\HARDWARE\OLED_IIC\codetab.h
文件 12848 2018-09-24 12:14 STM32_OLED_三级菜单框架\项目\HARDWARE\OLED_IIC\oled.c
文件 3941 2018-09-24 11:58 STM32_OLED_三级菜单框架\项目\HARDWARE\OLED_IIC\oled.h
文件 16448 2018-09-25 09:08 STM32_OLED_三级菜单框架\项目\HARDWARE\OLED_IIC.zip
文件 3092 2018-10-02 12:24 STM32_OLED_三级菜单框架\项目\HARDWARE\SPI\spi.c
文件 253 2018-10-02 12:24 STM32_OLED_三级菜单框架\项目\HARDWARE\SPI\spi.h
文件 2699 2018-10-02 12:25 STM32_OLED_三级菜单框架\项目\HARDWARE\TIMER\timer.c
............此处省略109个文件信息
评论
共有 条评论