dev_pin_dm.h 549 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-11-26 GuEe-GUI first version
  9. */
  10. #ifndef __PIN_DM_H__
  11. #define __PIN_DM_H__
  12. #include <rthw.h>
  13. #include <rtthread.h>
  14. #include <rtdevice.h>
  15. rt_err_t pin_api_init(struct rt_device_pin *gpio, rt_size_t pin_nr);
  16. rt_err_t pin_pic_init(struct rt_device_pin *gpio, int pin_irq);
  17. rt_err_t pin_pic_handle_isr(struct rt_device_pin *gpio, rt_base_t pin);
  18. #endif /* __DEV_PIN_DM_H__ */