From eb36d1198cdf9dc1e2f776ef6e1e38755f6d13c5 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 25 Apr 2018 15:06:08 +0200 Subject: bsps: Move documentation, etc. files to bsps This patch is a part of the BSP source reorganization. Update #3285. --- c/src/lib/libbsp/lm32/lm32_evr/README | 49 ---------------------- .../libbsp/lm32/milkymist/Documentation/uart.txt | 31 -------------- c/src/lib/libbsp/lm32/milkymist/README | 16 ------- 3 files changed, 96 deletions(-) delete mode 100644 c/src/lib/libbsp/lm32/lm32_evr/README delete mode 100644 c/src/lib/libbsp/lm32/milkymist/Documentation/uart.txt delete mode 100644 c/src/lib/libbsp/lm32/milkymist/README (limited to 'c/src/lib/libbsp/lm32') diff --git a/c/src/lib/libbsp/lm32/lm32_evr/README b/c/src/lib/libbsp/lm32/lm32_evr/README deleted file mode 100644 index 13712c91e0..0000000000 --- a/c/src/lib/libbsp/lm32/lm32_evr/README +++ /dev/null @@ -1,49 +0,0 @@ -# The Lattice Mico32 port uses the system_config.h generated by the Mico -# System Builder to retrieve the properties of the peripherals. -# -# Implemented (in shared/ subdirectory) -# Polled console driver (uart) -# Clock interrupt with 10 ms tick -# Networking using Lattice tri-speed ethernet MAC -# -# Todo -# Support more peripherals: -# - uart driver using interrupts -# -# jukka.pietarinen@mrf.fi, 3.12.2008 -# - -BSP NAME: lm32_evr -BOARD: cRIO-EVR, Micro-Research Finland Oy -BUS: wishbone -CPU FAMILY: lm32 (Lattice Mico32) -CPU: small -COPROCESSORS: none -MODE: 32 bit mode - -DEBUG MONITOR: none - -PERIPHERALS -=========== -TIMERS: clock - RESOLUTION: 10 ms -SERIAL PORTS: uart -REAL-TIME CLOCK: none -DMA: none -VIDEO: none -SCSI: none -NETWORKING: tsmac - -To on the simulator included in lm32-gdb use these commands: - -tar sim --hw-device lm32cpu \ - --hw-device "lm32uart/reg 0x80006000 0x100" \ - --hw-device "/lm32uart > int int0 /lm32cpu" \ - --hw-device "lm32timer/reg 0x80002000 0x80" \ - --hw-device "/lm32timer > int int1 /lm32cpu" \ - --memory-region 0x08000000,0x4000000 -load - -The simulator is VERY VERY slow when RTEMS is idle. -To speed this up, add SIMULATOR_FAST_IDLE=1 to the -configure command. diff --git a/c/src/lib/libbsp/lm32/milkymist/Documentation/uart.txt b/c/src/lib/libbsp/lm32/milkymist/Documentation/uart.txt deleted file mode 100644 index b5b93043e9..0000000000 --- a/c/src/lib/libbsp/lm32/milkymist/Documentation/uart.txt +++ /dev/null @@ -1,31 +0,0 @@ -Initialization : - - set the CSR_UART_DIVISOR to the correct VALUE, - depending on the internal frequency of the LatticeMico32 softcore. - - for the ML401 board, this value is calculated using this formula : clk_frequency/230400/16 - clk_frequency = 100000000 Hz - => we must set CSR_UART_DIVISOR to 27 - -How to send a byte to uart : - -void writechar(char c) -{ - CSR_UART_RXTX = c; - while(!(irq_pending() & IRQ_UARTTX)); - irq_ack(IRQ_UARTTX); -} - -How to receive a byte from uart : - - -char readchar() -{ - char c; - while(!(irq_pending() & IRQ_UARTRX)); - irq_ack(IRQ_UARTRX); - c = CSR_UART_RXTX; - return c; -} - - diff --git a/c/src/lib/libbsp/lm32/milkymist/README b/c/src/lib/libbsp/lm32/milkymist/README deleted file mode 100644 index 4c77d6256c..0000000000 --- a/c/src/lib/libbsp/lm32/milkymist/README +++ /dev/null @@ -1,16 +0,0 @@ -Full RTEMS port to the Milkymist One. Supports Milkymist SoC 1.0.x. - -Includes drivers for: -- Multi-standard video input (PAL/SECAM/NTSC) -- Two DMX512 (RS485) ports -- MIDI IN and MIDI OUT ports -- VGA output -- AC'97 audio -- NOR flash -- 10/100 Ethernet -- Memory card (experimental and incomplete) -- USB host connectors (input devices only, using the softusb-input firmware) -- RC5 infrared receiver -- RS232 debug port - -For more information: http://www.milkymist.org/ -- cgit v1.2.3