RTEMS 6.3
Loading...
Searching...
No Matches

LEON2 Board Support Package. More...

Files

file  bsps/sparc/include/drvmgr/leon2_amba_bus.h
 This header file provides interfaces of the LEON2 Hardcoded bus driver.
file  bsps/sparc/leon2/btimer/btimer.c
 Implement a benchmark timer using timer 2.
file  bsps/sparc/leon2/clock/ckinit.c
 Clock Tick Device Driver.
file  bsps/sparc/leon2/console/console.c
 TTY driver driver for the serial ports on the LEON console.
file  bsps/sparc/leon2/console/debugputs.c
 TTY driver for the serial ports on the LEON.
file  bsps/sparc/leon2/gnatsupp/gnatsupp.c
 Support for gnat/rtems iterrupts and exception handling.
file  bsps/sparc/leon2/include/bsp.h
 Global BSP definitions.
file  bsps/sparc/leon2/include/bsp/irq.h
 Interrupts definitions.
file  bsps/sparc/leon2/include/bsp/irqimpl.h
 This header file provides interfaces used by the interrupt support implementation.
file  bsps/sparc/leon2/include/leon.h
file  bsps/sparc/leon2/include/tm27.h
 Implementations for interrupt mechanisms for Time Test 27.
file  bsps/sparc/leon2/start/bspdelay.c
 LEON2 BSP Delay Method.
file  bsps/sparc/leon2/start/bspidle.c
 LEON2 Idle Thread.
file  bsps/sparc/leon2/start/bspstart.c
 LEON2 Cache Snooping Support.
file  bsps/sparc/leon2/start/setvec.c
 Installs an interrupt vector on the SPARC simulator.

Macros

#define LEON2   1
#define BSP_FEATURE_IRQ_EXTENSION
#define BSP_IDLE_TASK_BODY   bsp_idle_thread
#define RTEMS_BSP_NETWORK_DRIVER_NAME   "open_eth1"
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH_OPENETH   rtems_leon_open_eth_driver_attach
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH_SMC91111   rtems_smc91111_driver_attach_leon2
#define HAS_SMC91111
#define GRETH_SUPPORTED
#define GRETH_MEM_LOAD(addr)
#define BSP_PCI_BIG_ENDIAN
#define AMBAPPBUS_INFO_AVAIL
#define GPTIMER_INFO_AVAIL
#define GRETH_INFO_AVAIL

Typedefs

typedef void(*) bsp_shared_isr(void *arg)

Functions

void * bsp_idle_thread (uintptr_t ignored)
 Optimized idle task.
int rtems_leon_open_eth_driver_attach (struct rtems_bsdnet_ifconfig *config)
int rtems_smc91111_driver_attach_leon2 (struct rtems_bsdnet_ifconfig *config)
rtems_isr_entry set_vector (rtems_isr_entry handler, rtems_vector_number vector, int type)
void BSP_fatal_exit (uint32_t error)
void rtems_bsp_delay (int usecs)
int cchip1_register (void)
void console_outbyte_polled (int port, unsigned char ch)
int console_inbyte_nonblocking (int port)

Variables

int CPU_SPARC_HAS_SNOOPING
int RAM_START
int RAM_END
int RAM_SIZE
int PROM_START
int PROM_END
int PROM_SIZE
int CLOCK_SPEED
int end

Detailed Description

LEON2 Board Support Package.

Macro Definition Documentation

◆ GRETH_MEM_LOAD

#define GRETH_MEM_LOAD ( addr)
Value:
leon_r32_no_cache((uintptr_t) addr)

Function Documentation

◆ bsp_idle_thread()

void * bsp_idle_thread ( uintptr_t ignored)

Optimized idle task.

This idle task sets the power mode to idle. This causes the processor clock to be stopped, while on-chip peripherals remain active. Any enabled interrupt from a peripheral or an external interrupt source will cause the processor to resume execution.

To enable the idle task use the following in the system configuration:

#include <bsp.h>
#define CONFIGURE_INIT
#define CONFIGURE_IDLE_TASK_BODY bsp_idle_thread
#include <confdefs.h>
This header file evaluates the application configuration options defined by the application.

◆ console_inbyte_nonblocking()

int console_inbyte_nonblocking ( int port)

This method polls the specified port for an input character. console port.

Parameters
[in]portis the input port
Returns
This method returns the character read of -1 if there is no data.