Skip to content

Commit

Permalink
ext: hal: mchp: Fix compilation for MEC1501 SMB macros
Browse files Browse the repository at this point in the history
Adjust space definition for I2C register base addresses

Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
  • Loading branch information
albertofloyd authored and andrewboie committed May 8, 2019
1 parent 13453b9 commit 99ba2e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/hal/microchip/mec/mec1501/component/smb.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
/* 0 <= n < MCHP_I2C_SMB_MAX_INSTANCES */
#define MCHP_I2C_SMB_BASE_ADDR(n) \
((MCHP_I2C_SMB0_BASE_ADDR) +\
(uint32_t)(n) << (MCHP_I2C_SMB_INST_SPACING_P2))
((uint32_t)(n) << (MCHP_I2C_SMB_INST_SPACING_P2)))

/*
* Offset 0x00
Expand Down

0 comments on commit 99ba2e7

Please sign in to comment.