Skip to content

Commit

Permalink
LEDC clusters instead of arrays (#223)
Browse files Browse the repository at this point in the history
* LEDC clusters instead of arrays

* LEDC INT field arrays
  • Loading branch information
burrbull authored Apr 1, 2024
1 parent 7383d22 commit a8a8340
Show file tree
Hide file tree
Showing 145 changed files with 7,776 additions and 9,398 deletions.
34 changes: 34 additions & 0 deletions common_patches/ledc_collect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
_expand_array:
CH%s_CONF0: {}
CH%s_HPOINT: {}
CH%s_DUTY: {}
CH%s_CONF1: {}
CH%s_DUTY_R: {}

TIMER%s_CONF: {}
TIMER%s_VALUE: {}

_cluster:
CH%s:
CH?_CONF0:
name: CONF0
CH?_HPOINT:
name: HPOINT
CH?_DUTY:
name: DUTY
CH?_CONF1:
name: CONF1
CH?_DUTY_R:
name: DUTY_R
_modify:
"DUTY_R,DUTY_CH_R,DUTY_CH?_R":
name: DUTY_R

TIMER%s:
TIMER?_CONF:
name: CONF
TIMER?_VALUE:
name: VALUE
_modify:
"CNT,TIMER_CNT":
name: CNT
45 changes: 45 additions & 0 deletions common_patches/ledc_int.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
INT_RAW:
_strip_end: _INT_RAW
_array:
TIMER?_OVF:
description: Triggered when the timer%s has reached its maximum counter value.
DUTY_CHNG_END_CH?:
description: Interrupt raw bit for channel %s. Triggered when the gradual change of duty has finished.
OVF_CNT_CH?:
description: Interrupt raw bit for channel %s. Triggered when the OVF_CNT has reached the value specified by LEDC.CHx.CONF0.OVF_NUM.
INT_ST:
_strip_end: _INT_ST
_array:
TIMER?_OVF:
description: This is the masked interrupt status bit for the TIMER%s_OVF interrupt when LEDC.INT_ENA.TIMERx_OVF is set to 1.
DUTY_CHNG_END_CH?:
description: This is the masked interrupt status bit for the DUTY_CHNG_END_CH%s interrupt when LEDC.INT_ENA.DUTY_CHNG_END_CHx is set to 1.
OVF_CNT_CH?:
description: This is the masked interrupt status bit for the LEDC.INT_RAW.OVF_CNT_CH%s interrupt when LEDC.INT_ENA.OVF_CNT_CHx is set to 1.
INT_ENA:
_strip_end: _INT_ENA
_array:
TIMER?_OVF:
name: TIMER%s_OVF
description: The interrupt enable bit for the TIMER%s_OVF interrupt.
DUTY_CHNG_END_CH?:
name: DUTY_CHNG_END_CH%s
description: The interrupt enable bit for the DUTY_CHNG_END_CH%s interrupt.
OVF_CNT_CH?:
name: OVF_CNT_CH%s
description: The interrupt enable bit for the OVF_CNT_CH%s interrupt.
INT_CLR:
_strip_end: _INT_CLR
_array:
TIMER?_OVF:
name: TIMER%s_OVF
description: Set this bit to clear the TIMER%s_OVF interrupt.
DUTY_CHNG_END_CH?:
name: DUTY_CHNG_END_CH%s
description: Set this bit to clear the DUTY_CHNG_END_CH%s interrupt.
OVF_CNT_CH?:
name: OVF_CNT_CH%s
description: Set this bit to clear the OVF_CNT_CH%s interrupt.
_modify:
"*":
modifiedWriteValues: oneToClear
Loading

0 comments on commit a8a8340

Please sign in to comment.