drv_common.h 541 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (C) 2022-2024, Xiaohua Semiconductor Co., Ltd.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2023-03-21 CDT first version
  9. */
  10. #ifndef __DRV_COMMON_H__
  11. #define __DRV_COMMON_H__
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. void _Error_Handler(char *s, int num);
  16. #ifndef Error_Handler
  17. #define Error_Handler() _Error_Handler(__FILE__, __LINE__)
  18. #endif
  19. void SysTick_Configuration(void);
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif /* __DRV_COMMON_H__ */