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

Beaglebone Board Support Package. More...

Files

file  bsps/arm/beagle/include/bsp.h
 Global BSP definitions.

Data Structures

struct  beagle_i2c

Macros

#define BSP_FEATURE_IRQ_EXTENSION
#define UART_CLOCK   48000000
#define mmio_read(a)
#define mmio_write(a, v)
#define mmio_set(a, v)
#define mmio_clear(a, v)
#define REG16(x)
#define REG(x)
#define BIT(x)
#define BITS(Start, End)
#define udelay(u)
#define __arch_getb(a)
#define __arch_getw(a)
#define __arch_getl(a)
#define __arch_putb(v, a)
#define __arch_putw(v, a)
#define __arch_putl(v, a)
#define writeb(v, c)
#define writew(v, c)
#define writel(v, c)
#define readb(c)
#define readw(c)
#define readl(c)
#define SYSTEM_CLOCK_12   12000000
#define SYSTEM_CLOCK_13   13000000
#define SYSTEM_CLOCK_192   19200000
#define SYSTEM_CLOCK_96   96000000

Functions

int beagle_get_node_unit (phandle_t node)
BSP_START_TEXT_SECTION void beagle_setup_mmu_and_cache (void)
 Beagleboard specific set up of the MMU.

Variables

uint32_t beagle_i2c::rx_or_tx
uint32_t beagle_i2c::stat
uint32_t beagle_i2c::ctrl
uint32_t beagle_i2c::clk_hi
uint32_t beagle_i2c::clk_lo
uint32_t beagle_i2c::adr
uint32_t beagle_i2c::rxfl
uint32_t beagle_i2c::txfl
uint32_t beagle_i2c::rxb
uint32_t beagle_i2c::txb
uint32_t beagle_i2c::s_tx
uint32_t beagle_i2c::s_txfl

Detailed Description

Beaglebone Board Support Package.

Macro Definition Documentation

◆ __arch_getb

#define __arch_getb ( a)
Value:
(*(volatile unsigned char *)(a))

◆ __arch_getl

#define __arch_getl ( a)
Value:
(*(volatile unsigned int *)(a))

◆ __arch_getw

#define __arch_getw ( a)
Value:
(*(volatile unsigned short *)(a))

◆ __arch_putb

#define __arch_putb ( v,
a )
Value:
(*(volatile unsigned char *)(a) = (v))

◆ __arch_putl

#define __arch_putl ( v,
a )
Value:
(*(volatile unsigned int *)(a) = (v))

◆ __arch_putw

#define __arch_putw ( v,
a )
Value:
(*(volatile unsigned short *)(a) = (v))

◆ BIT

#define BIT ( x)
Value:
(0x1 << (x))

◆ BITS

#define BITS ( Start,
End )
Value:
(((1 << (End+1)) - 1) & ~((1 << (Start)) - 1))

◆ mmio_clear

#define mmio_clear ( a,
v )
Value:
mmio_write((a), mmio_read((a)) & ~(v))

◆ mmio_read

#define mmio_read ( a)
Value:
(*(volatile uint32_t *)(a))

◆ mmio_set

#define mmio_set ( a,
v )
Value:
mmio_write((a), mmio_read((a)) | (v))

◆ mmio_write

#define mmio_write ( a,
v )
Value:
(*(volatile uint32_t *)(a) = (v))

◆ readb

#define readb ( c)
Value:
({ unsigned char __v = __arch_getb(c); __v; })

◆ readl

#define readl ( c)
Value:
({ unsigned int __v = __arch_getl(c); __v; })

◆ readw

#define readw ( c)
Value:
({ unsigned short __v = __arch_getw(c); __v; })

◆ REG

#define REG ( x)
Value:
(*((volatile uint32_t *)(x)))

◆ REG16

#define REG16 ( x)
Value:
(*((volatile uint16_t *)(x)))

◆ udelay

#define udelay ( u)
Value:
rtems_status_code rtems_task_wake_after(rtems_interval ticks)
Wakes up after a count of clock ticks have occurred or yields the processor.
Definition taskwakeafter.c:46
#define rtems_configuration_get_microseconds_per_tick()
Gets the number of microseconds per clock tick configured for this application.
Definition config.h:527

◆ writeb

#define writeb ( v,
c )
Value:
({ unsigned char __v = v; __arch_putb(__v,c); __v; })

◆ writel

#define writel ( v,
c )
Value:
({ unsigned int __v = v; __arch_putl(__v,c); __v; })

◆ writew

#define writew ( v,
c )
Value:
({ unsigned short __v = v; __arch_putw(__v,c); __v; })

Function Documentation

◆ beagle_setup_mmu_and_cache()

BSP_START_TEXT_SECTION void beagle_setup_mmu_and_cache ( void )

Beagleboard specific set up of the MMU.

Provide in the application to override.