ft2004.h 616 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-04-29 Carl the first version
  9. *
  10. */
  11. #ifndef __FT2004_H__
  12. #define __FT2004_H__
  13. #include <rthw.h>
  14. #include <rtthread.h>
  15. #include "ft_parameters.h"
  16. #define ARM_GIC_NR_IRQS 160
  17. #define ARM_GIC_MAX_NR 1
  18. #define MAX_HANDLERS 160
  19. #define GIC_IRQ_START 0
  20. #define GIC_ACK_INTID_MASK 0x000003ff
  21. rt_uint64_t get_main_cpu_affval(void);
  22. rt_inline rt_uint32_t platform_get_gic_dist_base(void)
  23. {
  24. return FT_GICV3_DISTRIBUTOR_BASEADDRESS;
  25. }
  26. #endif // !