-
Notifications
You must be signed in to change notification settings - Fork 3k
Bring in MIMXRT1050_EVK changes from feature-wisun branch #14323
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
436f5ca
targets:MIMXRT1050: Add LPSPI4 support
liugang-gavin 1ec914c
targets:lpspi: Update the lpspi driver and api
Tim-Wang38 4bc62d9
targets:uart: Add uart_3 support
Tim-Wang38 8aca242
targets: clock: change default core clock to 528M
Tim-Wang38 b14ddf6
targets:clock: Update the coreclock value
Tim-Wang38 9c3c3d2
targets:RT1050: Fix the low speed switch issue
Tim-Wang38 1ee4239
targets:RT1050: Fix the flash erase and program issue for qspi nor fl…
Tim-Wang38 59ad3ca
targets:evkbimxrt1050: Adjust the SEMC re-order rules
liugang-gavin 7498683
Change file permissions from 755->644
ad3bb0d
Change file permissions from 755->644
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,6 +132,7 @@ typedef enum { | |
SPI_1 = 1, | ||
SPI_2 = 2, | ||
SPI_3 = 3, | ||
SPI_4 = 4, | ||
} SPIName; | ||
|
||
#ifdef __cplusplus | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -258,9 +258,9 @@ void LPSPI_MasterGetDefaultConfig(lpspi_master_config_t *masterConfig) | |
masterConfig->cpha = kLPSPI_ClockPhaseFirstEdge; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @artokin Can you revert the change to file attributes (from 10644 to 10755), only this file There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @0xc0170 , made in the next commit. |
||
masterConfig->direction = kLPSPI_MsbFirst; | ||
|
||
masterConfig->pcsToSckDelayInNanoSec = 1000000000 / masterConfig->baudRate * 2; | ||
masterConfig->lastSckToPcsDelayInNanoSec = 1000000000 / masterConfig->baudRate * 2; | ||
masterConfig->betweenTransferDelayInNanoSec = 1000000000 / masterConfig->baudRate * 2; | ||
masterConfig->pcsToSckDelayInNanoSec = 80; | ||
masterConfig->lastSckToPcsDelayInNanoSec = 60; | ||
masterConfig->betweenTransferDelayInNanoSec = 160; | ||
|
||
masterConfig->whichPcs = kLPSPI_Pcs0; | ||
masterConfig->pcsActiveHighOrLow = kLPSPI_PcsActiveLow; | ||
|
@@ -871,14 +871,18 @@ status_t LPSPI_MasterTransferBlocking(LPSPI_Type *base, lpspi_transfer_t *transf | |
{ | ||
} | ||
|
||
if (txData) | ||
/* To prevent rxfifo overflow, ensure transmitting and receiving are executed in parallel */ | ||
if(((NULL == rxData) || (rxRemainingByteCount - txRemainingByteCount)/bytesEachRead < fifoSize)) | ||
{ | ||
wordToSend = LPSPI_CombineWriteData(txData, bytesEachWrite, isByteSwap); | ||
txData += bytesEachWrite; | ||
} | ||
if (txData) | ||
{ | ||
wordToSend = LPSPI_CombineWriteData(txData, bytesEachWrite, isByteSwap); | ||
txData += bytesEachWrite; | ||
} | ||
|
||
LPSPI_WriteData(base, wordToSend); | ||
txRemainingByteCount -= bytesEachWrite; | ||
LPSPI_WriteData(base, wordToSend); | ||
txRemainingByteCount -= bytesEachWrite; | ||
} | ||
|
||
/*Check whether there is RX data in RX FIFO . Read out the RX data so that the RX FIFO would not overrun.*/ | ||
if (rxData) | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@artokin one file left with permissions change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @0xc0170 , fixed in the next commit.