Skip to content

Commit 9b42643

Browse files
committed
INT_CLR: Write 1 to clear
1 parent 6576b7a commit 9b42643

File tree

4 files changed

+29
-21
lines changed

4 files changed

+29
-21
lines changed

esp32s2/src/copy_dma/int_clr.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
#[doc = "Register `INT_CLR` writer"]
22
pub type W = crate::W<INT_CLR_SPEC>;
33
#[doc = "Field `IN_DONE` writer - Set this bit to clear IN_DONE interrupt."]
4-
pub type IN_DONE_W<'a, REG> = crate::BitWriter<'a, REG>;
4+
pub type IN_DONE_W<'a, REG> = crate::BitWriter1C<'a, REG>;
55
#[doc = "Field `IN_SUC_EOF` writer - Set this bit to clear IN_SUC_EOF interrupt."]
6-
pub type IN_SUC_EOF_W<'a, REG> = crate::BitWriter<'a, REG>;
6+
pub type IN_SUC_EOF_W<'a, REG> = crate::BitWriter1C<'a, REG>;
77
#[doc = "Field `OUT_DONE` writer - Set this bit to clear OUT_DONE interrupt."]
8-
pub type OUT_DONE_W<'a, REG> = crate::BitWriter<'a, REG>;
8+
pub type OUT_DONE_W<'a, REG> = crate::BitWriter1C<'a, REG>;
99
#[doc = "Field `OUT_EOF` writer - Set this bit to clear OUT_EOF interrupt."]
10-
pub type OUT_EOF_W<'a, REG> = crate::BitWriter<'a, REG>;
10+
pub type OUT_EOF_W<'a, REG> = crate::BitWriter1C<'a, REG>;
1111
#[doc = "Field `IN_DSCR_ERR` writer - Set this bit to clear IN_DSCR_ERR interrupt."]
12-
pub type IN_DSCR_ERR_W<'a, REG> = crate::BitWriter<'a, REG>;
12+
pub type IN_DSCR_ERR_W<'a, REG> = crate::BitWriter1C<'a, REG>;
1313
#[doc = "Field `OUT_DSCR_ERR` writer - Set this bit to clear OUT_DSCR_ERR interrupt."]
14-
pub type OUT_DSCR_ERR_W<'a, REG> = crate::BitWriter<'a, REG>;
14+
pub type OUT_DSCR_ERR_W<'a, REG> = crate::BitWriter1C<'a, REG>;
1515
#[doc = "Field `IN_DSCR_EMPTY` writer - Set this bit to clear IN_DSCR_EMPTY interrupt."]
16-
pub type IN_DSCR_EMPTY_W<'a, REG> = crate::BitWriter<'a, REG>;
16+
pub type IN_DSCR_EMPTY_W<'a, REG> = crate::BitWriter1C<'a, REG>;
1717
#[doc = "Field `OUT_TOTAL_EOF` writer - Set this bit to clear OUT_TOTAL_EOF interrupt."]
18-
pub type OUT_TOTAL_EOF_W<'a, REG> = crate::BitWriter<'a, REG>;
18+
pub type OUT_TOTAL_EOF_W<'a, REG> = crate::BitWriter1C<'a, REG>;
1919
#[cfg(feature = "impl-register-debug")]
2020
impl core::fmt::Debug for crate::generic::Reg<INT_CLR_SPEC> {
2121
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
@@ -73,7 +73,7 @@ impl crate::RegisterSpec for INT_CLR_SPEC {
7373
impl crate::Writable for INT_CLR_SPEC {
7474
type Safety = crate::Unsafe;
7575
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
76-
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
76+
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0xff;
7777
}
7878
#[doc = "`reset()` method sets INT_CLR to value 0"]
7979
impl crate::Resettable for INT_CLR_SPEC {

esp32s2/src/crypto_dma/int_clr.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
#[doc = "Register `INT_CLR` writer"]
22
pub type W = crate::W<INT_CLR_SPEC>;
33
#[doc = "Field `IN_DONE` writer - Set this bit to clear the IN_DONE interrupt."]
4-
pub type IN_DONE_W<'a, REG> = crate::BitWriter<'a, REG>;
4+
pub type IN_DONE_W<'a, REG> = crate::BitWriter1C<'a, REG>;
55
#[doc = "Field `IN_SUC_EOF` writer - Set this bit to clear the IN_SUC_EOF interrupt."]
6-
pub type IN_SUC_EOF_W<'a, REG> = crate::BitWriter<'a, REG>;
6+
pub type IN_SUC_EOF_W<'a, REG> = crate::BitWriter1C<'a, REG>;
77
#[doc = "Field `IN_ERR_EOF` writer - Set this bit to clear the IN_ERR_EOF interrupt."]
8-
pub type IN_ERR_EOF_W<'a, REG> = crate::BitWriter<'a, REG>;
8+
pub type IN_ERR_EOF_W<'a, REG> = crate::BitWriter1C<'a, REG>;
99
#[doc = "Field `OUT_DONE` writer - Set this bit to clear the OUT_DONE interrupt."]
10-
pub type OUT_DONE_W<'a, REG> = crate::BitWriter<'a, REG>;
10+
pub type OUT_DONE_W<'a, REG> = crate::BitWriter1C<'a, REG>;
1111
#[doc = "Field `OUT_EOF` writer - Set this bit to clear the OUT_EOF interrupt."]
12-
pub type OUT_EOF_W<'a, REG> = crate::BitWriter<'a, REG>;
12+
pub type OUT_EOF_W<'a, REG> = crate::BitWriter1C<'a, REG>;
1313
#[doc = "Field `IN_DSCR_ERR` writer - Set this bit to clear the IN_DSCR_ERR interrupt."]
14-
pub type IN_DSCR_ERR_W<'a, REG> = crate::BitWriter<'a, REG>;
14+
pub type IN_DSCR_ERR_W<'a, REG> = crate::BitWriter1C<'a, REG>;
1515
#[doc = "Field `OUT_DSCR_ERR` writer - Set this bit to clear the OUT_DSCR_ERR interrupt."]
16-
pub type OUT_DSCR_ERR_W<'a, REG> = crate::BitWriter<'a, REG>;
16+
pub type OUT_DSCR_ERR_W<'a, REG> = crate::BitWriter1C<'a, REG>;
1717
#[doc = "Field `IN_DSCR_EMPTY` writer - Set this bit to clear the IN_DSCR_EMPTY interrupt."]
18-
pub type IN_DSCR_EMPTY_W<'a, REG> = crate::BitWriter<'a, REG>;
18+
pub type IN_DSCR_EMPTY_W<'a, REG> = crate::BitWriter1C<'a, REG>;
1919
#[doc = "Field `OUT_TOTAL_EOF` writer - Set this bit to clear the OUT_TOTAL_EOF interrupt."]
20-
pub type OUT_TOTAL_EOF_W<'a, REG> = crate::BitWriter<'a, REG>;
20+
pub type OUT_TOTAL_EOF_W<'a, REG> = crate::BitWriter1C<'a, REG>;
2121
#[doc = "Field `INFIFO_FULL_WM` writer - Set this bit to clear the INFIFO_FULL_WM interrupt."]
22-
pub type INFIFO_FULL_WM_W<'a, REG> = crate::BitWriter<'a, REG>;
22+
pub type INFIFO_FULL_WM_W<'a, REG> = crate::BitWriter1C<'a, REG>;
2323
#[cfg(feature = "impl-register-debug")]
2424
impl core::fmt::Debug for crate::generic::Reg<INT_CLR_SPEC> {
2525
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
@@ -87,7 +87,7 @@ impl crate::RegisterSpec for INT_CLR_SPEC {
8787
impl crate::Writable for INT_CLR_SPEC {
8888
type Safety = crate::Unsafe;
8989
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
90-
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
90+
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0x03ff;
9191
}
9292
#[doc = "`reset()` method sets INT_CLR to value 0"]
9393
impl crate::Resettable for INT_CLR_SPEC {

esp32s2/svd/patches/copy_dma.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -428,3 +428,7 @@ COPY_DMA:
428428
CLK_EN:
429429
FORCE: [1, "Force clock on for register"]
430430
ON_WRITE: [0, "Support clock only when application writes registers"]
431+
INT_CLR:
432+
_modify:
433+
"*":
434+
modifiedWriteValues: oneToClear

esp32s2/svd/patches/crypto_dma.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -608,4 +608,8 @@ CRYPTO_DMA:
608608
AES_SHA_SELECT:
609609
SELECT:
610610
AES: [0, "The AES peripheral uses the Crypto DMA"]
611-
SHA: [1, "The SHA peripheral uses the Crypto DMA"]
611+
SHA: [1, "The SHA peripheral uses the Crypto DMA"]
612+
INT_CLR:
613+
_modify:
614+
"*":
615+
modifiedWriteValues: oneToClear

0 commit comments

Comments
 (0)