You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would go some way for the code to self document, also means code should work on future device if bits are moved around in registers.
Also, it would be nice if these values were exposed in a header (rather than internal c file) such that other code can inspect/use. For example, the feedback code in USB Audio.
The text was updated successfully, but these errors were encountered:
Agree this should be improved. These values are obtained from pll_calc.py and so it would make sense for this script to generate the broken down bitfields since it has awareness of these values anyway.
Ideally defines such as
lib_sw_pll/lib_sw_pll/src/sw_pll_common.c
Line 63 in 321c7ce
Would be built up from the required values using macros such as:
#define XS1_SS_FRAC_N_PERIOD_CYC_CNT_SHIFT 0x0
#define XS1_SS_FRAC_N_F_HIGH_CYC_CNT_SHIFT 0x8
#define XS1_SS_FRAC_N_ENABLE_SHIFT 0x1f
etc.
This would go some way for the code to self document, also means code should work on future device if bits are moved around in registers.
Also, it would be nice if these values were exposed in a header (rather than internal c file) such that other code can inspect/use. For example, the feedback code in USB Audio.
The text was updated successfully, but these errors were encountered: