configs/stm32vldiscovery: Changed the status LED to be the green one as mentioned in the README file. Removed the global array for buttons and replace it with the only button. Improve defconfig for the nsh configuration.

This commit is contained in:
Ouss4 2018-07-27 09:14:19 -06:00 committed by Gregory Nutt
parent cb5b8a197d
commit 01eec62598
3 changed files with 14 additions and 12 deletions

View File

@ -19,25 +19,25 @@ CONFIG_ARCH_BOARD_STM32VL_DISCOVERY=y
CONFIG_ARCH_CHIP_STM32=y
CONFIG_ARCH_CHIP_STM32F100RB=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_ARMV7M_TOOLCHAIN_CODESOURCERYW=y
CONFIG_BOARD_LOOPSPERMSEC=2398
CONFIG_BUILTIN=y
CONFIG_DEBUG_FULLOPT=y
CONFIG_DEBUG_SYMBOLS=y
CONFIG_DEFAULT_SMALL=y
CONFIG_DISABLE_POLL=y
CONFIG_EXAMPLES_NSH=y
CONFIG_FAT_LCNAMES=y
CONFIG_FAT_LFN=y
CONFIG_FS_FAT=y
CONFIG_HOST_WINDOWS=y
CONFIG_IDLETHREAD_STACKSIZE=128
CONFIG_INTELHEX_BINARY=y
CONFIG_MAX_TASKS=16
CONFIG_MAX_TASKS=4
CONFIG_MAX_WDOGPARMS=2
CONFIG_NFILE_DESCRIPTORS=8
CONFIG_NFILE_STREAMS=8
CONFIG_NFILE_DESCRIPTORS=4
CONFIG_NFILE_STREAMS=4
CONFIG_NSH_BUILTIN_APPS=y
CONFIG_PREALLOC_MQ_MSGS=4
CONFIG_PREALLOC_TIMERS=4
CONFIG_PREALLOC_TIMERS=0
CONFIG_PREALLOC_WDOGS=4
CONFIG_PTHREAD_STACK_DEFAULT=128
CONFIG_PTHREAD_STACK_MIN=128
CONFIG_RAM_SIZE=8192
CONFIG_RAM_START=0x20000000
CONFIG_RAW_BINARY=y
@ -45,6 +45,7 @@ CONFIG_RR_INTERVAL=200
CONFIG_RTC=y
CONFIG_SCHED_WAITPID=y
CONFIG_SDCLONE_DISABLE=y
CONFIG_STDIO_BUFFER_SIZE=0
CONFIG_STM32_BKP=y
CONFIG_STM32_JTAG_FULL_ENABLE=y
CONFIG_STM32_PWR=y
@ -54,5 +55,6 @@ CONFIG_TASK_NAME_SIZE=0
CONFIG_USART1_RXBUFSIZE=128
CONFIG_USART1_SERIAL_CONSOLE=y
CONFIG_USART1_TXBUFSIZE=128
CONFIG_USERMAIN_STACKSIZE=768
CONFIG_USER_ENTRYPOINT="nsh_main"
CONFIG_WDOG_INTRESERVE=0

View File

@ -79,7 +79,7 @@ uint32_t board_buttons(void)
{
uint32_t ret = 0;
ret = (stm32_gpioread(g_buttons[i]) == false ? 1 : 0);
ret = (stm32_gpioread(GPIO_BTN_0) == false ? 1 : 0);
return ret;
}

View File

@ -41,10 +41,10 @@
* Pre-processor Definitions
****************************************************************************/
/* LED - assume it is on PC8 */
/* LED - assume it is on PC9 */
#define GPIO_LED1 (GPIO_OUTPUT | GPIO_CNF_OUTPP | GPIO_MODE_50MHz | \
GPIO_OUTPUT_CLEAR | GPIO_PORTC | GPIO_PIN8)
GPIO_OUTPUT_CLEAR | GPIO_PORTC | GPIO_PIN9)
/* BUTTON - assume it is on PA0 */