drv_gpio.h 407 B

1234567891011121314151617181920
  1. /*
  2. * Copyright (c) 2021 HPMicro
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-01-11 HPMICRO First version
  9. * 2022-03-22 zhangjun add GET_PIN
  10. */
  11. #ifndef DRV_GPIO_H
  12. #define DRV_GPIO_H
  13. #define __HPM_PORT(port) IOC_PAD_P##port##00
  14. #define GET_PIN(PORTx,PIN) (__HPM_PORT(PORTx) + PIN)
  15. int rt_hw_pin_init(void);
  16. #endif /* DRV_GPIO_H */