Skip to content

Instantly share code, notes, and snippets.

@youngkin
Created April 7, 2022 20:18
Show Gist options
  • Save youngkin/165a9ed933f006f7fdb747850e37befb to your computer and use it in GitHub Desktop.
Save youngkin/165a9ed933f006f7fdb747850e37befb to your computer and use it in GitHub Desktop.
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