修改OS
This commit is contained in:
parent
644c133326
commit
a66354ed9b
|
@ -13,12 +13,12 @@
|
||||||
#define __BSP_H__
|
#define __BSP_H__
|
||||||
|
|
||||||
#include "gpios.h"
|
#include "gpios.h"
|
||||||
#include "dmas.h"
|
// #include "dmas.h"
|
||||||
// #include "adcs.h"
|
// #include "adcs.h"
|
||||||
// #include "dacs.h"
|
// #include "dacs.h"
|
||||||
// #include "tims.h"
|
// #include "tims.h"
|
||||||
// #include "pwms.h"
|
// #include "pwms.h"
|
||||||
#include "uarts.h"
|
// #include "uarts.h"
|
||||||
// #include "eeprom.h"
|
// #include "eeprom.h"
|
||||||
// #include "spis.h"
|
// #include "spis.h"
|
||||||
// #include "i2cs.h"
|
// #include "i2cs.h"
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#ifndef FREERTOS_CONFIG_H
|
#ifndef FREERTOS_CONFIG_H
|
||||||
#define FREERTOS_CONFIG_H
|
#define FREERTOS_CONFIG_H
|
||||||
|
#include "main.h"
|
||||||
/*-----------------------------------------------------------
|
/*-----------------------------------------------------------
|
||||||
* Application specific definitions.
|
* Application specific definitions.
|
||||||
*
|
*
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
#define configUSE_PREEMPTION 1
|
#define configUSE_PREEMPTION 1
|
||||||
#define configUSE_IDLE_HOOK 0
|
#define configUSE_IDLE_HOOK 0
|
||||||
#define configUSE_TICK_HOOK 0
|
#define configUSE_TICK_HOOK 0
|
||||||
#define configCPU_CLOCK_HZ ((unsigned long)72000000)
|
#define configCPU_CLOCK_HZ ((unsigned long)SystemCoreClock)
|
||||||
#define configTICK_RATE_HZ ((TickType_t)1000)
|
#define configTICK_RATE_HZ ((TickType_t)1000)
|
||||||
#define configMAX_PRIORITIES (5)
|
#define configMAX_PRIORITIES (5)
|
||||||
#define configMINIMAL_STACK_SIZE ((unsigned short)128)
|
#define configMINIMAL_STACK_SIZE ((unsigned short)128)
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
#ifndef __STORAGE_H__
|
#ifndef __STORAGE_H__
|
||||||
#define __STORAGE_H__
|
#define __STORAGE_H__
|
||||||
|
#include "sys.h"
|
||||||
#include "lib.h"
|
#include "lib.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
|
9
sys.h
9
sys.h
|
@ -18,6 +18,15 @@
|
||||||
#define LOCK() __disable_irq() ///< 系统关全局中断
|
#define LOCK() __disable_irq() ///< 系统关全局中断
|
||||||
#define UNLOCK() __enable_irq() ///< 系统开全局中断
|
#define UNLOCK() __enable_irq() ///< 系统开全局中断
|
||||||
|
|
||||||
|
#ifndef __NOP
|
||||||
|
|
||||||
|
/**
|
||||||
|
\brief No Operation
|
||||||
|
\details No Operation does nothing. This instruction can be used for code alignment purposes.
|
||||||
|
*/
|
||||||
|
#define __NOP() __ASM volatile("nop")
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
uint32_t pll_source;
|
uint32_t pll_source;
|
||||||
|
|
Loading…
Reference in New Issue