bsp_custom.h 493 B

1234567891011121314151617181920
  1. #ifndef BSP_CUSTOM_H
  2. #define BSP_CUSTOM_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include "bsp.h"
  7. #include "IQmathLib.h"
  8. #include "hal_module_adapter.h"
  9. #define getbit(x,y) ((x) >> (y)&1) //获取x的第y位的数值
  10. #define setbit(x,y) x|=(1<<y) //x的第y位置1
  11. #define clrbit(x,y) x&=~(1<<y) //x的第y位置0
  12. void BSP_CustomInit(void);
  13. #ifdef __cplusplus
  14. }
  15. #endif
  16. #endif /* BSP_CUSTOM_H */