@@ -1103,7 +1103,7 @@ impl<'d> UartRx<'d, Async> {
11031103 }
11041104
11051105 cfg_if:: cfg_if! {
1106- if #[ cfg( any( esp32c5, esp32c6, esp32h2) ) ] {
1106+ if #[ cfg( any( esp32c5, esp32c6, esp32c61 , esp32h2) ) ] {
11071107 let reg_en = self . regs( ) . tout_conf( ) ;
11081108 } else {
11091109 let reg_en = self . regs( ) . conf1( ) ;
@@ -3309,7 +3309,7 @@ impl Info {
33093309 cfg_if:: cfg_if! {
33103310 if #[ cfg( esp32) ] {
33113311 let reg_thrhd = register_block. conf1( ) ;
3312- } else if #[ cfg( any( esp32c5, esp32c6, esp32h2) ) ] {
3312+ } else if #[ cfg( any( esp32c5, esp32c6, esp32c61 , esp32h2) ) ] {
33133313 let reg_thrhd = register_block. tout_conf( ) ;
33143314 } else {
33153315 let reg_thrhd = register_block. mem_conf( ) ;
@@ -3319,7 +3319,7 @@ impl Info {
33193319 }
33203320
33213321 cfg_if:: cfg_if! {
3322- if #[ cfg( any( esp32c5, esp32c6, esp32h2) ) ] {
3322+ if #[ cfg( any( esp32c5, esp32c6, esp32c61 , esp32h2) ) ] {
33233323 let reg_en = register_block. tout_conf( ) ;
33243324 } else {
33253325 let reg_en = register_block. conf1( ) ;
@@ -3462,7 +3462,7 @@ impl Info {
34623462 xoff_threshold,
34633463 } => {
34643464 cfg_if:: cfg_if! {
3465- if #[ cfg( any( esp32c5, esp32c6, esp32h2) ) ] {
3465+ if #[ cfg( any( esp32c5, esp32c6, esp32c61 , esp32h2) ) ] {
34663466 self . regs( ) . swfc_conf0( ) . modify( |_, w| w. xonoff_del( ) . set_bit( ) . sw_flow_con_en( ) . set_bit( ) ) ;
34673467 self . regs( ) . swfc_conf1( ) . modify( |_, w| unsafe { w. xon_threshold( ) . bits( xon_threshold) . xoff_threshold( ) . bits( xoff_threshold) } ) ;
34683468 self . regs( ) . swfc_conf0( ) . modify( |_, w| unsafe { w. xon_char( ) . bits( xon_char) . xoff_char( ) . bits( xoff_char) } ) ;
@@ -3481,7 +3481,7 @@ impl Info {
34813481 }
34823482 SwFlowControl :: Disabled => {
34833483 cfg_if:: cfg_if! {
3484- if #[ cfg( any( esp32c5, esp32c6, esp32h2) ) ] {
3484+ if #[ cfg( any( esp32c5, esp32c6, esp32c61 , esp32h2) ) ] {
34853485 let reg = self . regs( ) . swfc_conf0( ) ;
34863486 } else {
34873487 let reg = self . regs( ) . flow_conf( ) ;
@@ -3511,7 +3511,7 @@ impl Info {
35113511 cfg_if:: cfg_if! {
35123512 if #[ cfg( esp32) ] {
35133513 self . regs( ) . conf1( ) . modify( |_, w| unsafe { w. rx_flow_thrhd( ) . bits( threshold) } ) ;
3514- } else if #[ cfg( any( esp32c5, esp32c6, esp32h2) ) ] {
3514+ } else if #[ cfg( any( esp32c5, esp32c6, esp32c61 , esp32h2) ) ] {
35153515 self . regs( ) . hwfc_conf( ) . modify( |_, w| unsafe { w. rx_flow_thrhd( ) . bits( threshold) } ) ;
35163516 } else {
35173517 self . regs( ) . mem_conf( ) . modify( |_, w| unsafe { w. rx_flow_thrhd( ) . bits( threshold as u16 ) } ) ;
@@ -3520,7 +3520,7 @@ impl Info {
35203520 }
35213521
35223522 cfg_if:: cfg_if! {
3523- if #[ cfg( any( esp32c5, esp32c6, esp32h2) ) ] {
3523+ if #[ cfg( any( esp32c5, esp32c6, esp32c61 , esp32h2) ) ] {
35243524 self . regs( ) . hwfc_conf( ) . modify( |_, w| {
35253525 w. rx_flow_en( ) . bit( enable)
35263526 } ) ;
0 commit comments