Trivial cosmetic changes from review of PR 133
This commit is contained in:
parent
7bbfc49b82
commit
f61a14454d
@ -265,6 +265,8 @@ nuttx/
|
||||
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/stm32f429i-disco/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
||||
| |- stm32f746g-disco/
|
||||
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/stm32f746g-disco/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
||||
| |- stm32l476-mdk/
|
||||
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/stm32l476vg-mdk/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
||||
| |- stm32l476vg-disco/
|
||||
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/stm32l476vg-disco/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
||||
| |- stm32ldiscovery/
|
||||
|
@ -1481,6 +1481,8 @@ nuttx/
|
||||
| | `- README.txt
|
||||
| |- stm32f746g-disco/
|
||||
| | `- README.txt
|
||||
| |- stm32l476-mdk/
|
||||
| | `- README.txt
|
||||
| |- stm32l476vg-disco/
|
||||
| | `- README.txt
|
||||
| |- stm32ldiscovery/
|
||||
|
@ -672,6 +672,11 @@ configs/stm32f746g-disco
|
||||
configs/stm32f746g-ws
|
||||
Waveshare STM32F746 development board featuring the STM32F746IG MCU.
|
||||
|
||||
configs/stm32l476-mdk
|
||||
Motorola Mods Development Board (MDK) features STM32L476ME MCU.
|
||||
The STM32L476ME is a Cortex-M4 optimised for low-power operation
|
||||
at up to 80MHz operation with 1024Kb Flash memory and 96+32Kb SRAM.
|
||||
|
||||
configs/stm32l476vg-disco
|
||||
STMicro STM32L476VG_DISCO development board featuring the STM32L476VG
|
||||
MCU. The STM32L476VG is a Cortex-M4 optimised for low-power operation
|
||||
|
@ -109,7 +109,7 @@
|
||||
#define GPIO_SPI2_SCK GPIO_SPI2_SCK_2 /* PB13 */
|
||||
#define GPIO_SPI2_NSS GPIO_SPI2_NSS_2 /* PB12 */
|
||||
|
||||
/***** BUTTONS ********/
|
||||
/* Buttons **************************************************************************/
|
||||
/* The board only has one button */
|
||||
|
||||
#define BUTTON_POWER 0
|
||||
@ -138,9 +138,9 @@ extern "C"
|
||||
* Name: stm32l4_boardinitialize
|
||||
*
|
||||
* Description:
|
||||
* All STM32L4 architectures must provide the following entry point. This entry point
|
||||
* is called early in the initialization -- after all memory has been configured
|
||||
* and mapped but before any devices have been initialized.
|
||||
* All STM32L4 architectures must provide the following entry point. This entry
|
||||
* point is called early in the initialization -- after all memory has been
|
||||
* configured and mapped but before any devices have been initialized.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
|
@ -16,7 +16,7 @@ CONFIG_HOST_LINUX=y
|
||||
#
|
||||
# Build Configuration
|
||||
#
|
||||
CONFIG_APPS_DIR="../apps"
|
||||
# CONFIG_APPS_DIR="../apps"
|
||||
CONFIG_BUILD_FLAT=y
|
||||
# CONFIG_BUILD_2PASS is not set
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* configs/stm32l476-mdk/scripts/l476rg.ld
|
||||
* configs/stm32l476-mdk/scripts/ld.script
|
||||
*
|
||||
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
|
@ -69,8 +69,6 @@ static const uint32_t g_buttons[NUM_BUTTONS] =
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
@ -132,22 +130,22 @@ uint8_t board_buttons(void)
|
||||
* Button support.
|
||||
*
|
||||
* Description:
|
||||
* board_button_initialize() must be called to initialize button resources. After
|
||||
* that, board_buttons() may be called to collect the current state of all
|
||||
* buttons or board_button_irq() may be called to register button interrupt
|
||||
* handlers.
|
||||
* board_button_initialize() must be called to initialize button resources.
|
||||
* After that, board_buttons() may be called to collect the current state
|
||||
* of all buttons or board_button_irq() may be called to register button
|
||||
* interrupt handlers.
|
||||
*
|
||||
* After board_button_initialize() has been called, board_buttons() may be called to
|
||||
* collect the state of all buttons. board_buttons() returns an 8-bit bit set
|
||||
* with each bit associated with a button. See the BUTTON_*_BIT
|
||||
* definitions in board.h for the meaning of each bit.
|
||||
* After board_button_initialize() has been called, board_buttons() may be
|
||||
* called to collect the state of all buttons. board_buttons() returns an
|
||||
* 8-bit bit set with each bit associated with a button. See the
|
||||
* BUTTON_*_BIT definitions in board.h for the meaning of each bit.
|
||||
*
|
||||
* board_button_irq() may be called to register an interrupt handler that will
|
||||
* be called when a button is depressed or released. The ID value is a
|
||||
* button enumeration value that uniquely identifies a button resource. See the
|
||||
* BUTTON_* definitions in board.h for the meaning of enumeration
|
||||
* value. The previous interrupt handler address is returned (so that it may
|
||||
* restored, if so desired).
|
||||
* board_button_irq() may be called to register an interrupt handler that
|
||||
* will be called when a button is depressed or released. The ID value
|
||||
* is a button enumeration value that uniquely identifies a button resource.
|
||||
* See the BUTTON_* definitions in board.h for the meaning of enumeration
|
||||
* value. The previous interrupt handler address is returned (so that it
|
||||
* may be restored, if so desired).
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@ -158,8 +156,10 @@ xcpt_t board_button_irq(int id, xcpt_t irqhandler)
|
||||
|
||||
if (id >= MIN_IRQBUTTON && id <= MAX_IRQBUTTON)
|
||||
{
|
||||
oldhandler = stm32l4_gpiosetevent(g_buttons[id], true, true, true, irqhandler);
|
||||
oldhandler = stm32l4_gpiosetevent(g_buttons[id], true, true, true,
|
||||
irqhandler);
|
||||
}
|
||||
|
||||
return oldhandler;
|
||||
}
|
||||
#endif
|
||||
|
@ -56,11 +56,11 @@
|
||||
*
|
||||
* Description:
|
||||
* I provided this module when I was doing some debugging of a problem I had with
|
||||
* clocking (it was helpful to do A/B tests). I'm leaving it here in the config
|
||||
* partially because I expect to have similar problems again as I develop more of
|
||||
* the various peripheral support, but also because it may become necessary in the
|
||||
* end for certain project configurations which have specialized clock configurations
|
||||
* that aren't appropriate to expose in the 'arch' default code.
|
||||
* clocking (it was helpful to do A/B tests). I'm leaving it here in the config
|
||||
* partially because I expect to have similar problems again as I develop more of
|
||||
* the various peripheral support, but also because it may become necessary in the
|
||||
* end for certain project configurations which have specialized clock
|
||||
* configurationsthat aren't appropriate to expose in the 'arch' default code.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user