├── .clang-format ├── .gitignore ├── .mxproject ├── .vscode ├── .cortex-debug.peripherals.state.json ├── .cortex-debug.registers.state.json ├── c_cpp_properties.json ├── keybindings.json ├── launch.json ├── settings.json └── tasks.json ├── CanHack-TX-lists.txl ├── Drivers ├── CMSIS │ ├── Core │ │ ├── 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 │ │ └── Template │ │ │ └── ARMv8-M │ │ │ ├── main_s.c │ │ │ └── tz_context.c │ ├── Core_A │ │ ├── Include │ │ │ ├── cmsis_armcc.h │ │ │ ├── cmsis_armclang.h │ │ │ ├── cmsis_compiler.h │ │ │ ├── cmsis_cp15.h │ │ │ ├── cmsis_gcc.h │ │ │ ├── cmsis_iccarm.h │ │ │ ├── core_ca.h │ │ │ └── irq_ctrl.h │ │ └── Source │ │ │ └── irq_ctrl_gic.c │ ├── DSP │ │ ├── DSP_Lib_TestSuite │ │ │ ├── Common │ │ │ │ ├── JTest │ │ │ │ │ ├── inc │ │ │ │ │ │ ├── arr_desc │ │ │ │ │ │ │ └── arr_desc.h │ │ │ │ │ │ ├── jtest.h │ │ │ │ │ │ ├── jtest_cycle.h │ │ │ │ │ │ ├── jtest_define.h │ │ │ │ │ │ ├── jtest_fw.h │ │ │ │ │ │ ├── jtest_group.h │ │ │ │ │ │ ├── jtest_group_call.h │ │ │ │ │ │ ├── jtest_group_define.h │ │ │ │ │ │ ├── jtest_pf.h │ │ │ │ │ │ ├── jtest_systick.h │ │ │ │ │ │ ├── jtest_test.h │ │ │ │ │ │ ├── jtest_test_call.h │ │ │ │ │ │ ├── jtest_test_define.h │ │ │ │ │ │ ├── jtest_test_ret.h │ │ │ │ │ │ ├── jtest_util.h │ │ │ │ │ │ ├── opt_arg │ │ │ │ │ │ │ ├── opt_arg.h │ │ │ │ │ │ │ ├── pp_narg.h │ │ │ │ │ │ │ └── splice.h │ │ │ │ │ │ └── util │ │ │ │ │ │ │ └── util.h │ │ │ │ │ └── src │ │ │ │ │ │ ├── jtest_cycle.c │ │ │ │ │ │ ├── jtest_dump_str_segments.c │ │ │ │ │ │ ├── jtest_fw.c │ │ │ │ │ │ └── jtest_trigger_action.c │ │ │ │ ├── inc │ │ │ │ │ ├── all_tests.h │ │ │ │ │ ├── basic_math_tests │ │ │ │ │ │ ├── basic_math_templates.h │ │ │ │ │ │ ├── basic_math_test_data.h │ │ │ │ │ │ ├── basic_math_test_group.h │ │ │ │ │ │ └── basic_math_tests.h │ │ │ │ │ ├── complex_math_tests │ │ │ │ │ │ ├── complex_math_templates.h │ │ │ │ │ │ ├── complex_math_test_data.h │ │ │ │ │ │ ├── complex_math_test_group.h │ │ │ │ │ │ └── complex_math_tests.h │ │ │ │ │ ├── controller_tests │ │ │ │ │ │ ├── controller_templates.h │ │ │ │ │ │ ├── controller_test_data.h │ │ │ │ │ │ ├── controller_test_group.h │ │ │ │ │ │ └── controller_tests.h │ │ │ │ │ ├── fast_math_tests │ │ │ │ │ │ ├── fast_math_templates.h │ │ │ │ │ │ ├── fast_math_test_data.h │ │ │ │ │ │ └── fast_math_test_group.h │ │ │ │ │ ├── filtering_tests │ │ │ │ │ │ ├── filtering_templates.h │ │ │ │ │ │ ├── filtering_test_data.h │ │ │ │ │ │ ├── filtering_test_group.h │ │ │ │ │ │ └── filtering_tests.h │ │ │ │ │ ├── intrinsics_tests │ │ │ │ │ │ ├── intrinsics_templates.h │ │ │ │ │ │ ├── intrinsics_test_data.h │ │ │ │ │ │ └── intrinsics_test_group.h │ │ │ │ │ ├── math_helper.h │ │ │ │ │ ├── matrix_tests │ │ │ │ │ │ ├── matrix_templates.h │ │ │ │ │ │ ├── matrix_test_data.h │ │ │ │ │ │ ├── matrix_test_group.h │ │ │ │ │ │ └── matrix_tests.h │ │ │ │ │ ├── statistics_tests │ │ │ │ │ │ ├── statistics_templates.h │ │ │ │ │ │ ├── statistics_test_data.h │ │ │ │ │ │ ├── statistics_test_group.h │ │ │ │ │ │ └── statistics_tests.h │ │ │ │ │ ├── support_tests │ │ │ │ │ │ ├── support_templates.h │ │ │ │ │ │ ├── support_test_data.h │ │ │ │ │ │ ├── support_test_group.h │ │ │ │ │ │ └── support_tests.h │ │ │ │ │ ├── templates │ │ │ │ │ │ ├── template.h │ │ │ │ │ │ └── test_templates.h │ │ │ │ │ ├── transform_tests │ │ │ │ │ │ ├── transform_templates.h │ │ │ │ │ │ ├── transform_test_data.h │ │ │ │ │ │ ├── transform_test_group.h │ │ │ │ │ │ └── transform_tests.h │ │ │ │ │ └── type_abbrev.h │ │ │ │ ├── platform │ │ │ │ │ ├── ARMCC │ │ │ │ │ │ ├── Retarget.c │ │ │ │ │ │ ├── startup_armv6-m.s │ │ │ │ │ │ └── startup_armv7-m.s │ │ │ │ │ ├── ARMCLANG │ │ │ │ │ │ ├── startup_armv6-m.S │ │ │ │ │ │ └── startup_armv7-m.S │ │ │ │ │ ├── GCC │ │ │ │ │ │ ├── Retarget.c │ │ │ │ │ │ ├── startup_armv6-m.S │ │ │ │ │ │ └── startup_armv7-m.S │ │ │ │ │ ├── startup_generic.S │ │ │ │ │ ├── system_ARMCM0.c │ │ │ │ │ ├── system_ARMCM23.c │ │ │ │ │ ├── system_ARMCM3.c │ │ │ │ │ ├── system_ARMCM33.c │ │ │ │ │ ├── system_ARMCM4.c │ │ │ │ │ ├── system_ARMCM7.c │ │ │ │ │ ├── system_ARMSC000.c │ │ │ │ │ ├── system_ARMSC300.c │ │ │ │ │ ├── system_ARMv8MBL.c │ │ │ │ │ ├── system_ARMv8MML.c │ │ │ │ │ └── system_generic.c │ │ │ │ └── src │ │ │ │ │ ├── all_tests.c │ │ │ │ │ ├── basic_math_tests │ │ │ │ │ ├── abs_tests.c │ │ │ │ │ ├── add_tests.c │ │ │ │ │ ├── basic_math_test_common_data.c │ │ │ │ │ ├── basic_math_test_group.c │ │ │ │ │ ├── dot_prod_tests.c │ │ │ │ │ ├── mult_tests.c │ │ │ │ │ ├── negate_tests.c │ │ │ │ │ ├── offset_tests.c │ │ │ │ │ ├── scale_tests.c │ │ │ │ │ ├── shift_tests.c │ │ │ │ │ └── sub_tests.c │ │ │ │ │ ├── complex_math_tests │ │ │ │ │ ├── cmplx_conj_tests.c │ │ │ │ │ ├── cmplx_dot_prod_tests.c │ │ │ │ │ ├── cmplx_mag_squared_tests.c │ │ │ │ │ ├── cmplx_mag_tests.c │ │ │ │ │ ├── cmplx_mult_cmplx_tests.c │ │ │ │ │ ├── cmplx_mult_real_test.c │ │ │ │ │ ├── complex_math_test_common_data.c │ │ │ │ │ └── complex_math_test_group.c │ │ │ │ │ ├── controller_tests │ │ │ │ │ ├── controller_test_common_data.c │ │ │ │ │ ├── controller_test_group.c │ │ │ │ │ ├── pid_reset_tests.c │ │ │ │ │ ├── pid_tests.c │ │ │ │ │ └── sin_cos_tests.c │ │ │ │ │ ├── fast_math_tests │ │ │ │ │ ├── fast_math_tests.c │ │ │ │ │ └── fast_math_tests_common_data.c │ │ │ │ │ ├── filtering_tests │ │ │ │ │ ├── biquad_tests.c │ │ │ │ │ ├── conv_tests.c │ │ │ │ │ ├── correlate_tests.c │ │ │ │ │ ├── filtering_test_common_data.c │ │ │ │ │ ├── filtering_test_group.c │ │ │ │ │ ├── fir_tests.c │ │ │ │ │ ├── iir_tests.c │ │ │ │ │ └── lms_tests.c │ │ │ │ │ ├── intrinsics_tests │ │ │ │ │ ├── intrinsics_tests.c │ │ │ │ │ └── intrinsics_tests_common_data.c │ │ │ │ │ ├── main.c │ │ │ │ │ ├── math_helper.c │ │ │ │ │ ├── matrix_tests │ │ │ │ │ ├── mat_add_tests.c │ │ │ │ │ ├── mat_cmplx_mult_tests.c │ │ │ │ │ ├── mat_init_tests.c │ │ │ │ │ ├── mat_inverse_tests.c │ │ │ │ │ ├── mat_mult_fast_tests.c │ │ │ │ │ ├── mat_mult_tests.c │ │ │ │ │ ├── mat_scale_tests.c │ │ │ │ │ ├── mat_sub_tests.c │ │ │ │ │ ├── mat_trans_tests.c │ │ │ │ │ ├── matrix_test_common_data.c │ │ │ │ │ └── matrix_test_group.c │ │ │ │ │ ├── statistics_tests │ │ │ │ │ ├── max_tests.c │ │ │ │ │ ├── mean_tests.c │ │ │ │ │ ├── min_tests.c │ │ │ │ │ ├── power_tests.c │ │ │ │ │ ├── rms_tests.c │ │ │ │ │ ├── statistics_test_common_data.c │ │ │ │ │ ├── statistics_test_group.c │ │ │ │ │ ├── std_tests.c │ │ │ │ │ └── var_tests.c │ │ │ │ │ ├── support_tests │ │ │ │ │ ├── copy_tests.c │ │ │ │ │ ├── fill_tests.c │ │ │ │ │ ├── support_test_common_data.c │ │ │ │ │ ├── support_test_group.c │ │ │ │ │ └── x_to_y_tests.c │ │ │ │ │ └── transform_tests │ │ │ │ │ ├── cfft_family_tests.c │ │ │ │ │ ├── cfft_tests.c │ │ │ │ │ ├── dct4_tests.c │ │ │ │ │ ├── rfft_fast_tests.c │ │ │ │ │ ├── rfft_tests.c │ │ │ │ │ ├── transform_test_group.c │ │ │ │ │ └── transform_tests_common_data.c │ │ │ └── RefLibs │ │ │ │ ├── inc │ │ │ │ └── ref.h │ │ │ │ └── src │ │ │ │ ├── BasicMathFunctions │ │ │ │ ├── abs.c │ │ │ │ ├── add.c │ │ │ │ ├── dot_prod.c │ │ │ │ ├── mult.c │ │ │ │ ├── negate.c │ │ │ │ ├── offset.c │ │ │ │ ├── scale.c │ │ │ │ ├── shift.c │ │ │ │ └── sub.c │ │ │ │ ├── ComplexMathFunctions │ │ │ │ ├── cmplx_conj.c │ │ │ │ ├── cmplx_dot_prod.c │ │ │ │ ├── cmplx_mag.c │ │ │ │ ├── cmplx_mag_squared.c │ │ │ │ ├── cmplx_mult_cmplx.c │ │ │ │ └── cmplx_mult_real.c │ │ │ │ ├── ControllerFunctions │ │ │ │ ├── pid.c │ │ │ │ └── sin_cos.c │ │ │ │ ├── FastMathFunctions │ │ │ │ ├── cos.c │ │ │ │ ├── sin.c │ │ │ │ └── sqrt.c │ │ │ │ ├── FilteringFunctions │ │ │ │ ├── biquad.c │ │ │ │ ├── conv.c │ │ │ │ ├── correlate.c │ │ │ │ ├── fir.c │ │ │ │ ├── fir_decimate.c │ │ │ │ ├── fir_interpolate.c │ │ │ │ ├── fir_lattice.c │ │ │ │ ├── fir_sparse.c │ │ │ │ ├── iir_lattice.c │ │ │ │ └── lms.c │ │ │ │ ├── HelperFunctions │ │ │ │ ├── mat_helper.c │ │ │ │ └── ref_helper.c │ │ │ │ ├── Intrinsics │ │ │ │ └── intrinsics.c │ │ │ │ ├── MatrixFunctions │ │ │ │ ├── mat_add.c │ │ │ │ ├── mat_cmplx_mult.c │ │ │ │ ├── mat_inverse.c │ │ │ │ ├── mat_mult.c │ │ │ │ ├── mat_scale.c │ │ │ │ ├── mat_sub.c │ │ │ │ └── mat_trans.c │ │ │ │ ├── StatisticsFunctions │ │ │ │ ├── max.c │ │ │ │ ├── mean.c │ │ │ │ ├── min.c │ │ │ │ ├── power.c │ │ │ │ ├── rms.c │ │ │ │ ├── std.c │ │ │ │ └── var.c │ │ │ │ ├── SupportFunctions │ │ │ │ ├── copy.c │ │ │ │ ├── fill.c │ │ │ │ ├── fixed_to_fixed.c │ │ │ │ ├── fixed_to_float.c │ │ │ │ └── float_to_fixed.c │ │ │ │ └── TransformFunctions │ │ │ │ ├── bitreversal.c │ │ │ │ ├── cfft.c │ │ │ │ ├── dct4.c │ │ │ │ └── rfft.c │ │ ├── Examples │ │ │ └── ARM │ │ │ │ ├── arm_class_marks_example │ │ │ │ └── arm_class_marks_example_f32.c │ │ │ │ ├── arm_convolution_example │ │ │ │ ├── arm_convolution_example_f32.c │ │ │ │ ├── math_helper.c │ │ │ │ └── math_helper.h │ │ │ │ ├── arm_dotproduct_example │ │ │ │ └── arm_dotproduct_example_f32.c │ │ │ │ ├── arm_fft_bin_example │ │ │ │ ├── arm_fft_bin_data.c │ │ │ │ └── arm_fft_bin_example_f32.c │ │ │ │ ├── arm_fir_example │ │ │ │ ├── arm_fir_data.c │ │ │ │ ├── arm_fir_example_f32.c │ │ │ │ ├── math_helper.c │ │ │ │ └── math_helper.h │ │ │ │ ├── arm_graphic_equalizer_example │ │ │ │ ├── arm_graphic_equalizer_data.c │ │ │ │ ├── arm_graphic_equalizer_example_q31.c │ │ │ │ ├── math_helper.c │ │ │ │ └── math_helper.h │ │ │ │ ├── arm_linear_interp_example │ │ │ │ ├── arm_linear_interp_data.c │ │ │ │ ├── arm_linear_interp_example_f32.c │ │ │ │ ├── math_helper.c │ │ │ │ └── math_helper.h │ │ │ │ ├── arm_matrix_example │ │ │ │ ├── arm_matrix_example_f32.c │ │ │ │ ├── math_helper.c │ │ │ │ └── math_helper.h │ │ │ │ ├── arm_signal_converge_example │ │ │ │ ├── arm_signal_converge_data.c │ │ │ │ ├── arm_signal_converge_example_f32.c │ │ │ │ ├── math_helper.c │ │ │ │ └── math_helper.h │ │ │ │ ├── arm_sin_cos_example │ │ │ │ └── arm_sin_cos_example_f32.c │ │ │ │ └── arm_variance_example │ │ │ │ └── arm_variance_example_f32.c │ │ ├── Include │ │ │ ├── arm_common_tables.h │ │ │ ├── arm_const_structs.h │ │ │ └── arm_math.h │ │ └── Source │ │ │ ├── BasicMathFunctions │ │ │ ├── arm_abs_f32.c │ │ │ ├── arm_abs_q15.c │ │ │ ├── arm_abs_q31.c │ │ │ ├── arm_abs_q7.c │ │ │ ├── arm_add_f32.c │ │ │ ├── arm_add_q15.c │ │ │ ├── arm_add_q31.c │ │ │ ├── arm_add_q7.c │ │ │ ├── arm_dot_prod_f32.c │ │ │ ├── arm_dot_prod_q15.c │ │ │ ├── arm_dot_prod_q31.c │ │ │ ├── arm_dot_prod_q7.c │ │ │ ├── arm_mult_f32.c │ │ │ ├── arm_mult_q15.c │ │ │ ├── arm_mult_q31.c │ │ │ ├── arm_mult_q7.c │ │ │ ├── arm_negate_f32.c │ │ │ ├── arm_negate_q15.c │ │ │ ├── arm_negate_q31.c │ │ │ ├── arm_negate_q7.c │ │ │ ├── arm_offset_f32.c │ │ │ ├── arm_offset_q15.c │ │ │ ├── arm_offset_q31.c │ │ │ ├── arm_offset_q7.c │ │ │ ├── arm_scale_f32.c │ │ │ ├── arm_scale_q15.c │ │ │ ├── arm_scale_q31.c │ │ │ ├── arm_scale_q7.c │ │ │ ├── arm_shift_q15.c │ │ │ ├── arm_shift_q31.c │ │ │ ├── arm_shift_q7.c │ │ │ ├── arm_sub_f32.c │ │ │ ├── arm_sub_q15.c │ │ │ ├── arm_sub_q31.c │ │ │ └── arm_sub_q7.c │ │ │ ├── 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 │ │ │ ├── ControllerFunctions │ │ │ ├── arm_pid_init_f32.c │ │ │ ├── arm_pid_init_q15.c │ │ │ ├── arm_pid_init_q31.c │ │ │ ├── arm_pid_reset_f32.c │ │ │ ├── arm_pid_reset_q15.c │ │ │ ├── arm_pid_reset_q31.c │ │ │ ├── arm_sin_cos_f32.c │ │ │ └── arm_sin_cos_q31.c │ │ │ ├── FastMathFunctions │ │ │ ├── arm_cos_f32.c │ │ │ ├── arm_cos_q15.c │ │ │ ├── arm_cos_q31.c │ │ │ ├── arm_sin_f32.c │ │ │ ├── arm_sin_q15.c │ │ │ ├── arm_sin_q31.c │ │ │ ├── arm_sqrt_q15.c │ │ │ └── arm_sqrt_q31.c │ │ │ ├── FilteringFunctions │ │ │ ├── arm_biquad_cascade_df1_32x64_init_q31.c │ │ │ ├── arm_biquad_cascade_df1_32x64_q31.c │ │ │ ├── arm_biquad_cascade_df1_f32.c │ │ │ ├── arm_biquad_cascade_df1_fast_q15.c │ │ │ ├── arm_biquad_cascade_df1_fast_q31.c │ │ │ ├── arm_biquad_cascade_df1_init_f32.c │ │ │ ├── arm_biquad_cascade_df1_init_q15.c │ │ │ ├── arm_biquad_cascade_df1_init_q31.c │ │ │ ├── arm_biquad_cascade_df1_q15.c │ │ │ ├── arm_biquad_cascade_df1_q31.c │ │ │ ├── arm_biquad_cascade_df2T_f32.c │ │ │ ├── arm_biquad_cascade_df2T_f64.c │ │ │ ├── arm_biquad_cascade_df2T_init_f32.c │ │ │ ├── arm_biquad_cascade_df2T_init_f64.c │ │ │ ├── arm_biquad_cascade_stereo_df2T_f32.c │ │ │ ├── arm_biquad_cascade_stereo_df2T_init_f32.c │ │ │ ├── arm_conv_f32.c │ │ │ ├── arm_conv_fast_opt_q15.c │ │ │ ├── arm_conv_fast_q15.c │ │ │ ├── arm_conv_fast_q31.c │ │ │ ├── arm_conv_opt_q15.c │ │ │ ├── arm_conv_opt_q7.c │ │ │ ├── arm_conv_partial_f32.c │ │ │ ├── arm_conv_partial_fast_opt_q15.c │ │ │ ├── arm_conv_partial_fast_q15.c │ │ │ ├── arm_conv_partial_fast_q31.c │ │ │ ├── arm_conv_partial_opt_q15.c │ │ │ ├── arm_conv_partial_opt_q7.c │ │ │ ├── arm_conv_partial_q15.c │ │ │ ├── arm_conv_partial_q31.c │ │ │ ├── arm_conv_partial_q7.c │ │ │ ├── arm_conv_q15.c │ │ │ ├── arm_conv_q31.c │ │ │ ├── arm_conv_q7.c │ │ │ ├── arm_correlate_f32.c │ │ │ ├── arm_correlate_fast_opt_q15.c │ │ │ ├── arm_correlate_fast_q15.c │ │ │ ├── arm_correlate_fast_q31.c │ │ │ ├── arm_correlate_opt_q15.c │ │ │ ├── arm_correlate_opt_q7.c │ │ │ ├── arm_correlate_q15.c │ │ │ ├── arm_correlate_q31.c │ │ │ ├── arm_correlate_q7.c │ │ │ ├── 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 │ │ │ ├── arm_iir_lattice_f32.c │ │ │ ├── arm_iir_lattice_init_f32.c │ │ │ ├── arm_iir_lattice_init_q15.c │ │ │ ├── arm_iir_lattice_init_q31.c │ │ │ ├── arm_iir_lattice_q15.c │ │ │ ├── arm_iir_lattice_q31.c │ │ │ ├── arm_lms_f32.c │ │ │ ├── arm_lms_init_f32.c │ │ │ ├── arm_lms_init_q15.c │ │ │ ├── arm_lms_init_q31.c │ │ │ ├── arm_lms_norm_f32.c │ │ │ ├── arm_lms_norm_init_f32.c │ │ │ ├── arm_lms_norm_init_q15.c │ │ │ ├── arm_lms_norm_init_q31.c │ │ │ ├── arm_lms_norm_q15.c │ │ │ ├── arm_lms_norm_q31.c │ │ │ ├── arm_lms_q15.c │ │ │ └── arm_lms_q31.c │ │ │ ├── MatrixFunctions │ │ │ ├── arm_mat_add_f32.c │ │ │ ├── arm_mat_add_q15.c │ │ │ ├── arm_mat_add_q31.c │ │ │ ├── arm_mat_cmplx_mult_f32.c │ │ │ ├── arm_mat_cmplx_mult_q15.c │ │ │ ├── arm_mat_cmplx_mult_q31.c │ │ │ ├── arm_mat_init_f32.c │ │ │ ├── arm_mat_init_q15.c │ │ │ ├── arm_mat_init_q31.c │ │ │ ├── arm_mat_inverse_f32.c │ │ │ ├── arm_mat_inverse_f64.c │ │ │ ├── arm_mat_mult_f32.c │ │ │ ├── arm_mat_mult_fast_q15.c │ │ │ ├── arm_mat_mult_fast_q31.c │ │ │ ├── arm_mat_mult_q15.c │ │ │ ├── arm_mat_mult_q31.c │ │ │ ├── arm_mat_scale_f32.c │ │ │ ├── arm_mat_scale_q15.c │ │ │ ├── arm_mat_scale_q31.c │ │ │ ├── arm_mat_sub_f32.c │ │ │ ├── arm_mat_sub_q15.c │ │ │ ├── arm_mat_sub_q31.c │ │ │ ├── arm_mat_trans_f32.c │ │ │ ├── arm_mat_trans_q15.c │ │ │ └── arm_mat_trans_q31.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 │ ├── Device │ │ └── ST │ │ │ └── STM32F1xx │ │ │ ├── Include │ │ │ ├── stm32f100xb.h │ │ │ ├── stm32f100xe.h │ │ │ ├── stm32f101x6.h │ │ │ ├── stm32f101xb.h │ │ │ ├── stm32f101xe.h │ │ │ ├── stm32f101xg.h │ │ │ ├── stm32f102x6.h │ │ │ ├── stm32f102xb.h │ │ │ ├── stm32f103x6.h │ │ │ ├── stm32f103xb.h │ │ │ ├── stm32f103xe.h │ │ │ ├── stm32f103xg.h │ │ │ ├── stm32f105xc.h │ │ │ ├── stm32f107xc.h │ │ │ ├── stm32f1xx.h │ │ │ └── system_stm32f1xx.h │ │ │ └── Source │ │ │ └── Templates │ │ │ ├── arm │ │ │ ├── startup_stm32f100xb.s │ │ │ ├── startup_stm32f100xe.s │ │ │ ├── startup_stm32f101x6.s │ │ │ ├── startup_stm32f101xb.s │ │ │ ├── startup_stm32f101xe.s │ │ │ ├── startup_stm32f101xg.s │ │ │ ├── startup_stm32f102x6.s │ │ │ ├── startup_stm32f102xb.s │ │ │ ├── startup_stm32f103x6.s │ │ │ ├── startup_stm32f103xb.s │ │ │ ├── startup_stm32f103xe.s │ │ │ ├── startup_stm32f103xg.s │ │ │ ├── startup_stm32f105xc.s │ │ │ └── startup_stm32f107xc.s │ │ │ ├── gcc │ │ │ ├── startup_stm32f100xb.s │ │ │ ├── startup_stm32f100xe.s │ │ │ ├── startup_stm32f101x6.s │ │ │ ├── startup_stm32f101xb.s │ │ │ ├── startup_stm32f101xe.s │ │ │ ├── startup_stm32f101xg.s │ │ │ ├── startup_stm32f102x6.s │ │ │ ├── startup_stm32f102xb.s │ │ │ ├── startup_stm32f103x6.s │ │ │ ├── startup_stm32f103xb.s │ │ │ ├── startup_stm32f103xe.s │ │ │ ├── startup_stm32f103xg.s │ │ │ ├── startup_stm32f105xc.s │ │ │ └── startup_stm32f107xc.s │ │ │ ├── iar │ │ │ ├── linker │ │ │ │ ├── stm32f100xb_flash.icf │ │ │ │ ├── stm32f100xb_sram.icf │ │ │ │ ├── stm32f100xe_flash.icf │ │ │ │ ├── stm32f100xe_sram.icf │ │ │ │ ├── stm32f101x6_flash.icf │ │ │ │ ├── stm32f101x6_sram.icf │ │ │ │ ├── stm32f101xb_flash.icf │ │ │ │ ├── stm32f101xb_sram.icf │ │ │ │ ├── stm32f101xe_flash.icf │ │ │ │ ├── stm32f101xe_sram.icf │ │ │ │ ├── stm32f101xg_flash.icf │ │ │ │ ├── stm32f101xg_sram.icf │ │ │ │ ├── stm32f102x6_flash.icf │ │ │ │ ├── stm32f102x6_sram.icf │ │ │ │ ├── stm32f102xb_flash.icf │ │ │ │ ├── stm32f102xb_sram.icf │ │ │ │ ├── stm32f103x6_flash.icf │ │ │ │ ├── stm32f103x6_sram.icf │ │ │ │ ├── stm32f103xb_flash.icf │ │ │ │ ├── stm32f103xb_sram.icf │ │ │ │ ├── stm32f103xe_flash.icf │ │ │ │ ├── stm32f103xe_sram.icf │ │ │ │ ├── stm32f103xg_flash.icf │ │ │ │ ├── stm32f103xg_sram.icf │ │ │ │ ├── stm32f105xc_flash.icf │ │ │ │ ├── stm32f105xc_sram.icf │ │ │ │ ├── stm32f107xc_flash.icf │ │ │ │ └── stm32f107xc_sram.icf │ │ │ ├── startup_stm32f100xb.s │ │ │ ├── startup_stm32f100xe.s │ │ │ ├── startup_stm32f101x6.s │ │ │ ├── startup_stm32f101xb.s │ │ │ ├── startup_stm32f101xe.s │ │ │ ├── startup_stm32f101xg.s │ │ │ ├── startup_stm32f102x6.s │ │ │ ├── startup_stm32f102xb.s │ │ │ ├── startup_stm32f103x6.s │ │ │ ├── startup_stm32f103xb.s │ │ │ ├── startup_stm32f103xe.s │ │ │ ├── startup_stm32f103xg.s │ │ │ ├── startup_stm32f105xc.s │ │ │ └── startup_stm32f107xc.s │ │ │ └── system_stm32f1xx.c │ ├── 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 │ ├── Lib │ │ ├── ARM │ │ │ ├── arm_cortexM3b_math.lib │ │ │ └── arm_cortexM3l_math.lib │ │ ├── GCC │ │ │ └── libarm_cortexM3l_math.a │ │ └── IAR │ │ │ ├── iar_cortexM3b_math.a │ │ │ └── iar_cortexM3l_math.a │ ├── NN │ │ ├── Examples │ │ │ └── ARM │ │ │ │ └── arm_nn_examples │ │ │ │ ├── cifar10 │ │ │ │ ├── RTE │ │ │ │ │ ├── Compiler │ │ │ │ │ │ └── EventRecorderConf.h │ │ │ │ │ ├── _ARMCM0 │ │ │ │ │ │ └── RTE_Components.h │ │ │ │ │ ├── _ARMCM3 │ │ │ │ │ │ └── RTE_Components.h │ │ │ │ │ ├── _ARMCM4_FP │ │ │ │ │ │ └── RTE_Components.h │ │ │ │ │ └── _ARMCM7_SP │ │ │ │ │ │ └── RTE_Components.h │ │ │ │ ├── arm_nnexamples_cifar10.cpp │ │ │ │ ├── arm_nnexamples_cifar10_inputs.h │ │ │ │ ├── arm_nnexamples_cifar10_parameter.h │ │ │ │ └── arm_nnexamples_cifar10_weights.h │ │ │ │ └── gru │ │ │ │ ├── RTE │ │ │ │ ├── Compiler │ │ │ │ │ └── EventRecorderConf.h │ │ │ │ ├── _ARMCM0 │ │ │ │ │ └── RTE_Components.h │ │ │ │ ├── _ARMCM3 │ │ │ │ │ └── RTE_Components.h │ │ │ │ ├── _ARMCM4_FP │ │ │ │ │ └── RTE_Components.h │ │ │ │ └── _ARMCM7_SP │ │ │ │ │ └── RTE_Components.h │ │ │ │ ├── arm_nnexamples_gru.cpp │ │ │ │ └── arm_nnexamples_gru_test_data.h │ │ ├── Include │ │ │ ├── arm_nn_tables.h │ │ │ ├── arm_nnfunctions.h │ │ │ └── arm_nnsupportfunctions.h │ │ ├── NN_Lib_Tests │ │ │ └── nn_test │ │ │ │ ├── RTE │ │ │ │ ├── _ARMCM0 │ │ │ │ │ └── RTE_Components.h │ │ │ │ ├── _ARMCM3 │ │ │ │ │ └── RTE_Components.h │ │ │ │ ├── _ARMCM4_FP │ │ │ │ │ └── RTE_Components.h │ │ │ │ └── _ARMCM7_SP │ │ │ │ │ └── RTE_Components.h │ │ │ │ ├── Ref_Implementations │ │ │ │ ├── arm_convolve_HWC_q15_ref.c │ │ │ │ ├── arm_convolve_HWC_q15_ref_nonsquare.c │ │ │ │ ├── arm_convolve_HWC_q7_ref.c │ │ │ │ ├── arm_convolve_HWC_q7_ref_nonsquare.c │ │ │ │ ├── arm_depthwise_separable_conv_HWC_q7_ref.c │ │ │ │ ├── arm_depthwise_separable_conv_HWC_q7_ref_nonsquare.c │ │ │ │ ├── arm_fully_connected_mat_q7_vec_q15_opt_ref.c │ │ │ │ ├── arm_fully_connected_mat_q7_vec_q15_ref.c │ │ │ │ ├── arm_fully_connected_q15_opt_ref.c │ │ │ │ ├── arm_fully_connected_q15_ref.c │ │ │ │ ├── arm_fully_connected_q7_opt_ref.c │ │ │ │ ├── arm_fully_connected_q7_ref.c │ │ │ │ ├── arm_nn_mult_ref.c │ │ │ │ ├── arm_pool_ref.c │ │ │ │ ├── arm_relu_ref.c │ │ │ │ ├── fully_connected_testing_weights.h │ │ │ │ └── ref_functions.h │ │ │ │ ├── arm_nnexamples_nn_test.cpp │ │ │ │ └── arm_nnexamples_nn_test.h │ │ └── Source │ │ │ ├── ActivationFunctions │ │ │ ├── arm_nn_activations_q15.c │ │ │ ├── arm_nn_activations_q7.c │ │ │ ├── arm_relu_q15.c │ │ │ └── arm_relu_q7.c │ │ │ ├── ConvolutionFunctions │ │ │ ├── arm_convolve_1x1_HWC_q7_fast_nonsquare.c │ │ │ ├── arm_convolve_HWC_q15_basic.c │ │ │ ├── arm_convolve_HWC_q15_fast.c │ │ │ ├── arm_convolve_HWC_q15_fast_nonsquare.c │ │ │ ├── arm_convolve_HWC_q7_RGB.c │ │ │ ├── arm_convolve_HWC_q7_basic.c │ │ │ ├── arm_convolve_HWC_q7_basic_nonsquare.c │ │ │ ├── arm_convolve_HWC_q7_fast.c │ │ │ ├── arm_convolve_HWC_q7_fast_nonsquare.c │ │ │ ├── arm_depthwise_separable_conv_HWC_q7.c │ │ │ ├── arm_depthwise_separable_conv_HWC_q7_nonsquare.c │ │ │ ├── arm_nn_mat_mult_kernel_q7_q15.c │ │ │ └── arm_nn_mat_mult_kernel_q7_q15_reordered.c │ │ │ ├── FullyConnectedFunctions │ │ │ ├── arm_fully_connected_mat_q7_vec_q15.c │ │ │ ├── arm_fully_connected_mat_q7_vec_q15_opt.c │ │ │ ├── arm_fully_connected_q15.c │ │ │ ├── arm_fully_connected_q15_opt.c │ │ │ ├── arm_fully_connected_q7.c │ │ │ └── arm_fully_connected_q7_opt.c │ │ │ ├── NNSupportFunctions │ │ │ ├── arm_nn_mult_q15.c │ │ │ ├── arm_nn_mult_q7.c │ │ │ ├── arm_nntables.c │ │ │ ├── arm_q7_to_q15_no_shift.c │ │ │ └── arm_q7_to_q15_reordered_no_shift.c │ │ │ ├── PoolingFunctions │ │ │ └── arm_pool_q7_HWC.c │ │ │ └── SoftmaxFunctions │ │ │ ├── arm_softmax_q15.c │ │ │ └── arm_softmax_q7.c │ ├── RTOS │ │ └── Template │ │ │ └── cmsis_os.h │ └── RTOS2 │ │ ├── Include │ │ ├── cmsis_os2.h │ │ └── os_tick.h │ │ ├── Source │ │ ├── os_systick.c │ │ ├── os_tick_gtim.c │ │ └── os_tick_ptim.c │ │ └── Template │ │ ├── cmsis_os.h │ │ └── cmsis_os1.c └── STM32F1xx_HAL_Driver │ ├── Inc │ ├── Legacy │ │ ├── stm32_hal_legacy.h │ │ ├── stm32f1xx_hal_can_ex_legacy.h │ │ └── stm32f1xx_hal_can_legacy.h │ ├── stm32_assert_template.h │ ├── stm32f1xx_hal.h │ ├── stm32f1xx_hal_adc.h │ ├── stm32f1xx_hal_adc_ex.h │ ├── stm32f1xx_hal_can.h │ ├── stm32f1xx_hal_cec.h │ ├── stm32f1xx_hal_conf_template.h │ ├── stm32f1xx_hal_cortex.h │ ├── stm32f1xx_hal_crc.h │ ├── stm32f1xx_hal_dac.h │ ├── stm32f1xx_hal_dac_ex.h │ ├── stm32f1xx_hal_def.h │ ├── stm32f1xx_hal_dma.h │ ├── stm32f1xx_hal_dma_ex.h │ ├── stm32f1xx_hal_eth.h │ ├── stm32f1xx_hal_exti.h │ ├── stm32f1xx_hal_flash.h │ ├── stm32f1xx_hal_flash_ex.h │ ├── stm32f1xx_hal_gpio.h │ ├── stm32f1xx_hal_gpio_ex.h │ ├── stm32f1xx_hal_hcd.h │ ├── stm32f1xx_hal_i2c.h │ ├── stm32f1xx_hal_i2s.h │ ├── stm32f1xx_hal_irda.h │ ├── stm32f1xx_hal_iwdg.h │ ├── stm32f1xx_hal_mmc.h │ ├── stm32f1xx_hal_nand.h │ ├── stm32f1xx_hal_nor.h │ ├── stm32f1xx_hal_pccard.h │ ├── stm32f1xx_hal_pcd.h │ ├── stm32f1xx_hal_pcd_ex.h │ ├── stm32f1xx_hal_pwr.h │ ├── stm32f1xx_hal_rcc.h │ ├── stm32f1xx_hal_rcc_ex.h │ ├── stm32f1xx_hal_rtc.h │ ├── stm32f1xx_hal_rtc_ex.h │ ├── stm32f1xx_hal_sd.h │ ├── stm32f1xx_hal_smartcard.h │ ├── stm32f1xx_hal_spi.h │ ├── stm32f1xx_hal_sram.h │ ├── stm32f1xx_hal_tim.h │ ├── stm32f1xx_hal_tim_ex.h │ ├── stm32f1xx_hal_uart.h │ ├── stm32f1xx_hal_usart.h │ ├── stm32f1xx_hal_wwdg.h │ ├── stm32f1xx_ll_adc.h │ ├── stm32f1xx_ll_bus.h │ ├── stm32f1xx_ll_cortex.h │ ├── stm32f1xx_ll_crc.h │ ├── stm32f1xx_ll_dac.h │ ├── stm32f1xx_ll_dma.h │ ├── stm32f1xx_ll_exti.h │ ├── stm32f1xx_ll_fsmc.h │ ├── stm32f1xx_ll_gpio.h │ ├── stm32f1xx_ll_i2c.h │ ├── stm32f1xx_ll_iwdg.h │ ├── stm32f1xx_ll_pwr.h │ ├── stm32f1xx_ll_rcc.h │ ├── stm32f1xx_ll_rtc.h │ ├── stm32f1xx_ll_sdmmc.h │ ├── stm32f1xx_ll_spi.h │ ├── stm32f1xx_ll_system.h │ ├── stm32f1xx_ll_tim.h │ ├── stm32f1xx_ll_usart.h │ ├── stm32f1xx_ll_usb.h │ ├── stm32f1xx_ll_utils.h │ └── stm32f1xx_ll_wwdg.h │ └── Src │ ├── stm32f1xx_hal.c │ ├── stm32f1xx_hal_adc.c │ ├── stm32f1xx_hal_adc_ex.c │ ├── stm32f1xx_hal_can.c │ ├── stm32f1xx_hal_cec.c │ ├── stm32f1xx_hal_cortex.c │ ├── stm32f1xx_hal_crc.c │ ├── stm32f1xx_hal_dac.c │ ├── stm32f1xx_hal_dac_ex.c │ ├── stm32f1xx_hal_dma.c │ ├── stm32f1xx_hal_eth.c │ ├── stm32f1xx_hal_exti.c │ ├── stm32f1xx_hal_flash.c │ ├── stm32f1xx_hal_flash_ex.c │ ├── stm32f1xx_hal_gpio.c │ ├── stm32f1xx_hal_gpio_ex.c │ ├── stm32f1xx_hal_hcd.c │ ├── stm32f1xx_hal_i2c.c │ ├── stm32f1xx_hal_i2s.c │ ├── stm32f1xx_hal_irda.c │ ├── stm32f1xx_hal_iwdg.c │ ├── stm32f1xx_hal_mmc.c │ ├── stm32f1xx_hal_msp_template.c │ ├── stm32f1xx_hal_nand.c │ ├── stm32f1xx_hal_nor.c │ ├── stm32f1xx_hal_pccard.c │ ├── stm32f1xx_hal_pcd.c │ ├── stm32f1xx_hal_pcd_ex.c │ ├── stm32f1xx_hal_pwr.c │ ├── stm32f1xx_hal_rcc.c │ ├── stm32f1xx_hal_rcc_ex.c │ ├── stm32f1xx_hal_rtc.c │ ├── stm32f1xx_hal_rtc_ex.c │ ├── stm32f1xx_hal_sd.c │ ├── stm32f1xx_hal_smartcard.c │ ├── stm32f1xx_hal_spi.c │ ├── stm32f1xx_hal_sram.c │ ├── stm32f1xx_hal_tim.c │ ├── stm32f1xx_hal_tim_ex.c │ ├── stm32f1xx_hal_timebase_rtc_alarm_template.c │ ├── stm32f1xx_hal_timebase_tim_template.c │ ├── stm32f1xx_hal_uart.c │ ├── stm32f1xx_hal_usart.c │ ├── stm32f1xx_hal_wwdg.c │ ├── stm32f1xx_ll_adc.c │ ├── stm32f1xx_ll_crc.c │ ├── stm32f1xx_ll_dac.c │ ├── stm32f1xx_ll_dma.c │ ├── stm32f1xx_ll_exti.c │ ├── stm32f1xx_ll_fsmc.c │ ├── stm32f1xx_ll_gpio.c │ ├── stm32f1xx_ll_i2c.c │ ├── stm32f1xx_ll_pwr.c │ ├── stm32f1xx_ll_rcc.c │ ├── stm32f1xx_ll_rtc.c │ ├── stm32f1xx_ll_sdmmc.c │ ├── stm32f1xx_ll_spi.c │ ├── stm32f1xx_ll_tim.c │ ├── stm32f1xx_ll_usart.c │ ├── stm32f1xx_ll_usb.c │ └── stm32f1xx_ll_utils.c ├── Inc ├── FreeRTOSConfig.h ├── can.h ├── gpio.h ├── main.h ├── stm32f1xx_hal_conf.h ├── stm32f1xx_it.h ├── taskcan.h └── tim.h ├── Lib ├── Debug │ ├── README.md │ ├── debug.c │ ├── debug.h │ ├── printf-stdarg.c │ └── printf-stdarg.h ├── canDriver │ ├── Slave.c │ ├── Slave.h │ ├── can_driver.c │ ├── can_driver.h │ └── config.h └── canfestival │ ├── .hgignore │ ├── .travis.yml │ ├── AUTHORS │ ├── CONTRIBUTORS │ ├── COPYING │ ├── CanFestival-3.vc10.sln │ ├── CanFestival-3.vc10.vcxproj │ ├── CanFestival-3.vc10.vcxproj.filters │ ├── CanFestival-3.vc9.sln │ ├── CanFestival-3.vc9.vcproj │ ├── LICENCE │ ├── Makefile.in │ ├── README-original.md │ ├── Readme.md │ ├── configure │ ├── debian │ ├── README.Debian │ ├── canfestival-devel.install │ ├── canfestival-examples.install │ ├── canfestival-objdictedit.install │ ├── canfestival-objdictedit.postinst │ ├── canfestival-objdictedit.postrm │ ├── canfestival-peak.install │ ├── canfestival-peak.postinst │ ├── canfestival-peak.postrm │ ├── canfestival-socket.install │ ├── canfestival-virtual.install │ ├── canfestival-virtual.postinst │ ├── canfestival-virtual.postrm │ ├── changelog │ ├── compat │ ├── control │ ├── control-peak_linux │ ├── control-socket │ ├── control-virtual │ ├── copyright │ ├── dirs │ ├── files │ ├── objdictedit.desktop │ ├── objdictedit.png │ └── rules │ ├── doc │ ├── CANOpen_memento │ │ ├── CANOpen_memento.odg │ │ └── CANOpen_memento.pdf │ ├── code_debug.txt │ ├── copcican_comedi_howto.txt │ ├── copcican_linux_howto.txt │ ├── doxygen │ │ ├── Doxyfile │ │ └── Makefile │ └── manual │ │ ├── Makefile │ │ └── en │ │ ├── Pictures │ │ ├── 100000000000006D000000A31EC8CB54.png │ │ ├── 10000000000000AA0000006014F74635.png │ │ ├── 10000000000000AB000000C88F594413.png │ │ ├── 10000000000000AC000000C9C3F53FA6.png │ │ ├── 10000000000000B6000000DF1EDD1E73.png │ │ ├── 100000000000022C000000DEDAD2140C.png │ │ ├── 1000000000000396000000FFC42573DA.png │ │ ├── 10000201000000B7000000C66AF89CD5.png │ │ ├── 10000201000001C4000000DD129D4661.png │ │ ├── 10000201000001C40000010766961D7F.png │ │ ├── 10000201000001FC000001E5D65E8766.png │ │ ├── 1000020100000258000000832C6FFAB4.png │ │ ├── 10000201000002DE000001D82D89C224.png │ │ ├── 10000201000002F30000020B23ED7F67.png │ │ ├── 10000201000003440000025ACC3FD2F1.png │ │ ├── 10000201000003CA0000016604E6A5EF.png │ │ ├── 10000201000003E7000001C7B0296577.png │ │ ├── 10000201000003F9000002CF880931E7.png │ │ ├── 10000201000003F9000002CF8B0CDAEA.png │ │ ├── new_node.png │ │ └── node_info.png │ │ ├── canfestival_OS.svg │ │ ├── canfestival_OSless.svg │ │ ├── canfestival_overview.svg │ │ ├── canfestival_scheduling.svg │ │ └── manual.tex │ ├── drivers │ ├── AT91 │ │ ├── can_AT91.c │ │ └── timer_AT91.c │ ├── AVR │ │ ├── can_AVR.c │ │ └── timer_AVR.c │ ├── Makefile.in │ ├── can_anagate_linux │ │ ├── Makefile │ │ ├── Makefile.in │ │ └── can_anagate_linux.c │ ├── can_anagate_win32 │ │ ├── Makefile.in │ │ ├── can_anagate_win32.c │ │ ├── can_anagate_win32.def │ │ ├── can_anagate_win32.vc10.vcxproj │ │ ├── can_anagate_win32.vc10.vcxproj.filters │ │ └── can_anagate_win32.vc9.vcproj │ ├── can_can4linux │ │ ├── Makefile.in │ │ ├── can4linux.h │ │ └── can_can4linux.c │ ├── can_copcican_comedi │ │ ├── Makefile.in │ │ ├── can_copcican_comedi.c │ │ └── co_pcicanops.h │ ├── can_copcican_linux │ │ ├── Makefile.in │ │ ├── can_copcican_linux.c │ │ └── co_pcicanops.h │ ├── can_copcican_win32 │ │ ├── ReadMe.txt │ │ ├── can_copcican_win32.cpp │ │ ├── can_copcican_win32.def │ │ ├── can_copcican_win32.vc10.vcxproj │ │ ├── can_copcican_win32.vc10.vcxproj.filters │ │ ├── can_copcican_win32.vcxproj.user │ │ ├── dllmain.cpp │ │ ├── stdafx.cpp │ │ ├── stdafx.h │ │ └── targetver.h │ ├── can_ixxat_win32 │ │ ├── async_access_que.h │ │ ├── autoreleasecs.h │ │ ├── can_ixxat_win32.vc10.vcxproj │ │ ├── can_ixxat_win32.vc10.vcxproj.filters │ │ ├── can_ixxat_win32.vc9.vcproj │ │ ├── ixxat.cpp │ │ └── ixxat.def │ ├── can_kvaser │ │ ├── Makefile.in │ │ ├── README │ │ └── can_kvaser.c │ ├── can_lincan │ │ ├── Makefile.in │ │ ├── can_lincan.c │ │ ├── canmsg.h │ │ └── lincan.h │ ├── can_multi_peeakwin32 │ │ ├── can_multi_peak_win32.c │ │ ├── can_multi_peak_win32.def │ │ ├── can_multi_peak_win32.vcproj │ │ └── cancfg.h │ ├── can_peak_linux │ │ ├── Makefile.in │ │ └── can_peak_linux.c │ ├── can_peak_win32 │ │ ├── Makefile.in │ │ ├── can_peak_win32.c │ │ ├── can_peak_win32.def │ │ ├── can_peak_win32.vc10.vcxproj │ │ ├── can_peak_win32.vc10.vcxproj.filters │ │ ├── can_peak_win32.vc9.vcproj │ │ ├── cancfg.h │ │ ├── cancfg.h.head │ │ └── cancfg.h.tail │ ├── can_serial │ │ ├── Makefile.in │ │ ├── can_serial.c │ │ └── can_serial_hub.c │ ├── can_socket │ │ ├── Makefile.in │ │ └── can_socket.c │ ├── can_tcp_win32 │ │ ├── Makefile.in │ │ ├── Socket.cpp │ │ ├── Socket.h │ │ ├── can_tcp_win32.cpp │ │ └── can_tcp_win32_server.cpp │ ├── can_uvccm_win32 │ │ ├── can_uvccm_win32.cpp │ │ ├── can_uvccm_win32.def │ │ ├── can_uvccm_win32.vc10.vcxproj │ │ ├── can_uvccm_win32.vc10.vcxproj.filters │ │ └── can_uvccm_win32.vc9.vcproj │ ├── can_virtual │ │ ├── Makefile.in │ │ └── can_virtual.c │ ├── can_virtual_kernel │ │ ├── Makefile.in │ │ └── can_virtual_kernel.c │ ├── can_vscom │ │ ├── Makefile.in │ │ └── can_vscom.c │ ├── cm0 │ │ ├── Makefile.in │ │ ├── README │ │ ├── cm0.c │ │ ├── cm0.h │ │ └── stm32f0xx_conf.h │ ├── cm3 │ │ ├── Makefile.in │ │ ├── README │ │ ├── cm3.c │ │ ├── cm3.h │ │ └── stm32f10x_conf.h │ ├── cm4 │ │ ├── Makefile.in │ │ ├── README │ │ ├── cm4.c │ │ └── cm4.h │ ├── hcs12 │ │ ├── Makefile.in │ │ ├── canOpenDriver.c │ │ ├── interrupt.c │ │ ├── ports.s │ │ └── ports.txt │ ├── timers_kernel │ │ ├── Makefile.in │ │ └── timers_kernel.c │ ├── timers_kernel_xeno │ │ ├── Makefile.in │ │ └── timers_kernel_xeno.c │ ├── timers_rtai │ │ ├── Makefile.in │ │ └── timers_rtai.c │ ├── timers_unix │ │ ├── Makefile.in │ │ └── timers_unix.c │ ├── timers_win32 │ │ ├── Makefile.in │ │ └── timers_win32.c │ ├── timers_xeno │ │ ├── Makefile.in │ │ └── timers_xeno.c │ ├── unix │ │ ├── Makefile.in │ │ └── unix.c │ └── win32 │ │ ├── Makefile.in │ │ └── win32.c │ ├── examples │ ├── AT91 │ │ └── Master │ │ │ ├── AT91SAM7X-EK.h │ │ │ ├── Makefile │ │ │ ├── ObjDict.c │ │ │ ├── ObjDict.h │ │ │ ├── ObjDict.od │ │ │ ├── interrupt_timer.c │ │ │ ├── io_macro.h │ │ │ └── main.c │ ├── AVR │ │ └── Slave │ │ │ ├── AVR-Studio │ │ │ ├── SlaveAVR.aps │ │ │ ├── default │ │ │ │ └── Makefile │ │ │ └── slaveavr.aws │ │ │ ├── Atmel-Studio │ │ │ ├── SlaveAVR.atsln │ │ │ ├── SlaveAVR.componentinfo.xml │ │ │ └── SlaveAVR.cproj │ │ │ ├── Makefile │ │ │ ├── ObjDict.c │ │ │ ├── ObjDict.h │ │ │ ├── ObjDict.od │ │ │ ├── config.h │ │ │ ├── ds401.c │ │ │ ├── ds401.h │ │ │ ├── hardware.h │ │ │ └── main.c │ ├── CANOpenShell │ │ ├── CANOpenShell.c │ │ ├── CANOpenShell.h │ │ ├── CANOpenShell.vc10.vcxproj │ │ ├── CANOpenShell.vc10.vcxproj.filters │ │ ├── CANOpenShell.vc9.vcproj │ │ ├── CANOpenShellMasterOD.od │ │ ├── CANOpenShellSlaveOD.od │ │ ├── CANOpenShellsln │ │ └── Makefile.in │ ├── DS401_Master │ │ ├── Makefile.in │ │ ├── TestMaster.h │ │ ├── TestMaster.od │ │ ├── TestMasterMicroMod.c │ │ ├── TestMasterMicroMod.h │ │ ├── TestMasterMicroMod.vc10.vcxproj │ │ ├── TestMasterMicroMod.vc10.vcxproj.filters │ │ ├── TestMasterMicroMod.vc9.vcproj │ │ ├── getopt.c │ │ └── getopt.h │ ├── DS401_Slave_Gui │ │ ├── CallBack.cpp │ │ ├── CallBack.h │ │ ├── DS401_Slave_Gui.eds │ │ ├── Makefile.in │ │ ├── ObjDict.h │ │ ├── ObjDict.od │ │ ├── TestSlaveGui.cpp │ │ ├── TestSlaveGui.h │ │ ├── getopt.c │ │ ├── getopt.h │ │ ├── main.cpp │ │ └── main.h │ ├── Makefile.in │ ├── SillySlave │ │ ├── EDS2CSV.py │ │ ├── Makefile.in │ │ ├── README │ │ ├── SillySlave.c │ │ ├── SillySlave.h │ │ ├── SillySlave.od │ │ ├── main.c │ │ ├── main.h │ │ ├── slave.c │ │ └── slave.h │ ├── TestMasterMicroMod │ │ ├── Makefile.in │ │ ├── TestMaster.h │ │ ├── TestMaster.od │ │ ├── TestMasterMicroMod.c │ │ ├── TestMasterMicroMod.h │ │ ├── TestMasterMicroMod.vc9.vcproj │ │ ├── getopt.c │ │ └── getopt.h │ ├── TestMasterSlave │ │ ├── Makefile.in │ │ ├── Master.c │ │ ├── Master.h │ │ ├── Slave.c │ │ ├── Slave.h │ │ ├── TestMaster.h │ │ ├── TestMaster.od │ │ ├── TestMasterSlave.c │ │ ├── TestMasterSlave.h │ │ ├── TestMasterSlave.vc9.vcproj │ │ ├── TestSlave.h │ │ ├── TestSlave.od │ │ ├── getopt.c │ │ └── getopt.h │ ├── TestMasterSlaveLSS │ │ ├── Makefile.in │ │ ├── Master.c │ │ ├── Master.h │ │ ├── SlaveA.c │ │ ├── SlaveA.h │ │ ├── SlaveB.c │ │ ├── SlaveB.h │ │ ├── TestMaster.od │ │ ├── TestMasterSlaveLSS.c │ │ ├── TestMasterSlaveLSS.h │ │ ├── TestMasterSlaveLSS.vc9.vcproj │ │ ├── TestSlaveA.od │ │ ├── TestSlaveB.od │ │ ├── getopt.c │ │ └── getopt.h │ ├── gene_SYNC_HCS12 │ │ ├── Makefile.in │ │ ├── appli.c │ │ ├── objdict.c │ │ ├── objdict.h │ │ ├── objdict.od │ │ ├── readme.txt │ │ ├── trace32_flash_debug.cmm │ │ ├── trace32_flash_debug_sans_init.cmm │ │ ├── trace32_flash_programmer.cmm │ │ └── vectors.s │ ├── kerneltest │ │ ├── Makefile.in │ │ ├── Master.c │ │ ├── Master.h │ │ ├── Slave.c │ │ ├── Slave.h │ │ ├── TestMaster.c │ │ ├── TestMaster.h │ │ ├── TestMaster.od │ │ ├── TestMasterSlave.c │ │ ├── TestMasterSlave.h │ │ ├── TestSlave.c │ │ ├── TestSlave.h │ │ ├── TestSlave.od │ │ ├── console │ │ │ ├── console.c │ │ │ └── console.h │ │ ├── insert.sh │ │ ├── kernel_module.c │ │ ├── remove.sh │ │ └── run.sh │ ├── linux │ │ └── dcf │ │ │ ├── Makefile.in │ │ │ ├── README │ │ │ ├── dcfdata.txt │ │ │ ├── gendcf.c │ │ │ ├── gendcf.h │ │ │ ├── master.c │ │ │ ├── masterdic.c │ │ │ ├── masterdic.h │ │ │ ├── masterdic.od │ │ │ ├── slave.c │ │ │ ├── slavedic.c │ │ │ ├── slavedic.h │ │ │ └── slavedic.od │ ├── test_copcican_comedi │ │ ├── Makefile.in │ │ ├── insert.sh │ │ └── test_copcican_comedi.c │ ├── test_copcican_linux │ │ ├── Makefile.in │ │ └── test_copcican_linux.c │ └── win32test │ │ ├── main.c │ │ ├── win32test.c │ │ ├── win32test.h │ │ ├── win32test.od │ │ ├── win32test.vc10.vcxproj │ │ ├── win32test.vc10.vcxproj.filters │ │ └── win32test.vc9.vcproj │ ├── include │ ├── AT91 │ │ ├── Atmel │ │ │ └── lib_AT91SAM7X256.h │ │ ├── applicfg.h │ │ ├── can_AT91.h │ │ ├── canfestival.h │ │ ├── config.h │ │ ├── iar.h │ │ └── timerscfg.h │ ├── AVR │ │ ├── applicfg.h │ │ ├── can_AVR.h │ │ ├── can_drv.h │ │ ├── canfestival.h │ │ ├── config.h │ │ ├── iar.h │ │ └── timerscfg.h │ ├── can.h │ ├── can_driver.h │ ├── cm0 │ ├── cm3 │ │ ├── applicfg.h │ │ ├── canfestival.h │ │ └── timerscfg.h │ ├── cm4 │ │ ├── applicfg.h │ │ ├── canfestival.h │ │ └── timerscfg.h │ ├── data.h │ ├── dcf.h │ ├── def.h │ ├── emcy.h │ ├── hcs12 │ │ ├── applicfg.h │ │ ├── asm-m68hc12 │ │ │ ├── ports.h │ │ │ ├── ports_def.h │ │ │ ├── portsaccess.h │ │ │ └── regs.h │ │ ├── board │ │ │ ├── alire.txt │ │ │ └── arch │ │ │ │ ├── exit.h │ │ │ │ ├── interrupts.h │ │ │ │ ├── memory.x │ │ │ │ └── param.h │ │ ├── canOpenDriver.h │ │ ├── candriver.h │ │ ├── error.h │ │ ├── interrupt.h │ │ └── regbase.h │ ├── lifegrd.h │ ├── lss.h │ ├── nmtMaster.h │ ├── nmtSlave.h │ ├── none │ │ ├── applicfg.h │ │ ├── canfestival.h │ │ └── timerscfg.h │ ├── objacces.h │ ├── objdictdef.h │ ├── pdo.h │ ├── sdo.h │ ├── states.h │ ├── sync.h │ ├── sysdep.h │ ├── timer.h │ ├── timers_driver.h │ ├── timers_kernel │ │ └── timerscfg.h │ ├── timers_kernel_xeno │ │ └── timerscfg.h │ ├── timers_rtai │ │ └── timerscfg.h │ ├── timers_unix │ │ └── timerscfg.h │ ├── timers_xeno │ │ └── timerscfg.h │ ├── unix │ │ ├── applicfg.h │ │ └── canfestival.h │ └── win32 │ │ ├── applicfg.h │ │ ├── canfestival.h │ │ ├── config.h │ │ └── timerscfg.h │ ├── objdictgen │ ├── .vscode │ │ └── launch.json │ ├── Gnosis_Utils-current.tar.gz │ ├── Makefile │ ├── Makefile.in │ ├── canfestival_config.py.in │ ├── commondialogs.py │ ├── commondialogs.pyc │ ├── config │ │ ├── DS-302.prf │ │ ├── DS-401.prf │ │ ├── DS-402.prf │ │ ├── DS-404.prf │ │ ├── DS-406.prf │ │ ├── DS-408.prf │ │ ├── DS-410.prf │ │ ├── DS-418.prf │ │ └── DS-419.prf │ ├── doc │ │ ├── 301_v04000201.pdf │ │ ├── about.html │ │ ├── canfestival.gif │ │ └── manual_en.pdf │ ├── doc_index │ │ ├── DS301_index.py │ │ ├── DS301_index.pyc │ │ ├── __init__.py │ │ └── __init__.pyc │ ├── eds_utils.py │ ├── eds_utils.pyc │ ├── examples │ │ ├── example_objdict-lva.od │ │ ├── example_objdict.c │ │ ├── example_objdict.h │ │ └── example_objdict.od │ ├── gen_cfile.py │ ├── gen_cfile.pyc │ ├── gnosis │ │ ├── README │ │ ├── __init__.py │ │ ├── __init__.pyc │ │ ├── anon │ │ │ ├── README │ │ │ ├── __init__.py │ │ │ ├── anon-forward.cgi │ │ │ ├── anonym.py │ │ │ ├── encode_address.cgi │ │ │ ├── encode_address.py │ │ │ ├── huffman │ │ │ ├── new_day_key.sh │ │ │ ├── new_month_key.sh │ │ │ └── new_week_key.sh │ │ ├── doc │ │ │ ├── GETTING_HELP │ │ │ ├── Gnosis_Utils.ANNOUNCE │ │ │ ├── LICENSE │ │ │ ├── __init__.py │ │ │ ├── charming_python_b11.txt │ │ │ ├── charming_python_b12.txt │ │ │ ├── filtering-spam.txt │ │ │ ├── metaclass.txt │ │ │ ├── oop_for_validity.txt │ │ │ ├── readme │ │ │ ├── xml_matters_1.txt │ │ │ ├── xml_matters_11.txt │ │ │ ├── xml_matters_16.txt │ │ │ ├── xml_matters_2.txt │ │ │ ├── xml_matters_20.txt │ │ │ └── xml_matters_39.txt │ │ ├── indexer.py │ │ ├── magic │ │ │ ├── __init__.py │ │ │ ├── dtdgenerator.py │ │ │ ├── metapickler.py │ │ │ └── multimethods.py │ │ ├── pyconfig.py │ │ ├── pyconfig.pyc │ │ ├── spam-test.py │ │ ├── trigramlib.py │ │ ├── trigrams-gen.py │ │ ├── util │ │ │ ├── XtoY.py │ │ │ ├── XtoY.pyc │ │ │ ├── __init__.py │ │ │ ├── __init__.pyc │ │ │ ├── combinators.py │ │ │ ├── combinators.pyc │ │ │ ├── convert │ │ │ │ ├── __init__.py │ │ │ │ ├── curses_txt2html.py │ │ │ │ ├── dmTxt2Html.py │ │ │ │ ├── dw_colorize.py │ │ │ │ ├── dyn_txt2html.py │ │ │ │ ├── fetch_txt2html.py │ │ │ │ ├── mxtypographify.py │ │ │ │ ├── pyfontify.py │ │ │ │ ├── t2h_textfuncs.py │ │ │ │ ├── tk_txt2html.py │ │ │ │ ├── txt2dw.py │ │ │ │ ├── txt2html.cgi │ │ │ │ ├── txt2html.txt │ │ │ │ ├── txt2html_dir.py │ │ │ │ ├── txt2html_todo.txt │ │ │ │ ├── txt2html_why.txt │ │ │ │ ├── typo_html.py │ │ │ │ ├── typographify.def │ │ │ │ └── typographify.py │ │ │ ├── dtd2sql.py │ │ │ ├── hashcash.py │ │ │ ├── introspect.py │ │ │ ├── introspect.pyc │ │ │ ├── sql2dtd.py │ │ │ ├── sql2xml_sample.xml.txt │ │ │ ├── test.xml │ │ │ ├── test │ │ │ │ ├── funcs.py │ │ │ │ ├── mixed.xml │ │ │ │ ├── test_data2attr.py │ │ │ │ ├── test_introspect.py │ │ │ │ ├── test_noinit.py │ │ │ │ └── test_variants_noinit.py │ │ │ ├── uusplit.py │ │ │ └── xml2sql.py │ │ ├── version.py │ │ └── xml │ │ │ ├── __init__.py │ │ │ ├── __init__.pyc │ │ │ ├── indexer.py │ │ │ ├── objectify │ │ │ ├── __init__.py │ │ │ ├── _objectify.py │ │ │ ├── doc │ │ │ │ ├── AUTHOR │ │ │ │ ├── COPYRIGHT │ │ │ │ ├── GOTCHAS │ │ │ │ ├── HISTORY │ │ │ │ ├── HOWTO │ │ │ │ ├── THANKS_TO │ │ │ │ ├── TODO │ │ │ │ ├── VERSION │ │ │ │ └── __init__.py │ │ │ ├── test.xml │ │ │ ├── test │ │ │ │ ├── __init__.py │ │ │ │ ├── test.xml │ │ │ │ ├── test_basic.py │ │ │ │ ├── test_expat.py │ │ │ │ ├── test_expat2.py │ │ │ │ ├── test_inject.py │ │ │ │ ├── test_xpath.py │ │ │ │ ├── testns.xml │ │ │ │ └── xpath.xml │ │ │ ├── utils.py │ │ │ └── xpath.xml │ │ │ ├── pickle │ │ │ ├── PyObject-0.48.dtd │ │ │ ├── PyObject.dtd │ │ │ ├── __init__.py │ │ │ ├── __init__.pyc │ │ │ ├── _pickle.py │ │ │ ├── _pickle.pyc │ │ │ ├── doc │ │ │ │ ├── AUTHOR │ │ │ │ ├── COPYRIGHT │ │ │ │ ├── HISTORY │ │ │ │ ├── HOWTO │ │ │ │ ├── HOWTO.extensions │ │ │ │ ├── SECURITY │ │ │ │ ├── THANKS_TO │ │ │ │ ├── TODO │ │ │ │ ├── VERSION │ │ │ │ └── __init__.py │ │ │ ├── ext │ │ │ │ ├── __init__.py │ │ │ │ ├── __init__.pyc │ │ │ │ ├── _mutate.py │ │ │ │ ├── _mutate.pyc │ │ │ │ ├── _mutators.py │ │ │ │ └── _mutators.pyc │ │ │ ├── parsers │ │ │ │ ├── __init__.py │ │ │ │ ├── __init__.pyc │ │ │ │ ├── _dom.py │ │ │ │ ├── _dom.pyc │ │ │ │ ├── _sax.py │ │ │ │ └── _sax.pyc │ │ │ ├── test │ │ │ │ ├── __init__.py │ │ │ │ ├── funcs.py │ │ │ │ ├── test_4list.py │ │ │ │ ├── test_all.py │ │ │ │ ├── test_all_all.py │ │ │ │ ├── test_badstring.py │ │ │ │ ├── test_basic.py │ │ │ │ ├── test_bltin.py │ │ │ │ ├── test_bools.py │ │ │ │ ├── test_bools_ro.py │ │ │ │ ├── test_circular.py │ │ │ │ ├── test_compat.py │ │ │ │ ├── test_fail_exit.py │ │ │ │ ├── test_fail_raise_1.py │ │ │ │ ├── test_fail_raise_2.py │ │ │ │ ├── test_fail_raise_3.py │ │ │ │ ├── test_ftypes.py │ │ │ │ ├── test_ftypes_i.py │ │ │ │ ├── test_getinitargs.py │ │ │ │ ├── test_getstate.py │ │ │ │ ├── test_gzfile.py │ │ │ │ ├── test_init.py │ │ │ │ ├── test_misc.py │ │ │ │ ├── test_mixin.py │ │ │ │ ├── test_modnames.py │ │ │ │ ├── test_mutators.py │ │ │ │ ├── test_mx.py │ │ │ │ ├── test_numpy.py │ │ │ │ ├── test_objectify.py │ │ │ │ ├── test_paranoia.py │ │ │ │ ├── test_pass_1.py │ │ │ │ ├── test_pass_2.py │ │ │ │ ├── test_pass_3.py │ │ │ │ ├── test_rawp_mx.py │ │ │ │ ├── test_rawp_sre.py │ │ │ │ ├── test_re.py │ │ │ │ ├── test_ref.py │ │ │ │ ├── test_selfref.py │ │ │ │ ├── test_setstate.py │ │ │ │ ├── test_slots.py │ │ │ │ ├── test_speed.py │ │ │ │ ├── test_subbltin.py │ │ │ │ ├── test_unicode.py │ │ │ │ └── test_zdump.py │ │ │ └── util │ │ │ │ ├── __init__.py │ │ │ │ ├── __init__.pyc │ │ │ │ ├── _flags.py │ │ │ │ ├── _flags.pyc │ │ │ │ ├── _util.py │ │ │ │ └── _util.pyc │ │ │ ├── relax │ │ │ ├── README │ │ │ ├── __init__.py │ │ │ ├── cardinality.rnc │ │ │ ├── cardinality.rng │ │ │ ├── clark.html │ │ │ ├── conv08.rnc │ │ │ ├── conv08.rng │ │ │ ├── conv09.rng │ │ │ ├── curious.dtd │ │ │ ├── curious.xml │ │ │ ├── lex.py │ │ │ ├── patron-2.rng │ │ │ ├── patron-i1.xml │ │ │ ├── patron-i2.xml │ │ │ ├── patron-i3.xml │ │ │ ├── patron-v1.xml │ │ │ ├── patron-v2.xml │ │ │ ├── patron.rnc │ │ │ ├── patron.rng │ │ │ ├── patron.xsd │ │ │ ├── regextest.rnc │ │ │ ├── regextest.xml │ │ │ ├── res08.rnc │ │ │ ├── res08.rng │ │ │ ├── res09.rng │ │ │ ├── rnc2rng │ │ │ ├── rnc_tokenize.py │ │ │ ├── rnctree.py │ │ │ ├── spectest.xml │ │ │ ├── split.xsl │ │ │ ├── testSuite.rng │ │ │ ├── xmlcat │ │ │ ├── xsdtest.rnc │ │ │ ├── xsdtest.rng │ │ │ ├── xsdtest.xml │ │ │ └── xsdtest.xsl │ │ │ ├── validity │ │ │ ├── __init__.py │ │ │ ├── _validity.py │ │ │ ├── dissertation.py │ │ │ ├── dtdgen.py │ │ │ └── simple_diss.py │ │ │ ├── xmlcat.py │ │ │ ├── xmlmap.py │ │ │ └── xmlmap.pyc │ ├── i18n │ │ ├── README │ │ ├── app.fil │ │ ├── messages.pot │ │ ├── mki18n.py │ │ ├── objdictgen_fr_FR.po │ │ └── objdictgen_zh_CN.po │ ├── locale │ │ ├── fr_FR │ │ │ └── LC_MESSAGES │ │ │ │ └── objdictgen.mo │ │ └── zh_CN │ │ │ └── LC_MESSAGES │ │ │ └── objdictgen.mo │ ├── networkedit.ico │ ├── networkedit.png │ ├── networkedit.py │ ├── networkeditortemplate.py │ ├── node.py │ ├── node.pyc │ ├── nodeeditortemplate.py │ ├── nodeeditortemplate.pyc │ ├── nodelist.py │ ├── nodemanager.py │ ├── nodemanager.pyc │ ├── objdictedit.py │ ├── objdictgen.py │ ├── subindextable.py │ ├── subindextable.pyc │ └── test.py │ └── src │ ├── Makefile.in │ ├── dcf.c │ ├── emcy.c │ ├── lifegrd.c │ ├── lss.c │ ├── nmtMaster.c │ ├── nmtSlave.c │ ├── objacces.c │ ├── pdo.c │ ├── sdo.c │ ├── states.c │ ├── symbols.c │ ├── sync.c │ ├── timer.c │ └── win32 │ └── CanFestival-3.def ├── Makefile ├── Middlewares └── Third_Party │ └── FreeRTOS │ └── Source │ ├── CMSIS_RTOS │ ├── cmsis_os.c │ └── cmsis_os.h │ ├── croutine.c │ ├── event_groups.c │ ├── include │ ├── FreeRTOS.h │ ├── FreeRTOSConfig_template.h │ ├── StackMacros.h │ ├── croutine.h │ ├── deprecated_definitions.h │ ├── event_groups.h │ ├── list.h │ ├── message_buffer.h │ ├── mpu_prototypes.h │ ├── mpu_wrappers.h │ ├── portable.h │ ├── projdefs.h │ ├── queue.h │ ├── semphr.h │ ├── stack_macros.h │ ├── stream_buffer.h │ ├── task.h │ └── timers.h │ ├── list.c │ ├── portable │ ├── GCC │ │ └── ARM_CM3 │ │ │ ├── port.c │ │ │ └── portmacro.h │ └── MemMang │ │ ├── heap_1.c │ │ ├── heap_2.c │ │ ├── heap_3.c │ │ ├── heap_4.c │ │ └── heap_5.c │ ├── queue.c │ ├── stream_buffer.c │ ├── tasks.c │ └── timers.c ├── ReadMe.md ├── STM32F103CBTx_FLASH.ld ├── STM32_RTOS_CANFestival.ioc ├── Src ├── can.c ├── freertos.c ├── gpio.c ├── main.c ├── stm32f1xx_hal_msp.c ├── stm32f1xx_hal_timebase_tim.c ├── stm32f1xx_it.c ├── system_stm32f1xx.c ├── testcan.c └── tim.c ├── pulseView.pvs ├── slave.od ├── startup_stm32f103xb.s └── support └── STM32F103xx.svd /.clang-format: -------------------------------------------------------------------------------- 1 | ColumnLimit: 120 2 | AlignConsecutiveAssignments: true 3 | # https://csc-codestyle.readthedocs.io/ru/latest/ 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | /Documents 3 | *.log 4 | .git/ 5 | .gitignore 6 | Src/testcan.c -------------------------------------------------------------------------------- /.vscode/.cortex-debug.peripherals.state.json: -------------------------------------------------------------------------------- 1 | [{"node":"CAN","expanded":true,"format":0},{"node":"CAN.CAN_RDT0R","expanded":true,"format":0},{"node":"CAN.CAN_RDT1R","expanded":true,"format":0},{"node":"CAN.F0R2","expanded":true,"format":0},{"node":"GPIOA.ODR","expanded":true,"format":0},{"node":"GPIOB.ODR","expanded":true,"format":0},{"node":"NVIC.ISER0","expanded":true,"format":0},{"node":"TIM2","expanded":true,"format":0},{"node":"WWDG.CR","expanded":true,"format":0},{"node":"WWDG.CFR","expanded":true,"format":0},{"node":"WWDG.SR","expanded":true,"format":0}] -------------------------------------------------------------------------------- /.vscode/.cortex-debug.registers.state.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /.vscode/keybindings.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "key": "alt+shiht+F3", 4 | "command": "editor.action.transformToUppercase", 5 | "when": "editorTextFocus" 6 | }, 7 | { 8 | "key": "ctrl+shift+u", 9 | "command": "editor.action.transformToUppercase", 10 | "when": "editorTextFocus" 11 | }, 12 | { 13 | "key": "ctrl+b", 14 | "command": "workbench.action.tasks.runTask", 15 | "args": "build" 16 | } 17 | ] -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "cortex-debug.enableTelemetry": false, 3 | "cortex-debug.armToolchainPath": "C:/stm32SW/GCC/bin/", 4 | "cortex-debug.openocdPath": "c:/stm32SW/OpenOCD/bin/openocd.exe", 5 | "cortex-debug.openocdScripts": "C:/stm32SW/OpenOCD/share/openocd/scripts", 6 | "CPU_FREQ": 72000000, 7 | "GCCPath": "C:/stm32SW/GCC", 8 | "workbench.colorCustomizations": { 9 | "window.activeBorder": "#01fc01", 10 | "statusBar.background": "#104110dc", 11 | // "titleBar.activeForeground": "#ff0000", 12 | "titleBar.inactiveBackground": "#0bf10bdc", 13 | "titleBar.activeBackground": "#104110dc" 14 | }, 15 | "languageTool.language": "en,ru", 16 | "languageTool.enabled": true, 17 | "C_Cpp.errorSquiggles": "Enabled", 18 | "cSpell.language": "en,ru", 19 | "workbench.settings.useSplitJSON": true, 20 | } -------------------------------------------------------------------------------- /CanHack-TX-lists.txl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/CanHack-TX-lists.txl -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/inc/jtest.h: -------------------------------------------------------------------------------- 1 | #ifndef _JTEST_H_ 2 | #define _JTEST_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Includes */ 6 | /*--------------------------------------------------------------------------------*/ 7 | 8 | #include "jtest_fw.h" 9 | #include "jtest_test.h" 10 | #include "jtest_test_define.h" 11 | #include "jtest_test_call.h" 12 | #include "jtest_group.h" 13 | #include "jtest_group_define.h" 14 | #include "jtest_group_call.h" 15 | #include "jtest_cycle.h" 16 | 17 | #endif /* _JTEST_H_ */ 18 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/inc/jtest_test_ret.h: -------------------------------------------------------------------------------- 1 | #ifndef _JTEST_TEST_RET_H_ 2 | #define _JTEST_TEST_RET_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Type Definitions */ 6 | /*--------------------------------------------------------------------------------*/ 7 | 8 | /** 9 | * Values a #JTEST_TEST_t can return. 10 | */ 11 | typedef enum JTEST_TEST_RET_enum 12 | { 13 | JTEST_TEST_PASSED, 14 | JTEST_TEST_FAILED 15 | } JTEST_TEST_RET_t; 16 | 17 | #endif /* _JTEST_TEST_RET_H_ */ 18 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/inc/jtest_util.h: -------------------------------------------------------------------------------- 1 | #ifndef _JTEST_UTIL_H_ 2 | #define _JTEST_UTIL_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Includes */ 6 | /*--------------------------------------------------------------------------------*/ 7 | 8 | #include "util/util.h" 9 | 10 | /*--------------------------------------------------------------------------------*/ 11 | /* Macros and Defines */ 12 | /*--------------------------------------------------------------------------------*/ 13 | 14 | /* Define boolean values for the framework. */ 15 | #define JTEST_TRUE 1 /**< Value used for TRUE in JTEST. */ 16 | #define JTEST_FALSE 0 /**< Value used for FALSE in JTEST. */ 17 | 18 | /** 19 | * Set the value of the attribute in the struct to by struct_ptr to value. 20 | */ 21 | #define JTEST_SET_STRUCT_ATTRIBUTE(struct_ptr, attribute, value) \ 22 | do \ 23 | { \ 24 | (struct_ptr)->attribute = (value); \ 25 | } while (0) 26 | 27 | #endif /* _JTEST_UTIL_H_ */ 28 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/inc/opt_arg/opt_arg.h: -------------------------------------------------------------------------------- 1 | #ifndef _OPT_ARG_H_ 2 | #define _OPT_ARG_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Includes */ 6 | /*--------------------------------------------------------------------------------*/ 7 | 8 | #include "pp_narg.h" 9 | #include "splice.h" 10 | 11 | /* If you are Joseph Jaoudi, you have a snippet which expands into an 12 | example. If you are not Joseph, but possess his code, study the examples. If 13 | you have no examples, turn back contact Joseph. */ 14 | 15 | #endif /* _OPT_ARG_H_ */ 16 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/inc/opt_arg/splice.h: -------------------------------------------------------------------------------- 1 | #ifndef _SPLICE_H_ 2 | #define _SPLICE_H_ 3 | 4 | #define SPLICE(a,b) SPLICE_1(a,b) 5 | #define SPLICE_1(a,b) SPLICE_2(a,b) 6 | #define SPLICE_2(a,b) a##b 7 | 8 | #endif /* _SPLICE_H_ */ 9 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/src/jtest_cycle.c: -------------------------------------------------------------------------------- 1 | #include "../inc/jtest_cycle.h" 2 | #include 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Define Module Variables */ 6 | /*--------------------------------------------------------------------------------*/ 7 | 8 | /* const char * JTEST_CYCLE_STRF = "Running: %s\nCycles: %" PRIu32 "\n"; */ 9 | const char * JTEST_CYCLE_STRF = "Cycles: %" PRIu32 "\n"; /* function name + parameter string skipped */ 10 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/src/jtest_dump_str_segments.c: -------------------------------------------------------------------------------- 1 | #include "jtest_fw.h" 2 | 3 | /** 4 | * Dump the JTEST_FW.str_buffer the Keil framework in pieces. 5 | * 6 | * The JTEST_FW.str_buffer contains more characters than the Keil framework can 7 | * dump at once. This function dumps them in blocks. 8 | */ 9 | void jtest_dump_str_segments(void) 10 | { 11 | uint32_t seg_idx = 0; 12 | uint32_t memmove_idx = 0; 13 | uint32_t seg_cnt = 14 | (strlen(JTEST_FW.str_buffer) / JTEST_STR_MAX_OUTPUT_SIZE) + 1; 15 | 16 | for( seg_idx = 0; seg_idx < seg_cnt; ++seg_idx) 17 | { 18 | JTEST_TRIGGER_ACTION(dump_str); 19 | 20 | if (seg_idx < JTEST_STR_MAX_OUTPUT_SEGMENTS) 21 | { 22 | memmove_idx = 0; 23 | while (memmove_idx < (seg_cnt - seg_idx -1) ) 24 | { 25 | memmove( 26 | JTEST_FW.str_buffer+ 27 | (memmove_idx* JTEST_STR_MAX_OUTPUT_SIZE), 28 | JTEST_FW.str_buffer+ 29 | ((memmove_idx+1)*JTEST_STR_MAX_OUTPUT_SIZE), 30 | JTEST_BUF_SIZE); 31 | ++memmove_idx; 32 | } 33 | } 34 | } 35 | return; 36 | } 37 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/src/jtest_fw.c: -------------------------------------------------------------------------------- 1 | #include "../inc/jtest.h" 2 | 3 | /*--------------------------------------------------------------------------------*/ 4 | /* Define Global Variables */ 5 | /*--------------------------------------------------------------------------------*/ 6 | 7 | char JTEST_FW_STR_BUFFER[JTEST_BUF_SIZE] = {0}; 8 | 9 | volatile JTEST_FW_t JTEST_FW = {0}; 10 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/src/jtest_trigger_action.c: -------------------------------------------------------------------------------- 1 | 2 | #include "jtest_fw.h" 3 | 4 | void test_start (void) { 5 | // ; 6 | JTEST_FW.test_start++; 7 | } 8 | 9 | void test_end (void) { 10 | // ; 11 | JTEST_FW.test_end++; 12 | } 13 | 14 | void group_start (void) { 15 | // ; 16 | JTEST_FW.group_start++; 17 | } 18 | 19 | void group_end (void) { 20 | // ; 21 | JTEST_FW.group_end++; 22 | } 23 | 24 | void dump_str (void) { 25 | // ; 26 | JTEST_FW.dump_str++; 27 | } 28 | 29 | void dump_data (void) { 30 | // ; 31 | JTEST_FW.dump_data++; 32 | } 33 | 34 | void exit_fw (void) { 35 | // ; 36 | JTEST_FW.exit_fw++; 37 | } 38 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/all_tests.h: -------------------------------------------------------------------------------- 1 | #ifndef _ALL_TESTS_H_ 2 | #define _ALL_TESTS_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Declare Test Groups */ 6 | /*--------------------------------------------------------------------------------*/ 7 | JTEST_DECLARE_GROUP(all_tests); 8 | 9 | #endif /* _ALL_TESTS_H_ */ 10 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/basic_math_tests/basic_math_test_group.h: -------------------------------------------------------------------------------- 1 | #ifndef _BASIC_MATH_TEST_GROUP_H_ 2 | #define _BASIC_MATH_TEST_GROUP_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Declare Test Groups */ 6 | /*--------------------------------------------------------------------------------*/ 7 | JTEST_DECLARE_GROUP(basic_math_tests); 8 | 9 | #endif /* _BASIC_MATH_TEST_GROUP_H_ */ 10 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/basic_math_tests/basic_math_tests.h: -------------------------------------------------------------------------------- 1 | #ifndef _BASIC_MATH_TESTS_H_ 2 | #define _BASIC_MATH_TESTS_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Test/Group Declarations */ 6 | /*--------------------------------------------------------------------------------*/ 7 | JTEST_DECLARE_GROUP(abs_tests); 8 | JTEST_DECLARE_GROUP(add_tests); 9 | JTEST_DECLARE_GROUP(dot_prod_tests); 10 | JTEST_DECLARE_GROUP(mult_tests); 11 | JTEST_DECLARE_GROUP(negate_tests); 12 | JTEST_DECLARE_GROUP(offset_tests); 13 | JTEST_DECLARE_GROUP(scale_tests); 14 | JTEST_DECLARE_GROUP(shift_tests); 15 | JTEST_DECLARE_GROUP(sub_tests); 16 | 17 | #endif /* _BASIC_MATH_TESTS_H_ */ 18 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/complex_math_tests/complex_math_test_group.h: -------------------------------------------------------------------------------- 1 | #ifndef _COMPLEX_MATH_TEST_GROUP_H_ 2 | #define _COMPLEX_MATH_TEST_GROUP_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Declare Test Groups */ 6 | /*--------------------------------------------------------------------------------*/ 7 | JTEST_DECLARE_GROUP(complex_math_tests); 8 | 9 | #endif /* _COMPLEX_MATH_TEST_GROUP_H_ */ 10 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/complex_math_tests/complex_math_tests.h: -------------------------------------------------------------------------------- 1 | #ifndef _COMPLEX_MATH_TESTS_H_ 2 | #define _COMPLEX_MATH_TESTS_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Test/Group Declarations */ 6 | /*--------------------------------------------------------------------------------*/ 7 | JTEST_DECLARE_GROUP(cmplx_conj_tests); 8 | JTEST_DECLARE_GROUP(cmplx_dot_prod_tests); 9 | JTEST_DECLARE_GROUP(cmplx_mag_tests); 10 | JTEST_DECLARE_GROUP(cmplx_mag_squared_tests); 11 | JTEST_DECLARE_GROUP(cmplx_mult_cmplx_tests); 12 | JTEST_DECLARE_GROUP(cmplx_mult_real_tests); 13 | 14 | #endif /* _COMPLEX_MATH_TESTS_H_ */ 15 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/controller_tests/controller_test_group.h: -------------------------------------------------------------------------------- 1 | #ifndef _CONTROLLER_TEST_GROUP_H_ 2 | #define _CONTROLLER_TEST_GROUP_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Declare Test Group */ 6 | /*--------------------------------------------------------------------------------*/ 7 | JTEST_DECLARE_GROUP(controller_tests); 8 | 9 | #endif /* _CONTROLLER_TEST_GROUP_H_ */ 10 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/controller_tests/controller_tests.h: -------------------------------------------------------------------------------- 1 | #ifndef _CONTROLLER_TESTS_H_ 2 | #define _CONTROLLER_TESTS_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Test/Group Declarations */ 6 | /*--------------------------------------------------------------------------------*/ 7 | JTEST_DECLARE_GROUP(pid_reset_tests); 8 | JTEST_DECLARE_GROUP(sin_cos_tests); 9 | JTEST_DECLARE_GROUP(pid_tests); 10 | 11 | #endif /* _CONTROLLER_TESTS_H_ */ 12 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/fast_math_tests/fast_math_test_group.h: -------------------------------------------------------------------------------- 1 | #ifndef _FAST_MATH_TEST_GROUP_H_ 2 | #define _FAST_MATH_TEST_GROUP_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Declare Test Groups */ 6 | /*--------------------------------------------------------------------------------*/ 7 | JTEST_DECLARE_GROUP(fast_math_tests); 8 | 9 | #endif /* _FAST_MATH_TEST_GROUP_H_ */ 10 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/filtering_tests/filtering_test_group.h: -------------------------------------------------------------------------------- 1 | #ifndef _FILTERING_TEST_GROUP_H_ 2 | #define _FILTERING_TEST_GROUP_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Declare Test Groups */ 6 | /*--------------------------------------------------------------------------------*/ 7 | JTEST_DECLARE_GROUP(filtering_tests); 8 | 9 | #endif /* _FILTERING_TEST_GROUP_H_ */ 10 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/filtering_tests/filtering_tests.h: -------------------------------------------------------------------------------- 1 | #ifndef _FILTERING_TESTS_H_ 2 | #define _FILTERING_TESTS_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Test/Group Declarations */ 6 | /*--------------------------------------------------------------------------------*/ 7 | 8 | JTEST_DECLARE_GROUP(biquad_tests); 9 | JTEST_DECLARE_GROUP(conv_tests); 10 | JTEST_DECLARE_GROUP(correlate_tests); 11 | JTEST_DECLARE_GROUP(fir_tests); 12 | JTEST_DECLARE_GROUP(iir_tests); 13 | JTEST_DECLARE_GROUP(lms_tests); 14 | 15 | #endif /* _FILTERING_TESTS_H_ */ 16 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/intrinsics_tests/intrinsics_test_data.h: -------------------------------------------------------------------------------- 1 | #ifndef _INTRINSICS_TEST_DATA_H_ 2 | #define _INTRINSICS_TEST_DATA_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Includes */ 6 | /*--------------------------------------------------------------------------------*/ 7 | 8 | #include "arm_math.h" 9 | 10 | /*--------------------------------------------------------------------------------*/ 11 | /* Macros and Defines */ 12 | /*--------------------------------------------------------------------------------*/ 13 | 14 | #define INTRINSICS_MAX_LEN 1024 15 | 16 | /*--------------------------------------------------------------------------------*/ 17 | /* Variable Declarations */ 18 | /*--------------------------------------------------------------------------------*/ 19 | 20 | extern q63_t intrinsics_output_fut[INTRINSICS_MAX_LEN]; 21 | extern q63_t intrinsics_output_ref[INTRINSICS_MAX_LEN]; 22 | extern float32_t intrinsics_output_f32_fut[INTRINSICS_MAX_LEN]; 23 | extern float32_t intrinsics_output_f32_ref[INTRINSICS_MAX_LEN]; 24 | extern const q63_t intrinsics_q63_inputs[INTRINSICS_MAX_LEN]; 25 | extern const q31_t *intrinsics_q31_inputs; 26 | 27 | #endif /* _INTRINSICS_TEST_DATA_H_ */ 28 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/intrinsics_tests/intrinsics_test_group.h: -------------------------------------------------------------------------------- 1 | #ifndef _INTRINSICS_TEST_GROUP_H_ 2 | #define _INTRINSICS_TEST_GROUP_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Declare Test Groups */ 6 | /*--------------------------------------------------------------------------------*/ 7 | JTEST_DECLARE_GROUP(intrinsics_tests); 8 | 9 | #endif /* _INTRINSICS_TEST_GROUP_H_ */ 10 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/matrix_tests/matrix_test_group.h: -------------------------------------------------------------------------------- 1 | #ifndef _MATRIX_TEST_GROUP_H_ 2 | #define _MATRIX_TEST_GROUP_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Declare Test Groups */ 6 | /*--------------------------------------------------------------------------------*/ 7 | JTEST_DECLARE_GROUP(matrix_tests); 8 | 9 | #endif /* _MATRIX_TEST_GROUP_H_ */ 10 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/matrix_tests/matrix_tests.h: -------------------------------------------------------------------------------- 1 | #ifndef _MATRIX_TESTS_H_ 2 | #define _MATRIX_TESTS_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Test/Group Declarations */ 6 | /*--------------------------------------------------------------------------------*/ 7 | JTEST_DECLARE_GROUP(mat_add_tests); 8 | JTEST_DECLARE_GROUP(mat_cmplx_mult_tests); 9 | JTEST_DECLARE_GROUP(mat_init_tests); 10 | JTEST_DECLARE_GROUP(mat_inverse_tests); 11 | JTEST_DECLARE_GROUP(mat_mult_tests); 12 | JTEST_DECLARE_GROUP(mat_mult_fast_tests); 13 | JTEST_DECLARE_GROUP(mat_sub_tests); 14 | JTEST_DECLARE_GROUP(mat_trans_tests); 15 | JTEST_DECLARE_GROUP(mat_scale_tests); 16 | 17 | #endif /* _MATRIX_TESTS_H_ */ 18 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/statistics_tests/statistics_test_group.h: -------------------------------------------------------------------------------- 1 | #ifndef _STATISTICS_TEST_GROUP_H_ 2 | #define _STATISTICS_TEST_GROUP_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Declare Test Groups */ 6 | /*--------------------------------------------------------------------------------*/ 7 | JTEST_DECLARE_GROUP(statistics_tests); 8 | 9 | #endif /* _STATISTICS_TEST_GROUP_H_ */ 10 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/statistics_tests/statistics_tests.h: -------------------------------------------------------------------------------- 1 | #ifndef _STATISTICS_TESTS_H_ 2 | #define _STATISTICS_TESTS_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Test/Group Declarations */ 6 | /*--------------------------------------------------------------------------------*/ 7 | JTEST_DECLARE_GROUP(max_tests); 8 | JTEST_DECLARE_GROUP(mean_tests); 9 | JTEST_DECLARE_GROUP(min_tests); 10 | JTEST_DECLARE_GROUP(power_tests); 11 | JTEST_DECLARE_GROUP(rms_tests); 12 | JTEST_DECLARE_GROUP(std_tests); 13 | JTEST_DECLARE_GROUP(var_tests); 14 | 15 | #endif /* _STATISTICS_TESTS_H_ */ 16 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests/support_test_data.h: -------------------------------------------------------------------------------- 1 | #ifndef ARM_SUPPORT_TEST_DATA_H 2 | #define ARM_SUPPORT_TEST_DATA_H 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Includes */ 6 | /*--------------------------------------------------------------------------------*/ 7 | 8 | #include "arr_desc.h" 9 | 10 | /*--------------------------------------------------------------------------------*/ 11 | /* Declare Variables */ 12 | /*--------------------------------------------------------------------------------*/ 13 | 14 | /* Input/Output Buffers */ 15 | ARR_DESC_DECLARE(support_output_fut); 16 | ARR_DESC_DECLARE(support_output_ref); 17 | 18 | /* Block Sizes*/ 19 | ARR_DESC_DECLARE(support_block_sizes); 20 | 21 | /* Numbers */ 22 | ARR_DESC_DECLARE(support_elts); 23 | 24 | /* Float Inputs */ 25 | ARR_DESC_DECLARE(support_zeros); 26 | ARR_DESC_DECLARE(support_f_2); 27 | ARR_DESC_DECLARE(support_f_15); 28 | ARR_DESC_DECLARE(support_f_32); 29 | ARR_DESC_DECLARE(support_f_all); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests/support_test_group.h: -------------------------------------------------------------------------------- 1 | #ifndef _SUPPORT_TEST_GROUP_H_ 2 | #define _SUPPORT_TEST_GROUP_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Declare Test Groups */ 6 | /*--------------------------------------------------------------------------------*/ 7 | JTEST_DECLARE_GROUP(support_tests); 8 | 9 | #endif /* _SUPPORT_TEST_GROUP_H_ */ 10 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/support_tests/support_tests.h: -------------------------------------------------------------------------------- 1 | #ifndef _SUPPORT_TESTS_H_ 2 | #define _SUPPORT_TESTS_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Test/Group Declarations */ 6 | /*--------------------------------------------------------------------------------*/ 7 | JTEST_DECLARE_GROUP(copy_tests); 8 | JTEST_DECLARE_GROUP(fill_tests); 9 | JTEST_DECLARE_GROUP(x_to_y_tests); 10 | 11 | #endif /* _SUPPORT_TESTS_H_ */ 12 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/transform_tests/transform_test_group.h: -------------------------------------------------------------------------------- 1 | #ifndef _TRANSFORM_TEST_GROUP_H_ 2 | #define _TRANSFORM_TEST_GROUP_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Declare Test Groups */ 6 | /*--------------------------------------------------------------------------------*/ 7 | JTEST_DECLARE_GROUP(transform_tests); 8 | 9 | #endif /* _TRANSFORM_TEST_GROUP_H_ */ 10 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/transform_tests/transform_tests.h: -------------------------------------------------------------------------------- 1 | #ifndef _TRANSFORM_TESTS_H_ 2 | #define _TRANSFORM_TESTS_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Test/Group Declarations */ 6 | /*--------------------------------------------------------------------------------*/ 7 | JTEST_DECLARE_GROUP(cfft_tests); 8 | JTEST_DECLARE_GROUP(cfft_family_tests); 9 | JTEST_DECLARE_GROUP(dct4_tests); 10 | JTEST_DECLARE_GROUP(rfft_tests); 11 | JTEST_DECLARE_GROUP(rfft_fast_tests); 12 | 13 | #endif /* _TRANSFORM_TESTS_H_ */ 14 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/inc/type_abbrev.h: -------------------------------------------------------------------------------- 1 | #ifndef _TYPE_ABBREV_H_ 2 | #define _TYPE_ABBREV_H_ 3 | 4 | /*--------------------------------------------------------------------------------*/ 5 | /* Macros and Defines */ 6 | /*--------------------------------------------------------------------------------*/ 7 | 8 | /** 9 | * Expand the abbreviation for a type into the type itself. 10 | */ 11 | #define TYPE_FROM_ABBREV(abbrev) \ 12 | TYPE_ABBREV_##abbrev \ 13 | 14 | /** 15 | * Expand the type to an abbreviation for that type. 16 | * 17 | * Inverse of #TYPE_FROM_ABBREV(). 18 | * 19 | * @note Should be able to get a type back by writing. 20 | * TYPE_FROM_ABBREV(ABBREV_FROM_TYPE(type)) 21 | */ 22 | #define ABBREV_FROM_TYPE(type) \ 23 | TYPE_SUFFIX_##type 24 | 25 | #define TYPE_ABBREV_f64 float64_t 26 | #define TYPE_ABBREV_f32 float32_t 27 | #define TYPE_ABBREV_q31 q31_t 28 | #define TYPE_ABBREV_q15 q15_t 29 | #define TYPE_ABBREV_q7 q7_t 30 | 31 | #define TYPE_SUFFIX_float64_t f64 32 | #define TYPE_SUFFIX_float32_t f32 33 | #define TYPE_SUFFIX_q31_t q31 34 | #define TYPE_SUFFIX_q15_t q15 35 | #define TYPE_SUFFIX_q7_t q7 36 | 37 | #endif /* _TYPE_ABBREV_H_ */ 38 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/system_generic.c: -------------------------------------------------------------------------------- 1 | 2 | #if (defined (ARMCM0)) 3 | #include "system_ARMCM0.c" 4 | 5 | #elif (defined (ARMCM0P)) 6 | #include "system_ARMCM0plus.c" 7 | 8 | #elif (defined (ARMCM3)) 9 | #include "system_ARMCM3.c" 10 | 11 | #elif (defined (ARMCM4) || defined (ARMCM4_FP)) 12 | #include "system_ARMCM4.c" 13 | 14 | #elif (defined (ARMCM7) || defined (ARMCM7_SP) || defined (ARMCM7_DP)) 15 | #include "system_ARMCM7.c" 16 | 17 | #elif defined (ARMv8MBL) 18 | #include "system_ARMv8MBL.c" 19 | 20 | #elif (defined (ARMv8MML) || defined (ARMv8MML_DSP) || \ 21 | defined (ARMv8MML_SP) || defined (ARMv8MML_DSP_SP) || \ 22 | defined (ARMv8MML_DP) || defined (ARMv8MML_DSP_DP) ) 23 | #include "system_ARMv8MML.c" 24 | 25 | #else 26 | #error "No appropriate system file found!" 27 | #endif 28 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/all_tests.c: -------------------------------------------------------------------------------- 1 | #include "jtest.h" 2 | #include "basic_math_test_group.h" 3 | #include "complex_math_test_group.h" 4 | #include "controller_test_group.h" 5 | #include "fast_math_test_group.h" 6 | #include "filtering_test_group.h" 7 | #include "matrix_test_group.h" 8 | #include "statistics_test_group.h" 9 | #include "support_test_group.h" 10 | #include "transform_test_group.h" 11 | #include "intrinsics_test_group.h" 12 | 13 | JTEST_DEFINE_GROUP(all_tests) 14 | { 15 | /* 16 | To skip a test, comment it out 17 | */ 18 | JTEST_GROUP_CALL(basic_math_tests); 19 | JTEST_GROUP_CALL(complex_math_tests); 20 | JTEST_GROUP_CALL(controller_tests); 21 | JTEST_GROUP_CALL(fast_math_tests); 22 | JTEST_GROUP_CALL(filtering_tests); 23 | JTEST_GROUP_CALL(matrix_tests); 24 | JTEST_GROUP_CALL(statistics_tests); 25 | JTEST_GROUP_CALL(support_tests); 26 | JTEST_GROUP_CALL(transform_tests); 27 | JTEST_GROUP_CALL(intrinsics_tests); 28 | 29 | return; 30 | } 31 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/basic_math_tests/abs_tests.c: -------------------------------------------------------------------------------- 1 | #include "jtest.h" 2 | #include "basic_math_test_data.h" 3 | #include "arr_desc.h" 4 | #include "arm_math.h" /* FUTs */ 5 | #include "ref.h" /* Reference Functions */ 6 | #include "test_templates.h" 7 | #include "basic_math_templates.h" 8 | #include "type_abbrev.h" 9 | 10 | #define JTEST_ARM_ABS_TEST(suffix) \ 11 | BASIC_MATH_DEFINE_TEST_TEMPLATE_BUF1_BLK( \ 12 | abs, \ 13 | suffix, \ 14 | TYPE_FROM_ABBREV(suffix), \ 15 | TYPE_FROM_ABBREV(suffix)) 16 | 17 | JTEST_ARM_ABS_TEST(f32); 18 | JTEST_ARM_ABS_TEST(q31); 19 | JTEST_ARM_ABS_TEST(q15); 20 | JTEST_ARM_ABS_TEST(q7 ); 21 | 22 | /*--------------------------------------------------------------------------------*/ 23 | /* Collect all tests in a group. */ 24 | /*--------------------------------------------------------------------------------*/ 25 | 26 | JTEST_DEFINE_GROUP(abs_tests) 27 | { 28 | JTEST_TEST_CALL(arm_abs_f32_test); 29 | JTEST_TEST_CALL(arm_abs_q31_test); 30 | JTEST_TEST_CALL(arm_abs_q15_test); 31 | JTEST_TEST_CALL(arm_abs_q7_test); 32 | } 33 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/basic_math_tests/basic_math_test_group.c: -------------------------------------------------------------------------------- 1 | #include "jtest.h" 2 | #include "basic_math_tests.h" 3 | 4 | JTEST_DEFINE_GROUP(basic_math_tests) 5 | { 6 | JTEST_GROUP_CALL(abs_tests); 7 | JTEST_GROUP_CALL(add_tests); 8 | JTEST_GROUP_CALL(dot_prod_tests); 9 | JTEST_GROUP_CALL(mult_tests); 10 | JTEST_GROUP_CALL(negate_tests); 11 | JTEST_GROUP_CALL(offset_tests); 12 | JTEST_GROUP_CALL(scale_tests); 13 | JTEST_GROUP_CALL(shift_tests); 14 | JTEST_GROUP_CALL(sub_tests); 15 | 16 | return; 17 | } 18 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/basic_math_tests/negate_tests.c: -------------------------------------------------------------------------------- 1 | #include "jtest.h" 2 | #include "basic_math_test_data.h" 3 | #include "arr_desc.h" 4 | #include "arm_math.h" /* FUTs */ 5 | #include "ref.h" /* Reference Functions */ 6 | #include "test_templates.h" 7 | #include "basic_math_templates.h" 8 | #include "type_abbrev.h" 9 | 10 | #define JTEST_ARM_NEGATE_TEST(suffix) \ 11 | BASIC_MATH_DEFINE_TEST_TEMPLATE_BUF1_BLK( \ 12 | negate, \ 13 | suffix, \ 14 | TYPE_FROM_ABBREV(suffix), \ 15 | TYPE_FROM_ABBREV(suffix)) 16 | 17 | JTEST_ARM_NEGATE_TEST(f32); 18 | JTEST_ARM_NEGATE_TEST(q31); 19 | JTEST_ARM_NEGATE_TEST(q15); 20 | JTEST_ARM_NEGATE_TEST(q7); 21 | 22 | /*--------------------------------------------------------------------------------*/ 23 | /* Collect all tests in a group. */ 24 | /*--------------------------------------------------------------------------------*/ 25 | 26 | JTEST_DEFINE_GROUP(negate_tests) 27 | { 28 | JTEST_TEST_CALL(arm_negate_f32_test); 29 | JTEST_TEST_CALL(arm_negate_q31_test); 30 | JTEST_TEST_CALL(arm_negate_q15_test); 31 | JTEST_TEST_CALL(arm_negate_q7_test); 32 | } 33 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/basic_math_tests/shift_tests.c: -------------------------------------------------------------------------------- 1 | #include "jtest.h" 2 | #include "basic_math_test_data.h" 3 | #include "arr_desc.h" 4 | #include "arm_math.h" /* FUTs */ 5 | #include "ref.h" /* Reference Functions */ 6 | #include "test_templates.h" 7 | #include "basic_math_templates.h" 8 | #include "type_abbrev.h" 9 | 10 | #define JTEST_ARM_SHIFT_TEST(suffix) \ 11 | BASIC_MATH_DEFINE_TEST_TEMPLATE_BUF1_ELT1_BLK( \ 12 | shift, \ 13 | suffix, \ 14 | TYPE_FROM_ABBREV(suffix), \ 15 | int8_t, /*elt_type*/ \ 16 | TYPE_FROM_ABBREV(suffix)) 17 | 18 | JTEST_ARM_SHIFT_TEST(q31); 19 | JTEST_ARM_SHIFT_TEST(q15); 20 | JTEST_ARM_SHIFT_TEST(q7); 21 | 22 | /*--------------------------------------------------------------------------------*/ 23 | /* Collect all tests in a group. */ 24 | /*--------------------------------------------------------------------------------*/ 25 | 26 | JTEST_DEFINE_GROUP(shift_tests) 27 | { 28 | JTEST_TEST_CALL(arm_shift_q31_test); 29 | JTEST_TEST_CALL(arm_shift_q15_test); 30 | JTEST_TEST_CALL(arm_shift_q7_test); 31 | } 32 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/complex_math_tests/complex_math_test_group.c: -------------------------------------------------------------------------------- 1 | #include "jtest.h" 2 | #include "complex_math_tests.h" 3 | 4 | JTEST_DEFINE_GROUP(complex_math_tests) 5 | { 6 | JTEST_GROUP_CALL(cmplx_conj_tests); 7 | JTEST_GROUP_CALL(cmplx_dot_prod_tests); 8 | JTEST_GROUP_CALL(cmplx_mag_tests); 9 | JTEST_GROUP_CALL(cmplx_mag_squared_tests); 10 | JTEST_GROUP_CALL(cmplx_mult_cmplx_tests); 11 | JTEST_GROUP_CALL(cmplx_mult_real_tests); 12 | 13 | return; 14 | } 15 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/controller_tests/controller_test_group.c: -------------------------------------------------------------------------------- 1 | #include "jtest.h" 2 | #include "controller_tests.h" 3 | 4 | JTEST_DEFINE_GROUP(controller_tests) 5 | { 6 | /* 7 | To skip a test, comment it out. 8 | */ 9 | JTEST_GROUP_CALL(pid_reset_tests); 10 | JTEST_GROUP_CALL(pid_tests); 11 | JTEST_GROUP_CALL(sin_cos_tests); 12 | return; 13 | } 14 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/filtering_tests/filtering_test_group.c: -------------------------------------------------------------------------------- 1 | #include "jtest.h" 2 | #include "filtering_tests.h" 3 | 4 | JTEST_DEFINE_GROUP(filtering_tests) 5 | { 6 | /* 7 | To skip a test, comment it out. 8 | */ 9 | JTEST_GROUP_CALL(biquad_tests); 10 | JTEST_GROUP_CALL(conv_tests); 11 | JTEST_GROUP_CALL(correlate_tests); 12 | JTEST_GROUP_CALL(fir_tests); 13 | JTEST_GROUP_CALL(iir_tests); 14 | JTEST_GROUP_CALL(lms_tests); 15 | 16 | return; 17 | } 18 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/main.c: -------------------------------------------------------------------------------- 1 | #include "jtest.h" 2 | #include "all_tests.h" 3 | #include "arm_math.h" 4 | 5 | 6 | #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) 7 | asm(" .global __ARM_use_no_argv\n"); 8 | #endif 9 | 10 | 11 | void debug_init(void) 12 | { 13 | uint32_t * SHCSR_ptr = (uint32_t *) 0xE000ED24; /* System Handler Control and State Register */ 14 | *SHCSR_ptr |= 0x70000; /* Enable UsageFault, BusFault, and MemManage fault*/ 15 | } 16 | 17 | int main(void) 18 | { 19 | debug_init(); 20 | 21 | JTEST_INIT(); /* Initialize test framework. */ 22 | 23 | JTEST_GROUP_CALL(all_tests); /* Run all tests. */ 24 | 25 | JTEST_ACT_EXIT_FW(); /* Exit test framework. */ 26 | while (1); /* Never return. */ 27 | } 28 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/matrix_tests/mat_add_tests.c: -------------------------------------------------------------------------------- 1 | #include "jtest.h" 2 | #include "matrix_test_data.h" 3 | #include "arr_desc.h" 4 | #include "arm_math.h" /* FUTs */ 5 | #include "ref.h" /* Reference Functions */ 6 | #include "test_templates.h" 7 | #include "matrix_templates.h" 8 | #include "type_abbrev.h" 9 | 10 | #define JTEST_ARM_MAT_ADD_TEST(suffix) \ 11 | MATRIX_DEFINE_TEST_TEMPLATE_ELT2( \ 12 | mat_add, \ 13 | suffix, \ 14 | MATRIX_TEST_CONFIG_ADDITIVE_OUTPUT, \ 15 | MATRIX_TEST_VALID_ADDITIVE_DIMENSIONS, \ 16 | MATRIX_COMPARE_INTERFACE) 17 | 18 | JTEST_ARM_MAT_ADD_TEST(f32); 19 | JTEST_ARM_MAT_ADD_TEST(q31); 20 | JTEST_ARM_MAT_ADD_TEST(q15); 21 | 22 | /*--------------------------------------------------------------------------------*/ 23 | /* Collect all tests in a group. */ 24 | /*--------------------------------------------------------------------------------*/ 25 | 26 | JTEST_DEFINE_GROUP(mat_add_tests) 27 | { 28 | JTEST_TEST_CALL(arm_mat_add_f32_test); 29 | JTEST_TEST_CALL(arm_mat_add_q31_test); 30 | JTEST_TEST_CALL(arm_mat_add_q15_test); 31 | } 32 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/matrix_tests/mat_trans_tests.c: -------------------------------------------------------------------------------- 1 | #include "jtest.h" 2 | #include "matrix_test_data.h" 3 | #include "arr_desc.h" 4 | #include "arm_math.h" /* FUTs */ 5 | #include "ref.h" /* Reference Functions */ 6 | #include "test_templates.h" 7 | #include "matrix_templates.h" 8 | #include "type_abbrev.h" 9 | 10 | #define JTEST_ARM_MAT_TRANS_TEST(suffix) \ 11 | MATRIX_DEFINE_TEST_TEMPLATE_ELT1( \ 12 | mat_trans, \ 13 | suffix, \ 14 | MATRIX_TEST_CONFIG_TRANSPOSE_OUTPUT, \ 15 | MATRIX_TEST_VALID_DIMENSIONS_ALWAYS) 16 | 17 | JTEST_ARM_MAT_TRANS_TEST(f32); 18 | JTEST_ARM_MAT_TRANS_TEST(q31); 19 | JTEST_ARM_MAT_TRANS_TEST(q15); 20 | 21 | /*--------------------------------------------------------------------------------*/ 22 | /* Collect all tests in a group. */ 23 | /*--------------------------------------------------------------------------------*/ 24 | 25 | JTEST_DEFINE_GROUP(mat_trans_tests) 26 | { 27 | /* 28 | To skip a test, comment it out. 29 | */ 30 | JTEST_TEST_CALL(arm_mat_trans_f32_test); 31 | JTEST_TEST_CALL(arm_mat_trans_q31_test); 32 | JTEST_TEST_CALL(arm_mat_trans_q15_test); 33 | } 34 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/matrix_tests/matrix_test_group.c: -------------------------------------------------------------------------------- 1 | #include "jtest.h" 2 | #include "matrix_tests.h" 3 | 4 | JTEST_DEFINE_GROUP(matrix_tests) 5 | { 6 | /* 7 | To skip a test, comment it out. 8 | */ 9 | JTEST_GROUP_CALL(mat_add_tests); 10 | JTEST_GROUP_CALL(mat_cmplx_mult_tests); 11 | JTEST_GROUP_CALL(mat_init_tests); 12 | JTEST_GROUP_CALL(mat_inverse_tests); 13 | JTEST_GROUP_CALL(mat_mult_tests); 14 | JTEST_GROUP_CALL(mat_mult_fast_tests); 15 | JTEST_GROUP_CALL(mat_sub_tests); 16 | JTEST_GROUP_CALL(mat_trans_tests); 17 | JTEST_GROUP_CALL(mat_scale_tests); 18 | return; 19 | } 20 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/statistics_tests/statistics_test_group.c: -------------------------------------------------------------------------------- 1 | #include "jtest.h" 2 | #include "statistics_tests.h" 3 | 4 | JTEST_DEFINE_GROUP(statistics_tests) 5 | { 6 | JTEST_GROUP_CALL(max_tests); 7 | JTEST_GROUP_CALL(mean_tests); 8 | JTEST_GROUP_CALL(min_tests); 9 | JTEST_GROUP_CALL(power_tests); 10 | JTEST_GROUP_CALL(rms_tests); 11 | JTEST_GROUP_CALL(std_tests); 12 | JTEST_GROUP_CALL(var_tests); 13 | return; 14 | } 15 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/support_tests/support_test_group.c: -------------------------------------------------------------------------------- 1 | #include "jtest.h" 2 | #include "support_tests.h" 3 | 4 | JTEST_DEFINE_GROUP(support_tests) 5 | { 6 | JTEST_GROUP_CALL(copy_tests); 7 | JTEST_GROUP_CALL(fill_tests); 8 | JTEST_GROUP_CALL(x_to_y_tests); 9 | return; 10 | } 11 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/transform_tests/transform_test_group.c: -------------------------------------------------------------------------------- 1 | #include "jtest.h" 2 | #include "transform_tests.h" 3 | 4 | JTEST_DEFINE_GROUP(transform_tests) 5 | { 6 | JTEST_GROUP_CALL(cfft_tests); 7 | JTEST_GROUP_CALL(cfft_family_tests); 8 | JTEST_GROUP_CALL(rfft_tests); 9 | JTEST_GROUP_CALL(rfft_fast_tests); 10 | JTEST_GROUP_CALL(dct4_tests); 11 | } 12 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/RefLibs/src/BasicMathFunctions/abs.c: -------------------------------------------------------------------------------- 1 | #include "ref.h" 2 | 3 | void ref_abs_f32( 4 | float32_t * pSrc, 5 | float32_t * pDst, 6 | uint32_t blockSize) 7 | { 8 | uint32_t i; 9 | 10 | for(i=0;i> -shiftBits; 23 | } 24 | } 25 | } 26 | 27 | void ref_shift_q15( 28 | q15_t * pSrc, 29 | int8_t shiftBits, 30 | q15_t * pDst, 31 | uint32_t blockSize) 32 | { 33 | uint32_t i; 34 | 35 | if (shiftBits < 0) 36 | { 37 | for(i=0;i> -shiftBits; 47 | } 48 | } 49 | } 50 | 51 | void ref_shift_q7( 52 | q7_t * pSrc, 53 | int8_t shiftBits, 54 | q7_t * pDst, 55 | uint32_t blockSize) 56 | { 57 | uint32_t i; 58 | 59 | if (shiftBits < 0) 60 | { 61 | for(i=0;i> -shiftBits; 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/RefLibs/src/BasicMathFunctions/sub.c: -------------------------------------------------------------------------------- 1 | #include "ref.h" 2 | 3 | void ref_sub_f32( 4 | float32_t * pSrcA, 5 | float32_t * pSrcB, 6 | float32_t * pDst, 7 | uint32_t blockSize) 8 | { 9 | uint32_t i; 10 | 11 | for(i=0;i> 33); 27 | acc1 = (q31_t)(((q63_t)pSrc[i+1] * pSrc[i+1]) >> 33); 28 | out = acc0 + acc1; 29 | *pDst++ = (q31_t)(sqrtf((float)out / 2147483648.0f) * 2147483648.0f); 30 | } 31 | } 32 | 33 | void ref_cmplx_mag_q15( 34 | q15_t * pSrc, 35 | q15_t * pDst, 36 | uint32_t numSamples) 37 | { 38 | uint32_t i; 39 | q31_t acc0,acc1; 40 | q15_t out; 41 | 42 | for(i=0;i> 17); 47 | *pDst++ = (q15_t)(sqrtf((float)out / 32768.0f) * 32768.0f); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/RefLibs/src/ComplexMathFunctions/cmplx_mag_squared.c: -------------------------------------------------------------------------------- 1 | #include "ref.h" 2 | 3 | void ref_cmplx_mag_squared_f32( 4 | float32_t * pSrc, 5 | float32_t * pDst, 6 | uint32_t numSamples) 7 | { 8 | uint32_t i; 9 | 10 | for(i=0;i> 33); 27 | acc1 = (q31_t)(((q63_t)pSrc[i+1] * pSrc[i+1]) >> 33); 28 | *pDst++ = acc0 + acc1; 29 | } 30 | } 31 | 32 | void ref_cmplx_mag_squared_q15( 33 | q15_t * pSrc, 34 | q15_t * pDst, 35 | uint32_t numSamples) 36 | { 37 | uint32_t i; 38 | q31_t acc0,acc1; 39 | 40 | for(i=0;i> 17); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/RefLibs/src/ControllerFunctions/sin_cos.c: -------------------------------------------------------------------------------- 1 | #include "ref.h" 2 | 3 | void ref_sin_cos_f32( 4 | float32_t theta, 5 | float32_t * pSinVal, 6 | float32_t * pCosVal) 7 | { 8 | //theta is given in degrees 9 | *pSinVal = sinf(theta * 6.28318530717959f / 360.0f); 10 | *pCosVal = cosf(theta * 6.28318530717959f / 360.0f); 11 | } 12 | 13 | void ref_sin_cos_q31( 14 | q31_t theta, 15 | q31_t * pSinVal, 16 | q31_t * pCosVal) 17 | { 18 | //theta is given in the range [-1,1) to represent [-pi,pi) 19 | *pSinVal = (q31_t)(sinf((float32_t)theta * 3.14159265358979f / 2147483648.0f) * 2147483648.0f); 20 | *pCosVal = (q31_t)(cosf((float32_t)theta * 3.14159265358979f / 2147483648.0f) * 2147483648.0f); 21 | } 22 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/RefLibs/src/FastMathFunctions/cos.c: -------------------------------------------------------------------------------- 1 | #include "ref.h" 2 | 3 | q31_t ref_cos_q31(q31_t x) 4 | { 5 | return (q31_t)(cosf((float32_t)x * 6.28318530717959f / 2147483648.0f) * 2147483648.0f); 6 | } 7 | 8 | q15_t ref_cos_q15(q15_t x) 9 | { 10 | return (q15_t)(cosf((float32_t)x * 6.28318530717959f / 32768.0f) * 32768.0f); 11 | } 12 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/RefLibs/src/FastMathFunctions/sin.c: -------------------------------------------------------------------------------- 1 | #include "ref.h" 2 | 3 | q31_t ref_sin_q31(q31_t x) 4 | { 5 | return (q31_t)(sinf((float32_t)x * 6.28318530717959f / 2147483648.0f) * 2147483648.0f); 6 | } 7 | 8 | q15_t ref_sin_q15(q15_t x) 9 | { 10 | return (q15_t)(sinf((float32_t)x * 6.28318530717959f / 32768.0f) * 32768.0f); 11 | } 12 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/RefLibs/src/FastMathFunctions/sqrt.c: -------------------------------------------------------------------------------- 1 | #include "ref.h" 2 | 3 | arm_status ref_sqrt_q31(q31_t in, q31_t * pOut) 4 | { 5 | *pOut = (q31_t)(sqrtf((float32_t)in / 2147483648.0f) * 2147483648.0f); 6 | 7 | return ARM_MATH_SUCCESS; 8 | } 9 | 10 | arm_status ref_sqrt_q15(q15_t in, q15_t * pOut) 11 | { 12 | *pOut = (q15_t)(sqrtf((float32_t)in / 32768.0f) * 32768.0f); 13 | 14 | return ARM_MATH_SUCCESS; 15 | } 16 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/RefLibs/src/StatisticsFunctions/mean.c: -------------------------------------------------------------------------------- 1 | #include "ref.h" 2 | 3 | void ref_mean_f32( 4 | float32_t * pSrc, 5 | uint32_t blockSize, 6 | float32_t * pResult) 7 | { 8 | uint32_t i; 9 | float32_t sum=0; 10 | 11 | for(i=0;i> 14; 29 | } 30 | *pResult = sumsq; 31 | } 32 | 33 | void ref_power_q15( 34 | q15_t * pSrc, 35 | uint32_t blockSize, 36 | q63_t * pResult) 37 | { 38 | uint32_t i; 39 | q63_t sumsq=0; 40 | 41 | for(i=0;i 0.0f ? 0.5f : -0.5f; //round 16 | pDst[i] = ref_sat_q31((q63_t)in); //cast and saturate 17 | } 18 | } 19 | 20 | void ref_float_to_q15( 21 | float32_t * pSrc, 22 | q15_t * pDst, 23 | uint32_t blockSize) 24 | { 25 | uint32_t i; 26 | float32_t in; 27 | 28 | for(i=0;i 0.0f ? 0.5f : -0.5f; 33 | pDst[i] = ref_sat_q15((q31_t)in); 34 | } 35 | } 36 | 37 | void ref_float_to_q7( 38 | float32_t * pSrc, 39 | q7_t * pDst, 40 | uint32_t blockSize) 41 | { 42 | uint32_t i; 43 | float32_t in; 44 | 45 | for(i=0;i 0.0f ? 0.5f : -0.5f; 50 | pDst[i] = ref_sat_q7((q15_t)in); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/RefLibs/src/TransformFunctions/bitreversal.c: -------------------------------------------------------------------------------- 1 | #include "ref.h" 2 | 3 | 4 | ;/* 5 | ;* @brief In-place bit reversal function. 6 | ;* @param[in, out] *pSrc points to the in-place buffer of unknown 32-bit data type. 7 | ;* @param[in] bitRevLen bit reversal table length 8 | ;* @param[in] *pBitRevTab points to bit reversal table. 9 | ;* @return none. 10 | ;*/ 11 | void arm_bitreversal_32(uint32_t *pSrc, uint32_t bitRevLen, uint32_t *pBitRevTab) 12 | { 13 | uint32_t a,b,i,tmp; 14 | 15 | for(i=0; i ingelibre < d o t > fr -------------------------------------------------------------------------------- /Lib/canfestival/Readme.md: -------------------------------------------------------------------------------- 1 | ## Форк т. к. похоже это самый живой форк оригинала 2 | 3 | Подправлен генератор словаря *ObjdicEdit*, теперь он работает с текущими библиотеками Python. 4 | Включена возможность указать `can ID` устройства при генерации словаря. 5 | 6 | 7 | `ObjdicEdit.py` протестирован с: 8 | 9 | ```` 10 | Python 2. 7. 13 (v2. 7. 13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v. 1500 64 bit (AMD64)] on win32 11 | Type "help", "copyright", "credits" or "license" for more information. 12 | 13 | >>> import wx 14 | >>> wx. __version__ 15 | 16 | '4. 0. 7. post2' 17 | 18 | >>> quit() 19 | ```` 20 | 21 | также `ObjdicEdit. py` должен работать в debian10. 22 | -------------------------------------------------------------------------------- /Lib/canfestival/debian/README.Debian: -------------------------------------------------------------------------------- 1 | canfestival for Debian 2 | ---------------------- 3 | 4 | 5 | 6 | -- edouard Fri, 16 Nov 2007 11:22:17 +0100 7 | -------------------------------------------------------------------------------- /Lib/canfestival/debian/canfestival-devel.install: -------------------------------------------------------------------------------- 1 | usr/include/canfestival/* 2 | usr/lib/libcanfestival.a 3 | usr/lib/libcanfestival_unix.a 4 | usr/share/CanFestival-3/src/* 5 | usr/share/CanFestival-3/include/* 6 | usr/share/CanFestival-3/drivers/* -------------------------------------------------------------------------------- /Lib/canfestival/debian/canfestival-examples.install: -------------------------------------------------------------------------------- 1 | usr/bin/CANOpenShell 2 | usr/bin/TestMasterSlave 3 | #usr/bin/TestMasterMicroMod 4 | #usr/bin/DS401_Slave_Gui 5 | #usr/bin/DS401_Master 6 | -------------------------------------------------------------------------------- /Lib/canfestival/debian/canfestival-objdictedit.install: -------------------------------------------------------------------------------- 1 | usr/share/CanFestival-3/objdictgen/* 2 | usr/share/applications/objdictedit.desktop -------------------------------------------------------------------------------- /Lib/canfestival/debian/canfestival-objdictedit.postrm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # postrm script for canfestival-objdictedit 3 | # 4 | # see: dh_installdeb(1) 5 | 6 | set -e 7 | 8 | OBJDICTEDIT=/usr/bin/objdictedit 9 | OBJDICTGEN=/usr/bin/objdictgen 10 | 11 | case "$1" in 12 | purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) 13 | 14 | if [ -f "$OBJDICTEDIT" ]; then 15 | rm $OBJDICTEDIT 16 | fi 17 | 18 | if [ -f "$OBJDICTGEN" ]; then 19 | rm $OBJDICTGEN 20 | fi 21 | ;; 22 | 23 | *) 24 | echo "postrm called with unknown argument \`$1'" >&2 25 | exit 1 26 | ;; 27 | esac 28 | 29 | # dh_installdeb will replace this with shell code automatically 30 | # generated by other debhelper scripts. 31 | 32 | #DEBHELPER# 33 | 34 | exit 0 35 | 36 | 37 | -------------------------------------------------------------------------------- /Lib/canfestival/debian/canfestival-peak.install: -------------------------------------------------------------------------------- 1 | usr/lib/libcanfestival_can_peak_linux.so 2 | -------------------------------------------------------------------------------- /Lib/canfestival/debian/canfestival-peak.postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # postinst script for canfestival 3 | # 4 | # see: dh_installdeb(1) 5 | 6 | set -e 7 | 8 | DLL_LIST= 9 | CF_CONFIG=/usr/share/CanFestival-3/objdictgen/canfestival_config.py 10 | CF_CONFIG_TEMP=/usr/share/CanFestival-3/objdictgen/canfestival_config_ori.py 11 | 12 | case "$1" in 13 | configure) 14 | ldconfig 15 | 16 | # Find canfestival driver library in /usr/lib 17 | cd /usr/lib 18 | for file in libcanfestival_can* 19 | do 20 | DLL_LIST="'$file',""$DLL_LIST" 21 | done 22 | 23 | # copy template config and add the DLL_LIST 24 | # do this to display available canfestival plugin list choice in beremiz 25 | cat $CF_CONFIG_TEMP > $CF_CONFIG 26 | echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG 27 | ;; 28 | 29 | abort-upgrade|abort-remove|abort-deconfigure) 30 | ;; 31 | 32 | *) 33 | echo "postinst called with unknown argument \`$1'" >&2 34 | exit 1 35 | ;; 36 | esac 37 | 38 | # dh_installdeb will replace this with shell code automatically 39 | # generated by other debhelper scripts. 40 | 41 | #DEBHELPER# 42 | 43 | exit 0 44 | 45 | 46 | -------------------------------------------------------------------------------- /Lib/canfestival/debian/canfestival-peak.postrm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # postrm script for canfestival 3 | 4 | set -e 5 | 6 | DLL_LIST= 7 | CF_CONFIG_DIR=/usr/share/CanFestival-3/objdictgen/ 8 | CF_CONFIG=/usr/share/CanFestival-3/objdictgen/canfestival_config.py 9 | CF_CONFIG_TEMP=/usr/share/CanFestival-3/objdictgen/canfestival_config_ori.py 10 | 11 | case "$1" in 12 | configure) 13 | ;; 14 | 15 | purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) 16 | 17 | if [ -d $CF_CONFIG_DIR ];then 18 | ldconfig 19 | # Find canfestival driver library in /usr/lib 20 | cd /usr/lib 21 | for file in `ls libcanfestival_can* 2>/dev/null` 22 | do 23 | DLL_LIST="'$file',""$DLL_LIST" 24 | done 25 | 26 | # copy template config and add the DLL_LIST 27 | # do this to display available canfestival plugin list choice in beremiz 28 | cat $CF_CONFIG_TEMP > $CF_CONFIG 29 | echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG 30 | fi 31 | ;; 32 | 33 | *) 34 | echo "postrm called with unknown argument \`$1'" >&2 35 | exit 1 36 | ;; 37 | esac 38 | 39 | # dh_installdeb will replace this with shell code automatically 40 | # generated by other debhelper scripts. 41 | 42 | #DEBHELPER# 43 | 44 | exit 0 45 | 46 | 47 | -------------------------------------------------------------------------------- /Lib/canfestival/debian/canfestival-socket.install: -------------------------------------------------------------------------------- 1 | usr/lib/libcanfestival_can_socket.so 2 | -------------------------------------------------------------------------------- /Lib/canfestival/debian/canfestival-virtual.install: -------------------------------------------------------------------------------- 1 | usr/lib/libcanfestival_can_virtual.so 2 | -------------------------------------------------------------------------------- /Lib/canfestival/debian/canfestival-virtual.postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # postinst script for canfestival 3 | # 4 | # see: dh_installdeb(1) 5 | 6 | set -e 7 | 8 | DLL_LIST= 9 | CF_CONFIG=/usr/share/CanFestival-3/objdictgen/canfestival_config.py 10 | CF_CONFIG_TEMP=/usr/share/CanFestival-3/objdictgen/canfestival_config_ori.py 11 | 12 | case "$1" in 13 | configure) 14 | ldconfig 15 | 16 | # Find canfestival driver library in /usr/lib 17 | cd /usr/lib 18 | for file in libcanfestival_can* 19 | do 20 | DLL_LIST="'$file',""$DLL_LIST" 21 | done 22 | 23 | # copy template config and add the DLL_LIST 24 | # do this to display available canfestival plugin list choice in beremiz 25 | cat $CF_CONFIG_TEMP > $CF_CONFIG 26 | echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG 27 | ;; 28 | 29 | abort-upgrade|abort-remove|abort-deconfigure) 30 | ;; 31 | 32 | *) 33 | echo "postinst called with unknown argument \`$1'" >&2 34 | exit 1 35 | ;; 36 | esac 37 | 38 | # dh_installdeb will replace this with shell code automatically 39 | # generated by other debhelper scripts. 40 | 41 | #DEBHELPER# 42 | 43 | exit 0 44 | 45 | 46 | -------------------------------------------------------------------------------- /Lib/canfestival/debian/canfestival-virtual.postrm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # postrm script for canfestival 3 | 4 | set -e 5 | 6 | DLL_LIST= 7 | CF_CONFIG_DIR=/usr/share/CanFestival-3/objdictgen/ 8 | CF_CONFIG=/usr/share/CanFestival-3/objdictgen/canfestival_config.py 9 | CF_CONFIG_TEMP=/usr/share/CanFestival-3/objdictgen/canfestival_config_ori.py 10 | 11 | case "$1" in 12 | configure) 13 | ;; 14 | 15 | purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) 16 | 17 | if [ -d $CF_CONFIG_DIR ];then 18 | ldconfig 19 | # Find canfestival driver library in /usr/lib 20 | cd /usr/lib 21 | for file in `ls libcanfestival_can* 2>/dev/null` 22 | do 23 | DLL_LIST="'$file',""$DLL_LIST" 24 | done 25 | 26 | # copy template config and add the DLL_LIST 27 | # do this to display available canfestival plugin list choice in beremiz 28 | cat $CF_CONFIG_TEMP > $CF_CONFIG 29 | echo "DLL_LIST=[$DLL_LIST]" >> $CF_CONFIG 30 | fi 31 | ;; 32 | 33 | *) 34 | echo "postrm called with unknown argument \`$1'" >&2 35 | exit 1 36 | ;; 37 | esac 38 | 39 | # dh_installdeb will replace this with shell code automatically 40 | # generated by other debhelper scripts. 41 | 42 | #DEBHELPER# 43 | 44 | exit 0 45 | 46 | 47 | -------------------------------------------------------------------------------- /Lib/canfestival/debian/changelog: -------------------------------------------------------------------------------- 1 | canfestival (3.0-%DATEVERSION%) unstable; urgency=low 2 | 3 | * Initial release (Closes: #nnnn) 4 | 5 | -- edouard Fri, 16 Nov 2007 11:22:17 +0100 6 | 7 | -------------------------------------------------------------------------------- /Lib/canfestival/debian/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /Lib/canfestival/debian/control-peak_linux: -------------------------------------------------------------------------------- 1 | Source: canfestival 2 | Section: devel 3 | Priority: standard 4 | Maintainer: edouard 5 | Build-Depends: debhelper (>= 5), peak-linux-driver-modules 6 | Standards-Version: 3.7.2 7 | 8 | Package: canfestival-peak 9 | Architecture: all 10 | Depends: canfestival-devel, canfestival-objdictedit 11 | Description: Can Driver Interface for Peak Driver 12 | -------------------------------------------------------------------------------- /Lib/canfestival/debian/control-virtual: -------------------------------------------------------------------------------- 1 | Source: canfestival 2 | Section: devel 3 | Priority: standard 4 | Maintainer: edouard 5 | Build-Depends: debhelper (>= 5) 6 | Standards-Version: 3.7.2 7 | 8 | Package: canfestival-devel 9 | Architecture: all 10 | Description: Canfestival library 11 | This package contains the CanFestival library for unix platform. 12 | 13 | Package: canfestival-examples 14 | Architecture: all 15 | Description: Program's Examples for canfestival 16 | This package contains some test programs you can use as example 17 | for your own developments. 18 | - TestMasterSlave : Two CanOpen nodes in the same process 19 | - CANOpenShell : A CanOpen node that can execute some user commands through stdin 20 | 21 | Package: canfestival-virtual 22 | Architecture: all 23 | Depends: canfestival-devel, canfestival-objdictedit 24 | Description: Virtual Can Interfaces 25 | 26 | Package: canfestival-objdictedit 27 | Architecture: all 28 | Depends: python-wxgtk2.8 29 | Description: A CanOpen Node Editor 30 | Objdictedit, the Object Dictionary Editor, is a WxPython based GUI that is used to 31 | create the C file needed to create a new CanOpen node. 32 | 33 | -------------------------------------------------------------------------------- /Lib/canfestival/debian/dirs: -------------------------------------------------------------------------------- 1 | /usr/share/applications 2 | -------------------------------------------------------------------------------- /Lib/canfestival/debian/files: -------------------------------------------------------------------------------- 1 | canfestival_3-1_i386.deb devel standard 2 | canfestival-devel_3-1_all.deb devel standard 3 | canfestival-examples_3-1_all.deb devel standard 4 | canfestival-doc_3-1_all.deb devel standard 5 | canfestival-peak_3-1_all.deb devel standard 6 | canfestival-objdictedit_3-1_all.deb devel standard 7 | -------------------------------------------------------------------------------- /Lib/canfestival/debian/objdictedit.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Encoding=UTF-8 3 | Name=CANOpen Object Dictionary Editor 4 | Name[fr]=Editeur de Dictionnaire d'Objets CANOpen 5 | Comment=Create, modifify, configure CANOpen nodes 6 | Comment[fr]=Créer, modifier, configurer des noeuds CANOpen 7 | Exec=/usr/bin/objdictedit 8 | Icon=/usr/share/CanFestival-3/objdictgen/networkedit.png 9 | Terminal=false 10 | MultipleArgs=false 11 | Type=Application 12 | Categories=Application;Development; 13 | StartupNotify=true 14 | 15 | -------------------------------------------------------------------------------- /Lib/canfestival/debian/objdictedit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/debian/objdictedit.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/CANOpen_memento/CANOpen_memento.odg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/CANOpen_memento/CANOpen_memento.odg -------------------------------------------------------------------------------- /Lib/canfestival/doc/CANOpen_memento/CANOpen_memento.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/CANOpen_memento/CANOpen_memento.pdf -------------------------------------------------------------------------------- /Lib/canfestival/doc/code_debug.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/code_debug.txt -------------------------------------------------------------------------------- /Lib/canfestival/doc/copcican_linux_howto.txt: -------------------------------------------------------------------------------- 1 | HOW TO configure CanFestival for a CO-PCICAN card for linux: 2 | 3 | 4 | 5 | pre-actions: 6 | - install the CO-PCICAN card 7 | - install and load the user space driver co_pcicanext.ko 8 | 9 | 10 | 11 | - unpack the package to your target (if not already done) 12 | 13 | - create empty file: 14 | touch /usr/local/lib/libcanfestival_can_copcican_linux.so 15 | 16 | - perform package configuration: 17 | sh ./configure --can=copcican_linux 18 | 19 | - build the CanFestival library: 20 | cd src 21 | make 22 | make install 23 | 24 | - build the CanFestival Unix library: 25 | cd drivers/unix 26 | make 27 | make install 28 | 29 | BUGFIX: 30 | copy library into build directory back: 31 | cp /usr/local/lib/libcanfestival_unix.a drivers/unix 32 | 33 | - build the CO-PCICAN driver interface: 34 | cd drivers/can_copcican_linux 35 | make 36 | make install 37 | 38 | - build the example application: 39 | cd examples/test_copcican_linux 40 | make 41 | 42 | Run test_copcican_linux to see it works... 43 | 44 | 45 | 46 | Copyright (C) 2010 Cosateq GmbH & Co.KG 47 | http://www.cosateq.com/ 48 | http://www.scale-rt.com/ 49 | 50 | -------------------------------------------------------------------------------- /Lib/canfestival/doc/doxygen/Makefile: -------------------------------------------------------------------------------- 1 | #! gmake 2 | 3 | # 4 | # Copyright (C) 2006 Nicolas GRANDEMANGE 5 | # 6 | # This file is part of canfestival, a library implementing the canopen 7 | # stack 8 | # 9 | # This library is free software; you can redistribute it and/or 10 | # modify it under the terms of the GNU Lesser General Public 11 | # License as published by the Free Software Foundation; either 12 | # version 2.1 of the License, or (at your option) any later version. 13 | # 14 | # This library is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 | # Lesser General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU Lesser General Public 20 | # License along with this library; if not, write to the Free Software 21 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 | # 23 | all: documentation 24 | 25 | clean: 26 | rm -rf html 27 | 28 | 29 | documentation: clean 30 | echo "Doxygen generation!!" 31 | doxygen Doxyfile 32 | #firefox html/index.html& 33 | 34 | -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/100000000000006D000000A31EC8CB54.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/100000000000006D000000A31EC8CB54.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/10000000000000AA0000006014F74635.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/10000000000000AA0000006014F74635.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/10000000000000AB000000C88F594413.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/10000000000000AB000000C88F594413.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/10000000000000AC000000C9C3F53FA6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/10000000000000AC000000C9C3F53FA6.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/10000000000000B6000000DF1EDD1E73.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/10000000000000B6000000DF1EDD1E73.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/100000000000022C000000DEDAD2140C.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/100000000000022C000000DEDAD2140C.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/1000000000000396000000FFC42573DA.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/1000000000000396000000FFC42573DA.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/10000201000000B7000000C66AF89CD5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/10000201000000B7000000C66AF89CD5.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/10000201000001C4000000DD129D4661.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/10000201000001C4000000DD129D4661.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/10000201000001C40000010766961D7F.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/10000201000001C40000010766961D7F.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/10000201000001FC000001E5D65E8766.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/10000201000001FC000001E5D65E8766.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/1000020100000258000000832C6FFAB4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/1000020100000258000000832C6FFAB4.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/10000201000002DE000001D82D89C224.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/10000201000002DE000001D82D89C224.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/10000201000002F30000020B23ED7F67.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/10000201000002F30000020B23ED7F67.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/10000201000003440000025ACC3FD2F1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/10000201000003440000025ACC3FD2F1.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/10000201000003CA0000016604E6A5EF.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/10000201000003CA0000016604E6A5EF.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/10000201000003E7000001C7B0296577.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/10000201000003E7000001C7B0296577.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/10000201000003F9000002CF880931E7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/10000201000003F9000002CF880931E7.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/10000201000003F9000002CF8B0CDAEA.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/10000201000003F9000002CF8B0CDAEA.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/new_node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/new_node.png -------------------------------------------------------------------------------- /Lib/canfestival/doc/manual/en/Pictures/node_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/doc/manual/en/Pictures/node_info.png -------------------------------------------------------------------------------- /Lib/canfestival/drivers/can_anagate_win32/can_anagate_win32.def: -------------------------------------------------------------------------------- 1 | LIBRARY can_anagate_win32 2 | 3 | EXPORTS 4 | canReceive_driver 5 | canSend_driver 6 | canOpen_driver 7 | canClose_driver 8 | canChangeBaudRate_driver -------------------------------------------------------------------------------- /Lib/canfestival/drivers/can_anagate_win32/can_anagate_win32.vc10.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | 14 | 15 | Quelldateien 16 | 17 | 18 | 19 | 20 | Quelldateien 21 | 22 | 23 | 24 | 25 | Headerdateien 26 | 27 | 28 | -------------------------------------------------------------------------------- /Lib/canfestival/drivers/can_copcican_win32/can_copcican_win32.def: -------------------------------------------------------------------------------- 1 | ; This file is part of CanFestival, a library implementing CanOpen Stack. 2 | ; 3 | ; CanFestival Copyright (C): Edouard TISSERANT and Francis DUPIN 4 | ; CanFestival Win32 port Copyright (C) 2007 Leonid Tochinski, ChattenAssociates, Inc. 5 | ; 6 | ; See COPYING file for copyrights details. 7 | ; 8 | ; This library is free software; you can redistribute it and/or 9 | ; modify it under the terms of the GNU Lesser General Public 10 | ; License as published by the Free Software Foundation; either 11 | ; version 2.1 of the License, or (at your option) any later version. 12 | ; 13 | ; This library is distributed in the hope that it will be useful, 14 | ; but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | ; Lesser General Public License for more details. 17 | ; 18 | ; You should have received a copy of the GNU Lesser General Public 19 | ; License along with this library; if not, write to the Free Software 20 | ; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 | 22 | LIBRARY can_copcican_win32 23 | 24 | EXPORTS 25 | canReceive_driver 26 | canSend_driver 27 | canOpen_driver 28 | canClose_driver -------------------------------------------------------------------------------- /Lib/canfestival/drivers/can_copcican_win32/can_copcican_win32.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /Lib/canfestival/drivers/can_copcican_win32/dllmain.cpp: -------------------------------------------------------------------------------- 1 | // dllmain.cpp : Defines the entry point for the DLL application. 2 | #include "stdafx.h" 3 | 4 | BOOL APIENTRY DllMain( HMODULE hModule, 5 | DWORD ul_reason_for_call, 6 | LPVOID lpReserved 7 | ) 8 | { 9 | switch (ul_reason_for_call) 10 | { 11 | case DLL_PROCESS_ATTACH: 12 | case DLL_THREAD_ATTACH: 13 | 14 | break; 15 | case DLL_THREAD_DETACH: 16 | case DLL_PROCESS_DETACH: 17 | 18 | break; 19 | } 20 | return TRUE; 21 | } 22 | 23 | -------------------------------------------------------------------------------- /Lib/canfestival/drivers/can_copcican_win32/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // can_copcican_win32.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /Lib/canfestival/drivers/can_copcican_win32/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | #include "targetver.h" 9 | 10 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 11 | // Windows Header Files: 12 | #include 13 | 14 | 15 | //#include "co_can.h" 16 | #include "public.h" 17 | #include "can_driver.h" 18 | #include "co_can_cinterface.h" 19 | 20 | // TODO: reference additional headers your program requires here 21 | -------------------------------------------------------------------------------- /Lib/canfestival/drivers/can_copcican_win32/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /Lib/canfestival/drivers/can_ixxat_win32/ixxat.def: -------------------------------------------------------------------------------- 1 | ; This file is part of CanFestival, a library implementing CanOpen Stack. 2 | ; 3 | ; CanFestival Copyright (C): Edouard TISSERANT and Francis DUPIN 4 | ; CanFestival Win32 port Copyright (C) 2007 Leonid Tochinski, ChattenAssociates, Inc. 5 | ; 6 | ; See COPYING file for copyrights details. 7 | ; 8 | ; This library is free software; you can redistribute it and/or 9 | ; modify it under the terms of the GNU Lesser General Public 10 | ; License as published by the Free Software Foundation; either 11 | ; version 2.1 of the License, or (at your option) any later version. 12 | ; 13 | ; This library is distributed in the hope that it will be useful, 14 | ; but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | ; Lesser General Public License for more details. 17 | ; 18 | ; You should have received a copy of the GNU Lesser General Public 19 | ; License along with this library; if not, write to the Free Software 20 | ; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 | 22 | LIBRARY IXXAT 23 | 24 | EXPORTS 25 | canReceive_driver 26 | canSend_driver 27 | canOpen_driver 28 | canClose_driver 29 | canChangeBaudRate_driver 30 | -------------------------------------------------------------------------------- /Lib/canfestival/drivers/can_multi_peeakwin32/can_multi_peak_win32.def: -------------------------------------------------------------------------------- 1 | LIBRARY can_multi_peak_win32 2 | 3 | EXPORTS 4 | canReceive_driver 5 | canSend_driver 6 | canOpen_driver 7 | canClose_driver 8 | canChangeBaudRate_driver -------------------------------------------------------------------------------- /Lib/canfestival/drivers/can_peak_win32/can_peak_win32.def: -------------------------------------------------------------------------------- 1 | LIBRARY can_peak_win32 2 | 3 | EXPORTS 4 | canReceive_driver 5 | canSend_driver 6 | canOpen_driver 7 | canClose_driver 8 | canChangeBaudRate_driver -------------------------------------------------------------------------------- /Lib/canfestival/drivers/can_peak_win32/cancfg.h.tail: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------- 2 | //------------------------------------------------------------------------------- 3 | //------------------------------------------------------------------------------- 4 | 5 | #endif 6 | -------------------------------------------------------------------------------- /Lib/canfestival/drivers/can_tcp_win32/Socket.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/drivers/can_tcp_win32/Socket.cpp -------------------------------------------------------------------------------- /Lib/canfestival/drivers/can_tcp_win32/Socket.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/drivers/can_tcp_win32/Socket.h -------------------------------------------------------------------------------- /Lib/canfestival/drivers/can_uvccm_win32/can_uvccm_win32.def: -------------------------------------------------------------------------------- 1 | ; This file is part of CanFestival, a library implementing CanOpen Stack. 2 | ; 3 | ; CanFestival Copyright (C): Edouard TISSERANT and Francis DUPIN 4 | ; CanFestival Win32 port Copyright (C) 2007 Leonid Tochinski, ChattenAssociates, Inc. 5 | ; 6 | ; See COPYING file for copyrights details. 7 | ; 8 | ; This library is free software; you can redistribute it and/or 9 | ; modify it under the terms of the GNU Lesser General Public 10 | ; License as published by the Free Software Foundation; either 11 | ; version 2.1 of the License, or (at your option) any later version. 12 | ; 13 | ; This library is distributed in the hope that it will be useful, 14 | ; but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | ; Lesser General Public License for more details. 17 | ; 18 | ; You should have received a copy of the GNU Lesser General Public 19 | ; License along with this library; if not, write to the Free Software 20 | ; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 | 22 | LIBRARY can_uvccm_win32 23 | 24 | EXPORTS 25 | canReceive_driver 26 | canSend_driver 27 | canOpen_driver 28 | canClose_driver 29 | -------------------------------------------------------------------------------- /Lib/canfestival/drivers/can_uvccm_win32/can_uvccm_win32.vc10.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | 23 | 24 | Source Files 25 | 26 | 27 | -------------------------------------------------------------------------------- /Lib/canfestival/drivers/cm0/cm0.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __MAIN_H 3 | #define __MAIN_H 4 | 5 | #include "stm32f0xx.h" 6 | 7 | // CAN bus defines for STM32F072 8 | 9 | #define CANx CAN 10 | #define CAN_CLK RCC_APB1Periph_CAN 11 | #define CAN_RX_PIN GPIO_Pin_11 12 | #define CAN_TX_PIN GPIO_Pin_12 13 | #define CAN_GPIO_PORT GPIOA 14 | #define CAN_GPIO_CLK RCC_AHBPeriph_GPIOA 15 | #define CAN_AF_PORT GPIO_AF_4 16 | #define CAN_RX_SOURCE GPIO_PinSource11 17 | #define CAN_TX_SOURCE GPIO_PinSource12 18 | 19 | #endif 20 | 21 | -------------------------------------------------------------------------------- /Lib/canfestival/drivers/cm3/cm3.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __MAIN_H 3 | #define __MAIN_H 4 | 5 | #include "stm32f10x.h" 6 | 7 | // CAN bus defines for STM32F103 8 | /* 9 | #define CANx CAN1 10 | #define CAN_CLK RCC_APB1Periph_CAN1 11 | #define CAN_RX_PIN GPIO_Pin_8 12 | #define CAN_TX_PIN GPIO_Pin_9 13 | #define CAN_GPIO_PORT GPIOB 14 | #define CAN_GPIO_CLK RCC_APB2Periph_GPIOB 15 | */ 16 | 17 | // CAN bus defines for STM32F105 18 | #define CANx CAN1 19 | #define CAN_CLK RCC_APB1Periph_CAN1 20 | #define CAN_RX_PIN GPIO_Pin_11 21 | #define CAN_TX_PIN GPIO_Pin_12 22 | #define CAN_GPIO_PORT GPIOA 23 | #define CAN_GPIO_CLK RCC_APB2Periph_GPIOA 24 | 25 | 26 | 27 | #endif 28 | 29 | -------------------------------------------------------------------------------- /Lib/canfestival/drivers/cm4/cm4.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __MAIN_H 3 | #define __MAIN_H 4 | 5 | #include "stm32f37x.h" 6 | 7 | // CAN bus defines for cortex-M4 STM32F373 8 | 9 | #define CANx CAN1 10 | #define CAN_CLK RCC_APB1Periph_CAN1 11 | #define CAN_RX_PIN GPIO_Pin_8 12 | #define CAN_TX_PIN GPIO_Pin_9 13 | #define CAN_GPIO_PORT GPIOB 14 | #define CAN_GPIO_CLK RCC_AHBPeriph_GPIOB 15 | #define CAN_AF_PORT GPIO_AF_9 16 | #define CAN_RX_SOURCE GPIO_PinSource8 17 | #define CAN_TX_SOURCE GPIO_PinSource9 18 | 19 | 20 | #endif 21 | 22 | -------------------------------------------------------------------------------- /Lib/canfestival/drivers/hcs12/ports.s: -------------------------------------------------------------------------------- 1 | /* 2 | Define the i/o port global symbol 3 | */ 4 | 5 | .globl _io_ports 6 | _io_ports=0x0000 7 | 8 | /* 9 | 0x0000 is the default mapping at reset. (it is 0x1000 for 68hc11) 10 | */ 11 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/AT91/Master/ObjDict.h: -------------------------------------------------------------------------------- 1 | 2 | /* File generated by gen_cfile.py. Should not be modified. */ 3 | 4 | #ifndef OBJDICT_H 5 | #define OBJDICT_H 6 | 7 | #include "data.h" 8 | 9 | /* Prototypes of function provided by object dictionnary */ 10 | UNS32 ObjDict_valueRangeTest (UNS8 typeValue, void * value); 11 | const indextable * ObjDict_scanIndexOD (CO_Data *d, UNS16 wIndex, UNS32 * errorCode); 12 | 13 | /* Master node data struct */ 14 | extern CO_Data ObjDict_Data; 15 | extern UNS8 DI1; /* Mapped at index 0x2000, subindex 0x00*/ 16 | extern UNS8 DI2; /* Mapped at index 0x2001, subindex 0x00*/ 17 | extern UNS8 DO1; /* Mapped at index 0x2100, subindex 0x00*/ 18 | extern UNS8 DO2; /* Mapped at index 0x2101, subindex 0x00*/ 19 | 20 | #endif // OBJDICT_H 21 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/AVR/Slave/AVR-Studio/slaveavr.aws: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/AVR/Slave/Atmel-Studio/SlaveAVR.atsln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Atmel Studio Solution File, Format Version 11.00 4 | VisualStudioVersion = 14.0.25420.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{54F91283-7BC4-4236-8FF9-10F437C3AD48}") = "SlaveAVR", "SlaveAVR.cproj", "{DCE6C7E3-EE26-4D79-826B-08594B9AD897}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|AVR = Debug|AVR 11 | Release|AVR = Release|AVR 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Debug|AVR.ActiveCfg = Debug|AVR 15 | {DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Debug|AVR.Build.0 = Debug|AVR 16 | {DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Release|AVR.ActiveCfg = Release|AVR 17 | {DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Release|AVR.Build.0 = Release|AVR 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/CANOpenShell/CANOpenShellsln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 10.00 3 | # Visual C++ Express 2008 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CANOpenShell", "CANOpenShell.vcproj", "{06B3C378-9EE4-4C56-A519-775FF499DAB5}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {06B3C378-9EE4-4C56-A519-775FF499DAB5}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {06B3C378-9EE4-4C56-A519-775FF499DAB5}.Debug|Win32.Build.0 = Debug|Win32 14 | {06B3C378-9EE4-4C56-A519-775FF499DAB5}.Release|Win32.ActiveCfg = Release|Win32 15 | {06B3C378-9EE4-4C56-A519-775FF499DAB5}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/DS401_Slave_Gui/CallBack.h: -------------------------------------------------------------------------------- 1 | #ifndef CALLBACK_H_ 2 | #define CALLBACK_H_ 3 | 4 | extern "C" 5 | { 6 | #include "ObjDict.h" 7 | } 8 | 9 | void Call_heartbeatError (CO_Data * d, UNS8); 10 | 11 | UNS8 Call_canSend (Message *); 12 | 13 | void Call_initialisation (CO_Data * d); 14 | void Call_preOperational (CO_Data * d); 15 | void Call_operational (CO_Data * d); 16 | void Call_stopped (CO_Data * d); 17 | 18 | void Call_post_sync (CO_Data * d); 19 | void Call_post_TPDO (CO_Data * d); 20 | void Call_storeODSubIndex (CO_Data * d, UNS16 wIndex, UNS8 bSubindex); 21 | 22 | #endif /*CALLBACK_H_ */ 23 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/DS401_Slave_Gui/TestSlaveGui.h: -------------------------------------------------------------------------------- 1 | #ifndef TESTSLAVEGUI_H_ 2 | #define TESTSLAVEGUI_H_ 3 | 4 | extern "C" 5 | { 6 | #include "canfestival.h" 7 | } 8 | 9 | int main_can (s_BOARD SlaveBoard, char *LibraryPath); 10 | void stop_slave (); 11 | 12 | #endif /*TESTSLAVEGUI_H_ */ 13 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/SillySlave/README: -------------------------------------------------------------------------------- 1 | SillySlave example for CANfestival 2 | 3 | Its purpose is only to check if the selected 4 | driver works at least a minimum. The PC running this demo 5 | must be connected through CAN bus to a working master that 6 | recognizes the slave nodeId. The slave should be configured 7 | by the master, then switched to operative. After that, when 8 | the master sends a SYNC, the slave answers with PDO1, 9 | containing an integer that increments each time it is sent. 10 | 11 | Please have a look to main.h to tune the master and slave node IDs 12 | 13 | It's all. Enjoy it. 14 | GMB 15 | jan 17,2008 16 | 17 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/SillySlave/SillySlave.h: -------------------------------------------------------------------------------- 1 | 2 | /* File generated by gen_cfile.py. Should not be modified. */ 3 | 4 | #ifndef SILLYSLAVE_H 5 | #define SILLYSLAVE_H 6 | 7 | #include "data.h" 8 | 9 | /* Prototypes of function provided by object dictionnary */ 10 | UNS32 SillySlave_valueRangeTest (UNS8 typeValue, void * value); 11 | const indextable * SillySlave_scanIndexOD (CO_Data *d, UNS16 wIndex, UNS32 * errorCode); 12 | 13 | /* Master node data struct */ 14 | extern CO_Data SillySlave_Data; 15 | extern UNS8 LifeSignal; /* Mapped at index 0x2001, subindex 0x00*/ 16 | 17 | #endif // SILLYSLAVE_H 18 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/TestMasterMicroMod/TestMaster.h: -------------------------------------------------------------------------------- 1 | 2 | /* File generated by gen_cfile.py. Should not be modified. */ 3 | 4 | #ifndef TESTMASTER_H 5 | #define TESTMASTER_H 6 | 7 | #include "data.h" 8 | 9 | /* Prototypes of function provided by object dictionnary */ 10 | UNS32 TestMaster_valueRangeTest (UNS8 typeValue, void * value); 11 | const indextable * TestMaster_scanIndexOD (CO_Data *d, UNS16 wIndex, UNS32 * errorCode); 12 | 13 | /* Master node data struct */ 14 | extern CO_Data TestMaster_Data; 15 | extern UNS8 DO; /* Mapped at index 0x2000, subindex 0x00*/ 16 | extern UNS8 DI1; /* Mapped at index 0x200F, subindex 0x00*/ 17 | extern UNS8 DI2; /* Mapped at index 0x2010, subindex 0x00*/ 18 | extern UNS8 DI3; /* Mapped at index 0x2011, subindex 0x00*/ 19 | extern UNS8 DI4; /* Mapped at index 0x2012, subindex 0x00*/ 20 | extern UNS8 DI5; /* Mapped at index 0x2013, subindex 0x00*/ 21 | extern UNS8 DI6; /* Mapped at index 0x2014, subindex 0x00*/ 22 | extern UNS8 DI7; /* Mapped at index 0x2015, subindex 0x00*/ 23 | extern UNS8 DI8; /* Mapped at index 0x2016, subindex 0x00*/ 24 | 25 | #endif // TESTMASTER_H 26 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/TestMasterSlave/Master.h: -------------------------------------------------------------------------------- 1 | #include "TestMaster.h" 2 | 3 | void TestMaster_heartbeatError(CO_Data* d, UNS8); 4 | 5 | UNS8 TestMaster_canSend(Message *); 6 | 7 | void TestMaster_initialisation(CO_Data* d); 8 | void TestMaster_preOperational(CO_Data* d); 9 | void TestMaster_operational(CO_Data* d); 10 | void TestMaster_stopped(CO_Data* d); 11 | 12 | void TestMaster_post_sync(CO_Data* d); 13 | void TestMaster_post_TPDO(CO_Data* d); 14 | void TestMaster_post_emcy(CO_Data* d, UNS8 nodeID, UNS16 errCode, UNS8 errReg, const UNS8 errSpec[5]); 15 | void TestMaster_post_SlaveBootup(CO_Data* d, UNS8 nodeid); 16 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/TestMasterSlave/Slave.h: -------------------------------------------------------------------------------- 1 | #include "TestSlave.h" 2 | 3 | void TestSlave_heartbeatError(CO_Data* d, UNS8); 4 | 5 | UNS8 TestSlave_canSend(Message *); 6 | 7 | void TestSlave_initialisation(CO_Data* d); 8 | void TestSlave_preOperational(CO_Data* d); 9 | void TestSlave_operational(CO_Data* d); 10 | void TestSlave_stopped(CO_Data* d); 11 | 12 | void TestSlave_post_sync(CO_Data* d); 13 | void TestSlave_post_TPDO(CO_Data* d); 14 | void TestSlave_storeODSubIndex(CO_Data* d, UNS16 wIndex, UNS8 bSubindex); 15 | void TestSlave_post_emcy(CO_Data* d, UNS8 nodeID, UNS16 errCode, UNS8 errReg, const UNS8 errSpec[5]); 16 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/TestMasterSlaveLSS/Master.h: -------------------------------------------------------------------------------- 1 | #include "TestMaster.h" 2 | 3 | void TestMaster_heartbeatError(CO_Data* d, UNS8); 4 | 5 | UNS8 TestMaster_canSend(Message *); 6 | 7 | void TestMaster_initialisation(CO_Data* d); 8 | void TestMaster_preOperational(CO_Data* d); 9 | void TestMaster_operational(CO_Data* d); 10 | void TestMaster_stopped(CO_Data* d); 11 | 12 | void TestMaster_post_sync(CO_Data* d); 13 | void TestMaster_post_TPDO(CO_Data* d); 14 | void TestMaster_post_emcy(CO_Data* d, UNS8 nodeID, UNS16 errCode, UNS8 errReg, const UNS8 errSpec[5]); 15 | void TestMaster_post_SlaveBootup(CO_Data* d, UNS8 nodeid); 16 | 17 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/TestMasterSlaveLSS/SlaveA.h: -------------------------------------------------------------------------------- 1 | #include "TestSlaveA.h" 2 | 3 | void TestSlaveA_heartbeatError(CO_Data* d, UNS8); 4 | 5 | UNS8 TestSlaveA_canSend(Message *); 6 | 7 | void TestSlaveA_initialisation(CO_Data* d); 8 | void TestSlaveA_preOperational(CO_Data* d); 9 | void TestSlaveA_operational(CO_Data* d); 10 | void TestSlaveA_stopped(CO_Data* d); 11 | 12 | void TestSlaveA_post_sync(CO_Data* d); 13 | void TestSlaveA_post_TPDO(CO_Data* d); 14 | void TestSlaveA_storeODSubIndex(CO_Data* d, UNS16 wIndex, UNS8 bSubindex); 15 | void TestSlaveA_post_emcy(CO_Data* d, UNS8 nodeID, UNS16 errCode, UNS8 errReg, const UNS8 errSpec[5]); 16 | void TestSlaveA_NMT_Slave_Communications_Reset_Callback(CO_Data* d); 17 | void TestSlaveA_StoreConfiguration(CO_Data* d, UNS8 *error, UNS8 *spec_error); 18 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/TestMasterSlaveLSS/SlaveB.h: -------------------------------------------------------------------------------- 1 | #include "TestSlaveB.h" 2 | 3 | void TestSlaveB_heartbeatError(CO_Data* d, UNS8); 4 | 5 | UNS8 TestSlaveB_canSend(Message *); 6 | 7 | void TestSlaveB_initialisation(CO_Data* d); 8 | void TestSlaveB_preOperational(CO_Data* d); 9 | void TestSlaveB_operational(CO_Data* d); 10 | void TestSlaveB_stopped(CO_Data* d); 11 | 12 | void TestSlaveB_post_sync(CO_Data* d); 13 | void TestSlaveB_post_TPDO(CO_Data* d); 14 | void TestSlaveB_storeODSubIndex(CO_Data* d, UNS16 wIndex, UNS8 bSubindex); 15 | void TestSlaveB_post_emcy(CO_Data* d, UNS8 nodeID, UNS16 errCode, UNS8 errReg, const UNS8 errSpec[5]); 16 | void TestSlaveB_NMT_Slave_Communications_Reset_Callback(CO_Data* d); 17 | void TestSlaveB_StoreConfiguration(CO_Data* d, UNS8 *error, UNS8 *spec_error); 18 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/gene_SYNC_HCS12/objdict.h: -------------------------------------------------------------------------------- 1 | 2 | /* File generated by gen_cfile.py. Should not be modified. */ 3 | 4 | #ifndef OBJDICT_H 5 | #define OBJDICT_H 6 | 7 | #include "data.h" 8 | 9 | /* Prototypes of function provided by object dictionnary */ 10 | UNS32 gene_SYNC_valueRangeTest (UNS8 typeValue, void * value); 11 | const indextable * gene_SYNC_scanIndexOD (CO_Data *d, UNS16 wIndex, UNS32 * errorCode); 12 | 13 | /* Master node data struct */ 14 | extern CO_Data gene_SYNC_Data; 15 | extern UNS16 acceptanceFilter1; /* Mapped at index 0x2015, subindex 0x00*/ 16 | extern UNS16 acceptanceFilter2; /* Mapped at index 0x2016, subindex 0x00*/ 17 | extern UNS16 acceptanceFilter3; /* Mapped at index 0x2017, subindex 0x00*/ 18 | extern UNS16 acceptanceFilter4; /* Mapped at index 0x2018, subindex 0x00*/ 19 | extern UNS16 mask1; /* Mapped at index 0x2019, subindex 0x00*/ 20 | extern UNS16 mask2; /* Mapped at index 0x2020, subindex 0x00*/ 21 | extern UNS16 mask3; /* Mapped at index 0x2021, subindex 0x00*/ 22 | extern UNS16 mask4; /* Mapped at index 0x2022, subindex 0x00*/ 23 | extern UNS8 applyDownloadedFilters; /* Mapped at index 0x2023, subindex 0x00*/ 24 | 25 | #endif // OBJDICT_H 26 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/gene_SYNC_HCS12/trace32_flash_debug.cmm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/examples/gene_SYNC_HCS12/trace32_flash_debug.cmm -------------------------------------------------------------------------------- /Lib/canfestival/examples/gene_SYNC_HCS12/trace32_flash_debug_sans_init.cmm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/examples/gene_SYNC_HCS12/trace32_flash_debug_sans_init.cmm -------------------------------------------------------------------------------- /Lib/canfestival/examples/gene_SYNC_HCS12/trace32_flash_programmer.cmm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/examples/gene_SYNC_HCS12/trace32_flash_programmer.cmm -------------------------------------------------------------------------------- /Lib/canfestival/examples/kerneltest/Master.h: -------------------------------------------------------------------------------- 1 | #include "TestMaster.h" 2 | 3 | void TestMaster_heartbeatError(CO_Data* d, UNS8); 4 | 5 | UNS8 TestMaster_canSend(Message *); 6 | 7 | void TestMaster_initialisation(CO_Data* d); 8 | void TestMaster_preOperational(CO_Data* d); 9 | void TestMaster_operational(CO_Data* d); 10 | void TestMaster_stopped(CO_Data* d); 11 | 12 | void TestMaster_post_sync(CO_Data* d); 13 | void TestMaster_post_TPDO(CO_Data* d); 14 | void TestMaster_post_emcy(CO_Data* d, UNS8 nodeID, UNS16 errCode, UNS8 errReg, const UNS8 errSpec[5]); 15 | void TestMaster_post_SlaveBootup(CO_Data* d, UNS8 nodeid); 16 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/kerneltest/Slave.h: -------------------------------------------------------------------------------- 1 | #include "TestSlave.h" 2 | 3 | void TestSlave_heartbeatError(CO_Data* d, UNS8); 4 | 5 | UNS8 TestSlave_canSend(Message *); 6 | 7 | void TestSlave_initialisation(CO_Data* d); 8 | void TestSlave_preOperational(CO_Data* d); 9 | void TestSlave_operational(CO_Data* d); 10 | void TestSlave_stopped(CO_Data* d); 11 | 12 | void TestSlave_post_sync(CO_Data* d); 13 | void TestSlave_post_TPDO(CO_Data* d); 14 | void TestSlave_storeODSubIndex(CO_Data* d, UNS16 wIndex, UNS8 bSubindex); 15 | void TestSlave_post_emcy(CO_Data* d, UNS8 nodeID, UNS16 errCode, UNS8 errReg, const UNS8 errSpec[5]); 16 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/kerneltest/TestMasterSlave.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of CanFestival, a library implementing CanOpen Stack. 3 | 4 | Copyright (C): Edouard TISSERANT and Francis DUPIN 5 | 6 | See COPYING file for copyrights details. 7 | 8 | This library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU Lesser General Public 10 | License as published by the Free Software Foundation; either 11 | version 2.1 of the License, or (at your option) any later version. 12 | 13 | This library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | Lesser General Public License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public 19 | License along with this library; if not, write to the Free Software 20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 | */ 22 | 23 | #ifndef TESTMASTERSLAVE_H 24 | #define TESTMASTERSLAVE_H 25 | 26 | #define eprintf(...) printk (KERN_INFO __VA_ARGS__) 27 | 28 | int TestMasterSlave_start (void); 29 | void TestMasterSlave_stop (void); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/kerneltest/console/console.h: -------------------------------------------------------------------------------- 1 | #ifndef __canftest_console_h__ 2 | #define __canftest_console_h__ 3 | 4 | #define DEVICE_NAME "canf_ktest" 5 | 6 | #define CMD_START '1' 7 | #define CMD_STOP '2' 8 | 9 | #endif // __canftest_console.h__ 10 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/kerneltest/insert.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | module="canf_ktest" 4 | device="canf_ktest" 5 | mode="664" 6 | 7 | # insert neccessary modules 8 | /sbin/insmod ../../drivers/can_virtual_kernel/can_virtual.ko 9 | /sbin/insmod ../../src/canfestival.ko 10 | 11 | # insert module with all arguments we got 12 | # and use a pathname, as newer modutils don't look in . by default 13 | /sbin/insmod ./$module.ko $* || exit 1 14 | 15 | # remove stale nodes 16 | rm -f /dev/${device} 17 | 18 | # create device file 19 | major=$(awk "\$2==\"$device\" {print \$1; exit}" /proc/devices) 20 | mknod /dev/${device} c $major 0 21 | 22 | # give appropriate group/permissions, and change the group. 23 | # Not all distributions have staff, some have "wheel" instead. 24 | group="staff" 25 | grep -q '^staff:' /etc/group || group="wheel" 26 | chgrp $group /dev/${device} 27 | chmod $mode /dev/${device} 28 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/kerneltest/remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | module="canf_ktest" 4 | device="canf_ktest" 5 | 6 | /sbin/rmmod $module || exit 1 7 | /sbin/rmmod canfestival 8 | /sbin/rmmod can_virtual 9 | 10 | rm -f /dev/${device} 11 | 12 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/kerneltest/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | /bin/sh insert.sh 4 | 5 | console/canf_ktest_console 6 | 7 | /bin/sh remove.sh 8 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/linux/dcf/dcfdata.txt: -------------------------------------------------------------------------------- 1 | 2 | [1] 3 | 0x1017 0 2 0xE8 0x03 4 | 5 | [2] 6 | 0x1017 0 2 0xE8 0x03 7 | 8 | [3] 9 | 0x1017 0 2 0xE8 0x03 10 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/linux/dcf/gendcf.h: -------------------------------------------------------------------------------- 1 | 2 | #define DCF_MAX_SIZE 50 3 | #define DEVICE_DICT_NAME "dcfdata.txt" 4 | #define DCF_MAX_NODE_ID 5 5 | 6 | void dcf_data_display(uint8_t dcfdata[][DCF_MAX_SIZE]); 7 | int dcf_read_in_file(char *fileName, uint8_t dcfdata[][DCF_MAX_SIZE]); 8 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/linux/dcf/masterdic.h: -------------------------------------------------------------------------------- 1 | 2 | /* File generated by gen_cfile.py. Should not be modified. */ 3 | 4 | #ifndef MASTERDIC_H 5 | #define MASTERDIC_H 6 | 7 | #include "data.h" 8 | 9 | /* Prototypes of function provided by object dictionnary */ 10 | UNS32 masterdic_valueRangeTest (UNS8 typeValue, void * value); 11 | const indextable * masterdic_scanIndexOD (CO_Data *d, UNS16 wIndex, UNS32 * errorCode); 12 | 13 | /* Master node data struct */ 14 | extern CO_Data masterdic_Data; 15 | extern INTEGER16 position_1; /* Mapped at index 0x2000, subindex 0x00*/ 16 | extern INTEGER16 position_2; /* Mapped at index 0x2001, subindex 0x00*/ 17 | extern INTEGER16 position_3; /* Mapped at index 0x2002, subindex 0x00*/ 18 | extern UNS32 counter_1; /* Mapped at index 0x3000, subindex 0x00*/ 19 | extern UNS32 counter_2; /* Mapped at index 0x3001, subindex 0x00*/ 20 | extern UNS32 counter_3; /* Mapped at index 0x3003, subindex 0x00*/ 21 | 22 | #endif // MASTERDIC_H 23 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/linux/dcf/slavedic.h: -------------------------------------------------------------------------------- 1 | 2 | /* File generated by gen_cfile.py. Should not be modified. */ 3 | 4 | #ifndef SLAVEDIC_H 5 | #define SLAVEDIC_H 6 | 7 | #include "data.h" 8 | 9 | /* Prototypes of function provided by object dictionnary */ 10 | UNS32 slavedic_valueRangeTest (UNS8 typeValue, void * value); 11 | const indextable * slavedic_scanIndexOD (CO_Data *d, UNS16 wIndex, UNS32 * errorCode); 12 | 13 | /* Master node data struct */ 14 | extern CO_Data slavedic_Data; 15 | extern UNS32 counter; /* Mapped at index 0x2000, subindex 0x00*/ 16 | extern INTEGER16 position; /* Mapped at index 0x2001, subindex 0x00*/ 17 | 18 | #endif // SLAVEDIC_H 19 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/test_copcican_comedi/insert.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | module="test_copcican_comedi" 4 | device="test_copcican_comedi" 5 | mode="664" 6 | 7 | # insert neccessary modules 8 | /sbin/insmod ../../drivers/can_copcican_comedi/can_copcican_comedi.ko 9 | /sbin/insmod ../../src/canfestival.ko 10 | 11 | # insert module with all arguments we got 12 | # and use a pathname, as newer modutils don't look in . by default 13 | /sbin/insmod ./$module.ko $* || exit 1 14 | 15 | # stale nodes and device files are created by COMEDI 16 | 17 | rmmod $module 18 | rmmod canfestival 19 | rmmod can_copcican_comedi 20 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/win32test/win32test.h: -------------------------------------------------------------------------------- 1 | 2 | /* File generated by gen_cfile.py. Should not be modified. */ 3 | 4 | #ifndef WIN32TEST_H 5 | #define WIN32TEST_H 6 | 7 | #include "data.h" 8 | 9 | /* Prototypes of function provided by object dictionnary */ 10 | UNS32 win32test_valueRangeTest (UNS8 typeValue, void * value); 11 | const indextable * win32test_scanIndexOD (CO_Data *d, UNS16 wIndex, UNS32 * errorCode); 12 | 13 | /* Master node data struct */ 14 | extern CO_Data win32test_Data; 15 | 16 | #endif // WIN32TEST_H 17 | -------------------------------------------------------------------------------- /Lib/canfestival/examples/win32test/win32test.vc10.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | Source Files 23 | 24 | 25 | 26 | 27 | Header Files 28 | 29 | 30 | -------------------------------------------------------------------------------- /Lib/canfestival/include/AT91/Atmel/lib_AT91SAM7X256.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/include/AT91/Atmel/lib_AT91SAM7X256.h -------------------------------------------------------------------------------- /Lib/canfestival/include/cm0: -------------------------------------------------------------------------------- 1 | cm4/ -------------------------------------------------------------------------------- /Lib/canfestival/include/cm3/canfestival.h: -------------------------------------------------------------------------------- 1 | #include "applicfg.h" 2 | #include "data.h" 3 | 4 | void initTimer(void); 5 | void clearTimer(void); 6 | 7 | unsigned char canSend(CAN_PORT notused, Message *m); 8 | unsigned char canInit(CO_Data * d, uint32_t bitrate); 9 | void canClose(void); 10 | 11 | void disable_it(void); 12 | void enable_it(void); 13 | -------------------------------------------------------------------------------- /Lib/canfestival/include/cm4/canfestival.h: -------------------------------------------------------------------------------- 1 | #include "applicfg.h" 2 | #include "data.h" 3 | 4 | void initTimer(void); 5 | void clearTimer(void); 6 | 7 | unsigned char canSend(CAN_PORT notused, Message *m); 8 | unsigned char canInit(CO_Data * d, uint32_t bitrate); 9 | void canClose(void); 10 | 11 | void disable_it(void); 12 | void enable_it(void); 13 | -------------------------------------------------------------------------------- /Lib/canfestival/include/hcs12/board/alire.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/include/hcs12/board/alire.txt -------------------------------------------------------------------------------- /Lib/canfestival/include/hcs12/board/arch/memory.x: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/include/hcs12/board/arch/memory.x -------------------------------------------------------------------------------- /Lib/canfestival/include/hcs12/regbase.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/include/hcs12/regbase.h -------------------------------------------------------------------------------- /Lib/canfestival/include/sysdep.h: -------------------------------------------------------------------------------- 1 | #ifndef __sysdep_h__ 2 | #define __sysdep_h__ 3 | 4 | #include "config.h" 5 | 6 | #ifdef CANOPEN_BIG_ENDIAN 7 | 8 | /* Warning: the argument must not update pointers, e.g. *p++ */ 9 | 10 | #define UNS16_LE(v) ((((UNS16)(v) & 0xff00) >> 8) | \ 11 | (((UNS16)(v) & 0x00ff) << 8)) 12 | 13 | #define UNS32_LE(v) ((((UNS32)(v) & 0xff000000) >> 24) | \ 14 | (((UNS32)(v) & 0x00ff0000) >> 8) | \ 15 | (((UNS32)(v) & 0x0000ff00) << 8) | \ 16 | (((UNS32)(v) & 0x000000ff) << 24)) 17 | 18 | #else 19 | 20 | #define UNS16_LE(v) (v) 21 | 22 | #define UNS32_LE(v) (v) 23 | 24 | #endif 25 | 26 | #endif /* __sysdep_h__ */ 27 | 28 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "Python: Текущий файл", 9 | "type": "python", 10 | "request": "launch", 11 | "program": "${workspaceFolder}/objdictedit.py", 12 | // "program": "${file}", 13 | "console": "integratedTerminal" 14 | } 15 | ] 16 | } -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/Gnosis_Utils-current.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/Gnosis_Utils-current.tar.gz -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/commondialogs.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/commondialogs.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/doc/301_v04000201.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/doc/301_v04000201.pdf -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/doc/about.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |

6 | CanFestival is an OpenSource (LGPL) CANOpen framework. 7 |

8 | http://canfestival.sourceforge.net 9 |

10 | Copyright �: Edouard TISSERANT, Francis DUPIN and Laurent BESSARD 11 |

12 | Version: CAN Festival 3.0 13 |

14 | 15 | 16 | 19 | 23 | 24 | 25 | 28 | 29 |
17 | Contributor : 18 | 20 | LIVIC
21 | http://www.inrets.fr/ur/livic 22 |
26 | Supported by : 27 |
30 |
31 | 32 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/doc/canfestival.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/doc/canfestival.gif -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/doc/manual_en.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/doc/manual_en.pdf -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/doc_index/DS301_index.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/doc_index/DS301_index.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/doc_index/__init__.py: -------------------------------------------------------------------------------- 1 | # Package initialisation 2 | 3 | from DS301_index import * 4 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/doc_index/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/doc_index/__init__.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/eds_utils.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/eds_utils.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/examples/example_objdict.h: -------------------------------------------------------------------------------- 1 | 2 | /* File generated by gen_cfile.py. Should not be modified. */ 3 | 4 | #ifndef EXAMPLE_OBJDICT_H 5 | #define EXAMPLE_OBJDICT_H 6 | 7 | #include "data.h" 8 | 9 | /* Prototypes of function provided by object dictionnary */ 10 | UNS32 example_objdict_valueRangeTest (UNS8 typeValue, void * value); 11 | const indextable * example_objdict_scanIndexOD (CO_Data *d, UNS16 wIndex, UNS32 * errorCode); 12 | 13 | /* Master node data struct */ 14 | extern CO_Data example_objdict_Data; 15 | extern UNS8 Time_seconds; /* Mapped at index 0x2000, subindex 0x01 */ 16 | extern UNS8 Time_minutes; /* Mapped at index 0x2000, subindex 0x02 */ 17 | extern UNS8 Time_hours; /* Mapped at index 0x2000, subindex 0x03 */ 18 | extern UNS8 Time_days; /* Mapped at index 0x2000, subindex 0x04 */ 19 | extern UNS32 canopenErrNB; /* Mapped at index 0x2001, subindex 0x00*/ 20 | extern UNS32 canopenErrVal; /* Mapped at index 0x2002, subindex 0x00*/ 21 | extern UNS8 strTest[10]; /* Mapped at index 0x2003, subindex 0x00*/ 22 | 23 | #endif // EXAMPLE_OBJDICT_H 24 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gen_cfile.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gen_cfile.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/__init__.py: -------------------------------------------------------------------------------- 1 | import string 2 | from os import sep 3 | s = string 4 | d = s.join(s.split(__file__, sep)[:-1], sep)+sep 5 | _ = lambda f: s.rstrip(open(d+f).read()) 6 | l = lambda f: s.split(_(f),'\n') 7 | 8 | try: 9 | __doc__ = _('README') 10 | except: 11 | pass 12 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/__init__.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/anon/README: -------------------------------------------------------------------------------- 1 | Consult for more information on this project, and a 2 | working interface page. 3 | 4 | =============================================================================== 5 | 6 | encode_address.py The main module for compression/encryption 7 | 8 | encode_address.cgi A particular implementation of the anonym generator 9 | (more an example than a finished front-end) 10 | 11 | huffman A Huffman encoding table (generated from a corpus 12 | of email addresses in my email archives) 13 | 14 | anon-forward.cgi A somewhat silly script to perform the forwarding 15 | that can be invoked via CGI (during testing) 16 | 17 | =============================================================================== 18 | 19 | You can generate a KEYFILE on a Unix-like system using: 20 | 21 | % head -c 64 /dev/random > KEYFILE 22 | 23 | The scripts 'new_*_key.sh' can be used to generate new keys for the named 24 | duration (and below). They currently produce a debugging display of the 25 | old and new keys; but that should go away. 26 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/anon/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/anon/__init__.py -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/anon/huffman: -------------------------------------------------------------------------------- 1 | 1213 E :1111 2 | 1162 O :1110 3 | 1040 . :1101 4 | 988 A :1100 5 | 838 C :1011 6 | 829 N :1010 7 | 820 M :1001 8 | 788 R :1000 9 | 750 S :0111 10 | 737 T :0110 11 | 724 I :0101 12 | 716 @ :0100 13 | 588 L :0011 14 | 517 U :0010 15 | 469 D :0001 16 | 344 H :00001111 17 | 328 G :00001110 18 | 287 P :00001101 19 | 250 B :00001100 20 | 212 K :00001011 21 | 205 Y :00001010 22 | 176 F :00001001 23 | 148 W :00001000 24 | 118 V :00000111 25 | 115 J :00000110 26 | 87 X :00000101 27 | 66 - :00000100 28 | 59 Z :00000011 29 | 36 1 :00000010 30 | 28 0 :00000001 31 | 27 Q :000000001111 32 | 25 _ :000000001110 33 | 24 2 :000000001101 34 | 16 5 :000000001100 35 | 15 4 :000000001011 36 | 15 / :000000001010 37 | 14 9 :000000001001 38 | 14 3 :000000001000 39 | 13 7 :000000000111 40 | 7 8 :000000000110 41 | 7 6 :000000000101 42 | 3 = :000000000100 43 | 2 : :000000000011 44 | 2 ! :000000000010 45 | RESRV :000000000001 46 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/anon/new_day_key.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | hexdump KEYFILE 3 | cp KEYFILE src 4 | echo `head -c 48 src``head -c 16 /dev/random` | head -c 64 > KEYFILE 5 | rm src 6 | hexdump KEYFILE 7 | 8 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/anon/new_month_key.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | hexdump KEYFILE 3 | cp KEYFILE src 4 | echo `head -c 16 src``head -c 48 /dev/random` | head -c 64 > KEYFILE 5 | rm src 6 | hexdump KEYFILE 7 | 8 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/anon/new_week_key.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | hexdump KEYFILE 3 | cp KEYFILE src 4 | echo `head -c 32 src``head -c 32 /dev/random` | head -c 64 > KEYFILE 5 | rm src 6 | hexdump KEYFILE 7 | 8 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/doc/__init__.py: -------------------------------------------------------------------------------- 1 | from os import sep 2 | d = sep.join(__file__.split(sep)[:-1])+sep 3 | _ = lambda f: open(d+f).read().rstrip() 4 | l = lambda f: _(f).split('\n') 5 | 6 | ANNOUNCE = _('gnosis_xml_util.announce') 7 | LICENSE = _('LICENSE') 8 | 9 | __doc__ = """Articles and other general documents about Gnosis package""" 10 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/pyconfig.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/pyconfig.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/util/XtoY.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/util/XtoY.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/util/__init__.py: -------------------------------------------------------------------------------- 1 | __doc__ = """Utilities for manipulating text and XML documents""" 2 | 3 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/util/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/util/__init__.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/util/combinators.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/util/combinators.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/util/convert/__init__.py: -------------------------------------------------------------------------------- 1 | __doc__ = """Convert "smart ASCII" documents to other formats""" 2 | 3 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/util/convert/dyn_txt2html.py: -------------------------------------------------------------------------------- 1 | from dmTxt2Html import * # Import the body of 'Txt2Html' code 2 | from urllib import urlopen 3 | import sys 4 | 5 | # Check for updated functions (fail gracefully if not fetchable) 6 | try: 7 | updates = urlopen('http://gnosis.cx/download/t2h_textfuncs.py').read() 8 | fh = open('t2h_textfuncs.py', 'w') 9 | fh.write(updates) 10 | fh.close() 11 | except: 12 | sys.stderr.write('Cannot currently download Txt2Html updates') 13 | 14 | # Import the updated functions (if available) 15 | try: 16 | from t2h_textfuncs import * 17 | except: 18 | sys.stderr.write('Cannot import the updated Txt2Html functions') 19 | 20 | # Set options based on runmode (shell vs. CGI) 21 | if len(sys.argv) >= 2: 22 | cfg_dict = ParseArgs(sys.argv[1:]) 23 | main(cfg_dict) 24 | else: 25 | print "Please specify URL (and options) for Txt2Html conversion" 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/util/convert/fetch_txt2html.py: -------------------------------------------------------------------------------- 1 | import sys 2 | from urllib import urlopen, urlencode 3 | if len(sys.argv) == 2: 4 | cgi = 'http://gnosis.cx/cgi/txt2html.cgi' 5 | opts = urlencode({'proxy': 'NONE', 6 | 'source': sys.argv[1]}) 7 | print urlopen(cgi, opts).read() 8 | else: 9 | print "Please specify URL for Txt2Html conversion" 10 | 11 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/util/convert/txt2html.cgi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | """Check txt2html.txt for prepared documentation 3 | Docs may be updated with 'txt2html.cgi -rebuild_docs' 4 | """ 5 | from dmTxt2Html import * 6 | 7 | # Set options based on runmode (shell vs. CGI) 8 | if len(sys.argv) >= 2: 9 | cfg_dict = ParseArgs(sys.argv[1:]) 10 | else: 11 | cfg_dict = ParseCGI() 12 | 13 | if cfg_dict: main(cfg_dict) 14 | 15 | 16 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/util/convert/txt2html_dir.py: -------------------------------------------------------------------------------- 1 | from dmTxt2Html import * 2 | import glob 3 | 4 | txts = glob.glob('*.txt') 5 | cfg_dict = {'type': 'SMART_ASCII', 6 | 'proxy': 'NONE' } 7 | for fname in txts: 8 | cfg_dict['source'] = fname 9 | cfg_dict['target'] = fname[:-3]+'html' 10 | main(cfg_dict) 11 | 12 | 13 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/util/convert/typo_html.py: -------------------------------------------------------------------------------- 1 | codes = \ 2 | { 'emph' : ('', ''), 3 | 'strong' : ('', ''), 4 | 'module' : ('', ''), 5 | 'code' : ('', ''), 6 | 'title' : ('', ''), 7 | } 8 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/util/convert/typographify.def: -------------------------------------------------------------------------------- 1 | para := (plain / markup)+ 2 | plain := (word / whitespace / punctuation)+ 3 | whitespace := [ \t\r\n]+ 4 | alphanums := [a-zA-Z0-9]+ 5 | word := alphanums, (wordpunct, alphanums)*, contraction? 6 | wordpunct := [-_] 7 | contraction := "'", ('am'/'clock'/'d'/'ll'/'m'/'re'/'s'/'t'/'ve') 8 | markup := emph / strong / module / code / title 9 | emph := '-', plain, '-' 10 | strong := '*', plain, '*' 11 | module := '[', plain, ']' 12 | code := "'", plain, "'" 13 | title := '_', plain, '_' 14 | punctuation := (safepunct / mdash) 15 | mdash := '--' 16 | safepunct := [!@#$%^&()+=|\{}:;<>,.?/"] 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/util/convert/typographify.py: -------------------------------------------------------------------------------- 1 | import os 2 | from sys import stdin, stdout, stderr 3 | from simpleparse import generator 4 | from mx.TextTools import TextTools 5 | 6 | input = stdin.read() 7 | decl = open('typographify.def').read() 8 | from typo_html import codes 9 | parser = generator.buildParser(decl).parserbyname('para') 10 | taglist = TextTools.tag(input, parser) 11 | for tag, beg, end, parts in taglist[1]: 12 | if tag == 'plain': 13 | stdout.write(input[beg:end]) 14 | elif tag == 'markup': 15 | markup = parts[0] 16 | mtag, mbeg, mend = markup[:3] 17 | start, stop = codes.get(mtag, ('','')) 18 | stdout.write(start + input[mbeg+1:mend-1] + stop) 19 | stderr.write('parsed %s chars of %s\n' % (taglist[-1], len(input))) 20 | 21 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/util/introspect.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/util/introspect.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/util/sql2xml_sample.xml.txt: -------------------------------------------------------------------------------- 1 | 2 | 4 | 9 | 10 | 11 | 12 | 13 | 14 | ]> 15 | 16 | 17 | 18 | 111-22-3333 19 | 1 20 | 21 | 22 | 333-22-4444 23 | 2 24 | 25 | 26 | 666-44-5555 27 | 1 28 | 29 | 30 | 999-88-7777 31 | 1 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/util/test.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Some text about eggs. 5 | Ode to Spam 6 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/util/test/funcs.py: -------------------------------------------------------------------------------- 1 | import os, sys, string 2 | 3 | def pyver(): 4 | return string.split(sys.version)[0] 5 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/util/test/mixed.xml: -------------------------------------------------------------------------------- 1 | Some boldface word -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/util/test/test_data2attr.py: -------------------------------------------------------------------------------- 1 | from sys import version 2 | from gnosis.util.introspect import data2attr, attr2data 3 | 4 | if version >= '2.2': 5 | class NewList(list): pass 6 | class NewTuple(tuple): pass 7 | class NewDict(dict): pass 8 | 9 | nl = NewList([1,2,3]) 10 | nt = NewTuple([1,2,3]) 11 | nd = NewDict({1:2,3:4}) 12 | nl.attr = 'spam' 13 | nt.attr = 'spam' 14 | nd.attr = 'spam' 15 | 16 | nl = data2attr(nl) 17 | print nl, getattr(nl, '__coredata__', 'No __coredata__') 18 | nl = attr2data(nl) 19 | print nl, getattr(nl, '__coredata__', 'No __coredata__') 20 | 21 | nt = data2attr(nt) 22 | print nt, getattr(nt, '__coredata__', 'No __coredata__') 23 | nt = attr2data(nt) 24 | print nt, getattr(nt, '__coreData__', 'No __coreData__') 25 | 26 | nd = data2attr(nd) 27 | print nd, getattr(nd, '__coredata__', 'No __coredata__') 28 | nd = attr2data(nd) 29 | print nd, getattr(nd, '__coredata__', 'No __coredata__') 30 | else: 31 | print "data2attr() and attr2data() only work on 2.2+ new-style objects" 32 | 33 | 34 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/util/test/test_noinit.py: -------------------------------------------------------------------------------- 1 | from gnosis.util.introspect import instance_noinit 2 | 3 | class Old_noinit: pass 4 | 5 | class Old_init: 6 | def __init__(self): print "Init in Old" 7 | 8 | class New_slots_and_init(int): 9 | __slots__ = ('this','that') 10 | def __init__(self): print "Init in New w/ slots" 11 | 12 | class New_init_no_slots(int): 13 | def __init__(self): print "Init in New w/o slots" 14 | 15 | class New_slots_no_init(int): 16 | __slots__ = ('this','that') 17 | 18 | class New_no_slots_no_init(int): 19 | pass 20 | 21 | print "----- This should be the only line -----" 22 | instance_noinit(Old_noinit) 23 | instance_noinit(Old_init) 24 | instance_noinit(New_slots_and_init) 25 | instance_noinit(New_slots_no_init) 26 | instance_noinit(New_init_no_slots) 27 | instance_noinit(New_no_slots_no_init) 28 | 29 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/version.py: -------------------------------------------------------------------------------- 1 | 2 | PKGNAME = "Gnosis_Utils" 3 | 4 | # this gets bumped on every release 5 | MAJOR = 1 6 | MINOR = 2 7 | SUBVER = 2 8 | EXTRA = '' 9 | 10 | VSTRING = "%d.%d.%d%s" % (MAJOR,MINOR,SUBVER,EXTRA) 11 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/__init__.py: -------------------------------------------------------------------------------- 1 | """Utilities and Interfaces to make XML more Pythonic 2 | 3 | Please see the information in subpackages and submodules for 4 | explanation of usage, design, license, and other details 5 | """ 6 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/xml/__init__.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/objectify/__init__.py: -------------------------------------------------------------------------------- 1 | """Transform XML Documents to Python objects 2 | 3 | Please see the information at gnosis.xml.objectify.doc for 4 | explanation of usage, design, license, and other details 5 | """ 6 | 7 | from utils import * 8 | from _objectify import * 9 | from _objectify import _XO_ 10 | 11 | # This call will enable namespace support in EXPAT 12 | config_nspace_sep() 13 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/objectify/doc/AUTHOR: -------------------------------------------------------------------------------- 1 | David Mertz 2 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/objectify/doc/COPYRIGHT: -------------------------------------------------------------------------------- 1 | These files are released to the public domain. I (dqm) would 2 | appreciate it if you choose to keep derived works under terms 3 | that promote freedom, but obviously am giving up any rights to 4 | compel such. 5 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/objectify/doc/THANKS_TO: -------------------------------------------------------------------------------- 1 | Grant Munsey 2 | Costas Malamas 3 | Kapil Thangavelu 4 | Mario Ruggier 5 | Bruno Lienard 6 | Frank McIngvale 7 | Arnold Weis 8 | Greg Aumann 9 | Rene Jager 10 | Bob Gibson 11 | Ville Vainio 12 | William McVey 13 | Gamaliel Masters 14 | Frank von Delft 15 | Adam Feur 16 | 17 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/objectify/doc/TODO: -------------------------------------------------------------------------------- 1 | - Add name munging to attributes (not just to tagnames), e.g.: 2 | 3 | >>> from gnosis.xml.objectify import make_instance 4 | >>> dir(make_instance('')) 5 | ['PCDATA', ..., '_seq', u'bar-baz', 'spam__eggs'] 6 | 7 | - Add a PyRXP (validating) parser. Also, try some timings vs EXPAT. 8 | 9 | - In Python 2.3, the DOM parser produces a list of two elements, e.g.: 10 | 11 | [, ] 12 | 13 | However, the first element contains only empty (None) PCDATA, and no 14 | children. I do not know why this happens, and only starting with 15 | 2.3; but then, EXPAT is currently the preferred parser. 16 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/objectify/doc/VERSION: -------------------------------------------------------------------------------- 1 | Revision: February 2004 2 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/objectify/doc/__init__.py: -------------------------------------------------------------------------------- 1 | from os import sep 2 | d = sep.join(__file__.split(sep)[:-1])+sep 3 | _= lambda f: open(d+f).read().rstrip() 4 | l= lambda f: _(f).split('\n') 5 | 6 | HOWTO = _('HOWTO') 7 | COPYRIGHT = _('COPYRIGHT') 8 | HISTORY = _('HISTORY') 9 | TODO = _('TODO') 10 | VERSION = _('VERSION') 11 | GOTCHAS = _('GOTCHAS') 12 | 13 | AUTHOR = l('AUTHOR') 14 | THANKS_TO = l('THANKS_TO') 15 | __doc__ = HOWTO 16 | 17 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/objectify/test.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Some text about eggs. 5 | Ode to Spam 6 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/objectify/test/__init__.py: -------------------------------------------------------------------------------- 1 | # this exists only to prevent warnings during package build. 2 | # importing things from test doesn't make much sense :-) 3 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/objectify/test/test.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Some text about eggs. 5 | Ode to Spam 6 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/objectify/test/test_basic.py: -------------------------------------------------------------------------------- 1 | "Read and print and objectified XML file" 2 | 3 | import sys 4 | from gnosis.xml.objectify import XML_Objectify, pyobj_printer, EXPAT, DOM 5 | 6 | if len(sys.argv) > 1: 7 | for filename in sys.argv[1:]: 8 | for parser in (DOM, EXPAT): 9 | try: 10 | xml_obj = XML_Objectify(filename, parser=parser) 11 | py_obj = xml_obj.make_instance() 12 | print pyobj_printer(py_obj).encode('UTF-8') 13 | print "++ SUCCESS ( using", parser, ")" 14 | print "="*50 15 | except: 16 | raise 17 | print "++ FAILED ( using", parser, ")" 18 | print "="*50 19 | else: 20 | print "Please specify one or more XML files to Objectify." 21 | 22 | 23 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/objectify/test/test_expat.py: -------------------------------------------------------------------------------- 1 | "Read using Expat parser and print and objectified XML file" 2 | 3 | import sys 4 | from gnosis.xml.objectify import XML_Objectify, pyobj_printer, EXPAT 5 | 6 | if len(sys.argv) > 1: 7 | for filename in sys.argv[1:]: 8 | try: 9 | xml_obj = XML_Objectify(xml_src=filename, parser=EXPAT) 10 | py_obj = xml_obj.make_instance() 11 | except SyntaxError: 12 | print "Caught SyntaxError exception!" 13 | print "Possibly an XML file with namespaces that is causing this," 14 | print "so try again but ignore XML namespaces..." 15 | XML_Objectify.expat_kwargs['nspace_sep'] = None 16 | xml_obj = XML_Objectify(xml_src=filename, parser=EXPAT) 17 | try: 18 | py_obj = xml_obj.make_instance() 19 | print "it worked!" 20 | except: 21 | print "it did NOT work!" 22 | raise 23 | print pyobj_printer(py_obj).encode('UTF-8') 24 | else: 25 | print "Please specify one or more XML files to Objectify." 26 | 27 | 28 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/objectify/test/test_xpath.py: -------------------------------------------------------------------------------- 1 | from gnosis.xml.objectify import make_instance 2 | from gnosis.xml.objectify.utils import XPath 3 | import sys 4 | 5 | xml = ''' 6 | this 7 | that 8 | 9 | stuff fo 10 | fum 11 | and fizzle 12 | more stuff 13 | 14 | 15 | ''' 16 | 17 | print xml 18 | print 19 | open('xpath.xml','w').write(xml) 20 | o = make_instance(xml) 21 | 22 | patterns = '''/bar //bar //* /baz/*/bar 23 | /bar[2] //bar[2..4] 24 | //@a1 //bar/@a1 /baz/@* //@* 25 | baz//bar/text() /baz/text()[3]''' 26 | 27 | for pattern in patterns.split(): 28 | print 'XPath:', pattern 29 | for match in XPath(o, pattern): 30 | print ' ', match 31 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/objectify/test/testns.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Some text about eggs. 5 | Ode to Spam 6 | 7 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/objectify/test/xpath.xml: -------------------------------------------------------------------------------- 1 | 2 | this 3 | that 4 | 5 | stuff fo 6 | fum 7 | and fizzle 8 | more stuff 9 | 10 | 11 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/objectify/xpath.xml: -------------------------------------------------------------------------------- 1 | 2 | this 3 | that 4 | 5 | stuff fo 6 | fum 7 | and fizzle 8 | more stuff 9 | 10 | 11 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/PyObject-0.48.dtd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 16 | 17 | 18 | 25 | 26 | 30 | 31 | 38 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/PyObject.dtd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 16 | 17 | 18 | 25 | 26 | 30 | 31 | 38 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/__init__.py: -------------------------------------------------------------------------------- 1 | """Store Python objects to (pickle-like) XML Documents 2 | 3 | Please see the information at gnosis.xml.pickle.doc for 4 | explanation of usage, design, license, and other details 5 | """ 6 | from gnosis.xml.pickle._pickle import \ 7 | XML_Pickler, XMLPicklingError, XMLUnpicklingError, \ 8 | dump, dumps, load, loads 9 | 10 | from gnosis.xml.pickle.util import \ 11 | setParanoia, getParanoia, setDeepCopy, getDeepCopy,\ 12 | get_class_from_store, add_class_to_store, remove_class_from_store,\ 13 | setParser, setVerbose, enumParsers 14 | 15 | from gnosis.xml.pickle.ext import * 16 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/xml/pickle/__init__.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/_pickle.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/xml/pickle/_pickle.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/doc/AUTHOR: -------------------------------------------------------------------------------- 1 | David Mertz 2 | Frank McIngvale 3 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/doc/COPYRIGHT: -------------------------------------------------------------------------------- 1 | These files are released to the public domain. I (dqm) would 2 | appreciate it if you choose to keep derived works under terms 3 | that promote freedom, but obviously am giving up any rights to 4 | compel such. 5 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/doc/THANKS_TO: -------------------------------------------------------------------------------- 1 | Grant Munsey 2 | Keith J. Farmer 3 | Anthony Baxter 4 | Joshua Macy 5 | Curtis Jensen 6 | Joe Kraska 7 | Chip Salzenberg 8 | Francesc Alted 9 | Frank McIngvale 10 | Frank Conradie 11 | Douglas Miller 12 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/doc/TODO: -------------------------------------------------------------------------------- 1 | Some things I saw in the Python 2.2(+.1c1) release notes ... need 2 | to check if these apply to us also: 3 | 4 | - The "pseudo-sequences" returned by os.stat(), os.fstat(), 5 | time.localtime() can now be pickled. 6 | 7 | - pickle.py, cPickle: allow pickling instances of new-style 8 | classes with a custom metaclass. 9 | 10 | - In pickle and cPickle, instead of masking errors in load() by 11 | transforming them into SystemError, we let the original 12 | exception propagate out. Also, implement support for 13 | __safe_for_unpickling__ in pickle, as it already was supported 14 | in cPickle. 15 | 16 | 17 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/doc/VERSION: -------------------------------------------------------------------------------- 1 | Revision: February 2004 2 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/doc/__init__.py: -------------------------------------------------------------------------------- 1 | from os import sep 2 | d = sep.join(__file__.split(sep)[:-1])+sep 3 | _= lambda f: open(d+f).read().rstrip() 4 | l= lambda f: _(f).split('\n') 5 | 6 | HOWTO = _('HOWTO') 7 | COPYRIGHT = _('COPYRIGHT') 8 | HISTORY = _('HISTORY') 9 | SECURITY = _('SECURITY') 10 | TODO = _('TODO') 11 | VERSION = _('VERSION') 12 | 13 | AUTHOR = l('AUTHOR') 14 | THANKS_TO = l('THANKS_TO') 15 | __doc__ = HOWTO 16 | 17 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/ext/__init__.py: -------------------------------------------------------------------------------- 1 | """The gnosis.xml.pickle type extension system. 2 | 3 | Please see [..]/gnosis/xml/pickle/doc/HOWTO.extensions for details 4 | """ 5 | __author__ = ["Frank McIngvale (frankm@hiwaay.net)", 6 | "David Mertz (mertz@gnosis.cx)", 7 | ] 8 | 9 | from _mutate import \ 10 | can_mutate,mutate,can_unmutate,unmutate,\ 11 | add_mutator,remove_mutator,XMLP_Mutator, XMLP_Mutated, \ 12 | get_unmutator, try_mutate 13 | 14 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/ext/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/xml/pickle/ext/__init__.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/ext/_mutate.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/xml/pickle/ext/_mutate.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/ext/_mutators.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/xml/pickle/ext/_mutators.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/parsers/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/parsers/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/xml/pickle/parsers/__init__.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/parsers/_dom.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/xml/pickle/parsers/_dom.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/parsers/_sax.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/xml/pickle/parsers/_sax.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/test/__init__.py: -------------------------------------------------------------------------------- 1 | # this exists only to prevent warnings during package build. 2 | # importing things from test doesn't make much sense :-) 3 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/test/funcs.py: -------------------------------------------------------------------------------- 1 | 2 | """ 3 | each test_*.py imports this to auto-set the parser based on 4 | the presence of a USE_... file 5 | 6 | -- frankm@hiwaay.net 7 | """ 8 | 9 | import os, sys, string 10 | import gnosis.xml.pickle as xml_pickle 11 | 12 | # set parser based on USE_... file present 13 | def set_parser(): 14 | if os.path.isfile('USE_SAX'): 15 | xml_pickle.setParser("SAX") 16 | elif os.path.isfile('USE_CEXPAT'): 17 | xml_pickle.setParser('cEXPAT') 18 | else: 19 | xml_pickle.setParser('DOM') 20 | 21 | # cheap substitutes for some shell functions 22 | def unlink(filename): 23 | if not os.path.isfile(filename): 24 | return 25 | 26 | # eegh ... convoluted, but this is the only 27 | # way I made it work for both Linux & Win32 28 | try: os.unlink(filename) 29 | except: pass 30 | 31 | try: os.remove(filename) 32 | except: pass 33 | 34 | def touch(filename): 35 | open(filename,'w') 36 | 37 | #def pyver(): 38 | # return string.split(sys.version)[0] 39 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/test/test_all_all.py: -------------------------------------------------------------------------------- 1 | 2 | # run test_all for all installed versions of Python 3 | # on the current machine. 4 | # 5 | # NOTE! You have to run this from the development (not installed) 6 | # tree, since it needs disthelper. 7 | 8 | import os, sys 9 | 10 | # hardcode location of disthelper 11 | dpath = os.path.abspath('../../../..') 12 | sys.path.insert(0,dpath) 13 | 14 | from disthelper.find_python import get_python_verlist 15 | 16 | for exe,info in get_python_verlist(): 17 | os.system('%s test_all.py' % exe) 18 | 19 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/test/test_circular.py: -------------------------------------------------------------------------------- 1 | import gnosis.xml.pickle as xml_pickle 2 | 3 | class Test: pass 4 | 5 | o1 = Test() 6 | o1.s = "o1" 7 | 8 | o2 = Test() 9 | o2.s = "o2" 10 | 11 | o1.obj1 = o2 12 | o1.obj2 = o2 13 | o2.obj3 = o1 14 | o2.obj4 = o1 15 | 16 | xml = xml_pickle.dumps(o1) 17 | #print xml 18 | 19 | z = xml_pickle.loads(xml) 20 | 21 | # check it 22 | if z.s != o1.s or z.obj1.s != o1.obj1.s or \ 23 | z.obj2.s != o1.obj2.s or z.obj1.obj3.s != o1.obj1.obj3.s or \ 24 | z.obj2.obj4.s != o1.obj2.obj4.s: 25 | raise "ERROR(1)" 26 | 27 | print "** OK **" 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/test/test_fail_exit.py: -------------------------------------------------------------------------------- 1 | # used for sanity checking the test harness 2 | # "fail" a test by using sys.exit(1) 3 | 4 | import sys 5 | sys.exit(1) 6 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/test/test_fail_raise_1.py: -------------------------------------------------------------------------------- 1 | # used for sanity checking the test harness 2 | # "fail" a test with an explicity raise, oldstyle 3 | 4 | raise "AAA" 5 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/test/test_fail_raise_2.py: -------------------------------------------------------------------------------- 1 | # used for sanity checking the test harness 2 | # fail a test with an explicit raise, newstyle 3 | 4 | raise Exception("AAA") 5 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/test/test_fail_raise_3.py: -------------------------------------------------------------------------------- 1 | 2 | # used for sanity checking the test harness 3 | # "fail" with an implicit raise 4 | 5 | class foo: pass 6 | f = foo() 7 | i = f.a 8 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/test/test_ftypes.py: -------------------------------------------------------------------------------- 1 | 2 | # 3 | # show that imported classes are unpickled OK 4 | # 5 | 6 | import pickle 7 | import test_ftypes_i 8 | import gnosis.xml.pickle as xml_pickle 9 | import funcs 10 | 11 | funcs.set_parser() 12 | 13 | class foo: pass 14 | 15 | xml_pickle.setParanoia(0) 16 | 17 | f = foo() 18 | 19 | f.b = test_ftypes_i.gimme_bfunc() 20 | f.p = test_ftypes_i.gimme_pfunc() 21 | f.f = foo 22 | 23 | #print f.b, f.p, f.f 24 | 25 | x = xml_pickle.dumps(f) 26 | #print x 27 | 28 | g = xml_pickle.loads(x) 29 | 30 | #print g.b, g.p, g.f 31 | 32 | # check it 33 | for attr in ['b','p','f']: 34 | if getattr(f,attr) != getattr(g,attr): 35 | raise "ERROR(1)" 36 | 37 | print "** OK **" 38 | 39 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/test/test_ftypes_i.py: -------------------------------------------------------------------------------- 1 | 2 | # this is imported by test_ftypes 3 | 4 | def gimme_bfunc(): 5 | import time 6 | return time.time 7 | 8 | def gimme_pfunc(): 9 | return gimme_bfunc 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/test/test_gzfile.py: -------------------------------------------------------------------------------- 1 | 2 | # test binary pickling 3 | 4 | import gnosis.xml.pickle as xml_pickle 5 | import gzip 6 | from StringIO import StringIO 7 | 8 | # --- Make an object to play with --- 9 | class C: pass 10 | o = C() 11 | o.lst, o.dct = [1,2], {'spam':'eggs'} 12 | 13 | x = xml_pickle.dumps(o,1) 14 | 15 | # make sure xml_pickle really gzipped it 16 | sio = StringIO(x) 17 | gz = gzip.GzipFile('dummy','rb',9,sio) 18 | if gz.read(5) != '. 16 | # the problem is that new-style classes used as attributes weren't 17 | # being pickled correctly. 18 | 19 | # let it load my classes 20 | xml_pickle.setParanoia(0) 21 | 22 | if pyconfig.Have_ObjectClass(): # need new-style classes 23 | class PickleMeOld: 24 | def __init__(self): pass 25 | 26 | class PickleMeNew(object): 27 | def __init__(self): pass 28 | 29 | class Container(object): 30 | def __init__(self, klass): 31 | self.classRef = klass 32 | 33 | x = xml_pickle.dumps(Container(PickleMeOld)) 34 | o = xml_pickle.loads(x) 35 | if o.classRef != PickleMeOld: 36 | raise "ERROR(1)" 37 | 38 | x = xml_pickle.dumps(Container(PickleMeNew)) 39 | o = xml_pickle.loads(x) 40 | if o.classRef != PickleMeNew: 41 | raise "ERROR(2)" 42 | 43 | print "** OK **" 44 | 45 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/test/test_numpy.py: -------------------------------------------------------------------------------- 1 | 2 | import gnosis.xml.pickle as xml_pickle 3 | import Numeric,array 4 | import funcs 5 | 6 | funcs.set_parser() 7 | 8 | class foo: pass 9 | 10 | f = foo() 11 | 12 | f.a = Numeric.array([[1,2,3,4],[5,6,7,8]]) 13 | f.b = Numeric.array([1.2,2.3,3.4,4.5]) 14 | f.y = array.array('b',[1,2,3,4]) 15 | f.z = array.array('f',[1,2,3,4]) 16 | 17 | a = Numeric.array([6,7,8,9]) 18 | 19 | def testfoo(o1,o2): 20 | for attr in ['a','b','y','z', 21 | 'l','d','e']: 22 | if getattr(o1,attr) != getattr(o2,attr): 23 | raise "ERROR(1)" 24 | 25 | # make sure refs work 26 | f.l = [a,a,a] 27 | 28 | f.d = {'One':a,'Two':Numeric.array([10,11,12])} 29 | f.e = f.d['Two'] 30 | 31 | #print f.a, f.b, f.y,f.z,f.l,f.d,f.e 32 | 33 | x = xml_pickle.dumps(f) 34 | #print x 35 | 36 | #del f 37 | 38 | g = xml_pickle.loads(x) 39 | #print g.a,g.b,g.y,g.z,g.l,g.d,g.e 40 | 41 | #print "XML ", x 42 | 43 | testfoo(f,g) 44 | 45 | print "** OK **" 46 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/test/test_objectify.py: -------------------------------------------------------------------------------- 1 | 2 | """Make sure xml_pickle and xml_objectify play nicely together --dqm 3 | Note that xml_pickle no longer has any builtin knowledge of 4 | xml_objectify -- used to be necessary to workaround circular refs (fpm)""" 5 | 6 | import gnosis.xml.objectify as xo 7 | import gnosis.xml.pickle as xp 8 | from StringIO import StringIO 9 | import funcs 10 | 11 | funcs.set_parser() 12 | 13 | xml = ''' 14 | 15 | 16 | Some text about eggs. 17 | Ode to Spam 18 | 19 | ''' 20 | 21 | fh = StringIO(xml) 22 | o = xo.make_instance(xml) 23 | s = xp.dumps(o) 24 | #print "---------- xml_objectify'd object, xml_pickle'd ----------" 25 | #print s 26 | o2 = xp.loads(s) 27 | #print "---------- object after the pickle/unpickle cycle --------" 28 | #print xp.dumps(o2) 29 | 30 | if o.Eggs.PCDATA != o2.Eggs.PCDATA or \ 31 | o.MoreSpam.PCDATA != o2.MoreSpam.PCDATA: 32 | raise "ERROR(1)" 33 | 34 | print "** OK **" 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/test/test_pass_1.py: -------------------------------------------------------------------------------- 1 | 2 | # used for sanity checking the test harness 3 | # a NOP "pass" test 4 | 5 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/test/test_pass_2.py: -------------------------------------------------------------------------------- 1 | # used for sanity checking the test harness 2 | # a "pass" test by sys.exit(0) 3 | 4 | import sys 5 | sys.exit(0) 6 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/test/test_pass_3.py: -------------------------------------------------------------------------------- 1 | # used for sanity checking the test harness 2 | # a "pass" test that prints something 3 | 4 | print "** OK **" 5 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/test/test_ref.py: -------------------------------------------------------------------------------- 1 | "Demonstrate what happens with/without DEEPCOPY --fpm" 2 | 3 | import gnosis.xml.pickle as xml_pickle 4 | from gnosis.xml.pickle.util import setParanoia, setDeepCopy 5 | from UserList import UserList 6 | import sys 7 | import funcs 8 | 9 | funcs.set_parser() 10 | 11 | a = (1,2,3) 12 | b = [4,5,6] 13 | c = {'a':1,'b':2,'c':3,'d':[100,200,300]} 14 | dd = c['d'] # make sure subitems get refchecked 15 | uu = UserList([10,11,12]) 16 | 17 | u = UserList([[uu,c,b,a],[a,b,c,uu],[c,a,b,uu],dd]) 18 | #print u 19 | 20 | # allow xml_pickle to read our namespace 21 | setParanoia(0) 22 | 23 | # by default, with references 24 | x1 = xml_pickle.dumps(u) 25 | #print x 26 | #del u 27 | 28 | g = xml_pickle.loads(x1) 29 | #print g 30 | 31 | if u != g: 32 | raise "ERROR(1)" 33 | 34 | # next, using DEEPCOPY 35 | #print "------ DEEP COPY ------" 36 | setDeepCopy(1) 37 | x2 = xml_pickle.dumps(g) 38 | #print x 39 | #del g 40 | 41 | z = xml_pickle.loads(x2) 42 | 43 | # deepcopy version should be significantly larger 44 | if (len(x2) - len(x1)) < 1000: 45 | raise "ERROR(2)" 46 | 47 | if z != g: 48 | raise "ERROR(3)" 49 | 50 | print "** OK **" 51 | 52 | 53 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/test/test_slots.py: -------------------------------------------------------------------------------- 1 | 2 | "Simple __slots__ test" 3 | 4 | import gnosis.xml.pickle as xml_pickle 5 | import funcs 6 | 7 | funcs.set_parser() 8 | 9 | class foo(object): 10 | __slots__ = ('a','b') 11 | 12 | xml_pickle.setParanoia(0) 13 | 14 | f = foo() 15 | f.a = 1 16 | f.b = 2 17 | #print f.a, f.b 18 | 19 | s = xml_pickle.dumps(f) 20 | #print s 21 | 22 | g = xml_pickle.loads(s) 23 | #print g.a, g.b 24 | 25 | if g.__class__ != foo or g.a != f.a or g.b != f.b: 26 | raise "ERROR(1)" 27 | 28 | print "** OK **" 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/util/__init__.py: -------------------------------------------------------------------------------- 1 | from _flags import * 2 | from _util import \ 3 | _klass, _module, _EmptyClass, subnodes, \ 4 | safe_eval, safe_string, unsafe_string, safe_content, unsafe_content, \ 5 | _mini_getstack, _mini_currentframe, \ 6 | get_class_from_stack, get_class_full_search, get_class_from_vapor, \ 7 | get_class_from_store, add_class_to_store, remove_class_from_store, \ 8 | get_class_from_name, obj_from_name, get_function_info, \ 9 | unpickle_function, obj_from_classtype 10 | 11 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/util/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/xml/pickle/util/__init__.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/util/_flags.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/xml/pickle/util/_flags.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/pickle/util/_util.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/xml/pickle/util/_util.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/README: -------------------------------------------------------------------------------- 1 | Example files and programming tools for working with RELAX NG 2 | 3 | Some of these files are part of James Clark's test suite (see 4 | clark.html for some details). 5 | 6 | All of the examples and scripts (unless indicated otherwise within 7 | the file) are released to the Public Domain. 8 | 9 | +++ 10 | 11 | To utilize the utility 'rnc2rng' download the following files, 12 | and place them in a working directory (or in your $PYTHONPATH): 13 | 14 | rnc2rng 15 | rnctree.py 16 | rnc_tokenize.py 17 | lex.py 18 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/xml/relax/__init__.py -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/cardinality.rnc: -------------------------------------------------------------------------------- 1 | start = element bar { fivefoo, upto25foo } 2 | fivefoo = 3 | element foo { empty }, 4 | element foo { empty }, 5 | element foo { empty }, 6 | element foo { empty }, 7 | element foo { empty } 8 | maybefoo = element foo { empty }? 9 | upto25foo = 10 | fivefoo?, 11 | fivefoo?, 12 | fivefoo?, 13 | fivefoo?, 14 | maybefoo, 15 | maybefoo, 16 | maybefoo, 17 | maybefoo, 18 | maybefoo 19 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/cardinality.rng: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/conv08.rnc: -------------------------------------------------------------------------------- 1 | include "res08.rnc" 2 | foo.body = text 3 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/conv08.rng: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/conv09.rng: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/curious.dtd: -------------------------------------------------------------------------------- 1 | 2 | 4 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/curious.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/patron-i1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | John Doe 5 | Second Name 6 | 12345678 7 | 8 | 9 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/patron-i2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | John Doe 4 | 12345678 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/patron-i3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/patron-v1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | John Doe 5 | 12345678 6 | 7 | 8 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/patron-v2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 09876545 4 | Jane Moe 5 | 6 | 7 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/patron.rnc: -------------------------------------------------------------------------------- 1 | element patron { 2 | element name { text } 3 | & element id-num { text } 4 | & element book { 5 | attribute isbn { text } 6 | | attribute title { text } 7 | }* 8 | } 9 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/patron.rng: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/patron.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/regextest.rnc: -------------------------------------------------------------------------------- 1 | # A schema for regextest.rnc in RELAX NG compact syntax 2 | 3 | element testSuite { 4 | element testCase { 5 | (element correct { text }, element valid|invalid { text }*) 6 | | element incorrect { text } 7 | }* 8 | } 9 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/res08.rnc: -------------------------------------------------------------------------------- 1 | start = element foo { foo.body } 2 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/res08.rng: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/res09.rng: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/rnc2rng: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import sys 3 | from rnctree import make_nodetree, token_list 4 | if len(sys.argv) > 1: 5 | tokens = token_list(open(sys.argv[1]).read()) 6 | else: 7 | tokens = token_list(sys.stdin.read()) 8 | root = make_nodetree(tokens) 9 | if len(sys.argv) > 2: 10 | open(sys.argv[2],'w').write(root.toxml()) 11 | else: 12 | print root.toxml() 13 | 14 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/relax/xsdtest.rnc: -------------------------------------------------------------------------------- 1 | datatypes xsd = "http://www.w3.org/2001/XMLSchema-datatypes" 2 | 3 | start = 4 | element xsdtest { 5 | element datatype { 6 | attribute name { xsd:NCName }, 7 | ((param*, (valid|invalid)*) 8 | | (valid|invalid|equiv|length|lessThan|incomparable)*) 9 | }* 10 | } 11 | 12 | param = element param { attribute name { xsd:NCName }, string } 13 | valid = element valid { internalSubset?, string } 14 | invalid = element invalid { internalSubset?, string } 15 | equiv = element equiv { element class { value+ }+ } 16 | 17 | value = element value { internalSubset?, string } 18 | length = element length { attribute value { xsd:integer }, internalSubset?, string } 19 | lessThan = element lessThan { value, value } 20 | incomparable = element incomparable { value, value } 21 | 22 | internalSubset = attribute internalSubset { string } 23 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/validity/__init__.py: -------------------------------------------------------------------------------- 1 | """Library of Python objects that conform to XML validity rules 2 | 3 | Requires: Python 2.2+ 4 | (may use new-style classes, slots, properties, metaclasses) 5 | """ 6 | 7 | from _validity import * 8 | 9 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/validity/simple_diss.py: -------------------------------------------------------------------------------- 1 | from gnosis.xml.validity import * 2 | class figure(EMPTY): pass 3 | class _mixedpara(Or): _disjoins = (PCDATA, figure) 4 | class paragraph(Some): _type = _mixedpara 5 | class title(PCDATA): pass 6 | class _paras(Some): _type = paragraph 7 | class chapter(Seq): _order = (title, _paras) 8 | class dissertation(Some): _type = chapter 9 | 10 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/gnosis/xml/xmlmap.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/gnosis/xml/xmlmap.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/i18n/README: -------------------------------------------------------------------------------- 1 | To generate message.pot file: 2 | 3 | python mki18n.py -p --domain=objdictgen 4 | 5 | To generate .mo files for all languages: 6 | 7 | python mki18n.py -m --moTarget=../locale --domain=objdictgen 8 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/i18n/app.fil: -------------------------------------------------------------------------------- 1 | ../commondialogs.py 2 | ../eds_utils.py 3 | ../gen_cfile.py 4 | ../networkedit.py 5 | ../nodelist.py 6 | ../nodemanager.py 7 | ../objdictedit.py 8 | ../objdictgen.py 9 | ../subindextable.py 10 | -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/locale/fr_FR/LC_MESSAGES/objdictgen.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/locale/fr_FR/LC_MESSAGES/objdictgen.mo -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/locale/zh_CN/LC_MESSAGES/objdictgen.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/locale/zh_CN/LC_MESSAGES/objdictgen.mo -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/networkedit.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/networkedit.ico -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/networkedit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/networkedit.png -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/node.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/node.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/nodeeditortemplate.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/nodeeditortemplate.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/nodemanager.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/nodemanager.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/subindextable.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Lib/canfestival/objdictgen/subindextable.pyc -------------------------------------------------------------------------------- /Lib/canfestival/objdictgen/test.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | 4 | string="0xff" 5 | if not string.isdigit(): 6 | print("ERR") 7 | else: 8 | HEXx=int(string,16) 9 | print(HEXx) -------------------------------------------------------------------------------- /Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c -------------------------------------------------------------------------------- /Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labastov/STM32_RTOS_CANFestival/2d9e8f4932dea2623d56b989ee34b82429e3b293/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h --------------------------------------------------------------------------------