Skip to content

Commit

Permalink
use $ as variable delimiters
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-demin committed Nov 12, 2024
1 parent e30bbc1 commit ea309e9
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 32 deletions.
12 changes: 9 additions & 3 deletions filters.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@ function change_meta(m)
return m
end

function expand(s)
v = meta[s:sub(2, -2)]
if v then
return stringify(v)
end
end

function change_link_target(l)
if meta[l.target] then
l.target = stringify(meta[l.target])
elseif l.target:sub(1, 1) == "/" then
l.target = l.target:gsub("(%b$$)", expand)
if l.target:sub(1, 1) == "/" then
l.target = meta.base_path .. l.target
end
return l
Expand Down
4 changes: 2 additions & 2 deletions md/alpine.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ To simplify maintenance and distribution of the pre-built applications described

## Getting started

- Download [SD card image zip file](release_image).
- Download [SD card image zip file]($release_image$).
- Copy the contents of the SD card image zip file to a micro SD card.
- Optionally, to start one of the applications automatically at boot time, copy its `start.sh` file from `apps/<application>` to the topmost directory on the SD card.
- Install the micro SD card in the Eclypse Z7 board and connect the power.
Expand All @@ -20,7 +20,7 @@ Wi-Fi is by default configured in hotspot mode with the network name (SSID) and

The wired interface is by default configured to request an IP address via DHCP. If no IP address is provided by a DHCP server, then the wired interface falls back to a static IP address [192.168.1.100](http://192.168.1.100).

The configuration of the IP addresses is in [/etc/dhcpcd.conf](https://github.com/pavel-demin/eclypse-z7-notes/blob/master/alpine/etc/dhcpcd.conf). More information about [/etc/dhcpcd.conf](https://github.com/pavel-demin/eclypse-z7-notes/blob/master/alpine/etc/dhcpcd.conf) can be found at [this link](https://www.mankier.com/5/dhcpcd.conf).
The configuration of the IP addresses is in [/etc/dhcpcd.conf]($source$/alpine/etc/dhcpcd.conf). More information about [/etc/dhcpcd.conf]($source$/alpine/etc/dhcpcd.conf) can be found at [this link](https://www.mankier.com/5/dhcpcd.conf).

From systems with enabled DNS Service Discovery (DNS-SD), Eclypse Z7 can be accessed as `sdr-03xxxx.local`, where `03xxxx` are the last 6 characters from the MAC address written on the Ethernet connector.

Expand Down
16 changes: 8 additions & 8 deletions md/led-blinker.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ The source code is available at

This repository contains the following components:

- [Makefile](https://github.com/pavel-demin/eclypse-z7-notes/blob/master/Makefile) that builds everything (almost)
- [cfg](https://github.com/pavel-demin/eclypse-z7-notes/tree/master/cfg) directory with constraints and board definition files
- [cores](https://github.com/pavel-demin/eclypse-z7-notes/tree/master/cores) directory with IP cores written in Verilog
- [projects](https://github.com/pavel-demin/eclypse-z7-notes/tree/master/projects) directory with Vivado projects written in Tcl
- [scripts](https://github.com/pavel-demin/eclypse-z7-notes/tree/master/scripts) directory with
- [Makefile]($source$/Makefile) that builds everything (almost)
- [cfg]($source$/cfg) directory with constraints and board definition files
- [cores]($source$/cores) directory with IP cores written in Verilog
- [projects]($source$/projects) directory with Vivado projects written in Tcl
- [scripts]($source$/scripts) directory with
- Tcl scripts for Vivado and SDK
- shell script that builds an SD card image

## Syntactic sugar for IP cores

The [projects/led_blinker](https://github.com/pavel-demin/eclypse-z7-notes/tree/master/projects/led_blinker) directory contains one Tcl file [block_design.tcl](https://github.com/pavel-demin/eclypse-z7-notes/blob/master/projects/led_blinker/block_design.tcl) that instantiates, configures and interconnects all the needed IP cores.
The [projects/led_blinker]($source$/projects/led_blinker) directory contains one Tcl file [block_design.tcl]($source$/projects/led_blinker/block_design.tcl) that instantiates, configures and interconnects all the needed IP cores.

By default, the IP core instantiation and configuration commands are quite verbose:

Expand All @@ -74,7 +74,7 @@ cell xilinx.com:ip:processing_system7 ps_0 {
}
```

The `cell` command and other helper commands are defined in the [scripts/project.tcl](https://github.com/pavel-demin/eclypse-z7-notes/blob/master/scripts/project.tcl) script.
The `cell` command and other helper commands are defined in the [scripts/project.tcl]($source$/scripts/project.tcl) script.

## Getting started

Expand Down Expand Up @@ -105,7 +105,7 @@ Building an SD card image:
sudo sh scripts/alpine.sh
```

A pre-built SD card image can be downloaded from [this link](release_image).
A pre-built SD card image can be downloaded from [this link]($release_image$).

To write the image to a micro SD card, copy the contents of the SD card image zip file to a micro SD card.

Expand Down
8 changes: 4 additions & 4 deletions md/sdr-receiver-hpsdr.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ The I/Q data rate is configurable and four settings are available: 48, 96, 192,

The tunable frequency range covers from 0 Hz to 61.44 MHz.

The [projects/sdr_receiver_hpsdr](https://github.com/pavel-demin/eclypse-z7-notes/tree/master/projects/sdr_receiver_hpsdr) directory contains two Tcl files: [block_design.tcl](https://github.com/pavel-demin/eclypse-z7-notes/blob/master/projects/sdr_receiver_hpsdr/block_design.tcl), [rx.tcl](https://github.com/pavel-demin/eclypse-z7-notes/blob/master/projects/sdr_receiver_hpsdr/rx.tcl). The code in these files instantiates, configures and interconnects all the needed IP cores.
The [projects/sdr_receiver_hpsdr]($source$/projects/sdr_receiver_hpsdr) directory contains two Tcl files: [block_design.tcl]($source$/projects/sdr_receiver_hpsdr/block_design.tcl), [rx.tcl]($source$/projects/sdr_receiver_hpsdr/rx.tcl). The code in these files instantiates, configures and interconnects all the needed IP cores.

The [projects/sdr_receiver_hpsdr/filters](https://github.com/pavel-demin/eclypse-z7-notes/tree/master/projects/sdr_receiver_hpsdr/filters) directory contains the source code of the [R](https://www.r-project.org) script used to calculate the coefficients of the FIR filters.
The [projects/sdr_receiver_hpsdr/filters]($source$/projects/sdr_receiver_hpsdr/filters) directory contains the source code of the [R](https://www.r-project.org) script used to calculate the coefficients of the FIR filters.

The [projects/sdr_receiver_hpsdr/server](https://github.com/pavel-demin/eclypse-z7-notes/tree/master/projects/sdr_receiver_hpsdr/server) directory contains the source code of the UDP server ([sdr-receiver-hpsdr.c](https://github.com/pavel-demin/eclypse-z7-notes/blob/master/projects/sdr_receiver_hpsdr/server/sdr-receiver-hpsdr.c)) that receives control commands and transmits the I/Q data streams to the SDR programs.
The [projects/sdr_receiver_hpsdr/server]($source$/projects/sdr_receiver_hpsdr/server) directory contains the source code of the UDP server ([sdr-receiver-hpsdr.c]($source$/projects/sdr_receiver_hpsdr/server/sdr-receiver-hpsdr.c)) that receives control commands and transmits the I/Q data streams to the SDR programs.

## Software

Expand All @@ -46,7 +46,7 @@ This SDR receiver should work with most of the programs that support the HPSDR/M

## Getting started

- Download [SD card image zip file](release_image) (more details about the SD card image can be found at [this link](/alpine/)).
- Download [SD card image zip file]($release_image$) (more details about the SD card image can be found at [this link](/alpine/)).
- Copy the contents of the SD card image zip file to a micro SD card.
- Optionally, to start the application automatically at boot time, copy its `start.sh` file from `apps/sdr_receiver_hpsdr` to the topmost directory on the SD card.
- Install the micro SD card in the Eclypse Z7 board and connect the power.
Expand Down
12 changes: 6 additions & 6 deletions md/sdr-transceiver.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ The basic blocks of the digital down-converters (DDC) and of the digital up-conv

![SDR transceiver](/img/sdr-transceiver.png)

The [projects/sdr_transceiver](https://github.com/pavel-demin/eclypse-z7-notes/tree/master/projects/sdr_transceiver) directory contains four Tcl files: [block_design.tcl](https://github.com/pavel-demin/eclypse-z7-notes/blob/master/projects/sdr_transceiver/block_design.tcl), [trx.tcl](https://github.com/pavel-demin/eclypse-z7-notes/blob/master/projects/sdr_transceiver/trx.tcl), [rx.tcl](https://github.com/pavel-demin/eclypse-z7-notes/blob/master/projects/sdr_transceiver/rx.tcl), [tx.tcl](https://github.com/pavel-demin/eclypse-z7-notes/blob/master/projects/sdr_transceiver/tx.tcl). The code in these files instantiates, configures and interconnects all the needed IP cores.
The [projects/sdr_transceiver]($source$/projects/sdr_transceiver) directory contains four Tcl files: [block_design.tcl]($source$/projects/sdr_transceiver/block_design.tcl), [trx.tcl]($source$/projects/sdr_transceiver/trx.tcl), [rx.tcl]($source$/projects/sdr_transceiver/rx.tcl), [tx.tcl]($source$/projects/sdr_transceiver/tx.tcl). The code in these files instantiates, configures and interconnects all the needed IP cores.

## Software

The [projects/sdr_transceiver/server](https://github.com/pavel-demin/eclypse-z7-notes/tree/master/projects/sdr_transceiver/server) directory contains the source code of the TCP server ([sdr-transceiver.c](https://github.com/pavel-demin/eclypse-z7-notes/blob/master/projects/sdr_transceiver/server/sdr-transceiver.c)) that receives control commands and transmits/receives the I/Q data streams (up to 2 x 32 bit x 1536 kSPS = 91.6 Mbit/s) to/from the SDR programs.
The [projects/sdr_transceiver/server]($source$/projects/sdr_transceiver/server) directory contains the source code of the TCP server ([sdr-transceiver.c]($source$/projects/sdr_transceiver/server/sdr-transceiver.c)) that receives control commands and transmits/receives the I/Q data streams (up to 2 x 32 bit x 1536 kSPS = 91.6 Mbit/s) to/from the SDR programs.

The [projects/sdr_transceiver/gnuradio](https://github.com/pavel-demin/eclypse-z7-notes/tree/master/projects/sdr_transceiver/gnuradio) directory contains an example of a flow graph configuration for [GNU Radio Companion](https://wiki.gnuradio.org/index.php/GNURadioCompanion).
The [projects/sdr_transceiver/gnuradio]($source$/projects/sdr_transceiver/gnuradio) directory contains an example of a flow graph configuration for [GNU Radio Companion](https://wiki.gnuradio.org/index.php/GNURadioCompanion).

## Getting started with GNU Radio

- Connect an antenna to the CH1 connector of the Zmod Digitizer module.
- Download [SD card image zip file](release_image) (more details about the SD card image can be found at [this link](/alpine/)).
- Download [SD card image zip file]($release_image$) (more details about the SD card image can be found at [this link](/alpine/)).
- Copy the contents of the SD card image zip file to a micro SD card.
- Optionally, to start the application automatically at boot time, copy its `start.sh` file from `apps/sdr_transceiver` to the topmost directory on the SD card.
- Install the micro SD card in the Eclypse Z7 board and connect the power.
Expand All @@ -75,12 +75,12 @@ gnuradio-companion fm.grc
## Getting started with SDR# and HDSDR

- Connect an antenna to the CH1 connector of the Zmod Digitizer module.
- Download [SD card image zip file](release_image) (more details about the SD card image can be found at [this link](/alpine/)).
- Download [SD card image zip file]($release_image$) (more details about the SD card image can be found at [this link](/alpine/)).
- Copy the contents of the SD card image zip file to a micro SD card.
- Optionally, to start the application automatically at boot time, copy its `start.sh` file from `apps/sdr_transceiver` to the topmost directory on the SD card.
- Install the micro SD card in the Eclypse Z7 board and connect the power.
- Download and install [SDR#](https://www.dropbox.com/sh/5fy49wae6xwxa8a/AAAdAcU238cppWziK4xPRIADa/sdr/sdrsharp_v1.0.0.1361_with_plugins.zip?dl=1) or [HDSDR](https://www.hdsdr.de).
- Download [pre-built ExtIO plug-in](extio_file) for SDR# and HDSDR.
- Download [pre-built ExtIO plug-in]($extio_file$) for SDR# and HDSDR.
- Copy `extio_red_pitaya.dll` into the SDR# or HDSDR installation directory.
- Start SDR# or HDSDR.
- Select Red Pitaya from the Source list in SDR# or from the Options [F7] &rarr; Select Input menu in HDSDR.
Expand Down
2 changes: 1 addition & 1 deletion metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ site_title: Eclypse Z7 Notes

description: Notes on the Eclypse Z7 development board

source: https://github.com/pavel-demin/eclypse-z7-notes
source: https://github.com/pavel-demin/eclypse-z7-notes/tree/master
issues: https://github.com/pavel-demin/eclypse-z7-notes/issues

release_image: https://github.com/pavel-demin/eclypse-z7-notes/releases/download/20230222/eclypse-z7-alpine-3.14-armv7-20230222.zip
Expand Down
16 changes: 8 additions & 8 deletions page.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="${description}">
<link rel="canonical" href="${canonical}">
<link rel="stylesheet" href="${base_path}/css/main.css">
<title>${title}</title>
<meta name="description" content="$description$">
<link rel="canonical" href="$canonical$">
<link rel="stylesheet" href="$base_path$/css/main.css">
<title>$title$</title>
</head>
<body>
<header>
<div>
<a href="${base_path}/">${site_title}</a>
<a href="$base_path$/">$site_title$</a>
</div>
<div>
<a href="${source}">Source</a>
<a href="${issues}">Issues</a>
<a href="$source$">Source</a>
<a href="$issues$">Issues</a>
</div>
</header>
<article>
${body}
$body$
</article>
</body>
</html>

0 comments on commit ea309e9

Please sign in to comment.