Files

43 lines
774 B
C
Raw Permalink Normal View History

2025-08-05 16:06:46 +08:00
#ifndef __SYS_H__
#define __SYS_H__
#include "stm32f4xx.h"
#include "stm32f4xx_hal.h"
2025-12-02 19:20:58 +08:00
#define OS_SUPPORT 1
#define SYS_CLK 100
2025-08-05 16:06:46 +08:00
typedef int32_t s32;
typedef int16_t s16;
typedef int8_t s8;
2025-12-02 19:20:58 +08:00
typedef const int32_t sc32;
typedef const int16_t sc16;
typedef const int8_t sc8;
2025-08-05 16:06:46 +08:00
typedef __IO int32_t vs32;
typedef __IO int16_t vs16;
typedef __IO int8_t vs8;
2025-12-02 19:20:58 +08:00
typedef __I int32_t vsc32;
typedef __I int16_t vsc16;
typedef __I int8_t vsc8;
2025-08-05 16:06:46 +08:00
typedef uint32_t u32;
typedef uint16_t u16;
typedef uint8_t u8;
2025-12-02 19:20:58 +08:00
typedef const uint32_t uc32;
typedef const uint16_t uc16;
typedef const uint8_t uc8;
2025-08-05 16:06:46 +08:00
typedef __IO uint32_t vu32;
typedef __IO uint16_t vu16;
typedef __IO uint8_t vu8;
2025-12-02 19:20:58 +08:00
typedef __I uint32_t vuc32;
typedef __I uint16_t vuc16;
typedef __I uint8_t vuc8;
2025-08-05 16:06:46 +08:00
#endif