backtrace.h 450 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-06-02 Jesven the first version
  9. */
  10. #ifndef __BACKTRACE_H__
  11. #define __BACKTRACE_H__
  12. struct bt_frame
  13. {
  14. unsigned long fp;
  15. unsigned long pc;
  16. };
  17. void backtrace(unsigned long pc, unsigned long lr, unsigned long fp);
  18. int rt_backtrace(void);
  19. #endif /*__BACKTRACE_H__*/