more fiddling around with resolution

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2022-04-06 23:22:04 +08:00
parent 1a0f8eee4d
commit c90a2efccb

View File

@ -410,7 +410,7 @@
</section> </section>
<section> <section>
<h2>Example Serial Port</h2> <h2>Example Serial Port</h2>
<pre class="code-animation"><code class="cs" data-trim data-line-numbers="|22-33|132-140"> <pre class="code-animation"><code class="cs" data-trim data-line-numbers="|132-140|118-126|125|20-33">
// //
// Copyright (c) 2010-2018 Antmicro // Copyright (c) 2010-2018 Antmicro
// //
@ -432,18 +432,18 @@
IRQ = new GPIO(); IRQ = new GPIO();
var registersMap = new Dictionary<long, DoubleWordRegister> var registersMap = new Dictionary<long, DoubleWordRegister>
{ {
{(long)Registers.RxTx, new DoubleWordRegister(this) {(long)Registers.RxTx, new DoubleWordRegister(this)
.WithValueField(0, 8, .WithValueField(0, 8,
writeCallback: (_, value) => writeCallback: (_, value) =>
this.TransmitCharacter((byte)value), this.TransmitCharacter((byte)value),
valueProviderCallback: _ => { valueProviderCallback: _ => {
if(!TryGetCharacter(out var character)) if(!TryGetCharacter(out var character))
{ {
this.Log(LogLevel.Warning, "Empty Rx FIFO."); this.Log(LogLevel.Warning, "Empty Rx FIFO.");
} }
return character; return character;
}) })
}, },
{(long)Registers.TxFull, new DoubleWordRegister(this) {(long)Registers.TxFull, new DoubleWordRegister(this)
.WithFlag(0, FieldMode.Read) //tx is never full .WithFlag(0, FieldMode.Read) //tx is never full
}, },
@ -701,7 +701,7 @@
</section> </section>
<section> <section>
<h2>SVD: Standard Chip Documentation</h2> <h2>SVD: Standard Chip Documentation</h2>
<pre class="code-animation"><code class="xml" data-trim data-line-numbers="|3-9|25-87|27-31|39-57|46-47|48-56"> <pre class="code-animation"><code class="xml" data-trim data-line-numbers="|3-9|25-87|27-31|39-57|43|46-47|48-56">
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<device xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="1.1" xsi:noNamespaceSchemaLocation="CMSIS-SVD_Schema_1_1_draft.xsd"> <device xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="1.1" xsi:noNamespaceSchemaLocation="CMSIS-SVD_Schema_1_1_draft.xsd">
<vendor>STMicroelectronics</vendor> <vendor>STMicroelectronics</vendor>
@ -892,7 +892,7 @@
// when the presentation is scaled to fit different resolutions. Can be // when the presentation is scaled to fit different resolutions. Can be
// specified using percentage units. // specified using percentage units.
width: 1280, width: 1280,
height: 960, height: 840,
// Factor of the display size that should remain empty around the content // Factor of the display size that should remain empty around the content
margin: 0.1, margin: 0.1,