Standardize the width of all comment boxes in C files
This commit is contained in:
parent
6cb20d3fba
commit
f696caa6f4
@ -245,7 +245,7 @@ static FAR struct spi_dev_s *sam_mmcsd_spiinitialize(void)
|
||||
* Description:
|
||||
* Initialize the SPI-based SD card.
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
int sam_sdinitialize(int minor)
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*****************************************************************************
|
||||
/****************************************************************************
|
||||
* configs/efm32-g8xx-stk/src/efm32_boot.c
|
||||
*
|
||||
* Copyright (C) 2014 Gregory Nutt. All rights reserved.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*****************************************************************************
|
||||
/****************************************************************************
|
||||
* configs/efm32gg-stk3700/src/efm32_boot.c
|
||||
*
|
||||
* Copyright (C) 2014-2015 Gregory Nutt. All rights reserved.
|
||||
|
@ -109,7 +109,7 @@ uint8_t board_buttons(void)
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
/****************************************************************************
|
||||
* Button support.
|
||||
*
|
||||
* Description:
|
||||
|
@ -63,7 +63,7 @@
|
||||
* called directly from application code, but only indirectly via the
|
||||
* (non-standard) boardctl() interface using the command BOARDIOC_INIT.
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
int board_app_initialize(void)
|
||||
{
|
||||
|
@ -321,7 +321,7 @@ int wireless_archinitialize(size_t max_rx_size)
|
||||
return OK;
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: C3000_wlan_init
|
||||
*
|
||||
* Description:
|
||||
|
@ -61,7 +61,7 @@
|
||||
* called directly from application code, but only indirectly via the
|
||||
* (non-standard) boardctl() interface using the command BOARDIOC_INIT.
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
int board_app_initialize(void)
|
||||
{
|
||||
|
@ -137,7 +137,7 @@ FAR struct lcd_dev_s *board_graphics_setup(unsigned int devno)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: tiva_spicmddata
|
||||
*
|
||||
* Description:
|
||||
@ -158,7 +158,7 @@ FAR struct lcd_dev_s *board_graphics_setup(unsigned int devno)
|
||||
* Returned Value:
|
||||
* None
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
int tiva_spicmddata(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool cmd)
|
||||
{
|
||||
|
@ -136,7 +136,7 @@ FAR struct lcd_dev_s *board_graphics_setup(unsigned int devno)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: tiva_spicmddata
|
||||
*
|
||||
* Description:
|
||||
@ -157,7 +157,7 @@ FAR struct lcd_dev_s *board_graphics_setup(unsigned int devno)
|
||||
* Returned Value:
|
||||
* None
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
int tiva_spicmddata(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool cmd)
|
||||
{
|
||||
|
@ -312,7 +312,7 @@ int wireless_archinitialize(size_t max_rx_size)
|
||||
return OK;
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: C3000_wlan_init
|
||||
*
|
||||
* Description:
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*****************************************************************************
|
||||
/****************************************************************************
|
||||
* configs/olimex-efm32g880f128-stk/src/efm32_boot.c
|
||||
*
|
||||
* Copyright (C) 2014-2015 Gregory Nutt. All rights reserved.
|
||||
|
@ -128,7 +128,7 @@ uint8_t board_buttons(void)
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
/****************************************************************************
|
||||
* Button interrupt support.
|
||||
*
|
||||
* Description:
|
||||
@ -149,7 +149,7 @@ uint8_t board_buttons(void)
|
||||
* value. The previous interrupt handler address is returned (so that it
|
||||
* may restored, if so desired).
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ARCH_IRQBUTTONS
|
||||
xcpt_t board_button_irq(int id, xcpt_t irqhandler)
|
||||
|
@ -83,7 +83,7 @@
|
||||
* - CONFIG_MMCSD=y, and
|
||||
* - CONFIG_SAM34_SPI0=y
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
int sam_sdinitialize(int minor)
|
||||
{
|
||||
|
@ -113,7 +113,7 @@ void sam_ledinit(void)
|
||||
* LEDs. If CONFIG_ARCH_LEDS is not defined, then the sam_setled() is
|
||||
* available to control the LED0 from user application logic.
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void sam_setled(int led, bool ledon)
|
||||
{
|
||||
@ -132,7 +132,7 @@ void sam_setled(int led, bool ledon)
|
||||
* available to control the LED0 from user application logic. NOTE: since
|
||||
* there is only a single LED on-board, this is function is not very useful.
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void sam_setleds(uint8_t ledset)
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*****************************************************************************
|
||||
/****************************************************************************
|
||||
* configs/sama5d3x-ek/src/nor_main.c
|
||||
*
|
||||
* Copyright (C) 2013-2014 Gregory Nutt. All rights reserved.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*****************************************************************************
|
||||
/****************************************************************************
|
||||
* configs/sama5d4-ek/src/at25_main.c
|
||||
*
|
||||
* Copyright (C) 2014 Gregory Nutt. All rights reserved.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*****************************************************************************
|
||||
/****************************************************************************
|
||||
* configs/sama5d4-ek/src/dram_main.c
|
||||
*
|
||||
* Copyright (C) 2014 Gregory Nutt. All rights reserved.
|
||||
|
@ -84,7 +84,7 @@
|
||||
* - CONFIG_MMCSD=y, and
|
||||
* - SAMDL_HAVE_SPI0=y (CONFIG_SAMDL_SERCOM0 && CONFIG_SAMDL_SERCOM0_ISSPI)
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
int sam_sdinitialize(int port, int minor)
|
||||
{
|
||||
|
@ -113,7 +113,7 @@ void sam_ledinit(void)
|
||||
* LEDs. If CONFIG_ARCH_LEDS is not defined, then the sam_setled() is
|
||||
* available to control the LED from user application logic.
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void sam_setled(int led, bool ledon)
|
||||
{
|
||||
@ -132,7 +132,7 @@ void sam_setled(int led, bool ledon)
|
||||
* available to control the LED from user application logic. NOTE: since
|
||||
* there is only a single LED on-board, this is function is not very useful.
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void sam_setleds(uint8_t ledset)
|
||||
{
|
||||
|
@ -84,7 +84,7 @@
|
||||
* - CONFIG_MMCSD=y, and
|
||||
* - SAMDL_HAVE_SPI0=y (CONFIG_SAMDL_SERCOM0 && CONFIG_SAMDL_SERCOM0_ISSPI)
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
int sam_sdinitialize(int port, int minor)
|
||||
{
|
||||
|
@ -113,7 +113,7 @@ void sam_ledinit(void)
|
||||
* LEDs. If CONFIG_ARCH_LEDS is not defined, then the sam_setled() is
|
||||
* available to control the LED from user application logic.
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void sam_setled(int led, bool ledon)
|
||||
{
|
||||
@ -132,7 +132,7 @@ void sam_setled(int led, bool ledon)
|
||||
* available to control the LED from user application logic. NOTE: since
|
||||
* there is only a single LED on-board, this is function is not very useful.
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void sam_setleds(uint8_t ledset)
|
||||
{
|
||||
|
@ -84,7 +84,7 @@
|
||||
* - CONFIG_MMCSD=y, and
|
||||
* - SAMDL_HAVE_SPI0=y (CONFIG_SAMDL_SERCOM0 && CONFIG_SAMDL_SERCOM0_ISSPI)
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
int sam_sdinitialize(int port, int minor)
|
||||
{
|
||||
|
@ -113,7 +113,7 @@ void sam_ledinit(void)
|
||||
* LEDs. If CONFIG_ARCH_LEDS is not defined, then the sam_setled() is
|
||||
* available to control the LED from user application logic.
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void sam_setled(int led, bool ledon)
|
||||
{
|
||||
@ -132,7 +132,7 @@ void sam_setled(int led, bool ledon)
|
||||
* available to control the LED from user application logic. NOTE: since
|
||||
* there is only a single LED on-board, this is function is not very useful.
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void sam_setleds(uint8_t ledset)
|
||||
{
|
||||
|
@ -312,7 +312,7 @@ int wireless_archinitialize(size_t max_rx_size)
|
||||
return OK;
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: C3000_wlan_init
|
||||
*
|
||||
* Description:
|
||||
|
@ -1,4 +1,4 @@
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* configs/stm32f429i-disco/src/stm32_ili93414ws.c
|
||||
*
|
||||
* Driver for the ILI9341 Single Chip LCD driver connected
|
||||
@ -39,11 +39,11 @@
|
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <nuttx/arch.h>
|
||||
@ -56,9 +56,9 @@
|
||||
#include <arch/board/board.h>
|
||||
#include "stm32f429i-disco.h"
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/* Display is connected at spi5 device */
|
||||
|
||||
@ -138,9 +138,9 @@
|
||||
# define lcdvdbg(x...)
|
||||
#endif
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Private Type Definition
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
struct ili93414ws_lcd_s
|
||||
{
|
||||
@ -175,9 +175,9 @@ struct ili93414ws_lcd_s
|
||||
};
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Private Function Protototypes
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/* Low-level spi transfer */
|
||||
|
||||
@ -212,17 +212,17 @@ static inline void stm32_ili93414ws_cmddata(
|
||||
|
||||
static void stm32_ili93414ws_spiconfig(FAR struct ili9341_lcd_s *lcd);
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
struct ili93414ws_lcd_s g_lcddev;
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_modifyreg
|
||||
*
|
||||
* Description:
|
||||
@ -236,7 +236,7 @@ struct ili93414ws_lcd_s g_lcddev;
|
||||
*
|
||||
* Returned Value:
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static void stm32_ili93414ws_modifyreg(
|
||||
uint32_t reg, uint16_t setbits, uint16_t clrbits)
|
||||
@ -249,7 +249,7 @@ static void stm32_ili93414ws_modifyreg(
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_modifycr1
|
||||
*
|
||||
* Description:
|
||||
@ -261,7 +261,7 @@ static void stm32_ili93414ws_modifyreg(
|
||||
*
|
||||
* Returned Value:
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static inline void stm32_ili93414ws_modifycr1(uint16_t setbits, uint16_t clrbits)
|
||||
{
|
||||
@ -269,7 +269,7 @@ static inline void stm32_ili93414ws_modifycr1(uint16_t setbits, uint16_t clrbits
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_modifycr2
|
||||
*
|
||||
* Description:
|
||||
@ -281,7 +281,7 @@ static inline void stm32_ili93414ws_modifycr1(uint16_t setbits, uint16_t clrbits
|
||||
*
|
||||
* Returned Value:
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static inline void stm32_ili93414ws_modifycr2(uint16_t setbits, uint16_t clrbits)
|
||||
{
|
||||
@ -289,7 +289,7 @@ static inline void stm32_ili93414ws_modifycr2(uint16_t setbits, uint16_t clrbits
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_spirecvmode
|
||||
*
|
||||
* Description:
|
||||
@ -299,7 +299,7 @@ static inline void stm32_ili93414ws_modifycr2(uint16_t setbits, uint16_t clrbits
|
||||
*
|
||||
* Returned Value:
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static void stm32_ili93414ws_spirecvmode(void)
|
||||
{
|
||||
@ -320,7 +320,7 @@ static void stm32_ili93414ws_spirecvmode(void)
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_spisendmode
|
||||
*
|
||||
* Description:
|
||||
@ -330,7 +330,7 @@ static void stm32_ili93414ws_spirecvmode(void)
|
||||
*
|
||||
* Returned Value:
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static void stm32_ili93414ws_spisendmode(void)
|
||||
{
|
||||
@ -344,7 +344,7 @@ static void stm32_ili93414ws_spisendmode(void)
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_spienable
|
||||
*
|
||||
* Description:
|
||||
@ -354,7 +354,7 @@ static void stm32_ili93414ws_spisendmode(void)
|
||||
*
|
||||
* Returned Value:
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static void stm32_ili93414ws_spienable(void)
|
||||
{
|
||||
@ -366,7 +366,7 @@ static void stm32_ili93414ws_spienable(void)
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_spidisable
|
||||
*
|
||||
* Description:
|
||||
@ -376,7 +376,7 @@ static void stm32_ili93414ws_spienable(void)
|
||||
*
|
||||
* Returned Value:
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static void stm32_ili93414ws_spidisable(void)
|
||||
{
|
||||
@ -388,7 +388,7 @@ static void stm32_ili93414ws_spidisable(void)
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_sndword
|
||||
*
|
||||
* Description:
|
||||
@ -399,7 +399,7 @@ static void stm32_ili93414ws_spidisable(void)
|
||||
*
|
||||
* Returned Value:
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static void stm32_ili93414ws_sndword(uint16_t wd)
|
||||
{
|
||||
@ -412,7 +412,7 @@ static void stm32_ili93414ws_sndword(uint16_t wd)
|
||||
while ((getreg16(ILI93414WS_SPI_SR) & SPI_SR_TXE) == 0);
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_sendblock
|
||||
*
|
||||
* Description:
|
||||
@ -426,7 +426,7 @@ static void stm32_ili93414ws_sndword(uint16_t wd)
|
||||
* Returned Value:
|
||||
* On success - OK
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static int stm32_ili93414ws_sendblock(FAR struct ili93414ws_lcd_s *lcd,
|
||||
const uint16_t *wd, uint16_t nwords)
|
||||
@ -501,7 +501,7 @@ static int stm32_ili93414ws_sendblock(FAR struct ili93414ws_lcd_s *lcd,
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_recvword
|
||||
*
|
||||
* Description:
|
||||
@ -513,7 +513,7 @@ static int stm32_ili93414ws_sendblock(FAR struct ili93414ws_lcd_s *lcd,
|
||||
* On success - The received word from the LCD Single Chip Driver.
|
||||
* On error - 0 (If timeout during receiving)
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static uint16_t stm32_ili93414ws_recvword(void)
|
||||
{
|
||||
@ -590,7 +590,7 @@ static uint16_t stm32_ili93414ws_recvword(void)
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_recvblock
|
||||
*
|
||||
* Description:
|
||||
@ -605,7 +605,7 @@ static uint16_t stm32_ili93414ws_recvword(void)
|
||||
* Returned Value:
|
||||
* OK - On Success
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static int stm32_ili93414ws_recvblock(FAR struct ili93414ws_lcd_s *lcd,
|
||||
uint16_t *wd, uint16_t nwords)
|
||||
@ -724,7 +724,7 @@ static int stm32_ili93414ws_recvblock(FAR struct ili93414ws_lcd_s *lcd,
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_set8bitmode
|
||||
*
|
||||
* Description:
|
||||
@ -735,7 +735,7 @@ static int stm32_ili93414ws_recvblock(FAR struct ili93414ws_lcd_s *lcd,
|
||||
*
|
||||
* Returned Value:
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static inline void stm32_ili93414ws_set8bitmode(
|
||||
FAR struct ili93414ws_lcd_s *dev)
|
||||
@ -748,7 +748,7 @@ static inline void stm32_ili93414ws_set8bitmode(
|
||||
|
||||
|
||||
#ifdef CONFIG_STM32F429I_DISCO_ILI9341_SPIBITS16
|
||||
/*******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_set16bitmode
|
||||
*
|
||||
* Description:
|
||||
@ -759,7 +759,7 @@ static inline void stm32_ili93414ws_set8bitmode(
|
||||
*
|
||||
* Returned Value:
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static inline void stm32_ili93414ws_set16bitmode(
|
||||
FAR struct ili93414ws_lcd_s *dev)
|
||||
@ -776,7 +776,7 @@ static inline void stm32_ili93414ws_set16bitmode(
|
||||
#endif
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_spiconfig
|
||||
*
|
||||
* Description:
|
||||
@ -787,7 +787,7 @@ static inline void stm32_ili93414ws_set16bitmode(
|
||||
*
|
||||
* Returned Value:
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static void stm32_ili93414ws_spiconfig(FAR struct ili9341_lcd_s *lcd)
|
||||
{
|
||||
@ -842,7 +842,7 @@ static void stm32_ili93414ws_spiconfig(FAR struct ili9341_lcd_s *lcd)
|
||||
irqrestore(flags);
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_cmddata
|
||||
*
|
||||
* Description:
|
||||
@ -854,7 +854,7 @@ static void stm32_ili93414ws_spiconfig(FAR struct ili9341_lcd_s *lcd)
|
||||
*
|
||||
* Returned Value:
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
#ifdef ILI93414WS_SPI
|
||||
static inline void stm32_ili93414ws_cmddata(
|
||||
FAR struct ili9341_lcd_s *lcd, bool cmd)
|
||||
@ -871,11 +871,11 @@ static inline void stm32_ili93414ws_cmddata(
|
||||
}
|
||||
#endif
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_backlight
|
||||
*
|
||||
* Description:
|
||||
@ -888,7 +888,7 @@ static inline void stm32_ili93414ws_cmddata(
|
||||
* Returned Value:
|
||||
* OK - On Success
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static int stm32_ili93414ws_backlight(FAR struct ili9341_lcd_s *lcd, int level)
|
||||
{
|
||||
@ -896,7 +896,7 @@ static int stm32_ili93414ws_backlight(FAR struct ili9341_lcd_s *lcd, int level)
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_select
|
||||
*
|
||||
* Description:
|
||||
@ -907,7 +907,7 @@ static int stm32_ili93414ws_backlight(FAR struct ili9341_lcd_s *lcd, int level)
|
||||
*
|
||||
* Returned Value:
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
#ifdef ILI93414WS_SPI
|
||||
static void stm32_ili93414ws_select(FAR struct ili9341_lcd_s *lcd)
|
||||
{
|
||||
@ -938,7 +938,7 @@ static void stm32_ili93414ws_select(FAR struct ili9341_lcd_s *lcd)
|
||||
}
|
||||
#endif
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_deselect
|
||||
*
|
||||
* Description:
|
||||
@ -949,7 +949,7 @@ static void stm32_ili93414ws_select(FAR struct ili9341_lcd_s *lcd)
|
||||
*
|
||||
* Returned Value:
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef ILI93414WS_SPI
|
||||
static void stm32_ili93414ws_deselect(FAR struct ili9341_lcd_s *lcd)
|
||||
@ -991,7 +991,7 @@ static void stm32_ili93414ws_deselect(FAR struct ili9341_lcd_s *lcd)
|
||||
#endif
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_sndcmd
|
||||
*
|
||||
* Description:
|
||||
@ -1004,7 +1004,7 @@ static void stm32_ili93414ws_deselect(FAR struct ili9341_lcd_s *lcd)
|
||||
* Returned Value:
|
||||
* On success - OK
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static int stm32_ili93414ws_sendcmd(
|
||||
FAR struct ili9341_lcd_s *lcd, const uint8_t cmd)
|
||||
@ -1026,7 +1026,7 @@ static int stm32_ili93414ws_sendcmd(
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_sendparam
|
||||
*
|
||||
* Description:
|
||||
@ -1039,7 +1039,7 @@ static int stm32_ili93414ws_sendcmd(
|
||||
* Returned Value:
|
||||
* OK - On Success
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static int stm32_ili93414ws_sendparam(FAR struct ili9341_lcd_s *lcd,
|
||||
const uint8_t param)
|
||||
@ -1056,7 +1056,7 @@ static int stm32_ili93414ws_sendparam(FAR struct ili9341_lcd_s *lcd,
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_sendgram
|
||||
*
|
||||
* Description:
|
||||
@ -1070,7 +1070,7 @@ static int stm32_ili93414ws_sendparam(FAR struct ili9341_lcd_s *lcd,
|
||||
* Returned Value:
|
||||
* OK - On Success
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static int stm32_ili93414ws_sendgram(FAR struct ili9341_lcd_s *lcd,
|
||||
const uint16_t *wd, uint32_t nwords)
|
||||
@ -1087,7 +1087,7 @@ static int stm32_ili93414ws_sendgram(FAR struct ili9341_lcd_s *lcd,
|
||||
};
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_recvparam
|
||||
*
|
||||
* Description:
|
||||
@ -1100,7 +1100,7 @@ static int stm32_ili93414ws_sendgram(FAR struct ili9341_lcd_s *lcd,
|
||||
* Returned Value:
|
||||
* OK - On Success
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static int stm32_ili93414ws_recvparam(FAR struct ili9341_lcd_s *lcd,
|
||||
uint8_t *param)
|
||||
@ -1118,7 +1118,7 @@ static int stm32_ili93414ws_recvparam(FAR struct ili9341_lcd_s *lcd,
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili93414ws_recvgram
|
||||
*
|
||||
* Description:
|
||||
@ -1132,7 +1132,7 @@ static int stm32_ili93414ws_recvparam(FAR struct ili9341_lcd_s *lcd,
|
||||
* Returned Value:
|
||||
* OK - On Success
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static int stm32_ili93414ws_recvgram(FAR struct ili9341_lcd_s *lcd,
|
||||
uint16_t *wd, uint32_t nwords)
|
||||
@ -1162,7 +1162,7 @@ static int stm32_ili93414ws_recvgram(FAR struct ili9341_lcd_s *lcd,
|
||||
* for the specified ILI9341 LCD Single chip driver connected as 4 wire serial
|
||||
* (spi). NULL is returned on any failure.
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef ILI93414WS_SPI
|
||||
FAR struct ili9341_lcd_s *stm32_ili93414ws_initialize(void)
|
||||
|
@ -279,9 +279,9 @@
|
||||
#define ILI9341_YRES BOARD_LTDC_HEIGHT
|
||||
#endif /* CONFIG_STM32F429I_DISCO_ILI9341_FBIFACE */
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_STM32F429I_DISCO_ILI9341_LCDIFACE
|
||||
FAR struct lcd_dev_s *g_lcd = NULL;
|
||||
@ -296,13 +296,13 @@ FAR struct ili9341_lcd_s *g_ltdc = NULL;
|
||||
************************************************************************************/
|
||||
|
||||
#ifdef CONFIG_STM32F429I_DISCO_ILI9341_FBIFACE
|
||||
/*******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_ili9341_initialize
|
||||
*
|
||||
* Description:
|
||||
* Initialize the ili9341 LCD controller to the RGB interface mode.
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static int stm32_ili9341_initialize(void)
|
||||
{
|
||||
@ -512,7 +512,7 @@ int board_lcd_initialize(void)
|
||||
#endif /* CONFIG_STM32F429I_DISCO_ILI9341_LCDIFACE */
|
||||
|
||||
#ifdef CONFIG_STM32_LTDC
|
||||
/*******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: up_fbinitialize
|
||||
*
|
||||
* Description:
|
||||
@ -521,7 +521,7 @@ int board_lcd_initialize(void)
|
||||
* Return:
|
||||
* OK - On succes
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
int up_fbinitialize(void)
|
||||
{
|
||||
@ -546,7 +546,7 @@ int up_fbinitialize(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: up_fbgetvplane
|
||||
*
|
||||
* Description:
|
||||
@ -558,27 +558,27 @@ int up_fbinitialize(void)
|
||||
* Return:
|
||||
* Reference to the fb_vtable_s on success otherwise NULL.
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
FAR struct fb_vtable_s *up_fbgetvplane(int vplane)
|
||||
{
|
||||
return stm32_ltdcgetvplane(vplane);
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: up_uninitialize
|
||||
*
|
||||
* Description:
|
||||
* The generic method to uninitialize the framebuffer device
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void fb_uninitialize(void)
|
||||
{
|
||||
stm32_ltdcuninitialize();
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: up_ltdcgetlayer
|
||||
*
|
||||
* Description:
|
||||
@ -588,7 +588,7 @@ void fb_uninitialize(void)
|
||||
* Parameter:
|
||||
* lid - The specific layer identifier
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_STM32_LTDC_INTERFACE
|
||||
FAR struct ltdc_layer_s *up_ltdcgetlayer(int lid)
|
||||
|
@ -291,7 +291,7 @@ int stm32_spi5cmddata(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool cmd)
|
||||
|
||||
#endif /* CONFIG_SPI_CMDDATA */
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: stm32_spi5initialize
|
||||
*
|
||||
* Description:
|
||||
@ -310,7 +310,7 @@ int stm32_spi5cmddata(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool cmd)
|
||||
* Returned Value:
|
||||
* Valid SPI device structure reference on success; a NULL on failure
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_STM32_SPI5
|
||||
FAR struct spi_dev_s *stm32_spi5initialize(void)
|
||||
|
@ -90,7 +90,7 @@ void stm32_ledinit(void)
|
||||
* LEDs. If CONFIG_ARCH_LEDS is not defined, then the stm32_setled() is
|
||||
* available to control the LED from user application logic.
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void stm32_setled(int led, bool ledon)
|
||||
{
|
||||
@ -109,7 +109,7 @@ void stm32_setled(int led, bool ledon)
|
||||
* available to control the LED from user application logic. NOTE: since
|
||||
* there is only a single LED on-board, this is function is not very useful.
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void stm32_setleds(uint8_t ledset)
|
||||
{
|
||||
|
@ -63,7 +63,7 @@
|
||||
* called directly from application code, but only indirectly via the
|
||||
* (non-standard) boardctl() interface using the command BOARDIOC_INIT.
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
int board_app_initialize(void)
|
||||
{
|
||||
|
@ -160,7 +160,7 @@ void board_lcd_uninitialize(void)
|
||||
/* TO-FIX */
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: lpc17_spicmddata
|
||||
*
|
||||
* Description:
|
||||
@ -181,7 +181,7 @@ void board_lcd_uninitialize(void)
|
||||
* Returned Value:
|
||||
* None
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
int lpc17_ssp0cmddata(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool cmd)
|
||||
{
|
||||
|
@ -174,12 +174,12 @@ uint8_t lpc17_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SPI_CMDDATA
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: lpc17_spicmddata
|
||||
*
|
||||
* Description: Dummy Function
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
int lpc17_spicmddata(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool cmd)
|
||||
{
|
||||
|
@ -160,12 +160,12 @@ uint8_t lpc17_ssp1status(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
|
||||
return SPI_STATUS_PRESENT;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: lpc17_ssp1cmddata
|
||||
*
|
||||
* Description: Dummy Function
|
||||
*
|
||||
******************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_SPI_CMDDATA
|
||||
int weak_function lpc17_ssp1cmddata(FAR struct spi_dev_s *dev,
|
||||
|
@ -56,7 +56,7 @@
|
||||
* called directly from application code, but only indirectly via the
|
||||
* (non-standard) boardctl() interface using the command BOARDIOC_INIT.
|
||||
*
|
||||
*****************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
int board_app_initialize(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user