Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bsp lpc55sxx #6897

Merged
merged 5 commits into from
Feb 2, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[bsp_lpc55sxx] formmat code
using formmating.py for format code
  • Loading branch information
yandld committed Jan 31, 2023
commit 0a45b129668ab37479435baa32c3a806fa5e481c
3 changes: 2 additions & 1 deletion bsp/lpc55sxx/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
lpc55s69_nxp_evk_internal
Libraries/drivers/formatting.py
Libraries/drivers/formatting.py
Libraries/formatting.py
4 changes: 2 additions & 2 deletions bsp/lpc55sxx/Libraries/drivers/drv_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ int rt_hw_i2c_init(void)
for(i=0; i<ARRAY_SIZE(lpc_obj); i++)
{
CLOCK_AttachClk(lpc_obj[i].i2c_clock_id);

I2C_MasterGetDefaultConfig(&masterConfig);
masterConfig.baudRate_Bps = lpc_obj[i].baud;

/* Initialize the I2C master peripheral */
I2C_MasterInit(lpc_obj[i].I2C, &masterConfig, CLOCK_GetFlexCommClkFreq(lpc_obj[i].instance));

Expand Down