Changeset 40b80d86 in rtems


Ignore:
Timestamp:
06/20/16 06:16:54 (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
3e2a3c4
Parents:
a4fa007b
git-author:
Sebastian Huber <sebastian.huber@…> (06/20/16 06:16:54)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/20/16 06:18:39)
Message:

bsp/leon3: Use sysinit for bsp_debug_uart_init()

Location:
c/src/lib/libbsp/sparc/leon3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon3/console/printk_support.c

    ra4fa007b r40b80d86  
    1919#include <leon.h>
    2020#include <rtems/libio.h>
     21#include <rtems/sysinit.h>
    2122#include <stdlib.h>
    2223#include <assert.h>
     
    3940 * for a debug APBUART and enable RX/TX for that UART.
    4041 */
    41 void bsp_debug_uart_init(void)
     42static void bsp_debug_uart_init(void)
    4243{
    4344  int i;
     
    7778}
    7879
     80RTEMS_SYSINIT_ITEM(
     81  bsp_debug_uart_init,
     82  RTEMS_SYSINIT_BSP_START,
     83  RTEMS_SYSINIT_ORDER_THIRD
     84);
     85
    7986/* putchar/getchar for printk */
    8087static void bsp_out_char(char c)
  • c/src/lib/libbsp/sparc/leon3/include/leon.h

    ra4fa007b r40b80d86  
    393393void leon3_ext_irq_init(void);
    394394
    395 void bsp_debug_uart_init(void);
    396 
    397395void leon3_power_down_loop(void) RTEMS_NO_RETURN;
    398396
  • c/src/lib/libbsp/sparc/leon3/startup/bspstart.c

    ra4fa007b r40b80d86  
    1919#include <bsp.h>
    2020#include <leon.h>
    21 #include <rtems/bspIo.h>
    2221#include <bsp/bootcard.h>
    2322
     
    6867
    6968  leon3_cpu_counter_initialize();
    70 
    71   /* find debug UART for printk() */
    72   bsp_debug_uart_init();
    7369}
Note: See TracChangeset for help on using the changeset viewer.