fm33_assert.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /**
  2. ****************************************************************************************************
  3. * @file fm33_assert.h
  4. * @author FMSH Application Team
  5. * @brief Assert function define
  6. ****************************************************************************************************
  7. * @attention
  8. *
  9. * Copyright (c) [2019] [Fudan Microelectronics]
  10. * THIS SOFTWARE is licensed under the Mulan PSL v1.
  11. * can use this software according to the terms and conditions of the Mulan PSL v1.
  12. * You may obtain a copy of Mulan PSL v1 at:
  13. * http://license.coscl.org.cn/MulanPSL
  14. * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
  16. * PURPOSE.
  17. * See the Mulan PSL v1 for more details.
  18. *
  19. ****************************************************************************************************
  20. */
  21. #ifndef __FM33_ASSERT_H
  22. #define __FM33_ASSERT_H
  23. #include "fm33xx.h"
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. #ifdef USE_FULL_ASSERT
  28. #define assert_param(expr) do{if((expr) == 0)for(;;);}while(0)
  29. #else
  30. #define assert_param(expr) ((void)0U)
  31. #endif
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35. #endif