forked from juju2013/touchled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
svd.fs
1404 lines (1364 loc) · 64.9 KB
/
svd.fs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
\ Program Name: 1b.fs for Mecrisp-Stellaris by Matthias Koch and licensed under the GPL
\ Copyright 2019 t.porter <[email protected]> and licensed under the BSD license.
\ This program must be loaded before memmap.fs as it provided the pretty printing legend for generic 32 bit prints
\ Also included is "bin." which prints the binary form of a number with no spaces between numbers for easy copy and pasting purposes
: b32loop. ( u -- ) \ print 32 bits in 1 bit groups
0 <#
31 0 DO
# 32 HOLD LOOP
# #>
TYPE ;
: b32sloop. ( u -- ) \ print 32 bits in 1 bit groups
0 <#
31 0 DO
# LOOP
# #>
TYPE ;
: 1b. ( u -- ) cr \ Label 1 bit generic groups
." 3|3|2|2|2|2|2|2|2|2|2|2|1|1|1|1|1|1|1|1|1|1|" cr
." 1|0|9|8|7|6|5|4|3|2|1|0|9|8|7|6|5|4|3|2|1|0|9|8|7|6|5|4|3|2|1|0 " cr
@ binary b32loop. decimal cr ;
: bin. cr \ for manual operations producing easy to paste binary numbers i.e. " 10 bin. "
." 3322222222221111111111" cr
." 10987654321098765432109876543210 " cr
binary b32sloop. decimal cr ;
\ TEMPLATE FILE for STM32F103xx
\ created by svdcutter for Mecrisp-Stellaris Forth by Matthias Koch
\ sdvcutter takes a CMSIS-SVD file plus a hand edited config.xml file as input
\ By Terry Porter "[email protected]", released under the GPL V2 Licence
\ available forth template words as selected by config.xml
$A0000000 constant FSMC ( Flexible static memory controller )
FSMC $0 + constant FSMC-BCR1 ( SRAM/NOR-Flash chip-select control register 1 )
FSMC $4 + constant FSMC-BTR1 ( SRAM/NOR-Flash chip-select timing register 1 )
FSMC $8 + constant FSMC-BCR2 ( SRAM/NOR-Flash chip-select control register 2 )
FSMC $C + constant FSMC-BTR2 ( SRAM/NOR-Flash chip-select timing register 2 )
FSMC $10 + constant FSMC-BCR3 ( SRAM/NOR-Flash chip-select control register 3 )
FSMC $14 + constant FSMC-BTR3 ( SRAM/NOR-Flash chip-select timing register 3 )
FSMC $18 + constant FSMC-BCR4 ( SRAM/NOR-Flash chip-select control register 4 )
FSMC $1C + constant FSMC-BTR4 ( SRAM/NOR-Flash chip-select timing register 4 )
FSMC $60 + constant FSMC-PCR2 ( PC Card/NAND Flash control register 2 )
FSMC $64 + constant FSMC-SR2 ( FIFO status and interrupt register 2 )
FSMC $68 + constant FSMC-PMEM2 ( Common memory space timing register 2 )
FSMC $6C + constant FSMC-PATT2 ( Attribute memory space timing register 2 )
FSMC $74 + constant FSMC-ECCR2 ( ECC result register 2 )
FSMC $80 + constant FSMC-PCR3 ( PC Card/NAND Flash control register 3 )
FSMC $84 + constant FSMC-SR3 ( FIFO status and interrupt register 3 )
FSMC $88 + constant FSMC-PMEM3 ( Common memory space timing register 3 )
FSMC $8C + constant FSMC-PATT3 ( Attribute memory space timing register 3 )
FSMC $94 + constant FSMC-ECCR3 ( ECC result register 3 )
FSMC $A0 + constant FSMC-PCR4 ( PC Card/NAND Flash control register 4 )
FSMC $A4 + constant FSMC-SR4 ( FIFO status and interrupt register 4 )
FSMC $A8 + constant FSMC-PMEM4 ( Common memory space timing register 4 )
FSMC $AC + constant FSMC-PATT4 ( Attribute memory space timing register 4 )
FSMC $B0 + constant FSMC-PIO4 ( I/O space timing register 4 )
FSMC $104 + constant FSMC-BWTR1 ( SRAM/NOR-Flash write timing registers 1 )
FSMC $10C + constant FSMC-BWTR2 ( SRAM/NOR-Flash write timing registers 2 )
FSMC $114 + constant FSMC-BWTR3 ( SRAM/NOR-Flash write timing registers 3 )
FSMC $11C + constant FSMC-BWTR4 ( SRAM/NOR-Flash write timing registers 4 )
: FSMC-BCR1. ." FSMC-BCR1 (read-write) $" FSMC-BCR1 @ hex. FSMC-BCR1 1b. ;
: FSMC-BTR1. ." FSMC-BTR1 (read-write) $" FSMC-BTR1 @ hex. FSMC-BTR1 1b. ;
: FSMC-BCR2. ." FSMC-BCR2 (read-write) $" FSMC-BCR2 @ hex. FSMC-BCR2 1b. ;
: FSMC-BTR2. ." FSMC-BTR2 (read-write) $" FSMC-BTR2 @ hex. FSMC-BTR2 1b. ;
: FSMC-BCR3. ." FSMC-BCR3 (read-write) $" FSMC-BCR3 @ hex. FSMC-BCR3 1b. ;
: FSMC-BTR3. ." FSMC-BTR3 (read-write) $" FSMC-BTR3 @ hex. FSMC-BTR3 1b. ;
: FSMC-BCR4. ." FSMC-BCR4 (read-write) $" FSMC-BCR4 @ hex. FSMC-BCR4 1b. ;
: FSMC-BTR4. ." FSMC-BTR4 (read-write) $" FSMC-BTR4 @ hex. FSMC-BTR4 1b. ;
: FSMC-PCR2. ." FSMC-PCR2 (read-write) $" FSMC-PCR2 @ hex. FSMC-PCR2 1b. ;
: FSMC-SR2. ." FSMC-SR2 () $" FSMC-SR2 @ hex. FSMC-SR2 1b. ;
: FSMC-PMEM2. ." FSMC-PMEM2 (read-write) $" FSMC-PMEM2 @ hex. FSMC-PMEM2 1b. ;
: FSMC-PATT2. ." FSMC-PATT2 (read-write) $" FSMC-PATT2 @ hex. FSMC-PATT2 1b. ;
: FSMC-ECCR2. ." FSMC-ECCR2 (read-only) $" FSMC-ECCR2 @ hex. FSMC-ECCR2 1b. ;
: FSMC-PCR3. ." FSMC-PCR3 (read-write) $" FSMC-PCR3 @ hex. FSMC-PCR3 1b. ;
: FSMC-SR3. ." FSMC-SR3 () $" FSMC-SR3 @ hex. FSMC-SR3 1b. ;
: FSMC-PMEM3. ." FSMC-PMEM3 (read-write) $" FSMC-PMEM3 @ hex. FSMC-PMEM3 1b. ;
: FSMC-PATT3. ." FSMC-PATT3 (read-write) $" FSMC-PATT3 @ hex. FSMC-PATT3 1b. ;
: FSMC-ECCR3. ." FSMC-ECCR3 (read-only) $" FSMC-ECCR3 @ hex. FSMC-ECCR3 1b. ;
: FSMC-PCR4. ." FSMC-PCR4 (read-write) $" FSMC-PCR4 @ hex. FSMC-PCR4 1b. ;
: FSMC-SR4. ." FSMC-SR4 () $" FSMC-SR4 @ hex. FSMC-SR4 1b. ;
: FSMC-PMEM4. ." FSMC-PMEM4 (read-write) $" FSMC-PMEM4 @ hex. FSMC-PMEM4 1b. ;
: FSMC-PATT4. ." FSMC-PATT4 (read-write) $" FSMC-PATT4 @ hex. FSMC-PATT4 1b. ;
: FSMC-PIO4. ." FSMC-PIO4 (read-write) $" FSMC-PIO4 @ hex. FSMC-PIO4 1b. ;
: FSMC-BWTR1. ." FSMC-BWTR1 (read-write) $" FSMC-BWTR1 @ hex. FSMC-BWTR1 1b. ;
: FSMC-BWTR2. ." FSMC-BWTR2 (read-write) $" FSMC-BWTR2 @ hex. FSMC-BWTR2 1b. ;
: FSMC-BWTR3. ." FSMC-BWTR3 (read-write) $" FSMC-BWTR3 @ hex. FSMC-BWTR3 1b. ;
: FSMC-BWTR4. ." FSMC-BWTR4 (read-write) $" FSMC-BWTR4 @ hex. FSMC-BWTR4 1b. ;
: FSMC.
FSMC-BCR1.
FSMC-BTR1.
FSMC-BCR2.
FSMC-BTR2.
FSMC-BCR3.
FSMC-BTR3.
FSMC-BCR4.
FSMC-BTR4.
FSMC-PCR2.
FSMC-SR2.
FSMC-PMEM2.
FSMC-PATT2.
FSMC-ECCR2.
FSMC-PCR3.
FSMC-SR3.
FSMC-PMEM3.
FSMC-PATT3.
FSMC-ECCR3.
FSMC-PCR4.
FSMC-SR4.
FSMC-PMEM4.
FSMC-PATT4.
FSMC-PIO4.
FSMC-BWTR1.
FSMC-BWTR2.
FSMC-BWTR3.
FSMC-BWTR4.
;
$40007000 constant PWR ( Power control )
PWR $0 + constant PWR-CR ( Power control register PWR_CR )
PWR $4 + constant PWR-CSR ( Power control register PWR_CR )
: PWR-CR. ." PWR-CR (read-write) $" PWR-CR @ hex. PWR-CR 1b. ;
: PWR-CSR. ." PWR-CSR () $" PWR-CSR @ hex. PWR-CSR 1b. ;
: PWR.
PWR-CR.
PWR-CSR.
;
$40021000 constant RCC ( Reset and clock control )
RCC $0 + constant RCC-CR ( Clock control register )
RCC $4 + constant RCC-CFGR ( Clock configuration register RCC_CFGR )
RCC $8 + constant RCC-CIR ( Clock interrupt register RCC_CIR )
RCC $C + constant RCC-APB2RSTR ( APB2 peripheral reset register RCC_APB2RSTR )
RCC $10 + constant RCC-APB1RSTR ( APB1 peripheral reset register RCC_APB1RSTR )
RCC $14 + constant RCC-AHBENR ( AHB Peripheral Clock enable register RCC_AHBENR )
RCC $18 + constant RCC-APB2ENR ( APB2 peripheral clock enable register RCC_APB2ENR )
RCC $1C + constant RCC-APB1ENR ( APB1 peripheral clock enable register RCC_APB1ENR )
RCC $20 + constant RCC-BDCR ( Backup domain control register RCC_BDCR )
RCC $24 + constant RCC-CSR ( Control/status register RCC_CSR )
: RCC-CR. ." RCC-CR () $" RCC-CR @ hex. RCC-CR 1b. ;
: RCC-CFGR. ." RCC-CFGR () $" RCC-CFGR @ hex. RCC-CFGR 1b. ;
: RCC-CIR. ." RCC-CIR () $" RCC-CIR @ hex. RCC-CIR 1b. ;
: RCC-APB2RSTR. ." RCC-APB2RSTR (read-write) $" RCC-APB2RSTR @ hex. RCC-APB2RSTR 1b. ;
: RCC-APB1RSTR. ." RCC-APB1RSTR (read-write) $" RCC-APB1RSTR @ hex. RCC-APB1RSTR 1b. ;
: RCC-AHBENR. ." RCC-AHBENR (read-write) $" RCC-AHBENR @ hex. RCC-AHBENR 1b. ;
: RCC-APB2ENR. ." RCC-APB2ENR (read-write) $" RCC-APB2ENR @ hex. RCC-APB2ENR 1b. ;
: RCC-APB1ENR. ." RCC-APB1ENR (read-write) $" RCC-APB1ENR @ hex. RCC-APB1ENR 1b. ;
: RCC-BDCR. ." RCC-BDCR () $" RCC-BDCR @ hex. RCC-BDCR 1b. ;
: RCC-CSR. ." RCC-CSR () $" RCC-CSR @ hex. RCC-CSR 1b. ;
: RCC.
RCC-CR.
RCC-CFGR.
RCC-CIR.
RCC-APB2RSTR.
RCC-APB1RSTR.
RCC-AHBENR.
RCC-APB2ENR.
RCC-APB1ENR.
RCC-BDCR.
RCC-CSR.
;
$40010800 constant GPIOA ( General purpose I/O )
GPIOA $0 + constant GPIOA-CRL ( Port configuration register low GPIOn_CRL )
GPIOA $4 + constant GPIOA-CRH ( Port configuration register high GPIOn_CRL )
GPIOA $8 + constant GPIOA-IDR ( Port input data register GPIOn_IDR )
GPIOA $C + constant GPIOA-ODR ( Port output data register GPIOn_ODR )
GPIOA $10 + constant GPIOA-BSRR ( Port bit set/reset register GPIOn_BSRR )
GPIOA $14 + constant GPIOA-BRR ( Port bit reset register GPIOn_BRR )
GPIOA $18 + constant GPIOA-LCKR ( Port configuration lock register )
: GPIOA-CRL. ." GPIOA-CRL (read-write) $" GPIOA-CRL @ hex. GPIOA-CRL 1b. ;
: GPIOA-CRH. ." GPIOA-CRH (read-write) $" GPIOA-CRH @ hex. GPIOA-CRH 1b. ;
: GPIOA-IDR. ." GPIOA-IDR (read-only) $" GPIOA-IDR @ hex. GPIOA-IDR 1b. ;
: GPIOA-ODR. ." GPIOA-ODR (read-write) $" GPIOA-ODR @ hex. GPIOA-ODR 1b. ;
: GPIOA-BSRR. ." GPIOA-BSRR (write-only) $" GPIOA-BSRR @ hex. GPIOA-BSRR 1b. ;
: GPIOA-BRR. ." GPIOA-BRR (write-only) $" GPIOA-BRR @ hex. GPIOA-BRR 1b. ;
: GPIOA-LCKR. ." GPIOA-LCKR (read-write) $" GPIOA-LCKR @ hex. GPIOA-LCKR 1b. ;
: GPIOA.
GPIOA-CRL.
GPIOA-CRH.
GPIOA-IDR.
GPIOA-ODR.
GPIOA-BSRR.
GPIOA-BRR.
GPIOA-LCKR.
;
$40010C00 constant GPIOB ( General purpose I/O )
GPIOB $0 + constant GPIOB-CRL ( Port configuration register low GPIOn_CRL )
GPIOB $4 + constant GPIOB-CRH ( Port configuration register high GPIOn_CRL )
GPIOB $8 + constant GPIOB-IDR ( Port input data register GPIOn_IDR )
GPIOB $C + constant GPIOB-ODR ( Port output data register GPIOn_ODR )
GPIOB $10 + constant GPIOB-BSRR ( Port bit set/reset register GPIOn_BSRR )
GPIOB $14 + constant GPIOB-BRR ( Port bit reset register GPIOn_BRR )
GPIOB $18 + constant GPIOB-LCKR ( Port configuration lock register )
: GPIOB-CRL. ." GPIOB-CRL (read-write) $" GPIOB-CRL @ hex. GPIOB-CRL 1b. ;
: GPIOB-CRH. ." GPIOB-CRH (read-write) $" GPIOB-CRH @ hex. GPIOB-CRH 1b. ;
: GPIOB-IDR. ." GPIOB-IDR (read-only) $" GPIOB-IDR @ hex. GPIOB-IDR 1b. ;
: GPIOB-ODR. ." GPIOB-ODR (read-write) $" GPIOB-ODR @ hex. GPIOB-ODR 1b. ;
: GPIOB-BSRR. ." GPIOB-BSRR (write-only) $" GPIOB-BSRR @ hex. GPIOB-BSRR 1b. ;
: GPIOB-BRR. ." GPIOB-BRR (write-only) $" GPIOB-BRR @ hex. GPIOB-BRR 1b. ;
: GPIOB-LCKR. ." GPIOB-LCKR (read-write) $" GPIOB-LCKR @ hex. GPIOB-LCKR 1b. ;
: GPIOB.
GPIOB-CRL.
GPIOB-CRH.
GPIOB-IDR.
GPIOB-ODR.
GPIOB-BSRR.
GPIOB-BRR.
GPIOB-LCKR.
;
$40011000 constant GPIOC ( General purpose I/O )
GPIOC $0 + constant GPIOC-CRL ( Port configuration register low GPIOn_CRL )
GPIOC $4 + constant GPIOC-CRH ( Port configuration register high GPIOn_CRL )
GPIOC $8 + constant GPIOC-IDR ( Port input data register GPIOn_IDR )
GPIOC $C + constant GPIOC-ODR ( Port output data register GPIOn_ODR )
GPIOC $10 + constant GPIOC-BSRR ( Port bit set/reset register GPIOn_BSRR )
GPIOC $14 + constant GPIOC-BRR ( Port bit reset register GPIOn_BRR )
GPIOC $18 + constant GPIOC-LCKR ( Port configuration lock register )
: GPIOC-CRL. ." GPIOC-CRL (read-write) $" GPIOC-CRL @ hex. GPIOC-CRL 1b. ;
: GPIOC-CRH. ." GPIOC-CRH (read-write) $" GPIOC-CRH @ hex. GPIOC-CRH 1b. ;
: GPIOC-IDR. ." GPIOC-IDR (read-only) $" GPIOC-IDR @ hex. GPIOC-IDR 1b. ;
: GPIOC-ODR. ." GPIOC-ODR (read-write) $" GPIOC-ODR @ hex. GPIOC-ODR 1b. ;
: GPIOC-BSRR. ." GPIOC-BSRR (write-only) $" GPIOC-BSRR @ hex. GPIOC-BSRR 1b. ;
: GPIOC-BRR. ." GPIOC-BRR (write-only) $" GPIOC-BRR @ hex. GPIOC-BRR 1b. ;
: GPIOC-LCKR. ." GPIOC-LCKR (read-write) $" GPIOC-LCKR @ hex. GPIOC-LCKR 1b. ;
: GPIOC.
GPIOC-CRL.
GPIOC-CRH.
GPIOC-IDR.
GPIOC-ODR.
GPIOC-BSRR.
GPIOC-BRR.
GPIOC-LCKR.
;
$40010000 constant AFIO ( Alternate function I/O )
AFIO $0 + constant AFIO-EVCR ( Event Control Register AFIO_EVCR )
AFIO $4 + constant AFIO-MAPR ( AF remap and debug I/O configuration register AFIO_MAPR )
AFIO $8 + constant AFIO-EXTICR1 ( External interrupt configuration register 1 AFIO_EXTICR1 )
AFIO $C + constant AFIO-EXTICR2 ( External interrupt configuration register 2 AFIO_EXTICR2 )
AFIO $10 + constant AFIO-EXTICR3 ( External interrupt configuration register 3 AFIO_EXTICR3 )
AFIO $14 + constant AFIO-EXTICR4 ( External interrupt configuration register 4 AFIO_EXTICR4 )
AFIO $1C + constant AFIO-MAPR2 ( AF remap and debug I/O configuration register )
: AFIO-EVCR. ." AFIO-EVCR (read-write) $" AFIO-EVCR @ hex. AFIO-EVCR 1b. ;
: AFIO-MAPR. ." AFIO-MAPR () $" AFIO-MAPR @ hex. AFIO-MAPR 1b. ;
: AFIO-EXTICR1. ." AFIO-EXTICR1 (read-write) $" AFIO-EXTICR1 @ hex. AFIO-EXTICR1 1b. ;
: AFIO-EXTICR2. ." AFIO-EXTICR2 (read-write) $" AFIO-EXTICR2 @ hex. AFIO-EXTICR2 1b. ;
: AFIO-EXTICR3. ." AFIO-EXTICR3 (read-write) $" AFIO-EXTICR3 @ hex. AFIO-EXTICR3 1b. ;
: AFIO-EXTICR4. ." AFIO-EXTICR4 (read-write) $" AFIO-EXTICR4 @ hex. AFIO-EXTICR4 1b. ;
: AFIO-MAPR2. ." AFIO-MAPR2 (read-write) $" AFIO-MAPR2 @ hex. AFIO-MAPR2 1b. ;
: AFIO.
AFIO-EVCR.
AFIO-MAPR.
AFIO-EXTICR1.
AFIO-EXTICR2.
AFIO-EXTICR3.
AFIO-EXTICR4.
AFIO-MAPR2.
;
$40010400 constant EXTI ( EXTI )
EXTI $0 + constant EXTI-IMR ( Interrupt mask register EXTI_IMR )
EXTI $4 + constant EXTI-EMR ( Event mask register EXTI_EMR )
EXTI $8 + constant EXTI-RTSR ( Rising Trigger selection register EXTI_RTSR )
EXTI $C + constant EXTI-FTSR ( Falling Trigger selection register EXTI_FTSR )
EXTI $10 + constant EXTI-SWIER ( Software interrupt event register EXTI_SWIER )
EXTI $14 + constant EXTI-PR ( Pending register EXTI_PR )
: EXTI-IMR. ." EXTI-IMR (read-write) $" EXTI-IMR @ hex. EXTI-IMR 1b. ;
: EXTI-EMR. ." EXTI-EMR (read-write) $" EXTI-EMR @ hex. EXTI-EMR 1b. ;
: EXTI-RTSR. ." EXTI-RTSR (read-write) $" EXTI-RTSR @ hex. EXTI-RTSR 1b. ;
: EXTI-FTSR. ." EXTI-FTSR (read-write) $" EXTI-FTSR @ hex. EXTI-FTSR 1b. ;
: EXTI-SWIER. ." EXTI-SWIER (read-write) $" EXTI-SWIER @ hex. EXTI-SWIER 1b. ;
: EXTI-PR. ." EXTI-PR (read-write) $" EXTI-PR @ hex. EXTI-PR 1b. ;
: EXTI.
EXTI-IMR.
EXTI-EMR.
EXTI-RTSR.
EXTI-FTSR.
EXTI-SWIER.
EXTI-PR.
;
$40020000 constant DMA1 ( DMA controller )
DMA1 $0 + constant DMA1-ISR ( DMA interrupt status register DMA_ISR )
DMA1 $4 + constant DMA1-IFCR ( DMA interrupt flag clear register DMA_IFCR )
DMA1 $8 + constant DMA1-CCR1 ( DMA channel configuration register DMA_CCR )
DMA1 $C + constant DMA1-CNDTR1 ( DMA channel 1 number of data register )
DMA1 $10 + constant DMA1-CPAR1 ( DMA channel 1 peripheral address register )
DMA1 $14 + constant DMA1-CMAR1 ( DMA channel 1 memory address register )
DMA1 $1C + constant DMA1-CCR2 ( DMA channel configuration register DMA_CCR )
DMA1 $20 + constant DMA1-CNDTR2 ( DMA channel 2 number of data register )
DMA1 $24 + constant DMA1-CPAR2 ( DMA channel 2 peripheral address register )
DMA1 $28 + constant DMA1-CMAR2 ( DMA channel 2 memory address register )
DMA1 $30 + constant DMA1-CCR3 ( DMA channel configuration register DMA_CCR )
DMA1 $34 + constant DMA1-CNDTR3 ( DMA channel 3 number of data register )
DMA1 $38 + constant DMA1-CPAR3 ( DMA channel 3 peripheral address register )
DMA1 $3C + constant DMA1-CMAR3 ( DMA channel 3 memory address register )
DMA1 $44 + constant DMA1-CCR4 ( DMA channel configuration register DMA_CCR )
DMA1 $48 + constant DMA1-CNDTR4 ( DMA channel 4 number of data register )
DMA1 $4C + constant DMA1-CPAR4 ( DMA channel 4 peripheral address register )
DMA1 $50 + constant DMA1-CMAR4 ( DMA channel 4 memory address register )
DMA1 $58 + constant DMA1-CCR5 ( DMA channel configuration register DMA_CCR )
DMA1 $5C + constant DMA1-CNDTR5 ( DMA channel 5 number of data register )
DMA1 $60 + constant DMA1-CPAR5 ( DMA channel 5 peripheral address register )
DMA1 $64 + constant DMA1-CMAR5 ( DMA channel 5 memory address register )
DMA1 $6C + constant DMA1-CCR6 ( DMA channel configuration register DMA_CCR )
DMA1 $70 + constant DMA1-CNDTR6 ( DMA channel 6 number of data register )
DMA1 $74 + constant DMA1-CPAR6 ( DMA channel 6 peripheral address register )
DMA1 $78 + constant DMA1-CMAR6 ( DMA channel 6 memory address register )
DMA1 $80 + constant DMA1-CCR7 ( DMA channel configuration register DMA_CCR )
DMA1 $84 + constant DMA1-CNDTR7 ( DMA channel 7 number of data register )
DMA1 $88 + constant DMA1-CPAR7 ( DMA channel 7 peripheral address register )
DMA1 $8C + constant DMA1-CMAR7 ( DMA channel 7 memory address register )
: DMA1-ISR. ." DMA1-ISR (read-only) $" DMA1-ISR @ hex. DMA1-ISR 1b. ;
: DMA1-IFCR. ." DMA1-IFCR (write-only) $" DMA1-IFCR @ hex. DMA1-IFCR 1b. ;
: DMA1-CCR1. ." DMA1-CCR1 (read-write) $" DMA1-CCR1 @ hex. DMA1-CCR1 1b. ;
: DMA1-CNDTR1. ." DMA1-CNDTR1 (read-write) $" DMA1-CNDTR1 @ hex. DMA1-CNDTR1 1b. ;
: DMA1-CPAR1. ." DMA1-CPAR1 (read-write) $" DMA1-CPAR1 @ hex. DMA1-CPAR1 1b. ;
: DMA1-CMAR1. ." DMA1-CMAR1 (read-write) $" DMA1-CMAR1 @ hex. DMA1-CMAR1 1b. ;
: DMA1-CCR2. ." DMA1-CCR2 (read-write) $" DMA1-CCR2 @ hex. DMA1-CCR2 1b. ;
: DMA1-CNDTR2. ." DMA1-CNDTR2 (read-write) $" DMA1-CNDTR2 @ hex. DMA1-CNDTR2 1b. ;
: DMA1-CPAR2. ." DMA1-CPAR2 (read-write) $" DMA1-CPAR2 @ hex. DMA1-CPAR2 1b. ;
: DMA1-CMAR2. ." DMA1-CMAR2 (read-write) $" DMA1-CMAR2 @ hex. DMA1-CMAR2 1b. ;
: DMA1-CCR3. ." DMA1-CCR3 (read-write) $" DMA1-CCR3 @ hex. DMA1-CCR3 1b. ;
: DMA1-CNDTR3. ." DMA1-CNDTR3 (read-write) $" DMA1-CNDTR3 @ hex. DMA1-CNDTR3 1b. ;
: DMA1-CPAR3. ." DMA1-CPAR3 (read-write) $" DMA1-CPAR3 @ hex. DMA1-CPAR3 1b. ;
: DMA1-CMAR3. ." DMA1-CMAR3 (read-write) $" DMA1-CMAR3 @ hex. DMA1-CMAR3 1b. ;
: DMA1-CCR4. ." DMA1-CCR4 (read-write) $" DMA1-CCR4 @ hex. DMA1-CCR4 1b. ;
: DMA1-CNDTR4. ." DMA1-CNDTR4 (read-write) $" DMA1-CNDTR4 @ hex. DMA1-CNDTR4 1b. ;
: DMA1-CPAR4. ." DMA1-CPAR4 (read-write) $" DMA1-CPAR4 @ hex. DMA1-CPAR4 1b. ;
: DMA1-CMAR4. ." DMA1-CMAR4 (read-write) $" DMA1-CMAR4 @ hex. DMA1-CMAR4 1b. ;
: DMA1-CCR5. ." DMA1-CCR5 (read-write) $" DMA1-CCR5 @ hex. DMA1-CCR5 1b. ;
: DMA1-CNDTR5. ." DMA1-CNDTR5 (read-write) $" DMA1-CNDTR5 @ hex. DMA1-CNDTR5 1b. ;
: DMA1-CPAR5. ." DMA1-CPAR5 (read-write) $" DMA1-CPAR5 @ hex. DMA1-CPAR5 1b. ;
: DMA1-CMAR5. ." DMA1-CMAR5 (read-write) $" DMA1-CMAR5 @ hex. DMA1-CMAR5 1b. ;
: DMA1-CCR6. ." DMA1-CCR6 (read-write) $" DMA1-CCR6 @ hex. DMA1-CCR6 1b. ;
: DMA1-CNDTR6. ." DMA1-CNDTR6 (read-write) $" DMA1-CNDTR6 @ hex. DMA1-CNDTR6 1b. ;
: DMA1-CPAR6. ." DMA1-CPAR6 (read-write) $" DMA1-CPAR6 @ hex. DMA1-CPAR6 1b. ;
: DMA1-CMAR6. ." DMA1-CMAR6 (read-write) $" DMA1-CMAR6 @ hex. DMA1-CMAR6 1b. ;
: DMA1-CCR7. ." DMA1-CCR7 (read-write) $" DMA1-CCR7 @ hex. DMA1-CCR7 1b. ;
: DMA1-CNDTR7. ." DMA1-CNDTR7 (read-write) $" DMA1-CNDTR7 @ hex. DMA1-CNDTR7 1b. ;
: DMA1-CPAR7. ." DMA1-CPAR7 (read-write) $" DMA1-CPAR7 @ hex. DMA1-CPAR7 1b. ;
: DMA1-CMAR7. ." DMA1-CMAR7 (read-write) $" DMA1-CMAR7 @ hex. DMA1-CMAR7 1b. ;
: DMA1.
DMA1-ISR.
DMA1-IFCR.
DMA1-CCR1.
DMA1-CNDTR1.
DMA1-CPAR1.
DMA1-CMAR1.
DMA1-CCR2.
DMA1-CNDTR2.
DMA1-CPAR2.
DMA1-CMAR2.
DMA1-CCR3.
DMA1-CNDTR3.
DMA1-CPAR3.
DMA1-CMAR3.
DMA1-CCR4.
DMA1-CNDTR4.
DMA1-CPAR4.
DMA1-CMAR4.
DMA1-CCR5.
DMA1-CNDTR5.
DMA1-CPAR5.
DMA1-CMAR5.
DMA1-CCR6.
DMA1-CNDTR6.
DMA1-CPAR6.
DMA1-CMAR6.
DMA1-CCR7.
DMA1-CNDTR7.
DMA1-CPAR7.
DMA1-CMAR7.
;
$40020400 constant DMA2 ( DMA controller )
DMA2 $0 + constant DMA2-ISR ( DMA interrupt status register DMA_ISR )
DMA2 $4 + constant DMA2-IFCR ( DMA interrupt flag clear register DMA_IFCR )
DMA2 $8 + constant DMA2-CCR1 ( DMA channel configuration register DMA_CCR )
DMA2 $C + constant DMA2-CNDTR1 ( DMA channel 1 number of data register )
DMA2 $10 + constant DMA2-CPAR1 ( DMA channel 1 peripheral address register )
DMA2 $14 + constant DMA2-CMAR1 ( DMA channel 1 memory address register )
DMA2 $1C + constant DMA2-CCR2 ( DMA channel configuration register DMA_CCR )
DMA2 $20 + constant DMA2-CNDTR2 ( DMA channel 2 number of data register )
DMA2 $24 + constant DMA2-CPAR2 ( DMA channel 2 peripheral address register )
DMA2 $28 + constant DMA2-CMAR2 ( DMA channel 2 memory address register )
DMA2 $30 + constant DMA2-CCR3 ( DMA channel configuration register DMA_CCR )
DMA2 $34 + constant DMA2-CNDTR3 ( DMA channel 3 number of data register )
DMA2 $38 + constant DMA2-CPAR3 ( DMA channel 3 peripheral address register )
DMA2 $3C + constant DMA2-CMAR3 ( DMA channel 3 memory address register )
DMA2 $44 + constant DMA2-CCR4 ( DMA channel configuration register DMA_CCR )
DMA2 $48 + constant DMA2-CNDTR4 ( DMA channel 4 number of data register )
DMA2 $4C + constant DMA2-CPAR4 ( DMA channel 4 peripheral address register )
DMA2 $50 + constant DMA2-CMAR4 ( DMA channel 4 memory address register )
DMA2 $58 + constant DMA2-CCR5 ( DMA channel configuration register DMA_CCR )
DMA2 $5C + constant DMA2-CNDTR5 ( DMA channel 5 number of data register )
DMA2 $60 + constant DMA2-CPAR5 ( DMA channel 5 peripheral address register )
DMA2 $64 + constant DMA2-CMAR5 ( DMA channel 5 memory address register )
DMA2 $6C + constant DMA2-CCR6 ( DMA channel configuration register DMA_CCR )
DMA2 $70 + constant DMA2-CNDTR6 ( DMA channel 6 number of data register )
DMA2 $74 + constant DMA2-CPAR6 ( DMA channel 6 peripheral address register )
DMA2 $78 + constant DMA2-CMAR6 ( DMA channel 6 memory address register )
DMA2 $80 + constant DMA2-CCR7 ( DMA channel configuration register DMA_CCR )
DMA2 $84 + constant DMA2-CNDTR7 ( DMA channel 7 number of data register )
DMA2 $88 + constant DMA2-CPAR7 ( DMA channel 7 peripheral address register )
DMA2 $8C + constant DMA2-CMAR7 ( DMA channel 7 memory address register )
: DMA2-ISR. ." DMA2-ISR (read-only) $" DMA2-ISR @ hex. DMA2-ISR 1b. ;
: DMA2-IFCR. ." DMA2-IFCR (write-only) $" DMA2-IFCR @ hex. DMA2-IFCR 1b. ;
: DMA2-CCR1. ." DMA2-CCR1 (read-write) $" DMA2-CCR1 @ hex. DMA2-CCR1 1b. ;
: DMA2-CNDTR1. ." DMA2-CNDTR1 (read-write) $" DMA2-CNDTR1 @ hex. DMA2-CNDTR1 1b. ;
: DMA2-CPAR1. ." DMA2-CPAR1 (read-write) $" DMA2-CPAR1 @ hex. DMA2-CPAR1 1b. ;
: DMA2-CMAR1. ." DMA2-CMAR1 (read-write) $" DMA2-CMAR1 @ hex. DMA2-CMAR1 1b. ;
: DMA2-CCR2. ." DMA2-CCR2 (read-write) $" DMA2-CCR2 @ hex. DMA2-CCR2 1b. ;
: DMA2-CNDTR2. ." DMA2-CNDTR2 (read-write) $" DMA2-CNDTR2 @ hex. DMA2-CNDTR2 1b. ;
: DMA2-CPAR2. ." DMA2-CPAR2 (read-write) $" DMA2-CPAR2 @ hex. DMA2-CPAR2 1b. ;
: DMA2-CMAR2. ." DMA2-CMAR2 (read-write) $" DMA2-CMAR2 @ hex. DMA2-CMAR2 1b. ;
: DMA2-CCR3. ." DMA2-CCR3 (read-write) $" DMA2-CCR3 @ hex. DMA2-CCR3 1b. ;
: DMA2-CNDTR3. ." DMA2-CNDTR3 (read-write) $" DMA2-CNDTR3 @ hex. DMA2-CNDTR3 1b. ;
: DMA2-CPAR3. ." DMA2-CPAR3 (read-write) $" DMA2-CPAR3 @ hex. DMA2-CPAR3 1b. ;
: DMA2-CMAR3. ." DMA2-CMAR3 (read-write) $" DMA2-CMAR3 @ hex. DMA2-CMAR3 1b. ;
: DMA2-CCR4. ." DMA2-CCR4 (read-write) $" DMA2-CCR4 @ hex. DMA2-CCR4 1b. ;
: DMA2-CNDTR4. ." DMA2-CNDTR4 (read-write) $" DMA2-CNDTR4 @ hex. DMA2-CNDTR4 1b. ;
: DMA2-CPAR4. ." DMA2-CPAR4 (read-write) $" DMA2-CPAR4 @ hex. DMA2-CPAR4 1b. ;
: DMA2-CMAR4. ." DMA2-CMAR4 (read-write) $" DMA2-CMAR4 @ hex. DMA2-CMAR4 1b. ;
: DMA2-CCR5. ." DMA2-CCR5 (read-write) $" DMA2-CCR5 @ hex. DMA2-CCR5 1b. ;
: DMA2-CNDTR5. ." DMA2-CNDTR5 (read-write) $" DMA2-CNDTR5 @ hex. DMA2-CNDTR5 1b. ;
: DMA2-CPAR5. ." DMA2-CPAR5 (read-write) $" DMA2-CPAR5 @ hex. DMA2-CPAR5 1b. ;
: DMA2-CMAR5. ." DMA2-CMAR5 (read-write) $" DMA2-CMAR5 @ hex. DMA2-CMAR5 1b. ;
: DMA2-CCR6. ." DMA2-CCR6 (read-write) $" DMA2-CCR6 @ hex. DMA2-CCR6 1b. ;
: DMA2-CNDTR6. ." DMA2-CNDTR6 (read-write) $" DMA2-CNDTR6 @ hex. DMA2-CNDTR6 1b. ;
: DMA2-CPAR6. ." DMA2-CPAR6 (read-write) $" DMA2-CPAR6 @ hex. DMA2-CPAR6 1b. ;
: DMA2-CMAR6. ." DMA2-CMAR6 (read-write) $" DMA2-CMAR6 @ hex. DMA2-CMAR6 1b. ;
: DMA2-CCR7. ." DMA2-CCR7 (read-write) $" DMA2-CCR7 @ hex. DMA2-CCR7 1b. ;
: DMA2-CNDTR7. ." DMA2-CNDTR7 (read-write) $" DMA2-CNDTR7 @ hex. DMA2-CNDTR7 1b. ;
: DMA2-CPAR7. ." DMA2-CPAR7 (read-write) $" DMA2-CPAR7 @ hex. DMA2-CPAR7 1b. ;
: DMA2-CMAR7. ." DMA2-CMAR7 (read-write) $" DMA2-CMAR7 @ hex. DMA2-CMAR7 1b. ;
: DMA2.
DMA2-ISR.
DMA2-IFCR.
DMA2-CCR1.
DMA2-CNDTR1.
DMA2-CPAR1.
DMA2-CMAR1.
DMA2-CCR2.
DMA2-CNDTR2.
DMA2-CPAR2.
DMA2-CMAR2.
DMA2-CCR3.
DMA2-CNDTR3.
DMA2-CPAR3.
DMA2-CMAR3.
DMA2-CCR4.
DMA2-CNDTR4.
DMA2-CPAR4.
DMA2-CMAR4.
DMA2-CCR5.
DMA2-CNDTR5.
DMA2-CPAR5.
DMA2-CMAR5.
DMA2-CCR6.
DMA2-CNDTR6.
DMA2-CPAR6.
DMA2-CMAR6.
DMA2-CCR7.
DMA2-CNDTR7.
DMA2-CPAR7.
DMA2-CMAR7.
;
$40002800 constant RTC ( Real time clock )
RTC $0 + constant RTC-CRH ( RTC Control Register High )
RTC $4 + constant RTC-CRL ( RTC Control Register Low )
RTC $8 + constant RTC-PRLH ( RTC Prescaler Load Register High )
RTC $C + constant RTC-PRLL ( RTC Prescaler Load Register Low )
RTC $10 + constant RTC-DIVH ( RTC Prescaler Divider Register High )
RTC $14 + constant RTC-DIVL ( RTC Prescaler Divider Register Low )
RTC $18 + constant RTC-CNTH ( RTC Counter Register High )
RTC $1C + constant RTC-CNTL ( RTC Counter Register Low )
RTC $20 + constant RTC-ALRH ( RTC Alarm Register High )
RTC $24 + constant RTC-ALRL ( RTC Alarm Register Low )
: RTC-CRH. ." RTC-CRH (read-write) $" RTC-CRH @ hex. RTC-CRH 1b. ;
: RTC-CRL. ." RTC-CRL () $" RTC-CRL @ hex. RTC-CRL 1b. ;
: RTC-PRLH. ." RTC-PRLH (write-only) $" RTC-PRLH @ hex. RTC-PRLH 1b. ;
: RTC-PRLL. ." RTC-PRLL (write-only) $" RTC-PRLL @ hex. RTC-PRLL 1b. ;
: RTC-DIVH. ." RTC-DIVH (read-only) $" RTC-DIVH @ hex. RTC-DIVH 1b. ;
: RTC-DIVL. ." RTC-DIVL (read-only) $" RTC-DIVL @ hex. RTC-DIVL 1b. ;
: RTC-CNTH. ." RTC-CNTH (read-write) $" RTC-CNTH @ hex. RTC-CNTH 1b. ;
: RTC-CNTL. ." RTC-CNTL (read-write) $" RTC-CNTL @ hex. RTC-CNTL 1b. ;
: RTC-ALRH. ." RTC-ALRH (write-only) $" RTC-ALRH @ hex. RTC-ALRH 1b. ;
: RTC-ALRL. ." RTC-ALRL (write-only) $" RTC-ALRL @ hex. RTC-ALRL 1b. ;
: RTC.
RTC-CRH.
RTC-CRL.
RTC-PRLH.
RTC-PRLL.
RTC-DIVH.
RTC-DIVL.
RTC-CNTH.
RTC-CNTL.
RTC-ALRH.
RTC-ALRL.
;
$40006C04 constant BKP ( Backup registers )
BKP $0 + constant BKP-DR1 ( Backup data register BKP_DR )
BKP $4 + constant BKP-DR2 ( Backup data register BKP_DR )
BKP $8 + constant BKP-DR3 ( Backup data register BKP_DR )
BKP $C + constant BKP-DR4 ( Backup data register BKP_DR )
BKP $10 + constant BKP-DR5 ( Backup data register BKP_DR )
BKP $14 + constant BKP-DR6 ( Backup data register BKP_DR )
BKP $18 + constant BKP-DR7 ( Backup data register BKP_DR )
BKP $1C + constant BKP-DR8 ( Backup data register BKP_DR )
BKP $20 + constant BKP-DR9 ( Backup data register BKP_DR )
BKP $24 + constant BKP-DR10 ( Backup data register BKP_DR )
BKP $3C + constant BKP-DR11 ( Backup data register BKP_DR )
BKP $40 + constant BKP-DR12 ( Backup data register BKP_DR )
BKP $44 + constant BKP-DR13 ( Backup data register BKP_DR )
BKP $48 + constant BKP-DR14 ( Backup data register BKP_DR )
BKP $4C + constant BKP-DR15 ( Backup data register BKP_DR )
BKP $50 + constant BKP-DR16 ( Backup data register BKP_DR )
BKP $54 + constant BKP-DR17 ( Backup data register BKP_DR )
BKP $58 + constant BKP-DR18 ( Backup data register BKP_DR )
BKP $5C + constant BKP-DR19 ( Backup data register BKP_DR )
BKP $60 + constant BKP-DR20 ( Backup data register BKP_DR )
BKP $64 + constant BKP-DR21 ( Backup data register BKP_DR )
BKP $68 + constant BKP-DR22 ( Backup data register BKP_DR )
BKP $6C + constant BKP-DR23 ( Backup data register BKP_DR )
BKP $70 + constant BKP-DR24 ( Backup data register BKP_DR )
BKP $74 + constant BKP-DR25 ( Backup data register BKP_DR )
BKP $78 + constant BKP-DR26 ( Backup data register BKP_DR )
BKP $7C + constant BKP-DR27 ( Backup data register BKP_DR )
BKP $80 + constant BKP-DR28 ( Backup data register BKP_DR )
BKP $84 + constant BKP-DR29 ( Backup data register BKP_DR )
BKP $88 + constant BKP-DR30 ( Backup data register BKP_DR )
BKP $8C + constant BKP-DR31 ( Backup data register BKP_DR )
BKP $90 + constant BKP-DR32 ( Backup data register BKP_DR )
BKP $94 + constant BKP-DR33 ( Backup data register BKP_DR )
BKP $98 + constant BKP-DR34 ( Backup data register BKP_DR )
BKP $9C + constant BKP-DR35 ( Backup data register BKP_DR )
BKP $A0 + constant BKP-DR36 ( Backup data register BKP_DR )
BKP $A4 + constant BKP-DR37 ( Backup data register BKP_DR )
BKP $A8 + constant BKP-DR38 ( Backup data register BKP_DR )
BKP $AC + constant BKP-DR39 ( Backup data register BKP_DR )
BKP $B0 + constant BKP-DR40 ( Backup data register BKP_DR )
BKP $B4 + constant BKP-DR41 ( Backup data register BKP_DR )
BKP $B8 + constant BKP-DR42 ( Backup data register BKP_DR )
BKP $28 + constant BKP-RTCCR ( RTC clock calibration register BKP_RTCCR )
BKP $2C + constant BKP-CR ( Backup control register BKP_CR )
BKP $30 + constant BKP-CSR ( BKP_CSR control/status register BKP_CSR )
: BKP-DR1. ." BKP-DR1 (read-write) $" BKP-DR1 @ hex. BKP-DR1 1b. ;
: BKP-DR2. ." BKP-DR2 (read-write) $" BKP-DR2 @ hex. BKP-DR2 1b. ;
: BKP-DR3. ." BKP-DR3 (read-write) $" BKP-DR3 @ hex. BKP-DR3 1b. ;
: BKP-DR4. ." BKP-DR4 (read-write) $" BKP-DR4 @ hex. BKP-DR4 1b. ;
: BKP-DR5. ." BKP-DR5 (read-write) $" BKP-DR5 @ hex. BKP-DR5 1b. ;
: BKP-DR6. ." BKP-DR6 (read-write) $" BKP-DR6 @ hex. BKP-DR6 1b. ;
: BKP-DR7. ." BKP-DR7 (read-write) $" BKP-DR7 @ hex. BKP-DR7 1b. ;
: BKP-DR8. ." BKP-DR8 (read-write) $" BKP-DR8 @ hex. BKP-DR8 1b. ;
: BKP-DR9. ." BKP-DR9 (read-write) $" BKP-DR9 @ hex. BKP-DR9 1b. ;
: BKP-DR10. ." BKP-DR10 (read-write) $" BKP-DR10 @ hex. BKP-DR10 1b. ;
: BKP-DR11. ." BKP-DR11 (read-write) $" BKP-DR11 @ hex. BKP-DR11 1b. ;
: BKP-DR12. ." BKP-DR12 (read-write) $" BKP-DR12 @ hex. BKP-DR12 1b. ;
: BKP-DR13. ." BKP-DR13 (read-write) $" BKP-DR13 @ hex. BKP-DR13 1b. ;
: BKP-DR14. ." BKP-DR14 (read-write) $" BKP-DR14 @ hex. BKP-DR14 1b. ;
: BKP-DR15. ." BKP-DR15 (read-write) $" BKP-DR15 @ hex. BKP-DR15 1b. ;
: BKP-DR16. ." BKP-DR16 (read-write) $" BKP-DR16 @ hex. BKP-DR16 1b. ;
: BKP-DR17. ." BKP-DR17 (read-write) $" BKP-DR17 @ hex. BKP-DR17 1b. ;
: BKP-DR18. ." BKP-DR18 (read-write) $" BKP-DR18 @ hex. BKP-DR18 1b. ;
: BKP-DR19. ." BKP-DR19 (read-write) $" BKP-DR19 @ hex. BKP-DR19 1b. ;
: BKP-DR20. ." BKP-DR20 (read-write) $" BKP-DR20 @ hex. BKP-DR20 1b. ;
: BKP-DR21. ." BKP-DR21 (read-write) $" BKP-DR21 @ hex. BKP-DR21 1b. ;
: BKP-DR22. ." BKP-DR22 (read-write) $" BKP-DR22 @ hex. BKP-DR22 1b. ;
: BKP-DR23. ." BKP-DR23 (read-write) $" BKP-DR23 @ hex. BKP-DR23 1b. ;
: BKP-DR24. ." BKP-DR24 (read-write) $" BKP-DR24 @ hex. BKP-DR24 1b. ;
: BKP-DR25. ." BKP-DR25 (read-write) $" BKP-DR25 @ hex. BKP-DR25 1b. ;
: BKP-DR26. ." BKP-DR26 (read-write) $" BKP-DR26 @ hex. BKP-DR26 1b. ;
: BKP-DR27. ." BKP-DR27 (read-write) $" BKP-DR27 @ hex. BKP-DR27 1b. ;
: BKP-DR28. ." BKP-DR28 (read-write) $" BKP-DR28 @ hex. BKP-DR28 1b. ;
: BKP-DR29. ." BKP-DR29 (read-write) $" BKP-DR29 @ hex. BKP-DR29 1b. ;
: BKP-DR30. ." BKP-DR30 (read-write) $" BKP-DR30 @ hex. BKP-DR30 1b. ;
: BKP-DR31. ." BKP-DR31 (read-write) $" BKP-DR31 @ hex. BKP-DR31 1b. ;
: BKP-DR32. ." BKP-DR32 (read-write) $" BKP-DR32 @ hex. BKP-DR32 1b. ;
: BKP-DR33. ." BKP-DR33 (read-write) $" BKP-DR33 @ hex. BKP-DR33 1b. ;
: BKP-DR34. ." BKP-DR34 (read-write) $" BKP-DR34 @ hex. BKP-DR34 1b. ;
: BKP-DR35. ." BKP-DR35 (read-write) $" BKP-DR35 @ hex. BKP-DR35 1b. ;
: BKP-DR36. ." BKP-DR36 (read-write) $" BKP-DR36 @ hex. BKP-DR36 1b. ;
: BKP-DR37. ." BKP-DR37 (read-write) $" BKP-DR37 @ hex. BKP-DR37 1b. ;
: BKP-DR38. ." BKP-DR38 (read-write) $" BKP-DR38 @ hex. BKP-DR38 1b. ;
: BKP-DR39. ." BKP-DR39 (read-write) $" BKP-DR39 @ hex. BKP-DR39 1b. ;
: BKP-DR40. ." BKP-DR40 (read-write) $" BKP-DR40 @ hex. BKP-DR40 1b. ;
: BKP-DR41. ." BKP-DR41 (read-write) $" BKP-DR41 @ hex. BKP-DR41 1b. ;
: BKP-DR42. ." BKP-DR42 (read-write) $" BKP-DR42 @ hex. BKP-DR42 1b. ;
: BKP-RTCCR. ." BKP-RTCCR (read-write) $" BKP-RTCCR @ hex. BKP-RTCCR 1b. ;
: BKP-CR. ." BKP-CR (read-write) $" BKP-CR @ hex. BKP-CR 1b. ;
: BKP-CSR. ." BKP-CSR () $" BKP-CSR @ hex. BKP-CSR 1b. ;
: BKP.
BKP-DR1.
BKP-DR2.
BKP-DR3.
BKP-DR4.
BKP-DR5.
BKP-DR6.
BKP-DR7.
BKP-DR8.
BKP-DR9.
BKP-DR10.
BKP-DR11.
BKP-DR12.
BKP-DR13.
BKP-DR14.
BKP-DR15.
BKP-DR16.
BKP-DR17.
BKP-DR18.
BKP-DR19.
BKP-DR20.
BKP-DR21.
BKP-DR22.
BKP-DR23.
BKP-DR24.
BKP-DR25.
BKP-DR26.
BKP-DR27.
BKP-DR28.
BKP-DR29.
BKP-DR30.
BKP-DR31.
BKP-DR32.
BKP-DR33.
BKP-DR34.
BKP-DR35.
BKP-DR36.
BKP-DR37.
BKP-DR38.
BKP-DR39.
BKP-DR40.
BKP-DR41.
BKP-DR42.
BKP-RTCCR.
BKP-CR.
BKP-CSR.
;
$40003000 constant IWDG ( Independent watchdog )
IWDG $0 + constant IWDG-KR ( Key register IWDG_KR )
IWDG $4 + constant IWDG-PR ( Prescaler register IWDG_PR )
IWDG $8 + constant IWDG-RLR ( Reload register IWDG_RLR )
IWDG $C + constant IWDG-SR ( Status register IWDG_SR )
: IWDG-KR. ." IWDG-KR (write-only) $" IWDG-KR @ hex. IWDG-KR 1b. ;
: IWDG-PR. ." IWDG-PR (read-write) $" IWDG-PR @ hex. IWDG-PR 1b. ;
: IWDG-RLR. ." IWDG-RLR (read-write) $" IWDG-RLR @ hex. IWDG-RLR 1b. ;
: IWDG-SR. ." IWDG-SR (read-only) $" IWDG-SR @ hex. IWDG-SR 1b. ;
: IWDG.
IWDG-KR.
IWDG-PR.
IWDG-RLR.
IWDG-SR.
;
$40002C00 constant WWDG ( Window watchdog )
WWDG $0 + constant WWDG-CR ( Control register WWDG_CR )
WWDG $4 + constant WWDG-CFR ( Configuration register WWDG_CFR )
WWDG $8 + constant WWDG-SR ( Status register WWDG_SR )
: WWDG-CR. ." WWDG-CR (read-write) $" WWDG-CR @ hex. WWDG-CR 1b. ;
: WWDG-CFR. ." WWDG-CFR (read-write) $" WWDG-CFR @ hex. WWDG-CFR 1b. ;
: WWDG-SR. ." WWDG-SR (read-write) $" WWDG-SR @ hex. WWDG-SR 1b. ;
: WWDG.
WWDG-CR.
WWDG-CFR.
WWDG-SR.
;
$40012C00 constant TIM1 ( Advanced timer )
TIM1 $0 + constant TIM1-CR1 ( control register 1 )
TIM1 $4 + constant TIM1-CR2 ( control register 2 )
TIM1 $8 + constant TIM1-SMCR ( slave mode control register )
TIM1 $C + constant TIM1-DIER ( DMA/Interrupt enable register )
TIM1 $10 + constant TIM1-SR ( status register )
TIM1 $14 + constant TIM1-EGR ( event generation register )
TIM1 $18 + constant TIM1-CCMR1_Output ( capture/compare mode register output mode )
TIM1 $18 + constant TIM1-CCMR1_Input ( capture/compare mode register 1 input mode )
TIM1 $1C + constant TIM1-CCMR2_Output ( capture/compare mode register output mode )
TIM1 $1C + constant TIM1-CCMR2_Input ( capture/compare mode register 2 input mode )
TIM1 $20 + constant TIM1-CCER ( capture/compare enable register )
TIM1 $24 + constant TIM1-CNT ( counter )
TIM1 $28 + constant TIM1-PSC ( prescaler )
TIM1 $2C + constant TIM1-ARR ( auto-reload register )
TIM1 $34 + constant TIM1-CCR1 ( capture/compare register 1 )
TIM1 $38 + constant TIM1-CCR2 ( capture/compare register 2 )
TIM1 $3C + constant TIM1-CCR3 ( capture/compare register 3 )
TIM1 $40 + constant TIM1-CCR4 ( capture/compare register 4 )
TIM1 $48 + constant TIM1-DCR ( DMA control register )
TIM1 $4C + constant TIM1-DMAR ( DMA address for full transfer )
TIM1 $30 + constant TIM1-RCR ( repetition counter register )
TIM1 $44 + constant TIM1-BDTR ( break and dead-time register )
: TIM1-CR1. ." TIM1-CR1 (read-write) $" TIM1-CR1 @ hex. TIM1-CR1 1b. ;
: TIM1-CR2. ." TIM1-CR2 (read-write) $" TIM1-CR2 @ hex. TIM1-CR2 1b. ;
: TIM1-SMCR. ." TIM1-SMCR (read-write) $" TIM1-SMCR @ hex. TIM1-SMCR 1b. ;
: TIM1-DIER. ." TIM1-DIER (read-write) $" TIM1-DIER @ hex. TIM1-DIER 1b. ;
: TIM1-SR. ." TIM1-SR (read-write) $" TIM1-SR @ hex. TIM1-SR 1b. ;
: TIM1-EGR. ." TIM1-EGR (write-only) $" TIM1-EGR @ hex. TIM1-EGR 1b. ;
: TIM1-CCMR1_Output. ." TIM1-CCMR1_Output (read-write) $" TIM1-CCMR1_Output @ hex. TIM1-CCMR1_Output 1b. ;
: TIM1-CCMR1_Input. ." TIM1-CCMR1_Input (read-write) $" TIM1-CCMR1_Input @ hex. TIM1-CCMR1_Input 1b. ;
: TIM1-CCMR2_Output. ." TIM1-CCMR2_Output (read-write) $" TIM1-CCMR2_Output @ hex. TIM1-CCMR2_Output 1b. ;
: TIM1-CCMR2_Input. ." TIM1-CCMR2_Input (read-write) $" TIM1-CCMR2_Input @ hex. TIM1-CCMR2_Input 1b. ;
: TIM1-CCER. ." TIM1-CCER (read-write) $" TIM1-CCER @ hex. TIM1-CCER 1b. ;
: TIM1-CNT. ." TIM1-CNT (read-write) $" TIM1-CNT @ hex. TIM1-CNT 1b. ;
: TIM1-PSC. ." TIM1-PSC (read-write) $" TIM1-PSC @ hex. TIM1-PSC 1b. ;
: TIM1-ARR. ." TIM1-ARR (read-write) $" TIM1-ARR @ hex. TIM1-ARR 1b. ;
: TIM1-CCR1. ." TIM1-CCR1 (read-write) $" TIM1-CCR1 @ hex. TIM1-CCR1 1b. ;
: TIM1-CCR2. ." TIM1-CCR2 (read-write) $" TIM1-CCR2 @ hex. TIM1-CCR2 1b. ;
: TIM1-CCR3. ." TIM1-CCR3 (read-write) $" TIM1-CCR3 @ hex. TIM1-CCR3 1b. ;
: TIM1-CCR4. ." TIM1-CCR4 (read-write) $" TIM1-CCR4 @ hex. TIM1-CCR4 1b. ;
: TIM1-DCR. ." TIM1-DCR (read-write) $" TIM1-DCR @ hex. TIM1-DCR 1b. ;
: TIM1-DMAR. ." TIM1-DMAR (read-write) $" TIM1-DMAR @ hex. TIM1-DMAR 1b. ;
: TIM1-RCR. ." TIM1-RCR (read-write) $" TIM1-RCR @ hex. TIM1-RCR 1b. ;
: TIM1-BDTR. ." TIM1-BDTR (read-write) $" TIM1-BDTR @ hex. TIM1-BDTR 1b. ;
: TIM1.
TIM1-CR1.
TIM1-CR2.
TIM1-SMCR.
TIM1-DIER.
TIM1-SR.
TIM1-EGR.
TIM1-CCMR1_Output.
TIM1-CCMR1_Input.
TIM1-CCMR2_Output.
TIM1-CCMR2_Input.
TIM1-CCER.
TIM1-CNT.
TIM1-PSC.
TIM1-ARR.
TIM1-CCR1.
TIM1-CCR2.
TIM1-CCR3.
TIM1-CCR4.
TIM1-DCR.
TIM1-DMAR.
TIM1-RCR.
TIM1-BDTR.
;
$40000000 constant TIM2 ( General purpose timer )
TIM2 $0 + constant TIM2-CR1 ( control register 1 )
TIM2 $4 + constant TIM2-CR2 ( control register 2 )
TIM2 $8 + constant TIM2-SMCR ( slave mode control register )
TIM2 $C + constant TIM2-DIER ( DMA/Interrupt enable register )
TIM2 $10 + constant TIM2-SR ( status register )
TIM2 $14 + constant TIM2-EGR ( event generation register )
TIM2 $18 + constant TIM2-CCMR1_Output ( capture/compare mode register 1 output mode )
TIM2 $18 + constant TIM2-CCMR1_Input ( capture/compare mode register 1 input mode )
TIM2 $1C + constant TIM2-CCMR2_Output ( capture/compare mode register 2 output mode )
TIM2 $1C + constant TIM2-CCMR2_Input ( capture/compare mode register 2 input mode )
TIM2 $20 + constant TIM2-CCER ( capture/compare enable register )
TIM2 $24 + constant TIM2-CNT ( counter )
TIM2 $28 + constant TIM2-PSC ( prescaler )
TIM2 $2C + constant TIM2-ARR ( auto-reload register )
TIM2 $34 + constant TIM2-CCR1 ( capture/compare register 1 )
TIM2 $38 + constant TIM2-CCR2 ( capture/compare register 2 )
TIM2 $3C + constant TIM2-CCR3 ( capture/compare register 3 )
TIM2 $40 + constant TIM2-CCR4 ( capture/compare register 4 )
TIM2 $48 + constant TIM2-DCR ( DMA control register )
TIM2 $4C + constant TIM2-DMAR ( DMA address for full transfer )
: TIM2-CR1. ." TIM2-CR1 (read-write) $" TIM2-CR1 @ hex. TIM2-CR1 1b. ;
: TIM2-CR2. ." TIM2-CR2 (read-write) $" TIM2-CR2 @ hex. TIM2-CR2 1b. ;
: TIM2-SMCR. ." TIM2-SMCR (read-write) $" TIM2-SMCR @ hex. TIM2-SMCR 1b. ;
: TIM2-DIER. ." TIM2-DIER (read-write) $" TIM2-DIER @ hex. TIM2-DIER 1b. ;
: TIM2-SR. ." TIM2-SR (read-write) $" TIM2-SR @ hex. TIM2-SR 1b. ;
: TIM2-EGR. ." TIM2-EGR (write-only) $" TIM2-EGR @ hex. TIM2-EGR 1b. ;
: TIM2-CCMR1_Output. ." TIM2-CCMR1_Output (read-write) $" TIM2-CCMR1_Output @ hex. TIM2-CCMR1_Output 1b. ;
: TIM2-CCMR1_Input. ." TIM2-CCMR1_Input (read-write) $" TIM2-CCMR1_Input @ hex. TIM2-CCMR1_Input 1b. ;
: TIM2-CCMR2_Output. ." TIM2-CCMR2_Output (read-write) $" TIM2-CCMR2_Output @ hex. TIM2-CCMR2_Output 1b. ;
: TIM2-CCMR2_Input. ." TIM2-CCMR2_Input (read-write) $" TIM2-CCMR2_Input @ hex. TIM2-CCMR2_Input 1b. ;
: TIM2-CCER. ." TIM2-CCER (read-write) $" TIM2-CCER @ hex. TIM2-CCER 1b. ;
: TIM2-CNT. ." TIM2-CNT (read-write) $" TIM2-CNT @ hex. TIM2-CNT 1b. ;
: TIM2-PSC. ." TIM2-PSC (read-write) $" TIM2-PSC @ hex. TIM2-PSC 1b. ;
: TIM2-ARR. ." TIM2-ARR (read-write) $" TIM2-ARR @ hex. TIM2-ARR 1b. ;
: TIM2-CCR1. ." TIM2-CCR1 (read-write) $" TIM2-CCR1 @ hex. TIM2-CCR1 1b. ;
: TIM2-CCR2. ." TIM2-CCR2 (read-write) $" TIM2-CCR2 @ hex. TIM2-CCR2 1b. ;
: TIM2-CCR3. ." TIM2-CCR3 (read-write) $" TIM2-CCR3 @ hex. TIM2-CCR3 1b. ;
: TIM2-CCR4. ." TIM2-CCR4 (read-write) $" TIM2-CCR4 @ hex. TIM2-CCR4 1b. ;
: TIM2-DCR. ." TIM2-DCR (read-write) $" TIM2-DCR @ hex. TIM2-DCR 1b. ;
: TIM2-DMAR. ." TIM2-DMAR (read-write) $" TIM2-DMAR @ hex. TIM2-DMAR 1b. ;
: TIM2.
TIM2-CR1.
TIM2-CR2.
TIM2-SMCR.
TIM2-DIER.
TIM2-SR.
TIM2-EGR.
TIM2-CCMR1_Output.
TIM2-CCMR1_Input.
TIM2-CCMR2_Output.
TIM2-CCMR2_Input.
TIM2-CCER.
TIM2-CNT.
TIM2-PSC.
TIM2-ARR.
TIM2-CCR1.
TIM2-CCR2.
TIM2-CCR3.
TIM2-CCR4.
TIM2-DCR.
TIM2-DMAR.
;
$40000400 constant TIM3 ( General purpose timer )
TIM3 $0 + constant TIM3-CR1 ( control register 1 )
TIM3 $4 + constant TIM3-CR2 ( control register 2 )
TIM3 $8 + constant TIM3-SMCR ( slave mode control register )
TIM3 $C + constant TIM3-DIER ( DMA/Interrupt enable register )
TIM3 $10 + constant TIM3-SR ( status register )
TIM3 $14 + constant TIM3-EGR ( event generation register )
TIM3 $18 + constant TIM3-CCMR1_Output ( capture/compare mode register 1 output mode )
TIM3 $18 + constant TIM3-CCMR1_Input ( capture/compare mode register 1 input mode )
TIM3 $1C + constant TIM3-CCMR2_Output ( capture/compare mode register 2 output mode )
TIM3 $1C + constant TIM3-CCMR2_Input ( capture/compare mode register 2 input mode )
TIM3 $20 + constant TIM3-CCER ( capture/compare enable register )
TIM3 $24 + constant TIM3-CNT ( counter )
TIM3 $28 + constant TIM3-PSC ( prescaler )
TIM3 $2C + constant TIM3-ARR ( auto-reload register )
TIM3 $34 + constant TIM3-CCR1 ( capture/compare register 1 )
TIM3 $38 + constant TIM3-CCR2 ( capture/compare register 2 )
TIM3 $3C + constant TIM3-CCR3 ( capture/compare register 3 )
TIM3 $40 + constant TIM3-CCR4 ( capture/compare register 4 )
TIM3 $48 + constant TIM3-DCR ( DMA control register )
TIM3 $4C + constant TIM3-DMAR ( DMA address for full transfer )
: TIM3-CR1. ." TIM3-CR1 (read-write) $" TIM3-CR1 @ hex. TIM3-CR1 1b. ;
: TIM3-CR2. ." TIM3-CR2 (read-write) $" TIM3-CR2 @ hex. TIM3-CR2 1b. ;
: TIM3-SMCR. ." TIM3-SMCR (read-write) $" TIM3-SMCR @ hex. TIM3-SMCR 1b. ;
: TIM3-DIER. ." TIM3-DIER (read-write) $" TIM3-DIER @ hex. TIM3-DIER 1b. ;
: TIM3-SR. ." TIM3-SR (read-write) $" TIM3-SR @ hex. TIM3-SR 1b. ;
: TIM3-EGR. ." TIM3-EGR (write-only) $" TIM3-EGR @ hex. TIM3-EGR 1b. ;
: TIM3-CCMR1_Output. ." TIM3-CCMR1_Output (read-write) $" TIM3-CCMR1_Output @ hex. TIM3-CCMR1_Output 1b. ;
: TIM3-CCMR1_Input. ." TIM3-CCMR1_Input (read-write) $" TIM3-CCMR1_Input @ hex. TIM3-CCMR1_Input 1b. ;
: TIM3-CCMR2_Output. ." TIM3-CCMR2_Output (read-write) $" TIM3-CCMR2_Output @ hex. TIM3-CCMR2_Output 1b. ;
: TIM3-CCMR2_Input. ." TIM3-CCMR2_Input (read-write) $" TIM3-CCMR2_Input @ hex. TIM3-CCMR2_Input 1b. ;
: TIM3-CCER. ." TIM3-CCER (read-write) $" TIM3-CCER @ hex. TIM3-CCER 1b. ;
: TIM3-CNT. ." TIM3-CNT (read-write) $" TIM3-CNT @ hex. TIM3-CNT 1b. ;
: TIM3-PSC. ." TIM3-PSC (read-write) $" TIM3-PSC @ hex. TIM3-PSC 1b. ;
: TIM3-ARR. ." TIM3-ARR (read-write) $" TIM3-ARR @ hex. TIM3-ARR 1b. ;
: TIM3-CCR1. ." TIM3-CCR1 (read-write) $" TIM3-CCR1 @ hex. TIM3-CCR1 1b. ;
: TIM3-CCR2. ." TIM3-CCR2 (read-write) $" TIM3-CCR2 @ hex. TIM3-CCR2 1b. ;
: TIM3-CCR3. ." TIM3-CCR3 (read-write) $" TIM3-CCR3 @ hex. TIM3-CCR3 1b. ;
: TIM3-CCR4. ." TIM3-CCR4 (read-write) $" TIM3-CCR4 @ hex. TIM3-CCR4 1b. ;
: TIM3-DCR. ." TIM3-DCR (read-write) $" TIM3-DCR @ hex. TIM3-DCR 1b. ;
: TIM3-DMAR. ." TIM3-DMAR (read-write) $" TIM3-DMAR @ hex. TIM3-DMAR 1b. ;
: TIM3.
TIM3-CR1.
TIM3-CR2.
TIM3-SMCR.
TIM3-DIER.
TIM3-SR.
TIM3-EGR.
TIM3-CCMR1_Output.
TIM3-CCMR1_Input.
TIM3-CCMR2_Output.
TIM3-CCMR2_Input.
TIM3-CCER.
TIM3-CNT.
TIM3-PSC.
TIM3-ARR.
TIM3-CCR1.
TIM3-CCR2.
TIM3-CCR3.
TIM3-CCR4.
TIM3-DCR.
TIM3-DMAR.
;
$40000800 constant TIM4 ( General purpose timer )
TIM4 $0 + constant TIM4-CR1 ( control register 1 )
TIM4 $4 + constant TIM4-CR2 ( control register 2 )
TIM4 $8 + constant TIM4-SMCR ( slave mode control register )
TIM4 $C + constant TIM4-DIER ( DMA/Interrupt enable register )
TIM4 $10 + constant TIM4-SR ( status register )
TIM4 $14 + constant TIM4-EGR ( event generation register )
TIM4 $18 + constant TIM4-CCMR1_Output ( capture/compare mode register 1 output mode )
TIM4 $18 + constant TIM4-CCMR1_Input ( capture/compare mode register 1 input mode )
TIM4 $1C + constant TIM4-CCMR2_Output ( capture/compare mode register 2 output mode )
TIM4 $1C + constant TIM4-CCMR2_Input ( capture/compare mode register 2 input mode )
TIM4 $20 + constant TIM4-CCER ( capture/compare enable register )
TIM4 $24 + constant TIM4-CNT ( counter )
TIM4 $28 + constant TIM4-PSC ( prescaler )
TIM4 $2C + constant TIM4-ARR ( auto-reload register )
TIM4 $34 + constant TIM4-CCR1 ( capture/compare register 1 )
TIM4 $38 + constant TIM4-CCR2 ( capture/compare register 2 )
TIM4 $3C + constant TIM4-CCR3 ( capture/compare register 3 )
TIM4 $40 + constant TIM4-CCR4 ( capture/compare register 4 )
TIM4 $48 + constant TIM4-DCR ( DMA control register )
TIM4 $4C + constant TIM4-DMAR ( DMA address for full transfer )
: TIM4-CR1. ." TIM4-CR1 (read-write) $" TIM4-CR1 @ hex. TIM4-CR1 1b. ;
: TIM4-CR2. ." TIM4-CR2 (read-write) $" TIM4-CR2 @ hex. TIM4-CR2 1b. ;
: TIM4-SMCR. ." TIM4-SMCR (read-write) $" TIM4-SMCR @ hex. TIM4-SMCR 1b. ;
: TIM4-DIER. ." TIM4-DIER (read-write) $" TIM4-DIER @ hex. TIM4-DIER 1b. ;
: TIM4-SR. ." TIM4-SR (read-write) $" TIM4-SR @ hex. TIM4-SR 1b. ;
: TIM4-EGR. ." TIM4-EGR (write-only) $" TIM4-EGR @ hex. TIM4-EGR 1b. ;
: TIM4-CCMR1_Output. ." TIM4-CCMR1_Output (read-write) $" TIM4-CCMR1_Output @ hex. TIM4-CCMR1_Output 1b. ;
: TIM4-CCMR1_Input. ." TIM4-CCMR1_Input (read-write) $" TIM4-CCMR1_Input @ hex. TIM4-CCMR1_Input 1b. ;
: TIM4-CCMR2_Output. ." TIM4-CCMR2_Output (read-write) $" TIM4-CCMR2_Output @ hex. TIM4-CCMR2_Output 1b. ;
: TIM4-CCMR2_Input. ." TIM4-CCMR2_Input (read-write) $" TIM4-CCMR2_Input @ hex. TIM4-CCMR2_Input 1b. ;
: TIM4-CCER. ." TIM4-CCER (read-write) $" TIM4-CCER @ hex. TIM4-CCER 1b. ;
: TIM4-CNT. ." TIM4-CNT (read-write) $" TIM4-CNT @ hex. TIM4-CNT 1b. ;
: TIM4-PSC. ." TIM4-PSC (read-write) $" TIM4-PSC @ hex. TIM4-PSC 1b. ;
: TIM4-ARR. ." TIM4-ARR (read-write) $" TIM4-ARR @ hex. TIM4-ARR 1b. ;
: TIM4-CCR1. ." TIM4-CCR1 (read-write) $" TIM4-CCR1 @ hex. TIM4-CCR1 1b. ;
: TIM4-CCR2. ." TIM4-CCR2 (read-write) $" TIM4-CCR2 @ hex. TIM4-CCR2 1b. ;
: TIM4-CCR3. ." TIM4-CCR3 (read-write) $" TIM4-CCR3 @ hex. TIM4-CCR3 1b. ;
: TIM4-CCR4. ." TIM4-CCR4 (read-write) $" TIM4-CCR4 @ hex. TIM4-CCR4 1b. ;
: TIM4-DCR. ." TIM4-DCR (read-write) $" TIM4-DCR @ hex. TIM4-DCR 1b. ;
: TIM4-DMAR. ." TIM4-DMAR (read-write) $" TIM4-DMAR @ hex. TIM4-DMAR 1b. ;
: TIM4.
TIM4-CR1.
TIM4-CR2.
TIM4-SMCR.
TIM4-DIER.
TIM4-SR.
TIM4-EGR.
TIM4-CCMR1_Output.
TIM4-CCMR1_Input.
TIM4-CCMR2_Output.
TIM4-CCMR2_Input.
TIM4-CCER.
TIM4-CNT.
TIM4-PSC.
TIM4-ARR.
TIM4-CCR1.
TIM4-CCR2.
TIM4-CCR3.
TIM4-CCR4.
TIM4-DCR.
TIM4-DMAR.
;
$40005400 constant I2C1 ( Inter integrated circuit )
I2C1 $0 + constant I2C1-CR1 ( Control register 1 )
I2C1 $4 + constant I2C1-CR2 ( Control register 2 )
I2C1 $8 + constant I2C1-OAR1 ( Own address register 1 )
I2C1 $C + constant I2C1-OAR2 ( Own address register 2 )
I2C1 $10 + constant I2C1-DR ( Data register )
I2C1 $14 + constant I2C1-SR1 ( Status register 1 )
I2C1 $18 + constant I2C1-SR2 ( Status register 2 )
I2C1 $1C + constant I2C1-CCR ( Clock control register )
I2C1 $20 + constant I2C1-TRISE ( TRISE register )
: I2C1-CR1. ." I2C1-CR1 (read-write) $" I2C1-CR1 @ hex. I2C1-CR1 1b. ;
: I2C1-CR2. ." I2C1-CR2 (read-write) $" I2C1-CR2 @ hex. I2C1-CR2 1b. ;
: I2C1-OAR1. ." I2C1-OAR1 (read-write) $" I2C1-OAR1 @ hex. I2C1-OAR1 1b. ;
: I2C1-OAR2. ." I2C1-OAR2 (read-write) $" I2C1-OAR2 @ hex. I2C1-OAR2 1b. ;
: I2C1-DR. ." I2C1-DR (read-write) $" I2C1-DR @ hex. I2C1-DR 1b. ;
: I2C1-SR1. ." I2C1-SR1 () $" I2C1-SR1 @ hex. I2C1-SR1 1b. ;
: I2C1-SR2. ." I2C1-SR2 (read-only) $" I2C1-SR2 @ hex. I2C1-SR2 1b. ;
: I2C1-CCR. ." I2C1-CCR (read-write) $" I2C1-CCR @ hex. I2C1-CCR 1b. ;
: I2C1-TRISE. ." I2C1-TRISE (read-write) $" I2C1-TRISE @ hex. I2C1-TRISE 1b. ;
: I2C1.
I2C1-CR1.
I2C1-CR2.
I2C1-OAR1.
I2C1-OAR2.
I2C1-DR.
I2C1-SR1.
I2C1-SR2.
I2C1-CCR.
I2C1-TRISE.
;
$40005800 constant I2C2 ( Inter integrated circuit )
I2C2 $0 + constant I2C2-CR1 ( Control register 1 )
I2C2 $4 + constant I2C2-CR2 ( Control register 2 )
I2C2 $8 + constant I2C2-OAR1 ( Own address register 1 )
I2C2 $C + constant I2C2-OAR2 ( Own address register 2 )
I2C2 $10 + constant I2C2-DR ( Data register )
I2C2 $14 + constant I2C2-SR1 ( Status register 1 )
I2C2 $18 + constant I2C2-SR2 ( Status register 2 )
I2C2 $1C + constant I2C2-CCR ( Clock control register )
I2C2 $20 + constant I2C2-TRISE ( TRISE register )
: I2C2-CR1. ." I2C2-CR1 (read-write) $" I2C2-CR1 @ hex. I2C2-CR1 1b. ;
: I2C2-CR2. ." I2C2-CR2 (read-write) $" I2C2-CR2 @ hex. I2C2-CR2 1b. ;
: I2C2-OAR1. ." I2C2-OAR1 (read-write) $" I2C2-OAR1 @ hex. I2C2-OAR1 1b. ;
: I2C2-OAR2. ." I2C2-OAR2 (read-write) $" I2C2-OAR2 @ hex. I2C2-OAR2 1b. ;
: I2C2-DR. ." I2C2-DR (read-write) $" I2C2-DR @ hex. I2C2-DR 1b. ;
: I2C2-SR1. ." I2C2-SR1 () $" I2C2-SR1 @ hex. I2C2-SR1 1b. ;
: I2C2-SR2. ." I2C2-SR2 (read-only) $" I2C2-SR2 @ hex. I2C2-SR2 1b. ;
: I2C2-CCR. ." I2C2-CCR (read-write) $" I2C2-CCR @ hex. I2C2-CCR 1b. ;
: I2C2-TRISE. ." I2C2-TRISE (read-write) $" I2C2-TRISE @ hex. I2C2-TRISE 1b. ;
: I2C2.
I2C2-CR1.
I2C2-CR2.
I2C2-OAR1.
I2C2-OAR2.
I2C2-DR.
I2C2-SR1.
I2C2-SR2.