mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-16 22:28:59 +00:00
Configure button pins with hysterisis
This commit is contained in:
parent
7641aa89f2
commit
3ab1b836c4
@ -55,7 +55,7 @@
|
|||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#define BUTTON_GPIO_CFG (IOC_CURRENT_2MA | IOC_STRENGTH_AUTO | \
|
#define BUTTON_GPIO_CFG (IOC_CURRENT_2MA | IOC_STRENGTH_AUTO | \
|
||||||
IOC_IOPULL_UP | IOC_SLEW_DISABLE | \
|
IOC_IOPULL_UP | IOC_SLEW_DISABLE | \
|
||||||
IOC_HYST_DISABLE | IOC_BOTH_EDGES | \
|
IOC_HYST_ENABLE | IOC_BOTH_EDGES | \
|
||||||
IOC_INT_ENABLE | IOC_IOMODE_NORMAL | \
|
IOC_INT_ENABLE | IOC_IOMODE_NORMAL | \
|
||||||
IOC_NO_WAKE_UP | IOC_INPUT_ENABLE | \
|
IOC_NO_WAKE_UP | IOC_INPUT_ENABLE | \
|
||||||
IOC_JTAG_DISABLE)
|
IOC_JTAG_DISABLE)
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#define BUTTON_GPIO_CFG (IOC_CURRENT_2MA | IOC_STRENGTH_AUTO | \
|
#define BUTTON_GPIO_CFG (IOC_CURRENT_2MA | IOC_STRENGTH_AUTO | \
|
||||||
IOC_IOPULL_UP | IOC_SLEW_DISABLE | \
|
IOC_IOPULL_UP | IOC_SLEW_DISABLE | \
|
||||||
IOC_HYST_DISABLE | IOC_BOTH_EDGES | \
|
IOC_HYST_ENABLE | IOC_BOTH_EDGES | \
|
||||||
IOC_INT_ENABLE | IOC_IOMODE_NORMAL | \
|
IOC_INT_ENABLE | IOC_IOMODE_NORMAL | \
|
||||||
IOC_NO_WAKE_UP | IOC_INPUT_ENABLE | \
|
IOC_NO_WAKE_UP | IOC_INPUT_ENABLE | \
|
||||||
IOC_JTAG_DISABLE)
|
IOC_JTAG_DISABLE)
|
||||||
|
Loading…
Reference in New Issue
Block a user