fadc_g.c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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: fadc_g.c
  15. * Date: 2022-02-10 14:53:42
  16. * LastEditTime: 2022-02-18 08:28:45
  17. * Description:  This files is for
  18. *
  19. * Modify History:
  20. * Ver   Who        Date         Changes
  21. * ----- ------     --------    --------------------------------------
  22. */
  23. #include "fparameters.h"
  24. #include "fadc.h"
  25. /* default configs of wdt ctrl */
  26. const FAdcConfig FAdcConfigTbl[FADC_INSTANCE_NUM] =
  27. {
  28. {
  29. .instance_id = FADC_INSTANCE_0,
  30. .base_addr = FADC0_CONTROL_BASE,
  31. .irq_num = FADC0_INTR_IRQ,
  32. .irq_prority = 0,
  33. .instance_name = "ADC-0"
  34. },
  35. {
  36. .instance_id = FADC_INSTANCE_1,
  37. .base_addr = FADC1_CONTROL_BASE,
  38. .irq_num = FADC1_INTR_IRQ,
  39. .irq_prority = 0,
  40. .instance_name = "ADC-1"
  41. }
  42. };