Comparator (COMP) HAL

This forum is about you. Feel free to discuss anything is related to embedded and electronics, your awesome projects, your ideas, your announcements, not necessarily related to ChibiOS but to embedded in general. This forum is NOT for support.
Post Reply
beause
Posts: 6
Joined: Tue Feb 26, 2013 6:54 pm

Comparator (COMP) HAL

Post by beause »

Hello,

Please find attached a contribution for a Comparator HAL component. We are using the comparator on the STM32F37x MCU and thought it'd be good to add a HAL interface.

There is also a testhal program in the testhal/STM32F37x/COMP directory for the 32373C eval board.

I am not able to try this on the STM32F30x MCUs unfortunately.

I also did not include a callback for comparator interrupts since for the comparator it goes through the EXTI which already has a HAL component. Not sure what to do there.

Hopefully you find it usable.

Best regards.
Attachments
for-giovanni-comphal-chibios.tar.gz
(179.81 KiB) Downloaded 425 times
skench
Posts: 5
Joined: Wed Apr 03, 2013 2:45 pm

Re: Comparator (COMP) HAL

Post by skench »

Hi Beause

I think the file comp_lld.h is missing.

Regards
Stephen Kench
Post Reply