Skip to content

Commit fe2e838

Browse files
authored
Svd2rust 0.16.1 (#8)
* delete unneeded lib.rs * Regenerated using svd2rust 0.16.1 * updated deps and repo * Updated version * Adding missing shebangs
1 parent 4c088da commit fe2e838

File tree

737 files changed

+163157
-264529
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

737 files changed

+163157
-264529
lines changed

Diff for: Cargo.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
name = "xmc4100"
33
description = "XMC4100 Cortex-M peripheral access library"
44
license = "MIT"
5-
version = "0.1.1"
5+
version = "0.3.0"
66
authors = ["Lucas Brendel <[email protected]>"]
7-
repository = "https://github.com/lucasbrendel/xmc4100"
7+
repository = "https://github.com/xmc-rs/xmc4100"
88
documentation = "https://docs.rs/xmc4100"
99

1010
[dependencies]
11-
cortex-m = "0.6.0"
12-
bare-metal = "0.2.4"
13-
vcell = "0.1.0"
11+
cortex-m = "0.6.1"
12+
bare-metal = "0.2.5"
13+
vcell = "0.1.2"
1414

1515
[dependencies.cortex-m-rt]
1616
optional = true
17-
version = "0.6.7"
17+
version = "0.6.10"
1818

1919
[features]
2020
rt = ["cortex-m-rt"]

Diff for: ci/install.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/bash
12
set -ex
23

34
main() {

Diff for: ci/script.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/bash
2+
13
# This script takes care of testing your crate
24

35
set -ex

Diff for: src/can.rs

+88-46
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
#[doc = r" Register block"]
1+
#[doc = r"Register block"]
22
#[repr(C)]
33
pub struct RegisterBlock {
44
#[doc = "0x00 - CAN Clock Control Register"]
55
pub clc: CLC,
6-
_reserved0: [u8; 4usize],
6+
_reserved1: [u8; 4usize],
77
#[doc = "0x08 - Module Identification Register"]
88
pub id: ID,
99
#[doc = "0x0c - CAN Fractional Divider Register"]
1010
pub fdr: FDR,
11-
_reserved1: [u8; 240usize],
11+
_reserved3: [u8; 240usize],
1212
#[doc = "0x100 - List Register"]
1313
pub list: [LIST; 8],
14-
_reserved2: [u8; 32usize],
14+
_reserved4: [u8; 32usize],
1515
#[doc = "0x140 - Message Pending Register"]
1616
pub mspnd: [MSPND; 8],
17-
_reserved3: [u8; 32usize],
17+
_reserved5: [u8; 32usize],
1818
#[doc = "0x180 - Message Index Register"]
1919
pub msid: [MSID; 8],
20-
_reserved4: [u8; 32usize],
20+
_reserved6: [u8; 32usize],
2121
#[doc = "0x1c0 - Message Index Mask Register"]
2222
pub msimask: MSIMASK,
2323
#[doc = "0x1c4 - Panel Control Register"]
@@ -27,63 +27,105 @@ pub struct RegisterBlock {
2727
#[doc = "0x1cc - Module Interrupt Trigger Register"]
2828
pub mitr: MITR,
2929
}
30-
#[doc = "CAN Clock Control Register"]
31-
pub struct CLC {
32-
register: ::vcell::VolatileCell<u32>,
33-
}
30+
#[doc = "CAN Clock Control Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [clc](clc) module"]
31+
pub type CLC = crate::Reg<u32, _CLC>;
32+
#[allow(missing_docs)]
33+
#[doc(hidden)]
34+
pub struct _CLC;
35+
#[doc = "`read()` method returns [clc::R](clc::R) reader structure"]
36+
impl crate::Readable for CLC {}
37+
#[doc = "`write(|w| ..)` method takes [clc::W](clc::W) writer structure"]
38+
impl crate::Writable for CLC {}
3439
#[doc = "CAN Clock Control Register"]
3540
pub mod clc;
36-
#[doc = "Module Identification Register"]
37-
pub struct ID {
38-
register: ::vcell::VolatileCell<u32>,
39-
}
41+
#[doc = "Module Identification Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [id](id) module"]
42+
pub type ID = crate::Reg<u32, _ID>;
43+
#[allow(missing_docs)]
44+
#[doc(hidden)]
45+
pub struct _ID;
46+
#[doc = "`read()` method returns [id::R](id::R) reader structure"]
47+
impl crate::Readable for ID {}
4048
#[doc = "Module Identification Register"]
4149
pub mod id;
42-
#[doc = "CAN Fractional Divider Register"]
43-
pub struct FDR {
44-
register: ::vcell::VolatileCell<u32>,
45-
}
50+
#[doc = "CAN Fractional Divider Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [fdr](fdr) module"]
51+
pub type FDR = crate::Reg<u32, _FDR>;
52+
#[allow(missing_docs)]
53+
#[doc(hidden)]
54+
pub struct _FDR;
55+
#[doc = "`read()` method returns [fdr::R](fdr::R) reader structure"]
56+
impl crate::Readable for FDR {}
57+
#[doc = "`write(|w| ..)` method takes [fdr::W](fdr::W) writer structure"]
58+
impl crate::Writable for FDR {}
4659
#[doc = "CAN Fractional Divider Register"]
4760
pub mod fdr;
48-
#[doc = "List Register"]
49-
pub struct LIST {
50-
register: ::vcell::VolatileCell<u32>,
51-
}
61+
#[doc = "List Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [list](list) module"]
62+
pub type LIST = crate::Reg<u32, _LIST>;
63+
#[allow(missing_docs)]
64+
#[doc(hidden)]
65+
pub struct _LIST;
66+
#[doc = "`read()` method returns [list::R](list::R) reader structure"]
67+
impl crate::Readable for LIST {}
5268
#[doc = "List Register"]
5369
pub mod list;
54-
#[doc = "Message Pending Register"]
55-
pub struct MSPND {
56-
register: ::vcell::VolatileCell<u32>,
57-
}
70+
#[doc = "Message Pending Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [mspnd](mspnd) module"]
71+
pub type MSPND = crate::Reg<u32, _MSPND>;
72+
#[allow(missing_docs)]
73+
#[doc(hidden)]
74+
pub struct _MSPND;
75+
#[doc = "`read()` method returns [mspnd::R](mspnd::R) reader structure"]
76+
impl crate::Readable for MSPND {}
77+
#[doc = "`write(|w| ..)` method takes [mspnd::W](mspnd::W) writer structure"]
78+
impl crate::Writable for MSPND {}
5879
#[doc = "Message Pending Register"]
5980
pub mod mspnd;
60-
#[doc = "Message Index Register"]
61-
pub struct MSID {
62-
register: ::vcell::VolatileCell<u32>,
63-
}
81+
#[doc = "Message Index Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [msid](msid) module"]
82+
pub type MSID = crate::Reg<u32, _MSID>;
83+
#[allow(missing_docs)]
84+
#[doc(hidden)]
85+
pub struct _MSID;
86+
#[doc = "`read()` method returns [msid::R](msid::R) reader structure"]
87+
impl crate::Readable for MSID {}
6488
#[doc = "Message Index Register"]
6589
pub mod msid;
66-
#[doc = "Message Index Mask Register"]
67-
pub struct MSIMASK {
68-
register: ::vcell::VolatileCell<u32>,
69-
}
90+
#[doc = "Message Index Mask Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [msimask](msimask) module"]
91+
pub type MSIMASK = crate::Reg<u32, _MSIMASK>;
92+
#[allow(missing_docs)]
93+
#[doc(hidden)]
94+
pub struct _MSIMASK;
95+
#[doc = "`read()` method returns [msimask::R](msimask::R) reader structure"]
96+
impl crate::Readable for MSIMASK {}
97+
#[doc = "`write(|w| ..)` method takes [msimask::W](msimask::W) writer structure"]
98+
impl crate::Writable for MSIMASK {}
7099
#[doc = "Message Index Mask Register"]
71100
pub mod msimask;
72-
#[doc = "Panel Control Register"]
73-
pub struct PANCTR {
74-
register: ::vcell::VolatileCell<u32>,
75-
}
101+
#[doc = "Panel Control Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [panctr](panctr) module"]
102+
pub type PANCTR = crate::Reg<u32, _PANCTR>;
103+
#[allow(missing_docs)]
104+
#[doc(hidden)]
105+
pub struct _PANCTR;
106+
#[doc = "`read()` method returns [panctr::R](panctr::R) reader structure"]
107+
impl crate::Readable for PANCTR {}
108+
#[doc = "`write(|w| ..)` method takes [panctr::W](panctr::W) writer structure"]
109+
impl crate::Writable for PANCTR {}
76110
#[doc = "Panel Control Register"]
77111
pub mod panctr;
78-
#[doc = "Module Control Register"]
79-
pub struct MCR {
80-
register: ::vcell::VolatileCell<u32>,
81-
}
112+
#[doc = "Module Control Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [mcr](mcr) module"]
113+
pub type MCR = crate::Reg<u32, _MCR>;
114+
#[allow(missing_docs)]
115+
#[doc(hidden)]
116+
pub struct _MCR;
117+
#[doc = "`read()` method returns [mcr::R](mcr::R) reader structure"]
118+
impl crate::Readable for MCR {}
119+
#[doc = "`write(|w| ..)` method takes [mcr::W](mcr::W) writer structure"]
120+
impl crate::Writable for MCR {}
82121
#[doc = "Module Control Register"]
83122
pub mod mcr;
84-
#[doc = "Module Interrupt Trigger Register"]
85-
pub struct MITR {
86-
register: ::vcell::VolatileCell<u32>,
87-
}
123+
#[doc = "Module Interrupt Trigger Register\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [mitr](mitr) module"]
124+
pub type MITR = crate::Reg<u32, _MITR>;
125+
#[allow(missing_docs)]
126+
#[doc(hidden)]
127+
pub struct _MITR;
128+
#[doc = "`write(|w| ..)` method takes [mitr::W](mitr::W) writer structure"]
129+
impl crate::Writable for MITR {}
88130
#[doc = "Module Interrupt Trigger Register"]
89131
pub mod mitr;

0 commit comments

Comments
 (0)