├── .cproject
├── .gitignore
├── .mxproject
├── .project
├── Drivers
├── CMSIS
│ ├── Device
│ │ └── ST
│ │ │ └── STM32L4xx
│ │ │ └── Include
│ │ │ ├── stm32l496xx.h
│ │ │ ├── stm32l4xx.h
│ │ │ └── system_stm32l4xx.h
│ ├── Include
│ │ ├── cmsis_armcc.h
│ │ ├── cmsis_armclang.h
│ │ ├── cmsis_compiler.h
│ │ ├── cmsis_gcc.h
│ │ ├── cmsis_iccarm.h
│ │ ├── cmsis_version.h
│ │ ├── core_armv8mbl.h
│ │ ├── core_armv8mml.h
│ │ ├── core_cm0.h
│ │ ├── core_cm0plus.h
│ │ ├── core_cm1.h
│ │ ├── core_cm23.h
│ │ ├── core_cm3.h
│ │ ├── core_cm33.h
│ │ ├── core_cm4.h
│ │ ├── core_cm7.h
│ │ ├── core_sc000.h
│ │ ├── core_sc300.h
│ │ ├── mpu_armv7.h
│ │ ├── mpu_armv8.h
│ │ └── tz_context.h
│ └── Source
│ │ ├── CommonTables
│ │ ├── arm_common_tables.c
│ │ └── arm_const_structs.c
│ │ ├── ComplexMathFunctions
│ │ ├── arm_cmplx_conj_f32.c
│ │ ├── arm_cmplx_conj_q15.c
│ │ ├── arm_cmplx_conj_q31.c
│ │ ├── arm_cmplx_dot_prod_f32.c
│ │ ├── arm_cmplx_dot_prod_q15.c
│ │ ├── arm_cmplx_dot_prod_q31.c
│ │ ├── arm_cmplx_mag_f32.c
│ │ ├── arm_cmplx_mag_q15.c
│ │ ├── arm_cmplx_mag_q31.c
│ │ ├── arm_cmplx_mag_squared_f32.c
│ │ ├── arm_cmplx_mag_squared_q15.c
│ │ ├── arm_cmplx_mag_squared_q31.c
│ │ ├── arm_cmplx_mult_cmplx_f32.c
│ │ ├── arm_cmplx_mult_cmplx_q15.c
│ │ ├── arm_cmplx_mult_cmplx_q31.c
│ │ ├── arm_cmplx_mult_real_f32.c
│ │ ├── arm_cmplx_mult_real_q15.c
│ │ └── arm_cmplx_mult_real_q31.c
│ │ ├── FilteringFunctions
│ │ ├── arm_fir_decimate_f32.c
│ │ ├── arm_fir_decimate_fast_q15.c
│ │ ├── arm_fir_decimate_fast_q31.c
│ │ ├── arm_fir_decimate_init_f32.c
│ │ ├── arm_fir_decimate_init_q15.c
│ │ ├── arm_fir_decimate_init_q31.c
│ │ ├── arm_fir_decimate_q15.c
│ │ ├── arm_fir_decimate_q31.c
│ │ ├── arm_fir_f32.c
│ │ ├── arm_fir_fast_q15.c
│ │ ├── arm_fir_fast_q31.c
│ │ ├── arm_fir_init_f32.c
│ │ ├── arm_fir_init_q15.c
│ │ ├── arm_fir_init_q31.c
│ │ ├── arm_fir_init_q7.c
│ │ ├── arm_fir_interpolate_f32.c
│ │ ├── arm_fir_interpolate_init_f32.c
│ │ ├── arm_fir_interpolate_init_q15.c
│ │ ├── arm_fir_interpolate_init_q31.c
│ │ ├── arm_fir_interpolate_q15.c
│ │ ├── arm_fir_interpolate_q31.c
│ │ ├── arm_fir_lattice_f32.c
│ │ ├── arm_fir_lattice_init_f32.c
│ │ ├── arm_fir_lattice_init_q15.c
│ │ ├── arm_fir_lattice_init_q31.c
│ │ ├── arm_fir_lattice_q15.c
│ │ ├── arm_fir_lattice_q31.c
│ │ ├── arm_fir_q15.c
│ │ ├── arm_fir_q31.c
│ │ ├── arm_fir_q7.c
│ │ ├── arm_fir_sparse_f32.c
│ │ ├── arm_fir_sparse_init_f32.c
│ │ ├── arm_fir_sparse_init_q15.c
│ │ ├── arm_fir_sparse_init_q31.c
│ │ ├── arm_fir_sparse_init_q7.c
│ │ ├── arm_fir_sparse_q15.c
│ │ ├── arm_fir_sparse_q31.c
│ │ └── arm_fir_sparse_q7.c
│ │ ├── StatisticsFunctions
│ │ ├── arm_max_f32.c
│ │ ├── arm_max_q15.c
│ │ ├── arm_max_q31.c
│ │ ├── arm_max_q7.c
│ │ ├── arm_mean_f32.c
│ │ ├── arm_mean_q15.c
│ │ ├── arm_mean_q31.c
│ │ ├── arm_mean_q7.c
│ │ ├── arm_min_f32.c
│ │ ├── arm_min_q15.c
│ │ ├── arm_min_q31.c
│ │ ├── arm_min_q7.c
│ │ ├── arm_power_f32.c
│ │ ├── arm_power_q15.c
│ │ ├── arm_power_q31.c
│ │ ├── arm_power_q7.c
│ │ ├── arm_rms_f32.c
│ │ ├── arm_rms_q15.c
│ │ ├── arm_rms_q31.c
│ │ ├── arm_std_f32.c
│ │ ├── arm_std_q15.c
│ │ ├── arm_std_q31.c
│ │ ├── arm_var_f32.c
│ │ ├── arm_var_q15.c
│ │ └── arm_var_q31.c
│ │ ├── SupportFunctions
│ │ ├── arm_copy_f32.c
│ │ ├── arm_copy_q15.c
│ │ ├── arm_copy_q31.c
│ │ ├── arm_copy_q7.c
│ │ ├── arm_fill_f32.c
│ │ ├── arm_fill_q15.c
│ │ ├── arm_fill_q31.c
│ │ ├── arm_fill_q7.c
│ │ ├── arm_float_to_q15.c
│ │ ├── arm_float_to_q31.c
│ │ ├── arm_float_to_q7.c
│ │ ├── arm_q15_to_float.c
│ │ ├── arm_q15_to_q31.c
│ │ ├── arm_q15_to_q7.c
│ │ ├── arm_q31_to_float.c
│ │ ├── arm_q31_to_q15.c
│ │ ├── arm_q31_to_q7.c
│ │ ├── arm_q7_to_float.c
│ │ ├── arm_q7_to_q15.c
│ │ └── arm_q7_to_q31.c
│ │ └── TransformFunctions
│ │ ├── arm_bitreversal.c
│ │ ├── arm_bitreversal2.S
│ │ ├── arm_cfft_f32.c
│ │ ├── arm_cfft_q15.c
│ │ ├── arm_cfft_q31.c
│ │ ├── arm_cfft_radix2_f32.c
│ │ ├── arm_cfft_radix2_init_f32.c
│ │ ├── arm_cfft_radix2_init_q15.c
│ │ ├── arm_cfft_radix2_init_q31.c
│ │ ├── arm_cfft_radix2_q15.c
│ │ ├── arm_cfft_radix2_q31.c
│ │ ├── arm_cfft_radix4_f32.c
│ │ ├── arm_cfft_radix4_init_f32.c
│ │ ├── arm_cfft_radix4_init_q15.c
│ │ ├── arm_cfft_radix4_init_q31.c
│ │ ├── arm_cfft_radix4_q15.c
│ │ ├── arm_cfft_radix4_q31.c
│ │ ├── arm_cfft_radix8_f32.c
│ │ ├── arm_dct4_f32.c
│ │ ├── arm_dct4_init_f32.c
│ │ ├── arm_dct4_init_q15.c
│ │ ├── arm_dct4_init_q31.c
│ │ ├── arm_dct4_q15.c
│ │ ├── arm_dct4_q31.c
│ │ ├── arm_rfft_f32.c
│ │ ├── arm_rfft_fast_f32.c
│ │ ├── arm_rfft_fast_init_f32.c
│ │ ├── arm_rfft_init_f32.c
│ │ ├── arm_rfft_init_q15.c
│ │ ├── arm_rfft_init_q31.c
│ │ ├── arm_rfft_q15.c
│ │ └── arm_rfft_q31.c
└── STM32L4xx_HAL_Driver
│ ├── Inc
│ ├── Legacy
│ │ └── stm32_hal_legacy.h
│ ├── stm32l4xx_hal.h
│ ├── stm32l4xx_hal_adc.h
│ ├── stm32l4xx_hal_adc_ex.h
│ ├── stm32l4xx_hal_can.h
│ ├── stm32l4xx_hal_cortex.h
│ ├── stm32l4xx_hal_def.h
│ ├── stm32l4xx_hal_dfsdm.h
│ ├── stm32l4xx_hal_dma.h
│ ├── stm32l4xx_hal_dma_ex.h
│ ├── stm32l4xx_hal_exti.h
│ ├── stm32l4xx_hal_flash.h
│ ├── stm32l4xx_hal_flash_ex.h
│ ├── stm32l4xx_hal_flash_ramfunc.h
│ ├── stm32l4xx_hal_gpio.h
│ ├── stm32l4xx_hal_gpio_ex.h
│ ├── stm32l4xx_hal_i2c.h
│ ├── stm32l4xx_hal_i2c_ex.h
│ ├── stm32l4xx_hal_iwdg.h
│ ├── stm32l4xx_hal_pwr.h
│ ├── stm32l4xx_hal_pwr_ex.h
│ ├── stm32l4xx_hal_rcc.h
│ ├── stm32l4xx_hal_rcc_ex.h
│ ├── stm32l4xx_hal_rng.h
│ ├── stm32l4xx_hal_tim.h
│ ├── stm32l4xx_hal_tim_ex.h
│ ├── stm32l4xx_ll_adc.h
│ ├── stm32l4xx_ll_bus.h
│ ├── stm32l4xx_ll_cortex.h
│ ├── stm32l4xx_ll_crs.h
│ ├── stm32l4xx_ll_dac.h
│ ├── stm32l4xx_ll_dma.h
│ ├── stm32l4xx_ll_dmamux.h
│ ├── stm32l4xx_ll_exti.h
│ ├── stm32l4xx_ll_gpio.h
│ ├── stm32l4xx_ll_pwr.h
│ ├── stm32l4xx_ll_rcc.h
│ ├── stm32l4xx_ll_system.h
│ ├── stm32l4xx_ll_usart.h
│ └── stm32l4xx_ll_utils.h
│ └── Src
│ ├── stm32l4xx_hal.c
│ ├── stm32l4xx_hal_adc.c
│ ├── stm32l4xx_hal_adc_ex.c
│ ├── stm32l4xx_hal_can.c
│ ├── stm32l4xx_hal_cortex.c
│ ├── stm32l4xx_hal_dfsdm.c
│ ├── stm32l4xx_hal_dma.c
│ ├── stm32l4xx_hal_dma_ex.c
│ ├── stm32l4xx_hal_exti.c
│ ├── stm32l4xx_hal_flash.c
│ ├── stm32l4xx_hal_flash_ex.c
│ ├── stm32l4xx_hal_flash_ramfunc.c
│ ├── stm32l4xx_hal_gpio.c
│ ├── stm32l4xx_hal_i2c.c
│ ├── stm32l4xx_hal_i2c_ex.c
│ ├── stm32l4xx_hal_iwdg.c
│ ├── stm32l4xx_hal_pwr.c
│ ├── stm32l4xx_hal_pwr_ex.c
│ ├── stm32l4xx_hal_rcc.c
│ ├── stm32l4xx_hal_rcc_ex.c
│ ├── stm32l4xx_hal_rng.c
│ ├── stm32l4xx_hal_tim.c
│ ├── stm32l4xx_hal_tim_ex.c
│ ├── stm32l4xx_ll_dac.c
│ ├── stm32l4xx_ll_dma.c
│ ├── stm32l4xx_ll_exti.c
│ ├── stm32l4xx_ll_gpio.c
│ ├── stm32l4xx_ll_rcc.c
│ ├── stm32l4xx_ll_usart.c
│ └── stm32l4xx_ll_utils.c
├── Inc
├── adc.h
├── arm_common_tables.h
├── arm_const_structs.h
├── arm_math.h
├── buf_stack.h
├── can.h
├── can_cmd.h
├── config.h
├── dac.h
├── dfsdm.h
├── din.h
├── dma.h
├── eeprom.h
├── eeprom2.h
├── fit_processing.h
├── flash_interface.h
├── frame_stack.h
├── gpio.h
├── iwdg.h
├── main.h
├── rng.h
├── stm32_assert.h
├── stm32l4xx_hal_conf.h
├── stm32l4xx_it.h
├── sys.h
├── tim.h
├── uart.h
├── uart1_protocol.h
├── usart.h
└── wave_example.h
├── STM32L496RG_FLASH.ld
├── Src
├── adc.c
├── buf_stack.c
├── can.c
├── can_cmd.c
├── can_tx_stack.c
├── can_tx_stack.h
├── dac.c
├── dfsdm.c
├── din.c
├── dma.c
├── eeprom.c
├── eeprom2.c
├── fit_processing.c
├── flash_interface.c
├── frame_stack.c
├── gpio.c
├── iwdg.c
├── main.c
├── rng.c
├── stm32l4xx_hal_msp.c
├── stm32l4xx_it.c
├── sys.c
├── syscalls.c
├── system_stm32l4xx.c
├── tim.c
├── uart.c
├── uart1_protocol.c
└── usart.c
├── VoipPoint.elf.launch
├── VoipPoint.ioc
├── opus-1.3
├── AUTHORS
├── COPYING
├── ChangeLog
├── INSTALL
├── Makefile.am
├── Makefile.in
├── Makefile.mips
├── Makefile.unix
├── NEWS
├── README
├── aclocal.m4
├── celt
│ ├── _kiss_fft_guts.h
│ ├── arch.h
│ ├── arm
│ │ ├── arm2gnu.pl
│ │ ├── arm_celt_map.c
│ │ ├── armcpu.c
│ │ ├── armcpu.h
│ │ ├── armopts.s.in
│ │ ├── celt_fft_ne10.c
│ │ ├── celt_mdct_ne10.c
│ │ ├── celt_neon_intr.c
│ │ ├── celt_pitch_xcorr_arm-gnu.S
│ │ ├── celt_pitch_xcorr_arm.s
│ │ ├── fft_arm.h
│ │ ├── fixed_arm64.h
│ │ ├── fixed_armv4.h
│ │ ├── fixed_armv5e.h
│ │ ├── kiss_fft_armv4.h
│ │ ├── kiss_fft_armv5e.h
│ │ ├── mdct_arm.h
│ │ ├── pitch_arm.h
│ │ └── pitch_neon_intr.c
│ ├── bands.c
│ ├── bands.h
│ ├── celt.c
│ ├── celt.h
│ ├── celt_decoder.c
│ ├── celt_encoder.c
│ ├── celt_lpc.c
│ ├── celt_lpc.h
│ ├── cpu_support.h
│ ├── cwrs.c
│ ├── cwrs.h
│ ├── ecintrin.h
│ ├── entcode.c
│ ├── entcode.h
│ ├── entdec.c
│ ├── entdec.h
│ ├── entenc.c
│ ├── entenc.h
│ ├── fixed_debug.h
│ ├── fixed_generic.h
│ ├── float_cast.h
│ ├── kiss_fft.c
│ ├── kiss_fft.h
│ ├── laplace.c
│ ├── laplace.h
│ ├── mathops.c
│ ├── mathops.h
│ ├── mdct.c
│ ├── mdct.h
│ ├── mfrngcod.h
│ ├── mips
│ │ ├── celt_mipsr1.h
│ │ ├── fixed_generic_mipsr1.h
│ │ ├── kiss_fft_mipsr1.h
│ │ ├── mdct_mipsr1.h
│ │ ├── pitch_mipsr1.h
│ │ └── vq_mipsr1.h
│ ├── modes.c
│ ├── modes.h
│ ├── opus_custom_demo.c
│ ├── os_support.h
│ ├── pitch.c
│ ├── pitch.h
│ ├── quant_bands.c
│ ├── quant_bands.h
│ ├── rate.c
│ ├── rate.h
│ ├── stack_alloc.h
│ ├── static_modes_fixed.h
│ ├── static_modes_fixed_arm_ne10.h
│ ├── static_modes_float.h
│ ├── static_modes_float_arm_ne10.h
│ ├── tests
│ │ ├── test_unit_cwrs32.c
│ │ ├── test_unit_dft.c
│ │ ├── test_unit_entropy.c
│ │ ├── test_unit_laplace.c
│ │ ├── test_unit_mathops.c
│ │ ├── test_unit_mdct.c
│ │ ├── test_unit_rotation.c
│ │ └── test_unit_types.c
│ ├── vq.c
│ ├── vq.h
│ └── x86
│ │ ├── celt_lpc_sse.h
│ │ ├── celt_lpc_sse4_1.c
│ │ ├── pitch_sse.c
│ │ ├── pitch_sse.h
│ │ ├── pitch_sse2.c
│ │ ├── pitch_sse4_1.c
│ │ ├── vq_sse.h
│ │ ├── vq_sse2.c
│ │ ├── x86_celt_map.c
│ │ ├── x86cpu.c
│ │ └── x86cpu.h
├── celt_headers.mk
├── celt_sources.mk
├── compile
├── config.guess
├── config.h.in
├── config.sub
├── configure
├── configure.ac
├── depcomp
├── doc
│ ├── Doxyfile.in
│ ├── Makefile.am
│ ├── Makefile.in
│ ├── TODO
│ ├── customdoxygen.css
│ ├── footer.html
│ ├── header.html
│ ├── opus_logo.svg
│ └── trivial_example.c
├── include
│ ├── opus.h
│ ├── opus_custom.h
│ ├── opus_defines.h
│ ├── opus_multistream.h
│ ├── opus_projection.h
│ └── opus_types.h
├── install-sh
├── ltmain.sh
├── m4
│ ├── as-gcc-inline-assembly.m4
│ ├── ax_add_fortify_source.m4
│ ├── libtool.m4
│ ├── ltoptions.m4
│ ├── ltsugar.m4
│ ├── ltversion.m4
│ ├── lt~obsolete.m4
│ └── opus-intrinsics.m4
├── missing
├── opus-uninstalled.pc.in
├── opus.m4
├── opus.pc.in
├── opus_headers.mk
├── opus_sources.mk
├── package_version
├── silk
│ ├── A2NLSF.c
│ ├── API.h
│ ├── CNG.c
│ ├── HP_variable_cutoff.c
│ ├── Inlines.h
│ ├── LPC_analysis_filter.c
│ ├── LPC_fit.c
│ ├── LPC_inv_pred_gain.c
│ ├── LP_variable_cutoff.c
│ ├── MacroCount.h
│ ├── MacroDebug.h
│ ├── NLSF2A.c
│ ├── NLSF_VQ.c
│ ├── NLSF_VQ_weights_laroia.c
│ ├── NLSF_decode.c
│ ├── NLSF_del_dec_quant.c
│ ├── NLSF_encode.c
│ ├── NLSF_stabilize.c
│ ├── NLSF_unpack.c
│ ├── NSQ.c
│ ├── NSQ.h
│ ├── NSQ_del_dec.c
│ ├── PLC.c
│ ├── PLC.h
│ ├── SigProc_FIX.h
│ ├── VAD.c
│ ├── VQ_WMat_EC.c
│ ├── ana_filt_bank_1.c
│ ├── arm
│ │ ├── LPC_inv_pred_gain_arm.h
│ │ ├── LPC_inv_pred_gain_neon_intr.c
│ │ ├── NSQ_del_dec_arm.h
│ │ ├── NSQ_del_dec_neon_intr.c
│ │ ├── NSQ_neon.c
│ │ ├── NSQ_neon.h
│ │ ├── SigProc_FIX_armv4.h
│ │ ├── SigProc_FIX_armv5e.h
│ │ ├── arm_silk_map.c
│ │ ├── biquad_alt_arm.h
│ │ ├── biquad_alt_neon_intr.c
│ │ ├── macros_arm64.h
│ │ ├── macros_armv4.h
│ │ └── macros_armv5e.h
│ ├── biquad_alt.c
│ ├── bwexpander.c
│ ├── bwexpander_32.c
│ ├── check_control_input.c
│ ├── code_signs.c
│ ├── control.h
│ ├── control_SNR.c
│ ├── control_audio_bandwidth.c
│ ├── control_codec.c
│ ├── debug.c
│ ├── debug.h
│ ├── dec_API.c
│ ├── decode_core.c
│ ├── decode_frame.c
│ ├── decode_indices.c
│ ├── decode_parameters.c
│ ├── decode_pitch.c
│ ├── decode_pulses.c
│ ├── decoder_set_fs.c
│ ├── define.h
│ ├── enc_API.c
│ ├── encode_indices.c
│ ├── encode_pulses.c
│ ├── errors.h
│ ├── fixed
│ │ ├── LTP_analysis_filter_FIX.c
│ │ ├── LTP_scale_ctrl_FIX.c
│ │ ├── apply_sine_window_FIX.c
│ │ ├── arm
│ │ │ ├── warped_autocorrelation_FIX_arm.h
│ │ │ └── warped_autocorrelation_FIX_neon_intr.c
│ │ ├── autocorr_FIX.c
│ │ ├── burg_modified_FIX.c
│ │ ├── corrMatrix_FIX.c
│ │ ├── encode_frame_FIX.c
│ │ ├── find_LPC_FIX.c
│ │ ├── find_LTP_FIX.c
│ │ ├── find_pitch_lags_FIX.c
│ │ ├── find_pred_coefs_FIX.c
│ │ ├── k2a_FIX.c
│ │ ├── k2a_Q16_FIX.c
│ │ ├── main_FIX.h
│ │ ├── mips
│ │ │ ├── noise_shape_analysis_FIX_mipsr1.h
│ │ │ └── warped_autocorrelation_FIX_mipsr1.h
│ │ ├── noise_shape_analysis_FIX.c
│ │ ├── pitch_analysis_core_FIX.c
│ │ ├── process_gains_FIX.c
│ │ ├── regularize_correlations_FIX.c
│ │ ├── residual_energy16_FIX.c
│ │ ├── residual_energy_FIX.c
│ │ ├── schur64_FIX.c
│ │ ├── schur_FIX.c
│ │ ├── structs_FIX.h
│ │ ├── vector_ops_FIX.c
│ │ ├── warped_autocorrelation_FIX.c
│ │ └── x86
│ │ │ ├── burg_modified_FIX_sse4_1.c
│ │ │ └── vector_ops_FIX_sse4_1.c
│ ├── float
│ │ ├── LPC_analysis_filter_FLP.c
│ │ ├── LPC_inv_pred_gain_FLP.c
│ │ ├── LTP_analysis_filter_FLP.c
│ │ ├── LTP_scale_ctrl_FLP.c
│ │ ├── SigProc_FLP.h
│ │ ├── apply_sine_window_FLP.c
│ │ ├── autocorrelation_FLP.c
│ │ ├── burg_modified_FLP.c
│ │ ├── bwexpander_FLP.c
│ │ ├── corrMatrix_FLP.c
│ │ ├── encode_frame_FLP.c
│ │ ├── energy_FLP.c
│ │ ├── find_LPC_FLP.c
│ │ ├── find_LTP_FLP.c
│ │ ├── find_pitch_lags_FLP.c
│ │ ├── find_pred_coefs_FLP.c
│ │ ├── inner_product_FLP.c
│ │ ├── k2a_FLP.c
│ │ ├── main_FLP.h
│ │ ├── noise_shape_analysis_FLP.c
│ │ ├── pitch_analysis_core_FLP.c
│ │ ├── process_gains_FLP.c
│ │ ├── regularize_correlations_FLP.c
│ │ ├── residual_energy_FLP.c
│ │ ├── scale_copy_vector_FLP.c
│ │ ├── scale_vector_FLP.c
│ │ ├── schur_FLP.c
│ │ ├── sort_FLP.c
│ │ ├── structs_FLP.h
│ │ ├── warped_autocorrelation_FLP.c
│ │ └── wrappers_FLP.c
│ ├── gain_quant.c
│ ├── init_decoder.c
│ ├── init_encoder.c
│ ├── inner_prod_aligned.c
│ ├── interpolate.c
│ ├── lin2log.c
│ ├── log2lin.c
│ ├── macros.h
│ ├── main.h
│ ├── mips
│ │ ├── NSQ_del_dec_mipsr1.h
│ │ ├── macros_mipsr1.h
│ │ └── sigproc_fix_mipsr1.h
│ ├── pitch_est_defines.h
│ ├── pitch_est_tables.c
│ ├── process_NLSFs.c
│ ├── quant_LTP_gains.c
│ ├── resampler.c
│ ├── resampler_down2.c
│ ├── resampler_down2_3.c
│ ├── resampler_private.h
│ ├── resampler_private_AR2.c
│ ├── resampler_private_IIR_FIR.c
│ ├── resampler_private_down_FIR.c
│ ├── resampler_private_up2_HQ.c
│ ├── resampler_rom.c
│ ├── resampler_rom.h
│ ├── resampler_structs.h
│ ├── shell_coder.c
│ ├── sigm_Q15.c
│ ├── sort.c
│ ├── stereo_LR_to_MS.c
│ ├── stereo_MS_to_LR.c
│ ├── stereo_decode_pred.c
│ ├── stereo_encode_pred.c
│ ├── stereo_find_predictor.c
│ ├── stereo_quant_pred.c
│ ├── structs.h
│ ├── sum_sqr_shift.c
│ ├── table_LSF_cos.c
│ ├── tables.h
│ ├── tables_LTP.c
│ ├── tables_NLSF_CB_NB_MB.c
│ ├── tables_NLSF_CB_WB.c
│ ├── tables_gain.c
│ ├── tables_other.c
│ ├── tables_pitch_lag.c
│ ├── tables_pulses_per_block.c
│ ├── tests
│ │ └── test_unit_LPC_inv_pred_gain.c
│ ├── tuning_parameters.h
│ ├── typedef.h
│ └── x86
│ │ ├── NSQ_del_dec_sse4_1.c
│ │ ├── NSQ_sse4_1.c
│ │ ├── SigProc_FIX_sse.h
│ │ ├── VAD_sse4_1.c
│ │ ├── VQ_WMat_EC_sse4_1.c
│ │ ├── main_sse.h
│ │ └── x86_silk_map.c
├── silk_headers.mk
├── silk_sources.mk
├── src
│ ├── analysis.c
│ ├── analysis.h
│ ├── mapping_matrix.c
│ ├── mapping_matrix.h
│ ├── mlp.c
│ ├── mlp.h
│ ├── mlp_data.c
│ ├── opus.c
│ ├── opus_compare.c
│ ├── opus_decoder.c
│ ├── opus_demo.c
│ ├── opus_encoder.c
│ ├── opus_multistream.c
│ ├── opus_multistream_decoder.c
│ ├── opus_multistream_encoder.c
│ ├── opus_private.h
│ ├── opus_projection_decoder.c
│ ├── opus_projection_encoder.c
│ ├── repacketizer.c
│ ├── repacketizer_demo.c
│ └── tansig_table.h
├── test-driver
├── tests
│ ├── opus_encode_regressions.c
│ ├── run_vectors.sh
│ ├── test_opus_api.c
│ ├── test_opus_common.h
│ ├── test_opus_decode.c
│ ├── test_opus_encode.c
│ ├── test_opus_padding.c
│ └── test_opus_projection.c
└── win32
│ ├── VS2015
│ ├── common.props
│ ├── opus.sln
│ ├── opus.vcxproj
│ ├── opus.vcxproj.filters
│ ├── opus_demo.vcxproj
│ ├── opus_demo.vcxproj.filters
│ ├── test_opus_api.vcxproj
│ ├── test_opus_api.vcxproj.filters
│ ├── test_opus_decode.vcxproj
│ ├── test_opus_decode.vcxproj.filters
│ ├── test_opus_encode.vcxproj
│ └── test_opus_encode.vcxproj.filters
│ ├── config.h
│ └── genversion.bat
└── startup
└── startup_stm32l496xx.s
/.gitignore:
--------------------------------------------------------------------------------
1 | Debug/
2 | Release/
3 | .settings/
4 | .metadata/
5 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | VoipPoint
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder
10 | clean,full,incremental,
11 |
12 |
13 | ?children?
14 | ?name?=outputEntries\|?children?=?name?=entry\\\\\\\|\\\|\||
15 |
16 |
17 | ?name?
18 |
19 |
20 |
21 | org.eclipse.cdt.make.core.append_environment
22 | true
23 |
24 |
25 | org.eclipse.cdt.make.core.buildArguments
26 |
27 |
28 |
29 | org.eclipse.cdt.make.core.buildCommand
30 | make
31 |
32 |
33 | org.eclipse.cdt.make.core.buildLocation
34 | ${workspace_loc:/STM32100B-EVAL/Debug}
35 |
36 |
37 | org.eclipse.cdt.make.core.contents
38 | org.eclipse.cdt.make.core.activeConfigSettings
39 |
40 |
41 | org.eclipse.cdt.make.core.enableAutoBuild
42 | false
43 |
44 |
45 | org.eclipse.cdt.make.core.enableCleanBuild
46 | true
47 |
48 |
49 | org.eclipse.cdt.make.core.enableFullBuild
50 | true
51 |
52 |
53 | org.eclipse.cdt.make.core.stopOnError
54 | true
55 |
56 |
57 | org.eclipse.cdt.make.core.useDefaultBuildCmd
58 | true
59 |
60 |
61 |
62 |
63 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder
64 |
65 |
66 |
67 |
68 |
69 | org.eclipse.cdt.core.cnature
70 | org.eclipse.cdt.managedbuilder.core.managedBuildNature
71 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature
72 |
73 |
74 |
75 |
76 |
77 |
--------------------------------------------------------------------------------
/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l496xx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l496xx.h
--------------------------------------------------------------------------------
/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l4xx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l4xx.h
--------------------------------------------------------------------------------
/Drivers/CMSIS/Device/ST/STM32L4xx/Include/system_stm32l4xx.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file system_stm32l4xx.h
4 | * @author MCD Application Team
5 | * @brief CMSIS Cortex-M4 Device System Source File for STM32L4xx devices.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | *
© Copyright (c) 2017 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 |
20 | /** @addtogroup CMSIS
21 | * @{
22 | */
23 |
24 | /** @addtogroup stm32l4xx_system
25 | * @{
26 | */
27 |
28 | /**
29 | * @brief Define to prevent recursive inclusion
30 | */
31 | #ifndef __SYSTEM_STM32L4XX_H
32 | #define __SYSTEM_STM32L4XX_H
33 |
34 | #ifdef __cplusplus
35 | extern "C" {
36 | #endif
37 |
38 | /** @addtogroup STM32L4xx_System_Includes
39 | * @{
40 | */
41 |
42 | /**
43 | * @}
44 | */
45 |
46 |
47 | /** @addtogroup STM32L4xx_System_Exported_Variables
48 | * @{
49 | */
50 | /* The SystemCoreClock variable is updated in three ways:
51 | 1) by calling CMSIS function SystemCoreClockUpdate()
52 | 2) by calling HAL API function HAL_RCC_GetSysClockFreq()
53 | 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
54 | Note: If you use this function to configure the system clock; then there
55 | is no need to call the 2 first functions listed above, since SystemCoreClock
56 | variable is updated automatically.
57 | */
58 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
59 |
60 | extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */
61 | extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */
62 | extern const uint32_t MSIRangeTable[12]; /*!< MSI ranges table values */
63 |
64 | /**
65 | * @}
66 | */
67 |
68 | /** @addtogroup STM32L4xx_System_Exported_Constants
69 | * @{
70 | */
71 |
72 | /**
73 | * @}
74 | */
75 |
76 | /** @addtogroup STM32L4xx_System_Exported_Macros
77 | * @{
78 | */
79 |
80 | /**
81 | * @}
82 | */
83 |
84 | /** @addtogroup STM32L4xx_System_Exported_Functions
85 | * @{
86 | */
87 |
88 | extern void SystemInit(void);
89 | extern void SystemCoreClockUpdate(void);
90 | /**
91 | * @}
92 | */
93 |
94 | #ifdef __cplusplus
95 | }
96 | #endif
97 |
98 | #endif /*__SYSTEM_STM32L4XX_H */
99 |
100 | /**
101 | * @}
102 | */
103 |
104 | /**
105 | * @}
106 | */
107 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
108 |
--------------------------------------------------------------------------------
/Drivers/CMSIS/Include/cmsis_version.h:
--------------------------------------------------------------------------------
1 | /**************************************************************************//**
2 | * @file cmsis_version.h
3 | * @brief CMSIS Core(M) Version definitions
4 | * @version V5.0.2
5 | * @date 19. April 2017
6 | ******************************************************************************/
7 | /*
8 | * Copyright (c) 2009-2017 ARM Limited. All rights reserved.
9 | *
10 | * SPDX-License-Identifier: Apache-2.0
11 | *
12 | * Licensed under the Apache License, Version 2.0 (the License); you may
13 | * not use this file except in compliance with the License.
14 | * You may obtain a copy of the License at
15 | *
16 | * www.apache.org/licenses/LICENSE-2.0
17 | *
18 | * Unless required by applicable law or agreed to in writing, software
19 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT
20 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 | * See the License for the specific language governing permissions and
22 | * limitations under the License.
23 | */
24 |
25 | #if defined ( __ICCARM__ )
26 | #pragma system_include /* treat file as system include file for MISRA check */
27 | #elif defined (__clang__)
28 | #pragma clang system_header /* treat file as system include file */
29 | #endif
30 |
31 | #ifndef __CMSIS_VERSION_H
32 | #define __CMSIS_VERSION_H
33 |
34 | /* CMSIS Version definitions */
35 | #define __CM_CMSIS_VERSION_MAIN ( 5U) /*!< [31:16] CMSIS Core(M) main version */
36 | #define __CM_CMSIS_VERSION_SUB ( 1U) /*!< [15:0] CMSIS Core(M) sub version */
37 | #define __CM_CMSIS_VERSION ((__CM_CMSIS_VERSION_MAIN << 16U) | \
38 | __CM_CMSIS_VERSION_SUB ) /*!< CMSIS Core(M) version number */
39 | #endif
40 |
--------------------------------------------------------------------------------
/Drivers/CMSIS/Include/tz_context.h:
--------------------------------------------------------------------------------
1 | /******************************************************************************
2 | * @file tz_context.h
3 | * @brief Context Management for Armv8-M TrustZone
4 | * @version V1.0.1
5 | * @date 10. January 2018
6 | ******************************************************************************/
7 | /*
8 | * Copyright (c) 2017-2018 Arm Limited. All rights reserved.
9 | *
10 | * SPDX-License-Identifier: Apache-2.0
11 | *
12 | * Licensed under the Apache License, Version 2.0 (the License); you may
13 | * not use this file except in compliance with the License.
14 | * You may obtain a copy of the License at
15 | *
16 | * www.apache.org/licenses/LICENSE-2.0
17 | *
18 | * Unless required by applicable law or agreed to in writing, software
19 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT
20 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 | * See the License for the specific language governing permissions and
22 | * limitations under the License.
23 | */
24 |
25 | #if defined ( __ICCARM__ )
26 | #pragma system_include /* treat file as system include file for MISRA check */
27 | #elif defined (__clang__)
28 | #pragma clang system_header /* treat file as system include file */
29 | #endif
30 |
31 | #ifndef TZ_CONTEXT_H
32 | #define TZ_CONTEXT_H
33 |
34 | #include
35 |
36 | #ifndef TZ_MODULEID_T
37 | #define TZ_MODULEID_T
38 | /// \details Data type that identifies secure software modules called by a process.
39 | typedef uint32_t TZ_ModuleId_t;
40 | #endif
41 |
42 | /// \details TZ Memory ID identifies an allocated memory slot.
43 | typedef uint32_t TZ_MemoryId_t;
44 |
45 | /// Initialize secure context memory system
46 | /// \return execution status (1: success, 0: error)
47 | uint32_t TZ_InitContextSystem_S (void);
48 |
49 | /// Allocate context memory for calling secure software modules in TrustZone
50 | /// \param[in] module identifies software modules called from non-secure mode
51 | /// \return value != 0 id TrustZone memory slot identifier
52 | /// \return value 0 no memory available or internal error
53 | TZ_MemoryId_t TZ_AllocModuleContext_S (TZ_ModuleId_t module);
54 |
55 | /// Free context memory that was previously allocated with \ref TZ_AllocModuleContext_S
56 | /// \param[in] id TrustZone memory slot identifier
57 | /// \return execution status (1: success, 0: error)
58 | uint32_t TZ_FreeModuleContext_S (TZ_MemoryId_t id);
59 |
60 | /// Load secure context (called on RTOS thread context switch)
61 | /// \param[in] id TrustZone memory slot identifier
62 | /// \return execution status (1: success, 0: error)
63 | uint32_t TZ_LoadContext_S (TZ_MemoryId_t id);
64 |
65 | /// Store secure context (called on RTOS thread context switch)
66 | /// \param[in] id TrustZone memory slot identifier
67 | /// \return execution status (1: success, 0: error)
68 | uint32_t TZ_StoreContext_S (TZ_MemoryId_t id);
69 |
70 | #endif // TZ_CONTEXT_H
71 |
--------------------------------------------------------------------------------
/Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_flash_ramfunc.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file stm32l4xx_hal_flash_ramfunc.h
4 | * @author MCD Application Team
5 | * @brief Header file of FLASH RAMFUNC driver.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2017 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 |
20 | /* Define to prevent recursive inclusion -------------------------------------*/
21 | #ifndef __STM32L4xx_FLASH_RAMFUNC_H
22 | #define __STM32L4xx_FLASH_RAMFUNC_H
23 |
24 | #ifdef __cplusplus
25 | extern "C" {
26 | #endif
27 |
28 | /* Includes ------------------------------------------------------------------*/
29 | #include "stm32l4xx_hal_def.h"
30 |
31 | /** @addtogroup STM32L4xx_HAL_Driver
32 | * @{
33 | */
34 |
35 | /** @addtogroup FLASH_RAMFUNC
36 | * @{
37 | */
38 |
39 | /* Exported types ------------------------------------------------------------*/
40 | /* Exported macro ------------------------------------------------------------*/
41 | /* Exported functions --------------------------------------------------------*/
42 | /** @addtogroup FLASH_RAMFUNC_Exported_Functions
43 | * @{
44 | */
45 |
46 | /** @addtogroup FLASH_RAMFUNC_Exported_Functions_Group1
47 | * @{
48 | */
49 | /* Peripheral Control functions ************************************************/
50 | __RAM_FUNC HAL_FLASHEx_EnableRunPowerDown(void);
51 | __RAM_FUNC HAL_FLASHEx_DisableRunPowerDown(void);
52 | #if defined (STM32L4R5xx) || defined (STM32L4R7xx) || defined (STM32L4R9xx) || defined (STM32L4S5xx) || defined (STM32L4S7xx) || defined (STM32L4S9xx)
53 | __RAM_FUNC HAL_FLASHEx_OB_DBankConfig(uint32_t DBankConfig);
54 | #endif
55 | /**
56 | * @}
57 | */
58 |
59 | /**
60 | * @}
61 | */
62 |
63 | /**
64 | * @}
65 | */
66 |
67 | /**
68 | * @}
69 | */
70 |
71 | #ifdef __cplusplus
72 | }
73 | #endif
74 |
75 | #endif /* __STM32L4xx_FLASH_RAMFUNC_H */
76 |
77 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
78 |
--------------------------------------------------------------------------------
/Inc/adc.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * File Name : ADC.h
4 | * Description : This file provides code for the configuration
5 | * of the ADC instances.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2019 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __adc_H
21 | #define __adc_H
22 | #ifdef __cplusplus
23 | extern "C" {
24 | #endif
25 |
26 | /* Includes ------------------------------------------------------------------*/
27 | #include "main.h"
28 |
29 | /* USER CODE BEGIN Includes */
30 |
31 | /* USER CODE END Includes */
32 |
33 | extern ADC_HandleTypeDef hadc1;
34 |
35 | /* USER CODE BEGIN Private defines */
36 |
37 | /* USER CODE END Private defines */
38 |
39 | void MX_ADC1_Init(void);
40 |
41 | /* USER CODE BEGIN Prototypes */
42 |
43 | /* USER CODE END Prototypes */
44 |
45 | #ifdef __cplusplus
46 | }
47 | #endif
48 | #endif /*__ adc_H */
49 |
50 | /**
51 | * @}
52 | */
53 |
54 | /**
55 | * @}
56 | */
57 |
58 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
59 |
--------------------------------------------------------------------------------
/Inc/buf_stack.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Inc/buf_stack.h
--------------------------------------------------------------------------------
/Inc/can.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * File Name : CAN.h
4 | * Description : This file provides code for the configuration
5 | * of the CAN instances.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2019 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __can_H
21 | #define __can_H
22 | #ifdef __cplusplus
23 | extern "C" {
24 | #endif
25 |
26 | /* Includes ------------------------------------------------------------------*/
27 | #include "main.h"
28 |
29 | /* USER CODE BEGIN Includes */
30 |
31 | /* USER CODE END Includes */
32 |
33 | extern CAN_HandleTypeDef hcan1;
34 | extern CAN_HandleTypeDef hcan2;
35 |
36 | /* USER CODE BEGIN Private defines */
37 |
38 | /* USER CODE END Private defines */
39 |
40 | void MX_CAN1_Init(void);
41 | void MX_CAN2_Init(void);
42 |
43 | /* USER CODE BEGIN Prototypes */
44 |
45 | /* USER CODE END Prototypes */
46 |
47 | #ifdef __cplusplus
48 | }
49 | #endif
50 | #endif /*__ can_H */
51 |
52 | /**
53 | * @}
54 | */
55 |
56 | /**
57 | * @}
58 | */
59 |
60 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
61 |
--------------------------------------------------------------------------------
/Inc/can_cmd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Inc/can_cmd.h
--------------------------------------------------------------------------------
/Inc/config.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file config.h
4 | * @author Central Labs
5 | * @version V 1.0.0
6 | * @date 09-Mar-2018
7 | * @brief Header for opus codec configuration.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT(c) 2017 STMicroelectronics
12 | *
13 | * Redistribution and use in source and binary forms, with or without modification,
14 | * are permitted provided that the following conditions are met:
15 | * 1. Redistributions of source code must retain the above copyright notice,
16 | * this list of conditions and the following disclaimer.
17 | * 2. Redistributions in binary form must reproduce the above copyright notice,
18 | * this list of conditions and the following disclaimer in the documentation
19 | * and/or other materials provided with the distribution.
20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors
21 | * may be used to endorse or promote products derived from this software
22 | * without specific prior written permission.
23 | *
24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 | *
35 | ******************************************************************************
36 | */
37 |
38 | #ifndef CONFIG_H
39 | #define CONFIG_H
40 |
41 | #include "opus.h"
42 | #include
43 |
44 | extern void *pvPortMalloc( size_t xSize );
45 | extern void vPortFree( void *pv );
46 |
47 | /* Variable leng arays */
48 | #define VAR_ARRAYS
49 |
50 | /* Comment out the next line for floating-point code */
51 | #define FIXED_POINT 1
52 |
53 | #define OPUS_BUILD 1
54 | //#define OPUS_HAVE_RTCD 1
55 |
56 | /*static OPUS_INLINE void *opus_alloc (size_t size)
57 | {
58 | return pvPortMalloc(size);
59 | }
60 |
61 | static OPUS_INLINE void opus_free (void *ptr)
62 | {
63 | vPortFree(ptr);
64 | }*/
65 |
66 | #endif /* CONFIG_H */
67 |
68 |
--------------------------------------------------------------------------------
/Inc/dac.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * File Name : DAC.h
4 | * Description : This file provides code for the configuration
5 | * of the DAC instances.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2019 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __dac_H
21 | #define __dac_H
22 | #ifdef __cplusplus
23 | extern "C" {
24 | #endif
25 |
26 | /* Includes ------------------------------------------------------------------*/
27 | #include "main.h"
28 |
29 | /* USER CODE BEGIN Includes */
30 |
31 | /* USER CODE END Includes */
32 |
33 | /* USER CODE BEGIN Private defines */
34 |
35 | /* USER CODE END Private defines */
36 |
37 | void MX_DAC1_Init(void);
38 |
39 | /* USER CODE BEGIN Prototypes */
40 |
41 | /* USER CODE END Prototypes */
42 |
43 | #ifdef __cplusplus
44 | }
45 | #endif
46 | #endif /*__ dac_H */
47 |
48 | /**
49 | * @}
50 | */
51 |
52 | /**
53 | * @}
54 | */
55 |
56 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
57 |
--------------------------------------------------------------------------------
/Inc/dfsdm.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * File Name : DFSDM.h
4 | * Description : This file provides code for the configuration
5 | * of the DFSDM instances.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2019 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __dfsdm_H
21 | #define __dfsdm_H
22 | #ifdef __cplusplus
23 | extern "C" {
24 | #endif
25 |
26 | /* Includes ------------------------------------------------------------------*/
27 | #include "main.h"
28 |
29 | /* USER CODE BEGIN Includes */
30 |
31 | /* USER CODE END Includes */
32 |
33 | extern DFSDM_Filter_HandleTypeDef hdfsdm1_filter0;
34 | extern DFSDM_Channel_HandleTypeDef hdfsdm1_channel0;
35 |
36 | /* USER CODE BEGIN Private defines */
37 |
38 | /* USER CODE END Private defines */
39 |
40 | void MX_DFSDM1_Init(void);
41 |
42 | /* USER CODE BEGIN Prototypes */
43 |
44 | /* USER CODE END Prototypes */
45 |
46 | #ifdef __cplusplus
47 | }
48 | #endif
49 | #endif /*__ dfsdm_H */
50 |
51 | /**
52 | * @}
53 | */
54 |
55 | /**
56 | * @}
57 | */
58 |
59 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
60 |
--------------------------------------------------------------------------------
/Inc/din.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Inc/din.h
--------------------------------------------------------------------------------
/Inc/dma.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * File Name : dma.h
4 | * Description : This file contains all the function prototypes for
5 | * the dma.c file
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2019 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __dma_H
21 | #define __dma_H
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include "main.h"
29 |
30 | /* DMA memory to memory transfer handles -------------------------------------*/
31 |
32 | /* USER CODE BEGIN Includes */
33 |
34 | /* USER CODE END Includes */
35 |
36 | /* USER CODE BEGIN Private defines */
37 |
38 | /* USER CODE END Private defines */
39 |
40 | void MX_DMA_Init(void);
41 |
42 | /* USER CODE BEGIN Prototypes */
43 |
44 | /* USER CODE END Prototypes */
45 |
46 | #ifdef __cplusplus
47 | }
48 | #endif
49 |
50 | #endif /* __dma_H */
51 |
52 | /**
53 | * @}
54 | */
55 |
56 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
57 |
--------------------------------------------------------------------------------
/Inc/eeprom.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Inc/eeprom.h
--------------------------------------------------------------------------------
/Inc/eeprom2.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Inc/eeprom2.h
--------------------------------------------------------------------------------
/Inc/fit_processing.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Inc/fit_processing.h
--------------------------------------------------------------------------------
/Inc/frame_stack.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Inc/frame_stack.h
--------------------------------------------------------------------------------
/Inc/gpio.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * File Name : gpio.h
4 | * Description : This file contains all the functions prototypes for
5 | * the gpio
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2019 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 |
20 | /* Define to prevent recursive inclusion -------------------------------------*/
21 | #ifndef __gpio_H
22 | #define __gpio_H
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include "main.h"
29 |
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 |
34 | /* USER CODE BEGIN Private defines */
35 |
36 | /* USER CODE END Private defines */
37 |
38 | void MX_GPIO_Init(void);
39 |
40 | /* USER CODE BEGIN Prototypes */
41 |
42 | /* USER CODE END Prototypes */
43 |
44 | #ifdef __cplusplus
45 | }
46 | #endif
47 | #endif /*__ pinoutConfig_H */
48 |
49 | /**
50 | * @}
51 | */
52 |
53 | /**
54 | * @}
55 | */
56 |
57 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
58 |
--------------------------------------------------------------------------------
/Inc/iwdg.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * File Name : IWDG.h
4 | * Description : This file provides code for the configuration
5 | * of the IWDG instances.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2019 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __iwdg_H
21 | #define __iwdg_H
22 | #ifdef __cplusplus
23 | extern "C" {
24 | #endif
25 |
26 | /* Includes ------------------------------------------------------------------*/
27 | #include "main.h"
28 |
29 | /* USER CODE BEGIN Includes */
30 |
31 | /* USER CODE END Includes */
32 |
33 | extern IWDG_HandleTypeDef hiwdg;
34 |
35 | /* USER CODE BEGIN Private defines */
36 |
37 | /* USER CODE END Private defines */
38 |
39 | void MX_IWDG_Init(void);
40 |
41 | /* USER CODE BEGIN Prototypes */
42 |
43 | /* USER CODE END Prototypes */
44 |
45 | #ifdef __cplusplus
46 | }
47 | #endif
48 | #endif /*__ iwdg_H */
49 |
50 | /**
51 | * @}
52 | */
53 |
54 | /**
55 | * @}
56 | */
57 |
58 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
59 |
--------------------------------------------------------------------------------
/Inc/main.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file : main.h
5 | * @brief : Header for main.c file.
6 | * This file contains the common defines of the application.
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2019 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under BSD 3-Clause license,
14 | * the "License"; You may not use this file except in compliance with the
15 | * License. You may obtain a copy of the License at:
16 | * opensource.org/licenses/BSD-3-Clause
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __MAIN_H
24 | #define __MAIN_H
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 | /* Includes ------------------------------------------------------------------*/
31 | #include "stm32l4xx_hal.h"
32 | #include "stm32l4xx_ll_dac.h"
33 | #include "stm32l4xx_ll_usart.h"
34 | #include "stm32l4xx_ll_rcc.h"
35 | #include "stm32l4xx_ll_bus.h"
36 | #include "stm32l4xx_ll_cortex.h"
37 | #include "stm32l4xx_ll_system.h"
38 | #include "stm32l4xx_ll_utils.h"
39 | #include "stm32l4xx_ll_pwr.h"
40 | #include "stm32l4xx_ll_gpio.h"
41 | #include "stm32l4xx_ll_dma.h"
42 |
43 | #include "stm32l4xx_ll_exti.h"
44 |
45 | /* Private includes ----------------------------------------------------------*/
46 | /* USER CODE BEGIN Includes */
47 |
48 | /* USER CODE END Includes */
49 |
50 | /* Exported types ------------------------------------------------------------*/
51 | /* USER CODE BEGIN ET */
52 |
53 | /* USER CODE END ET */
54 |
55 | /* Exported constants --------------------------------------------------------*/
56 | /* USER CODE BEGIN EC */
57 |
58 | /* USER CODE END EC */
59 |
60 | /* Exported macro ------------------------------------------------------------*/
61 | /* USER CODE BEGIN EM */
62 |
63 | /* USER CODE END EM */
64 |
65 | /* Exported functions prototypes ---------------------------------------------*/
66 | void Error_Handler(void);
67 |
68 | /* USER CODE BEGIN EFP */
69 |
70 | /* USER CODE END EFP */
71 |
72 | /* Private defines -----------------------------------------------------------*/
73 | #define SDZ_Pin GPIO_PIN_13
74 | #define SDZ_GPIO_Port GPIOC
75 | #define MUTE_Pin GPIO_PIN_14
76 | #define MUTE_GPIO_Port GPIOC
77 | #define FAULTZ_Pin GPIO_PIN_15
78 | #define FAULTZ_GPIO_Port GPIOC
79 | #define CAN1_EN_Pin GPIO_PIN_8
80 | #define CAN1_EN_GPIO_Port GPIOA
81 | #define LED_Pin GPIO_PIN_12
82 | #define LED_GPIO_Port GPIOC
83 | #define CAN2_EN_Pin GPIO_PIN_4
84 | #define CAN2_EN_GPIO_Port GPIOB
85 | /* USER CODE BEGIN Private defines */
86 |
87 | /* USER CODE END Private defines */
88 |
89 | #ifdef __cplusplus
90 | }
91 | #endif
92 |
93 | #endif /* __MAIN_H */
94 |
95 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
96 |
--------------------------------------------------------------------------------
/Inc/rng.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * File Name : RNG.h
4 | * Description : This file provides code for the configuration
5 | * of the RNG instances.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2019 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __rng_H
21 | #define __rng_H
22 | #ifdef __cplusplus
23 | extern "C" {
24 | #endif
25 |
26 | /* Includes ------------------------------------------------------------------*/
27 | #include "main.h"
28 |
29 | /* USER CODE BEGIN Includes */
30 |
31 | /* USER CODE END Includes */
32 |
33 | extern RNG_HandleTypeDef hrng;
34 |
35 | /* USER CODE BEGIN Private defines */
36 |
37 | /* USER CODE END Private defines */
38 |
39 | void MX_RNG_Init(void);
40 |
41 | /* USER CODE BEGIN Prototypes */
42 |
43 | /* USER CODE END Prototypes */
44 |
45 | #ifdef __cplusplus
46 | }
47 | #endif
48 | #endif /*__ rng_H */
49 |
50 | /**
51 | * @}
52 | */
53 |
54 | /**
55 | * @}
56 | */
57 |
58 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
59 |
--------------------------------------------------------------------------------
/Inc/stm32_assert.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file stm32_assert.h
4 | * @brief STM32 assert file.
5 | ******************************************************************************
6 | * @attention
7 | *
8 | * © Copyright (c) 2019 STMicroelectronics.
9 | * All rights reserved.
10 | *
11 | * This software component is licensed by ST under BSD 3-Clause license,
12 | * the "License"; You may not use this file except in compliance with the
13 | * License. You may obtain a copy of the License at:
14 | * opensource.org/licenses/BSD-3-Clause
15 | *
16 | ******************************************************************************
17 | */
18 |
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __STM32_ASSERT_H
21 | #define __STM32_ASSERT_H
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Exported types ------------------------------------------------------------*/
28 | /* Exported constants --------------------------------------------------------*/
29 | /* Includes ------------------------------------------------------------------*/
30 | /* Exported macro ------------------------------------------------------------*/
31 | #ifdef USE_FULL_ASSERT
32 | /**
33 | * @brief The assert_param macro is used for function's parameters check.
34 | * @param expr: If expr is false, it calls assert_failed function
35 | * which reports the name of the source file and the source
36 | * line number of the call that failed.
37 | * If expr is true, it returns no value.
38 | * @retval None
39 | */
40 | #define assert_param(expr) ((expr) ? (void)0U : assert_failed((char *)__FILE__, __LINE__))
41 | /* Exported functions ------------------------------------------------------- */
42 | void assert_failed(char* file, uint32_t line);
43 | #else
44 | #define assert_param(expr) ((void)0U)
45 | #endif /* USE_FULL_ASSERT */
46 |
47 | #ifdef __cplusplus
48 | }
49 | #endif
50 |
51 | #endif /* __STM32_ASSERT_H */
52 |
53 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
54 |
--------------------------------------------------------------------------------
/Inc/stm32l4xx_it.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file stm32l4xx_it.h
5 | * @brief This file contains the headers of the interrupt handlers.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2019 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 | /* USER CODE END Header */
20 |
21 | /* Define to prevent recursive inclusion -------------------------------------*/
22 | #ifndef __STM32L4xx_IT_H
23 | #define __STM32L4xx_IT_H
24 |
25 | #ifdef __cplusplus
26 | extern "C" {
27 | #endif
28 |
29 | /* Private includes ----------------------------------------------------------*/
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 |
34 | /* Exported types ------------------------------------------------------------*/
35 | /* USER CODE BEGIN ET */
36 |
37 | /* USER CODE END ET */
38 |
39 | /* Exported constants --------------------------------------------------------*/
40 | /* USER CODE BEGIN EC */
41 |
42 | /* USER CODE END EC */
43 |
44 | /* Exported macro ------------------------------------------------------------*/
45 | /* USER CODE BEGIN EM */
46 |
47 | /* USER CODE END EM */
48 |
49 | /* Exported functions prototypes ---------------------------------------------*/
50 | void NMI_Handler(void);
51 | void HardFault_Handler(void);
52 | void MemManage_Handler(void);
53 | void BusFault_Handler(void);
54 | void UsageFault_Handler(void);
55 | void SVC_Handler(void);
56 | void DebugMon_Handler(void);
57 | void PendSV_Handler(void);
58 | void SysTick_Handler(void);
59 | void DMA1_Channel1_IRQHandler(void);
60 | void DMA1_Channel3_IRQHandler(void);
61 | void DMA1_Channel4_IRQHandler(void);
62 | void CAN1_RX0_IRQHandler(void);
63 | void USART1_IRQHandler(void);
64 | void TIM6_DAC_IRQHandler(void);
65 | void DMA2_Channel6_IRQHandler(void);
66 | void CAN2_RX0_IRQHandler(void);
67 | /* USER CODE BEGIN EFP */
68 |
69 | /* USER CODE END EFP */
70 |
71 | #ifdef __cplusplus
72 | }
73 | #endif
74 |
75 | #endif /* __STM32L4xx_IT_H */
76 |
77 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
78 |
--------------------------------------------------------------------------------
/Inc/sys.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * File Name : SYS.h
4 | * Description : This file provides code for the configuration
5 | * of the SYS instances.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2019 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __sys_H
21 | #define __sys_H
22 | #ifdef __cplusplus
23 | extern "C" {
24 | #endif
25 |
26 | /* Includes ------------------------------------------------------------------*/
27 | #include "main.h"
28 |
29 | /* USER CODE BEGIN Includes */
30 |
31 | /* USER CODE END Includes */
32 |
33 | /* USER CODE BEGIN Private defines */
34 |
35 | /* USER CODE END Private defines */
36 |
37 | void MX_SYS_Init(void);
38 |
39 | /* USER CODE BEGIN Prototypes */
40 |
41 | /* USER CODE END Prototypes */
42 |
43 | #ifdef __cplusplus
44 | }
45 | #endif
46 | #endif /*__ sys_H */
47 |
48 | /**
49 | * @}
50 | */
51 |
52 | /**
53 | * @}
54 | */
55 |
56 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
57 |
--------------------------------------------------------------------------------
/Inc/tim.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * File Name : TIM.h
4 | * Description : This file provides code for the configuration
5 | * of the TIM instances.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2019 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __tim_H
21 | #define __tim_H
22 | #ifdef __cplusplus
23 | extern "C" {
24 | #endif
25 |
26 | /* Includes ------------------------------------------------------------------*/
27 | #include "main.h"
28 |
29 | /* USER CODE BEGIN Includes */
30 |
31 | /* USER CODE END Includes */
32 |
33 | extern TIM_HandleTypeDef htim6;
34 |
35 | /* USER CODE BEGIN Private defines */
36 |
37 | /* USER CODE END Private defines */
38 |
39 | void MX_TIM6_Init(void);
40 |
41 | /* USER CODE BEGIN Prototypes */
42 |
43 | /* USER CODE END Prototypes */
44 |
45 | #ifdef __cplusplus
46 | }
47 | #endif
48 | #endif /*__ tim_H */
49 |
50 | /**
51 | * @}
52 | */
53 |
54 | /**
55 | * @}
56 | */
57 |
58 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
59 |
--------------------------------------------------------------------------------
/Inc/uart.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Inc/uart.h
--------------------------------------------------------------------------------
/Inc/uart1_protocol.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Inc/uart1_protocol.h
--------------------------------------------------------------------------------
/Inc/usart.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * File Name : USART.h
4 | * Description : This file provides code for the configuration
5 | * of the USART instances.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2019 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __usart_H
21 | #define __usart_H
22 | #ifdef __cplusplus
23 | extern "C" {
24 | #endif
25 |
26 | /* Includes ------------------------------------------------------------------*/
27 | #include "main.h"
28 |
29 | /* USER CODE BEGIN Includes */
30 |
31 | /* USER CODE END Includes */
32 |
33 | /* USER CODE BEGIN Private defines */
34 |
35 | /* USER CODE END Private defines */
36 |
37 | void MX_USART1_UART_Init(void);
38 |
39 | /* USER CODE BEGIN Prototypes */
40 |
41 | /* USER CODE END Prototypes */
42 |
43 | #ifdef __cplusplus
44 | }
45 | #endif
46 | #endif /*__ usart_H */
47 |
48 | /**
49 | * @}
50 | */
51 |
52 | /**
53 | * @}
54 | */
55 |
56 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
57 |
--------------------------------------------------------------------------------
/Inc/wave_example.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Inc/wave_example.h
--------------------------------------------------------------------------------
/Src/buf_stack.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Src/buf_stack.c
--------------------------------------------------------------------------------
/Src/can_cmd.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Src/can_cmd.c
--------------------------------------------------------------------------------
/Src/can_tx_stack.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Src/can_tx_stack.h
--------------------------------------------------------------------------------
/Src/din.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Src/din.c
--------------------------------------------------------------------------------
/Src/dma.c:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * File Name : dma.c
4 | * Description : This file provides code for the configuration
5 | * of all the requested memory to memory DMA transfers.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2019 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 |
20 | /* Includes ------------------------------------------------------------------*/
21 | #include "dma.h"
22 |
23 | /* USER CODE BEGIN 0 */
24 |
25 | /* USER CODE END 0 */
26 |
27 | /*----------------------------------------------------------------------------*/
28 | /* Configure DMA */
29 | /*----------------------------------------------------------------------------*/
30 |
31 | /* USER CODE BEGIN 1 */
32 |
33 | /* USER CODE END 1 */
34 |
35 | /**
36 | * Enable DMA controller clock
37 | */
38 | void MX_DMA_Init(void)
39 | {
40 |
41 | /* DMA controller clock enable */
42 | __HAL_RCC_DMA1_CLK_ENABLE();
43 | __HAL_RCC_DMA2_CLK_ENABLE();
44 |
45 | /* DMA interrupt init */
46 | /* DMA1_Channel1_IRQn interrupt configuration */
47 | HAL_NVIC_SetPriority(DMA1_Channel1_IRQn, 0, 0);
48 | HAL_NVIC_EnableIRQ(DMA1_Channel1_IRQn);
49 | /* DMA1_Channel3_IRQn interrupt configuration */
50 | NVIC_SetPriority(DMA1_Channel3_IRQn, NVIC_EncodePriority(NVIC_GetPriorityGrouping(),0, 0));
51 | NVIC_EnableIRQ(DMA1_Channel3_IRQn);
52 | /* DMA1_Channel4_IRQn interrupt configuration */
53 | HAL_NVIC_SetPriority(DMA1_Channel4_IRQn, 0, 0);
54 | HAL_NVIC_EnableIRQ(DMA1_Channel4_IRQn);
55 | /* DMA2_Channel6_IRQn interrupt configuration */
56 | NVIC_SetPriority(DMA2_Channel6_IRQn, NVIC_EncodePriority(NVIC_GetPriorityGrouping(),0, 0));
57 | NVIC_EnableIRQ(DMA2_Channel6_IRQn);
58 |
59 | }
60 |
61 | /* USER CODE BEGIN 2 */
62 |
63 | /* USER CODE END 2 */
64 |
65 | /**
66 | * @}
67 | */
68 |
69 | /**
70 | * @}
71 | */
72 |
73 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
74 |
--------------------------------------------------------------------------------
/Src/eeprom.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Src/eeprom.c
--------------------------------------------------------------------------------
/Src/eeprom2.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Src/eeprom2.c
--------------------------------------------------------------------------------
/Src/fit_processing.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Src/fit_processing.c
--------------------------------------------------------------------------------
/Src/frame_stack.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Src/frame_stack.c
--------------------------------------------------------------------------------
/Src/iwdg.c:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * File Name : IWDG.c
4 | * Description : This file provides code for the configuration
5 | * of the IWDG instances.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2019 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 |
20 | /* Includes ------------------------------------------------------------------*/
21 | #include "iwdg.h"
22 |
23 | /* USER CODE BEGIN 0 */
24 |
25 | /* USER CODE END 0 */
26 |
27 | IWDG_HandleTypeDef hiwdg;
28 |
29 | /* IWDG init function */
30 | void MX_IWDG_Init(void)
31 | {
32 |
33 | hiwdg.Instance = IWDG;
34 | hiwdg.Init.Prescaler = IWDG_PRESCALER_4;
35 | hiwdg.Init.Window = 4095;
36 | hiwdg.Init.Reload = 4095;
37 | if (HAL_IWDG_Init(&hiwdg) != HAL_OK)
38 | {
39 | Error_Handler();
40 | }
41 |
42 | }
43 |
44 | /* USER CODE BEGIN 1 */
45 |
46 | /* USER CODE END 1 */
47 |
48 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
49 |
--------------------------------------------------------------------------------
/Src/main.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Src/main.c
--------------------------------------------------------------------------------
/Src/rng.c:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * File Name : RNG.c
4 | * Description : This file provides code for the configuration
5 | * of the RNG instances.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2019 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 |
20 | /* Includes ------------------------------------------------------------------*/
21 | #include "rng.h"
22 |
23 | /* USER CODE BEGIN 0 */
24 |
25 | /* USER CODE END 0 */
26 |
27 | RNG_HandleTypeDef hrng;
28 |
29 | /* RNG init function */
30 | void MX_RNG_Init(void)
31 | {
32 |
33 | hrng.Instance = RNG;
34 | if (HAL_RNG_Init(&hrng) != HAL_OK)
35 | {
36 | Error_Handler();
37 | }
38 |
39 | }
40 |
41 | void HAL_RNG_MspInit(RNG_HandleTypeDef* rngHandle)
42 | {
43 |
44 | if(rngHandle->Instance==RNG)
45 | {
46 | /* USER CODE BEGIN RNG_MspInit 0 */
47 |
48 | /* USER CODE END RNG_MspInit 0 */
49 | /* RNG clock enable */
50 | __HAL_RCC_RNG_CLK_ENABLE();
51 | /* USER CODE BEGIN RNG_MspInit 1 */
52 |
53 | /* USER CODE END RNG_MspInit 1 */
54 | }
55 | }
56 |
57 | void HAL_RNG_MspDeInit(RNG_HandleTypeDef* rngHandle)
58 | {
59 |
60 | if(rngHandle->Instance==RNG)
61 | {
62 | /* USER CODE BEGIN RNG_MspDeInit 0 */
63 |
64 | /* USER CODE END RNG_MspDeInit 0 */
65 | /* Peripheral clock disable */
66 | __HAL_RCC_RNG_CLK_DISABLE();
67 | /* USER CODE BEGIN RNG_MspDeInit 1 */
68 |
69 | /* USER CODE END RNG_MspDeInit 1 */
70 | }
71 | }
72 |
73 | /* USER CODE BEGIN 1 */
74 |
75 | /* USER CODE END 1 */
76 |
77 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
78 |
--------------------------------------------------------------------------------
/Src/stm32l4xx_hal_msp.c:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * File Name : stm32l4xx_hal_msp.c
5 | * Description : This file provides code for the MSP Initialization
6 | * and de-Initialization codes.
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2019 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under BSD 3-Clause license,
14 | * the "License"; You may not use this file except in compliance with the
15 | * License. You may obtain a copy of the License at:
16 | * opensource.org/licenses/BSD-3-Clause
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | /* Includes ------------------------------------------------------------------*/
23 | #include "main.h"
24 | /* USER CODE BEGIN Includes */
25 |
26 | /* USER CODE END Includes */
27 |
28 | /* Private typedef -----------------------------------------------------------*/
29 | /* USER CODE BEGIN TD */
30 |
31 | /* USER CODE END TD */
32 |
33 | /* Private define ------------------------------------------------------------*/
34 | /* USER CODE BEGIN Define */
35 |
36 | /* USER CODE END Define */
37 |
38 | /* Private macro -------------------------------------------------------------*/
39 | /* USER CODE BEGIN Macro */
40 |
41 | /* USER CODE END Macro */
42 |
43 | /* Private variables ---------------------------------------------------------*/
44 | /* USER CODE BEGIN PV */
45 |
46 | /* USER CODE END PV */
47 |
48 | /* Private function prototypes -----------------------------------------------*/
49 | /* USER CODE BEGIN PFP */
50 |
51 | /* USER CODE END PFP */
52 |
53 | /* External functions --------------------------------------------------------*/
54 | /* USER CODE BEGIN ExternalFunctions */
55 |
56 | /* USER CODE END ExternalFunctions */
57 |
58 | /* USER CODE BEGIN 0 */
59 |
60 | /* USER CODE END 0 */
61 | /**
62 | * Initializes the Global MSP.
63 | */
64 | void HAL_MspInit(void)
65 | {
66 | /* USER CODE BEGIN MspInit 0 */
67 |
68 | /* USER CODE END MspInit 0 */
69 |
70 | __HAL_RCC_SYSCFG_CLK_ENABLE();
71 | __HAL_RCC_PWR_CLK_ENABLE();
72 |
73 | /* System interrupt init*/
74 |
75 | /* USER CODE BEGIN MspInit 1 */
76 |
77 | /* USER CODE END MspInit 1 */
78 | }
79 |
80 | /* USER CODE BEGIN 1 */
81 |
82 | /* USER CODE END 1 */
83 |
84 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
85 |
--------------------------------------------------------------------------------
/Src/stm32l4xx_it.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Src/stm32l4xx_it.c
--------------------------------------------------------------------------------
/Src/sys.c:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * File Name : SYS.c
4 | * Description : This file provides code for the configuration
5 | * of the SYS instances.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2019 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 |
20 | /* Includes ------------------------------------------------------------------*/
21 | #include "sys.h"
22 |
23 | /* USER CODE BEGIN 0 */
24 |
25 | /* USER CODE END 0 */
26 |
27 | /* SYS init function */
28 | void MX_SYS_Init(void)
29 | {
30 |
31 | }
32 |
33 | /* USER CODE BEGIN 1 */
34 |
35 | /* USER CODE END 1 */
36 |
37 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
38 |
--------------------------------------------------------------------------------
/Src/syscalls.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Src/syscalls.c
--------------------------------------------------------------------------------
/Src/uart.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Src/uart.c
--------------------------------------------------------------------------------
/Src/uart1_protocol.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/Src/uart1_protocol.c
--------------------------------------------------------------------------------
/opus-1.3/AUTHORS:
--------------------------------------------------------------------------------
1 | Jean-Marc Valin (jmvalin@jmvalin.ca)
2 | Koen Vos (koenvos74@gmail.com)
3 | Timothy Terriberry (tterribe@xiph.org)
4 | Karsten Vandborg Sorensen (karsten.vandborg.sorensen@skype.net)
5 | Soren Skak Jensen (ssjensen@gn.com)
6 | Gregory Maxwell (greg@xiph.org)
7 |
--------------------------------------------------------------------------------
/opus-1.3/COPYING:
--------------------------------------------------------------------------------
1 | Copyright 2001-2011 Xiph.Org, Skype Limited, Octasic,
2 | Jean-Marc Valin, Timothy B. Terriberry,
3 | CSIRO, Gregory Maxwell, Mark Borgerding,
4 | Erik de Castro Lopo
5 |
6 | Redistribution and use in source and binary forms, with or without
7 | modification, are permitted provided that the following conditions
8 | are met:
9 |
10 | - Redistributions of source code must retain the above copyright
11 | notice, this list of conditions and the following disclaimer.
12 |
13 | - Redistributions in binary form must reproduce the above copyright
14 | notice, this list of conditions and the following disclaimer in the
15 | documentation and/or other materials provided with the distribution.
16 |
17 | - Neither the name of Internet Society, IETF or IETF Trust, nor the
18 | names of specific contributors, may be used to endorse or promote
19 | products derived from this software without specific prior written
20 | permission.
21 |
22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
26 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
27 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
28 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
29 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
30 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
31 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 |
34 | Opus is subject to the royalty-free patent licenses which are
35 | specified at:
36 |
37 | Xiph.Org Foundation:
38 | https://datatracker.ietf.org/ipr/1524/
39 |
40 | Microsoft Corporation:
41 | https://datatracker.ietf.org/ipr/1914/
42 |
43 | Broadcom Corporation:
44 | https://datatracker.ietf.org/ipr/1526/
45 |
--------------------------------------------------------------------------------
/opus-1.3/ChangeLog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/opus-1.3/ChangeLog
--------------------------------------------------------------------------------
/opus-1.3/NEWS:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atikbif/VOIPPoint/f990848ef06e688de61a9caa64acdf13e26c2bd1/opus-1.3/NEWS
--------------------------------------------------------------------------------
/opus-1.3/celt/arm/armcpu.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2010 Xiph.Org Foundation
2 | * Copyright (c) 2013 Parrot */
3 | /*
4 | Redistribution and use in source and binary forms, with or without
5 | modification, are permitted provided that the following conditions
6 | are met:
7 |
8 | - Redistributions of source code must retain the above copyright
9 | notice, this list of conditions and the following disclaimer.
10 |
11 | - Redistributions in binary form must reproduce the above copyright
12 | notice, this list of conditions and the following disclaimer in the
13 | documentation and/or other materials provided with the distribution.
14 |
15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
19 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 |
28 | #if !defined(ARMCPU_H)
29 | # define ARMCPU_H
30 |
31 | # if defined(OPUS_ARM_MAY_HAVE_EDSP)
32 | # define MAY_HAVE_EDSP(name) name ## _edsp
33 | # else
34 | # define MAY_HAVE_EDSP(name) name ## _c
35 | # endif
36 |
37 | # if defined(OPUS_ARM_MAY_HAVE_MEDIA)
38 | # define MAY_HAVE_MEDIA(name) name ## _media
39 | # else
40 | # define MAY_HAVE_MEDIA(name) MAY_HAVE_EDSP(name)
41 | # endif
42 |
43 | # if defined(OPUS_ARM_MAY_HAVE_NEON)
44 | # define MAY_HAVE_NEON(name) name ## _neon
45 | # else
46 | # define MAY_HAVE_NEON(name) MAY_HAVE_MEDIA(name)
47 | # endif
48 |
49 | # if defined(OPUS_ARM_PRESUME_EDSP)
50 | # define PRESUME_EDSP(name) name ## _edsp
51 | # else
52 | # define PRESUME_EDSP(name) name ## _c
53 | # endif
54 |
55 | # if defined(OPUS_ARM_PRESUME_MEDIA)
56 | # define PRESUME_MEDIA(name) name ## _media
57 | # else
58 | # define PRESUME_MEDIA(name) PRESUME_EDSP(name)
59 | # endif
60 |
61 | # if defined(OPUS_ARM_PRESUME_NEON)
62 | # define PRESUME_NEON(name) name ## _neon
63 | # else
64 | # define PRESUME_NEON(name) PRESUME_MEDIA(name)
65 | # endif
66 |
67 | # if defined(OPUS_HAVE_RTCD)
68 | int opus_select_arch(void);
69 |
70 | #define OPUS_ARCH_ARM_V4 (0)
71 | #define OPUS_ARCH_ARM_EDSP (1)
72 | #define OPUS_ARCH_ARM_MEDIA (2)
73 | #define OPUS_ARCH_ARM_NEON (3)
74 |
75 | # endif
76 |
77 | #endif
78 |
--------------------------------------------------------------------------------
/opus-1.3/celt/arm/armopts.s.in:
--------------------------------------------------------------------------------
1 | /* Copyright (C) 2013 Mozilla Corporation */
2 | /*
3 | Redistribution and use in source and binary forms, with or without
4 | modification, are permitted provided that the following conditions
5 | are met:
6 |
7 | - Redistributions of source code must retain the above copyright
8 | notice, this list of conditions and the following disclaimer.
9 |
10 | - Redistributions in binary form must reproduce the above copyright
11 | notice, this list of conditions and the following disclaimer in the
12 | documentation and/or other materials provided with the distribution.
13 |
14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
18 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
22 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
23 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 | */
26 |
27 | ; Set the following to 1 if we have EDSP instructions
28 | ; (LDRD/STRD, etc., ARMv5E and later).
29 | OPUS_ARM_MAY_HAVE_EDSP * @OPUS_ARM_MAY_HAVE_EDSP@
30 |
31 | ; Set the following to 1 if we have ARMv6 media instructions.
32 | OPUS_ARM_MAY_HAVE_MEDIA * @OPUS_ARM_MAY_HAVE_MEDIA@
33 |
34 | ; Set the following to 1 if we have NEON (some ARMv7)
35 | OPUS_ARM_MAY_HAVE_NEON * @OPUS_ARM_MAY_HAVE_NEON@
36 |
37 | END
38 |
--------------------------------------------------------------------------------
/opus-1.3/celt/arm/fft_arm.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Xiph.Org Foundation
2 | Written by Viswanath Puttagunta */
3 | /**
4 | @file fft_arm.h
5 | @brief ARM Neon Intrinsic optimizations for fft using NE10 library
6 | */
7 |
8 | /*
9 | Redistribution and use in source and binary forms, with or without
10 | modification, are permitted provided that the following conditions
11 | are met:
12 |
13 | - Redistributions of source code must retain the above copyright
14 | notice, this list of conditions and the following disclaimer.
15 |
16 | - Redistributions in binary form must reproduce the above copyright
17 | notice, this list of conditions and the following disclaimer in the
18 | documentation and/or other materials provided with the distribution.
19 |
20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
24 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 | */
32 |
33 |
34 | #if !defined(FFT_ARM_H)
35 | #define FFT_ARM_H
36 |
37 | #include "kiss_fft.h"
38 |
39 | #if defined(HAVE_ARM_NE10)
40 |
41 | int opus_fft_alloc_arm_neon(kiss_fft_state *st);
42 | void opus_fft_free_arm_neon(kiss_fft_state *st);
43 |
44 | void opus_fft_neon(const kiss_fft_state *st,
45 | const kiss_fft_cpx *fin,
46 | kiss_fft_cpx *fout);
47 |
48 | void opus_ifft_neon(const kiss_fft_state *st,
49 | const kiss_fft_cpx *fin,
50 | kiss_fft_cpx *fout);
51 |
52 | #if !defined(OPUS_HAVE_RTCD)
53 | #define OVERRIDE_OPUS_FFT (1)
54 |
55 | #define opus_fft_alloc_arch(_st, arch) \
56 | ((void)(arch), opus_fft_alloc_arm_neon(_st))
57 |
58 | #define opus_fft_free_arch(_st, arch) \
59 | ((void)(arch), opus_fft_free_arm_neon(_st))
60 |
61 | #define opus_fft(_st, _fin, _fout, arch) \
62 | ((void)(arch), opus_fft_neon(_st, _fin, _fout))
63 |
64 | #define opus_ifft(_st, _fin, _fout, arch) \
65 | ((void)(arch), opus_ifft_neon(_st, _fin, _fout))
66 |
67 | #endif /* OPUS_HAVE_RTCD */
68 |
69 | #endif /* HAVE_ARM_NE10 */
70 |
71 | #endif
72 |
--------------------------------------------------------------------------------
/opus-1.3/celt/arm/fixed_arm64.h:
--------------------------------------------------------------------------------
1 | /* Copyright (C) 2015 Vidyo */
2 | /*
3 | Redistribution and use in source and binary forms, with or without
4 | modification, are permitted provided that the following conditions
5 | are met:
6 |
7 | - Redistributions of source code must retain the above copyright
8 | notice, this list of conditions and the following disclaimer.
9 |
10 | - Redistributions in binary form must reproduce the above copyright
11 | notice, this list of conditions and the following disclaimer in the
12 | documentation and/or other materials provided with the distribution.
13 |
14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
18 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
22 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
23 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 | */
26 |
27 | #ifndef FIXED_ARM64_H
28 | #define FIXED_ARM64_H
29 |
30 | #include
31 |
32 | #undef SIG2WORD16
33 | #define SIG2WORD16(x) (vqmovns_s32(PSHR32((x), SIG_SHIFT)))
34 |
35 | #endif
36 |
--------------------------------------------------------------------------------
/opus-1.3/celt/arm/mdct_arm.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2015 Xiph.Org Foundation
2 | Written by Viswanath Puttagunta */
3 | /**
4 | @file arm_mdct.h
5 | @brief ARM Neon Intrinsic optimizations for mdct using NE10 library
6 | */
7 |
8 | /*
9 | Redistribution and use in source and binary forms, with or without
10 | modification, are permitted provided that the following conditions
11 | are met:
12 |
13 | - Redistributions of source code must retain the above copyright
14 | notice, this list of conditions and the following disclaimer.
15 |
16 | - Redistributions in binary form must reproduce the above copyright
17 | notice, this list of conditions and the following disclaimer in the
18 | documentation and/or other materials provided with the distribution.
19 |
20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
24 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 | */
32 |
33 | #if !defined(MDCT_ARM_H)
34 | #define MDCT_ARM_H
35 |
36 | #include "mdct.h"
37 |
38 | #if defined(HAVE_ARM_NE10)
39 | /** Compute a forward MDCT and scale by 4/N, trashes the input array */
40 | void clt_mdct_forward_neon(const mdct_lookup *l, kiss_fft_scalar *in,
41 | kiss_fft_scalar * OPUS_RESTRICT out,
42 | const opus_val16 *window, int overlap,
43 | int shift, int stride, int arch);
44 |
45 | void clt_mdct_backward_neon(const mdct_lookup *l, kiss_fft_scalar *in,
46 | kiss_fft_scalar * OPUS_RESTRICT out,
47 | const opus_val16 *window, int overlap,
48 | int shift, int stride, int arch);
49 |
50 | #if !defined(OPUS_HAVE_RTCD)
51 | #define OVERRIDE_OPUS_MDCT (1)
52 | #define clt_mdct_forward(_l, _in, _out, _window, _int, _shift, _stride, _arch) \
53 | clt_mdct_forward_neon(_l, _in, _out, _window, _int, _shift, _stride, _arch)
54 | #define clt_mdct_backward(_l, _in, _out, _window, _int, _shift, _stride, _arch) \
55 | clt_mdct_backward_neon(_l, _in, _out, _window, _int, _shift, _stride, _arch)
56 | #endif /* OPUS_HAVE_RTCD */
57 | #endif /* HAVE_ARM_NE10 */
58 |
59 | #endif
60 |
--------------------------------------------------------------------------------
/opus-1.3/celt/celt_lpc.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2009-2010 Xiph.Org Foundation
2 | Written by Jean-Marc Valin */
3 | /*
4 | Redistribution and use in source and binary forms, with or without
5 | modification, are permitted provided that the following conditions
6 | are met:
7 |
8 | - Redistributions of source code must retain the above copyright
9 | notice, this list of conditions and the following disclaimer.
10 |
11 | - Redistributions in binary form must reproduce the above copyright
12 | notice, this list of conditions and the following disclaimer in the
13 | documentation and/or other materials provided with the distribution.
14 |
15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
19 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 |
28 | #ifndef PLC_H
29 | #define PLC_H
30 |
31 | #include "arch.h"
32 | #include "cpu_support.h"
33 |
34 | #if defined(OPUS_X86_MAY_HAVE_SSE4_1)
35 | #include "x86/celt_lpc_sse.h"
36 | #endif
37 |
38 | #define LPC_ORDER 24
39 |
40 | void _celt_lpc(opus_val16 *_lpc, const opus_val32 *ac, int p);
41 |
42 | void celt_fir_c(
43 | const opus_val16 *x,
44 | const opus_val16 *num,
45 | opus_val16 *y,
46 | int N,
47 | int ord,
48 | int arch);
49 |
50 | #if !defined(OVERRIDE_CELT_FIR)
51 | #define celt_fir(x, num, y, N, ord, arch) \
52 | (celt_fir_c(x, num, y, N, ord, arch))
53 | #endif
54 |
55 | void celt_iir(const opus_val32 *x,
56 | const opus_val16 *den,
57 | opus_val32 *y,
58 | int N,
59 | int ord,
60 | opus_val16 *mem,
61 | int arch);
62 |
63 | int _celt_autocorr(const opus_val16 *x, opus_val32 *ac,
64 | const opus_val16 *window, int overlap, int lag, int n, int arch);
65 |
66 | #endif /* PLC_H */
67 |
--------------------------------------------------------------------------------
/opus-1.3/celt/cpu_support.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2010 Xiph.Org Foundation
2 | * Copyright (c) 2013 Parrot */
3 | /*
4 | Redistribution and use in source and binary forms, with or without
5 | modification, are permitted provided that the following conditions
6 | are met:
7 |
8 | - Redistributions of source code must retain the above copyright
9 | notice, this list of conditions and the following disclaimer.
10 |
11 | - Redistributions in binary form must reproduce the above copyright
12 | notice, this list of conditions and the following disclaimer in the
13 | documentation and/or other materials provided with the distribution.
14 |
15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
19 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 |
28 | #ifndef CPU_SUPPORT_H
29 | #define CPU_SUPPORT_H
30 |
31 | #include "opus_types.h"
32 | #include "opus_defines.h"
33 |
34 | #if defined(OPUS_HAVE_RTCD) && \
35 | (defined(OPUS_ARM_ASM) || defined(OPUS_ARM_MAY_HAVE_NEON_INTR))
36 | #include "arm/armcpu.h"
37 |
38 | /* We currently support 4 ARM variants:
39 | * arch[0] -> ARMv4
40 | * arch[1] -> ARMv5E
41 | * arch[2] -> ARMv6
42 | * arch[3] -> NEON
43 | */
44 | #define OPUS_ARCHMASK 3
45 |
46 | #elif (defined(OPUS_X86_MAY_HAVE_SSE) && !defined(OPUS_X86_PRESUME_SSE)) || \
47 | (defined(OPUS_X86_MAY_HAVE_SSE2) && !defined(OPUS_X86_PRESUME_SSE2)) || \
48 | (defined(OPUS_X86_MAY_HAVE_SSE4_1) && !defined(OPUS_X86_PRESUME_SSE4_1)) || \
49 | (defined(OPUS_X86_MAY_HAVE_AVX) && !defined(OPUS_X86_PRESUME_AVX))
50 |
51 | #include "x86/x86cpu.h"
52 | /* We currently support 5 x86 variants:
53 | * arch[0] -> non-sse
54 | * arch[1] -> sse
55 | * arch[2] -> sse2
56 | * arch[3] -> sse4.1
57 | * arch[4] -> avx
58 | */
59 | #define OPUS_ARCHMASK 7
60 | int opus_select_arch(void);
61 |
62 | #else
63 | #define OPUS_ARCHMASK 0
64 |
65 | static OPUS_INLINE int opus_select_arch(void)
66 | {
67 | return 0;
68 | }
69 | #endif
70 | #endif
71 |
--------------------------------------------------------------------------------
/opus-1.3/celt/cwrs.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2007-2008 CSIRO
2 | Copyright (c) 2007-2009 Xiph.Org Foundation
3 | Copyright (c) 2007-2009 Timothy B. Terriberry
4 | Written by Timothy B. Terriberry and Jean-Marc Valin */
5 | /*
6 | Redistribution and use in source and binary forms, with or without
7 | modification, are permitted provided that the following conditions
8 | are met:
9 |
10 | - Redistributions of source code must retain the above copyright
11 | notice, this list of conditions and the following disclaimer.
12 |
13 | - Redistributions in binary form must reproduce the above copyright
14 | notice, this list of conditions and the following disclaimer in the
15 | documentation and/or other materials provided with the distribution.
16 |
17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
21 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
24 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
25 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | */
29 |
30 | #ifndef CWRS_H
31 | #define CWRS_H
32 |
33 | #include "arch.h"
34 | #include "stack_alloc.h"
35 | #include "entenc.h"
36 | #include "entdec.h"
37 |
38 | #ifdef CUSTOM_MODES
39 | int log2_frac(opus_uint32 val, int frac);
40 | #endif
41 |
42 | void get_required_bits(opus_int16 *bits, int N, int K, int frac);
43 |
44 | void encode_pulses(const int *_y, int N, int K, ec_enc *enc);
45 |
46 | opus_val32 decode_pulses(int *_y, int N, int K, ec_dec *dec);
47 |
48 | #endif /* CWRS_H */
49 |
--------------------------------------------------------------------------------
/opus-1.3/celt/laplace.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2007 CSIRO
2 | Copyright (c) 2007-2009 Xiph.Org Foundation
3 | Written by Jean-Marc Valin */
4 | /*
5 | Redistribution and use in source and binary forms, with or without
6 | modification, are permitted provided that the following conditions
7 | are met:
8 |
9 | - Redistributions of source code must retain the above copyright
10 | notice, this list of conditions and the following disclaimer.
11 |
12 | - Redistributions in binary form must reproduce the above copyright
13 | notice, this list of conditions and the following disclaimer in the
14 | documentation and/or other materials provided with the distribution.
15 |
16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
20 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | */
28 |
29 | #include "entenc.h"
30 | #include "entdec.h"
31 |
32 | /** Encode a value that is assumed to be the realisation of a
33 | Laplace-distributed random process
34 | @param enc Entropy encoder state
35 | @param value Value to encode
36 | @param fs Probability of 0, multiplied by 32768
37 | @param decay Probability of the value +/- 1, multiplied by 16384
38 | */
39 | void ec_laplace_encode(ec_enc *enc, int *value, unsigned fs, int decay);
40 |
41 | /** Decode a value that is assumed to be the realisation of a
42 | Laplace-distributed random process
43 | @param dec Entropy decoder state
44 | @param fs Probability of 0, multiplied by 32768
45 | @param decay Probability of the value +/- 1, multiplied by 16384
46 | @return Value decoded
47 | */
48 | int ec_laplace_decode(ec_dec *dec, unsigned fs, int decay);
49 |
--------------------------------------------------------------------------------
/opus-1.3/celt/mfrngcod.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2001-2008 Timothy B. Terriberry
2 | Copyright (c) 2008-2009 Xiph.Org Foundation */
3 | /*
4 | Redistribution and use in source and binary forms, with or without
5 | modification, are permitted provided that the following conditions
6 | are met:
7 |
8 | - Redistributions of source code must retain the above copyright
9 | notice, this list of conditions and the following disclaimer.
10 |
11 | - Redistributions in binary form must reproduce the above copyright
12 | notice, this list of conditions and the following disclaimer in the
13 | documentation and/or other materials provided with the distribution.
14 |
15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
19 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 |
28 | #if !defined(_mfrngcode_H)
29 | # define _mfrngcode_H (1)
30 | # include "entcode.h"
31 |
32 | /*Constants used by the entropy encoder/decoder.*/
33 |
34 | /*The number of bits to output at a time.*/
35 | # define EC_SYM_BITS (8)
36 | /*The total number of bits in each of the state registers.*/
37 | # define EC_CODE_BITS (32)
38 | /*The maximum symbol value.*/
39 | # define EC_SYM_MAX ((1U<>EC_SYM_BITS)
46 | /*The number of bits available for the last, partial symbol in the code field.*/
47 | # define EC_CODE_EXTRA ((EC_CODE_BITS-2)%EC_SYM_BITS+1)
48 | #endif
49 |
--------------------------------------------------------------------------------
/opus-1.3/celt/modes.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2007-2008 CSIRO
2 | Copyright (c) 2007-2009 Xiph.Org Foundation
3 | Copyright (c) 2008 Gregory Maxwell
4 | Written by Jean-Marc Valin and Gregory Maxwell */
5 | /*
6 | Redistribution and use in source and binary forms, with or without
7 | modification, are permitted provided that the following conditions
8 | are met:
9 |
10 | - Redistributions of source code must retain the above copyright
11 | notice, this list of conditions and the following disclaimer.
12 |
13 | - Redistributions in binary form must reproduce the above copyright
14 | notice, this list of conditions and the following disclaimer in the
15 | documentation and/or other materials provided with the distribution.
16 |
17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
21 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
24 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
25 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | */
29 |
30 | #ifndef MODES_H
31 | #define MODES_H
32 |
33 | #include "opus_types.h"
34 | #include "celt.h"
35 | #include "arch.h"
36 | #include "mdct.h"
37 | #include "entenc.h"
38 | #include "entdec.h"
39 |
40 | #define MAX_PERIOD 1024
41 |
42 | typedef struct {
43 | int size;
44 | const opus_int16 *index;
45 | const unsigned char *bits;
46 | const unsigned char *caps;
47 | } PulseCache;
48 |
49 | /** Mode definition (opaque)
50 | @brief Mode definition
51 | */
52 | struct OpusCustomMode {
53 | opus_int32 Fs;
54 | int overlap;
55 |
56 | int nbEBands;
57 | int effEBands;
58 | opus_val16 preemph[4];
59 | const opus_int16 *eBands; /**< Definition for each "pseudo-critical band" */
60 |
61 | int maxLM;
62 | int nbShortMdcts;
63 | int shortMdctSize;
64 |
65 | int nbAllocVectors; /**< Number of lines in the matrix below */
66 | const unsigned char *allocVectors; /**< Number of bits in each band for several rates */
67 | const opus_int16 *logN;
68 |
69 | const opus_val16 *window;
70 | mdct_lookup mdct;
71 | PulseCache cache;
72 | };
73 |
74 |
75 | #endif
76 |
--------------------------------------------------------------------------------
/opus-1.3/celt/tests/test_unit_laplace.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2008-2011 Xiph.Org Foundation, Mozilla Corporation
2 | Written by Jean-Marc Valin and Timothy B. Terriberry */
3 | /*
4 | Redistribution and use in source and binary forms, with or without
5 | modification, are permitted provided that the following conditions
6 | are met:
7 |
8 | - Redistributions of source code must retain the above copyright
9 | notice, this list of conditions and the following disclaimer.
10 |
11 | - Redistributions in binary form must reproduce the above copyright
12 | notice, this list of conditions and the following disclaimer in the
13 | documentation and/or other materials provided with the distribution.
14 |
15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
19 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 |
28 | #ifdef HAVE_CONFIG_H
29 | #include "config.h"
30 | #endif
31 |
32 | #include
33 | #include
34 | #define CELT_C
35 | #include "laplace.h"
36 | #include "stack_alloc.h"
37 |
38 | #include "entenc.c"
39 | #include "entdec.c"
40 | #include "entcode.c"
41 | #include "laplace.c"
42 |
43 | #define DATA_SIZE 40000
44 |
45 | int ec_laplace_get_start_freq(int decay)
46 | {
47 | opus_uint32 ft = 32768 - LAPLACE_MINP*(2*LAPLACE_NMIN+1);
48 | int fs = (ft*(16384-decay))/(16384+decay);
49 | return fs+LAPLACE_MINP;
50 | }
51 |
52 | int main(void)
53 | {
54 | int i;
55 | int ret = 0;
56 | ec_enc enc;
57 | ec_dec dec;
58 | unsigned char *ptr;
59 | int val[10000], decay[10000];
60 | ALLOC_STACK;
61 | ptr = (unsigned char *)malloc(DATA_SIZE);
62 | ec_enc_init(&enc,ptr,DATA_SIZE);
63 |
64 | val[0] = 3; decay[0] = 6000;
65 | val[1] = 0; decay[1] = 5800;
66 | val[2] = -1; decay[2] = 5600;
67 | for (i=3;i<10000;i++)
68 | {
69 | val[i] = rand()%15-7;
70 | decay[i] = rand()%11000+5000;
71 | }
72 | for (i=0;i<10000;i++)
73 | ec_laplace_encode(&enc, &val[i],
74 | ec_laplace_get_start_freq(decay[i]), decay[i]);
75 |
76 | ec_enc_done(&enc);
77 |
78 | ec_dec_init(&dec,ec_get_buffer(&enc),ec_range_bytes(&enc));
79 |
80 | for (i=0;i<10000;i++)
81 | {
82 | int d = ec_laplace_decode(&dec,
83 | ec_laplace_get_start_freq(decay[i]), decay[i]);
84 | if (d != val[i])
85 | {
86 | fprintf (stderr, "Got %d instead of %d\n", d, val[i]);
87 | ret = 1;
88 | }
89 | }
90 |
91 | free(ptr);
92 | return ret;
93 | }
94 |
--------------------------------------------------------------------------------
/opus-1.3/celt/tests/test_unit_rotation.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2008-2011 Xiph.Org Foundation
2 | Written by Jean-Marc Valin */
3 | /*
4 | Redistribution and use in source and binary forms, with or without
5 | modification, are permitted provided that the following conditions
6 | are met:
7 |
8 | - Redistributions of source code must retain the above copyright
9 | notice, this list of conditions and the following disclaimer.
10 |
11 | - Redistributions in binary form must reproduce the above copyright
12 | notice, this list of conditions and the following disclaimer in the
13 | documentation and/or other materials provided with the distribution.
14 |
15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
19 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 |
28 | #ifdef HAVE_CONFIG_H
29 | #include "config.h"
30 | #endif
31 |
32 | #ifndef CUSTOM_MODES
33 | #define CUSTOM_MODES
34 | #endif
35 |
36 | #include
37 | #include
38 | #include "vq.h"
39 | #include "bands.h"
40 | #include "stack_alloc.h"
41 | #include
42 |
43 |
44 | #define MAX_SIZE 100
45 |
46 | int ret=0;
47 | void test_rotation(int N, int K)
48 | {
49 | int i;
50 | double err = 0, ener = 0, snr, snr0;
51 | opus_val16 x0[MAX_SIZE];
52 | opus_val16 x1[MAX_SIZE];
53 | for (i=0;i 20)
72 | {
73 | fprintf(stderr, "FAIL!\n");
74 | ret = 1;
75 | }
76 | }
77 |
78 | int main(void)
79 | {
80 | ALLOC_STACK;
81 | test_rotation(15, 3);
82 | test_rotation(23, 5);
83 | test_rotation(50, 3);
84 | test_rotation(80, 1);
85 | return ret;
86 | }
87 |
--------------------------------------------------------------------------------
/opus-1.3/celt/tests/test_unit_types.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2008-2011 Xiph.Org Foundation
2 | Written by Jean-Marc Valin */
3 | /*
4 | Redistribution and use in source and binary forms, with or without
5 | modification, are permitted provided that the following conditions
6 | are met:
7 |
8 | - Redistributions of source code must retain the above copyright
9 | notice, this list of conditions and the following disclaimer.
10 |
11 | - Redistributions in binary form must reproduce the above copyright
12 | notice, this list of conditions and the following disclaimer in the
13 | documentation and/or other materials provided with the distribution.
14 |
15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
19 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 |
28 | #ifdef HAVE_CONFIG_H
29 | #include "config.h"
30 | #endif
31 |
32 | #include "opus_types.h"
33 | #include
34 |
35 | int main(void)
36 | {
37 | opus_int16 i = 1;
38 | i <<= 14;
39 | if (i>>14 != 1)
40 | {
41 | fprintf(stderr, "opus_int16 isn't 16 bits\n");
42 | return 1;
43 | }
44 | if (sizeof(opus_int16)*2 != sizeof(opus_int32))
45 | {
46 | fprintf(stderr, "16*2 != 32\n");
47 | return 1;
48 | }
49 | return 0;
50 | }
51 |
--------------------------------------------------------------------------------
/opus-1.3/celt/x86/celt_lpc_sse.h:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014, Cisco Systems, INC
2 | Written by XiangMingZhu WeiZhou MinPeng YanWang
3 |
4 | Redistribution and use in source and binary forms, with or without
5 | modification, are permitted provided that the following conditions
6 | are met:
7 |
8 | - Redistributions of source code must retain the above copyright
9 | notice, this list of conditions and the following disclaimer.
10 |
11 | - Redistributions in binary form must reproduce the above copyright
12 | notice, this list of conditions and the following disclaimer in the
13 | documentation and/or other materials provided with the distribution.
14 |
15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
19 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 |
28 | #ifndef CELT_LPC_SSE_H
29 | #define CELT_LPC_SSE_H
30 |
31 | #ifdef HAVE_CONFIG_H
32 | #include "config.h"
33 | #endif
34 |
35 | #if defined(OPUS_X86_MAY_HAVE_SSE4_1) && defined(FIXED_POINT)
36 | #define OVERRIDE_CELT_FIR
37 |
38 | void celt_fir_sse4_1(
39 | const opus_val16 *x,
40 | const opus_val16 *num,
41 | opus_val16 *y,
42 | int N,
43 | int ord,
44 | int arch);
45 |
46 | #if defined(OPUS_X86_PRESUME_SSE4_1)
47 | #define celt_fir(x, num, y, N, ord, arch) \
48 | ((void)arch, celt_fir_sse4_1(x, num, y, N, ord, arch))
49 |
50 | #else
51 |
52 | extern void (*const CELT_FIR_IMPL[OPUS_ARCHMASK + 1])(
53 | const opus_val16 *x,
54 | const opus_val16 *num,
55 | opus_val16 *y,
56 | int N,
57 | int ord,
58 | int arch);
59 |
60 | # define celt_fir(x, num, y, N, ord, arch) \
61 | ((*CELT_FIR_IMPL[(arch) & OPUS_ARCHMASK])(x, num, y, N, ord, arch))
62 |
63 | #endif
64 | #endif
65 |
66 | #endif
67 |
--------------------------------------------------------------------------------
/opus-1.3/celt/x86/celt_lpc_sse4_1.c:
--------------------------------------------------------------------------------
1 | /* Copyright (c) 2014, Cisco Systems, INC
2 | Written by XiangMingZhu WeiZhou MinPeng YanWang
3 |
4 | Redistribution and use in source and binary forms, with or without
5 | modification, are permitted provided that the following conditions
6 | are met:
7 |
8 | - Redistributions of source code must retain the above copyright
9 | notice, this list of conditions and the following disclaimer.
10 |
11 | - Redistributions in binary form must reproduce the above copyright
12 | notice, this list of conditions and the following disclaimer in the
13 | documentation and/or other materials provided with the distribution.
14 |
15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
19 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 | */
27 |
28 | #ifdef HAVE_CONFIG_H
29 | #include "config.h"
30 | #endif
31 |
32 | #include
33 | #include
34 | #include
35 | #include "celt_lpc.h"
36 | #include "stack_alloc.h"
37 | #include "mathops.h"
38 | #include "pitch.h"
39 | #include "x86cpu.h"
40 |
41 | #if defined(FIXED_POINT)
42 |
43 | void celt_fir_sse4_1(const opus_val16 *x,
44 | const opus_val16 *num,
45 | opus_val16 *y,
46 | int N,
47 | int ord,
48 | int arch)
49 | {
50 | int i,j;
51 | VARDECL(opus_val16, rnum);
52 |
53 | __m128i vecNoA;
54 | opus_int32 noA ;
55 | SAVE_STACK;
56 |
57 | ALLOC(rnum, ord, opus_val16);
58 | for(i=0;i> 1;
61 | vecNoA = _mm_set_epi32(noA, noA, noA, noA);
62 |
63 | for (i=0;i
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | For more information visit the Opus Website.
15 | |
16 |
17 |
22 | |
23 |
24 |
25 |
26 |
27 |