Skip to content

Commit 6474232

Browse files
Register defs fully handled
1 parent c1d9dca commit 6474232

File tree

5 files changed

+442
-41
lines changed

5 files changed

+442
-41
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171
"cerrno": "cpp",
7272
"cfloat": "cpp",
7373
"climits": "cpp",
74-
"regex": "cpp"
74+
"regex": "cpp",
75+
"any": "cpp"
7576
},
7677
"python.pythonPath": "/usr/bin/python3",
7778
"files.exclude": {

.vscode/tasks.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"tasks": [
33
{
4-
"taskName": "build",
5-
"type": "shell",
6-
"command": "cd build; make -j4",
7-
"args": [],
8-
"group": {
9-
"kind": "build",
10-
"isDefault": false
11-
},
12-
"problemMatcher": "$gcc"
4+
"taskName": "build",
5+
"type": "shell",
6+
"command": "cd build; make -j4",
7+
"args": [],
8+
"group": {
9+
"kind": "build",
10+
"isDefault": true
11+
},
12+
"problemMatcher": "$gcc"
1313
},
1414
{
1515
"taskName": "clean & build all",

mdf/beijing_2.xml

Lines changed: 130 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@
395395
Bit 0 - Direction for I/O channel 8 - (RA1). 0=output. 1=input.\n
396396
</description>
397397
<access>rw</access>
398-
<bit pos="0" default="false" >
398+
<bit pos="0" default="true" >
399399
<name lang="en">Direction 8</name>
400400
<description lang="en">Direction for I/O channel 8 - (RA1). 0=output. 1=input.</description>
401401
</bit>
@@ -447,35 +447,147 @@
447447
<bit pos="0" default="false" >
448448
<name lang="en">Direction 0</name>
449449
<description lang="en">Direction for I/O channel 0 - (RB0). 0=output. 1=input.</description>
450-
</bit>
451-
<bit pos="0" default="false" >
450+
<valuelist>
451+
<item value = "0x0">
452+
<name lang="en">Output</name>
453+
<description lang="en">
454+
Channel 0 set as output.
455+
</description>
456+
</item>
457+
<item value = "0x1">
458+
<name lang="en">Input</name>
459+
<description lang="en">
460+
Channel 0 set as input.
461+
</description>
462+
</item>
463+
</valuelist>
464+
</bit>
465+
<bit pos="1" default="false" >
452466
<name lang="en">Direction 1</name>
453467
<description lang="en">Direction for I/O channel 1 - (RB1). 0=output. 1=input.</description>
454-
</bit>
455-
<bit pos="0" default="false" >
468+
<valuelist>
469+
<item value = "0x0">
470+
<name lang="en">Output</name>
471+
<description lang="en">
472+
Channel 1 set as output.
473+
</description>
474+
</item>
475+
<item value = "0x1">
476+
<name lang="en">Input</name>
477+
<description lang="en">
478+
Channel 1 set as input.
479+
</description>
480+
</item>
481+
</valuelist>
482+
</bit>
483+
<bit pos="2" default="false" >
456484
<name lang="en">Direction 2</name>
457485
<description lang="en">Direction for I/O channel 2 - (RC3). 0=output. 1=input.</description>
458-
</bit>
459-
<bit pos="0" default="false" >
486+
<valuelist>
487+
<item value = "0x0">
488+
<name lang="en">Output</name>
489+
<description lang="en">
490+
Channel 2 set as output.
491+
</description>
492+
</item>
493+
<item value = "0x1">
494+
<name lang="en">Input</name>
495+
<description lang="en">
496+
Channel 2 set as input.
497+
</description>
498+
</item>
499+
</valuelist>
500+
</bit>
501+
<bit pos="3" default="false" >
460502
<name lang="en">Direction 3</name>
461503
<description lang="en">Direction for I/O channel 3 - (RC4). 0=output. 1=input.</description>
462-
</bit>
463-
<bit pos="0" default="false" >
504+
<valuelist>
505+
<item value = "0x0">
506+
<name lang="en">Output</name>
507+
<description lang="en">
508+
Channel 3 set as output.
509+
</description>
510+
</item>
511+
<item value = "0x1">
512+
<name lang="en">Input</name>
513+
<description lang="en">
514+
Channel 3 set as input.
515+
</description>
516+
</item>
517+
</valuelist>
518+
</bit>
519+
<bit pos="4" default="false" >
464520
<name lang="en">Direction 4</name>
465521
<description lang="en">Direction for I/O channel 4 - (RC5). 0=output. 1=input.</description>
466-
</bit>
467-
<bit pos="0" default="false" >
522+
<valuelist>
523+
<item value = "0x0">
524+
<name lang="en">Output</name>
525+
<description lang="en">
526+
Channel 4 set as output.
527+
</description>
528+
</item>
529+
<item value = "0x1">
530+
<name lang="en">Input</name>
531+
<description lang="en">
532+
Channel 4 set as input.
533+
</description>
534+
</item>
535+
</valuelist>
536+
</bit>
537+
<bit pos="5" default="false" >
468538
<name lang="en">Direction 5</name>
469539
<description lang="en">Direction for I/O channel 5 - ((RC6). 0=output. 1=input.</description>
470-
</bit>
471-
<bit pos="0" default="false" >
540+
<valuelist>
541+
<item value = "0x0">
542+
<name lang="en">Output</name>
543+
<description lang="en">
544+
Channel 5 set as output.
545+
</description>
546+
</item>
547+
<item value = "0x1">
548+
<name lang="en">Input</name>
549+
<description lang="en">
550+
Channel 5 set as input.
551+
</description>
552+
</item>
553+
</valuelist>
554+
</bit>
555+
<bit pos="6" default="false" >
472556
<name lang="en">Direction 6</name>
473557
<description lang="en">Direction for I/O channel 6 - ((RC7). 0=output. 1=input.</description>
474-
</bit>
475-
<bit pos="0" default="false" >
558+
<valuelist>
559+
<item value = "0x0">
560+
<name lang="en">Output</name>
561+
<description lang="en">
562+
Channel 6 set as output.
563+
</description>
564+
</item>
565+
<item value = "0x1">
566+
<name lang="en">Input</name>
567+
<description lang="en">
568+
Channel 6 set as input.
569+
</description>
570+
</item>
571+
</valuelist>
572+
</bit>
573+
<bit pos="7" default="false" >
476574
<name lang="en">Direction 7</name>
477575
<description lang="en">Direction for I/O channel 7 - (RA2). 0=output. 1=input.</description>
478-
</bit>
576+
<valuelist>
577+
<item value = "0x0">
578+
<name lang="en">Output</name>
579+
<description lang="en">
580+
Channel 7 set as output.
581+
</description>
582+
</item>
583+
<item value = "0x1">
584+
<name lang="en">Input</name>
585+
<description lang="en">
586+
Channel 7 set as input.
587+
</description>
588+
</item>
589+
</valuelist>
590+
</bit>
479591
</reg>
480592

481593
<reg page="0" offset="14" bgcolor="0x99FF99" >
@@ -488,7 +600,7 @@
488600
<access>rw</access>
489601
<valuelist>
490602
<item value = "0x0">
491-
<name lang="en">Off</name>
603+
<name lang="en">Off</name>
492604
<description lang="en">
493605
Read: channel is in low state. Write: set output channel to its low state.
494606
</description>
@@ -3909,7 +4021,7 @@
39094021
Set the output of the I/O channel given by the argument to its low state.
39104022
The argument is an integer where 0 is output 0 and so on and can be in the range 0-9.\n
39114023
</description>
3912-
<param>
4024+
<param>
39134025
<name lang="en">Channel to set state low on</name>
39144026
<description lang="en">
39154027
Integer representing I/O channel to set state low on.

0 commit comments

Comments
 (0)