summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2017-08-30 17:15:30 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2017-08-30 17:15:30 +0100
commitb1fda38815e4b665007a769f8dd37d07f49bc210 (patch)
tree05277720e31d4fad1fde1315ea328617505e61f0
parente39384c7b22c72c078e03e2c8b1d5a9d513bf31c (diff)
downloadblog-b1fda38815e4b665007a769f8dd37d07f49bc210.tar.bz2
Some simple typo fixes for PMA article
-rw-r--r--posts/stm32-usb-in-rust-pma.mdwn12
1 files changed, 6 insertions, 6 deletions
diff --git a/posts/stm32-usb-in-rust-pma.mdwn b/posts/stm32-usb-in-rust-pma.mdwn
index 12b9853..02f8393 100644
--- a/posts/stm32-usb-in-rust-pma.mdwn
+++ b/posts/stm32-usb-in-rust-pma.mdwn
@@ -39,7 +39,7 @@ Byte offset in PMA | Field name | Description
-------------------|----------------|-------------
`(EPn * 8) + 0` | `USB_ADDRn_TX` | The address (inside the PMA) of the TX buffer for EPn
`(EPn * 8) + 2` | `USB_COUNTn_TX`| The number of bytes present in the TX buffer for EPn
-`(EPn * 8) + 4` | `USB_ADDRn_RX` | The address (inside the PMA0 of the RX buffer for EPn
+`(EPn * 8) + 4` | `USB_ADDRn_RX` | The address (inside the PMA) of the RX buffer for EPn
`(EPn * 8) + 6` | `USB_COUNTn_RX`| The number of bytes of space available for the RX buffer for EPn (and once received, the number of bytes received)
[Buffer Descriptor Table]
@@ -93,7 +93,7 @@ the PMA, we'd look for the 16bit word at `0x4000_6000 + (0x08 * 2) =>
Bundling the PMA into something we can use
------------------------------------------
-I said we'd do some Rust, and so we shall...
+I said we'd do some Rust, and so we shall…
[[!format c """
@@ -129,11 +129,11 @@ That block of code gives us three important things. Firstly a peripheral
object which we will be able to (later) manage nicely as part of the set of
peripherals which RTFM will look after for us. Secondly we get a convenient
packed array of u16s which will be considered volatile (the compiler won't
-optimise around the ordering of writes etc). Finally we get a useful struct on
-which we can hang an implementation to give our PMA useful functionality.
+optimise around the ordering of writes etc). Finally we get a struct on
+which we can hang an implementation to give our PMA more complex functionality.
-A first useful pair of functions would be to simply let us get and put u16s
-in and out of that word array, since we're only using every other word...
+A useful first pair of functions would be to simply let us get and put u16s
+in and out of that word array, since we're only using every other word…
[[!format c """