RTEMS 7.0-rc1
Loading...
Searching...
No Matches
Data Structures | Macros | Functions | Variables
console.c File Reference

EFM32GG11 Console Driver. More...

#include <bsp.h>
#include <bsp/processor.h>
#include <bsp/efm32gg11_clock.h>
#include <bsp/efm32gg11_gpio.h>
#include <rtems/console.h>
#include <rtems/termiostypes.h>
#include <rtems/bspIo.h>
#include <rtems/sysinit.h>

Data Structures

struct  usart_context_s
 

Macros

#define PASTE2(a, b)   a ## b
 
#define PASTE3(a, b, c)   a ## b ## c
 
#define PASTE4(a, b, c, d)   a ## b ## c ## d
 
#define REGS(t, i)   PASTE2(t, i)
 
#define TX_IRQN(t, i)   PASTE3(t, i, _TX_IRQn)
 
#define RX_IRQN(t, i)   PASTE3(t, i, _RX_IRQn)
 
#define TX_PORT(t, i, l)   PASTE4(AF_, t, i, _TX_PORT)(l)
 
#define TX_PIN(t, i, l)   PASTE4(AF_, t, i, _TX_PIN)(l)
 
#define RX_PORT(t, i, l)   PASTE4(AF_, t, i, _RX_PORT)(l)
 
#define RX_PIN(t, i, l)   PASTE4(AF_, t, i, _RX_PIN)(l)
 
#define CTS_PORT(t, i, l)   PASTE4(AF_, t, i, _CTS_PORT)(l)
 
#define CTS_PIN(t, i, l)   PASTE4(AF_, t, i, _CTS_PIN)(l)
 
#define RTS_PORT(t, i, l)   PASTE4(AF_, t, i, _RTS_PORT)(l)
 
#define RTS_PIN(t, i, l)   PASTE4(AF_, t, i, _RTS_PIN)(l)
 
#define CS_PORT(t, i, l)   PASTE4(AF_, t, i, _CS_PORT)(l)
 
#define CS_PIN(t, i, l)   PASTE4(AF_, t, i, _CS_PIN)(l)
 
#define HFPERCLKEN0_MASK(t, i)   PASTE3(CMU_HFPERCLKEN0_, t, i)
 

Functions

rtems_status_code console_initialize (rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
 Console initialization entry point.
 
 RTEMS_SYSINIT_ITEM (debug_console_init, RTEMS_SYSINIT_BSP_START, RTEMS_SYSINIT_ORDER_LAST_BUT_5)
 

Variables

BSP_output_char_function_type BSP_output_char = output_char_early
 This function pointer references the kernel character output implementation.
 
BSP_polling_getchar_function_type BSP_poll_char = NULL
 This function pointer may reference the kernel character input implementation.
 

Detailed Description

EFM32GG11 Console Driver.

Function Documentation

◆ console_initialize()

rtems_status_code console_initialize ( rtems_device_major_number  major,
rtems_device_minor_number  minor,
void *  arg 
)

Console initialization entry point.

This method initializes the console device driver.

Parameters
[in]majoris the device driver major number.
[in]minoris the device driver minor number.
[in]argis the parameters to this call.
Return values
RTEMS_SUCCESSFULThe device driver is successfully initialized.