You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2022/09/19 07:21:45 UTC

[GitHub] [mynewt-core] kasjer opened a new pull request, #2879: i2s_nrfx: Add Audio clock support

kasjer opened a new pull request, #2879:
URL: https://github.com/apache/mynewt-core/pull/2879

   NRF5340 has dedicated audio clock that allows for more precise audio frequencies then 32MHz oscillator only.
   
   NRF5340 also supports 32 bits sample slots.
   
   This add support ACLK.
   For this to work NRFX_CLOCK_ENABLED must be enabled to allows usage of clock related nrfx api.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-core] apache-mynewt-bot commented on pull request #2879: i2s_nrfx: Add Audio clock support

Posted by GitBox <gi...@apache.org>.
apache-mynewt-bot commented on PR #2879:
URL: https://github.com/apache/mynewt-core/pull/2879#issuecomment-1251660085

   
   <!-- style-bot -->
   
   ## Style check summary
   
   ### Our coding style is [here!](https://github.com/apache/mynewt-core/blob/master/CODING_STANDARDS.md)
   
   
   #### hw/drivers/i2s/i2s_nrfx/src/i2s_nrfx.c
   <details>
   
   ```diff
   @@ -236,7 +236,8 @@
                cfg->ratio = NRF_I2S_RATIO_48X;
                ratio = 48;
            } else if (cfg->sample_width == NRF_I2S_SWIDTH_32BIT || cfg->sample_width == NRF_I2S_SWIDTH_16BIT_IN32BIT ||
   -            cfg->sample_width == NRF_I2S_SWIDTH_24BIT_IN32BIT || cfg->sample_width == NRF_I2S_SWIDTH_8BIT_IN32BIT) {
   +                   cfg->sample_width == NRF_I2S_SWIDTH_24BIT_IN32BIT ||
   +                   cfg->sample_width == NRF_I2S_SWIDTH_8BIT_IN32BIT) {
                cfg->ratio = NRF_I2S_RATIO_64X;
                ratio = 64;
            } else {
   ```
   
   </details>
   
   #### hw/mcu/nordic/nrf5340/include/nrfx_config.h
   <details>
   
   ```diff
   @@ -227,755 +227,869 @@
    #define NRF_QDEC        NRF_QDEC0
    #define QDEC_IRQHandler QDEC0_IRQHandler
    
   -// <<< Use Configuration Wizard in Context Menu >>>\n
   -
   -// <h> nRF_Drivers
   -
   -// <e> NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver.
   -//==========================================================
   +/* <<< Use Configuration Wizard in Context Menu >>>\n */
   +
   +/* <h> nRF_Drivers */
   +
   +/*
   +   <e> NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver.
   +   ==========================================================
   + */
    #ifndef NRFX_CLOCK_ENABLED
    #define NRFX_CLOCK_ENABLED 1
    #endif
   -// <o> NRFX_CLOCK_CONFIG_LF_SRC  - LF clock source.
   -
   -// <0=> ULP
   -// <1=> RC
   -// <2=> XTAL
   -// <3=> Synth
   +/* <o> NRFX_CLOCK_CONFIG_LF_SRC  - LF clock source. */
   +
   +/*
   +   <0=> ULP
   +   <1=> RC
   +   <2=> XTAL
   +   <3=> Synth
   + */
    
    #ifndef NRFX_CLOCK_CONFIG_LF_SRC
    #define NRFX_CLOCK_CONFIG_LF_SRC 2
    #endif
    
   -// <q> NRFX_CLOCK_CONFIG_LF_CAL_ENABLED  - Enables LF Clock Calibration Support
   +/* <q> NRFX_CLOCK_CONFIG_LF_CAL_ENABLED  - Enables LF Clock Calibration Support */
    
    #ifndef NRFX_CLOCK_CONFIG_LF_CAL_ENABLED
    #define NRFX_CLOCK_CONFIG_LF_CAL_ENABLED 0
    #endif
    
   -// <o> NRFX_CLOCK_CONFIG_HFCLK192M_SRC  - HFCLK192M source.
   -
   -// <0=> HFINT
   -// <1=> HFXO
   +/* <o> NRFX_CLOCK_CONFIG_HFCLK192M_SRC  - HFCLK192M source. */
   +
   +/*
   +   <0=> HFINT
   +   <1=> HFXO
   + */
    
    #ifndef NRFX_CLOCK_CONFIG_HFCLK192M_SRC
    #define NRFX_CLOCK_CONFIG_HFCLK192M_SRC 1
    #endif
    
   -// <o> NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority.
   -
   -// <0=> 0 (highest)
   -// <1=> 1
   -// <2=> 2
   -// <3=> 3
   -// <4=> 4
   -// <5=> 5
   -// <6=> 6
   -// <7=> 7
   +/* <o> NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority. */
   +
   +/*
   +   <0=> 0 (highest)
   +   <1=> 1
   +   <2=> 2
   +   <3=> 3
   +   <4=> 4
   +   <5=> 5
   +   <6=> 6
   +   <7=> 7
   + */
    
    #ifndef NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY
    #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 7
    #endif
    
   -// <e> NRFX_CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module.
   -//==========================================================
   +/*
   +   <e> NRFX_CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module.
   +   ==========================================================
   + */
    #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED
    #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0
    #endif
   -// <o> NRFX_CLOCK_CONFIG_LOG_LEVEL  - Default severity level.
   -
   -// <0=> Off
   -// <1=> Error
   -// <2=> Warning
   -// <3=> Info
   -// <4=> Debug
   +/* <o> NRFX_CLOCK_CONFIG_LOG_LEVEL  - Default severity level. */
   +
   +/*
   +   <0=> Off
   +   <1=> Error
   +   <2=> Warning
   +   <3=> Info
   +   <4=> Debug
   + */
    
    #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL
    #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3
    #endif
    
   -// <o> NRFX_CLOCK_CONFIG_INFO_COLOR  - ANSI escape code prefix.
   -
   -// <0=> Default
   -// <1=> Black
   -// <2=> Red
   -// <3=> Green
   -// <4=> Yellow
   -// <5=> Blue
   -// <6=> Magenta
   -// <7=> Cyan
   -// <8=> White
   +/* <o> NRFX_CLOCK_CONFIG_INFO_COLOR  - ANSI escape code prefix. */
   +
   +/*
   +   <0=> Default
   +   <1=> Black
   +   <2=> Red
   +   <3=> Green
   +   <4=> Yellow
   +   <5=> Blue
   +   <6=> Magenta
   +   <7=> Cyan
   +   <8=> White
   + */
    
    #ifndef NRFX_CLOCK_CONFIG_INFO_COLOR
    #define NRFX_CLOCK_CONFIG_INFO_COLOR 0
    #endif
    
   -// <o> NRFX_CLOCK_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
   -
   -// <0=> Default
   -// <1=> Black
   -// <2=> Red
   -// <3=> Green
   -// <4=> Yellow
   -// <5=> Blue
   -// <6=> Magenta
   -// <7=> Cyan
   -// <8=> White
   +/* <o> NRFX_CLOCK_CONFIG_DEBUG_COLOR  - ANSI escape code prefix. */
   +
   +/*
   +   <0=> Default
   +   <1=> Black
   +   <2=> Red
   +   <3=> Green
   +   <4=> Yellow
   +   <5=> Blue
   +   <6=> Magenta
   +   <7=> Cyan
   +   <8=> White
   + */
    
    #ifndef NRFX_CLOCK_CONFIG_DEBUG_COLOR
    #define NRFX_CLOCK_CONFIG_DEBUG_COLOR 0
    #endif
    
   -// </e>
   -
   -// </e>
   -
   -// <e> NRFX_COMP_ENABLED - nrfx_comp - COMP peripheral driver
   -//==========================================================
   +/* </e> */
   +
   +/* </e> */
   +
   +/*
   +   <e> NRFX_COMP_ENABLED - nrfx_comp - COMP peripheral driver
   +   ==========================================================
   + */
    #ifndef NRFX_COMP_ENABLED
    #define NRFX_COMP_ENABLED 0
    #endif
    
   -// <o> NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority
   -
   -// <0=> 0 (highest)
   -// <1=> 1
   -// <2=> 2
   -// <3=> 3
   -// <4=> 4
   -// <5=> 5
   -// <6=> 6
   -// <7=> 7
   +/* <o> NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority */
   +
   +/*
   +   <0=> 0 (highest)
   +   <1=> 1
   +   <2=> 2
   +   <3=> 3
   +   <4=> 4
   +   <5=> 5
   +   <6=> 6
   +   <7=> 7
   + */
    
    #ifndef NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY
    #define NRFX_COMP_DEFAULT_CONFIG_IRQ_PRIORITY 7
    #endif
    
   -// <e> NRFX_COMP_CONFIG_LOG_ENABLED - Enables logging in the module.
   -//==========================================================
   +/*
   +   <e> NRFX_COMP_CONFIG_LOG_ENABLED - Enables logging in the module.
   +   ==========================================================
   + */
    #ifndef NRFX_COMP_CONFIG_LOG_ENABLED
    #define NRFX_COMP_CONFIG_LOG_ENABLED 0
    #endif
   -// <o> NRFX_COMP_CONFIG_LOG_LEVEL  - Default Severity level
   -
   -// <0=> Off
   -// <1=> Error
   -// <2=> Warning
   -// <3=> Info
   -// <4=> Debug
   +/* <o> NRFX_COMP_CONFIG_LOG_LEVEL  - Default Severity level */
   +
   +/*
   +   <0=> Off
   +   <1=> Error
   +   <2=> Warning
   +   <3=> Info
   +   <4=> Debug
   + */
    
    #ifndef NRFX_COMP_CONFIG_LOG_LEVEL
    #define NRFX_COMP_CONFIG_LOG_LEVEL 3
    #endif
    
   -// <o> NRFX_COMP_CONFIG_INFO_COLOR  - ANSI escape code prefix.
   -
   -// <0=> Default
   -// <1=> Black
   -// <2=> Red
   -// <3=> Green
   -// <4=> Yellow
   -// <5=> Blue
   -// <6=> Magenta
   -// <7=> Cyan
   -// <8=> White
   +/* <o> NRFX_COMP_CONFIG_INFO_COLOR  - ANSI escape code prefix. */
   +
   +/*
   +   <0=> Default
   +   <1=> Black
   +   <2=> Red
   +   <3=> Green
   +   <4=> Yellow
   +   <5=> Blue
   +   <6=> Magenta
   +   <7=> Cyan
   +   <8=> White
   + */
    
    #ifndef NRFX_COMP_CONFIG_INFO_COLOR
    #define NRFX_COMP_CONFIG_INFO_COLOR 0
    #endif
    
   -// <o> NRFX_COMP_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
   -
   -// <0=> Default
   -// <1=> Black
   -// <2=> Red
   -// <3=> Green
   -// <4=> Yellow
   -// <5=> Blue
   -// <6=> Magenta
   -// <7=> Cyan
   -// <8=> White
   +/* <o> NRFX_COMP_CONFIG_DEBUG_COLOR  - ANSI escape code prefix. */
   +
   +/*
   +   <0=> Default
   +   <1=> Black
   +   <2=> Red
   +   <3=> Green
   +   <4=> Yellow
   +   <5=> Blue
   +   <6=> Magenta
   +   <7=> Cyan
   +   <8=> White
   + */
    
    #ifndef NRFX_COMP_CONFIG_DEBUG_COLOR
    #define NRFX_COMP_CONFIG_DEBUG_COLOR 0
    #endif
    
   -// </e>
   -
   -// </e>
   -
   -// <e> NRFX_DPPI_ENABLED - nrfx_dppi - DPPI allocator.
   -//==========================================================
   +/* </e> */
   +
   +/* </e> */
   +
   +/*
   +   <e> NRFX_DPPI_ENABLED - nrfx_dppi - DPPI allocator.
   +   ==========================================================
   + */
    #ifndef NRFX_DPPI_ENABLED
    #define NRFX_DPPI_ENABLED 0
    #endif
   -// <e> NRFX_DPPI_CONFIG_LOG_ENABLED - Enables logging in the module.
   -//==========================================================
   +/*
   +   <e> NRFX_DPPI_CONFIG_LOG_ENABLED - Enables logging in the module.
   +   ==========================================================
   + */
    #ifndef NRFX_DPPI_CONFIG_LOG_ENABLED
    #define NRFX_DPPI_CONFIG_LOG_ENABLED 0
    #endif
   -// <o> NRFX_DPPI_CONFIG_LOG_LEVEL  - Default severity level.
   -
   -// <0=> Off
   -// <1=> Error
   -// <2=> Warning
   -// <3=> Info
   -// <4=> Debug
   +/* <o> NRFX_DPPI_CONFIG_LOG_LEVEL  - Default severity level. */
   +
   +/*
   +   <0=> Off
   +   <1=> Error
   +   <2=> Warning
   +   <3=> Info
   +   <4=> Debug
   + */
    
    #ifndef NRFX_DPPI_CONFIG_LOG_LEVEL
    #define NRFX_DPPI_CONFIG_LOG_LEVEL 3
    #endif
    
   -// <o> NRFX_DPPI_CONFIG_INFO_COLOR  - ANSI escape code prefix.
   -
   -// <0=> Default
   -// <1=> Black
   -// <2=> Red
   -// <3=> Green
   -// <4=> Yellow
   -// <5=> Blue
   -// <6=> Magenta
   -// <7=> Cyan
   -// <8=> White
   +/* <o> NRFX_DPPI_CONFIG_INFO_COLOR  - ANSI escape code prefix. */
   +
   +/*
   +   <0=> Default
   +   <1=> Black
   +   <2=> Red
   +   <3=> Green
   +   <4=> Yellow
   +   <5=> Blue
   +   <6=> Magenta
   +   <7=> Cyan
   +   <8=> White
   + */
    
    #ifndef NRFX_DPPI_CONFIG_INFO_COLOR
    #define NRFX_DPPI_CONFIG_INFO_COLOR 0
    #endif
    
   -// <o> NRFX_DPPI_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
   -
   -// <0=> Default
   -// <1=> Black
   -// <2=> Red
   -// <3=> Green
   -// <4=> Yellow
   -// <5=> Blue
   -// <6=> Magenta
   -// <7=> Cyan
   -// <8=> White
   +/* <o> NRFX_DPPI_CONFIG_DEBUG_COLOR  - ANSI escape code prefix. */
   +
   +/*
   +   <0=> Default
   +   <1=> Black
   +   <2=> Red
   +   <3=> Green
   +   <4=> Yellow
   +   <5=> Blue
   +   <6=> Magenta
   +   <7=> Cyan
   +   <8=> White
   + */
    
    #ifndef NRFX_DPPI_CONFIG_DEBUG_COLOR
    #define NRFX_DPPI_CONFIG_DEBUG_COLOR 0
    #endif
    
   -// </e>
   -
   -// </e>
   -
   -// <e> NRFX_EGU_ENABLED - nrfx_egu - EGU peripheral driver.
   -//==========================================================
   +/* </e> */
   +
   +/* </e> */
   +
   +/*
   +   <e> NRFX_EGU_ENABLED - nrfx_egu - EGU peripheral driver.
   +   ==========================================================
   + */
    #ifndef NRFX_EGU_ENABLED
    #define NRFX_EGU_ENABLED 0
    #endif
    
   -// <q> NRFX_EGU0_ENABLED  - Enable EGU0 instance.
   +/* <q> NRFX_EGU0_ENABLED  - Enable EGU0 instance. */
    
    #ifndef NRFX_EGU0_ENABLED
    #define NRFX_EGU0_ENABLED 0
    #endif
    
   -// <q> NRFX_EGU1_ENABLED  - Enable EGU1 instance.
   +/* <q> NRFX_EGU1_ENABLED  - Enable EGU1 instance. */
    
    #ifndef NRFX_EGU1_ENABLED
    #define NRFX_EGU1_ENABLED 0
    #endif
    
   -// <q> NRFX_EGU2_ENABLED  - Enable EGU2 instance.
   +/* <q> NRFX_EGU2_ENABLED  - Enable EGU2 instance. */
    
    #ifndef NRFX_EGU2_ENABLED
    #define NRFX_EGU2_ENABLED 0
    #endif
    
   -// <q> NRFX_EGU3_ENABLED  - Enable EGU3 instance.
   +/* <q> NRFX_EGU3_ENABLED  - Enable EGU3 instance. */
    
    #ifndef NRFX_EGU3_ENABLED
    #define NRFX_EGU3_ENABLED 0
    #endif
    
   -// <q> NRFX_EGU4_ENABLED  - Enable EGU4 instance.
   +/* <q> NRFX_EGU4_ENABLED  - Enable EGU4 instance. */
    
    #ifndef NRFX_EGU4_ENABLED
    #define NRFX_EGU4_ENABLED 0
    #endif
    
   -// <q> NRFX_EGU5_ENABLED  - Enable EGU5 instance.
   +/* <q> NRFX_EGU5_ENABLED  - Enable EGU5 instance. */
    
    #ifndef NRFX_EGU5_ENABLED
    #define NRFX_EGU5_ENABLED 0
    #endif
    
   -// <o> NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority.
   -
   -// <0=> 0 (highest)
   -// <1=> 1
   -// <2=> 2
   -// <3=> 3
   -// <4=> 4
   -// <5=> 5
   -// <6=> 6
   -// <7=> 7
   +/* <o> NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority. */
   +
   +/*
   +   <0=> 0 (highest)
   +   <1=> 1
   +   <2=> 2
   +   <3=> 3
   +   <4=> 4
   +   <5=> 5
   +   <6=> 6
   +   <7=> 7
   + */
    
    #ifndef NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY
    #define NRFX_EGU_DEFAULT_CONFIG_IRQ_PRIORITY 7
    #endif
    
   -// </e>
   -
   -// <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver.
   -//==========================================================
   +/* </e> */
   +
   +/*
   +   <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver.
   +   ==========================================================
   + */
    #ifndef NRFX_GPIOTE_ENABLED
    #define NRFX_GPIOTE_ENABLED 0
    #endif
   -// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins.
   +/* <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins. */
    #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
    #define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
    #endif
    
   -// <o> NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority.
   -
   -// <0=> 0 (highest)
   -// <1=> 1
   -// <2=> 2
   -// <3=> 3
   -// <4=> 4
   -// <5=> 5
   -// <6=> 6
   -// <7=> 7
   +/* <o> NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority. */
   +
   +/*
   +   <0=> 0 (highest)
   +   <1=> 1
   +   <2=> 2
   +   <3=> 3
   +   <4=> 4
   +   <5=> 5
   +   <6=> 6
   +   <7=> 7
   + */
    
    #ifndef NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY
    #define NRFX_GPIOTE_DEFAULT_CONFIG_IRQ_PRIORITY 7
    #endif
    
   -// <e> NRFX_GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module.
   -//==========================================================
   +/*
   +   <e> NRFX_GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module.
   +   ==========================================================
   + */
    #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED
    #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0
    #endif
   -// <o> NRFX_GPIOTE_CONFIG_LOG_LEVEL  - Default severity level.
   -
   -// <0=> Off
   -// <1=> Error
   -// <2=> Warning
   -// <3=> Info
   -// <4=> Debug
   +/* <o> NRFX_GPIOTE_CONFIG_LOG_LEVEL  - Default severity level. */
   +
   +/*
   +   <0=> Off
   +   <1=> Error
   +   <2=> Warning
   +   <3=> Info
   +   <4=> Debug
   + */
    
    #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL
    #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3
    #endif
    
   -// <o> NRFX_GPIOTE_CONFIG_INFO_COLOR  - ANSI escape code prefix.
   -
   -// <0=> Default
   -// <1=> Black
   -// <2=> Red
   -// <3=> Green
   -// <4=> Yellow
   -// <5=> Blue
   -// <6=> Magenta
   -// <7=> Cyan
   -// <8=> White
   +/* <o> NRFX_GPIOTE_CONFIG_INFO_COLOR  - ANSI escape code prefix. */
   +
   +/*
   +   <0=> Default
   +   <1=> Black
   +   <2=> Red
   +   <3=> Green
   +   <4=> Yellow
   +   <5=> Blue
   +   <6=> Magenta
   +   <7=> Cyan
   +   <8=> White
   + */
    
    #ifndef NRFX_GPIOTE_CONFIG_INFO_COLOR
    #define NRFX_GPIOTE_CONFIG_INFO_COLOR 0
    #endif
    
   -// <o> NRFX_GPIOTE_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
   -
   -// <0=> Default
   -// <1=> Black
   -// <2=> Red
   -// <3=> Green
   -// <4=> Yellow
   -// <5=> Blue
   -// <6=> Magenta
   -// <7=> Cyan
   -// <8=> White
   +/* <o> NRFX_GPIOTE_CONFIG_DEBUG_COLOR  - ANSI escape code prefix. */
   +
   +/*
   +   <0=> Default
   +   <1=> Black
   +   <2=> Red
   +   <3=> Green
   +   <4=> Yellow
   +   <5=> Blue
   +   <6=> Magenta
   +   <7=> Cyan
   +   <8=> White
   + */
    
    #ifndef NRFX_GPIOTE_CONFIG_DEBUG_COLOR
    #define NRFX_GPIOTE_CONFIG_DEBUG_COLOR 0
    #endif
    
   -// </e>
   -
   -// </e>
   -
   -// <e> NRFX_I2S_ENABLED - nrfx_i2s - I2S peripheral driver.
   -//==========================================================
   +/* </e> */
   +
   +/* </e> */
   +
   +/*
   +   <e> NRFX_I2S_ENABLED - nrfx_i2s - I2S peripheral driver.
   +   ==========================================================
   + */
    #ifndef NRFX_I2S_ENABLED
    #define NRFX_I2S_ENABLED 1
    #endif
    
   -// <o> NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority.
   -
   -// <0=> 0 (highest)
   -// <1=> 1
   -// <2=> 2
   -// <3=> 3
   -// <4=> 4
   -// <5=> 5
   -// <6=> 6
   -// <7=> 7
   +/* <o> NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority. */
   +
   +/*
   +   <0=> 0 (highest)
   +   <1=> 1
   +   <2=> 2
   +   <3=> 3
   +   <4=> 4
   +   <5=> 5
   +   <6=> 6
   +   <7=> 7
   + */
    
    #ifndef NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY
    #define NRFX_I2S_DEFAULT_CONFIG_IRQ_PRIORITY 7
    #endif
    
   -// <e> NRFX_I2S_CONFIG_LOG_ENABLED - Enables logging in the module.
   -//==========================================================
   +/*
   +   <e> NRFX_I2S_CONFIG_LOG_ENABLED - Enables logging in the module.
   +   ==========================================================
   + */
    #ifndef NRFX_I2S_CONFIG_LOG_ENABLED
    #define NRFX_I2S_CONFIG_LOG_ENABLED 0
    #endif
   -// <o> NRFX_I2S_CONFIG_LOG_LEVEL  - Default severity level.
   -
   -// <0=> Off
   -// <1=> Error
   -// <2=> Warning
   -// <3=> Info
   -// <4=> Debug
   +/* <o> NRFX_I2S_CONFIG_LOG_LEVEL  - Default severity level. */
   +
   +/*
   +   <0=> Off
   +   <1=> Error
   +   <2=> Warning
   +   <3=> Info
   +   <4=> Debug
   + */
    
    #ifndef NRFX_I2S_CONFIG_LOG_LEVEL
    #define NRFX_I2S_CONFIG_LOG_LEVEL 3
    #endif
    
   -// <o> NRFX_I2S_CONFIG_INFO_COLOR  - ANSI escape code prefix.
   -
   -// <0=> Default
   -// <1=> Black
   -// <2=> Red
   -// <3=> Green
   -// <4=> Yellow
   -// <5=> Blue
   -// <6=> Magenta
   -// <7=> Cyan
   -// <8=> White
   +/* <o> NRFX_I2S_CONFIG_INFO_COLOR  - ANSI escape code prefix. */
   +
   +/*
   +   <0=> Default
   +   <1=> Black
   +   <2=> Red
   +   <3=> Green
   +   <4=> Yellow
   +   <5=> Blue
   +   <6=> Magenta
   +   <7=> Cyan
   +   <8=> White
   + */
    
    #ifndef NRFX_I2S_CONFIG_INFO_COLOR
    #define NRFX_I2S_CONFIG_INFO_COLOR 0
    #endif
    
   -// <o> NRFX_I2S_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
   -
   -// <0=> Default
   -// <1=> Black
   -// <2=> Red
   -// <3=> Green
   -// <4=> Yellow
   -// <5=> Blue
   -// <6=> Magenta
   -// <7=> Cyan
   -// <8=> White
   +/* <o> NRFX_I2S_CONFIG_DEBUG_COLOR  - ANSI escape code prefix. */
   +
   +/*
   +   <0=> Default
   +   <1=> Black
   +   <2=> Red
   +   <3=> Green
   +   <4=> Yellow
   +   <5=> Blue
   +   <6=> Magenta
   +   <7=> Cyan
   +   <8=> White
   + */
    
    #ifndef NRFX_I2S_CONFIG_DEBUG_COLOR
    #define NRFX_I2S_CONFIG_DEBUG_COLOR 0
    #endif
    
   -// </e>
   -
   -// </e>
   -
   -// <e> NRFX_IPC_ENABLED - nrfx_ipc - IPC peripheral driver
   -//==========================================================
   +/* </e> */
   +
   +/* </e> */
   +
   +/*
   +   <e> NRFX_IPC_ENABLED - nrfx_ipc - IPC peripheral driver
   +   ==========================================================
   + */
    #ifndef NRFX_IPC_ENABLED
    #define NRFX_IPC_ENABLED 0
    #endif
    
   -// </e>
   -
   -// <e> NRFX_LPCOMP_ENABLED - nrfx_lpcomp - LPCOMP peripheral driver
   -//==========================================================
   +/* </e> */
   +
   +/*
   +   <e> NRFX_LPCOMP_ENABLED - nrfx_lpcomp - LPCOMP peripheral driver
   +   ==========================================================
   + */
    #ifndef NRFX_LPCOMP_ENABLED
    #define NRFX_LPCOMP_ENABLED 0
    #endif
    
   -// <o> NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority
   -
   -// <0=> 0 (highest)
   -// <1=> 1
   -// <2=> 2
   -// <3=> 3
   -// <4=> 4
   -// <5=> 5
   -// <6=> 6
   -// <7=> 7
   +/* <o> NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority */
   +
   +/*
   +   <0=> 0 (highest)
   +   <1=> 1
   +   <2=> 2
   +   <3=> 3
   +   <4=> 4
   +   <5=> 5
   +   <6=> 6
   +   <7=> 7
   + */
    
    #ifndef NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY
    #define NRFX_LPCOMP_DEFAULT_CONFIG_IRQ_PRIORITY 7
    #endif
    
   -// <e> NRFX_LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module.
   -//==========================================================
   +/*
   +   <e> NRFX_LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module.
   +   ==========================================================
   + */
    #ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED
    #define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0
    #endif
   -// <o> NRFX_LPCOMP_CONFIG_LOG_LEVEL  - Default Severity level
   -
   -// <0=> Off
   -// <1=> Error
   -// <2=> Warning
   -// <3=> Info
   -// <4=> Debug
   +/* <o> NRFX_LPCOMP_CONFIG_LOG_LEVEL  - Default Severity level */
   +
   +/*
   +   <0=> Off
   +   <1=> Error
   +   <2=> Warning
   +   <3=> Info
   +   <4=> Debug
   + */
    
    #ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL
    #define NRFX_LPCOMP_CONFIG_LOG_LEVEL 3
    #endif
    
   -// <o> NRFX_LPCOMP_CONFIG_INFO_COLOR  - ANSI escape code prefix.
   -
   -// <0=> Default
   -// <1=> Black
   -// <2=> Red
   -// <3=> Green
   -// <4=> Yellow
   -// <5=> Blue
   -// <6=> Magenta
   -// <7=> Cyan
   -// <8=> White
   +/* <o> NRFX_LPCOMP_CONFIG_INFO_COLOR  - ANSI escape code prefix. */
   +
   +/*
   +   <0=> Default
   +   <1=> Black
   +   <2=> Red
   +   <3=> Green
   +   <4=> Yellow
   +   <5=> Blue
   +   <6=> Magenta
   +   <7=> Cyan
   +   <8=> White
   + */
    
    #ifndef NRFX_LPCOMP_CONFIG_INFO_COLOR
    #define NRFX_LPCOMP_CONFIG_INFO_COLOR 0
    #endif
    
   -// <o> NRFX_LPCOMP_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
   -
   -// <0=> Default
   -// <1=> Black
   -// <2=> Red
   -// <3=> Green
   -// <4=> Yellow
   -// <5=> Blue
   -// <6=> Magenta
   -// <7=> Cyan
   -// <8=> White
   +/* <o> NRFX_LPCOMP_CONFIG_DEBUG_COLOR  - ANSI escape code prefix. */
   +
   +/*
   +   <0=> Default
   +   <1=> Black
   +   <2=> Red
   +   <3=> Green
   +   <4=> Yellow
   +   <5=> Blue
   +   <6=> Magenta
   +   <7=> Cyan
   +   <8=> White
   + */
    
    #ifndef NRFX_LPCOMP_CONFIG_DEBUG_COLOR
    #define NRFX_LPCOMP_CONFIG_DEBUG_COLOR 0
    #endif
    
   -// </e>
   -
   -// </e>
   -
   -// <e> NRFX_NFCT_ENABLED - nrfx_nfct - NFCT peripheral driver
   -//==========================================================
   +/* </e> */
   +
   +/* </e> */
   +
   +/*
   +   <e> NRFX_NFCT_ENABLED - nrfx_nfct - NFCT peripheral driver
   +   ==========================================================
   + */
    #ifndef NRFX_NFCT_ENABLED
    #define NRFX_NFCT_ENABLED 0
    #endif
   -// <o> NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority
   -
   -// <0=> 0 (highest)
   -// <1=> 1
   -// <2=> 2
   -// <3=> 3
   -// <4=> 4
   -// <5=> 5
   -// <6=> 6
   -// <7=> 7
   +/* <o> NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority */
   +
   +/*
   +   <0=> 0 (highest)
   +   <1=> 1
   +   <2=> 2
   +   <3=> 3
   +   <4=> 4
   +   <5=> 5
   +   <6=> 6
   +   <7=> 7
   + */
    
    #ifndef NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY
    #define NRFX_NFCT_DEFAULT_CONFIG_IRQ_PRIORITY 7
    #endif
    
   -// <o> NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID - Timer instance used for workarounds in the driver.
   -
   -// <0=> 0
   -// <1=> 1
   -// <2=> 2
   +/* <o> NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID - Timer instance used for workarounds in the driver. */
   +
   +/*
   +   <0=> 0
   +   <1=> 1
   +   <2=> 2
   + */
    
    #ifndef NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID
    #define NRFX_NFCT_CONFIG_TIMER_INSTANCE_ID 2
    #endif
    
   -// <e> NRFX_NFCT_CONFIG_LOG_ENABLED - Enables logging in the module.
   -//==========================================================
   +/*
   +   <e> NRFX_NFCT_CONFIG_LOG_ENABLED - Enables logging in the module.
   +   ==========================================================
   + */
    #ifndef NRFX_NFCT_CONFIG_LOG_ENABLED
    #define NRFX_NFCT_CONFIG_LOG_ENABLED 0
    #endif
   -// <o> NRFX_NFCT_CONFIG_LOG_LEVEL  - Default Severity level
   -
   -// <0=> Off
   -// <1=> Error
   -// <2=> Warning
   -// <3=> Info
   -// <4=> Debug
   +/* <o> NRFX_NFCT_CONFIG_LOG_LEVEL  - Default Severity level */
   +
   +/*
   +   <0=> Off
   +   <1=> Error
   +   <2=> Warning
   +   <3=> Info
   +   <4=> Debug
   + */
    
    #ifndef NRFX_NFCT_CONFIG_LOG_LEVEL
    #define NRFX_NFCT_CONFIG_LOG_LEVEL 3
    #endif
    
   -// <o> NRFX_NFCT_CONFIG_INFO_COLOR  - ANSI escape code prefix.
   -
   -// <0=> Default
   -// <1=> Black
   -// <2=> Red
   -// <3=> Green
   -// <4=> Yellow
   -// <5=> Blue
   -// <6=> Magenta
   -// <7=> Cyan
   -// <8=> White
   +/* <o> NRFX_NFCT_CONFIG_INFO_COLOR  - ANSI escape code prefix. */
   +
   +/*
   +   <0=> Default
   +   <1=> Black
   +   <2=> Red
   +   <3=> Green
   +   <4=> Yellow
   +   <5=> Blue
   +   <6=> Magenta
   +   <7=> Cyan
   +   <8=> White
   + */
    
    #ifndef NRFX_NFCT_CONFIG_INFO_COLOR
    #define NRFX_NFCT_CONFIG_INFO_COLOR 0
    #endif
    
   -// <o> NRFX_NFCT_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
   -
   -// <0=> Default
   -// <1=> Black
   -// <2=> Red
   -// <3=> Green
   -// <4=> Yellow
   -// <5=> Blue
   -// <6=> Magenta
   -// <7=> Cyan
   -// <8=> White
   +/* <o> NRFX_NFCT_CONFIG_DEBUG_COLOR  - ANSI escape code prefix. */
   +
   +/*
   +   <0=> Default
   +   <1=> Black
   +   <2=> Red
   +   <3=> Green
   +   <4=> Yellow
   +   <5=> Blue
   +   <6=> Magenta
   +   <7=> Cyan
   +   <8=> White
   + */
    
    #ifndef NRFX_NFCT_CONFIG_DEBUG_COLOR
    #define NRFX_NFCT_CONFIG_DEBUG_COLOR 0
    #endif
    
   -// </e>
   -
   -// </e>
   -
   -// <e> NRFX_NVMC_ENABLED - nrfx_nvmc - NVMC peripheral driver
   -//==========================================================
   +/* </e> */
   +
   +/* </e> */
   +
   +/*
   +   <e> NRFX_NVMC_ENABLED - nrfx_nvmc - NVMC peripheral driver
   +   ==========================================================
   + */
    #ifndef NRFX_NVMC_ENABLED
    #define NRFX_NVMC_ENABLED 0
    #endif
    
   -// </e>
   -
   -// <e> NRFX_PDM_ENABLED - nrfx_pdm - PDM peripheral driver.
   -//==========================================================
   +/* </e> */
   +
   +/*
   +   <e> NRFX_PDM_ENABLED - nrfx_pdm - PDM peripheral driver.
   +   ==========================================================
   + */
    #ifndef NRFX_PDM_ENABLED
    #define NRFX_PDM_ENABLED 0
    #endif
    
   -// <o> NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority.
   -
   -// <0=> 0 (highest)
   -// <1=> 1
   -// <2=> 2
   -// <3=> 3
   -// <4=> 4
   -// <5=> 5
   -// <6=> 6
   -// <7=> 7
   +/* <o> NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority. */
   +
   +/*
   +   <0=> 0 (highest)
   +   <1=> 1
   +   <2=> 2
   +   <3=> 3
   +   <4=> 4
   +   <5=> 5
   +   <6=> 6
   +   <7=> 7
   + */
    
    #ifndef NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY
    #define NRFX_PDM_DEFAULT_CONFIG_IRQ_PRIORITY 7
    #endif
    
   -// <e> NRFX_PDM_CONFIG_LOG_ENABLED - Enables logging in the module.
   -//==========================================================
   +/*
   +   <e> NRFX_PDM_CONFIG_LOG_ENABLED - Enables logging in the module.
   +   ==========================================================
   + */
    #ifndef NRFX_PDM_CONFIG_LOG_ENABLED
    #define NRFX_PDM_CONFIG_LOG_ENABLED 0
    #endif
   -// <o> NRFX_PDM_CONFIG_LOG_LEVEL  - Default severity level.
   -
   -// <0=> Off
   -// <1=> Error
   -// <2=> Warning
   -// <3=> Info
   -// <4=> Debug
   +/* <o> NRFX_PDM_CONFIG_LOG_LEVEL  - Default severity level. */
   +
   +/*
   +   <0=> Off
   +   <1=> Error
   +   <2=> Warning
   +   <3=> Info
   +   <4=> Debug
   + */
    
    #ifndef NRFX_PDM_CONFIG_LOG_LEVEL
    #define NRFX_PDM_CONFIG_LOG_LEVEL 3
    #endif
    
   -// <o> NRFX_PDM_CONFIG_INFO_COLOR  - ANSI escape code prefix.
   -
   -// <0=> Default
   -// <1=> Black
   -// <2=> Red
   -// <3=> Green
   -// <4=> Yellow
   -// <5=> Blue
   -// <6=> Magenta
   -// <7=> Cyan
   -// <8=> White
   +/* <o> NRFX_PDM_CONFIG_INFO_COLOR  - ANSI escape code prefix. */
   +
   +/*
   +   <0=> Default
   +   <1=> Black
   +   <2=> Red
   +   <3=> Green
   +   <4=> Yellow
   +   <5=> Blue
   +   <6=> Magenta
   +   <7=> Cyan
   +   <8=> White
   + */
    
    #ifndef NRFX_PDM_CONFIG_INFO_COLOR
    #define NRFX_PDM_CONFIG_INFO_COLOR 0
    #endif
    
   -// <o> NRFX_PDM_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
   -
   -// <0=> Default
   -// <1=> Black
   -// <2=> Red
   -// <3=> Green
   -// <4=> Yellow
   -// <5=> Blue
   -// <6=> Magenta
   -// <7=> Cyan
   -// <8=> White
   +/* <o> NRFX_PDM_CONFIG_DEBUG_COLOR  - ANSI escape code prefix. */
   +
   +/*
   +   <0=> Default
   +   <1=> Black
   +   <2=> Red
   +   <3=> Green
   +   <4=> Yellow
   +   <5=> Blue
   +   <6=> Magenta
   +   <7=> Cyan
   +   <8=> White
   + */
    
    #ifndef NRFX_PDM_CONFIG_DEBUG_COLOR
    #define NRFX_PDM_CONFIG_DEBUG_COLOR 0
    #endif
    
   -// </e>
   -
   -// </e>
   -
   -// <e> NRFX_POWER_ENABLED - nrfx_power - POWER peripheral driver.
   -//==========================================================
   +/* </e> */
   +
   +/* </e> */
   +
   +/*
   +   <e> NRFX_POWER_ENABLED - nrfx_power - POWER peripheral driver.
   +   ==========================================================
   + */
    #ifndef NRFX_POWER_ENABLED
    #define NRFX_POWER_ENABLED 0
    #endif
   -// <o> NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority.
   -
   -// <0=> 0 (highest)
   -// <1=> 1
   -// <2=> 2
   -// <3=> 3
   -// <4=> 4
   -// <5=> 5
   -// <6=> 6
   -// <7=> 7
   +/* <o> NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority. */
   +
   +/*
   +   <0=> 0 (highest)
   +   <1=> 1
   +   <2=> 2
   +   <3=> 3
   +   <4=> 4
   +   <5=> 5
   +   <6=> 6
   +   <7=> 7
   + */
    
    #ifndef NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY
    #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY 7
    #endif
    
   -// </e>
   -
   -// <e> NRFX_PRS_ENABLED - nrfx_prs - Peripheral Resource Sharing (PRS) module.
   -//==========================================================
   +/* </e> */
   +
   +/*
   +   <e> NRFX_PRS_ENABLED - nrfx_prs - Peripheral Resource Sharing (PRS) module.
   +   ==========================================================
   + */
    #ifndef NRFX_PRS_ENABLED
    #define NRFX_PRS_ENABLED 0
    #endif
   -// <q> NRFX_PRS_BOX_0_ENABLED  - Enables box 0 in the module.
   +/* <q> NRFX_PRS_BOX_0_ENABLED  - Enables box 0 in the module. */
    
    
    #ifndef NRFX_PRS_BOX_0_ENABLED
    #define NRFX_PRS_BOX_0_ENABLED 0
    #endif
    
   -// <q> NRFX_PRS_BOX_1_ENABLED  - Enables box 1 in the module.
   +/* <q> NRFX_PRS_BOX_1_ENABLED  - Enables box 1 in the module. */
    
    
    #ifndef NRFX_PRS_BOX_1_ENABLED
    #define NRFX_PRS_BOX_1_ENABLED 0
    #endif
    
   -// <q> NRFX_PRS_BOX_2_ENABLED  - Enables box 2 in the module.
   +/* <q> NRFX_PRS_BOX_2_ENABLED  - Enables box 2 in the module. */
    
    
    #ifndef NRFX_PRS_BOX_2_ENABLED
    #define NRFX_PRS_BOX_2_ENABLED 0
    #endif
    
   -// <q> NRFX_PRS_BOX_3_ENABLED  - Enables box 3 in the module.
   +/* <q> NRFX_PRS_BOX_3_ENABLED  - Enables box 3 in the module. */
    
    
    #ifndef NRFX_PRS_BOX_3_ENABLED
    #define NRFX_PRS_BOX_3_ENABLED 0
    #endif
    
   -// <q> NRFX_PRS_BOX_4_ENABLED  - Enables box 4 in the module.
   +/* <q> NRFX_PRS_BOX_4_ENABLED  - Enables box 4 in the module. */
    
    
    #ifndef NRFX_PRS_BOX_4_ENABLED
   ```
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-core] kasjer merged pull request #2879: i2s_nrfx: Add Audio clock support

Posted by GitBox <gi...@apache.org>.
kasjer merged PR #2879:
URL: https://github.com/apache/mynewt-core/pull/2879


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org