Skip to content
Permalink
Browse files

ext: hal: microchip: Fix compilation issue in HAL

Fix compilation error when using MCHP_ECS_DCTRL_MODE_SWD

Signed-off-by: Francisco Munoz <francisco.munoz.ruiz@intel.com>
  • Loading branch information...
franciscomunoz authored and andrewboie committed Jul 25, 2019
1 parent 1f8f390 commit 8104c208912580e6fe1f26f0ea7a66a05a08b28b
Showing with 2 additions and 0 deletions.
  1. +2 −0 ext/hal/microchip/mec/mec1501/component/ecs.h
@@ -71,6 +71,8 @@
#define MCHP_ECS_DCTRL_MODE_MASK0 0x03ul
#define MCHP_ECS_DCTRL_MODE_MASK \
((MCHP_ECS_DCTRL_DBG_MODE_MASK0) << (MCHP_ECS_DCTRL_DBG_MODE_POS))

#define MCHP_ECS_DCTRL_DBG_MODE_POS 1u
#define MCHP_ECS_DCTRL_MODE_JTAG (0x00 << (MCHP_ECS_DCTRL_DBG_MODE_POS))
#define MCHP_ECS_DCTRL_MODE_SWD (0x02 << (MCHP_ECS_DCTRL_DBG_MODE_POS))
#define MCHP_ECS_DCTRL_MODE_SWD_SWV (0x01 << (MCHP_ECS_DCTRL_DBG_MODE_POS))

0 comments on commit 8104c20

Please sign in to comment.
You can’t perform that action at this time.