Fixed typos

pull/4/head
bzt 6 years ago
parent 7ace64ba9f
commit 158e9ea522

@ -1,8 +1,10 @@
Oktatóanyag 03 - UART1, Auxilary mini UART Oktatóanyag 03 - UART1, Auxilary mini UART
========================================== ==========================================
Ezúttal a hírhedt Helló Világ példát vesszük elő. Előbb az UART1-re írjuk meg, mivel azt egyszerűbb programozni. Ezúttal a hírhedt Helló Világ példát vesszük elő. Előbb az UART1-re írjuk meg, mivel azt egyszerűbb programozni,
NOTE: qemu nem irányítja át alapból az UART1-et a terminálra, csak az UART0-át! mivel fix órafrekvenciája van.
FIGYELEM: qemu nem irányítja át alapból az UART1-et a terminálra, csak az UART0-át!
Gpio.h Gpio.h
------ ------

@ -1,7 +1,9 @@
Tutorial 03 - UART1, Auxilary mini UART Tutorial 03 - UART1, Auxilary mini UART
======================================= =======================================
It is time for the famous Hello World example. We're going to write on the UART1 first, as it's easier to program. It is time for the famous Hello World example. We're going to write on the UART1 first, as it's easier to program
as it has a fixed clocked frequency.
NOTE: qemu does not redirect UART1 to terminal by default, only UART0! NOTE: qemu does not redirect UART1 to terminal by default, only UART0!
Gpio.h Gpio.h

@ -3,7 +3,8 @@ Oktatóanyag 04 - Levelesládák
Mielőtt nekiugranánk az UART0-ának, szükségünk lesz a levelesládára. Ezért ebben az oktatóanyagban bemutatom a Mielőtt nekiugranánk az UART0-ának, szükségünk lesz a levelesládára. Ezért ebben az oktatóanyagban bemutatom a
mailbox interfészt. Arra használjuk, hogy lekérdezzük az alaplap egyedi sorszámát, majd kiírjuk azt. mailbox interfészt. Arra használjuk, hogy lekérdezzük az alaplap egyedi sorszámát, majd kiírjuk azt.
NOTE: qemu nem irányítja át alapból az UART1-et a terminálra, csak az UART0-át!
FIGYELEM: qemu nem irányítja át alapból az UART1-et a terminálra, csak az UART0-át!
Uart.h, uart.c Uart.h, uart.c
-------------- --------------
@ -17,16 +18,22 @@ A levelesláda interfésze. Először értékekkel feltöltjük az `mbox` tömb
hogy értesüljön róla a GPU, megadva közben a levelesláda csatornáját. hogy értesüljön róla a GPU, megadva közben a levelesláda csatornáját.
Ebben a példában a [property csatornát](https://github.com/raspberrypi/firmware/wiki/Mailbox-property-interface) Ebben a példában a [property csatornát](https://github.com/raspberrypi/firmware/wiki/Mailbox-property-interface)
használtam, aminek az üzenete a következőképp néz ki: használtam, aminek az üzenete a következőképp néz ki:
```
0. üzenet teljes hossza bájtban, (x+1)*4 0. üzenet teljes hossza bájtban, (x+1)*4
1. MBOX_REQUEST mágikus szám, kérés típusú üzenetet jelent 1. MBOX_REQUEST mágikus szám, kérés típusú üzenetet jelent
2-x. parancsok 2-x. parancsok
x+1. MBOX_TAG_LAST mágikus szám, nincs további parancs jelölése x+1. MBOX_TAG_LAST mágikus szám, nincs további parancs jelölése
```
Ahol minden egyes parancs szerkezete a következő: Ahol minden egyes parancs szerkezete a következő:
```
n+0. parancs azonosító n+0. parancs azonosító
n+1. adatterület mérete bájtban n+1. adatterület mérete bájtban
n+2. nulla n+2. nulla
n+3. opcionális adatterület n+3. opcionális adatterület
```
Main Main
---- ----

@ -3,6 +3,7 @@ Tutorial 04 - Mailboxes
Before we could go on with UART0, we need mailboxes. So in this tutorial we introduce the mailbox interface. Before we could go on with UART0, we need mailboxes. So in this tutorial we introduce the mailbox interface.
We'll use it to query the board's serial number and print that out on UART1. We'll use it to query the board's serial number and print that out on UART1.
NOTE: qemu does not redirect UART1 to terminal by default, only UART0! NOTE: qemu does not redirect UART1 to terminal by default, only UART0!
Uart.h, uart.c Uart.h, uart.c
@ -17,16 +18,22 @@ The mailbox interface. First we fill up the message in `mbox` array, then we cal
`mbox_call(ch)` to pass it to the GPU, specifying the mailbox channel. `mbox_call(ch)` to pass it to the GPU, specifying the mailbox channel.
In this example we have used the [property channel](https://github.com/raspberrypi/firmware/wiki/Mailbox-property-interface), In this example we have used the [property channel](https://github.com/raspberrypi/firmware/wiki/Mailbox-property-interface),
which requires the message to be formatted as: which requires the message to be formatted as:
```
0. size of the message in bytes, (x+1)*4 0. size of the message in bytes, (x+1)*4
1. MBOX_REQUEST magic value, indicates request message 1. MBOX_REQUEST magic value, indicates request message
2-x. tags 2-x. tags
x+1. MBOX_TAG_LAST magic value, indicates no more tags x+1. MBOX_TAG_LAST magic value, indicates no more tags
```
Where each tag looks like: Where each tag looks like:
```
n+0. tag identifier n+0. tag identifier
n+1. value buffer size in bytes n+1. value buffer size in bytes
n+2. must be zero n+2. must be zero
n+3. optional value buffer n+3. optional value buffer
```
Main Main
---- ----

@ -3,7 +3,7 @@ Oktatóanyag 07 - Késleltetések
Roppant fontos, hogy a megfelelő időtartamot késleltessünk, amikor alacsony szintű hardverrel bánunk. Roppant fontos, hogy a megfelelő időtartamot késleltessünk, amikor alacsony szintű hardverrel bánunk.
Ebben az okatatóanyagban három megközelítést nézünk meg. Az egyik CPU órajel függő (akkor hasznos, ha Ebben az okatatóanyagban három megközelítést nézünk meg. Az egyik CPU órajel függő (akkor hasznos, ha
a várakozási idő óraciklusban van megadva), a másik kettő mikroszekundum (másodperc milliomod része) alapú. a várakozási idő órajelciklusban van megadva), a másik kettő mikroszekundum (másodperc milliomod része) alapú.
Delays.h, delays.c Delays.h, delays.c
------------------ ------------------

@ -3,7 +3,7 @@ Tutorial 07 - Delays
It is very important to wait precise amounts of time while you're interfacing with low level hardware. It is very important to wait precise amounts of time while you're interfacing with low level hardware.
In this tutorial we'll cover there ways. One is CPU frequency dependent (and useful if wait time is given In this tutorial we'll cover there ways. One is CPU frequency dependent (and useful if wait time is given
in CPU clock cycles), the other two are are microsec (millionth of a second) based. in CPU clock cycles), the other two are microsec (millionth of a second) based.
Delays.h, delays.c Delays.h, delays.c
------------------ ------------------

@ -10,7 +10,7 @@ connected to a data GPIO pin for example).
Power.h, power.c Power.h, power.c
---------------- ----------------
The power management controller is one of the periphels that are not emulated properly by qemu. The power management controller is one of the peripherals that are not emulated properly by qemu.
Works on real hardware though. Works on real hardware though.
`power_off()` shutdowns the board to a almost zero power consumption state. `power_off()` shutdowns the board to a almost zero power consumption state.

@ -127,7 +127,9 @@ Néhány az érdekesebb MMIO címek közül:
0x3F980000 - USB vezérlő (Universal Serial Bus controller) 0x3F980000 - USB vezérlő (Universal Serial Bus controller)
``` ```
A többi információ megtalálható a Raspberry Pi firmware wiki-ben és a documentation repóban a github-on. A többi információ megtalálható a Raspberry Pi firmware wiki-ben és a documentation repóban a github-on.
https://github.com/raspberrypi https://github.com/raspberrypi
Sok szerencsét és élvezetes hekkelést a Raspberry-dhez! :-) Sok szerencsét és élvezetes hekkelést a Raspberry-dhez! :-)
bzt bzt

@ -121,7 +121,9 @@ Some of the more interesting MMIO addresses are:
0x3F980000 - Universal Serial Bus controller 0x3F980000 - Universal Serial Bus controller
``` ```
For more information, see Raspberry Pi firmware wiki and documentation on github. For more information, see Raspberry Pi firmware wiki and documentation on github.
https://github.com/raspberrypi https://github.com/raspberrypi
Good luck and enjoy hacking with your Raspberry! :-) Good luck and enjoy hacking with your Raspberry! :-)
bzt bzt

Loading…
Cancel
Save