common_data.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* generated common source file - do not edit */
  2. #include "common_data.h"
  3. icu_instance_ctrl_t g_external_irq0_ctrl;
  4. /** External IRQ extended configuration for ICU HAL driver */
  5. const icu_extended_cfg_t g_external_irq0_ext_cfg =
  6. {
  7. .filter_src = EXTERNAL_IRQ_DIGITAL_FILTER_PCLK_DIV,
  8. };
  9. const external_irq_cfg_t g_external_irq0_cfg =
  10. {
  11. .channel = 0,
  12. .trigger = EXTERNAL_IRQ_TRIG_RISING,
  13. .filter_enable = false,
  14. .clock_source_div = EXTERNAL_IRQ_CLOCK_SOURCE_DIV_64,
  15. .p_callback = irq_callback,
  16. /** If NULL then do not add & */
  17. #if defined(NULL)
  18. .p_context = NULL,
  19. #else
  20. .p_context = (void *) &NULL,
  21. #endif
  22. .p_extend = (void *)&g_external_irq0_ext_cfg,
  23. .ipl = (12),
  24. #if defined(VECTOR_NUMBER_ICU_IRQ0)
  25. .irq = VECTOR_NUMBER_ICU_IRQ0,
  26. #else
  27. .irq = FSP_INVALID_VECTOR,
  28. #endif
  29. };
  30. /* Instance structure to use this module. */
  31. const external_irq_instance_t g_external_irq0 =
  32. {
  33. .p_ctrl = &g_external_irq0_ctrl,
  34. .p_cfg = &g_external_irq0_cfg,
  35. .p_api = &g_external_irq_on_icu
  36. };
  37. ioport_instance_ctrl_t g_ioport_ctrl;
  38. const ioport_instance_t g_ioport =
  39. {
  40. .p_api = &g_ioport_on_ioport,
  41. .p_ctrl = &g_ioport_ctrl,
  42. .p_cfg = &g_bsp_pin_cfg,
  43. };
  44. void g_common_init(void) {
  45. }