You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
447 B

1 year ago
2 months ago
1 year ago
  1. #pragma once
  2. #include "chip_tim_irq_shceduler.hpp"
  3. #include "irq_dispatcher/ztim_irq_dispatcher.hpp"
  4. #include "irq_dispatcher/zcan_irq_dispatcher.hpp"
  5. #include "zgpio.hpp"
  6. #include "zpwm_generator.hpp"
  7. #include "ztim.hpp"
  8. extern "C" {
  9. typedef struct {
  10. zchip_tim_t *us_dleay_tim;
  11. zchip_tim_t *tim_irq_scheduler_tim;
  12. zchip_uart_t *huart;
  13. Pin_t debuglight;
  14. } chip_cfg_t;
  15. void chip_init(chip_cfg_t *cfg);
  16. void chip_set_error();
  17. }