【添加】FreeRTOS Demo
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
|
||||
#ifndef BSP_PRESENT
|
||||
#define BSP_PRESENT
|
||||
|
||||
/*
|
||||
*********************************************************************************************************
|
||||
* EXTERNS
|
||||
*********************************************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
*********************************************************************************************************
|
||||
* INCLUDE FILES
|
||||
*********************************************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include <stm32f10x_conf.h>
|
||||
|
||||
/*
|
||||
*********************************************************************************************************
|
||||
* DEFINES
|
||||
*********************************************************************************************************
|
||||
*/
|
||||
// <o> Internal SRAM memory size[Kbytes] <8-64>
|
||||
// <i>Default: 64
|
||||
#define STM32_SRAM_SIZE 64
|
||||
#define STM32_SRAM_END (SRAM_BASE + STM32_SRAM_SIZE * 1024)
|
||||
|
||||
#define VECT_TAB_FLASH /* use Flash to store vector table */
|
||||
|
||||
#define LED_RUN_ON GPIO_SetBits (GPIOB,GPIO_Pin_0) //RUN
|
||||
#define LED_RUN_OFF GPIO_ResetBits(GPIOB,GPIO_Pin_0) //RUN
|
||||
|
||||
/*********************************************************************************************************/
|
||||
/** MACRO'S */
|
||||
/***********************************************************************************************************/
|
||||
|
||||
|
||||
/***********************************************************************************************************/
|
||||
/* DATA TYPES */
|
||||
/***********************************************************************************************************/
|
||||
|
||||
|
||||
/**********************************************************************************************************
|
||||
* GLOBAL VARIABLES
|
||||
**********************************************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
*********************************************************************************************************
|
||||
* FUNCTION PROTOTYPES
|
||||
*********************************************************************************************************
|
||||
*/
|
||||
|
||||
void BSP_Init(void);
|
||||
void delay(uint32_t nCount);
|
||||
|
||||
void IWDG_Feed(void);
|
||||
|
||||
/*
|
||||
*********************************************************************************************************
|
||||
* INTERRUPT SERVICES
|
||||
*********************************************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#endif /* End of module include. */
|
||||
Reference in New Issue
Block a user