bruelltuete

Results 11 comments of bruelltuete

> > I would have liked to undo the pin init from `stdio_uart_init_full()` as well but we dont keep track of the pins. > > I guess that would apply...

I would call it `adc_deinit()`, similar to `i2c_deinit()`.

> > > > > I would call it `adc_deinit()`, similar to `i2c_deinit()`. > > Not really, I don't expect a deinit function to have a parameter. This function really...

> [...] Also: there is a function `adc_irq_set_enabled`, but it only sets the interrupt enable flag in the ADC module. Should it call `irq_set_enabled` as well? I would say no,...

Not sure where pico-sdk/src/rp2_common/pico_stdlib/stdlib.c's set_sys_clock_pll() is used. The default sdk clock setup happens in pico-sdk/src/rp2_common/pico_runtime/runtime.c: runtime_init() -> clocks_init(). Which gives you a clock setup like https://www.bruelltuete.com/picoclocks.txt (last time I checked).

Ah yes, sorry missed that part on your original question... looks like `set_sys_clock_khz` does too much stuff. git-blame looks like this function hasn't been touched in ages and is prob...

Slightly related question: is there ever any point in having a clk_peri run faster than clk_sys?

I stumbled into this today as well: how to read from i2c with dma. Using the pico as a master and have it write to another i2c device with DMA...

> [...] for every byte you want to read you will have to write a control-command as well. So you'd have to ping-pong bounce between two 1-byte DMA transfers all...

> You just need to use two DMA channels in parallel (you don't need to ping pong). see https://github.com/kilograham/rp2040-doom/blob/c77136a24837a41fe1561778d4563d22679850fb/src/pico/piconet.c#L535 hm... for some reason i thought we'd have to coordinate access...