Purely cosmetic change from review of last PR
This commit is contained in:
parent
fafc56ae80
commit
78e08bbeea
@ -264,7 +264,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype)
|
|||||||
* water marks.
|
* water marks.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
stack_base = (uintptr_t)tcb->stack_alloc_ptr + sizeof(struct tls_info_s);
|
stack_base = (uintptr_t)tcb->stack_alloc_ptr + sizeof(struct tls_info_s);
|
||||||
stack_size = tcb->adj_stack_size - sizeof(struct tls_info_s);
|
stack_size = tcb->adj_stack_size - sizeof(struct tls_info_s);
|
||||||
up_stack_color((FAR void *)stack_base, stack_size);
|
up_stack_color((FAR void *)stack_base, stack_size);
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* configs/nucleo-l476rg/include/board.h
|
* configs/nucleo-l476rg/include/board.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
/* Values defined in arch/arm/src/stm32l4/chip/stm32l4x6xx_dma.h */
|
/* Values defined in arch/arm/src/stm32l4/chip/stm32l4x6xx_dma.h */
|
||||||
|
|
||||||
#define DMACHAN_SDMMC DMACHAN_SDMMC_1 /* 2 choices */
|
#define DMACHAN_SDMMC DMACHAN_SDMMC_1 /* 2 choices */
|
||||||
|
|
||||||
#define DMACHAN_SPI1_RX DMACHAN_SPI1_RX_1 /* 2 choices */
|
#define DMACHAN_SPI1_RX DMACHAN_SPI1_RX_1 /* 2 choices */
|
||||||
#define DMACHAN_SPI1_TX DMACHAN_SPI1_TX_1 /* 2 choices */
|
#define DMACHAN_SPI1_TX DMACHAN_SPI1_TX_1 /* 2 choices */
|
||||||
@ -109,22 +109,29 @@
|
|||||||
* but are normally-high GPIOs.
|
* but are normally-high GPIOs.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define GPIO_I2C1_SCL (GPIO_I2C1_SCL_2|GPIO_OPENDRAIN|GPIO_SPEED_50MHz|GPIO_OUTPUT_SET)
|
#define GPIO_I2C1_SCL \
|
||||||
#define GPIO_I2C1_SDA (GPIO_I2C1_SDA_2|GPIO_OPENDRAIN|GPIO_SPEED_50MHz|GPIO_OUTPUT_SET)
|
(GPIO_I2C1_SCL_2 | GPIO_OPENDRAIN | GPIO_SPEED_50MHz | GPIO_OUTPUT_SET)
|
||||||
|
#define GPIO_I2C1_SDA \
|
||||||
|
(GPIO_I2C1_SDA_2 | GPIO_OPENDRAIN | GPIO_SPEED_50MHz | GPIO_OUTPUT_SET)
|
||||||
#define GPIO_I2C1_SCL_GPIO \
|
#define GPIO_I2C1_SCL_GPIO \
|
||||||
(GPIO_OUTPUT|GPIO_OPENDRAIN|GPIO_SPEED_50MHz|GPIO_OUTPUT_SET|GPIO_PORTB|GPIO_PIN8)
|
(GPIO_OUTPUT | GPIO_OPENDRAIN | GPIO_SPEED_50MHz | GPIO_OUTPUT_SET | \
|
||||||
|
GPIO_PORTB | GPIO_PIN8)
|
||||||
#define GPIO_I2C1_SDA_GPIO \
|
#define GPIO_I2C1_SDA_GPIO \
|
||||||
(GPIO_OUTPUT|GPIO_OPENDRAIN|GPIO_SPEED_50MHz|GPIO_OUTPUT_SET|GPIO_PORTB|GPIO_PIN9)
|
(GPIO_OUTPUT | GPIO_OPENDRAIN | GPIO_SPEED_50MHz | GPIO_OUTPUT_SET | \
|
||||||
|
GPIO_PORTB | GPIO_PIN9)
|
||||||
|
|
||||||
#define GPIO_I2C2_SCL (GPIO_I2C2_SCL_1|GPIO_OPENDRAIN|GPIO_SPEED_50MHz|GPIO_OUTPUT_SET)
|
#define GPIO_I2C2_SCL \
|
||||||
#define GPIO_I2C2_SDA (GPIO_I2C2_SDA_1|GPIO_OPENDRAIN|GPIO_SPEED_50MHz|GPIO_OUTPUT_SET)
|
(GPIO_I2C2_SCL_1 | GPIO_OPENDRAIN | GPIO_SPEED_50MHz | GPIO_OUTPUT_SET)
|
||||||
|
#define GPIO_I2C2_SDA \
|
||||||
|
(GPIO_I2C2_SDA_1 | GPIO_OPENDRAIN | GPIO_SPEED_50MHz | GPIO_OUTPUT_SET)
|
||||||
#define GPIO_I2C2_SCL_GPIO \
|
#define GPIO_I2C2_SCL_GPIO \
|
||||||
(GPIO_OUTPUT|GPIO_OPENDRAIN|GPIO_SPEED_50MHz|GPIO_OUTPUT_SET|GPIO_PORTB|GPIO_PIN10)
|
(GPIO_OUTPUT | GPIO_OPENDRAIN | GPIO_SPEED_50MHz | GPIO_OUTPUT_SET | \
|
||||||
|
GPIO_PORTB | GPIO_PIN10)
|
||||||
#define GPIO_I2C2_SDA_GPIO \
|
#define GPIO_I2C2_SDA_GPIO \
|
||||||
(GPIO_OUTPUT|GPIO_OPENDRAIN|GPIO_SPEED_50MHz|GPIO_OUTPUT_SET|GPIO_PORTB|GPIO_PIN11)
|
(GPIO_OUTPUT | GPIO_OPENDRAIN | GPIO_SPEED_50MHz | GPIO_OUTPUT_SET | \
|
||||||
|
GPIO_PORTB | GPIO_PIN11)
|
||||||
|
|
||||||
/* SPI
|
/* SPI */
|
||||||
*/
|
|
||||||
|
|
||||||
#define GPIO_SPI1_MISO GPIO_SPI1_MISO_1
|
#define GPIO_SPI1_MISO GPIO_SPI1_MISO_1
|
||||||
#define GPIO_SPI1_MOSI GPIO_SPI1_MOSI_1
|
#define GPIO_SPI1_MOSI GPIO_SPI1_MOSI_1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* configs/nucleo-l476rg/src/stm32_appinit.c
|
* configs/nucleo-l476rg/src/stm32_appinit.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -123,7 +123,7 @@ int board_app_initialize(uintptr_t arg)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_PROC
|
#ifdef HAVE_PROC
|
||||||
/* mount the proc filesystem */
|
/* Mount the proc filesystem */
|
||||||
|
|
||||||
syslog(LOG_INFO, "Mounting procfs to /proc\n");
|
syslog(LOG_INFO, "Mounting procfs to /proc\n");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user