Created
April 7, 2022 20:18
-
-
Save youngkin/165a9ed933f006f7fdb747850e37befb to your computer and use it in GitHub Desktop.
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
void bcm_spi_setClockDivider(uint16_t divider) | |
{ | |
volatile uint32_t* paddr = bcm_spi0 + BCM_SPI0_CLK/4; | |
bcm_peri_write(paddr, divider); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment