Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarull committed May 31, 2021
0 parents commit 0013fe7
Show file tree
Hide file tree
Showing 28 changed files with 1,249 additions and 0 deletions.
1 change: 1 addition & 0 deletions .chktexrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VerbEnvir { codebox }
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build

on: [push]

jobs:
build:
runs-on: ubuntu-latest
container: texlive/texlive:latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Lint
run: make lint

- name: Build
run: make

- name: Archive
uses: actions/upload-artifact@v2
with:
path: build/*.pdf
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build
_minted*
*.log
*.bak*
428 changes: 428 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Slides Makefile
#
# Gerard Marull-Paretas <[email protected]>
# Copyright (c) 2021 Teslabs Engineering S.L.

# programs
MKDIR := mkdir
LATEXMK := latexmk
PDFLATEX := pdflatex
CHKTEX := chktex
LATEXINDENT := latexindent

# options
BUILD_DIR := build
PDF_OPTS := -shell-escape -interaction=nonstopmode

# sources
SOURCES := slides.tex
SOURCES_PDF := $(patsubst %.tex,$(BUILD_DIR)/%.pdf,$(SOURCES))
SOURCES_LINT := $(patsubst %.tex,lint-%,$(SOURCES))
SOURCES_FMT := $(patsubst %.tex,fmt-%,$(SOURCES))

.PHONY: all lint fmt clean

all: $(SOURCES_PDF)

$(BUILD_DIR)/%.pdf: %.tex | $(BUILD_DIR)
$(LATEXMK) \
-pdf \
-pdflatex="$(PDFLATEX) $(PDF_OPTS)" \
-jobname=$(patsubst %.pdf,%,$@) \
$<

$(BUILD_DIR):
$(MKDIR) -p $(BUILD_DIR)

lint: $(SOURCES_LINT)
lint-%: %.tex
$(CHKTEX) $<

fmt: $(SOURCES_FMT)
fmt-%: %.tex
$(LATEXINDENT) -s -l -w $<

clean:
rm -rf $(BUILD_DIR) _minted-* *.log *.bak*
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Using Zephyr for hard real-time applications: motor control

This repository contains the sources for the talk "Using Zephyr for hard
real-time applications: motor control" presented at the 2021 Zephyr Developer
Summit.

## Build

The slides are written using the `beamer` LaTeX class. They can be built
by running:

```shell
make
```

Build files can be cleaned by running:

```shell
make clean
```

## Lint and format

Slides can be linted for errors by running:

```shell
make lint
```

Additionally, slides can be automatically formatted using:

```shell
make fmt
```
104 changes: 104 additions & 0 deletions beamerthemeteslabs.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
% colors
\definecolor{base-color}{RGB}{87, 173, 104}

% serif font for mathematical formulas
\usefonttheme[onlymath]{serif}

% structure color is base-color
\setbeamercolor{structure}{fg=base-color}

% no navigation bar
\setbeamertemplate{navigation symbols}{}

% no icons on bibliography
\setbeamertemplate{bibliography item}{}

% bibliography colors
\setbeamercolor{bibliography entry author}{fg=black}
\setbeamercolor{bibliography entry title}{fg=black}
\setbeamercolor{bibliography entry location}{fg=black}
\setbeamercolor{bibliography entry note}{fg=black}

% custom title page
\makeatletter
\setbeamertemplate{title page}
{
\vbox{}
\vfill
\begin{centering}
\includegraphics[scale=0.4]{theme/logo.png}\par
\vskip3em\par
\setbeamerfont{title}{series=\bfseries,size=\huge}
\setbeamercolor{title}{bg=white,fg=structure}
\begin{beamercolorbox}[center]{title}
\usebeamerfont{title}\inserttitle
\end{beamercolorbox}
\begin{beamercolorbox}[center]{subtitle}
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}%
\insertsubtitle\par}%
\fi%
\end{beamercolorbox}%
\vskip2em\par
\begin{beamercolorbox}[center]{author}
\usebeamerfont{author}\insertauthor
\end{beamercolorbox}
\begin{beamercolorbox}[center]{date}
\usebeamerfont{date}\insertdate
\end{beamercolorbox}%
\vskip0.5em
\end{centering}
\vfill
}
\makeatother

% custom frame title
\setbeamerfont{frametitle}{series=\bfseries}
\setbeamertemplate{frametitle}
{%
\begin{centering}
\insertframetitle\par
\end{centering}
}

% custom frame footer
\setbeamerfont{footline}{size=\fontsize{9}{12}}
\setbeamertemplate{footline}
{%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,
ht=4.25ex,
dp=1ex,
left]{structure}
\raisebox{.5\baselineskip}{%
\parbox[t][4ex][t]{.333333\paperwidth}{%
\raisebox{-.3\height}{%
\hskip2ex\includegraphics[height=3ex]{theme/logo.png}%
}%
}%
}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,
ht=4.25ex,
dp=1ex,
center]{structure}%
\raisebox{.5\baselineskip}{%
\parbox[t][4ex][t]{.333333\paperwidth}{%
\centering\insertsection%
}%
}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,
ht=4.25ex,
dp=1ex,
right]{structure}%
\raisebox{.5\baselineskip}{%
\parbox[t][4ex][t]{.333333\paperwidth}{%
\raggedleft\insertframenumber\hspace*{2ex}%
}%
}
\end{beamercolorbox}}%
}%

Binary file added images/cloop-full-schematic.odg
Binary file not shown.
Binary file added images/cloop-full-schematic.pdf
Binary file not shown.
Binary file added images/cloop-mcsdk-5y1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/cloop-only-schematic.odg
Binary file not shown.
Binary file added images/cloop-only-schematic.pdf
Binary file not shown.
Binary file added images/kconfig.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/p-nucleo-ihm002.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/pmsm-outer.odg
Binary file not shown.
Binary file added images/pmsm-outer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/pmsm.odg
Binary file not shown.
Binary file added images/pmsm.pdf
Binary file not shown.
Binary file added images/rotating-magnetic-field.odg
Binary file not shown.
Binary file added images/rotating-magnetic-field.pdf
Binary file not shown.
Binary file added images/spinner-schematic.odg
Binary file not shown.
Binary file added images/spinner-schematic.pdf
Binary file not shown.
Binary file added images/spinner.pdf
Binary file not shown.
Binary file added images/zli-cloop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/zli-disabled-cloop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions localSettings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
defaultIndent: ' '
verbatimEnvironments:
codebox: 1
Loading

0 comments on commit 0013fe7

Please sign in to comment.