Home
last modified time | relevance | path

Searched refs:clk (Results 1 – 2 of 2) sorted by relevance

/loramac-node-3.4.0/src/boards/mcu/saml21/hal/include/
Dhpl_spi.h166 int32_t _spi_calc_baud_val(struct spi_dev *dev, const uint32_t clk, const uint32_t baud);
/loramac-node-3.4.0/src/boards/mcu/saml21/hpl/sercom/
Dhpl_sercom.c870 uint32_t clk; /* SERCOM peripheral clock frequency */ member
1080 clkrate = _i2cms[tmp].clk / 1000; in _i2c_m_async_set_baudrate()
1366 clkrate = _i2cms[tmp].clk / 1000; in _i2c_m_sync_set_baudrate()
2495 int32_t _spi_calc_baud_val(struct spi_dev *dev, const uint32_t clk, const uint32_t baud) in _spi_calc_baud_val() argument
2501 if (clk == 0 || baud == 0) { in _spi_calc_baud_val()
2506 if (!(baud <= (clk >> 1) && baud >= (clk >> 8))) { in _spi_calc_baud_val()
2510 rc = ((clk >> 1) / baud) - 1; in _spi_calc_baud_val()