RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Files | Data Structures | Macros | Functions | Variables

Beaglebone Board Support Package. More...

Files

file  bsp.h
 Global BSP definitions.
 

Data Structures

struct  beagle_i2c
 

Macros

#define BSP_FEATURE_IRQ_EXTENSION
 
#define UART_CLOCK   48000000
 
#define mmio_read(a)   (*(volatile uint32_t *)(a))
 
#define mmio_write(a, v)   (*(volatile uint32_t *)(a) = (v))
 
#define mmio_set(a, v)   mmio_write((a), mmio_read((a)) | (v))
 
#define mmio_clear(a, v)   mmio_write((a), mmio_read((a)) & ~(v))
 
#define REG16(x)   (*((volatile uint16_t *)(x)))
 
#define REG(x)   (*((volatile uint32_t *)(x)))
 
#define BIT(x)   (0x1 << (x))
 
#define BITS(Start, End)   (((1 << (End+1)) - 1) & ~((1 << (Start)) - 1))
 
#define udelay(u)   rtems_task_wake_after(1 + ((u)/rtems_configuration_get_microseconds_per_tick()))
 
#define __arch_getb(a)   (*(volatile unsigned char *)(a))
 
#define __arch_getw(a)   (*(volatile unsigned short *)(a))
 
#define __arch_getl(a)   (*(volatile unsigned int *)(a))
 
#define __arch_putb(v, a)   (*(volatile unsigned char *)(a) = (v))
 
#define __arch_putw(v, a)   (*(volatile unsigned short *)(a) = (v))
 
#define __arch_putl(v, a)   (*(volatile unsigned int *)(a) = (v))
 
#define writeb(v, c)   ({ unsigned char __v = v; __arch_putb(__v,c); __v; })
 
#define writew(v, c)   ({ unsigned short __v = v; __arch_putw(__v,c); __v; })
 
#define writel(v, c)   ({ unsigned int __v = v; __arch_putl(__v,c); __v; })
 
#define readb(c)   ({ unsigned char __v = __arch_getb(c); __v; })
 
#define readw(c)   ({ unsigned short __v = __arch_getw(c); __v; })
 
#define readl(c)   ({ unsigned int __v = __arch_getl(c); __v; })
 
#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.

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.