diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-05-26 12:42:22 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-05-26 12:42:22 -0600 |
commit | 47ed1cf8c44bf25c4e36955911504367431d6724 (patch) | |
tree | d88a212f29ce4b9591d22ef04f6bca3b77eb0d5b /nuttx/configs/stm32ldiscovery | |
parent | 5049717590dea3c2bb216409887eff9ec4f2d535 (diff) | |
download | px4-nuttx-47ed1cf8c44bf25c4e36955911504367431d6724.tar.gz px4-nuttx-47ed1cf8c44bf25c4e36955911504367431d6724.tar.bz2 px4-nuttx-47ed1cf8c44bf25c4e36955911504367431d6724.zip |
Mis SLCD-related cleanup, documentation, bugfixes
Diffstat (limited to 'nuttx/configs/stm32ldiscovery')
-rw-r--r-- | nuttx/configs/stm32ldiscovery/README.txt | 12 | ||||
-rw-r--r-- | nuttx/configs/stm32ldiscovery/src/stm32_lcd.c | 2 |
2 files changed, 8 insertions, 6 deletions
diff --git a/nuttx/configs/stm32ldiscovery/README.txt b/nuttx/configs/stm32ldiscovery/README.txt index 88234b761..2da098cc6 100644 --- a/nuttx/configs/stm32ldiscovery/README.txt +++ b/nuttx/configs/stm32ldiscovery/README.txt @@ -788,13 +788,13 @@ Configuration sub-directories 4. To enable SLCD support: Board Selection: - CONFIG_ARCH_LEDS=n : Disable LED support + CONFIG_ARCH_LEDS=n : Disable board LED support Library Routines: CONFIG_LIB_SLCDCODEC=y : Enable the SLCD CODEC - System Type: - CONFIG_STM32_LCD=y : Enable the SLCD + System Type -> STM32 Peripheral Support: + CONFIG_STM32_LCD=y : Enable the Segment LCD When the LCD is enabled and the LEDs are disabled, the USART1 serial console will automaticall move to PB6 and PB7 (you will get @@ -811,9 +811,11 @@ Configuration sub-directories CONFIG_BINFMT_DISABLE=n : Don't disable binary support CONFIG_BUILTIN=y : Enable support for built-in binaries - Application Configuration: + Application Configuration -> NSH Library: CONFIG_NSH_BUILTIN_APPS=y : Enable builtin apps in NSH CONFIG_NSH_ARCHINIT=y : Needed to initialize the SLCD + + Application Configuration -> Examples: CONFIG_EXAMPLES_SLCD=y : Enable apps/examples/slcd To enable LCD debug output: @@ -821,7 +823,7 @@ Configuration sub-directories Device Drivers: CONFIG_LCD=y : (Needed to enable LCD debug) - Build Setup: + Build Setup -> Debug Options: CONFIG_DEBUG=y : Enable debug features CONFIG_DEBUG_VERBOSE=y : Enable LCD debug diff --git a/nuttx/configs/stm32ldiscovery/src/stm32_lcd.c b/nuttx/configs/stm32ldiscovery/src/stm32_lcd.c index d843fba7e..789c2694a 100644 --- a/nuttx/configs/stm32ldiscovery/src/stm32_lcd.c +++ b/nuttx/configs/stm32ldiscovery/src/stm32_lcd.c @@ -935,7 +935,7 @@ static void slcd_action(enum slcdcode_e code, uint8_t count) * number of characters to move. */ - nchars = SLCD_CHARS - g_slcdstate.curpos; + nchars = SLCD_NCHARS - g_slcdstate.curpos; nmove = MIN(nchars, count) - 1; /* Move all characters after the current cursor position left by 'nmove' characters */ |