c1b22ede30
* Add CANFD support and correct typos - Added CANFD required fields to can.h - Fixed typos in can.h and can.c - Corrected all the projects affected by the typo - Fixed wrong line-ending in some affected can driver files Signed-off-by: Fan YANG <fan.yang@hpmicro.com> * update * bsp: support boards from hpmicro - Supported HPM6750EVKMINI - Supported HPM6750EVK Signed-off-by: Fan YANG <fan.yang@hpmicro.com> Signed-off-by: Fan YANG <fan.yang@hpmicro.com> Co-authored-by: Meco Man <920369182@qq.com>
21 lines
407 B
C
21 lines
407 B
C
/*
|
|
* Copyright (c) 2021 hpmicro
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2022-01-11 HPMICRO First version
|
|
* 2022-03-22 zhangjun add GET_PIN
|
|
*/
|
|
#ifndef DRV_GPIO_H
|
|
#define DRV_GPIO_H
|
|
|
|
#define __HPM_PORT(port) IOC_PAD_P##port##00
|
|
#define GET_PIN(PORTx,PIN) (__HPM_PORT(PORTx) + PIN)
|
|
|
|
int rt_hw_pin_init(void);
|
|
|
|
|
|
#endif /* DRV_GPIO_H */
|