Ian McIntyre

Results 61 comments of Ian McIntyre

> Can the same pin be pin_a and pin_b? [...] How do to 1-pin PWM? Pin A and pin B need to be distinct. The HAL doesn't support 1-pin PWM...

I personally don't plan to add PWM inputs into today's HAL. But I'm happy to mentor you, or anyone who wants to contribute the feature. PWM inputs are described by...

Another way to frame this effort: a [`log` implementation](https://crates.io/crates/log) that works with [`usbd-serial`](https://crates.io/crates/usbd-serial). Or maybe a [`defmt` implementation](https://defmt.ferrous-systems.com) that works with some USB class (maybe serial, HID, or something custom)....

### Pinout Screenshot below is from the [Teensy 4.1 schematic](https://www.pjrc.com/store/teensy41.html). These pins are assigned to the USDHC peripheral. Notice how the designated clock pin aligns with USDHC1_CLK in the SD_B0_01...

The [imxrt-iomuxc crate](https://github.com/imxrt-rs/imxrt-iomuxc) defines i.MX RT pins. The crate uses traits to indicate what pins can support a peripheral function. For instance, [these 1060 pins](https://github.com/imxrt-rs/imxrt-iomuxc/blob/master/src/imxrt1060/sai.rs) can be used with SAI...

imxrt-rs/imxrt-iomuxc#24 explores uSDHC pin traits and implementations for the Teensy 4.1's SDcard pads.

Yup, it's possible. A simple approach is to optionally integrate the `log` crate into `teensy4-panic`. The panic handler writes the message at the error level. If the BSP's USB logging...

Note that this issue doesn't affect usage of the SD card on the Teensy 4.1. I believe using the SD card will need a uSDHC driver.

If you're interested in hardware modifications that increase RAM, the Teensy 4.1 supports external RAM. [Here are the recommended parts and installation instructions](https://www.pjrc.com/store/psram.html). Otherwise, the on-chip RAM (OCRAM) is the...

Take a look at [the `usbd-hid` package](https://docs.rs/usbd-hid/0.5.2/usbd_hid/). The HID class lets us [send keyboard and mouse events](https://docs.rs/usbd-hid/0.5.2/usbd_hid/descriptor/index.html) to a host. `usbd-hid` requires a USB bus implementation, and we can use...