fddma_g.c 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright : (C) 2022 Phytium Information Technology, Inc.
  3. * All Rights Reserved.
  4. *
  5. * This program is OPEN SOURCE software: you can redistribute it and/or modify it
  6. * under the terms of the Phytium Public License as published by the Phytium Technology Co.,Ltd,
  7. * either version 1.0 of the License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY;
  10. * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. * See the Phytium Public License for more details.
  12. *
  13. *
  14. * FilePath: fddma_g.c
  15. * Date: 2022-02-10 14:53:42
  16. * LastEditTime: 2022-02-18 08:24:47
  17. * Description:  This files is for ddma static configuration
  18. *
  19. * Modify History:
  20. * Ver   Who        Date         Changes
  21. * ----- ------     --------    --------------------------------------
  22. * 1.0 Zhugengyu 2022/5/13 init commit
  23. */
  24. /***************************** Include Files *********************************/
  25. #include "fparameters.h"
  26. #include "fddma_hw.h"
  27. #include "fddma.h"
  28. /************************** Constant Definitions *****************************/
  29. /**************************** Type Definitions *******************************/
  30. /************************** Variable Definitions *****************************/
  31. const FDdmaConfig fddma_cfg_tbl[FDDMA_INSTANCE_NUM] =
  32. {
  33. [FDDMA0_ID] =
  34. {
  35. .id = FDDMA0_ID,
  36. .base_addr = FDDMA0_BASE_ADDR,
  37. .irq_num = FDDMA0_IRQ_NUM,
  38. .irq_prority = 0
  39. },
  40. [FDDMA1_ID] =
  41. {
  42. .id = FDDMA1_ID,
  43. .base_addr = FDDMA1_BASE_ADDR,
  44. .irq_num = FDDMA1_IRQ_NUM,
  45. .irq_prority = 0
  46. }
  47. }; /* DDMA控制器默认配置 */
  48. /***************** Macros (Inline Functions) Definitions *********************/
  49. /************************** Function Prototypes ******************************/