USB charger plug-in interrupt

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
Anonymous (not verified)
USB charger plug-in interrupt

Hi Dialog,

Is there a way to detect USB cable being plugged in or out as an interrupt?

Thanks

Device:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi mutahir,

Hi mutahir,

Yes, you can if you have set in the custom_config.h to use the USB (either as data or as charger - dg_configUSE_USB or dg_configUSE_USB_CHARGER), please check the below post:

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bl...

Thanks MT_dialog

mutahir (not verified)
Thanks

Thanks