@@ -630,7 +630,7 @@ static void irq_config_func_0(struct device *port);
630
630
#endif
631
631
632
632
static const struct uart_device_config uart_stellaris_dev_cfg_0 = {
633
- .base = (u8_t * )UART_STELLARIS_PORT_0_BASE_ADDR ,
633
+ .base = (u8_t * )TI_STELLARIS_UART_4000C000_BASE_ADDRESS ,
634
634
.sys_clk_freq = UART_STELLARIS_CLK_FREQ ,
635
635
636
636
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
@@ -639,7 +639,7 @@ static const struct uart_device_config uart_stellaris_dev_cfg_0 = {
639
639
};
640
640
641
641
static struct uart_stellaris_dev_data_t uart_stellaris_dev_data_0 = {
642
- .baud_rate = CONFIG_UART_STELLARIS_PORT_0_BAUD_RATE ,
642
+ .baud_rate = TI_STELLARIS_UART_4000C000_CURRENT_SPEED ,
643
643
};
644
644
645
645
DEVICE_AND_API_INIT (uart_stellaris0 , CONFIG_UART_STELLARIS_PORT_0_NAME , & uart_stellaris_init ,
@@ -650,11 +650,11 @@ DEVICE_AND_API_INIT(uart_stellaris0, CONFIG_UART_STELLARIS_PORT_0_NAME, &uart_st
650
650
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
651
651
static void irq_config_func_0 (struct device * dev )
652
652
{
653
- IRQ_CONNECT (UART_STELLARIS_PORT_0_IRQ ,
654
- CONFIG_UART_STELLARIS_PORT_0_IRQ_PRI ,
653
+ IRQ_CONNECT (TI_STELLARIS_UART_4000C000_IRQ_0 ,
654
+ TI_STELLARIS_UART_4000C000_IRQ_0_PRIORITY ,
655
655
uart_stellaris_isr , DEVICE_GET (uart_stellaris0 ),
656
656
UART_IRQ_FLAGS );
657
- irq_enable (UART_STELLARIS_PORT_0_IRQ );
657
+ irq_enable (TI_STELLARIS_UART_4000C000_IRQ_0 );
658
658
}
659
659
#endif
660
660
@@ -667,7 +667,7 @@ static void irq_config_func_1(struct device *port);
667
667
#endif
668
668
669
669
static struct uart_device_config uart_stellaris_dev_cfg_1 = {
670
- .base = (u8_t * )UART_STELLARIS_PORT_1_BASE_ADDR ,
670
+ .base = (u8_t * )TI_STELLARIS_UART_4000D000_BASE_ADDRESS ,
671
671
.sys_clk_freq = UART_STELLARIS_CLK_FREQ ,
672
672
673
673
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
@@ -676,7 +676,7 @@ static struct uart_device_config uart_stellaris_dev_cfg_1 = {
676
676
};
677
677
678
678
static struct uart_stellaris_dev_data_t uart_stellaris_dev_data_1 = {
679
- .baud_rate = CONFIG_UART_STELLARIS_PORT_1_BAUD_RATE ,
679
+ .baud_rate = TI_STELLARIS_UART_4000D000_CURRENT_SPEED ,
680
680
};
681
681
682
682
DEVICE_AND_API_INIT (uart_stellaris1 , CONFIG_UART_STELLARIS_PORT_1_NAME , & uart_stellaris_init ,
@@ -687,11 +687,11 @@ DEVICE_AND_API_INIT(uart_stellaris1, CONFIG_UART_STELLARIS_PORT_1_NAME, &uart_st
687
687
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
688
688
static void irq_config_func_1 (struct device * dev )
689
689
{
690
- IRQ_CONNECT (UART_STELLARIS_PORT_1_IRQ ,
691
- CONFIG_UART_STELLARIS_PORT_1_IRQ_PRI ,
690
+ IRQ_CONNECT (TI_STELLARIS_UART_4000D000_IRQ_0 ,
691
+ TI_STELLARIS_UART_4000D000_IRQ_0_PRIORITY ,
692
692
uart_stellaris_isr , DEVICE_GET (uart_stellaris1 ),
693
693
UART_IRQ_FLAGS );
694
- irq_enable (UART_STELLARIS_PORT_1_IRQ );
694
+ irq_enable (TI_STELLARIS_UART_4000D000_IRQ_0 );
695
695
}
696
696
#endif
697
697
@@ -704,7 +704,7 @@ static void irq_config_func_2(struct device *port);
704
704
#endif
705
705
706
706
static const struct uart_device_config uart_stellaris_dev_cfg_2 = {
707
- .base = (u8_t * )UART_STELLARIS_PORT_2_BASE_ADDR ,
707
+ .base = (u8_t * )TI_STELLARIS_UART_4000E000_BASE_ADDRESS ,
708
708
.sys_clk_freq = UART_STELLARIS_CLK_FREQ ,
709
709
710
710
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
@@ -713,7 +713,7 @@ static const struct uart_device_config uart_stellaris_dev_cfg_2 = {
713
713
};
714
714
715
715
static struct uart_stellaris_dev_data_t uart_stellaris_dev_data_2 = {
716
- .baud_rate = CONFIG_UART_STELLARIS_PORT_2_BAUD_RATE ,
716
+ .baud_rate = TI_STELLARIS_UART_4000E000_CURRENT_SPEED ,
717
717
};
718
718
719
719
DEVICE_AND_API_INIT (uart_stellaris2 , CONFIG_UART_STELLARIS_PORT_2_NAME , & uart_stellaris_init ,
@@ -724,11 +724,11 @@ DEVICE_AND_API_INIT(uart_stellaris2, CONFIG_UART_STELLARIS_PORT_2_NAME, &uart_st
724
724
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
725
725
static void irq_config_func_2 (struct device * dev )
726
726
{
727
- IRQ_CONNECT (UART_STELLARIS_PORT_2_IRQ ,
728
- CONFIG_UART_STELLARIS_PORT_2_IRQ_PRI ,
727
+ IRQ_CONNECT (TI_STELLARIS_UART_4000E000_IRQ_0 ,
728
+ TI_STELLARIS_UART_4000E000_IRQ_0_PRIORITY ,
729
729
uart_stellaris_isr , DEVICE_GET (uart_stellaris2 ),
730
730
UART_IRQ_FLAGS );
731
- irq_enable (UART_STELLARIS_PORT_2_IRQ );
731
+ irq_enable (TI_STELLARIS_UART_4000E000_IRQ_0 );
732
732
}
733
733
#endif
734
734
0 commit comments