sys_type.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #ifndef SYS_TYPE_H
  2. #define SYS_TYPE_H
  3. #include "stm32f7xx.h"
  4. #include "core_cm7.h"
  5. #include "stm32f7xx_hal.h"
  6. //////////////////////////////////////////////////////////////////////////////////
  7. //本程序只供学习使用,未经作者许可,不得用于其它任何用途
  8. //ALIENTEK STM32F429开发板
  9. //系统时钟初始化
  10. //包括时钟设置/中断管理/GPIO设置等
  11. //正点原子@ALIENTEK
  12. //技术论坛:www.openedv.com
  13. //创建日期:2015/6/10
  14. //版本:V1.0
  15. //版权所有,盗版必究。
  16. //Copyright(C) 广州市星翼电子科技有限公司 2014-2024
  17. //All rights reserved
  18. //********************************************************************************
  19. //修改说明
  20. //无
  21. //////////////////////////////////////////////////////////////////////////////////
  22. //0,不支持os
  23. //1,支持os
  24. //#define SYSTEM_SUPPORT_OS 0 //定义系统文件夹是否支持OS
  25. ///////////////////////////////////////////////////////////////////////////////////
  26. //定义一些常用的数据类型短关键字
  27. typedef int32_t s32;
  28. typedef int16_t s16;
  29. typedef int8_t s8;
  30. typedef const int32_t sc32;
  31. typedef const int16_t sc16;
  32. typedef const int8_t sc8;
  33. typedef __IO int32_t vs32;
  34. typedef __IO int16_t vs16;
  35. typedef __IO int8_t vs8;
  36. typedef __I int32_t vsc32;
  37. typedef __I int16_t vsc16;
  38. typedef __I int8_t vsc8;
  39. typedef uint32_t u32;
  40. typedef uint16_t u16;
  41. typedef uint8_t u8;
  42. typedef const uint32_t uc32;
  43. typedef const uint16_t uc16;
  44. typedef const uint8_t uc8;
  45. typedef __IO uint32_t vu32;
  46. typedef __IO uint16_t vu16;
  47. typedef __IO uint8_t vu8;
  48. typedef __I uint32_t vuc32;
  49. typedef __I uint16_t vuc16;
  50. typedef __I uint8_t vuc8;
  51. #endif