Skip to content

Instantly share code, notes, and snippets.

View utkarshsethi's full-sized avatar
🎓
Focusing

Utkarsh Sethi utkarshsethi

🎓
Focusing
View GitHub Profile
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;
}
### 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: