rust-embedded-community / tm4c-hal

An Embedded HAL and general chip support for the TM4C123/LM4F120. Replaces the old lm4f120 crate.
Apache License 2.0
40 stars 26 forks source link

WIP: adc support #46

Open vipierozan99 opened 3 years ago

vipierozan99 commented 3 years ago

This is a draft of an abstraction of ADC functionality. I'm using this for a personal project and since I only have the TM4C123GXL, I`ve only messed with the tm4c123x crate, and a little on the tm4c-hal, but not the tm4c129x one.

The API on the embedded-hal for ADC is a little immature, so I don't really know where to go from here, maybe try improving on the embedded-hal side first? suggestions and corrections are very welcome.

Also I'm kinda new to rust and doing this for fun in my free time, but maybe my shitty code will be useful for someone else :)

thejpster commented 2 years ago

Looks good to me! Is this still WIP?

vipierozan99 commented 2 years ago

Weeeell, it was, but I had to stop developing it for personal reasons and in the meantime, I fried my MCU, so I can't keep testing it right now, but hopefully I'll get to work on this again.

HerrMuellerluedenscheid commented 2 years ago

Hey there, I'm also in need for ADC support. Any news on this MR? Open points that I can try to tackle? I'm rather early-stage embedded rust developer but happy to accept challenges 😄

thejpster commented 2 years ago

I’m afraid I don’t do much on these chips any more. The RP2040 is faster and I can get a whole PCB with a USB port about half the price of a TM4C123 chip by itself.