-
Notifications
You must be signed in to change notification settings - Fork 1
[pic32cz, uart] Add SERCOM UART support. Rename board config variables and PMUX enums #4
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -97,8 +97,6 @@ whal_Error whal_Pic32czUart_Init(whal_Uart *uartDev) | |||||||||||||||||||
| whal_Error err; | ||||||||||||||||||||
| whal_Pic32czUart_Cfg *cfg; | ||||||||||||||||||||
| const whal_Regmap *reg; | ||||||||||||||||||||
| size_t clockFreq; | ||||||||||||||||||||
| uint16_t baudVal; | ||||||||||||||||||||
|
|
||||||||||||||||||||
| if (!uartDev) { | ||||||||||||||||||||
| return WHAL_EINVAL; | ||||||||||||||||||||
|
|
@@ -113,27 +111,6 @@ whal_Error whal_Pic32czUart_Init(whal_Uart *uartDev) | |||||||||||||||||||
| return err; | ||||||||||||||||||||
| } | ||||||||||||||||||||
|
|
||||||||||||||||||||
|
||||||||||||||||||||
| /* Perform software reset to ensure a clean SERCOM state */ | |
| whal_Reg_Update(reg->base, SERCOM_USART_CTRLA_REG, | |
| SERCOM_USART_CTRLA_SWRST, | |
| whal_SetBits(SERCOM_USART_CTRLA_SWRST, 1)); | |
| /* Wait for software reset to complete */ | |
| whal_Pic32czUart_WaitSync(reg, SERCOM_USART_SYNCBUSY_SWRST); |
Uh oh!
There was an error while loading. Please reload this page.