Review/update of the TM4C1294 Launchpad code

This commit is contained in:
Gregory Nutt 2015-02-11 18:27:38 -06:00
parent 7c61b61adf
commit 85f1eecc51
19 changed files with 61 additions and 20 deletions

View File

@ -1334,7 +1334,7 @@
<li><a href="#armcortexa8">ARM Cortex-A8</a> (1)</li> <li><a href="#armcortexa8">ARM Cortex-A8</a> (1)</li>
<li><a href="#armcortexm0">ARM Cortex-M0/M0+</a> (4)</li> <li><a href="#armcortexm0">ARM Cortex-M0/M0+</a> (4)</li>
<li><a href="#armcortexm3">ARM Cortex-M3</a> (30)</li> <li><a href="#armcortexm3">ARM Cortex-M3</a> (30)</li>
<li><a href="#armcortexm4">ARM Cortex-M4</a> (18)</li> <li><a href="#armcortexm4">ARM Cortex-M4</a> (19)</li>
</ul> </ul>
<li>Atmel AVR <li>Atmel AVR
<ul> <ul>
@ -1505,6 +1505,7 @@
<li><a href="#tilms9b96">TI/Stellaris LM3S9B96</a> <small>(ARM Cortex-M3)</small></li> <li><a href="#tilms9b96">TI/Stellaris LM3S9B96</a> <small>(ARM Cortex-M3)</small></li>
<li><a href="#tilm4f120x">TI/Stellaris LM4F120x</a> <small>(ARM Cortex-M4)</small></li> <li><a href="#tilm4f120x">TI/Stellaris LM4F120x</a> <small>(ARM Cortex-M4)</small></li>
<li><a href="#titm4c123g">TI/Tiva TM4C123G</a> <small>(ARM Cortex-M4)</small></li> <li><a href="#titm4c123g">TI/Tiva TM4C123G</a> <small>(ARM Cortex-M4)</small></li>
<li><a href="#titm4c1294">TI/Tiva TM4C1294</a> <small>(ARM Cortex-M4)</small></li>
<li><a href="#titm4c129x">TI/Tiva TM4C129X</a> <small>(ARM Cortex-M4)</small></li> <li><a href="#titm4c129x">TI/Tiva TM4C129X</a> <small>(ARM Cortex-M4)</small></li>
<li><a href="#ticc3200launchpad">TI/Tiva CC3200 Launchpad</a> <small>(ARM Cortex-M4)</small></li> <li><a href="#ticc3200launchpad">TI/Tiva CC3200 Launchpad</a> <small>(ARM Cortex-M4)</small></li>
</ul> </ul>
@ -3548,6 +3549,32 @@ nsh>
<td><br></td> <td><br></td>
<td><hr></td> <td><hr></td>
</tr> </tr>
<tr>
<td><br></td>
<td>
<p>
<a name="titm4c1294"><b>TI Tiva TM4C1294</b>.</a>
This port uses the TI Tiva TM4C1294 LaunchPad.
</p>
<ul>
<p>
<b>STATUS:</b>
<ul>
<li>
Support for the TI Tiva TM4C123G Launchpad was contributed by Frank Sautter and was released in NuttX 7.9.
This basic board support included a configuration for the NuttShell <a href="http://www.nuttx.org/Documentation/NuttShell.html">NSH</a>) and a configuration for testing IPv6.
</li>
</ul>
</p>
Refer to the TM4C1294 LaunchPad board <a href="http://sourceforge.net/p/nuttx/git/ci/master/tree/nuttx/configs/tm4c1294-launchpad/README.txt">README</a> file for more detailed information about this port.
</p>
</ul>
</td>
</tr>
<tr>
<td><br></td>
<td><hr></td>
</tr>
<tr> <tr>
<td><br></td> <td><br></td>
<td> <td>

View File

@ -236,6 +236,8 @@
| | | `- <a href="http://sourceforge.net/p/nuttx/git/ci/master/tree/nuttx/configs/teensy/README.txt"><b><i>README.txt</i></b></a> | | | `- <a href="http://sourceforge.net/p/nuttx/git/ci/master/tree/nuttx/configs/teensy/README.txt"><b><i>README.txt</i></b></a>
| | |- tm4c123g-launchpad/ | | |- tm4c123g-launchpad/
| | | `- <a href="http://sourceforge.net/p/nuttx/git/ci/master/tree/nuttx/configs/tm4c123g-launchpad/README.txt"><b><i>README.txt</i></b></a> | | | `- <a href="http://sourceforge.net/p/nuttx/git/ci/master/tree/nuttx/configs/tm4c123g-launchpad/README.txt"><b><i>README.txt</i></b></a>
| | |- tm4c1294-launchpad/
| | | `- <a href="http://sourceforge.net/p/nuttx/git/ci/master/tree/nuttx/configs/tm4c1294-launchpad/README.txt"><b><i>README.txt</i></b></a>
| | |- twr-k60n512/ | | |- twr-k60n512/
| | | `- <a href="http://sourceforge.net/p/nuttx/git/ci/master/tree/nuttx/configs/twr-k60n512/README.txt"><b><i>README.txt</i></b></a> | | | `- <a href="http://sourceforge.net/p/nuttx/git/ci/master/tree/nuttx/configs/twr-k60n512/README.txt"><b><i>README.txt</i></b></a>
| | |- ubw32/ | | |- ubw32/

View File

@ -1295,6 +1295,8 @@ nuttx
| | `- README.txt | | `- README.txt
| |- tm4c123g-launchpad/ | |- tm4c123g-launchpad/
| | `- README.txt | | `- README.txt
| |- tm4c1294-launchpad/
| | `- README.txt
| |- twr-k60n512/ | |- twr-k60n512/
| | `- README.txt | | `- README.txt
| |- ubw32/ | |- ubw32/

View File

@ -1460,6 +1460,9 @@ endif
if ARCH_BOARD_TM4C123G_LAUNCHPAD if ARCH_BOARD_TM4C123G_LAUNCHPAD
source "configs/tm4c123g-launchpad/Kconfig" source "configs/tm4c123g-launchpad/Kconfig"
endif endif
if ARCH_BOARD_TM4C1294_LAUNCHPAD
source "configs/tm4c1294-launchpad/Kconfig"
endif
if ARCH_BOARD_CC3200_LAUNCHPAD if ARCH_BOARD_CC3200_LAUNCHPAD
source "configs/cc3200-launchpad/Kconfig" source "configs/cc3200-launchpad/Kconfig"
endif endif

View File

@ -589,6 +589,12 @@ configs/tm4c123g-launchpad
platform for ARM® Cortex™-M4F-based microcontrollers from Texas platform for ARM® Cortex™-M4F-based microcontrollers from Texas
Instruments. Instruments.
configs/tm4c1294-launchpad
This is the port of NuttX to the Tiva® TM4C1294 LaunchPad. The
Tiva® TM4C123G LaunchPad Evaluation Board is a low-cost evaluation
platform for ARM® Cortex™-M4F-based microcontrollers from Texas
Instruments.
configs/twr-k60n512 configs/twr-k60n512
Kinetis K60 Cortex-M4 MCU. This port uses the FreeScale TWR-K60N512 Kinetis K60 Cortex-M4 MCU. This port uses the FreeScale TWR-K60N512
development board. development board.

View File

@ -1,7 +1,7 @@
/************************************************************************************ /************************************************************************************
* configs/tm4c1294-launchpad/include/board.h * configs/tm4c1294-launchpad/include/board.h
* *
* Copyright (C) 2014 Gregory Nutt. All rights reserved. * Copyright (C) 2015 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

View File

@ -1,5 +1,5 @@
############################################################################ ############################################################################
# configs/dk-tm4c129x/ipv6/Make.defs # configs/tm4c1294-launchpad/ipv6/Make.defs
# #
# Copyright (C) 2015 Gregory Nutt. All rights reserved. # Copyright (C) 2015 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org> # Author: Gregory Nutt <gnutt@nuttx.org>

View File

@ -1,7 +1,7 @@
############################################################################ ############################################################################
# configs/tm4c1294-launchpad/nsh/Make.defs # configs/tm4c1294-launchpad/nsh/Make.defs
# #
# Copyright (C) 2014 Gregory Nutt. All rights reserved. # Copyright (C) 2015 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

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# configs/tm4c1294-launchpad/nsh/setenv.sh # configs/tm4c1294-launchpad/nsh/setenv.sh
# #
# Copyright (C) 2014 Gregory Nutt. All rights reserved. # Copyright (C) 2015 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

View File

@ -1,7 +1,7 @@
/**************************************************************************** /****************************************************************************
* configs/tm4c1294-launchpad/scripts/ld.script * configs/tm4c1294-launchpad/scripts/ld.script
* *
* Copyright (C) 2014 Gregory Nutt. All rights reserved. * Copyright (C) 2015 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

View File

@ -1,7 +1,7 @@
############################################################################ ############################################################################
# configs/dk-tm4c129x/src/Makefile # configs/tm4c1294-launchpad/src/Makefile
# #
# Copyright (C) 2014 Gregory Nutt. All rights reserved. # Copyright (C) 2015 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

View File

@ -1,7 +1,7 @@
/************************************************************************************ /************************************************************************************
* configs/tm4c1294-launchpad/src/ek-tm4c1294xl.h * configs/tm4c1294-launchpad/src/ek-tm4c1294xl.h
* *
* Copyright (C) 2014 Gregory Nutt. All rights reserved. * Copyright (C) 2015 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
@ -177,4 +177,3 @@ int tiva_timer_initialize(void);
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
#endif /* __CONFIGS_TM4C1294_LAUNCHPAD_TM4C1294_LAUNCHPAD_H */ #endif /* __CONFIGS_TM4C1294_LAUNCHPAD_TM4C1294_LAUNCHPAD_H */

View File

@ -1,7 +1,7 @@
/**************************************************************************** /****************************************************************************
* configs/tm4c1294-launchpad/src/tm4c_autoleds.c * configs/tm4c1294-launchpad/src/tm4c_autoleds.c
* *
* Copyright (C) 2014 Gregory Nutt. All rights reserved. * Copyright (C) 2015 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

View File

@ -1,7 +1,7 @@
/**************************************************************************** /****************************************************************************
* config/tm4c1294-launchpad/src/tm4c_bringup.c * config/tm4c1294-launchpad/src/tm4c_bringup.c
* *
* Copyright (C) 2014 Gregory Nutt. All rights reserved. * Copyright (C) 2015 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

View File

@ -1,7 +1,7 @@
/**************************************************************************** /****************************************************************************
* configs/tm4c1294-launchpad/src/tm4c_buttons.c * configs/tm4c1294-launchpad/src/tm4c_buttons.c
* *
* Copyright (C) 2014 Gregory Nutt. All rights reserved. * Copyright (C) 2015 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

View File

@ -1,7 +1,7 @@
/**************************************************************************** /****************************************************************************
* config/tm4c1294-launchpad/src/tm4c_nsh.c * config/tm4c1294-launchpad/src/tm4c_nsh.c
* *
* Copyright (C) 2014 Gregory Nutt. All rights reserved. * Copyright (C) 2015 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

View File

@ -1,7 +1,7 @@
/************************************************************************************ /************************************************************************************
* configs/tm4c1294-launchpad/src/tm4c_ssi.c * configs/tm4c1294-launchpad/src/tm4c_ssi.c
* *
* Copyright (C) 2014 Gregory Nutt. All rights reserved. * Copyright (C) 2015 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
@ -51,7 +51,7 @@
#include "tiva_gpio.h" #include "tiva_gpio.h"
#include "tm4c1294-launchpad.h" #include "tm4c1294-launchpad.h"
/* The DK-TM4C129X microSD CS is on SSI0 */ /* The TM4C1294-Launchpad microSD CS is on SSI0 */
#if defined(CONFIG_TIVA_SSI0) || defined(CONFIG_TIVA_SSI1) #if defined(CONFIG_TIVA_SSI0) || defined(CONFIG_TIVA_SSI1)
@ -101,7 +101,7 @@ void weak_function tm4c_ssiinitialize(void)
* The external functions, tiva_spiselect and tiva_spistatus must be provided * The external functions, tiva_spiselect and tiva_spistatus must be provided
* by board-specific logic. The are implementations of the select and status * by board-specific logic. The are implementations of the select and status
* methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi/spi.h). * methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi/spi.h).
* All othermethods (including tiva_spiinitialize()) are provided by common * All other methods (including tiva_spiinitialize()) are provided by common
* logic. To use this common SPI logic on your board: * logic. To use this common SPI logic on your board:
* *
* 1. Provide tiva_spiselect() and tiva_spistatus() functions in your * 1. Provide tiva_spiselect() and tiva_spistatus() functions in your

View File

@ -101,9 +101,11 @@ int tiva_timer_initialize(void)
{ {
int ret; int ret;
timvdbg("Registering TIMER%d at %s\n", GPTM, CONFIG_TM4C1294_LAUNCHPAD_TIMER_DEVNAME); timvdbg("Registering TIMER%d at %s\n",
GPTM, CONFIG_TM4C1294_LAUNCHPAD_TIMER_DEVNAME);
ret = tiva_timer_register(CONFIG_TM4C1294_LAUNCHPAD_TIMER_DEVNAME, GPTM, ALTCLK); ret = tiva_timer_register(CONFIG_TM4C1294_LAUNCHPAD_TIMER_DEVNAME,
GPTM, ALTCLK);
if (ret < 0) if (ret < 0)
{ {
timdbg("ERROR: Failed to register timer driver: %d\n", ret); timdbg("ERROR: Failed to register timer driver: %d\n", ret);

View File

@ -1,7 +1,7 @@
/**************************************************************************** /****************************************************************************
* configs/tm4c1294-launchpad/src/tm4c_userleds.c * configs/tm4c1294-launchpad/src/tm4c_userleds.c
* *
* Copyright (C) 2014 Gregory Nutt. All rights reserved. * Copyright (C) 2015 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