This file contains 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
USART: | |
//BRR = (Pclk + (BaudRate / 2)) / BaudRate | |
static uint16_t calc_brr(uint32_t Pclk, uint32_t BaudRate) | |
{ | |
uint16_t brr = (Pclk + (BaudRate / 2)) / BaudRate; | |
return brr; | |
} |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am utkarshsethi on github. | |
* I am hsraktuihtes (https://keybase.io/hsraktuihtes) on keybase. | |
* I have a public key ASCvOrYaiLcgSIUwC2SkQLOivgjTaWeeeKWMhV2OiAryXgo | |
To claim this, I am signing this object: |