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>
28 lines
576 B
Bash
28 lines
576 B
Bash
#
|
|
# Copyright (c) 2021 hpmicro
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
|
|
if [ "X$MSYSTEM" "==" "X" ]; then
|
|
if [ "X$name" "==" "Xenv.sh" ]; then
|
|
echo "Please source this file, rather than executing it."
|
|
exit
|
|
fi
|
|
env_name=$0
|
|
else
|
|
env_name=$1
|
|
fi
|
|
|
|
script=$(cd -P -- "$(dirname -- "$env_name")" && printf '%s\n' "$(pwd -P)/$(basename -- "$env_name")")
|
|
if [ "X$MSYSTEM" "==" "X" ]; then
|
|
export HPM_SDK_BASE=$(dirname "$script")
|
|
else
|
|
export HPM_SDK_BASE=$script
|
|
fi
|
|
|
|
echo $HPM_SDK_BASE
|
|
|
|
export OPENOCD_SCRIPTS=${HPM_SDK_BASE}/boards/openocd
|
|
|