78 lines
2.0 KiB
C
78 lines
2.0 KiB
C
|
#ifndef _SYS_H
|
|||
|
#define _SYS_H
|
|||
|
#include "stm32l4xx.h"
|
|||
|
|
|||
|
/*********************************************************************************
|
|||
|
___ _ _____ _____ _ _ _____ _____ _ __
|
|||
|
/ _ \ | | |_ _|| ___|| \ | ||_ _|| ___|| | / /
|
|||
|
/ /_\ \| | | | | |__ | \| | | | | |__ | |/ /
|
|||
|
| _ || | | | | __| | . ` | | | | __| | \
|
|||
|
| | | || |_____| |_ | |___ | |\ | | | | |___ | |\ \
|
|||
|
\_| |_/\_____/\___/ \____/ \_| \_/ \_/ \____/ \_| \_/
|
|||
|
|
|||
|
* ******************************************************************************
|
|||
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><EFBFBD>ѧϰʹ<EFBFBD>ã<EFBFBD>δ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>κ<EFBFBD><EFBFBD><EFBFBD>;
|
|||
|
* ALIENTEK Pandora STM32L475 IOT<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
* ϵͳʱ<EFBFBD>ӳ<EFBFBD>ʼ<EFBFBD><EFBFBD>
|
|||
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<EFBFBD>жϹ<EFBFBD><EFBFBD><EFBFBD>/GPIO<EFBFBD><EFBFBD><EFBFBD>õ<EFBFBD>
|
|||
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ԭ<EFBFBD><EFBFBD>@ALIENTEK
|
|||
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̳:www.openedv.com
|
|||
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:2016/1/5
|
|||
|
* <EFBFBD>汾<EFBFBD><EFBFBD>V1.0
|
|||
|
* <EFBFBD><EFBFBD>Ȩ<EFBFBD><EFBFBD><EFBFBD>У<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
* Copyright(C) <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿƼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˾ 2014-2024
|
|||
|
* All rights reserved
|
|||
|
* ******************************************************************************
|
|||
|
* <EFBFBD>汾<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD>
|
|||
|
* <EFBFBD><EFBFBD>
|
|||
|
* ******************************************************************************/
|
|||
|
|
|||
|
//0,<2C><>֧<EFBFBD><D6A7>os
|
|||
|
//1,֧<><D6A7>os
|
|||
|
#define SYSTEM_SUPPORT_OS 0 //<2F><><EFBFBD><EFBFBD>ϵͳ<CFB5>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>Ƿ<EFBFBD>֧<EFBFBD><D6A7>OS
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD>һЩ<D2BB><D0A9><EFBFBD>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͷ̹ؼ<CCB9><D8BC><EFBFBD>
|
|||
|
typedef int32_t s32;
|
|||
|
typedef int16_t s16;
|
|||
|
typedef int8_t s8;
|
|||
|
|
|||
|
typedef const int32_t sc32;
|
|||
|
typedef const int16_t sc16;
|
|||
|
typedef const int8_t sc8;
|
|||
|
|
|||
|
typedef __IO int32_t vs32;
|
|||
|
typedef __IO int16_t vs16;
|
|||
|
typedef __IO int8_t vs8;
|
|||
|
|
|||
|
typedef __I int32_t vsc32;
|
|||
|
typedef __I int16_t vsc16;
|
|||
|
typedef __I int8_t vsc8;
|
|||
|
|
|||
|
typedef uint32_t u32;
|
|||
|
typedef uint16_t u16;
|
|||
|
typedef uint8_t u8;
|
|||
|
|
|||
|
typedef const uint32_t uc32;
|
|||
|
typedef const uint16_t uc16;
|
|||
|
typedef const uint8_t uc8;
|
|||
|
|
|||
|
typedef __IO uint32_t vu32;
|
|||
|
typedef __IO uint16_t vu16;
|
|||
|
typedef __IO uint8_t vu8;
|
|||
|
|
|||
|
typedef __I uint32_t vuc32;
|
|||
|
typedef __I uint16_t vuc16;
|
|||
|
typedef __I uint8_t vuc8;
|
|||
|
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD>ຯ<EFBFBD><E0BAAF>
|
|||
|
void WFI_SET(void); //ִ<><D6B4>WFIָ<49><D6B8>
|
|||
|
void INTX_DISABLE(void);//<2F>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>
|
|||
|
void INTX_ENABLE(void); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>
|
|||
|
void MSR_MSP(u32 addr); //<2F><><EFBFBD>ö<EFBFBD>ջ<EFBFBD><D5BB>ַ
|
|||
|
|
|||
|
#endif
|
|||
|
|
|||
|
|
|||
|
|