arch/arm/src/tiva: Rename TM4C1294NC identifiers to TM4C1294NCPDT.

Rationale: TM4C1294NC is ambiguous:

  TM4C1294NCPDT is a 128-TQFP
  TM4C1294NCZAD is a 212-NFBGA

The TM4C1294NC part currently supported by NuttX is the TM4C1294NCPDT used on the TI EK-TM4C1294XL "Connected LaunchPad" (see configs/tm4c1294-launchpad). To ensure the correct part is fully specified, this commit updates all TM4C1294NC identifiers to TM4C1294NCPDT.

Rename:

  CONFIG_ARCH_CHIP_TM4C1294NC to CONFIG_ARCH_CHIP_TM4C1294NCPDT
  ARCH_CHIP_TM4C1294NC to ARCH_CHIP_TM4C1294NCPDT
  TM4C1294NC to TM4C1294NCPDT
This commit is contained in:
Nathan Hartman 2019-07-29 13:31:52 -06:00 committed by Gregory Nutt
parent 97265f3ca3
commit c71f2fa56f
12 changed files with 22 additions and 22 deletions

View File

@ -248,7 +248,7 @@
# define TIVA_NAES 0 /* No AES module */
# define TIVA_NDES 0 /* No DES module */
# define TIVA_NHASH 0 /* No SHA1/MD5 hash module */
#elif defined(CONFIG_ARCH_CHIP_TM4C1294NC)
#elif defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
# undef LM3S /* Not LM3S family */
# undef LM4F /* Not LM4F family */
# define TM4C 1 /* TM4C family */

View File

@ -497,7 +497,7 @@
# define NR_IRQS (130) /* (Really fewer because of reserved vectors) */
#elif defined(CONFIG_ARCH_CHIP_TM4C1294NC)
#elif defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
# define TIVA_IRQ_GPIOA (16) /* Vector 16: GPIO Port A */
# define TIVA_IRQ_GPIOB (17) /* Vector 17: GPIO Port B */
# define TIVA_IRQ_GPIOC (18) /* Vector 18: GPIO Port C */

View File

@ -106,8 +106,8 @@ config ARCH_CHIP_TM4C123GH6PM
select TIVA_HAVE_ADC0
select TIVA_HAVE_ADC1
config ARCH_CHIP_TM4C1294NC
bool "TM4C1294NC"
config ARCH_CHIP_TM4C1294NCPDT
bool "TM4C1294NCPDT"
depends on ARCH_CHIP_TIVA
select ARCH_CHIP_TM4C
select ARCH_CHIP_TM4C129

View File

@ -296,7 +296,7 @@ static ssize_t tiva_write(FAR struct mtd_dev_s *dev, off_t offset,
nbytes &= ~3;
remaining = nbytes;
#if defined(CONFIG_ARCH_CHIP_TM4C1294NC)
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
while (remaining > 0)
{
/* Set the address of this block of words. */

View File

@ -435,7 +435,7 @@ static int tiva_pwm_setup(FAR struct pwm_lowerhalf_s *dev)
pwminfo("setup PWM for channel %d\n", chan->channel_id);
/* Enable GPIO port, GPIO pin type and GPIO alternate function (refer to
* TM4C1294NC 23.4.2-4)
* TM4C1294NCPDT 23.4.2-4)
*/
int ret = tiva_configgpio(g_pwm_pinset[chan->channel_id]);
@ -587,7 +587,7 @@ static inline int tiva_pwm_timer(FAR struct tiva_pwm_chan_s *chan,
pwminfo("> frequency = %d\n", frequency);
pwminfo("> duty = %d\n", duty);
/* Configure PWM countdown mode (refer to TM4C1294NC 23.4.6) */
/* Configure PWM countdown mode (refer to TM4C1294NCPDT 23.4.6) */
tiva_pwm_putreg(chan, TIVA_PWMn_CTL_OFFSET, 0);
if (chan->channel_id % 2 == 0)
@ -603,7 +603,7 @@ static inline int tiva_pwm_timer(FAR struct tiva_pwm_chan_s *chan,
GENx_HIGH << TIVA_PWMn_GENx_ACTLOAD);
}
/* Set the PWM period (refer to TM4C1294NC 23.4.7) */
/* Set the PWM period (refer to TM4C1294NCPDT 23.4.7) */
uint32_t pwm_min_freq = (uint32_t)(g_pwm_freq / g_pwm_counter) + 1;
uint32_t pwm_max_freq = g_pwm_freq;
@ -620,7 +620,7 @@ static inline int tiva_pwm_timer(FAR struct tiva_pwm_chan_s *chan,
tiva_pwm_putreg(chan, TIVA_PWMn_LOAD_OFFSET, load - 1);
/* Configure PWM duty (refer to TM4C1294NC 23.4.8-9)
/* Configure PWM duty (refer to TM4C1294NCPDT 23.4.8-9)
*
* Workaround:
* When comp equals to load, the signal is never pulled down,
@ -640,11 +640,11 @@ static inline int tiva_pwm_timer(FAR struct tiva_pwm_chan_s *chan,
tiva_pwm_putreg(chan, TIVA_PWMn_CMPB_OFFSET, comp - 1);
}
/* Enable the PWM generator (refer to TM4C1294NC 23.4.10) */
/* Enable the PWM generator (refer to TM4C1294NCPDT 23.4.10) */
tiva_pwm_putreg(chan, TIVA_PWMn_CTL_OFFSET, CTL_ENABLE << TIVA_PWMn_CTL_ENABLE);
/* Enable PWM channel (refer to TM4C1294NC 23.4.11) */
/* Enable PWM channel (refer to TM4C1294NCPDT 23.4.11) */
uint32_t enable = getreg32(chan->controller_base + TIVA_PWM_ENABLE_OFFSET);
enable |= (1 << chan->channel_id);
@ -803,15 +803,15 @@ FAR struct pwm_lowerhalf_s *tiva_pwm_initialize(int channel)
pwminfo("> generator_id = %d\n", chan->generator_id);
pwminfo("> generator_base = %08x\n", chan->generator_base);
/* Enable PWM controller (refer to TM4C1294NC 23.4.1) */
/* Enable PWM controller (refer to TM4C1294NCPDT 23.4.1) */
assert(chan->controller_id == 0);
tiva_pwm_enablepwr(chan->controller_id);
tiva_pwm_enableclk(chan->controller_id);
/* Configure PWM Clock Configuration (refer to TM4C1294NC 23.4.5)
/* Configure PWM Clock Configuration (refer to TM4C1294NCPDT 23.4.5)
*
* On TM4C1294NC, configure the PWM clock source as 1.875MHz (the system
* On TM4C1294NCPDT, configure the PWM clock source as 1.875MHz (the system
* clock 120MHz divided by 64)
*
* TODO: need an algorithm to choose the best divider and load value combo.

View File

@ -239,7 +239,7 @@ static int tiva_qe_setup(FAR struct qe_lowerhalf_s *lower)
ctlreg |= VELDIV_1 << TIVA_QEI_CTL_VELDIV;
tiva_qe_putreg(qe, TIVA_QEI_CTL_OFFSET, ctlreg);
/* Set period load (10ms for TM4C1294NC) */
/* Set period load (10ms for TM4C1294NCPDT) */
tiva_qe_putreg(qe, TIVA_QEI_LOAD_OFFSET, 1200000);

View File

@ -52,7 +52,7 @@
************************************************************************************/
/* FLASH dimensions ****************************************************************/
#if defined(CONFIG_ARCH_CHIP_TM4C129XNC) || defined(CONFIG_ARCH_CHIP_TM4C1294NC)
#if defined(CONFIG_ARCH_CHIP_TM4C129XNC) || defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
/* For the TM4C129X family, the Flash memory is configured in groups of four banks
* four banks of 16K x 128 bits (4 * 256 KB total) which are two-way interleaved.

View File

@ -91,7 +91,7 @@
# define TIVA_TPIU_BASE 0xe0040000 /* -0xe0040fff: Trace Port Interface Unit */
# define TIVA_ETM_BASE 0xe0041000 /* -0xe0041fff: Embedded Trace Macrocell */
/* -0xffffffff: Reserved */
#elif defined(CONFIG_ARCH_CHIP_TM4C129XNC) || defined(CONFIG_ARCH_CHIP_TM4C1294NC)
#elif defined(CONFIG_ARCH_CHIP_TM4C129XNC) || defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
# define TIVA_FLASH_BASE 0x00000000 /* -0x000fffff: On-chip FLASH */
/* -0x01ffffff: Reserved */
# define TIVA_ROM_BASE 0x02000000 /* -0x02ffffff: On-chip ROM (16 MB) */
@ -389,7 +389,7 @@
/* -0x53fff: Reserved */
# define TIVA_EPHY_BASE (TIVA_PERIPH2_BASE + 0x54000) /* -0x54fff: EPHY */
/* -0xfffff: Reserved */
#elif defined(CONFIG_ARCH_CHIP_TM4C1294NC)
#elif defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
/* Peripheral region 1 */
# define TIVA_WDOG0_BASE (TIVA_PERIPH1_BASE + 0x00000) /* -0x00fff: Watchdog Timer 0 */
# define TIVA_WDOG1_BASE (TIVA_PERIPH1_BASE + 0x01000) /* -0x00fff: Watchdog Timer 1 */

View File

@ -1091,7 +1091,7 @@
# define GPIO_RTC_CLK_2 (GPIO_FUNC_PFIO | GPIO_ALT_7 | GPIO_PORTC | GPIO_PIN_5)
# define GPIO_RTC_CLK_3 (GPIO_FUNC_PFIO | GPIO_ALT_7 | GPIO_PORTP | GPIO_PIN_3)
#elif defined(CONFIG_ARCH_CHIP_TM4C1294NC)
#elif defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
# define GPIO_ADC_AIN0 (GPIO_FUNC_ANINPUT | GPIO_PORTE | GPIO_PIN_3)
# define GPIO_ADC_AIN1 (GPIO_FUNC_ANINPUT | GPIO_PORTE | GPIO_PIN_2)
# define GPIO_ADC_AIN2 (GPIO_FUNC_ANINPUT | GPIO_PORTE | GPIO_PIN_1)

View File

@ -1627,7 +1627,7 @@ config ARCH_BOARD_TM4C123G_LAUNCHPAD
config ARCH_BOARD_TM4C1294_LAUNCHPAD
bool "Tiva EK-TM4C1294XL LaunchPad"
depends on ARCH_CHIP_TM4C1294NC
depends on ARCH_CHIP_TM4C1294NCPDT
select ARCH_HAVE_LEDS
select ARCH_HAVE_BUTTONS
select ARCH_HAVE_IRQBUTTONS

View File

@ -14,7 +14,7 @@ CONFIG_ARCH_BOARD="tm4c1294-launchpad"
CONFIG_ARCH_BOARD_TM4C1294_LAUNCHPAD=y
CONFIG_ARCH_BUTTONS=y
CONFIG_ARCH_CHIP_TIVA=y
CONFIG_ARCH_CHIP_TM4C1294NC=y
CONFIG_ARCH_CHIP_TM4C1294NCPDT=y
CONFIG_ARCH_CHIP_TM4C129=y
CONFIG_ARCH_CHIP_TM4C=y
CONFIG_ARCH_STACKDUMP=y

View File

@ -12,7 +12,7 @@ CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="tm4c1294-launchpad"
CONFIG_ARCH_BOARD_TM4C1294_LAUNCHPAD=y
CONFIG_ARCH_CHIP_TIVA=y
CONFIG_ARCH_CHIP_TM4C1294NC=y
CONFIG_ARCH_CHIP_TM4C1294NCPDT=y
CONFIG_ARCH_CHIP_TM4C129=y
CONFIG_ARCH_CHIP_TM4C=y
CONFIG_ARCH_STACKDUMP=y