diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-12-31 16:53:05 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-12-31 16:53:05 +0000 |
commit | 051fc115cb2dedf13a2b00b4fa46d06b783d47bb (patch) | |
tree | 86e483ad27a158056974b1c794afda1a5db9bea1 /nuttx/configs/olimex-lpc1766stk/include/board.h | |
parent | fe3199408b03f3b9df2d0daca9e2fefe29135746 (diff) | |
download | px4-nuttx-051fc115cb2dedf13a2b00b4fa46d06b783d47bb.tar.gz px4-nuttx-051fc115cb2dedf13a2b00b4fa46d06b783d47bb.tar.bz2 px4-nuttx-051fc115cb2dedf13a2b00b4fa46d06b783d47bb.zip |
Update README, LPC1766-STK button improvements, new Make targets, new Getting Started document
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4244 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/olimex-lpc1766stk/include/board.h')
-rwxr-xr-x | nuttx/configs/olimex-lpc1766stk/include/board.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nuttx/configs/olimex-lpc1766stk/include/board.h b/nuttx/configs/olimex-lpc1766stk/include/board.h index 2d99fe40a..5a22c0970 100755 --- a/nuttx/configs/olimex-lpc1766stk/include/board.h +++ b/nuttx/configs/olimex-lpc1766stk/include/board.h @@ -413,6 +413,9 @@ EXTERN void up_buttoninit(void); * Name: up_buttons * * Description: + * up_buttoninit() must be called to initialize button resources. After that, + * up_buttons() may be called to collect the current state of all buttons. + * * After up_buttoninit() has been called, up_buttons() may be called to collect * the state of all buttons. up_buttons() returns an 8-bit bit set with each bit * associated with a button. See the BOARD_BUTTON_*_BIT and BOARD_JOYSTICK_*_BIT @@ -427,7 +430,6 @@ EXTERN uint8_t up_buttons(void); * * Description: * up_buttoninit() must be called to initialize button resources. After that, - * up_buttons() may be called to collect the current state of all buttons or * up_irqbutton() may be called to register button interrupt handlers. * * up_irqbutton() may be called to register an interrupt handler that will be called @@ -437,6 +439,11 @@ EXTERN uint8_t up_buttons(void); * The previous interrupt handler address is returned (so that it may restored, if * so desired). * + * Note that up_irqbutton() also enables button interrupts. Button interrupts + * will remain enabled after the interrupt handler is attached. Interrupts may + * be disabled (and detached) by calling up_irqbutton with irqhandler equal to + * NULL. + * ************************************************************************************/ #if defined(CONFIG_ARCH_IRQBUTTONS) && defined(CONFIG_GPIO_IRQ) |