Merge pull request #5429 from process1183/dac_clock_comments
[#4701] Correct DAC clock speed comments for SAMD21 and SAMD51
This commit is contained in:
commit
5907ffbe18
@ -85,8 +85,8 @@ void common_hal_analogio_analogout_construct(analogio_analogout_obj_t *self,
|
|||||||
_pm_enable_bus_clock(PM_BUS_APBC, DAC);
|
_pm_enable_bus_clock(PM_BUS_APBC, DAC);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// SAMD21: This clock should be <= 12 MHz, per datasheet section 47.6.3.
|
// SAMD21: This clock should be <= 350 kHz, per datasheet table 36-7.
|
||||||
// SAMD51: This clock should be <= 350kHz, per datasheet table 37-6.
|
// SAMD51: This clock should be <= 12 MHz, per datasheet section 47.6.3.
|
||||||
_gclk_enable_channel(DAC_GCLK_ID, CONF_GCLK_DAC_SRC);
|
_gclk_enable_channel(DAC_GCLK_ID, CONF_GCLK_DAC_SRC);
|
||||||
|
|
||||||
// Don't double init the DAC on the SAMD51 when both outputs are in use. We use the free state
|
// Don't double init the DAC on the SAMD51 when both outputs are in use. We use the free state
|
||||||
|
Loading…
Reference in New Issue
Block a user