text,length,is_long_context,metric_val,label_metric "CLASS zcl_abapgit_object_tabl DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_abapgit_object . PROTECTED SECTION. TYPES: BEGIN OF ty_segment_definition, segmentheader TYPE edisegmhd, segmentdefinition TYPE edisegmdef, segmentstructures TYPE STANDARD TABLE OF edisegstru WITH DEFAULT KEY, END OF ty_segment_definition. TYPES: ty_segment_definitions TYPE STANDARD TABLE OF ty_segment_definition WITH DEFAULT KEY. TYPES: BEGIN OF ty_tabl_extras, tddat TYPE tddat, END OF ty_tabl_extras. ""! get additional data like table authorization group ""! @parameter iv_tabname | name of the table METHODS read_extras IMPORTING iv_tabname TYPE ddobjname RETURNING VALUE(rs_tabl_extras) TYPE ty_tabl_extras. ""! Update additional data ""! @parameter iv_tabname | name of the table ""! @parameter is_tabl_extras | additional table data METHODS update_extras IMPORTING iv_tabname TYPE ddobjname is_tabl_extras TYPE ty_tabl_extras. ""! Delete additional data ""! @parameter iv_tabname | name of the table METHODS delete_extras IMPORTING iv_tabname TYPE ddobjname. ""! Serialize IDoc Segment type/definition if exits ""! @parameter io_xml | XML writer ""! @raising zcx_abapgit_exception | Exceptions METHODS serialize_idoc_segment IMPORTING io_xml TYPE REF TO zif_abapgit_xml_output RAISING zcx_abapgit_exception. ""! Deserialize IDoc Segment type/definition if exits ""! @parameter io_xml | XML writer ""! @parameter iv_package | Target package ""! @parameter rv_deserialized | It's a segment and was desserialized ""! @raising zcx_abapgit_exception | Exceptions METHODS deserialize_idoc_segment IMPORTING io_xml TYPE REF TO zif_abapgit_xml_input iv_package TYPE devclass RETURNING VALUE(rv_deserialized) TYPE abap_bool RAISING zcx_abapgit_exception. ""! Delete the IDoc Segment type if exists ""! @parameter rv_deleted | It's a segment and was deleted ""! @raising zcx_abapgit_exception | Exceptions METHODS delete_idoc_segment RETURNING VALUE(rv_deleted) TYPE abap_bool RAISING zcx_abapgit_exception. PRIVATE SECTION. TYPES: ty_dd03p_tt TYPE STANDARD TABLE OF dd03p . TYPES: BEGIN OF ty_dd02_text, ddlanguage TYPE dd02t-ddlanguage, ddtext TYPE dd02t-ddtext, END OF ty_dd02_text . TYPES: ty_dd02_texts TYPE STANDARD TABLE OF ty_dd02_text . CONSTANTS c_longtext_id_tabl TYPE dokil-id VALUE 'TB' ##NO_TEXT. CONSTANTS: BEGIN OF c_s_dataname, segment_definition TYPE string VALUE 'SEGMENT_DEFINITION', tabl_extras TYPE string VALUE 'TABL_EXTRAS', END OF c_s_dataname . METHODS deserialize_indexes IMPORTING !io_xml TYPE REF TO zif_abapgit_xml_input RAISING zcx_abapgit_exception . METHODS clear_dd03p_fields CHANGING !ct_dd03p TYPE ty_dd03p_tt . ""! Check if structure is an IDoc segment ""! @parameter rv_is_idoc_segment | It's an IDoc segment or not METHODS is_idoc_segment RETURNING VALUE(rv_is_idoc_segment) TYPE abap_bool . METHODS clear_dd03p_fields_common CHANGING !cs_dd03p TYPE dd03p . METHODS clear_dd03p_fields_dataelement CHANGING !cs_dd03p TYPE dd03p . METHODS serialize_texts IMPORTING !io_xml TYPE REF TO zif_abapgit_xml_output RAISING zcx_abapgit_exception . METHODS deserialize_texts IMPORTING !io_xml TYPE REF TO zif_abapgit_xml_input !is_dd02v TYPE dd02v RAISING zcx_abapgit_exception . METHODS is_db_table_category IMPORTING !iv_tabclass TYPE dd02l-tabclass RETURNING VALUE(rv_is_db_table_type) TYPE dd02l-tabclass . ENDCLASS. CLASS zcl_abapgit_object_tabl IMPLEMENTATION. METHOD clear_dd03p_fields. CONSTANTS lc_comptype_dataelement TYPE comptype VALUE 'E'. DATA: lv_masklen TYPE c LENGTH 4. FIELD-SYMBOLS: TYPE dd03p. * remove nested structures DELETE ct_dd03p WHERE depth <> '00'. * remove fields from .INCLUDEs DELETE ct_dd03p WHERE adminfield <> '0'. LOOP AT ct_dd03p ASSIGNING WHERE NOT rollname IS INITIAL. clear_dd03p_fields_common( CHANGING cs_dd03p = ). lv_masklen = -masklen. IF lv_masklen = '' OR NOT lv_masklen CO '0123456789'. * make sure the field contains valid data, or the XML will dump CLEAR -masklen. ENDIF. IF -comptype = lc_comptype_dataelement. clear_dd03p_fields_dataelement( CHANGING cs_dd03p = ). ENDIF. IF -shlporigin = 'D'. * search help from domain CLEAR: -shlpfield, -shlpname. ENDIF. * XML output assumes correct field content IF -routputlen = ' '. CLEAR -routputlen. ENDIF. ENDLOOP. "" Clear position to avoid issues with include structures that contain different number of fields LOOP AT ct_dd03p ASSIGNING . CLEAR: -position, -tabname, -ddlanguage. ENDLOOP. ENDMETHOD. METHOD clear_dd03p_fields_common. CLEAR: cs_dd03p-ddlanguage, cs_dd03p-dtelmaster, cs_dd03p-logflag, cs_dd03p-ddtext, cs_dd03p-reservedte, cs_dd03p-reptext, cs_dd03p-scrtext_s, cs_dd03p-scrtext_m, cs_dd03p-scrtext_l. ENDMETHOD. METHOD clear_dd03p_fields_dataelement. * type specified via data element CLEAR: cs_dd03p-domname, cs_dd03p-inttype, cs_dd03p-intlen, cs_dd03p-mask, cs_dd03p-memoryid, cs_dd03p-headlen, cs_dd03p-scrlen1, cs_dd03p-scrlen2, cs_dd03p-scrlen3, cs_dd03p-datatype, cs_dd03p-leng, cs_dd03p-outputlen, cs_dd03p-deffdname, cs_dd03p-convexit, cs_dd03p-entitytab, cs_dd03p-dommaster, cs_dd03p-domname3l, cs_dd03p-decimals, cs_dd03p-lowercase, cs_dd03p-signflag. ENDMETHOD. METHOD delete_extras. DELETE FROM tddat WHERE tabname = iv_tabname. ENDMETHOD. METHOD delete_idoc_segment. DATA lv_segment_type TYPE edilsegtyp. DATA lv_result LIKE sy-subrc. IF is_idoc_segment( ) = abap_false. rv_deleted = abap_false. RETURN. ""previous XML version or no IDoc segment ENDIF. rv_deleted = abap_true. lv_segment_type = ms_item-obj_name. CALL FUNCTION 'SEGMENT_DELETE' EXPORTING segmenttyp = lv_segment_type IMPORTING result = lv_result EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0 OR lv_result <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD deserialize_idoc_segment. DATA lv_result LIKE sy-subrc. DATA lt_segment_definitions TYPE ty_segment_definitions. DATA lv_package TYPE devclass. DATA lv_uname TYPE sy-uname. FIELD-SYMBOLS TYPE ty_segment_definition. rv_deserialized = abap_false. TRY. io_xml->read( EXPORTING iv_name = c_s_dataname-segment_definition CHANGING cg_data = lt_segment_definitions ). CATCH zcx_abapgit_exception. RETURN. ""previous XML version or no IDoc segment ENDTRY. IF lines( lt_segment_definitions ) = 0. RETURN. ""no IDoc segment ENDIF. rv_deserialized = abap_true. lv_package = iv_package. LOOP AT lt_segment_definitions ASSIGNING . -segmentheader-presp = cl_abap_syst=>get_user_name( ). -segmentheader-pwork = cl_abap_syst=>get_user_name( ). CALL FUNCTION 'SEGMENT_READ' EXPORTING segmenttyp = -segmentheader-segtyp IMPORTING result = lv_result EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0 OR lv_result <> 0. CALL FUNCTION 'SEGMENT_CREATE' IMPORTING segmentdefinition = -segmentdefinition TABLES segmentstructure = -segmentstructures CHANGING segmentheader = -segmentheader devclass = lv_package EXCEPTIONS OTHERS = 1. ELSE. CALL FUNCTION 'SEGMENT_MODIFY' CHANGING segmentheader = -segmentheader devclass = lv_package EXCEPTIONS OTHERS = 1. IF sy-subrc = 0. CALL FUNCTION 'SEGMENTDEFINITION_MODIFY' TABLES segmentstructure = -segmentstructures CHANGING segmentdefinition = -segmentdefinition EXCEPTIONS OTHERS = 1. ENDIF. ENDIF. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDLOOP. lv_uname = cl_abap_syst=>get_user_name( ). CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_test_modus = abap_false wi_tadir_pgmid = 'R3TR' wi_tadir_object = ms_item-obj_type wi_tadir_obj_name = ms_item-obj_name wi_tadir_author = lv_uname wi_tadir_devclass = iv_package wi_tadir_masterlang = mv_language iv_set_edtflag = abap_true iv_delflag = abap_false EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD deserialize_indexes. DATA: lv_tname TYPE trobj_name, lt_dd12v TYPE dd12vtab, ls_dd12v LIKE LINE OF lt_dd12v, lt_dd17v TYPE dd17vtab, ls_dd17v LIKE LINE OF lt_dd17v, lt_secondary LIKE lt_dd17v. io_xml->read( EXPORTING iv_name = 'DD12V' CHANGING cg_data = lt_dd12v ). io_xml->read( EXPORTING iv_name = 'DD17V' CHANGING cg_data = lt_dd17v ). LOOP AT lt_dd12v INTO ls_dd12v. * todo, call corr_insert? CLEAR lt_secondary. LOOP AT lt_dd17v INTO ls_dd17v WHERE sqltab = ls_dd12v-sqltab AND indexname = ls_dd12v-indexname. APPEND ls_dd17v TO lt_secondary. ENDLOOP. CALL FUNCTION 'DDIF_INDX_PUT' EXPORTING name = ls_dd12v-sqltab id = ls_dd12v-indexname dd12v_wa = ls_dd12v TABLES dd17v_tab = lt_secondary EXCEPTIONS indx_not_found = 1 name_inconsistent = 2 indx_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. CALL FUNCTION 'DD_DD_TO_E071' EXPORTING type = 'INDX' name = ls_dd12v-sqltab id = ls_dd12v-indexname IMPORTING obj_name = lv_tname. zcl_abapgit_objects_activation=>add( iv_type = 'INDX' iv_name = lv_tname ). ENDLOOP. ENDMETHOD. METHOD deserialize_texts. DATA: lv_name TYPE ddobjname, ls_dd02v_tmp TYPE dd02v, lt_i18n_langs TYPE TABLE OF langu, lt_dd02_texts TYPE ty_dd02_texts. FIELD-SYMBOLS: LIKE LINE OF lt_i18n_langs, LIKE LINE OF lt_dd02_texts. lv_name = ms_item-obj_name. io_xml->read( EXPORTING iv_name = 'I18N_LANGS' CHANGING cg_data = lt_i18n_langs ). io_xml->read( EXPORTING iv_name = 'DD02_TEXTS' CHANGING cg_data = lt_dd02_texts ). SORT lt_i18n_langs. SORT lt_dd02_texts BY ddlanguage. "" Optimization LOOP AT lt_i18n_langs ASSIGNING . "" Table description ls_dd02v_tmp = is_dd02v. READ TABLE lt_dd02_texts ASSIGNING WITH KEY ddlanguage = . IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |DD02_TEXTS cannot find lang { } in XML| ). ENDIF. MOVE-CORRESPONDING TO ls_dd02v_tmp. CALL FUNCTION 'DDIF_TABL_PUT' EXPORTING name = lv_name dd02v_wa = ls_dd02v_tmp EXCEPTIONS tabl_not_found = 1 name_inconsistent = 2 tabl_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDLOOP. ENDMETHOD. METHOD is_db_table_category. "" values from domain TABCLASS rv_is_db_table_type = boolc( iv_tabclass = 'TRANSP' OR iv_tabclass = 'CLUSTER' OR iv_tabclass = 'POOL' ). ENDMETHOD. METHOD is_idoc_segment. DATA lv_segment_type TYPE edilsegtyp. lv_segment_type = ms_item-obj_name. SELECT SINGLE segtyp FROM edisegment INTO lv_segment_type WHERE segtyp = lv_segment_type. rv_is_idoc_segment = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD read_extras. SELECT SINGLE * FROM tddat INTO rs_tabl_extras-tddat WHERE tabname = iv_tabname. ENDMETHOD. METHOD serialize_idoc_segment. DATA lv_segment_type TYPE edilsegtyp. DATA lv_result LIKE sy-subrc. DATA lv_devclass TYPE devclass. DATA lt_segmentdefinitions TYPE STANDARD TABLE OF edisegmdef. DATA ls_segment_definition TYPE ty_segment_definition. DATA lt_segment_definitions TYPE ty_segment_definitions. FIELD-SYMBOLS: TYPE edisegmdef. IF is_idoc_segment( ) = abap_false. RETURN. ENDIF. lv_segment_type = ms_item-obj_name. CALL FUNCTION 'SEGMENT_READ' EXPORTING segmenttyp = lv_segment_type IMPORTING result = lv_result TABLES segmentdefinition = lt_segmentdefinitions EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0 OR lv_result <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. LOOP AT lt_segmentdefinitions ASSIGNING . CLEAR ls_segment_definition. CALL FUNCTION 'SEGMENTDEFINITION_READ' EXPORTING segmenttyp = -segtyp IMPORTING result = lv_result devclass = lv_devclass segmentheader = ls_segment_definition-segmentheader segmentdefinition = ls_segment_definition-segmentdefinition TABLES segmentstructure = ls_segment_definition-segmentstructures CHANGING version = -version EXCEPTIONS no_authority = 1 segment_not_existing = 2 OTHERS = 3. IF sy-subrc <> 0 OR lv_result <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. zcl_abapgit_object_idoc=>clear_idoc_segement_fields( CHANGING cg_structure = ls_segment_definition-segmentdefinition ). zcl_abapgit_object_idoc=>clear_idoc_segement_fields( CHANGING cg_structure = ls_segment_definition-segmentheader ). APPEND ls_segment_definition TO lt_segment_definitions. ENDLOOP. io_xml->add( iv_name = c_s_dataname-segment_definition ig_data = lt_segment_definitions ). ENDMETHOD. METHOD serialize_texts. DATA: lv_name TYPE ddobjname, lv_index TYPE i, ls_dd02v TYPE dd02v, lt_dd02_texts TYPE ty_dd02_texts, lt_i18n_langs TYPE TABLE OF langu, lt_language_filter TYPE zif_abapgit_environment=>ty_system_language_filter. FIELD-SYMBOLS: LIKE LINE OF lt_i18n_langs, LIKE LINE OF lt_dd02_texts. IF io_xml->i18n_params( )-main_language_only = abap_true. RETURN. ENDIF. lv_name = ms_item-obj_name. "" Collect additional languages, skip main lang - it was serialized already lt_language_filter = zcl_abapgit_factory=>get_environment( )->get_system_language_filter( ). SELECT DISTINCT ddlanguage AS langu INTO TABLE lt_i18n_langs FROM dd02v WHERE tabname = lv_name AND ddlanguage IN lt_language_filter AND ddlanguage <> mv_language. ""#EC CI_SUBRC LOOP AT lt_i18n_langs ASSIGNING . lv_index = sy-tabix. CALL FUNCTION 'DDIF_TABL_GET' EXPORTING name = lv_name langu = IMPORTING dd02v_wa = ls_dd02v EXCEPTIONS illegal_input = 1 OTHERS = 2. IF sy-subrc <> 0 OR ls_dd02v-ddlanguage IS INITIAL. DELETE lt_i18n_langs INDEX lv_index. "" Don't save this lang CONTINUE. ENDIF. APPEND INITIAL LINE TO lt_dd02_texts ASSIGNING . MOVE-CORRESPONDING ls_dd02v TO . ENDLOOP. SORT lt_i18n_langs ASCENDING. SORT lt_dd02_texts BY ddlanguage ASCENDING. IF lines( lt_i18n_langs ) > 0. io_xml->add( iv_name = 'I18N_LANGS' ig_data = lt_i18n_langs ). io_xml->add( iv_name = 'DD02_TEXTS' ig_data = lt_dd02_texts ). ENDIF. ENDMETHOD. METHOD update_extras. IF is_tabl_extras-tddat IS INITIAL. delete_extras( iv_tabname ). ELSE. MODIFY tddat FROM is_tabl_extras-tddat. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~changed_by. TYPES: BEGIN OF ty_data, as4user TYPE dd02l-as4user, as4date TYPE dd02l-as4date, as4time TYPE dd02l-as4time, END OF ty_data. DATA: lt_data TYPE STANDARD TABLE OF ty_data WITH DEFAULT KEY, ls_data LIKE LINE OF lt_data. SELECT as4user as4date as4time FROM dd02l INTO TABLE lt_data WHERE tabname = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. SELECT as4user as4date as4time APPENDING TABLE lt_data FROM dd09l WHERE tabname = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. SELECT as4user as4date as4time APPENDING TABLE lt_data FROM dd12l WHERE sqltab = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. SORT lt_data BY as4date DESCENDING as4time DESCENDING. READ TABLE lt_data INDEX 1 INTO ls_data. IF sy-subrc = 0. rv_user = ls_data-as4user. ELSE. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_objname TYPE rsedd0-ddobjname, lv_no_ask TYPE abap_bool, lv_subrc TYPE sy-subrc, BEGIN OF ls_dd02l, tabname TYPE dd02l-tabname, tabclass TYPE dd02l-tabclass, sqltab TYPE dd02l-sqltab, END OF ls_dd02l. IF zif_abapgit_object~exists( ) = abap_false. "" Proxies e.g. delete on its own, nothing todo here then. RETURN. ENDIF. lv_objname = ms_item-obj_name. IF delete_idoc_segment( ) = abap_false. lv_no_ask = abap_true. SELECT SINGLE tabname tabclass sqltab FROM dd02l INTO CORRESPONDING FIELDS OF ls_dd02l WHERE tabname = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. IF sy-subrc = 0 AND is_db_table_category( ls_dd02l-tabclass ) = abap_true. CALL FUNCTION 'DD_EXISTS_DATA' EXPORTING reftab = ls_dd02l-sqltab tabclass = ls_dd02l-tabclass tabname = ls_dd02l-tabname IMPORTING subrc = lv_subrc EXCEPTIONS missing_reftab = 1 sql_error = 2 buffer_overflow = 3 unknown_error = 4 OTHERS = 5. IF sy-subrc = 0 AND lv_subrc = 0. lv_no_ask = abap_false. ENDIF. ENDIF. delete_ddic( iv_objtype = 'T' iv_no_ask = lv_no_ask ). delete_longtexts( c_longtext_id_tabl ). delete_extras( lv_objname ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lv_name TYPE ddobjname, ls_dd02v TYPE dd02v, ls_dd09l TYPE dd09l, lt_dd03p TYPE TABLE OF dd03p, lt_dd05m TYPE TABLE OF dd05m, lt_dd08v TYPE TABLE OF dd08v, lt_dd35v TYPE TABLE OF dd35v, lt_dd36m TYPE dd36mttyp, ls_extras TYPE ty_tabl_extras. FIELD-SYMBOLS: TYPE dd03p, TYPE dd05m, TYPE dd08v, TYPE dd35v, TYPE dd36m, TYPE any. lv_name = ms_item-obj_name. "" type conversion IF deserialize_idoc_segment( io_xml = io_xml iv_package = iv_package ) = abap_false. io_xml->read( EXPORTING iv_name = 'DD02V' CHANGING cg_data = ls_dd02v ). io_xml->read( EXPORTING iv_name = 'DD09L' CHANGING cg_data = ls_dd09l ). io_xml->read( EXPORTING iv_name = 'DD03P_TABLE' CHANGING cg_data = lt_dd03p ). ASSIGN COMPONENT 'ROWORCOLST' OF STRUCTURE ls_dd09l TO . IF sy-subrc = 0 AND IS INITIAL. = 'C'. ""Reverse fix from serialize ENDIF. "" Number fields sequentially and fill table name LOOP AT lt_dd03p ASSIGNING . -position = sy-tabix. -tabname = lv_name. -ddlanguage = mv_language. ENDLOOP. io_xml->read( EXPORTING iv_name = 'DD05M_TABLE' CHANGING cg_data = lt_dd05m ). io_xml->read( EXPORTING iv_name = 'DD08V_TABLE' CHANGING cg_data = lt_dd08v ). io_xml->read( EXPORTING iv_name = 'DD35V_TALE' CHANGING cg_data = lt_dd35v ). io_xml->read( EXPORTING iv_name = 'DD36M' CHANGING cg_data = lt_dd36m ). LOOP AT lt_dd05m ASSIGNING . -tabname = lv_name. ENDLOOP. LOOP AT lt_dd08v ASSIGNING . -tabname = lv_name. -ddlanguage = mv_language. ENDLOOP. LOOP AT lt_dd35v ASSIGNING . -tabname = lv_name. ENDLOOP. LOOP AT lt_dd36m ASSIGNING . -tabname = lv_name. ENDLOOP. "" DDIC Step: Remove references to search helps and foreign keys IF iv_step = zif_abapgit_object=>gc_step_id-ddic. CLEAR: lt_dd08v, lt_dd35v, lt_dd36m. ENDIF. IF iv_step = zif_abapgit_object=>gc_step_id-late AND lines( lt_dd35v ) = 0 AND lines( lt_dd08v ) = 0. RETURN. "" already active ENDIF. corr_insert( iv_package = iv_package ig_object_class = 'DICT' ). CALL FUNCTION 'DD_TABL_EXPAND' EXPORTING dd02v_wa = ls_dd02v TABLES dd03p_tab = lt_dd03p dd05m_tab = lt_dd05m dd08v_tab = lt_dd08v dd35v_tab = lt_dd35v dd36m_tab = lt_dd36m EXCEPTIONS illegal_parameter = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. CALL FUNCTION 'DDIF_TABL_PUT' EXPORTING name = lv_name dd02v_wa = ls_dd02v dd09l_wa = ls_dd09l TABLES dd03p_tab = lt_dd03p dd05m_tab = lt_dd05m dd08v_tab = lt_dd08v dd35v_tab = lt_dd35v dd36m_tab = lt_dd36m EXCEPTIONS tabl_not_found = 1 name_inconsistent = 2 tabl_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. zcl_abapgit_objects_activation=>add_item( ms_item ). deserialize_indexes( io_xml ). deserialize_texts( io_xml = io_xml is_dd02v = ls_dd02v ). deserialize_longtexts( io_xml ). io_xml->read( EXPORTING iv_name = c_s_dataname-tabl_extras CHANGING cg_data = ls_extras ). update_extras( iv_tabname = lv_name is_tabl_extras = ls_extras ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_tabname TYPE dd02l-tabname. lv_tabname = ms_item-obj_name. "" Check nametab because it's fast CALL FUNCTION 'DD_GET_NAMETAB_HEADER' EXPORTING tabname = lv_tabname EXCEPTIONS not_found = 1 OTHERS = 2. IF sy-subrc <> 0. "" Check for new, inactive, or modified versions that might not be in nametab SELECT SINGLE tabname FROM dd02l INTO lv_tabname WHERE tabname = lv_tabname. ENDIF. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~get_comparator. DATA: li_local_version_output TYPE REF TO zif_abapgit_xml_output, li_local_version_input TYPE REF TO zif_abapgit_xml_input. CREATE OBJECT li_local_version_output TYPE zcl_abapgit_xml_output. zif_abapgit_object~serialize( li_local_version_output ). CREATE OBJECT li_local_version_input TYPE zcl_abapgit_xml_input EXPORTING iv_xml = li_local_version_output->render( ). CREATE OBJECT ri_comparator TYPE zcl_abapgit_object_tabl_compar EXPORTING ii_local = li_local_version_input. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-ddic TO rt_steps. APPEND zif_abapgit_object=>gc_step_id-late TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'ESDICT' iv_argument = |{ ms_item-obj_type }{ ms_item-obj_name }| ). ENDMETHOD. METHOD zif_abapgit_object~jump. "" Covered by ZCL_ABAPGIT_OBJECT=>JUMP ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_name TYPE ddobjname, lv_state TYPE ddgotstate, ls_dd02v TYPE dd02v, ls_dd09l TYPE dd09l, lt_dd03p TYPE ty_dd03p_tt, lt_dd05m TYPE TABLE OF dd05m, lt_dd08v TYPE TABLE OF dd08v, lt_dd12v TYPE dd12vtab, lt_dd17v TYPE dd17vtab, lt_dd35v TYPE TABLE OF dd35v, lv_index LIKE sy-index, lt_dd36m TYPE dd36mttyp, ls_extras TYPE ty_tabl_extras. FIELD-SYMBOLS: LIKE LINE OF lt_dd12v, LIKE LINE OF lt_dd05m, LIKE LINE OF lt_dd08v, LIKE LINE OF lt_dd35v, LIKE LINE OF lt_dd36m, TYPE any. lv_name = ms_item-obj_name. CALL FUNCTION 'DDIF_TABL_GET' EXPORTING name = lv_name langu = mv_language IMPORTING gotstate = lv_state dd02v_wa = ls_dd02v dd09l_wa = ls_dd09l TABLES dd03p_tab = lt_dd03p dd05m_tab = lt_dd05m dd08v_tab = lt_dd08v dd12v_tab = lt_dd12v dd17v_tab = lt_dd17v dd35v_tab = lt_dd35v dd36m_tab = lt_dd36m EXCEPTIONS illegal_input = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from DDIF_TABL_GET' ). ENDIF. "" Check if any active version was returned IF lv_state <> 'A'. RETURN. ENDIF. CLEAR: ls_dd02v-as4user, ls_dd02v-as4date, ls_dd02v-as4time. * reset numeric field, so XML does not crash IF ls_dd02v-prozpuff = ''. CLEAR ls_dd02v-prozpuff. ENDIF. IF ls_dd02v-datmin = ''. CLEAR ls_dd02v-datmin. ENDIF. IF ls_dd02v-datmax = ''. CLEAR ls_dd02v-datmax. ENDIF. IF ls_dd02v-datavg = ''. CLEAR ls_dd02v-datavg. ENDIF. CLEAR: ls_dd09l-as4user, ls_dd09l-as4date, ls_dd09l-as4time. ASSIGN COMPONENT 'ROWORCOLST' OF STRUCTURE ls_dd09l TO . IF sy-subrc = 0 AND = 'C'. CLEAR . ""To avoid diff errors. This field doesn't exists in all releases ENDIF. LOOP AT lt_dd12v ASSIGNING . CLEAR: -as4user, -as4date, -as4time, -dbindex. ENDLOOP. clear_dd03p_fields( CHANGING ct_dd03p = lt_dd03p ). * remove foreign keys inherited from .INCLUDEs DELETE lt_dd08v WHERE noinherit = 'N'. LOOP AT lt_dd05m ASSIGNING . CLEAR -tabname. CLEAR -leng. lv_index = sy-tabix. READ TABLE lt_dd08v WITH KEY fieldname = -fieldname TRANSPORTING NO FIELDS. IF sy-subrc <> 0. DELETE lt_dd05m INDEX lv_index. ENDIF. ENDLOOP. LOOP AT lt_dd08v ASSIGNING . CLEAR: -tabname, -ddlanguage. ENDLOOP. LOOP AT lt_dd35v ASSIGNING . CLEAR -tabname. ENDLOOP. * remove inherited search helps DELETE lt_dd35v WHERE shlpinher = abap_true. LOOP AT lt_dd36m ASSIGNING . CLEAR -tabname. lv_index = sy-tabix. READ TABLE lt_dd35v WITH KEY fieldname = -fieldname TRANSPORTING NO FIELDS. IF sy-subrc <> 0. DELETE lt_dd36m INDEX lv_index. ENDIF. ENDLOOP. io_xml->add( iv_name = 'DD02V' ig_data = ls_dd02v ). IF NOT ls_dd09l IS INITIAL. io_xml->add( iv_name = 'DD09L' ig_data = ls_dd09l ). ENDIF. io_xml->add( iv_name = 'DD03P_TABLE' ig_data = lt_dd03p ). io_xml->add( iv_name = 'DD05M_TABLE' ig_data = lt_dd05m ). io_xml->add( iv_name = 'DD08V_TABLE' ig_data = lt_dd08v ). io_xml->add( iv_name = 'DD12V' ig_data = lt_dd12v ). io_xml->add( iv_name = 'DD17V' ig_data = lt_dd17v ). io_xml->add( iv_name = 'DD35V_TALE' ig_data = lt_dd35v ). io_xml->add( iv_name = 'DD36M' ig_data = lt_dd36m ). serialize_texts( io_xml ). serialize_longtexts( ii_xml = io_xml iv_longtext_id = c_longtext_id_tabl ). serialize_idoc_segment( io_xml ). ls_extras = read_extras( lv_name ). io_xml->add( iv_name = c_s_dataname-tabl_extras ig_data = ls_extras ). ENDMETHOD. ENDCLASS. ",9115,False,2060.4205012934003,median "CLASS zcl_bw_trfn_tester DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. ""!

""! Create global DDIC Tables if not exists CLASS-METHODS create_global_ddic. ""!

""! ""! @parameter pa_trfnid |

Transformation ID

""! @raising zcx_bw_trfn_tester |

Invalid TRFN ID

METHODS constructor IMPORTING iv_strfn TYPE sobj_name iv_ttrfn TYPE sobj_name RAISING zcx_bw_trfn_tester. ""!

""! Calculate program ID based on TRFN ID ""! @parameter rv_progid |

METHODS caluclate_program_id RETURNING VALUE(rv_progid) TYPE string. ""!

""! Test new scenario - input->calculation->compare result with provided result data ""! @parameter ir_source_user_table |

Source table to compare

""! @parameter ir_result_user_table |

Result table to compare

METHODS test_new_scenario IMPORTING iv_source_ddic_table TYPE string OPTIONAL iv_result_ddic_table TYPE string OPTIONAL ir_source_user_table TYPE REF TO data OPTIONAL ir_result_user_table TYPE REF TO data OPTIONAL. ""!

""! Get data from DDIC table name ""! @parameter iv_table_name |

DDIC Table name

""! @parameter et_table |

Table data

METHODS get_data_from_table IMPORTING iv_table_name TYPE string EXPORTING et_table TYPE ANY TABLE. ""!

""! ""! @parameter rr_log |

Log reference

METHODS create_log RETURNING VALUE(rr_log) TYPE REF TO cl_rsbm_log_cursor_step_dtp. ""!

""! ""! @parameter iv_source_ddic_table |

DDIC source table name

""! @parameter iv_result_ddic_table |

DDIC result table name

""! @parameter er_src_str_trfn |

Source TRFN structure

""! @parameter er_res_str_trfn |

Result TRFN structure

""! @parameter er_src_tab_trfn |

Source TRFN table

""! @parameter er_source_table |

User source table

""! @parameter er_result_table |

User result table to compare

METHODS create_data_references IMPORTING iv_source_ddic_table TYPE string iv_result_ddic_table TYPE string EXPORTING er_src_str_trfn TYPE REF TO data er_res_str_trfn TYPE REF TO data er_src_tab_trfn TYPE REF TO data er_source_table TYPE REF TO data er_result_table TYPE REF TO data. ""!

""! ""! @parameter ir_trfn_result |

TRFN result data

""! @parameter ir_user_result |

User result data

""! @parameter iv_user_table_name |

User result DDIC table name

METHODS compare_trfn_to_user_table IMPORTING ir_trfn_result TYPE REF TO cl_rsbk_data_segment ir_user_result TYPE REF TO data iv_user_table_name TYPE string. ""!

""! Create type based on basic description ""! @parameter iv_intype |

""! @parameter iv_leng |

""! @parameter iv_decim |

""! @parameter rv_type |

CLASS-METHODS create_type IMPORTING iv_intype TYPE string iv_leng TYPE ddleng iv_decim TYPE decimals RETURNING VALUE(rv_type) TYPE REF TO cl_abap_datadescr. PROTECTED SECTION. DATA: gv_trfnid TYPE rstranid, gv_dtp TYPE rsbkdtpnm. PRIVATE SECTION. ENDCLASS. CLASS zcl_bw_trfn_tester IMPLEMENTATION. METHOD constructor. SELECT SINGLE tranid FROM rstran INTO @DATA(lv_trfn_id) WHERE sourcename = @iv_strfn AND targetname = @iv_ttrfn AND objvers = 'A' AND objstat = 'ACT'. IF sy-subrc = 0. gv_trfnid = lv_trfn_id. ELSE. RAISE EXCEPTION TYPE zcx_bw_trfn_tester. ENDIF. SELECT SINGLE dtp FROM rsbkdtp WHERE src = @iv_strfn AND tgt = @iv_ttrfn INTO @DATA(lv_dtp). IF sy-subrc = 0. gv_dtp = lv_dtp. ELSE. RAISE EXCEPTION TYPE zcx_bw_trfn_tester. ENDIF. ENDMETHOD. METHOD caluclate_program_id. TRY. DATA(lobj_rstran_miantain) = NEW cl_rstran_maintain( i_tranid = gv_trfnid ). CATCH cx_rstran_not_found. CATCH cx_rstran_input_invalid. CATCH cx_rstran_cancelled. CATCH cx_rstran_not_authorized. CATCH cx_rstran_already_exist. CATCH cx_rstran_display_only. CATCH cx_rstran_error_with_message. ENDTRY. lobj_rstran_miantain->get_progid( IMPORTING e_progid = DATA(lv_progid) ). rv_progid = |GP{ lv_progid }|. ENDMETHOD. METHOD test_new_scenario. DATA: lobj_trfn_prog TYPE REF TO object. FIELD-SYMBOLS: TYPE STANDARD TABLE, TYPE STANDARD TABLE, TYPE any, TYPE STANDARD TABLE, TYPE any. create_data_references( EXPORTING iv_source_ddic_table = iv_source_ddic_table iv_result_ddic_table = iv_result_ddic_table IMPORTING er_src_str_trfn = DATA(lr_src_str_trfn) er_res_str_trfn = DATA(lr_res_str_trfn) er_src_tab_trfn = DATA(lr_src_tab_trfn) er_source_table = DATA(lr_source_table) er_result_table = DATA(lr_result_table) ). IF iv_source_ddic_table IS NOT INITIAL. ASSIGN lr_source_table->* TO . IF sy-subrc = 0. get_data_from_table( EXPORTING iv_table_name = iv_source_ddic_table IMPORTING et_table = ). ENDIF. ELSE. ASSIGN ir_source_user_table->* TO . IF sy-subrc <> 0. MESSAGE 'Error during assign' TYPE 'E'. ENDIF. ENDIF. IF iv_result_ddic_table IS NOT INITIAL. ASSIGN lr_result_table->* TO . IF sy-subrc = 0. get_data_from_table( EXPORTING iv_table_name = iv_result_ddic_table IMPORTING et_table = ). ENDIF. ELSE. ASSIGN ir_result_user_table->* TO . IF sy-subrc <> 0. MESSAGE 'Error during assign' TYPE 'E'. ENDIF. ENDIF. ASSIGN lr_src_str_trfn->* TO . IF sy-subrc <> 0. MESSAGE 'Error during assign' TYPE 'E'. ENDIF. ASSIGN lr_res_str_trfn->* TO . IF sy-subrc <> 0. MESSAGE 'Error during assign' TYPE 'E'. ENDIF. ASSIGN lr_src_tab_trfn->* TO . IF sy-subrc <> 0. MESSAGE 'Error during assign' TYPE 'E'. ENDIF. = CORRESPONDING #( ). DATA(lro_inbound) = NEW cl_rsbk_data( ). DATA(lro_outbound) = NEW cl_rsbk_data( ). lro_inbound->add_segment_from_reference( EXPORTING i_r_s_data = lr_src_str_trfn RECEIVING r_r_segment = DATA(lro_segment_inbound) ). lro_outbound->add_segment_from_reference( i_r_s_data = lr_res_str_trfn ). lro_segment_inbound->insert_table( i_r_t_data = lr_src_tab_trfn ). DATA(lro_log) = create_log( ). DATA(lv_program_id) = caluclate_program_id( ). CONCATENATE '\\PROGRAM=' lv_program_id '\\CLASS=LCL_TRANSFORM' INTO DATA(lv_trfn_prog). CREATE OBJECT lobj_trfn_prog TYPE (lv_trfn_prog). CALL METHOD lobj_trfn_prog->('EXECUTE') EXPORTING i_master_data_exist = '' i_r_inbound = lro_inbound i_r_log = lro_log * i_r_request = l_r_request * i_r_trfn_cmd = me IMPORTING e_r_outbound = lro_outbound. TRY. DATA(lro_segment_outbound) = lro_outbound->get_segment( i_segid = 001 ). CATCH cx_rs_not_found. MESSAGE 'Outbound segment do not exist' TYPE 'E'. ENDTRY. compare_trfn_to_user_table( ir_trfn_result = lro_segment_outbound ir_user_result = ir_result_user_table iv_user_table_name = iv_result_ddic_table ). ENDMETHOD. METHOD get_data_from_table. SELECT * ##SUBRC_OK FROM (iv_table_name) INTO TABLE @et_table UP TO 50000 ROWS. ENDMETHOD. METHOD create_log. DATA: lobj_dtp TYPE REF TO cl_rsbk_dtp. DATA(lro_dp_log) = NEW cl_rsbm_log_dtp_dp( i_requid = '' i_datapakid = 1 i_no_db = '' i_runid = 1 ). lobj_dtp = cl_rsbk_dtp=>factory( gv_dtp ). TRY. lobj_dtp->if_rsbk_dtp_maintain~set_simulation( i_simulation = abap_true ). CATCH cx_rs_failed. MESSAGE 'Set DTP to simmulation mode failed' TYPE 'E'. ENDTRY. TRY. DATA(lr_request) = lobj_dtp->create_request( ). CATCH cx_rs_not_found. MESSAGE 'Request not found' TYPE 'E'. CATCH cx_rs_foreign_lock. MESSAGE 'Foregin lock' TYPE 'E'. CATCH cx_rs_failed. MESSAGE 'Create request failed' TYPE 'E'. ENDTRY. TRY. lro_dp_log->create_dp( EXPORTING i_r_request = lr_request i_datapakid = 1 i_runid = 1 i_no_db = abap_true RECEIVING r_ref_dplog = lro_dp_log ). CATCH cx_rs_existing. MESSAGE 'Data package exists' TYPE 'E'. CATCH cx_rs_para_not_exist. MESSAGE 'Parameter do not exist' TYPE 'E'. CATCH cx_rs_foreign_lock. MESSAGE 'Foregin lock' TYPE 'E'. ENDTRY. TRY. cl_rsbm_error_handler=>factory( EXPORTING i_request = lr_request->get_requid( ) i_no_monitor = lr_request->get_no_monitor( ) i_errorhandling = lr_request->get_errorhandling( ) i_number_at_err = lr_request->get_number_at_err( ) i_t_step = lr_request->get_t_stepid( ) RECEIVING r_r_errorhandler = DATA(lr_error_hanlder) ). CATCH cx_rs_access_error. MESSAGE 'Access error during error handler factory' TYPE 'E'. ENDTRY. rr_log = NEW cl_rsbm_log_cursor_step_dtp( i_r_errorlog = lr_error_hanlder i_stepid = '2-' i_r_dp_log = lro_dp_log i_requid = '3' ). ENDMETHOD. METHOD create_data_references. DATA(lv_programid) = caluclate_program_id( ). CONCATENATE '\\PROGRAM=' lv_programid '\\CLASS=LCL_TRANSFORM\\TYPE=_ty_s_SC_1' INTO DATA(lv_src_trfn_str_type). CONCATENATE '\\PROGRAM=' lv_programid '\\CLASS=LCL_TRANSFORM\\TYPE=_TY_S_TG_1' INTO DATA(lv_res_trfn_str_type). CONCATENATE '\\PROGRAM=' lv_programid '\\CLASS=LCL_TRANSFORM\\TYPE=_TY_T_SC_1' INTO DATA(lv_src_trfn_tab_type). CREATE DATA er_src_str_trfn TYPE (lv_src_trfn_str_type). CREATE DATA er_res_str_trfn TYPE (lv_res_trfn_str_type). CREATE DATA er_src_tab_trfn TYPE (lv_src_trfn_tab_type). IF iv_source_ddic_table IS NOT INITIAL. CREATE DATA er_source_table TYPE STANDARD TABLE OF (iv_source_ddic_table). ENDIF. IF iv_result_ddic_table IS NOT INITIAL. CREATE DATA er_result_table TYPE STANDARD TABLE OF (iv_result_ddic_table). ENDIF. ENDMETHOD. METHOD compare_trfn_to_user_table. DATA: lv_where TYPE string, lv_no_changes TYPE flag, lr_trfn_no_tech TYPE REF TO data, lr_user_result TYPE REF TO data, ls_comp TYPE cl_abap_structdescr=>component, lt_comp TYPE cl_abap_structdescr=>component_table. FIELD-SYMBOLS: TYPE STANDARD TABLE, TYPE STANDARD TABLE, TYPE STANDARD TABLE. DATA(lt_component) = ir_trfn_result->get_fieldlist( i_with_recno = rs_c_false ). LOOP AT lt_component REFERENCE INTO DATA(lr_component) WHERE fieldname <> 'SID' AND fieldname <> 'DATAPAKID' AND fieldname <> 'RECORD' AND fieldname <> 'REQTSN'. ls_comp-name = lr_component->fieldname. ls_comp-type = create_type( iv_intype = CONV #( lr_component->inttype ) iv_leng = lr_component->leng iv_decim = lr_component->decimals ). APPEND ls_comp TO lt_comp. ENDLOOP. TRY. DATA(lr_type_str) = cl_abap_structdescr=>create( p_components = lt_comp ). CATCH cx_sy_struct_creation. MESSAGE 'Error suring str creation' TYPE 'E'. ENDTRY. TRY. DATA(lr_type_table) = cl_abap_tabledescr=>create( lr_type_str ). CATCH cx_sy_table_creation . ENDTRY. CREATE DATA: lr_trfn_no_tech TYPE HANDLE lr_type_table. ASSIGN lr_trfn_no_tech->* TO . IF sy-subrc <> 0. MESSAGE 'Error during assign' TYPE 'E'. ENDIF. DATA(lr_trfn_result) = ir_trfn_result->get_data( ). ASSIGN lr_trfn_result->* TO . IF sy-subrc <> 0. MESSAGE 'Error during assign' TYPE 'E'. ENDIF. MOVE-CORRESPONDING TO . IF iv_user_table_name IS NOT INITIAL. SELECT fieldname, keyflag FROM dd03l INTO TABLE @DATA(lt_dd03l) WHERE tabname = @iv_user_table_name. IF sy-subrc <> 0. MESSAGE 'No fields found for result table' TYPE 'E'. ENDIF. CREATE DATA lr_user_result TYPE STANDARD TABLE OF (iv_user_table_name). ASSIGN lr_user_result->* TO . IF sy-subrc <> 0. MESSAGE 'Error during assign' TYPE 'E'. ENDIF. LOOP AT lt_dd03l REFERENCE INTO DATA(lr_dd03l) WHERE keyflag = abap_true. IF lv_where IS INITIAL. lv_where = |{ lr_dd03l->fieldname } = @-{ lr_dd03l->fieldname } |. ELSE. lv_where = |{ lv_where } and { lr_dd03l->fieldname } = @-{ lr_dd03l->fieldname }|. ENDIF. ENDLOOP. TRY. SELECT * FROM (iv_user_table_name) FOR ALL ENTRIES IN @ WHERE (lv_where) INTO TABLE @. IF sy-subrc <> 0. MESSAGE 'Error during select' TYPE 'E'. ENDIF. CATCH cx_sy_dynamic_osql_semantics. MESSAGE ' Error during result table check' TYPE 'E'. ENDTRY. ELSE. ASSIGN ir_user_result->* TO . IF sy-subrc <> 0. MESSAGE 'Error during assign' TYPE 'E'. ENDIF. ENDIF. SORT . SORT . cl_demo_output=>display( data = name = 'Result' ). CALL FUNCTION 'CTVB_COMPARE_TABLES_3' EXPORTING it_table_old = it_table_new = iv_key_count = lines( lt_dd03l ) * iv_key_table = IMPORTING * et_table_del = * et_table_add = * et_table_mod = ev_no_changes = lv_no_changes. IF lv_no_changes = abap_true. MESSAGE 'Result is compatible with table data' TYPE 'S'. ELSE. MESSAGE 'Tables are different' TYPE 'I' DISPLAY LIKE 'W'. ENDIF. ENDMETHOD. METHOD create_type. DATA(lv_plength) = ( CONV int4( iv_leng ) + 1 ) / 2. rv_type = COND #( WHEN iv_intype = 'STRING' THEN cl_abap_elemdescr=>get_string( ) WHEN iv_intype = 'XSTRING' THEN cl_abap_elemdescr=>get_xstring( ) WHEN iv_intype = 'I' THEN cl_abap_elemdescr=>get_i( ) WHEN iv_intype = 'F' THEN cl_abap_elemdescr=>get_f( ) WHEN iv_intype = 'D' THEN cl_abap_elemdescr=>get_d( ) WHEN iv_intype = 'T' THEN cl_abap_elemdescr=>get_t( ) WHEN iv_intype = 'C' THEN cl_abap_elemdescr=>get_c( p_length = CONV #( iv_leng ) ) WHEN iv_intype = 'N' THEN cl_abap_elemdescr=>get_n( p_length = CONV #( iv_leng ) ) WHEN iv_intype = 'X' THEN cl_abap_elemdescr=>get_x( p_length = CONV #( iv_leng ) ) WHEN iv_intype = 'P' THEN cl_abap_elemdescr=>get_p( p_length = CONV #( lv_plength ) p_decimals = CONV #( iv_decim ) ) ). ENDMETHOD. METHOD create_global_ddic. TYPES: BEGIN OF t_tables, tablename TYPE string. INCLUDE TYPE dd03p. TYPES: END OF t_tables. TYPES: t_ty_tables TYPE STANDARD TABLE OF t_tables WITH EMPTY KEY. DATA: lv_objname TYPE ddobjname, lv_rc LIKE sy-subrc, lv_obj_name TYPE tadir-obj_name, ls_dd02v TYPE dd02v, ls_dd09l TYPE dd09l, lv_exist TYPE abap_bool, lt_dd03p TYPE STANDARD TABLE OF dd03p WITH EMPTY KEY. FIELD-SYMBOLS: LIKE LINE OF lt_dd03p. DATA(lt_tables) = VALUE t_ty_tables( ( tablename = 'ZBWTRFN_VAR_DAT' fieldname = 'CLNT' position ='0001' keyflag = abap_true datatype = 'CHAR' leng = '000003' ) ( tablename = 'ZBWTRFN_VAR_DAT' fieldname = 'VARIANT' position ='0002' keyflag = abap_true datatype = 'CHAR' leng = '000030' ) ( tablename = 'ZBWTRFN_VAR_DAT' fieldname = 'TEMPLATE_TABLE' position ='0003' keyflag = abap_true datatype = 'CHAR' leng = '000030' ) ( tablename = 'ZBWTRFN_VAR_DAT' fieldname = 'DATA_TYPE' position ='0004' keyflag = abap_true datatype = 'CHAR' leng = '000010' ) ( tablename = 'ZBWTRFN_VAR_DAT' fieldname = 'FIELDNM' position ='0005' keyflag = abap_true datatype = 'CHAR' leng = '000030' ) ( tablename = 'ZBWTRFN_VAR_DAT' fieldname = 'ROWNR' position ='0006' keyflag = abap_true datatype = 'INT4' leng = '10' ) ( tablename = 'ZBWTRFN_VAR_DAT' fieldname = 'VALUE' position ='0007' keyflag = abap_false datatype = 'CHAR' leng = '255' ) ( tablename = 'ZBWTRFN_VAR_TYPE' fieldname = 'CLNT' position ='0001' keyflag = abap_true datatype = 'CHAR' leng = '000003' ) ( tablename = 'ZBWTRFN_VAR_TYPE' fieldname = 'VARIANT' position ='0002' keyflag = abap_true datatype = 'CHAR' leng = '000030' ) ( tablename = 'ZBWTRFN_VAR_TYPE' fieldname = 'TEMPLATE_TABLE' position ='0003' keyflag = abap_true datatype = 'CHAR' leng = '000030' ) ( tablename = 'ZBWTRFN_VAR_TYPE' fieldname = 'DATA_TYPE' position ='0004' keyflag = abap_true datatype = 'CHAR' leng = '000010' ) ( tablename = 'ZBWTRFN_VAR_TYPE' fieldname = 'LENGTH' position ='0005' keyflag = abap_true datatype = 'NUMC' leng = '000006' ) ( tablename = 'ZBWTRFN_VAR_TYPE' fieldname = 'DECIM' position ='0006' keyflag = abap_true datatype = 'NUMC' leng = '000006' ) ( tablename = 'ZBWTRFN_VAR_TYPE' fieldname = 'FIELDNM' position ='0007' keyflag = abap_true datatype = 'CHAR' leng = '000030' ) ( tablename = 'ZBWTRFN_VAR_TYPE' fieldname = 'TYPE' position ='0008' keyflag = abap_true datatype = 'CHAR' leng = '000001' ) ). LOOP AT lt_tables REFERENCE INTO DATA(lr_tables) GROUP BY lr_tables->tablename REFERENCE INTO DATA(lr_table_gropup). LOOP AT GROUP lr_table_gropup REFERENCE INTO DATA(lr_table). CLEAR lv_exist. IF sy-index = 0. ls_dd09l-tabname = lr_table->tablename. ls_dd09l-as4local = 'A'. ls_dd09l-tabkat = '1'. ls_dd09l-tabart = 'APPL1'. ls_dd09l-bufallow = 'N'. ls_dd02v-tabname = lr_table->tablename. ls_dd02v-ddlanguage = 'E'. ls_dd02v-tabclass = 'TRANSP'. ls_dd02v-ddtext = 'Generated by ZBW TRFN Tester'. ls_dd02v-contflag = 'L'. ls_dd02v-exclass = '1'. ENDIF. SELECT SINGLE @abap_true ##SUBRC_OK FROM dd02l INTO @lv_exist WHERE tabname = @lr_table->tablename AND as4local = 'A'. CHECK lv_exist = abap_false. lv_objname = lr_table->tablename. APPEND INITIAL LINE TO lt_dd03p ASSIGNING . -tabname = lr_table->tablename. -fieldname = lr_table->fieldname. -position = lr_table->position. -keyflag = lr_table->keyflag. -datatype = lr_table->datatype. -leng = lr_table->leng. ENDLOOP. IF lv_exist = abap_false. CALL FUNCTION 'DDIF_TABL_PUT' EXPORTING name = lv_objname dd02v_wa = ls_dd02v dd09l_wa = ls_dd09l TABLES dd03p_tab = lt_dd03p EXCEPTIONS tabl_not_found = 1 name_inconsistent = 2 tabl_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. CALL FUNCTION 'DDIF_TABL_ACTIVATE' EXPORTING name = lv_objname auth_chk = abap_false IMPORTING rc = lv_rc EXCEPTIONS not_found = 1 put_failure = 2 OTHERS = 3. IF sy-subrc <> 0 OR lv_rc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. CLEAR lt_dd03p. ENDIF. ENDLOOP. ENDMETHOD. ENDCLASS. ",6393,False,1093.0153391592814,median "cmd_arch/arm64/mm/copypage.o := aarch64-xilinx-linux-gcc -fuse-ld=bfd -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0=/usr/src/debug/linux-xlnx/4.19-xilinx-v2019.1+git999-r0 -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot= -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work-shared/ultra96-zynqmp/kernel-source=/usr/src/kernel --sysroot=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot -Wp,-MD,arch/arm64/mm/.copypage.o.d -nostdinc -isystem /home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../lib/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/8.2.0/include -I/home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include -I./arch/arm64/include/generated -I/home/zw/share/ultra96/mipitest/linux-xlnx/include -I./include -I/home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi -I./arch/arm64/include/generated/uapi -I/home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi -I./include/generated/uapi -include /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kconfig.h -include /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler_types.h -I/home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/mm -Iarch/arm64/mm -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -mgeneral-regs-only -DCONFIG_AS_LSE=1 -fno-asynchronous-unwind-tables -mabi=lp64 -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=/home/zw/share/ultra96/mipitest/linux-xlnx/= -Wno-packed-not-aligned -DKBUILD_BASENAME='""copypage""' -DKBUILD_MODNAME='""copypage""' -c -o arch/arm64/mm/copypage.o /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/mm/copypage.c source_arch/arm64/mm/copypage.o := /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/mm/copypage.c deps_arch/arm64/mm/copypage.o := \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kconfig.h \\ $(wildcard include/config/cpu/big/endian.h) \\ $(wildcard include/config/booger.h) \\ $(wildcard include/config/foo.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler_types.h \\ $(wildcard include/config/have/arch/compiler/h.h) \\ $(wildcard include/config/enable/must/check.h) \\ $(wildcard include/config/arch/supports/optimized/inlining.h) \\ $(wildcard include/config/optimize/inlining.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler-gcc.h \\ $(wildcard include/config/arch/use/builtin/bswap.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mm.h \\ $(wildcard include/config/need/multiple/nodes.h) \\ $(wildcard include/config/sysctl.h) \\ $(wildcard include/config/have/arch/mmap/rnd/bits.h) \\ $(wildcard include/config/have/arch/mmap/rnd/compat/bits.h) \\ $(wildcard include/config/mmu.h) \\ $(wildcard include/config/mem/soft/dirty.h) \\ $(wildcard include/config/arch/uses/high/vma/flags.h) \\ $(wildcard include/config/arch/has/pkeys.h) \\ $(wildcard include/config/ppc.h) \\ $(wildcard include/config/x86.h) \\ $(wildcard include/config/parisc.h) \\ $(wildcard include/config/ia64.h) \\ $(wildcard include/config/sparc64.h) \\ $(wildcard include/config/x86/intel/mpx.h) \\ $(wildcard include/config/stack/growsup.h) \\ $(wildcard include/config/numa.h) \\ $(wildcard include/config/transparent/hugepage.h) \\ $(wildcard include/config/hugetlb/page.h) \\ $(wildcard include/config/zone/device.h) \\ $(wildcard include/config/dev/pagemap/ops.h) \\ $(wildcard include/config/sparsemem.h) \\ $(wildcard include/config/sparsemem/vmemmap.h) \\ $(wildcard include/config/numa/balancing.h) \\ $(wildcard include/config/memcg.h) \\ $(wildcard include/config/highmem.h) \\ $(wildcard include/config/fs/dax.h) \\ $(wildcard include/config/shmem.h) \\ $(wildcard include/config/have/memblock/node/map.h) \\ $(wildcard include/config/have/arch/early/pfn/to/nid.h) \\ $(wildcard include/config/have/memblock.h) \\ $(wildcard include/config/flat/node/mem/map.h) \\ $(wildcard include/config/debug/vm/rb.h) \\ $(wildcard include/config/page/poisoning.h) \\ $(wildcard include/config/debug/pagealloc.h) \\ $(wildcard include/config/hibernation.h) \\ $(wildcard include/config/memory/hotplug.h) \\ $(wildcard include/config/hugetlbfs.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/errno.h \\ arch/arm64/include/generated/uapi/asm/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/errno-base.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mmdebug.h \\ $(wildcard include/config/debug/vm.h) \\ $(wildcard include/config/debug/virtual.h) \\ $(wildcard include/config/debug/vm/pgflags.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bug.h \\ $(wildcard include/config/generic/bug.h) \\ $(wildcard include/config/bug/on/data/corruption.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/bug.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stringify.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/asm-bug.h \\ $(wildcard include/config/debug/bugverbose.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/brk-imm.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bug.h \\ $(wildcard include/config/bug.h) \\ $(wildcard include/config/generic/bug/relative/pointers.h) \\ $(wildcard include/config/smp.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler.h \\ $(wildcard include/config/trace/branch/profiling.h) \\ $(wildcard include/config/profile/all/branches.h) \\ $(wildcard include/config/stack/validation.h) \\ $(wildcard include/config/kasan.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/types.h \\ arch/arm64/include/generated/uapi/asm/types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/int-ll64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/int-ll64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/bitsperlong.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitsperlong.h \\ $(wildcard include/config/64bit.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/bitsperlong.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/posix_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stddef.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/stddef.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/posix_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/posix_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/barrier.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/barrier.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kasan-checks.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kernel.h \\ $(wildcard include/config/lbdaf.h) \\ $(wildcard include/config/preempt/voluntary.h) \\ $(wildcard include/config/debug/atomic/sleep.h) \\ $(wildcard include/config/prove/locking.h) \\ $(wildcard include/config/arch/has/refcount.h) \\ $(wildcard include/config/panic/timeout.h) \\ $(wildcard include/config/tracing.h) \\ $(wildcard include/config/ftrace/mcount/record.h) \\ /home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot-native/usr/lib/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/8.2.0/include/stdarg.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/linkage.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/export.h \\ $(wildcard include/config/modules.h) \\ $(wildcard include/config/modversions.h) \\ $(wildcard include/config/module/rel/crcs.h) \\ $(wildcard include/config/have/arch/prel32/relocations.h) \\ $(wildcard include/config/trim/unused/ksyms.h) \\ $(wildcard include/config/unused/symbols.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/linkage.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/types.h \\ $(wildcard include/config/have/uid16.h) \\ $(wildcard include/config/uid16.h) \\ $(wildcard include/config/arch/dma/addr/t/64bit.h) \\ $(wildcard include/config/phys/addr/t/64bit.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bitops.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bits.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/bitops.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-__ffs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-ffs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-__fls.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-fls.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/ffz.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/fls64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/find.h \\ $(wildcard include/config/generic/find/first/bit.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/sched.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/hweight.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/arch_hweight.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/const_hweight.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/atomic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/atomic.h \\ $(wildcard include/config/generic/atomic64.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/atomic.h \\ $(wildcard include/config/arm64/lse/atomics.h) \\ $(wildcard include/config/as/lse.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/lse.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/alternative.h \\ $(wildcard include/config/arm64/uao.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cpucaps.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/insn.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/init.h \\ $(wildcard include/config/strict/kernel/rwx.h) \\ $(wildcard include/config/strict/module/rwx.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/atomic_lse.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cmpxchg.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/build_bug.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/atomic-long.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/lock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/non-atomic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/le.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/byteorder.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/byteorder/little_endian.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/byteorder/little_endian.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/swab.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/swab.h \\ arch/arm64/include/generated/uapi/asm/swab.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/swab.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/byteorder/generic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/ext2-atomic-setbit.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/log2.h \\ $(wildcard include/config/arch/has/ilog2/u32.h) \\ $(wildcard include/config/arch/has/ilog2/u64.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/typecheck.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/printk.h \\ $(wildcard include/config/message/loglevel/default.h) \\ $(wildcard include/config/console/loglevel/default.h) \\ $(wildcard include/config/console/loglevel/quiet.h) \\ $(wildcard include/config/early/printk.h) \\ $(wildcard include/config/printk/nmi.h) \\ $(wildcard include/config/printk.h) \\ $(wildcard include/config/dynamic/debug.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kern_levels.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/cache.h \\ $(wildcard include/config/arch/has/cache/line/size.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/kernel.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sysinfo.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cache.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cputype.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/sysreg.h \\ $(wildcard include/config/broken/gas/inst.h) \\ $(wildcard include/config/arm64/pa/bits/52.h) \\ $(wildcard include/config/arm64/4k/pages.h) \\ $(wildcard include/config/arm64/16k/pages.h) \\ $(wildcard include/config/arm64/64k/pages.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/compiler.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/gfp.h \\ $(wildcard include/config/lockdep.h) \\ $(wildcard include/config/zone/dma.h) \\ $(wildcard include/config/zone/dma32.h) \\ $(wildcard include/config/pm/sleep.h) \\ $(wildcard include/config/memory/isolation.h) \\ $(wildcard include/config/compaction.h) \\ $(wildcard include/config/cma.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mmzone.h \\ $(wildcard include/config/force/max/zoneorder.h) \\ $(wildcard include/config/zsmalloc.h) \\ $(wildcard include/config/discontigmem.h) \\ $(wildcard include/config/page/extension.h) \\ $(wildcard include/config/no/bootmem.h) \\ $(wildcard include/config/deferred/struct/page/init.h) \\ $(wildcard include/config/have/memory/present.h) \\ $(wildcard include/config/have/memoryless/nodes.h) \\ $(wildcard include/config/flatmem.h) \\ $(wildcard include/config/sparsemem/extreme.h) \\ $(wildcard include/config/memory/hotremove.h) \\ $(wildcard include/config/have/arch/pfn/valid.h) \\ $(wildcard include/config/holes/in/zone.h) \\ $(wildcard include/config/arch/has/holes/memorymodel.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/spinlock.h \\ $(wildcard include/config/debug/spinlock.h) \\ $(wildcard include/config/preempt.h) \\ $(wildcard include/config/debug/lock/alloc.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/preempt.h \\ $(wildcard include/config/preempt/count.h) \\ $(wildcard include/config/debug/preempt.h) \\ $(wildcard include/config/trace/preempt/toggle.h) \\ $(wildcard include/config/preempt/notifiers.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/list.h \\ $(wildcard include/config/debug/list.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/poison.h \\ $(wildcard include/config/illegal/pointer/value.h) \\ $(wildcard include/config/page/poisoning/zero.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/const.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/const.h \\ arch/arm64/include/generated/asm/preempt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/preempt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/thread_info.h \\ $(wildcard include/config/thread/info/in/task.h) \\ $(wildcard include/config/have/arch/within/stack/frames.h) \\ $(wildcard include/config/hardened/usercopy.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/restart_block.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/time64.h \\ $(wildcard include/config/64bit/time.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/math64.h \\ $(wildcard include/config/arch/supports/int128.h) \\ arch/arm64/include/generated/asm/div64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/div64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/time.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/current.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/thread_info.h \\ $(wildcard include/config/arm64/sw/ttbr0/pan.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/memory.h \\ $(wildcard include/config/arm64/va/bits.h) \\ $(wildcard include/config/vmap/stack.h) \\ $(wildcard include/config/debug/align/rodata.h) \\ $(wildcard include/config/blk/dev/initrd.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/page-def.h \\ $(wildcard include/config/arm64/page/shift.h) \\ $(wildcard include/config/arm64/cont/shift.h) \\ arch/arm64/include/generated/asm/sizes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/sizes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sizes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/memory_model.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pfn.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/stack_pointer.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/irqflags.h \\ $(wildcard include/config/trace/irqflags.h) \\ $(wildcard include/config/irqsoff/tracer.h) \\ $(wildcard include/config/preempt/tracer.h) \\ $(wildcard include/config/trace/irqflags/support.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/irqflags.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/ptrace.h \\ $(wildcard include/config/compat.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/ptrace.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/hwcap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/hwcap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/sigcontext.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/prctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/ptrace.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bottom_half.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/spinlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/spinlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qspinlock_types.h \\ $(wildcard include/config/paravirt.h) \\ $(wildcard include/config/nr/cpus.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qrwlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/lockdep.h \\ $(wildcard include/config/lock/stat.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/spinlock.h \\ arch/arm64/include/generated/asm/qrwlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qrwlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/processor.h \\ $(wildcard include/config/have/hw/breakpoint.h) \\ $(wildcard include/config/gcc/plugin/stackleak.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/string.h \\ $(wildcard include/config/binary/printf.h) \\ $(wildcard include/config/fortify/source.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/string.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/string.h \\ $(wildcard include/config/arch/has/uaccess/flushcache.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cpufeature.h \\ $(wildcard include/config/arm64/sve.h) \\ $(wildcard include/config/arm64/ssbd.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/jump_label.h \\ $(wildcard include/config/jump/label.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/hw_breakpoint.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/virt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/sections.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/sections.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable-hwdef.h \\ $(wildcard include/config/pgtable/levels.h) \\ $(wildcard include/config/arm64/pa/bits.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/fpsimd.h \\ arch/arm64/include/generated/asm/qspinlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qspinlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/spinlock_api_smp.h \\ $(wildcard include/config/inline/spin/lock.h) \\ $(wildcard include/config/inline/spin/lock/bh.h) \\ $(wildcard include/config/inline/spin/lock/irq.h) \\ $(wildcard include/config/inline/spin/lock/irqsave.h) \\ $(wildcard include/config/inline/spin/trylock.h) \\ $(wildcard include/config/inline/spin/trylock/bh.h) \\ $(wildcard include/config/uninline/spin/unlock.h) \\ $(wildcard include/config/inline/spin/unlock/bh.h) \\ $(wildcard include/config/inline/spin/unlock/irq.h) \\ $(wildcard include/config/inline/spin/unlock/irqrestore.h) \\ $(wildcard include/config/generic/lockbreak.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwlock_api_smp.h \\ $(wildcard include/config/inline/read/lock.h) \\ $(wildcard include/config/inline/write/lock.h) \\ $(wildcard include/config/inline/read/lock/bh.h) \\ $(wildcard include/config/inline/write/lock/bh.h) \\ $(wildcard include/config/inline/read/lock/irq.h) \\ $(wildcard include/config/inline/write/lock/irq.h) \\ $(wildcard include/config/inline/read/lock/irqsave.h) \\ $(wildcard include/config/inline/write/lock/irqsave.h) \\ $(wildcard include/config/inline/read/trylock.h) \\ $(wildcard include/config/inline/write/trylock.h) \\ $(wildcard include/config/inline/read/unlock.h) \\ $(wildcard include/config/inline/write/unlock.h) \\ $(wildcard include/config/inline/read/unlock/bh.h) \\ $(wildcard include/config/inline/write/unlock/bh.h) \\ $(wildcard include/config/inline/read/unlock/irq.h) \\ $(wildcard include/config/inline/write/unlock/irq.h) \\ $(wildcard include/config/inline/read/unlock/irqrestore.h) \\ $(wildcard include/config/inline/write/unlock/irqrestore.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/wait.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/wait.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/threads.h \\ $(wildcard include/config/base/small.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/numa.h \\ $(wildcard include/config/nodes/shift.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/seqlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/nodemask.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bitmap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pageblock-flags.h \\ $(wildcard include/config/hugetlb/page/size/variable.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/page-flags-layout.h \\ include/generated/bounds.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/sparsemem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/page.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/personality.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/personality.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable-types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/pgtable-nopud.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/pgtable-nop4d-hack.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/5level-fixup.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/getorder.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/memory_hotplug.h \\ $(wildcard include/config/arch/has/add/pages.h) \\ $(wildcard include/config/have/arch/nodedata/extension.h) \\ $(wildcard include/config/have/bootmem/info/node.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/notifier.h \\ $(wildcard include/config/tree/srcu.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mutex.h \\ $(wildcard include/config/mutex/spin/on/owner.h) \\ $(wildcard include/config/debug/mutexes.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/osq_lock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/debug_locks.h \\ $(wildcard include/config/debug/locking/api/selftests.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwsem.h \\ $(wildcard include/config/rwsem/spin/on/owner.h) \\ $(wildcard include/config/rwsem/generic/spinlock.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/err.h \\ arch/arm64/include/generated/asm/rwsem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/rwsem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/srcu.h \\ $(wildcard include/config/tiny/srcu.h) \\ $(wildcard include/config/srcu.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcupdate.h \\ $(wildcard include/config/preempt/rcu.h) \\ $(wildcard include/config/rcu/stall/common.h) \\ $(wildcard include/config/no/hz/full.h) \\ $(wildcard include/config/rcu/nocb/cpu.h) \\ $(wildcard include/config/tasks/rcu.h) \\ $(wildcard include/config/tree/rcu.h) \\ $(wildcard include/config/tiny/rcu.h) \\ $(wildcard include/config/debug/objects/rcu/head.h) \\ $(wildcard include/config/hotplug/cpu.h) \\ $(wildcard include/config/prove/rcu.h) \\ $(wildcard include/config/rcu/boost.h) \\ $(wildcard include/config/arch/weak/release/acquire.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/cpumask.h \\ $(wildcard include/config/cpumask/offstack.h) \\ $(wildcard include/config/debug/per/cpu/maps.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcutree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/workqueue.h \\ $(wildcard include/config/debug/objects/work.h) \\ $(wildcard include/config/freezer.h) \\ $(wildcard include/config/sysfs.h) \\ $(wildcard include/config/wq/watchdog.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timer.h \\ $(wildcard include/config/debug/objects/timers.h) \\ $(wildcard include/config/no/hz/common.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ktime.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/time.h \\ $(wildcard include/config/arch/uses/gettimeoffset.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/time32.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/jiffies.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timex.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/timex.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/param.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/param.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/param.h \\ $(wildcard include/config/hz.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/param.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/timex.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/arch_timer.h \\ $(wildcard include/config/arm/arch/timer/ool/workaround.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/smp.h \\ $(wildcard include/config/up/late/init.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/llist.h \\ $(wildcard include/config/arch/have/nmi/safe/cmpxchg.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/smp.h \\ $(wildcard include/config/arm64/acpi/parking/protocol.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/percpu.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/percpu.h \\ $(wildcard include/config/have/setup/per/cpu/area.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu-defs.h \\ $(wildcard include/config/debug/force/weak/per/cpu.h) \\ $(wildcard include/config/virtualization.h) \\ $(wildcard include/config/amd/mem/encrypt.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/clocksource/arm_arch_timer.h \\ $(wildcard include/config/arm/arch/timer.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timecounter.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/timex.h \\ include/generated/timeconst.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timekeeping.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timekeeping32.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/debugobjects.h \\ $(wildcard include/config/debug/objects.h) \\ $(wildcard include/config/debug/objects/free.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcu_segcblist.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/srcutree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcu_node_tree.h \\ $(wildcard include/config/rcu/fanout.h) \\ $(wildcard include/config/rcu/fanout/leaf.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/completion.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/topology.h \\ $(wildcard include/config/use/percpu/numa/node/id.h) \\ $(wildcard include/config/sched/smt.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu.h \\ $(wildcard include/config/need/per/cpu/embed/first/chunk.h) \\ $(wildcard include/config/need/per/cpu/page/first/chunk.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/topology.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/arch_topology.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/topology.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rbtree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mm_types.h \\ $(wildcard include/config/have/aligned/struct/page.h) \\ $(wildcard include/config/userfaultfd.h) \\ $(wildcard include/config/have/arch/compat/mmap/bases.h) \\ $(wildcard include/config/membarrier.h) \\ $(wildcard include/config/aio.h) \\ $(wildcard include/config/mmu/notifier.h) \\ $(wildcard include/config/arch/want/batched/unmap/tlb/flush.h) \\ $(wildcard include/config/hmm.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mm_types_task.h \\ $(wildcard include/config/split/ptlock/cpus.h) \\ $(wildcard include/config/arch/enable/split/pmd/ptlock.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/auxvec.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/auxvec.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/auxvec.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uprobes.h \\ $(wildcard include/config/uprobes.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/mmu.h \\ $(wildcard include/config/unmap/kernel/at/el0.h) \\ $(wildcard include/config/harden/branch/predictor.h) \\ $(wildcard include/config/harden/el2/vectors.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/range.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu-refcount.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bit_spinlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/shrinker.h \\ $(wildcard include/config/memcg/kmem.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/resource.h \\ arch/arm64/include/generated/uapi/asm/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/page_ext.h \\ $(wildcard include/config/idle/page/tracking.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stacktrace.h \\ $(wildcard include/config/stacktrace.h) \\ $(wildcard include/config/user/stacktrace/support.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stackdepot.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/page_ref.h \\ $(wildcard include/config/debug/page/ref.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/page-flags.h \\ $(wildcard include/config/arch/uses/pg/uncached.h) \\ $(wildcard include/config/memory/failure.h) \\ $(wildcard include/config/swap.h) \\ $(wildcard include/config/thp/swap.h) \\ $(wildcard include/config/ksm.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/tracepoint-defs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/static_key.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/memremap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ioport.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/proc-fns.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable-prot.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/fixmap.h \\ $(wildcard include/config/acpi/apei/ghes.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/boot.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/fixmap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched.h \\ $(wildcard include/config/virt/cpu/accounting/native.h) \\ $(wildcard include/config/sched/info.h) \\ $(wildcard include/config/schedstats.h) \\ $(wildcard include/config/fair/group/sched.h) \\ $(wildcard include/config/rt/group/sched.h) \\ $(wildcard include/config/cgroup/sched.h) \\ $(wildcard include/config/blk/dev/io/trace.h) \\ $(wildcard include/config/compat/brk.h) \\ $(wildcard include/config/cgroups.h) \\ $(wildcard include/config/blk/cgroup.h) \\ $(wildcard include/config/stackprotector.h) \\ $(wildcard include/config/arch/has/scaled/cputime.h) \\ $(wildcard include/config/virt/cpu/accounting/gen.h) \\ $(wildcard include/config/posix/timers.h) \\ $(wildcard include/config/sysvipc.h) \\ $(wildcard include/config/detect/hung/task.h) \\ $(wildcard include/config/auditsyscall.h) \\ $(wildcard include/config/rt/mutexes.h) \\ $(wildcard include/config/ubsan.h) \\ $(wildcard include/config/block.h) \\ $(wildcard include/config/task/xacct.h) \\ $(wildcard include/config/cpusets.h) \\ $(wildcard include/config/intel/rdt.h) \\ $(wildcard include/config/futex.h) \\ $(wildcard include/config/perf/events.h) \\ $(wildcard include/config/rseq.h) \\ $(wildcard include/config/task/delay/acct.h) \\ $(wildcard include/config/fault/injection.h) \\ $(wildcard include/config/latencytop.h) \\ $(wildcard include/config/function/graph/tracer.h) \\ $(wildcard include/config/kcov.h) \\ $(wildcard include/config/bcache.h) \\ $(wildcard include/config/livepatch.h) \\ $(wildcard include/config/security.h) \\ $(wildcard include/config/arch/task/struct/on/stack.h) \\ $(wildcard include/config/debug/rseq.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sched.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rculist.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ipc.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uidgid.h \\ $(wildcard include/config/multiuser.h) \\ $(wildcard include/config/user/ns.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/highuid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rhashtable-types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/ipc.h \\ arch/arm64/include/generated/uapi/asm/ipcbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/ipcbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/refcount.h \\ $(wildcard include/config/refcount/full.h) \\ arch/arm64/include/generated/uapi/asm/sembuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/sembuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/shm.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/shm.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/hugetlb_encode.h \\ arch/arm64/include/generated/uapi/asm/shmbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/shmbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/shmparam.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/shmparam.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kcov.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/kcov.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/plist.h \\ $(wildcard include/config/debug/pi/list.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/hrtimer.h \\ $(wildcard include/config/high/res/timers.h) \\ $(wildcard include/config/time/low/res.h) \\ $(wildcard include/config/timerfd.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timerqueue.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/seccomp.h \\ $(wildcard include/config/seccomp.h) \\ $(wildcard include/config/have/arch/seccomp/filter.h) \\ $(wildcard include/config/seccomp/filter.h) \\ $(wildcard include/config/checkpoint/restore.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/seccomp.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/latencytop.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/prio.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/signal_types.h \\ $(wildcard include/config/old/sigaction.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/signal-defs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/siginfo.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/siginfo.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/task_io_accounting.h \\ $(wildcard include/config/task/io/accounting.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/rseq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/pgtable.h \\ $(wildcard include/config/have/arch/transparent/hugepage/pud.h) \\ $(wildcard include/config/have/arch/soft/dirty.h) \\ $(wildcard include/config/arch/enable/thp/migration.h) \\ $(wildcard include/config/have/arch/huge/vmap.h) \\ $(wildcard include/config/x86/espfix64.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/overflow.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/huge_mm.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/coredump.h \\ $(wildcard include/config/core/dump/default/elf/headers.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/fs.h \\ $(wildcard include/config/fs/posix/acl.h) \\ $(wildcard include/config/cgroup/writeback.h) \\ $(wildcard include/config/ima.h) \\ $(wildcard include/config/fsnotify.h) \\ $(wildcard include/config/fs/encryption.h) \\ $(wildcard include/config/epoll.h) \\ $(wildcard include/config/file/locking.h) \\ $(wildcard include/config/quota.h) \\ $(wildcard include/config/mandatory/file/locking.h) \\ $(wildcard include/config/migration.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/wait_bit.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kdev_t.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/kdev_t.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dcache.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rculist_bl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/list_bl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/lockref.h \\ $(wildcard include/config/arch/use/cmpxchg/lockref.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stringhash.h \\ $(wildcard include/config/dcache/word/access.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/hash.h \\ $(wildcard include/config/have/arch/hash.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/path.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compat_time.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/compat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/task_stack.h \\ $(wildcard include/config/debug/stack/usage.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/magic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/list_lru.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/radix-tree.h \\ $(wildcard include/config/radix/tree/multiorder.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/xarray.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/capability.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/capability.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/semaphore.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/fiemap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/migrate_mode.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu-rwsem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcuwait.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcu_sync.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/delayed_call.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uuid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/uuid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/errseq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ioprio.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/rt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/iocontext.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/fs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/limits.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/ioctl.h \\ arch/arm64/include/generated/uapi/asm/ioctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/ioctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/ioctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/quota.h \\ $(wildcard include/config/quota/netlink/interface.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu_counter.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/dqblk_xfs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dqblk_v1.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dqblk_v2.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dqblk_qtree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/projid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/quota.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/nfs_fs_i.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/vmstat.h \\ $(wildcard include/config/vm/event/counters.h) \\ $(wildcard include/config/debug/tlbflush.h) \\ $(wildcard include/config/debug/vm/vmacache.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/vm_event_item.h \\ $(wildcard include/config/memory/balloon.h) \\ $(wildcard include/config/balloon/compaction.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cacheflush.h \\ $(wildcard include/config/kgdb.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kgdb.h \\ $(wildcard include/config/have/arch/kgdb.h) \\ $(wildcard include/config/serial/kgdb/nmi.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/kgdb.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ptrace.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/signal.h \\ $(wildcard include/config/sched/autogroup.h) \\ $(wildcard include/config/bsd/process/acct.h) \\ $(wildcard include/config/taskstats.h) \\ $(wildcard include/config/audit.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/signal.h \\ $(wildcard include/config/proc/fs.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/jobctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/task.h \\ $(wildcard include/config/have/copy/thread/tls.h) \\ $(wildcard include/config/have/exit/thread.h) \\ $(wildcard include/config/arch/wants/dynamic/task/struct.h) \\ $(wildcard include/config/have/arch/thread/struct/whitelist.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/cred.h \\ $(wildcard include/config/debug/credentials.h) \\ $(wildcard include/config/keys.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/key.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sysctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sysctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/assoc_array.h \\ $(wildcard include/config/associative/array.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/selinux.h \\ $(wildcard include/config/security/selinux.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/user.h \\ $(wildcard include/config/fanotify.h) \\ $(wildcard include/config/posix/mqueue.h) \\ $(wildcard include/config/bpf/syscall.h) \\ $(wildcard include/config/net.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ratelimit.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pid_namespace.h \\ $(wildcard include/config/pid/ns.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/nsproxy.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kref.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ns_common.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/idr.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/ptrace.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/debug-monitors.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/esr.h \\ arch/arm64/mm/copypage.o: $(deps_arch/arm64/mm/copypage.o) $(deps_arch/arm64/mm/copypage.o): ",16143,True,5203.942049838712,median " /***************************************************************************** * Copyright (c) Future Technology Devices International 2014 * propriety of Future Technology devices International. * * Software License Agreement * * This code is provided as an example only and is not guaranteed by FTDI. * FTDI accept no responsibility for any issues resulting from its use. * The developer of the final application incorporating any parts of this * sample project is responsible for ensuring its safe and correct operation * and for any consequences resulting from its use. *****************************************************************************/ /** * @file FT_App_Restaurant.ino * @brief Sample application to demonstrate FT801 primitives, widgets and customized screen shots. * @version 0.1.0 * @date 2014/03/21 * */ #include ""SPI.h"" #include ""Wire.h"" #include ""FT_VM801P43_50.h"" #define imw (80) #define imh (53) /* SD card object*/ FT_SD FtSd(FT_SD_CSPIN); /* sd_present holds error values during initialization. 0 means no error and all other errors are non zero value */ FT_SDStatus sd_present; /* Global object for transport */ FT801IMPL_SPI FTImpl(FT_CS_PIN,FT_PDN_PIN,FT_INT_PIN); int16_t CartX = 480; typedef struct logoim { prog_char name[10]; uint16_t image_height; uint8_t image_format; uint8_t filter; uint16_t sizex; uint16_t sizey; uint16_t linestride; uint16_t gram_address; }t_imageprp; PROGMEM t_imageprp Main_Icons[7] = { {""Menu.BIN"", 53, FT_RGB565, FT_BILINEAR, 114, 76, 80*2, 0L }, //handle 0 {""BB.BIN"", 50, FT_ARGB4, FT_NEAREST, 50, 50, 50*2, 153}, //handle 1 {""HB.BIN"", 50, FT_ARGB4, FT_NEAREST, 50, 50, 50*2, 159}, //handle 2 {""CB.BIN"", 50, FT_ARGB4, FT_NEAREST, 50, 51, 51*2, 165}, //handle 3 {""OB.BIN"", 50, FT_RGB565, FT_NEAREST, 50, 50, 50*2, 171}, //handle 4 {""PB.BIN"", 26, FT_ARGB4, FT_NEAREST, 26, 26, 26*2, 177}, //handle 5 {""MB.BIN"", 6, FT_ARGB4, FT_NEAREST, 26, 26, 26*2, 180}, //handle 6 }; /*****************************************************************************/ /* Example code to display few points at various offsets with various colors */ PROGMEM prog_char *info[] = { ""FT801 Restaurant Demo Application"", ""APP to demonstrate interactive Menu,"", ""and animation,"", ""using Bitmaps & Track"", }; static uint8_t key_pressed = 0; //static int16_t trackval = 0; static float trackval=0; uint8_t item_no = 0,item_selection = 0,item_selected_counts = 0; uint8_t description_no = 0; int32_t StoreTag[16],CheckTag[16]; typedef struct Item_Prop { prog_char ItemName[20]; prog_char ItemPrice[7]; prog_char ItemDescription[100]; uint8_t ItemPriceinVal; }Item_Properties; Item_Properties Item_Property[14] PROGMEM= { {0,0,0},//0 {""Espresso\\0"", ""$3.00\\0"", ""Italian Espresso Coffee"",3},//1 {""Black Coffee\\0"", ""$2.00\\0"", ""Freshly Brewed Coffee"",2},//2 {""Hot Choclate\\0"", ""$3.00\\0"", ""The Finest cocoa blended with hot milk"",3},//3 {""Tea\\0"", ""$2.00\\0"", ""Hot Tea"",2},//4 {""Blueberry Muffin\\0"", ""$2.00\\0"", ""A moist, flavorful muffin packed with juicy blueberries"",2},//5 {""Choclate Muffin\\0"", ""$2.00\\0"", ""A delicious muffin packed with rich choclate"",2},//6 {""Choclate Donut\\0"", ""$2.00\\0"", ""A classic glazed chocolate doughnut"",2},//7 {""Pain au Choclat\\0"", ""$2.00\\0"", ""A light, flaky pastry with chocolate"",2},//8 {""Tiramisu\\0"", ""$2.00\\0"", ""Creamy traditional tiramisu"",2},//9 {""Walnut Frappe\\0"", ""$3.00\\0"",""Coffee blended with Walnut drizzle"",3},//10 {""Choclate Frappe\\0"", ""$3.00"",""A creamy blend of chocolaty chips, milk and ice"",3},//11 {""Strawberry Frappe\\0"", ""$3.00"",""Strawberries and milk blended with ice"",3},//12 {""Vanilla Frappe\\0"", ""$3.00"",""A rich and creamy blend of vanilla bean, milk and ice"",3},//13 }; PROGMEM prog_char Array_MainMenu_name[4][12] = {""\\0"", ""Beverages"", ""Pastries"", ""Frappe""}; PROGMEM prog_char Array_Beverage_name[5][14] = {""\\0"",""Espresso"", ""Black Coffee"", ""Hot Choclate"",""Tea""}; PROGMEM prog_char Array_Frappe_name[5][12] = {""\\0"",""Walnut"", ""Choclate"", ""Strawberry"",""Vanilla""}; PROGMEM prog_char Array_Pastry_name[6][18] = {""\\0"", ""Blueberry Muffin"", ""Choc Muffin"", ""Choc Donut"", ""Pain au Choclat"", ""Tiramisu""}; uint8_t Read_Keys() { static uint8_t Read_tag=0,temp_tag=0,ret_tag=0; ret_tag = NULL; Read_tag = FTImpl.Read(REG_TOUCH_TAG); if(Read_tag!=NULL) // Allow if the Key is released { if(temp_tag!=Read_tag) { temp_tag = Read_tag; key_pressed = Read_tag; // Load the Read tag to temp variable } } else { key_pressed = 0; if(temp_tag!=0) { ret_tag = temp_tag; temp_tag = 0; } } return ret_tag; } void Info() { uint16_t dloffset = 0,z; // Touch Screen Calibration FTImpl.DLStart(); FTImpl.ColorRGB(255,255,255); FTImpl.Cmd_Text(FT_DISPLAYWIDTH/2,FT_DISPLAYHEIGHT/2,28,FT_OPT_CENTERX|FT_OPT_CENTERY,""Please tap on a dot""); FTImpl.Cmd_Calibrate(0); FTImpl.DLEnd(); FTImpl.Finish(); // Ftdi Logo animation FTImpl.Cmd_Logo(); while(FTImpl.CheckLogo() != FT_GE_FINISHED); //Copy the Displaylist from DL RAM to GRAM dloffset = FTImpl.Read16(REG_CMD_DL); dloffset -=4; FTImpl.WriteCmd(CMD_MEMCPY); FTImpl.WriteCmd(100*1024L); FTImpl.WriteCmd(FT_RAM_DL); FTImpl.WriteCmd(dloffset); //Enter into Info Screen do { FTImpl.DLStart(); FTImpl.Cmd_Append(100*1024L,dloffset); //Reset the BITMAP properties used during Logo animation FTImpl.BitmapTransformA(256); FTImpl.BitmapTransformB(0); FTImpl.BitmapTransformC(0); FTImpl.BitmapTransformD(0); FTImpl.BitmapTransformE(256); FTImpl.BitmapTransformF(0); //Display the information with transparent Logo using Edge Strip FTImpl.SaveContext(); FTImpl.ColorRGB(219,180,150); FTImpl.ColorA(220); FTImpl.Begin(FT_EDGE_STRIP_A); FTImpl.Vertex2f(0,FT_DISPLAYHEIGHT*16); FTImpl.Vertex2f(FT_DISPLAYWIDTH*16,FT_DISPLAYHEIGHT*16); FTImpl.ColorA(255); FTImpl.RestoreContext(); FTImpl.ColorRGB(0,0,0); FTImpl.Cmd_Text(FT_DISPLAYWIDTH/2,20,28,FT_OPT_CENTERX|FT_OPT_CENTERY,info[0]); FTImpl.Cmd_Text(FT_DISPLAYWIDTH/2,60,26,FT_OPT_CENTERX|FT_OPT_CENTERY,info[1]); FTImpl.Cmd_Text(FT_DISPLAYWIDTH/2,90,26,FT_OPT_CENTERX|FT_OPT_CENTERY,info[2]); FTImpl.Cmd_Text(FT_DISPLAYWIDTH/2,120,26,FT_OPT_CENTERX|FT_OPT_CENTERY,info[3]); FTImpl.Cmd_Text(FT_DISPLAYWIDTH/2,FT_DISPLAYHEIGHT-30,26,FT_OPT_CENTERX|FT_OPT_CENTERY,""Click to play""); //Check if the Play key and change the color if(key_pressed!='P') FTImpl.ColorRGB(255,255,255); else { FTImpl.ColorRGB(100,100,100); } FTImpl.Begin(FT_POINTS); FTImpl.PointSize(20*16); FTImpl.Tag('P'); FTImpl.Vertex2f((FT_DISPLAYWIDTH/2)*16,(FT_DISPLAYHEIGHT-60)*16); FTImpl.Clear(0,1,0); FTImpl.ColorRGB(255, 0, 0) ; FTImpl.StencilOp(FT_INCR,FT_INCR) ; FTImpl.ColorMask(0,0,0,0) ;//mask all the colors FTImpl.Begin(FT_EDGE_STRIP_L); FTImpl.Vertex2ii(((FT_DISPLAYWIDTH/2)-14+10),(FT_DISPLAYHEIGHT-77+5),0,0); FTImpl.Vertex2ii(((FT_DISPLAYWIDTH/2)-2+15),(FT_DISPLAYHEIGHT-67+8),0,0); FTImpl.Vertex2ii(((FT_DISPLAYWIDTH/2)-14+10),(FT_DISPLAYHEIGHT-57+11),0,0); FTImpl.Vertex2ii(((FT_DISPLAYWIDTH/2)-14+10),(FT_DISPLAYHEIGHT-77+5),0,0); FTImpl.ColorMask(1,1,1,1) ;//enable all the colors FTImpl.StencilFunc(FT_EQUAL,1,255); FTImpl.Begin(FT_EDGE_STRIP_L); FTImpl.Vertex2ii(FT_DISPLAYWIDTH,0,0,0); FTImpl.Vertex2ii(FT_DISPLAYWIDTH,FT_DISPLAYHEIGHT,0,0); FTImpl.StencilOp(FT_KEEP,FT_KEEP); FTImpl.StencilFunc(FT_ALWAYS,0,255); FTImpl.LineWidth(1*16); FTImpl.Begin(FT_LINE_STRIP); FTImpl.Vertex2ii(((FT_DISPLAYWIDTH/2)-14+10),(FT_DISPLAYHEIGHT-77+5),0,0); FTImpl.Vertex2ii(((FT_DISPLAYWIDTH/2)-2+15),(FT_DISPLAYHEIGHT-67+8),0,0); FTImpl.Vertex2ii(((FT_DISPLAYWIDTH/2)-14+10),(FT_DISPLAYHEIGHT-57+11),0,0); FTImpl.Vertex2ii(((FT_DISPLAYWIDTH/2)-14+10),(FT_DISPLAYHEIGHT-77+5),0,0); FTImpl.DLEnd(); FTImpl.Finish(); }while(Read_Keys()!='P'); FTImpl.DLStart(); FTImpl.ColorRGB(255,255,255); FTImpl.Clear(1,1,1); FTImpl.ColorRGB(0,0,0); FTImpl.Cmd_Text(FT_DISPLAYWIDTH/2-80,FT_DISPLAYHEIGHT/2,29,FT_OPT_CENTERX|FT_OPT_CENTERY,""Data Loading""); FTImpl.Cmd_Spinner(FT_DISPLAYWIDTH/2+40,FT_DISPLAYHEIGHT/2,1,0); FTImpl.DLEnd(); FTImpl.Finish(); FTImpl.PlaySound(255,0x50); } void Back_Home(uint8_t alpha,uint8_t OrderFlag) { uint8_t TagValue=0,Touch=0; int16_t IconCt=0; sTagXY sTagxy; FTImpl.GetTagXY(sTagxy); Touch = sTagxy.y; //TagValue = sTagxy.tag; TagValue = FTImpl.Read( REG_TOUCH_TAG); FTImpl.ColorA(0); FTImpl.TagMask(1); FTImpl.Tag('T'); FTImpl.Cmd_Button(10,200,470,70,16,0,""""); FTImpl.RestoreContext(); FTImpl.ColorA(alpha); FTImpl.Tag('B'); FTImpl.Vertex2ii(10,220,1,0); FTImpl.Tag('H'); FTImpl.Vertex2ii(70,220,2,0); if(OrderFlag ==0) { FTImpl.Tag('O'); FTImpl.ColorRGB(255,255,255); FTImpl.Vertex2ii(430,220,4,0); } FTImpl.RestoreContext(); FTImpl.TagMask(0); } uint8_t Selection_Menu(uint8_t NoItems,uint8_t start_tag) { float zinout_f = 0; uint8_t Menu=0,temp_Menu=0,x,rotation_flag=0; int16_t prevth=0,currth=0,key_deteted_cts=0,/*xoff,yoff,*/rotation_cts=0,deg = 0/*,theta,zinout*/; sTagXY sTagxy; sTrackTag sTracktag; char buffer[20]; FTImpl.Cmd_Track(240,0,1,1,1); FTImpl.Cmd_Track(240,0,1,1,2); FTImpl.Cmd_Track(240,0,1,1,3); FTImpl.Cmd_Track(240,0,1,1,4); FTImpl.Finish(); deg = 360/6; do { FTImpl.GetTagXY(sTagxy); FTImpl.GetTrackTag(sTracktag); uint32_t sy = FTImpl.Read32(REG_TRACKER); uint8_t key_detected = sTracktag.tag; int16_t TouchTag = sTagxy.y; if(key_detected>0) { key_deteted_cts++; if(key_detected<4) temp_Menu = key_detected; else temp_Menu = 0; Menu = 0; rotation_cts = 0; } if(key_detected==0) { if(key_deteted_cts>0&&key_deteted_cts<15) { if(!rotation_flag) Menu = temp_Menu; else rotation_flag = 0; } key_deteted_cts = 0; if(rotation_cts>100) { trackval+=0.5; rotation_flag = 1; } else rotation_cts++; } if(key_deteted_cts>15) { float tempval; currth = sTracktag.track; tempval = ((currth-prevth)); if((currth-prevth) > 32000) { tempval = 65536 - currth + prevth; } else if((currth-prevth) < -32000) { tempval = 65536 - prevth + currth; tempval = -tempval; } tempval = (tempval*360)/65536; rotation_flag = 0; if(prevth!=0) { trackval += tempval; } prevth = currth; rotation_cts = 0; } else { prevth=0; } FTImpl.DLStart(); /* Background Effect */ FTImpl.TagMask(1); FTImpl.Tag(4); FTImpl.Cmd_Gradient(0, 0, 0x000000, 0, 180, 0xFF0000); FTImpl.Begin(FT_POINTS); FTImpl.ColorA(50); FTImpl.ColorRGB(0,0,0); FTImpl.PointSize(250*16); FTImpl.Vertex2f((240)*16,-150); FTImpl.ColorA(60); FTImpl.ColorRGB(255,0,0); FTImpl.PointSize(135*16); FTImpl.Vertex2f((240)*16,-150); FTImpl.RestoreContext(); FTImpl.TagMask(0); /* Main Menu Items Display */ FTImpl.Begin(FT_BITMAPS); for(x=1;x<=NoItems;x++) { float tempval; int16_t theta = deg*x; tempval = deg*x + trackval+deg; theta = (int16_t)((int32_t)tempval%220); int16_t xoff = 200+(int16_t)(190*cos(theta*0.0174)); int16_t yoff = -20+(int16_t)(150*sin(theta*0.0174)); int16_t zinout = 310- yoff; FTImpl.BitmapHandle(0); FTImpl.Cell(x-1); FTImpl.BitmapTransformA(zinout); FTImpl.BitmapTransformE(zinout ); FTImpl.TagMask(1); FTImpl.Tag(x); FTImpl.BitmapSize(FT_BILINEAR, FT_BORDER, FT_BORDER, 256*80/zinout, 256*53/zinout ); FTImpl.Vertex2f(xoff*16,yoff*16); FTImpl.TagMask(0); } FTImpl.RestoreContext(); FTImpl.Cmd_Text(150,50,26,0,""Please select one of the Options""); for(x=1;x<=NoItems;x++) { float tempval1 ; int16_t theta = deg*x; tempval1 = deg*x + trackval+deg; theta = (int16_t)((int32_t)tempval1%220); int16_t xoff = 200+(int16_t)(190*cos(theta*0.0174)); int16_t yoff = -20+(int16_t)(150*sin(theta*0.0174)); zinout_f = 310-yoff; zinout_f = 255/zinout_f; int16_t zinout = 5+yoff+(int16_t)(53*zinout_f); strcpy_P(buffer, Array_MainMenu_name[x]); FTImpl.Cmd_Text(xoff+5,(zinout),16,FT_OPT_CENTERY,buffer); } FTImpl.DLEnd(); FTImpl.Finish(); }while(Menu==0); return Menu; } static struct { signed short dragprev; int vel; // velocity long base; // screen x coordinate, in 1/16ths pixel long limit; } scroller; static void scroller_init(uint32_t limit) { scroller.dragprev = -32768; scroller.vel = 0; // velocity scroller.base = 0; // screen x coordinate, in 1/16ths pixel scroller.limit = limit; } static void scroller_run() { sTagXY sTagxy; FTImpl.GetTagXY(sTagxy); signed short sy = sTagxy.y; if ((sy != -32768) & (scroller.dragprev != -32768)) { scroller.vel = (scroller.dragprev - sy) << 4; } else { int change = max(1, abs(scroller.vel) >> 5); if (scroller.vel < 0) scroller.vel += change; if (scroller.vel > 0) scroller.vel -= change; } scroller.dragprev = sy; scroller.base += scroller.vel; scroller.base = max(0, min(scroller.base, scroller.limit)); } uint8_t Order_list() { uint8_t dg_count=0,i=0,Key_counts=0; uint8_t z,Read_tag,temp = 0,TagVal,y=0,BHFlag=0; int16_t sy = 0, drag = 0,PlusTag = 101,MinusTag = 201,QtyNo=0,TotPrice=0,TotItems=0,PosY=0,Touch=0,IconCt=0,alpha=255; uint16_t yoff = 40; char MenuItemname[20]; sTagXY sTagxy; scroller_init((FT_DISPLAYHEIGHT*2)*16); do { FTImpl.GetTagXY(sTagxy); sy = sTagxy.y; //TagVal = sTagxy.tag; TagVal = FTImpl.Read(REG_TOUCH_TAG); Read_tag = Read_Keys(); if(TagVal != 0) Key_counts++; if(sy != -32768) { dg_count++; temp = Read_tag; } /*Move into the particular frame based on dragdt now 30pixels*/ if(sy==-32768) { dg_count = 0; drag = scroller.base>>4; } /*if tag in but still pendown take a scroller basevalue*/ else if(dg_count>15) { Read_tag = 0; temp = Read_tag; drag = scroller.base>>4; } if(drag >=282)drag = 282; if(Read_tag !='H' && Read_tag !='B'&& drag <= 282 && Key_counts > 15) { scroller_run(); } FTImpl.DLStart(); // start FTImpl.SaveContext(); FTImpl.Cmd_Gradient(0, 0, 0x000000, 0, 180, 0xFF0000); yoff = 50; yoff-=drag; TotPrice =0; TotItems=0; for(z=1,y=1;y<16,z<16;z++) { FTImpl.ColorRGB(255,255,255); if((CheckTag[z]!=0) && (StoreTag[z]>=0)) { PosY = (yoff+(y-1)*30); strcpy_P(MenuItemname, Item_Property[z].ItemName); FTImpl.Cmd_Text(20,PosY,27,FT_OPT_CENTERY,MenuItemname); if((Read_tag>0)&&(Read_tag == z)) { FTImpl.PlaySound(255,0x56); StoreTag[z]++; Read_tag = 0; Key_counts = 0; } if((Read_tag>0)&&(Read_tag==z+20)) { FTImpl.PlaySound(255,0x56); StoreTag[z]--; Read_tag = 0; Key_counts = 0; } if(StoreTag[z] < 0 )StoreTag[z] = 0; FTImpl.Cmd_Number(210,PosY,27,FT_OPT_CENTERY,StoreTag[z]); TotItems+= StoreTag[z]; FTImpl.TagMask(1); FTImpl.Tag(z); FTImpl.ColorRGB(0,0,0); FTImpl.Vertex2ii(165,PosY-18,30,'+'); FTImpl.Tag(z+20); FTImpl.Vertex2ii(245,PosY-25,31,'-'); FTImpl.TagMask(0); FTImpl.ColorRGB(255,255,255); uint8_t Value = StoreTag[z]* (pgm_read_byte(&Item_Property[z].ItemPriceinVal)); FTImpl.Cmd_Number(340,PosY,27,FT_OPT_CENTERY,Value); TotPrice+= Value; y++; } } // to reduce points in the cart if the total number of items is less than 15 if(TotItems < 15) { item_selected_counts = TotItems; } FTImpl.Cmd_Text(20,yoff+(y-1)*30,29,FT_OPT_CENTERY,""Total""); FTImpl.Cmd_Number(340,yoff+(y-1)*30,29,FT_OPT_CENTERY,TotPrice); FTImpl.ColorRGB(150,150,150); FTImpl.Begin(FT_RECTS); FTImpl.Vertex2f(10*16,5*16); FTImpl.Vertex2f(460*16,30*16); FTImpl.ColorRGB(0,0,0); FTImpl.Cmd_Text(30,15,27,FT_OPT_CENTERY,""Item""); FTImpl.Cmd_Text(190,15,27,FT_OPT_CENTERY,""Quantity""); FTImpl.Cmd_Text(340,15,27,FT_OPT_CENTERY,""Price($)""); FTImpl.Begin(FT_BITMAPS); FTImpl.TagMask(1); FTImpl.ColorA(0); FTImpl.Tag('T'); FTImpl.Cmd_Button(10,200,470,70,16,0,""""); FTImpl.RestoreContext(); FTImpl.TagMask(0); if(Read_tag == 'T'||IconCt ==0) { BHFlag =1; alpha = 255; } if(BHFlag == 1) { if((alpha>0)&&(IconCt > 150)&&(sy== -32768)) alpha--; Back_Home(alpha,1); } //FTImpl.Begin(FT_BITMAPS); FTImpl.TagMask(1); FTImpl.Tag('P'); FTImpl.Begin(FT_POINTS); FTImpl.ColorRGB(0,0,0); FTImpl.PointSize(22*16); FTImpl.Vertex2ii(430,243,0,0); FTImpl.ColorRGB(255,255,255); FTImpl.PointSize(16*16); FTImpl.Vertex2ii(430,243,0,0); FTImpl.ColorRGB(0,0,0); FTImpl.Cmd_Text(423,242,29,FT_OPT_CENTERY,""$""); FTImpl.End(); FTImpl.TagMask(0); if(Read_tag == 'P' && Key_counts > 15)i=1; if((i>0)&&( i <100)) { FTImpl.ColorRGB(0,0,0); FTImpl.Begin(FT_RECTS); FTImpl.Vertex2f(110*16,115*16); FTImpl.Vertex2f(410*16,180*16); FTImpl.ColorRGB(255,255,255); FTImpl.Cmd_Text(120,125,27,FT_OPT_CENTERY,""Please make payment at the counter.""); FTImpl.Cmd_Text(200,150,27,FT_OPT_CENTERY,""Thank You.""); } if(i>=100) i =0; FTImpl.DLEnd(); FTImpl.Finish(); if(i>=1)i++; IconCt++; if(Read_tag == 'P'||Read_tag == 255) Read_tag=0; }while((Read_tag==0)||(Read_tag < 50 )||Read_tag =='T' ); if(Read_tag == 'H') FTImpl.PlaySound(255,0x51); return Read_tag; } uint8_t ItemSelection(uint8_t NoItems,uint8_t start_cell/*char **Menu_items*/) { float zinout_f=0; uint8_t StCell=0,BHFlag=0; int16_t k,points_cdsX[16],points_cdsY[16]; uint8_t x,rotation_flag=0,Menu=0,temp_Menu=0,Read_tag,CartFlag=0,i,TouchTag=0; int16_t prevth=0,currth=0,key_deteted_cts=0,rotation_cts=0,deg = 0,theta,scroller_vel=0,sx=0,Touch,alpha=255,IconCt=0; char buffer[20]; sTagXY sTagxy; sTrackTag sTracktag; FTImpl.Cmd_Track(240,0,1,1,1); FTImpl.Cmd_Track(240,0,1,1,2); FTImpl.Cmd_Track(240,0,1,1,3); FTImpl.Cmd_Track(240,0,1,1,4); FTImpl.Cmd_Track(240,0,1,1,5); // for gradient FTImpl.Cmd_Track(240,0,1,1,90); FTImpl.Finish(); deg = 360/6; /* Calculate points position to place inside Cart */ points_cdsX[0] = 247; for(k=1; k<=15;k++) { points_cdsX[k] = points_cdsX[k-1] -5; points_cdsX[0] = 248; points_cdsX[6] = 248; points_cdsX[11] = 248; } for(k=1; k<=15;k++) { if(k < 6) points_cdsY[k] = 68; if((k >= 6) && (k < 11)) points_cdsY[k] = 64; if((k >= 11) && (k < 16)) points_cdsY[k] = 60; } StCell = start_cell; do { FTImpl.GetTrackTag(sTracktag); uint8_t key_detected = sTracktag.tag; TouchTag = FTImpl.Read( REG_TOUCH_TAG); FTImpl.GetTagXY(sTagxy); Touch = sTagxy.y; Read_tag = Read_Keys(); FTImpl.DLStart(); // start FTImpl.SaveContext(); FTImpl.Cmd_Gradient(0, 0, 0x000000, 0, 180, 0xFF0000); /* Background Effect */ FTImpl.Begin(FT_POINTS); FTImpl.ColorA(50); FTImpl.ColorRGB(0,0,0); FTImpl.TagMask(1); FTImpl.Tag(90); FTImpl.PointSize(250*16); FTImpl.Vertex2f((240)*16,-150); FTImpl.ColorA(60); FTImpl.ColorRGB(255,0,0); FTImpl.Tag(91); FTImpl.PointSize(135*16); FTImpl.Vertex2f((240)*16,-150); FTImpl.TagMask(0); FTImpl.RestoreContext(); if(key_pressed > 0 && key_pressed < 20) description_no = key_pressed+item_no; if(key_detected>0 && key_detected!='T') { key_deteted_cts++; if(key_detected=0&&key_deteted_cts<15) { if(!rotation_flag) Menu = temp_Menu; else rotation_flag = 0; } key_deteted_cts = 0; if(rotation_cts>100) { //trackval++; trackval+=0.5; item_selection=0; rotation_flag = 1; } else rotation_cts++; } if(key_deteted_cts>15 && item_selection==0&&TouchTag!=91) { float tempval; //currth = (ssy>>16); currth = sTracktag.track; tempval = ((currth-prevth)); if((currth-prevth) > 32000) { tempval = 65536 - currth + prevth; } else if((currth-prevth) < -32000) { tempval = 65536 - prevth + currth; tempval = -tempval; } tempval = (tempval*360)/65536; rotation_flag = 0; //currth = (sy>>16)/182; if(prevth!=0) { //trackval += (currth-prevth); trackval += tempval; } prevth = currth; rotation_cts = 0; } else { prevth=0; } if(key_detected=='T') { alpha = 255; IconCt = 0; } if(key_pressed >0 && key_pressed <6) i = key_pressed; /* To avoid items being put in cart even after PenUp */ if(Touch == -32768) i=0; if(i!=0 && key_pressed == 'S') item_selection=1; else item_selection =0; if(item_selection==1 && key_pressed=='S') { item_selection = 0; FTImpl.PlaySound(255,0x54); if(item_selected_counts<17) { StoreTag[description_no-1]++; CheckTag[description_no-1] =1; item_selected_counts++; } key_pressed = 0; } FTImpl.SaveContext(); /* Move Images in a circular path */ FTImpl.Begin(FT_BITMAPS); start_cell = StCell; for(x=1;x<=NoItems;x++) { float tempval; theta = deg*x; tempval = deg*x + trackval+deg; if(NoItems == 4) theta = (int16_t)((int32_t)tempval%250); else theta = (int16_t)((int32_t)tempval%300); int16_t xoff = 200+(int16_t)(190*cos(theta*0.0174)); int16_t yoff = -20+(int16_t)(150*sin(theta*0.0174)); int16_t zinout = 310- yoff; FTImpl.BitmapHandle(0); FTImpl.Cell(start_cell); FTImpl.TagMask(1); FTImpl.Tag(x); FTImpl.BitmapTransformA(zinout); FTImpl.BitmapTransformE(zinout); FTImpl.BitmapSize(FT_BILINEAR, FT_BORDER, FT_BORDER, 256*80/zinout, 256*53/zinout ); FTImpl.Vertex2f(xoff*16,yoff*16); FTImpl.TagMask(0); start_cell++; } /* Set the bitmap properties to default, so it doesnt interfere with text display */ FTImpl.RestoreContext(); for(x=1;x<=NoItems;x++) { float tempval1 ; theta = deg*x; tempval1 = deg*x + trackval+deg; if(NoItems == 4) theta = (int16_t)((int32_t)tempval1%250); else theta = (int16_t)((int32_t)tempval1%300); int16_t xoff = 200+(int16_t)(190*cos(theta*0.0174)); int16_t yoff = -20+(int16_t)(150*sin(theta*0.0174)); zinout_f = 310-yoff; zinout_f = 255/zinout_f; int16_t zinout = 5+yoff+(int16_t)(53*zinout_f); if(item_no ==1) { strcpy_P(buffer, Array_Beverage_name[x]); FTImpl.Cmd_Text(xoff+5,(zinout),16,FT_OPT_CENTERY,buffer); } else if (item_no == 5) { strcpy_P(buffer, Array_Pastry_name[x]); FTImpl.Cmd_Text(xoff+5,(zinout),16,FT_OPT_CENTERY,buffer); } else if (item_no == 10) { strcpy_P(buffer, Array_Frappe_name[x]); FTImpl.Cmd_Text(xoff+5,(zinout),16,FT_OPT_CENTERY,buffer); } } FTImpl.Begin(FT_BITMAPS); FTImpl.TagMask(1); FTImpl.ColorA(0); FTImpl.Tag('T'); FTImpl.Cmd_Button(10,200,470,70,16,0,""""); FTImpl.RestoreContext(); FTImpl.TagMask(0); if(Read_tag == 'T'||IconCt ==0) { BHFlag =1; alpha = 255; } if(BHFlag == 1) { if((alpha>0)&&(IconCt > 150)&&(Touch== -32768)) alpha--; Back_Home(alpha,0); } sx = -10; /* When menu option is selected, enable point to move to cart */ if((temp_Menu >0)&&(temp_Menu < 6)) { FTImpl.ColorRGB(0,255,0); FTImpl.Begin(FT_POINTS); FTImpl.PointSize(5*16); FTImpl.GetTagXY(sTagxy); sx = sTagxy.x; int16_t sy = sTagxy.y; if(sx != -32768 && sy != -32768) FTImpl.Vertex2f(sx*16,sy*16); } if(item_selected_counts >=16)item_selected_counts = 15; /* place points inside cart according to the number of items selected */ if(item_selected_counts>0) { FTImpl.ColorRGB(0,255,0); FTImpl.Begin(FT_POINTS); FTImpl.PointSize(3*16); for(k=1;k<=item_selected_counts;k++) { FTImpl.Vertex2f(points_cdsX[k]*16,points_cdsY[k]*16) ; } } /* PLace Cart and change cart color when the menu item is selected */ FTImpl.Begin(FT_BITMAPS); if((temp_Menu >0)&&(temp_Menu < 6)) FTImpl.ColorRGB(255,255,0); else FTImpl.ColorRGB(255,255,255); FTImpl.Vertex2ii(CartX,40,3,0); /* Draw points with only alpha and assign Cart tag 'S' to it. This is done to get proper tag effect when cart is touched */ FTImpl.Begin(FT_POINTS); FTImpl.PointSize(20*16); FTImpl.ColorA(0); FTImpl.TagMask(1); FTImpl.Tag('S'); FTImpl.Vertex2f(230*16,50*16); FTImpl.TagMask(0); FTImpl.DLEnd(); FTImpl.Finish(); /* Move the cart from the corner of the screen to the centre only at the beginning. Then enablr CartFlag to 1.*/ if((CartX> 215)&& (CartFlag==0)) CartX-=5; if(CartX == 215) CartFlag = 1; /* Cancel Background tag to zero. so that when value being returned is Menu item value */ if(Read_tag == 90) Read_tag=0; if(key_deteted_cts > 15) { Menu =0; temp_Menu = 0; } if((Read_tag == 'B') || (Read_tag == 'H')) { FTImpl.PlaySound(255,0x51); Menu = 'H'; } if(Read_tag == 'O')Menu = 'O'; if(Menu!=0) return Menu; IconCt++; }while(1); // while((Menu ==0)&&(Menu!='B')&&(Menu != 'O')); i=0;// clear the item which has been selected but not dropped in the cart return Menu; } uint8_t Description(uint8_t description,uint8_t item,uint8_t Noitems) { char MenuItemName[100]; uint8_t Read_tag = 0,BHFlag=0; sTagXY sTagxy; uint16_t alpha=255,IconCt=0; int16_t Touch; do { FTImpl.GetTagXY(sTagxy); Touch = sTagxy.y; Read_tag = Read_Keys(); FTImpl.DLStart(); // start FTImpl.Clear(1,1,1); FTImpl.SaveContext(); FTImpl.BitmapHandle(0); FTImpl.Cell(description+1); FTImpl.BitmapSize(FT_BILINEAR,FT_BORDER,FT_BORDER,imw*2,imh*2); FTImpl.Cmd_Gradient(0, 0, 0x000000, 0, 180, 0xFF0000); FTImpl.Begin(FT_BITMAPS); FTImpl.BitmapTransformA(128) ; FTImpl.BitmapTransformE(128) ; FTImpl.Vertex2ii(30,80,0,description+1); FTImpl.RestoreContext(); strcpy_P(MenuItemName, Item_Property[description-1].ItemName); FTImpl.Cmd_Text(30,30,25,0,MenuItemName); strcpy_P(MenuItemName, Item_Property[description-1].ItemPrice); FTImpl.Cmd_Text(370,85,21,0,MenuItemName); strcpy_P(MenuItemName, Item_Property[description-1].ItemDescription); FTImpl.Cmd_Text(30,190,18,0,MenuItemName); FTImpl.Begin(FT_BITMAPS); FTImpl.TagMask(1); FTImpl.ColorA(0); FTImpl.Tag('T'); FTImpl.Cmd_Button(10,200,470,70,16,0,""""); FTImpl.RestoreContext(); FTImpl.TagMask(0); if(Read_tag == 'T'||IconCt ==0) { BHFlag =1; alpha = 255; } if(BHFlag == 1) { if((alpha>0)&&(IconCt > 150)&&(Touch== -32768)) alpha--; Back_Home(alpha,0); } FTImpl.DLEnd(); FTImpl.Finish(); IconCt++; } while((Read_tag==0)|| (Read_tag =='T')||(Read_tag == 255)); if(Read_tag == 'H') FTImpl.PlaySound(255,0x51); return Read_tag; } void load_inflate_image(uint8_t address,char* name) { uint8_t ibuff[512]; FT_SDFile imfile; if(FtSd.OpenFile(imfile,name)){ Serial.print(""Unable to open: ""); Serial.println(name); } else{ FTImpl.WriteCmd(CMD_INFLATE); FTImpl.WriteCmd(address*1024L); while (imfile.Offset < imfile.Size) { uint16_t n = min(512, imfile.Size - imfile.Offset); n = (n + 3) & ~3; // force 32-bit alignment imfile.ReadSector(ibuff); FTImpl.WriteCmd(ibuff, n);//alignment is already taken care by this api } } } uint8_t Menu_prp = 0; void Logo_Intial_setup(PROGMEM struct logoim sptr[],uint8_t num ) { char buffer1[10]; for(uint8_t z=0;z>1,FT_DISPLAYHEIGHT>>1,29,FT_OPT_CENTER,""STORAGE DEVICE NOT FOUND""); FTImpl.DLEnd(); FTImpl.Finish(); delay(5000); } } void setup() { /* Initialize serial print related functionality */ Serial.begin(9600); /*Initialize the SD object. Screen error message can only be displayed when the FT801 is ready*/ sd_present = FtSd.Init(); /* Set the Display Enable pin*/ Serial.println(""--Start Application--""); if(BootupConfigure()) { //error case - do not do any thing } else { CheckStorageDevicePrecence(); char buffer[20]; sTagXY sTagxy; Info(); trackval = 0; Logo_Intial_setup(Main_Icons,7); while(1) { uint8_t exit = 0; uint8_t Menu = Selection_Menu(3,1); do{ FTImpl.GetTagXY(sTagxy); int16_t Touch = sTagxy.x; item_selection = 0; FTImpl.PlaySound(255,0x51); do { FTImpl.DLStart(); /* Based on main menu return value, choose different submenus */ switch(Menu) { case 1: FTImpl.DLEnd(); FTImpl.Finish(); item_no =1; exit = ItemSelection(4,3); break; case 2: FTImpl.DLEnd(); FTImpl.Finish(); item_no =5; exit = ItemSelection(5,7); break; case 3: FTImpl.DLEnd(); FTImpl.Finish(); item_no =10; exit = ItemSelection(4,12); break; } }while(exit==0); if((exit >0)&& (exit <6) &&(Touch == -32768)) { description_no = exit+item_no; if(description_no < 80) { FTImpl.PlaySound(255,0x51); exit= Description(description_no,exit,item_no); } } if(exit == 'O') { FTImpl.PlaySound(255,0x51); exit = Order_list(); } }while(exit!='H'); } FTImpl.Exit(); /* Safely close all opened handles */ Serial.println(""--End Application--""); } } void loop() { } /* Nothing beyond this */ ",12113,False,2373.724295248245,median "/* * THIS CODE WAS WRITTEN FOR TESTING AND RUNNING A HOME MADE VENTILATION DEVICE. * IT IS NOT TESTED FOR SAFETY AND NOT APPROVED FOR USE IN ANY CLINICAL , MEDICAL OR COMERCIAL DEVICE. * IT IS NOT APPROVED BY ANY REGULAOTRY AUTHORITY * USE ONLY AT YOUR OWN RISK */ /* * potentiometers calibration method: * 1) place the rate pot at most left or right positions * 2) press Test for 5 seconds * 3) follow instructions on screen * * Arm position calibration method: * 1) place the rate pot near its center * 2) press Test for 5 seconds * 3) follow instructions on screen (use the Rate pos to move motor) */ // system configuration #define full_configuration 1 // 1 is the default - full system. 0 is for partial system - potentiometer installed on pulley, no potentiometers, ... #define pressure_sensor_available 1 #define central_monitor_system 0 // 1 - send unique ID for 10 seconds upon startup, 0 - dont // options for display and debug via serial com #define send_to_monitor 0 // 1 = send data to monitor 0 = dont #define telemetry 1 // 1 = send telemtry fro debug // UI #define deltaUD 5 // define the value chnage per each button press for the non-potentiometer version only #define pot_alpha 0.85 // filter the pot values // clinical #define perc_of_lower_volume 50.0 // % of max press - defines lower volume #define perc_of_lower_volume_display 33.0 // % of max press - defines lower volume to display when reaching the real lower volume #define wait_time_after_resistance 3 // seconds to wait before re-attempt to push air after max pressure was achieved #define max_pres_disconnected 10 // if the max pressure during breathing cycle does not reach this value - pipe is disconnected #define insp_pressure_default 40 // defualt value - hold this pressure while breathing - the value is changed if INSP_Pressure potentiometer is inatalled #define safety_pres_above_insp 10 // defines safety pressure as the inspirium pressure + this one #define safety_pressure 70 // quicly pullnack arm when reaching this pressure in cm H2O #define speed_multiplier_reverse 2 // factor of speeed for releasing the pressure (runs motion in reverse at X this speed #define smear_factor 0 // 0 to do all cycle in 2.5 seconds and wait for the rest 1 to ""smear"" the motion profile on the whole cycle time #define patient_triggered_breath 1 // 1 = trigger new breath in case of patient inhale during the PEEP plateu #define delta_pres_for_patient_inhale 5 // in cmH2O #define alpha_pres 0.98 // used to average the pressure during the PEEP plateu #if (full_configuration==0) // no pot for UI, feedback pot on pulley #define LCD_available 0 #define pres_pot_available 0 // 1 if the system has 3 potentiometer and can control the inspirium pressure #define pin_SW2 7 // breath - On / Off / cal #define pin_TST 2 // test mode - not in use #define pin_LED_AMP 11 // amplitude LED #define pin_LED_FREQ 9 // frequency LED #define pin_LED_Fail 10 // FAIL and calib blue LED #define pin_USR 12 // User LED #define pin_FD 4 // freq Down #define pin_FU 5 // freq Up #define pin_AD 8 // Amp Down #define pin_AU 6 // Amp Up #define curr_sense 1 #define control_with_pot 0 // 1 = control with potentiometers 0 = with push buttons #define F 0.6 // motion control feed forward #define KP 0.2 // motion control propportional gain #define KI 2 // motion control integral gain #define integral_limit 6 // limits the integral of error #define f_reduction_up_val 0.65 // reduce feedforward by this factor when moving up #endif #if (full_configuration==1) // feedback pot on arm, potentiometers for UI #define LCD_available 1 #define pres_pot_available 1 // 1 if the system has 3 potentiometer and can control the inspirium pressure #define pin_SW2 4 // breath - On / Off / cal #define pin_TST 2 // test mode - not in use #define pin_RST 5 // reset alarm - not in use #define pin_LED_AMP 13 // amplitude LED #define pin_LED_FREQ 13 // frequency LED #define pin_LED_Fail 10 // FAIL and calib blue LED #define pin_USR 9 // User LED #define pin_FD 13 // freq Down #define pin_FU 13 // freq Up #define pin_AD 13 // Amp Down #define pin_AU 13 // Amp Up #define curr_sense 0 #define control_with_pot 1 // 1 = control with potentiometers 0 = with push buttons #define F 5 // motion control feed forward #define KP 2 // motion control propportional gain #define KI 0 // motion control integral gain #define integral_limit 5 // limits the integral of error #define f_reduction_up_val 0.85 // reduce feedforward by this factor when moving up #endif // other Arduino pins alocation #define pin_PWM 3 #define pin_POT 0 // analog pin of potentiometer #define pin_CUR 1 // analog pin of current sense #define pin_AMP 2 // analog pin of amplitude potentiometer control #define pin_FRQ 3 // analog pin of amplitude frequency control #define pin_PRE 6 // analog pin of pressure control // Talon SR or SPARK controller PWM settings (""angle"" for Servo library) #define PWM_mid 93 // was 93 until 3/4 mid value for PWM 0 motion - higher pushes up #define PWM_max 85 #define PWM_min -85 #define max_allowed_current 100 // 10 Amps // motion control parameters #define cycleTime 5 // milisec #define alpha 0.95 // filter for current apatation - higher = stronger low pass filter #define profile_length 500 // motion control profile length #define motion_control_allowed_error 30 // % of range // motor and sensor definitions #define invert_mot 1 #define invert_pot 0 #include #include #include #include #include #include ""ArduinoUniqueID.h"" Servo motor; LiquidCrystal_I2C lcd(0x27, 16, 2); // Set the LCD address to 0x27 for a 16 chars and 2 line display #if (pressure_sensor_available==1) MS5803 sparkfumPress(ADDRESS_HIGH); #endif // Motion profile parameters // pos byte 0...255 units: promiles of full range // vel int 0...255 ZERO is at 128 , units: pos change per 0.2 sec // profile data: press 250 points (50%) relase 250 byte pos[profile_length]={0,0,0,0,1,1,1,2,2,3,3,4,5,5,6,7,8,9,10,11,12,14,15,16,17,19,20,22,23,25,27,28,30,32,33,35,37,39,41,43,45,47,49,51,53,55,57,59,62,64,66,68,71,73,75,78,80,82,85,87,90,92,95,97,100,102,105,107,110,112,115,117,120,122,125,128,130,133,135,138,140,143,145,148,150,153,155,158,160,163,165,168,170,173,175,177,180,182,184,187,189,191,193,196,198,200,202,204,206,208,210,212,214,216,218,220,222,223,225,227,228,230,232,233,235,236,238,239,240,241,243,244,245,246,247,248,249,250,250,251,252,252,253,253,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,254,253,253,252,252,251,250,250,249,248,248,247,246,245,244,243,242,241,239,238,237,236,234,233,232,230,229,227,225,224,222,220,219,217,215,213,211,209,207,205,203,201,199,197,195,193,191,188,186,184,182,179,177,175,172,170,167,165,163,160,158,155,153,150,148,145,143,140,138,135,133,130,128,125,123,120,118,115,113,110,108,105,103,101,98,96,94,91,89,87,85,83,80,78,76,74,72,70,68,66,65,63,61,59,58,56,54,53,51,50,48,47,46,45,43,42,41,40,39,38,37,36,35,34,33,32,31,31,30,29,28,27,26,26,25,24,23,22,22,21,20,20,19,18,18,17,16,16,15,15,14,14,13,13,12,12,11,11,10,10,9,9,9,8,8,7,7,7,6,6,6,5,5,5,5,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; byte vel[profile_length]={129,129,130,130,131,131,132,133,133,134,135,135,136,136,137,138,138,138,139,140,140,141,141,141,142,142,143,143,144,144,145,145,145,146,146,146,147,147,147,148,148,148,149,149,149,150,150,150,150,151,151,151,151,151,152,152,152,152,152,152,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,152,152,152,152,152,152,151,151,151,151,151,150,150,150,150,149,149,149,148,148,148,147,147,147,146,146,146,145,145,145,144,144,143,143,142,142,141,141,141,140,140,139,138,138,138,137,136,136,135,135,134,133,133,132,131,131,130,130,129,129,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,127,127,126,126,126,125,125,124,124,123,123,122,122,121,121,120,120,120,119,118,118,118,117,117,116,116,115,115,115,114,114,113,113,113,112,112,111,111,111,110,110,109,109,109,108,108,108,107,107,107,107,106,106,106,105,105,105,105,105,104,104,104,104,104,104,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,104,104,104,104,104,105,105,105,105,105,106,106,106,107,107,107,108,108,108,109,109,109,110,110,111,111,112,112,113,113,114,114,114,115,116,116,116,117,117,118,118,118,118,118,119,119,119,119,119,119,119,120,120,120,120,120,120,120,121,121,121,121,121,121,121,122,122,122,122,122,122,122,123,123,123,123,123,123,123,124,124,124,124,124,124,124,124,124,125,125,125,125,125,125,125,125,125,126,126,126,126,126,126,126,126,126,126,126,126,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}; byte FD,FU,AD,AU,FDFB,FUFB,ADFB,AUFB,SW2,SW2FB,TSTFB,RST, run_profile,LED_status,USR_status,blueOn,calibrated=0, calibON, numBlinkFreq; int A_pot,prevA_pot, A_current, Compression_perc=80, prev_Compression_perc, A_rate, A_comp, A_pres; int motorPWM,index=0, prev_index,i, wait_cycles,cycle_number, cycles_lost,index_last_motion; unsigned int max_arm_pos=600, min_arm_pos=500; float wanted_pos, wanted_vel_PWM, range, range_factor, profile_planned_vel, planned_vel, integral, error, f_reduction_up ; unsigned long lastSent,lastIndex, lastUSRblink,last_TST_not_pressed,lastBlue,start_wait, last_sent_data, last_read_pres,start_disp_pres; byte monitor_index=0, BPM=14,prev_BPM, in_wait, failure, send_beep, wanted_cycle_time, disconnected=0,high_pressure_detected=0, motion_failure=0, sent_LCD, hold_breath, safety_pressure_detected; byte counter_ON,counter_OFF,SW2temp,insp_pressure,prev_insp_pressure, safety_pressure_counter, no_fail_counter,TST, counter_TST_OFF,counter_TST_ON,TSTtemp; float pot_rate, pot_pres, pot_comp,avg_pres; int pressure_abs,breath_cycle_time, max_pressure=0 , prev_max_pressure=0, min_pressure=100, prev_min_pressure=0, index_to_hold_breath,pressure_baseline; int comp_pot_low=0,comp_pot_high=1023,rate_pot_low=0,rate_pot_high=1023,pres_pot_low=0,pres_pot_high=1023; void setup() { pinMode (pin_PWM,OUTPUT); pinMode (pin_FD,INPUT_PULLUP); pinMode (pin_FU,INPUT_PULLUP); pinMode (pin_AD,INPUT_PULLUP); pinMode (pin_AU,INPUT_PULLUP); pinMode (pin_SW2,INPUT_PULLUP); pinMode (pin_TST,INPUT_PULLUP); pinMode (pin_LED_AMP,OUTPUT); pinMode (pin_LED_FREQ,OUTPUT); pinMode (pin_LED_Fail,OUTPUT); pinMode (pin_USR,OUTPUT); motor.attach(pin_PWM); Serial.begin (115200); Wire.begin(); #if (pressure_sensor_available==1) { sparkfumPress.reset(); sparkfumPress.begin(); pressure_baseline = int(sparkfumPress.getPressure(ADC_4096)); } #endif if (LCD_available){ lcd.begin(); // initialize the LCD lcd.backlight(); // Turn on the blacklight and print a message. lcd.setCursor(0, 0); lcd.print(""AmvoVent ""); lcd.setCursor(0, 1); lcd.print(""1690.108 ""); } if (central_monitor_system==1) { for (i = 0; i < 100; i++) {UniqueIDdump(Serial); delay(100); } // for IAI monitor run for 100 cycles } run_profile=0; EEPROM.get(4, min_arm_pos); delay(20); EEPROM.get(8, max_arm_pos); delay(20); EEPROM.get(12, comp_pot_low); delay(20); EEPROM.get(16, comp_pot_high); delay(20); EEPROM.get(20, rate_pot_low); delay(20); EEPROM.get(24, rate_pot_high); delay(20); EEPROM.get(28, pres_pot_low); delay(20); EEPROM.get(32, pres_pot_high); delay(20); if (min_arm_pos>=0 && min_arm_pos<1024 && max_arm_pos>=0 && max_arm_pos<1024) calibrated = 1; insp_pressure=insp_pressure_default; lcd.backlight(); // Turn on the blacklight and print a message. } void loop() { read_IO (); run_profile_func (); find_min_max_pressure(); if (millis()-last_sent_data>13) { if (telemetry) print_tele(); if (send_to_monitor) send_data_to_monitor(); last_sent_data=millis(); } if (TST==0) last_TST_not_pressed=millis(); if (millis()-last_TST_not_pressed>5000) if (pot_rate > 200 && pot_rate < 800) calibrate_arm_range(); else calibrate_pot_range(); if (calibrated ==0) { run_profile=0; calibrate_arm_range(); } } void run_profile_func() { if (run_profile) { if (millis()-lastIndex >= wanted_cycle_time) // do when cycle time was reached { cycles_lost = (millis()-lastIndex)/wanted_cycle_time-1; cycles_lost=limit_int(cycles_lost,0,15); lastIndex=millis(); // last start of cycle time range = range_factor*(max_arm_pos - min_arm_pos); // range of movement in pot' readings wanted_pos = float(pos[index])*range/255 + min_arm_pos; // wanted pos in pot clicks profile_planned_vel = (float(vel[index+1]) - 128.01)*range/255; // in clicks per 0.2 second if (hold_breath==1 && safety_pressure_detected==0) { if (wanted_pos <= float (A_pot) || index ==0) hold_breath=0; planned_vel=0; integral = 0; wanted_pos = float (A_pot); // hold current position } else { planned_vel= profile_planned_vel; } if (safety_pressure_detected) planned_vel=-speed_multiplier_reverse*planned_vel; // to do the revese in case high pressure detected error = wanted_pos-float(A_pot); if (100*abs(error)/(max_arm_pos - min_arm_pos)>motion_control_allowed_error && cycle_number>1) motion_failure=1; integral += error*float(wanted_cycle_time)/1000; if (integral> integral_limit) integral= integral_limit; if (integral<-integral_limit) integral=-integral_limit; if (index<2 || index ==220 ) integral=0; // zero the integral accumulator at the beginning of cycle and movement up if (planned_vel<0) f_reduction_up = f_reduction_up_val; else f_reduction_up=1; // reduce f for the movement up wanted_vel_PWM = F*planned_vel*f_reduction_up + KP*error+KI*integral; // PID correction wanted_vel_PWM = wanted_vel_PWM*float(cycleTime)/float(wanted_cycle_time); // reduce speed for longer cycles if (safety_pressure_detected) {index-=speed_multiplier_reverse*(1+cycles_lost); } // run in reverse if high pressure was detected if (index<0) { if(safety_pressure_detected==1) safety_pressure_counter+=1; // count the number of cases reaching safety pressure safety_pressure_detected=0; wait_cycles=200*wait_time_after_resistance; index=profile_length-2; // set index to the point of waiting } // stop the reverse when reching the cycle start point if (in_wait==0) index +=(1+cycles_lost); // advance index while not waiting at the end of cycle if (patient_triggered_breath==1) // detect drop in presure during the PEEP plateu and trigger breath based on this { if (in_wait==1 || (index>profile_length/2 && (A_pot delta_pres_for_patient_inhale) start_new_cycle(); // start new breath cycle if patient tries to inhale durint the PEEP plateu avg_pres = avg_pres * alpha_pres + (1-alpha_pres) * float (pressure_abs); } else { avg_pres=pressure_abs; } } if (index >= (profile_length-2)) // wait for the next cycle to begin in this point -> 2 points befoe the last cycle index { if (sent_LCD==0) {sent_LCD=1; display_LCD();} if (millis()-start_wait < breath_cycle_time) { index = profile_length-2; in_wait=1; } // still need to wait ... else { start_new_cycle(); } // time has come ... start from index = 0 } blink_user_led (); } calc_failure(); } else // not running profile { wanted_vel_PWM=0; if (USR_status) {if (millis()-lastUSRblink>10) {USR_status=0; lastUSRblink=millis(); LED_USR(0);}} else {if (millis()-lastUSRblink>490) {USR_status=1; lastUSRblink=millis(); LED_USR(1);}} cycle_number=0; failure=0; delay (1); } set_motor_PWM (wanted_vel_PWM); } void start_new_cycle() { index =0; cycle_number+=1; start_wait=millis(); in_wait=0; send_beep=1; sent_LCD=0; high_pressure_detected=0; } int limit_int (int val,int low, int high) { int lim_val; lim_val=val; if (valhigh) lim_val=high; return (lim_val); } int range_pot (int val,int low, int high) { int new_val; new_val=int( long (val-low)* long(1023)/(high-low)); new_val=limit_int(new_val,0,1023); return (new_val); } void find_min_max_pressure() { if (max_pressurepressure_abs) min_pressure=pressure_abs; // find the min pressure in cycle if (index > profile_length-10 && index < profile_length-5) { prev_min_pressure = min_pressure; prev_max_pressure = max_pressure; } if (index >= profile_length-5) { max_pressure=0; min_pressure=999; } } void blink_user_led() { if (high_pressure_detected || safety_pressure_detected) // blink LED fast { if (USR_status) { if (millis()-lastUSRblink>20) {USR_status=0; lastUSRblink=millis(); LED_USR(0);}} else {if (millis()-lastUSRblink>80) {USR_status=1; lastUSRblink=millis(); LED_USR(1);}} } else // not in failure - blink LED once per cycle { if (index>0.1*profile_length) LED_USR(0); else LED_USR(1); } } void calc_failure() { if (prev_max_pressure < max_pres_disconnected && cycle_number>2) disconnected=1; else disconnected=0; // tube was disconnected if (pressure_abs>insp_pressure && hold_breath==0 && profile_planned_vel>0) { high_pressure_detected=1; hold_breath=1; index_to_hold_breath=index; } // high pressure detected if (pressure_abs>safety_pressure && profile_planned_vel>0) safety_pressure_detected=1; if (pressure_abs>insp_pressure+safety_pres_above_insp && profile_planned_vel>0) safety_pressure_detected=1; if (index==0 && prev_index!=0 && failure==0 && safety_pressure_detected==0) no_fail_counter+=1; if (index==0) failure =0; if (disconnected) failure =1; if (safety_pressure_detected && safety_pressure_counter>=1) { failure=2; safety_pressure_counter=1; } if (motion_failure) failure =3; if (disconnected==1 || motion_failure==1 || safety_pressure_detected==1) {blinkBlue (1); no_fail_counter=0;} else {LED_FAIL(0); } if (no_fail_counter>=3) safety_pressure_counter=0; if (no_fail_counter>=100) no_fail_counter=100; prev_index= index; } void display_text_calib (char *message) { lcd.clear(); lcd.setCursor(0, 0); lcd.print(message); lcd.setCursor(0, 1); lcd.print(""Then press Test""); } void display_pot_during_calib() { if (millis()-lastUSRblink>100) {lcd.setCursor(12, 0); lcd.print(A_pot); lcd.print("" ""); lastUSRblink=millis();} } void calibrate_arm_range() // used for calibaration of motion range { byte progress; LED_USR(1); calibON = 1; while (TST==1) {read_IO (); blinkBlue (2); } progress=0; TSTFB=0; delay(30); display_text_calib (""Set Upper""); while (progress==0) // step 1 - calibrate top position { blinkBlue (2); read_IO (); delay(3); if (TST ==0 && TSTFB==1) progress=1; set_motor_PWM (0); display_pot_during_calib(); } TSTFB=0; delay(30); progress=0; LED_USR(0); read_IO (); min_arm_pos=A_pot; display_text_calib (""Set Lower""); while (progress==0) // step 2 - calibrate bottom position { blinkBlue (4); read_IO (); delay(3); if (TST ==0 && TSTFB==1) progress=1; set_motor_PWM (0); display_pot_during_calib(); } TSTFB=0; delay(30); progress=0; LED_USR(1); read_IO (); max_arm_pos=A_pot; display_text_calib (""Move to Safe""); while (progress==0) // step 3 - manual control for positioning back in safe location { blinkBlue (8); read_IO (); delay(3); if (TST ==0 && TSTFB==1) progress=1; set_motor_PWM (0); display_pot_during_calib(); } EEPROM.put(4, min_arm_pos); delay(200); EEPROM.put(8, max_arm_pos); delay(200); SW2FB=0; last_TST_not_pressed=millis(); run_profile=0; calibrated=1; calibON = 0; display_LCD(); } void calibrate_pot_range() // used for calibaration of potentiometers { byte progress; LED_USR(1); calibON = 2; while (TST==1) {read_IO (); blinkBlue (2); } progress=0; TSTFB=0; delay(30); display_text_calib (""Pot to left pos""); while (progress==0) // step 1 - calibrate top position { blinkBlue (2); read_IO (); delay(5); if (TST ==0 && TSTFB==1) progress=1; } TSTFB=0; delay(30); progress=0; LED_USR(0); comp_pot_low=analogRead (pin_AMP); rate_pot_low=analogRead (pin_FRQ); pres_pot_low=analogRead (pin_PRE); display_text_calib (""Pot to right pos""); while (progress==0) // step 2 - calibrate bottom position { blinkBlue (4); read_IO (); delay(5); if (TST ==0 && TSTFB==1) progress=1; } TSTFB=0; delay(30); progress=0; LED_USR(1); comp_pot_high=analogRead (pin_AMP); rate_pot_high=analogRead (pin_FRQ); pres_pot_high=analogRead (pin_PRE); EEPROM.put(12, comp_pot_low); delay(100); EEPROM.put(16, comp_pot_high); delay(100); EEPROM.put(20, rate_pot_low); delay(100); EEPROM.put(24, rate_pot_high); delay(100); EEPROM.put(28, pres_pot_low); delay(100); EEPROM.put(32, pres_pot_high); delay(100); SW2FB=0; last_TST_not_pressed=millis(); run_profile=0; calibrated=1; calibON = 0; display_LCD(); } void display_LCD() // here function that sends data to LCD { if (LCD_available) { if (calibON==0) { lcd.clear(); lcd.setCursor(0, 0); lcd.print(""BPM:""); lcd.print(byte(BPM)); lcd.print("" Dep:""); lcd.print(byte(Compression_perc)); lcd.print(""%""); lcd.setCursor(0, 1); if (failure ==0) { if (millis()- start_disp_pres<2000) { lcd.setCursor(0, 1); lcd.print(""Insp. Press. :""); lcd.print(byte(insp_pressure));} else {lcd.print(""Pmin:""); lcd.print(byte(prev_min_pressure)); lcd.print("" Pmax:""); lcd.print(byte(prev_max_pressure));} } if (failure ==1) lcd.print(""Pipe Disconnect""); if (failure ==2) lcd.print(""High Pressure""); if (failure ==3) lcd.print(""Motion Fail""); } } } void reset_failures() { motion_failure=0; index_last_motion=index; } void set_motor_PWM (float wanted_vel_PWM) { if (abs(A_pot-prevA_pot)>0 || abs(wanted_vel_PWM)<15) index_last_motion=index; //if (index-index_last_motion>10 || A_pot==0 || A_pot==1023) motion_failure=1; if (calibON==1 ) wanted_vel_PWM=read_motion_for_calib(); // allows manual motion during calibration if (invert_mot) wanted_vel_PWM=-wanted_vel_PWM; if (curr_sense) {if (A_current>max_allowed_current) wanted_vel_PWM=0;} if (motion_failure==1 && calibON==0) wanted_vel_PWM=0; if (wanted_vel_PWM > 0) wanted_vel_PWM+=3; // undo controller dead band if (wanted_vel_PWM < 0) wanted_vel_PWM-=3; // undo controller dead band if (wanted_vel_PWM > PWM_max) wanted_vel_PWM= PWM_max; // limit PWM if (wanted_vel_PWM < PWM_min) wanted_vel_PWM= PWM_min; // limit PWM motorPWM = PWM_mid + int( wanted_vel_PWM ); motor.write(motorPWM); } int read_motion_for_calib() { int wanted_cal_PWM; if (control_with_pot) { if (pot_rate>750) wanted_cal_PWM=(pot_rate-750)/15; if (pot_rate<250) wanted_cal_PWM=(pot_rate-250)/15; if (pot_rate>=250 && pot_rate<=750) wanted_cal_PWM=0; if (SW2==1) wanted_cal_PWM= -12; // if (RST==1) wanted_cal_PWM= 12; // Serial.println(wanted_cal_PWM); } else { wanted_cal_PWM=0; if (FD==1) wanted_cal_PWM = 8; if (FU==1) wanted_cal_PWM = -8; if (AD==1) wanted_cal_PWM = 16; if (AU==1) wanted_cal_PWM = -16; } return (wanted_cal_PWM); } void read_IO () { FDFB=FD; FUFB=FU; ADFB=AD; AUFB=AU; SW2FB=SW2; TSTFB=TST; prev_Compression_perc=Compression_perc; prev_BPM=BPM; prevA_pot=A_pot; RST = (1-digitalRead (pin_RST)); TSTtemp = (1-digitalRead (pin_TST)); SW2temp = (1-digitalRead (pin_SW2)); if (SW2temp==1) {counter_ON+=1; if (counter_ON>20) {SW2=1; counter_ON=100; }} else counter_ON=0; if (SW2temp==0) {counter_OFF+=1; if (counter_OFF>20) {SW2=0; counter_OFF=100; }} else counter_OFF=0; if (TSTtemp==1) {counter_TST_ON+=1; if (counter_TST_ON>20) {TST=1; counter_TST_ON=100; }} else counter_TST_ON=0; if (TSTtemp==0) {counter_TST_OFF+=1; if (counter_TST_OFF>20) {TST=0; counter_TST_OFF=100;}} else counter_TST_OFF=0; A_pot= analogRead (pin_POT); if (invert_pot) A_pot=1023-A_pot; A_current= analogRead (pin_CUR)/8; // in tenth Amps if(control_with_pot) { A_rate = analogRead (pin_FRQ); A_comp = analogRead (pin_AMP); A_pres = analogRead (pin_PRE); if (abs(pot_rate-A_rate)<5) pot_rate = pot_alpha*pot_rate + (1-pot_alpha)*A_rate; else pot_rate=A_rate; if (abs(pot_comp-A_comp)<5) pot_comp = pot_alpha*pot_comp + (1-pot_alpha)*A_comp; else pot_comp=A_comp; if (abs(pot_pres-A_pres)<5) pot_pres = pot_alpha*pot_pres + (1-pot_alpha)*A_pres; else pot_pres=A_pres; A_comp = range_pot(int(pot_comp),comp_pot_low,comp_pot_high); A_rate = range_pot(int(pot_rate),rate_pot_low,rate_pot_high); A_pres = range_pot(int(pot_pres),pres_pot_low,pres_pot_high); Compression_perc= perc_of_lower_volume_display + int(float(A_comp)*(100-perc_of_lower_volume_display)/1023); Compression_perc=limit_int(Compression_perc,perc_of_lower_volume_display,100); BPM = 6+(A_rate-23)/55; // 0 is 6 breaths per minute, 1023 is 24 BPM breath_cycle_time = 60000/BPM+100; // in milisec insp_pressure= 30+A_pres/25; // 0 is 30 mBar, 1023 is 70 mBar insp_pressure=limit_int(insp_pressure,30,70); if (abs(insp_pressure-prev_insp_pressure)>1) { prev_insp_pressure=insp_pressure; start_disp_pres=millis(); display_LCD(); } } else { FD = (1-digitalRead (pin_FD)); FU = (1-digitalRead (pin_FU)); AD = (1-digitalRead (pin_AD)); AU = (1-digitalRead (pin_AU)); if (TST==0) { if (FD==0 && FDFB==1) {BPM-=2; if(BPM<6) BPM=6; cycle_number=0;} if (FU==0 && FUFB==1) {BPM+=2; if(BPM>24) BPM=24; cycle_number=0;} breath_cycle_time = 60000/BPM+100; if (AD==0 && ADFB==1) {Compression_perc-=deltaUD; if (Compression_perc100) Compression_perc=100;} } if (TST==1) { if (FD==0 && FDFB==1) {insp_pressure-=5; if(insp_pressure<30) insp_pressure=30; } if (FU==0 && FUFB==1) {insp_pressure+=5; if(insp_pressure>70) insp_pressure=70;} if (AD==0 && ADFB==1) {insp_pressure-=5; if(insp_pressure<30) insp_pressure=30; } if (AU==0 && AUFB==1) {insp_pressure+=5; if(insp_pressure>70) insp_pressure=70;} } } range_factor = perc_of_lower_volume+(Compression_perc-perc_of_lower_volume_display)*(100-perc_of_lower_volume)/(100-perc_of_lower_volume_display); range_factor = range_factor/100; if (range_factor>1) range_factor=1; if (range_factor<0) range_factor=0; #if (pressure_sensor_available==1) {if (millis()-last_read_pres>100) { last_read_pres = millis(); pressure_abs = int( sparkfumPress.getPressure(ADC_4096)-pressure_baseline); // mbar if (pressure_abs<0) pressure_abs=0; } } #endif if (prev_BPM != BPM || prev_Compression_perc!=Compression_perc) display_LCD(); if (SW2==0 && SW2FB==1) // start / stop breathing motion { run_profile=1-run_profile; start_wait=millis(); integral=0; reset_failures(); } wanted_cycle_time= cycleTime + int (float(breath_cycle_time-500*cycleTime)*float(smear_factor)/500); } void send_data_to_monitor() { if (monitor_index==0) Serial.println(""A""); if (monitor_index==1) Serial.println(byte(BPM)); if (monitor_index==2) Serial.println(byte(Compression_perc)); if (monitor_index==3) Serial.println(byte(pressure_abs)); if (monitor_index==4) Serial.println(byte(failure)); if (monitor_index==5) {if (send_beep) {Serial.println(byte(1)); send_beep=0;} else Serial.println(byte(0)); } if (monitor_index==6) Serial.println(byte(insp_pressure)); monitor_index+=1; if (monitor_index==7) monitor_index=0; } void blinkBlue (int numb) { if (blueOn==1) {if (millis()-lastBlue>20) {lastBlue=millis(); blueOn=0; LED_FAIL(0); }} if (blueOn==0) {if (millis()-lastBlue>100*numb) {lastBlue=millis(); blueOn=1; LED_FAIL(1); }} } void LED_FREQ(byte val) {digitalWrite ( pin_LED_FREQ, val);} void LED_AMP (byte val) {digitalWrite ( pin_LED_AMP, val); } void LED_FAIL (byte val) {digitalWrite ( pin_LED_Fail, val); } void LED_USR (byte val) {digitalWrite ( pin_USR, val); } void print_tele () // UNCOMMENT THE TELEMETRY NEEDED { // Serial.print("" Fail (disc,motion,hiPres):""); Serial.print(disconnected); Serial.print("",""); Serial.print(motion_failure); Serial.print("",""); Serial.print(high_pressure_detected); // Serial.print("" CL:""); Serial.print(cycles_lost); // Serial.print("" min,max:""); Serial.print(min_arm_pos); Serial.print("",""); Serial.print(max_arm_pos); // Serial.print("" WPWM :""); Serial.print(motorPWM); // Serial.print("" integral:""); Serial.print(int(integral)); // Serial.print("" Wa:""); Serial.print(int(wanted_pos)); // Serial.print("" Ac:""); Serial.print(A_pot); // Serial.print("" cur:""); Serial.print(A_current); // Serial.print("" amp:""); Serial.print(Compression_perc); // Serial.print("" freq:""); Serial.print(A_rate); // Serial.print("" w cyc t:""); Serial.print(wanted_cycle_time); // Serial.print("" P :""); Serial.print(pressure_abs); // Serial.print("" AvgP :""); Serial.print(int(avg_pres)); // Serial.print("" RF:""); Serial.print(range_factor); Serial.print(""pot :""); Serial.print(pot_rate); Serial.println(""""); } ",12138,False,1917.6059862182274,median "#include ""Arduino.h"" #include #include #include #include ""EEPROM.h"" const unsigned char connect_on[800] = { 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x46, 0x4E, 0x4F, 0x70, 0x46, 0x6E, 0x4F, 0xF1, 0x3C, 0x4A, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x4F, 0xF1, 0x31, 0x86, 0x31, 0x86, 0x3B, 0x49, 0x4F, 0xD0, 0x3C, 0x2A, 0x3B, 0xEA, 0x3B, 0xEA, 0x3B, 0xEA, 0x3B, 0xEA, 0x3C, 0x0A, 0x3B, 0x49, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x46, 0x2E, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x4F, 0x70, 0x4F, 0x90, 0x4F, 0x2F, 0x4F, 0x2F, 0x4F, 0x2F, 0x4F, 0x2F, 0x4F, 0x0F, 0x4F, 0xD0, 0x3C, 0x8B, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x4F, 0xF1, 0x3B, 0x49, 0x31, 0xA6, 0x45, 0x4C, 0x4F, 0x70, 0x31, 0xA6, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x45, 0xAD, 0x4E, 0xAE, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x3C, 0x6B, 0x4F, 0x4F, 0x4F, 0x0F, 0x4F, 0x2F, 0x32, 0xC8, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x45, 0x8D, 0x46, 0x4E, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0xC6, 0x32, 0x47, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x45, 0x4C, 0x4E, 0x8E, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x3C, 0x4A, 0x45, 0xAD, 0x45, 0xED, 0x45, 0xED, 0x45, 0xED, 0x45, 0xED, 0x45, 0xED, 0x45, 0xED, 0x45, 0xAD, 0x4F, 0xF0, 0x45, 0xAD, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x45, 0x4C, 0x4F, 0xF0, 0x45, 0x2C, 0x45, 0x6C, 0x45, 0x6C, 0x45, 0x6C, 0x45, 0x6C, 0x45, 0x6C, 0x45, 0x6C, 0x45, 0x2C, 0x3B, 0xEA, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x45, 0xED, 0x45, 0xCD, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x32, 0x67, 0x32, 0x07, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x45, 0xAD, 0x46, 0x0D, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x32, 0xC8, 0x4F, 0x2F, 0x4E, 0xEF, 0x4F, 0x90, 0x44, 0xAB, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x46, 0x0D, 0x46, 0x6E, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0xA6, 0x31, 0x86, 0x31, 0xC6, 0x4F, 0x4F, 0x45, 0x8D, 0x31, 0x86, 0x3B, 0x08, 0x4F, 0xF1, 0x3B, 0x89, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x3B, 0xEA, 0x4F, 0xB0, 0x4E, 0xCF, 0x32, 0xC8, 0x32, 0xA8, 0x4F, 0x0F, 0x45, 0xAD, 0x32, 0xC8, 0x4E, 0xEF, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x45, 0xED, 0x46, 0x6E, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x32, 0xA8, 0x3B, 0xA9, 0x31, 0xE6, 0x31, 0xC6, 0x3B, 0x89, 0x3A, 0xE8, 0x31, 0xE6, 0x4F, 0x90, 0x3C, 0x2A, 0x31, 0x86, 0x31, 0xE6, 0x4F, 0xD0, 0x3C, 0x4A, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x3B, 0xCA, 0x4F, 0xD0, 0x46, 0x4E, 0x4F, 0x70, 0x45, 0xED, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, }; const unsigned char connect_off[800] = { 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x7B, 0xCF, 0x8C, 0x71, 0x7B, 0xEF, 0x94, 0xB2, 0x5A, 0xEB, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x94, 0xB2, 0x31, 0x86, 0x31, 0x86, 0x4A, 0x69, 0x94, 0x92, 0x5A, 0xCB, 0x52, 0xAA, 0x52, 0xAA, 0x52, 0xAA, 0x52, 0xAA, 0x5A, 0xCB, 0x4A, 0x69, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x7B, 0xCF, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x8C, 0x51, 0x8C, 0x71, 0x84, 0x30, 0x8C, 0x51, 0x8C, 0x51, 0x8C, 0x51, 0x84, 0x30, 0x94, 0x92, 0x63, 0x0C, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x94, 0xB2, 0x4A, 0x69, 0x31, 0xA6, 0x6B, 0x6D, 0x8C, 0x51, 0x31, 0xA6, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x73, 0x8E, 0x84, 0x10, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x5A, 0xEB, 0x8C, 0x51, 0x84, 0x30, 0x8C, 0x51, 0x42, 0x28, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x6B, 0x6D, 0x7B, 0xCF, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0xA6, 0x39, 0xE7, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x6B, 0x6D, 0x7B, 0xEF, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x5A, 0xEB, 0x73, 0x8E, 0x73, 0xAE, 0x73, 0xAE, 0x73, 0xAE, 0x73, 0xAE, 0x73, 0xAE, 0x73, 0xAE, 0x73, 0x8E, 0x94, 0x92, 0x73, 0x8E, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x6B, 0x4D, 0x94, 0x92, 0x6B, 0x4D, 0x6B, 0x6D, 0x6B, 0x6D, 0x6B, 0x6D, 0x6B, 0x6D, 0x6B, 0x6D, 0x6B, 0x6D, 0x6B, 0x4D, 0x52, 0xAA, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x73, 0xAE, 0x73, 0xAE, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x39, 0xE7, 0x39, 0xC7, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x73, 0x8E, 0x73, 0xAE, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x42, 0x28, 0x8C, 0x51, 0x84, 0x10, 0x8C, 0x71, 0x63, 0x0C, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x73, 0xAE, 0x7B, 0xEF, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0xA6, 0x8C, 0x51, 0x6B, 0x6D, 0x31, 0x86, 0x4A, 0x49, 0x94, 0xB2, 0x52, 0x8A, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x52, 0xAA, 0x8C, 0x71, 0x84, 0x10, 0x42, 0x28, 0x42, 0x28, 0x84, 0x30, 0x73, 0x8E, 0x42, 0x28, 0x84, 0x30, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x73, 0xAE, 0x7B, 0xCF, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x42, 0x28, 0x52, 0x8A, 0x31, 0xA6, 0x31, 0xA6, 0x52, 0x8A, 0x42, 0x28, 0x31, 0xA6, 0x8C, 0x71, 0x5A, 0xCB, 0x31, 0x86, 0x31, 0xA6, 0x94, 0x92, 0x5A, 0xEB, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x52, 0xAA, 0x94, 0x92, 0x7B, 0xCF, 0x8C, 0x71, 0x73, 0xAE, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, 0x31, 0x86, }; #define EEPROM_SIZE 64 TFT_eSprite Disbuff = TFT_eSprite(&M5.Lcd); extern const unsigned char connect_on[800]; extern const unsigned char connect_off[800]; #define SYSNUM 3 uint64_t realTime[4], time_count = 0; bool k_ready = false; uint32_t key_count = 0; IPAddress local_IP(192, 168, 4, 100 + SYSNUM); IPAddress gateway(192, 168, 4, 1); IPAddress subnet(255, 255, 0, 0); IPAddress primaryDNS(8, 8, 8, 8); //optional IPAddress secondaryDNS(8, 8, 4, 4); //optional const char *ssid = ""M5AP""; const char *password = ""77777777""; WiFiUDP Udp; uint32_t send_count = 0; uint8_t system_state = 0; void I2CWrite1Byte(uint8_t Addr, uint8_t Data) { Wire.beginTransmission(0x38); Wire.write(Addr); Wire.write(Data); Wire.endTransmission(); } void I2CWritebuff(uint8_t Addr, uint8_t *Data, uint16_t Length) { Wire.beginTransmission(0x38); Wire.write(Addr); for (int i = 0; i < Length; i++) { Wire.write(Data[i]); } Wire.endTransmission(); } uint8_t I2CRead8bit(uint8_t Addr) { Wire.beginTransmission(0x38); Wire.write(Addr); Wire.endTransmission(); Wire.requestFrom(0x38, 1); return Wire.read(); } uint16_t I2CRead16bit(uint8_t Addr) { uint16_t ReData = 0; Wire.beginTransmission(0x38); Wire.write(Addr); Wire.endTransmission(); Wire.requestFrom(0x38, 2); for (int i = 0; i < 2; i++) { ReData <<= 8; ReData |= Wire.read(); } return ReData; } bool joys_l = false; uint8_t color[3] = { 0, 100, 0 }; uint8_t SendBuff[8] = { 0xAA, 0x55, SYSNUM, 0x00, 0x00, 0x00, 0x00, 0xee }; void SendUDP() { if (WiFi.status() == WL_CONNECTED) { Udp.beginPacket(IPAddress(192, 168, 4, 1), 1000 + SYSNUM); Udp.write(SendBuff, 8); Udp.endPacket(); } } char APName[20]; String WfifAPBuff[16]; uint32_t count_bn_a = 0, choose = 0; String ssidname; void setup() { // put your setup code here, to run once: M5.begin(); Wire.begin(0, 26, 10000); EEPROM.begin(EEPROM_SIZE); M5.Lcd.setRotation(4); M5.Lcd.setSwapBytes(false); Disbuff.createSprite(135, 240); Disbuff.setSwapBytes(true); Disbuff.fillRect(0, 0, 135, 20, Disbuff.color565(50, 50, 50)); Disbuff.setTextSize(2); Disbuff.setTextColor(GREEN); Disbuff.setCursor(55, 6); //Disbuff.printf(""%03d"",SYSNUM); Disbuff.pushImage(0, 0, 20, 20, (uint16_t*) connect_off); Disbuff.pushSprite(0, 0); uint8_t res = I2CRead8bit(0x32); Serial.printf(""Res0 = %02X \\r\\n"", res); /* if( res & 0x02 ) { I2CWrite1Byte(0x10,0x02); } else { Disbuff.setTextSize(1); Disbuff.setTextColor(GREEN); Disbuff.fillRect(0,0,80,20,Disbuff.color565(50,50,50)); Disbuff.setCursor(5,20); Disbuff.printf(""calibration""); Disbuff.pushSprite(0,0); I2CWrite1Byte( 0x32 , 0x01 ); } */ M5.update(); if ((EEPROM.read(0) != 0x56) || (M5.BtnA.read() == 1)) { WiFi.mode(WIFI_STA); int n = WiFi.scanNetworks(); Disbuff.setTextSize(2); Disbuff.setTextColor(GREEN); Disbuff.fillRect(0, 0, 80, 20, Disbuff.color565(50, 50, 50)); if (n == 0) { Disbuff.setCursor(5, 20); Disbuff.printf(""no networks""); } else { int count = 0; for (int i = 0; i < n; ++i) { if (WiFi.SSID(i).indexOf(""M5AP"") != -1) { if (count == 0) { Disbuff.setTextColor(GREEN); } else { Disbuff.setTextColor(WHITE); } Disbuff.setCursor(5, 25 + count * 10); String str = WiFi.SSID(i); Disbuff.printf(str.c_str()); WfifAPBuff[count] = WiFi.SSID(i); count++; } } Disbuff.pushSprite(0, 0); while (1) { if (M5.BtnA.read() == 1) { if (count_bn_a >= 200) { count_bn_a = 201; EEPROM.writeUChar(0, 0x56); EEPROM.writeString(1, WfifAPBuff[choose]); ssidname = WfifAPBuff[choose]; break; } count_bn_a++; Serial.printf(""count_bn_a %d \\n"", count_bn_a); } else if ((M5.BtnA.isReleased()) && (count_bn_a != 0)) { Serial.printf(""count_bn_a %d"", count_bn_a); if (count_bn_a > 200) { } else { choose++; if (choose >= count) { choose = 0; } Disbuff.fillRect(0, 0, 80, 20, Disbuff.color565(50, 50, 50)); for (int i = 0; i < count; i++) { Disbuff.setCursor(5, 25 + i * 10); if (choose == i) { Disbuff.setTextColor(GREEN); } else { Disbuff.setTextColor(WHITE); } Disbuff.printf(WfifAPBuff[i].c_str()); } Disbuff.pushSprite(0, 0); } count_bn_a = 0; } delay(10); M5.update(); } //EEPROM.writeString(1,WfifAPBuff[0]); } } else if (EEPROM.read(0) == 0x56) { ssidname = EEPROM.readString(1); EEPROM.readString(1, APName, 16); } Disbuff.fillRect(0, 20, 80, 140, BLACK); if (!WiFi.config(local_IP, gateway, subnet, primaryDNS, secondaryDNS)) { Serial.println(""STA Failed to configure""); } WiFi.begin(ssidname.c_str(), password); while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("".""); } Udp.begin(2000); Disbuff.pushImage(0, 0, 20, 20, (uint16_t*) connect_on); Disbuff.pushSprite(0, 0); } uint8_t adc_value[5] = { 0 }; uint16_t AngleBuff[4]; uint32_t count = 0; void loop() { for (int i = 0; i < 5; i++) { adc_value[i] = I2CRead8bit(0x60 + i); } for (int i = 0; i < 4; i++) { AngleBuff[i] = I2CRead16bit(0x50 + i * 2); } delay(10); if (WiFi.status() != WL_CONNECTED) { Disbuff.pushImage(0, 0, 20, 20, (uint16_t*) connect_off); Disbuff.pushSprite(0, 0); count++; if (count > 500) { WiFi.config(local_IP, gateway, subnet, primaryDNS, secondaryDNS); count = 0; } } else { SendBuff[3] = map(AngleBuff[0], 0, 4000, 0, 200); SendBuff[4] = map(AngleBuff[1], 0, 4000, 0, 200); SendBuff[5] = map(AngleBuff[2], 0, 4000, 0, 200); /* Disbuff.pushImage(0,0,20,20,(uint16_t *)connect_on); Disbuff.pushSprite(0,0); count = 0; */ if ((SendBuff[3] > 110) || (SendBuff[3] < 90) || (SendBuff[4] > 110) || (SendBuff[4] < 90) || (SendBuff[5] > 110) || (SendBuff[5] < 90)) { SendBuff[6] = 0x01; } else { SendBuff[6] = 0x00; } SendUDP(); } Disbuff.fillRect(0, 30, 80, 130, BLACK); Disbuff.setCursor(10, 30); Disbuff.printf(""%04d"", SendBuff[3]); Disbuff.setCursor(10, 45); Disbuff.printf(""%04d"", SendBuff[4]); Disbuff.setCursor(10, 60); Disbuff.printf(""%04d"", SendBuff[5]); Disbuff.setCursor(10, 100); Disbuff.printf(""%04X"", adc_value[4]); Disbuff.pushSprite(0, 0); } ",12130,True,2531.1573343382665,median "cmd_drivers/usb/host/xhci-dbg.o := aarch64-xilinx-linux-gcc -fuse-ld=bfd -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0=/usr/src/debug/linux-xlnx/4.19-xilinx-v2019.1+git999-r0 -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot= -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work-shared/ultra96-zynqmp/kernel-source=/usr/src/kernel --sysroot=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot -Wp,-MD,drivers/usb/host/.xhci-dbg.o.d -nostdinc -isystem /home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../lib/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/8.2.0/include -I/home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include -I./arch/arm64/include/generated -I/home/zw/share/ultra96/mipitest/linux-xlnx/include -I./include -I/home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi -I./arch/arm64/include/generated/uapi -I/home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi -I./include/generated/uapi -include /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kconfig.h -include /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler_types.h -I/home/zw/share/ultra96/mipitest/linux-xlnx/drivers/usb/host -Idrivers/usb/host -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -mgeneral-regs-only -DCONFIG_AS_LSE=1 -fno-asynchronous-unwind-tables -mabi=lp64 -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=/home/zw/share/ultra96/mipitest/linux-xlnx/= -Wno-packed-not-aligned -DKBUILD_BASENAME='""xhci_dbg""' -DKBUILD_MODNAME='""xhci_hcd""' -c -o drivers/usb/host/xhci-dbg.o /home/zw/share/ultra96/mipitest/linux-xlnx/drivers/usb/host/xhci-dbg.c source_drivers/usb/host/xhci-dbg.o := /home/zw/share/ultra96/mipitest/linux-xlnx/drivers/usb/host/xhci-dbg.c deps_drivers/usb/host/xhci-dbg.o := \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kconfig.h \\ $(wildcard include/config/cpu/big/endian.h) \\ $(wildcard include/config/booger.h) \\ $(wildcard include/config/foo.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler_types.h \\ $(wildcard include/config/have/arch/compiler/h.h) \\ $(wildcard include/config/enable/must/check.h) \\ $(wildcard include/config/arch/supports/optimized/inlining.h) \\ $(wildcard include/config/optimize/inlining.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler-gcc.h \\ $(wildcard include/config/arch/use/builtin/bswap.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/drivers/usb/host/xhci.h \\ $(wildcard include/config/u3e.h) \\ $(wildcard include/config/cie.h) \\ $(wildcard include/config/pm.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/usb.h \\ $(wildcard include/config/usb/mon.h) \\ $(wildcard include/config/acpi.h) \\ $(wildcard include/config/usb/led/trig.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mod_devicetable.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/types.h \\ $(wildcard include/config/have/uid16.h) \\ $(wildcard include/config/uid16.h) \\ $(wildcard include/config/lbdaf.h) \\ $(wildcard include/config/arch/dma/addr/t/64bit.h) \\ $(wildcard include/config/phys/addr/t/64bit.h) \\ $(wildcard include/config/64bit.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/types.h \\ arch/arm64/include/generated/uapi/asm/types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/int-ll64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/int-ll64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/bitsperlong.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitsperlong.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/bitsperlong.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/posix_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stddef.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/stddef.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/posix_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/posix_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uuid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/uuid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/string.h \\ $(wildcard include/config/binary/printf.h) \\ $(wildcard include/config/fortify/source.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler.h \\ $(wildcard include/config/trace/branch/profiling.h) \\ $(wildcard include/config/profile/all/branches.h) \\ $(wildcard include/config/stack/validation.h) \\ $(wildcard include/config/kasan.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/barrier.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/barrier.h \\ $(wildcard include/config/smp.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kasan-checks.h \\ /home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot-native/usr/lib/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/8.2.0/include/stdarg.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/string.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/string.h \\ $(wildcard include/config/arch/has/uaccess/flushcache.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/usb/ch9.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/device.h \\ $(wildcard include/config/debug/devres.h) \\ $(wildcard include/config/srcu.h) \\ $(wildcard include/config/generic/msi/irq/domain.h) \\ $(wildcard include/config/pinctrl.h) \\ $(wildcard include/config/generic/msi/irq.h) \\ $(wildcard include/config/numa.h) \\ $(wildcard include/config/dma/cma.h) \\ $(wildcard include/config/pm/sleep.h) \\ $(wildcard include/config/of.h) \\ $(wildcard include/config/devtmpfs.h) \\ $(wildcard include/config/printk.h) \\ $(wildcard include/config/dynamic/debug.h) \\ $(wildcard include/config/sysfs/deprecated.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ioport.h \\ $(wildcard include/config/memory/hotremove.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kobject.h \\ $(wildcard include/config/uevent/helper.h) \\ $(wildcard include/config/debug/kobject/release.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/list.h \\ $(wildcard include/config/debug/list.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/poison.h \\ $(wildcard include/config/illegal/pointer/value.h) \\ $(wildcard include/config/page/poisoning/zero.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/const.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/const.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kernel.h \\ $(wildcard include/config/preempt/voluntary.h) \\ $(wildcard include/config/debug/atomic/sleep.h) \\ $(wildcard include/config/mmu.h) \\ $(wildcard include/config/prove/locking.h) \\ $(wildcard include/config/arch/has/refcount.h) \\ $(wildcard include/config/panic/timeout.h) \\ $(wildcard include/config/tracing.h) \\ $(wildcard include/config/ftrace/mcount/record.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/linkage.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stringify.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/export.h \\ $(wildcard include/config/modules.h) \\ $(wildcard include/config/modversions.h) \\ $(wildcard include/config/module/rel/crcs.h) \\ $(wildcard include/config/have/arch/prel32/relocations.h) \\ $(wildcard include/config/trim/unused/ksyms.h) \\ $(wildcard include/config/unused/symbols.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/linkage.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bitops.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bits.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/bitops.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-__ffs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-ffs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-__fls.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-fls.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/ffz.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/fls64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/find.h \\ $(wildcard include/config/generic/find/first/bit.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/sched.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/hweight.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/arch_hweight.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/const_hweight.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/atomic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/atomic.h \\ $(wildcard include/config/generic/atomic64.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/atomic.h \\ $(wildcard include/config/arm64/lse/atomics.h) \\ $(wildcard include/config/as/lse.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/lse.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/alternative.h \\ $(wildcard include/config/arm64/uao.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cpucaps.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/insn.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/init.h \\ $(wildcard include/config/strict/kernel/rwx.h) \\ $(wildcard include/config/strict/module/rwx.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/atomic_lse.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cmpxchg.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/build_bug.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/atomic-long.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/lock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/non-atomic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/le.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/byteorder.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/byteorder/little_endian.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/byteorder/little_endian.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/swab.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/swab.h \\ arch/arm64/include/generated/uapi/asm/swab.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/swab.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/byteorder/generic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/ext2-atomic-setbit.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/log2.h \\ $(wildcard include/config/arch/has/ilog2/u32.h) \\ $(wildcard include/config/arch/has/ilog2/u64.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/typecheck.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/printk.h \\ $(wildcard include/config/message/loglevel/default.h) \\ $(wildcard include/config/console/loglevel/default.h) \\ $(wildcard include/config/console/loglevel/quiet.h) \\ $(wildcard include/config/early/printk.h) \\ $(wildcard include/config/printk/nmi.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kern_levels.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/cache.h \\ $(wildcard include/config/arch/has/cache/line/size.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/kernel.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sysinfo.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cache.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cputype.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/sysreg.h \\ $(wildcard include/config/broken/gas/inst.h) \\ $(wildcard include/config/arm64/pa/bits/52.h) \\ $(wildcard include/config/arm64/4k/pages.h) \\ $(wildcard include/config/arm64/16k/pages.h) \\ $(wildcard include/config/arm64/64k/pages.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/compiler.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sysfs.h \\ $(wildcard include/config/debug/lock/alloc.h) \\ $(wildcard include/config/sysfs.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kernfs.h \\ $(wildcard include/config/kernfs.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/err.h \\ arch/arm64/include/generated/uapi/asm/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/errno-base.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mutex.h \\ $(wildcard include/config/mutex/spin/on/owner.h) \\ $(wildcard include/config/debug/mutexes.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/current.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/spinlock_types.h \\ $(wildcard include/config/debug/spinlock.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/spinlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qspinlock_types.h \\ $(wildcard include/config/paravirt.h) \\ $(wildcard include/config/nr/cpus.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qrwlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/lockdep.h \\ $(wildcard include/config/lockdep.h) \\ $(wildcard include/config/lock/stat.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/processor.h \\ $(wildcard include/config/compat.h) \\ $(wildcard include/config/have/hw/breakpoint.h) \\ $(wildcard include/config/gcc/plugin/stackleak.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cpufeature.h \\ $(wildcard include/config/arm64/sw/ttbr0/pan.h) \\ $(wildcard include/config/arm64/sve.h) \\ $(wildcard include/config/arm64/ssbd.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/hwcap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/hwcap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bug.h \\ $(wildcard include/config/generic/bug.h) \\ $(wildcard include/config/bug/on/data/corruption.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/bug.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/asm-bug.h \\ $(wildcard include/config/debug/bugverbose.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/brk-imm.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bug.h \\ $(wildcard include/config/bug.h) \\ $(wildcard include/config/generic/bug/relative/pointers.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/jump_label.h \\ $(wildcard include/config/jump/label.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/hw_breakpoint.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/virt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/ptrace.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/ptrace.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/sigcontext.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/prctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/ptrace.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/sections.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/sections.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable-hwdef.h \\ $(wildcard include/config/pgtable/levels.h) \\ $(wildcard include/config/arm64/pa/bits.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/memory.h \\ $(wildcard include/config/arm64/va/bits.h) \\ $(wildcard include/config/vmap/stack.h) \\ $(wildcard include/config/debug/align/rodata.h) \\ $(wildcard include/config/blk/dev/initrd.h) \\ $(wildcard include/config/debug/virtual.h) \\ $(wildcard include/config/sparsemem/vmemmap.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/page-def.h \\ $(wildcard include/config/arm64/page/shift.h) \\ $(wildcard include/config/arm64/cont/shift.h) \\ arch/arm64/include/generated/asm/sizes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/sizes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sizes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mmdebug.h \\ $(wildcard include/config/debug/vm.h) \\ $(wildcard include/config/debug/vm/pgflags.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/memory_model.h \\ $(wildcard include/config/flatmem.h) \\ $(wildcard include/config/discontigmem.h) \\ $(wildcard include/config/sparsemem.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pfn.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/fpsimd.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/osq_lock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/debug_locks.h \\ $(wildcard include/config/debug/locking/api/selftests.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/idr.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/radix-tree.h \\ $(wildcard include/config/base/small.h) \\ $(wildcard include/config/radix/tree/multiorder.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/preempt.h \\ $(wildcard include/config/preempt/count.h) \\ $(wildcard include/config/debug/preempt.h) \\ $(wildcard include/config/trace/preempt/toggle.h) \\ $(wildcard include/config/preempt.h) \\ $(wildcard include/config/preempt/notifiers.h) \\ arch/arm64/include/generated/asm/preempt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/preempt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/thread_info.h \\ $(wildcard include/config/thread/info/in/task.h) \\ $(wildcard include/config/have/arch/within/stack/frames.h) \\ $(wildcard include/config/hardened/usercopy.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/restart_block.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/time64.h \\ $(wildcard include/config/64bit/time.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/math64.h \\ $(wildcard include/config/arch/supports/int128.h) \\ arch/arm64/include/generated/asm/div64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/div64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/time.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/thread_info.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/stack_pointer.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcupdate.h \\ $(wildcard include/config/preempt/rcu.h) \\ $(wildcard include/config/rcu/stall/common.h) \\ $(wildcard include/config/no/hz/full.h) \\ $(wildcard include/config/rcu/nocb/cpu.h) \\ $(wildcard include/config/tasks/rcu.h) \\ $(wildcard include/config/tree/rcu.h) \\ $(wildcard include/config/tiny/rcu.h) \\ $(wildcard include/config/debug/objects/rcu/head.h) \\ $(wildcard include/config/hotplug/cpu.h) \\ $(wildcard include/config/prove/rcu.h) \\ $(wildcard include/config/rcu/boost.h) \\ $(wildcard include/config/arch/weak/release/acquire.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/irqflags.h \\ $(wildcard include/config/trace/irqflags.h) \\ $(wildcard include/config/irqsoff/tracer.h) \\ $(wildcard include/config/preempt/tracer.h) \\ $(wildcard include/config/trace/irqflags/support.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/irqflags.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bottom_half.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/cpumask.h \\ $(wildcard include/config/cpumask/offstack.h) \\ $(wildcard include/config/debug/per/cpu/maps.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/threads.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bitmap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcutree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/spinlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/spinlock.h \\ arch/arm64/include/generated/asm/qrwlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qrwlock.h \\ arch/arm64/include/generated/asm/qspinlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qspinlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/spinlock_api_smp.h \\ $(wildcard include/config/inline/spin/lock.h) \\ $(wildcard include/config/inline/spin/lock/bh.h) \\ $(wildcard include/config/inline/spin/lock/irq.h) \\ $(wildcard include/config/inline/spin/lock/irqsave.h) \\ $(wildcard include/config/inline/spin/trylock.h) \\ $(wildcard include/config/inline/spin/trylock/bh.h) \\ $(wildcard include/config/uninline/spin/unlock.h) \\ $(wildcard include/config/inline/spin/unlock/bh.h) \\ $(wildcard include/config/inline/spin/unlock/irq.h) \\ $(wildcard include/config/inline/spin/unlock/irqrestore.h) \\ $(wildcard include/config/generic/lockbreak.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwlock_api_smp.h \\ $(wildcard include/config/inline/read/lock.h) \\ $(wildcard include/config/inline/write/lock.h) \\ $(wildcard include/config/inline/read/lock/bh.h) \\ $(wildcard include/config/inline/write/lock/bh.h) \\ $(wildcard include/config/inline/read/lock/irq.h) \\ $(wildcard include/config/inline/write/lock/irq.h) \\ $(wildcard include/config/inline/read/lock/irqsave.h) \\ $(wildcard include/config/inline/write/lock/irqsave.h) \\ $(wildcard include/config/inline/read/trylock.h) \\ $(wildcard include/config/inline/write/trylock.h) \\ $(wildcard include/config/inline/read/unlock.h) \\ $(wildcard include/config/inline/write/unlock.h) \\ $(wildcard include/config/inline/read/unlock/bh.h) \\ $(wildcard include/config/inline/write/unlock/bh.h) \\ $(wildcard include/config/inline/read/unlock/irq.h) \\ $(wildcard include/config/inline/write/unlock/irq.h) \\ $(wildcard include/config/inline/read/unlock/irqrestore.h) \\ $(wildcard include/config/inline/write/unlock/irqrestore.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/gfp.h \\ $(wildcard include/config/highmem.h) \\ $(wildcard include/config/zone/dma.h) \\ $(wildcard include/config/zone/dma32.h) \\ $(wildcard include/config/zone/device.h) \\ $(wildcard include/config/memory/isolation.h) \\ $(wildcard include/config/compaction.h) \\ $(wildcard include/config/cma.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mmzone.h \\ $(wildcard include/config/force/max/zoneorder.h) \\ $(wildcard include/config/zsmalloc.h) \\ $(wildcard include/config/memcg.h) \\ $(wildcard include/config/memory/hotplug.h) \\ $(wildcard include/config/flat/node/mem/map.h) \\ $(wildcard include/config/page/extension.h) \\ $(wildcard include/config/no/bootmem.h) \\ $(wildcard include/config/deferred/struct/page/init.h) \\ $(wildcard include/config/transparent/hugepage.h) \\ $(wildcard include/config/have/memory/present.h) \\ $(wildcard include/config/have/memoryless/nodes.h) \\ $(wildcard include/config/have/memblock/node/map.h) \\ $(wildcard include/config/need/multiple/nodes.h) \\ $(wildcard include/config/have/arch/early/pfn/to/nid.h) \\ $(wildcard include/config/sparsemem/extreme.h) \\ $(wildcard include/config/have/arch/pfn/valid.h) \\ $(wildcard include/config/holes/in/zone.h) \\ $(wildcard include/config/arch/has/holes/memorymodel.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/wait.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/wait.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/numa.h \\ $(wildcard include/config/nodes/shift.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/seqlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/nodemask.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pageblock-flags.h \\ $(wildcard include/config/hugetlb/page.h) \\ $(wildcard include/config/hugetlb/page/size/variable.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/page-flags-layout.h \\ $(wildcard include/config/numa/balancing.h) \\ include/generated/bounds.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/sparsemem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/page.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/personality.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/personality.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable-types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/pgtable-nopud.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/pgtable-nop4d-hack.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/5level-fixup.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/getorder.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/memory_hotplug.h \\ $(wildcard include/config/arch/has/add/pages.h) \\ $(wildcard include/config/have/arch/nodedata/extension.h) \\ $(wildcard include/config/have/bootmem/info/node.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/notifier.h \\ $(wildcard include/config/tree/srcu.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwsem.h \\ $(wildcard include/config/rwsem/spin/on/owner.h) \\ $(wildcard include/config/rwsem/generic/spinlock.h) \\ arch/arm64/include/generated/asm/rwsem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/rwsem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/srcu.h \\ $(wildcard include/config/tiny/srcu.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/workqueue.h \\ $(wildcard include/config/debug/objects/work.h) \\ $(wildcard include/config/freezer.h) \\ $(wildcard include/config/wq/watchdog.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timer.h \\ $(wildcard include/config/debug/objects/timers.h) \\ $(wildcard include/config/no/hz/common.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ktime.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/time.h \\ $(wildcard include/config/arch/uses/gettimeoffset.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/time32.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/jiffies.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timex.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/timex.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/param.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/param.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/param.h \\ $(wildcard include/config/hz.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/param.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/timex.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/arch_timer.h \\ $(wildcard include/config/arm/arch/timer/ool/workaround.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/smp.h \\ $(wildcard include/config/up/late/init.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/llist.h \\ $(wildcard include/config/arch/have/nmi/safe/cmpxchg.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/smp.h \\ $(wildcard include/config/arm64/acpi/parking/protocol.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/percpu.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/percpu.h \\ $(wildcard include/config/have/setup/per/cpu/area.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu-defs.h \\ $(wildcard include/config/debug/force/weak/per/cpu.h) \\ $(wildcard include/config/virtualization.h) \\ $(wildcard include/config/amd/mem/encrypt.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/clocksource/arm_arch_timer.h \\ $(wildcard include/config/arm/arch/timer.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timecounter.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/timex.h \\ include/generated/timeconst.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timekeeping.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timekeeping32.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/debugobjects.h \\ $(wildcard include/config/debug/objects.h) \\ $(wildcard include/config/debug/objects/free.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcu_segcblist.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/srcutree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcu_node_tree.h \\ $(wildcard include/config/rcu/fanout.h) \\ $(wildcard include/config/rcu/fanout/leaf.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/completion.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/topology.h \\ $(wildcard include/config/use/percpu/numa/node/id.h) \\ $(wildcard include/config/sched/smt.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu.h \\ $(wildcard include/config/need/per/cpu/embed/first/chunk.h) \\ $(wildcard include/config/need/per/cpu/page/first/chunk.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/topology.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/arch_topology.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/topology.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rbtree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uidgid.h \\ $(wildcard include/config/multiuser.h) \\ $(wildcard include/config/user/ns.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/highuid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kobject_ns.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compat_time.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/compat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched.h \\ $(wildcard include/config/virt/cpu/accounting/native.h) \\ $(wildcard include/config/sched/info.h) \\ $(wildcard include/config/schedstats.h) \\ $(wildcard include/config/fair/group/sched.h) \\ $(wildcard include/config/rt/group/sched.h) \\ $(wildcard include/config/cgroup/sched.h) \\ $(wildcard include/config/blk/dev/io/trace.h) \\ $(wildcard include/config/memcg/kmem.h) \\ $(wildcard include/config/compat/brk.h) \\ $(wildcard include/config/cgroups.h) \\ $(wildcard include/config/blk/cgroup.h) \\ $(wildcard include/config/stackprotector.h) \\ $(wildcard include/config/arch/has/scaled/cputime.h) \\ $(wildcard include/config/virt/cpu/accounting/gen.h) \\ $(wildcard include/config/posix/timers.h) \\ $(wildcard include/config/sysvipc.h) \\ $(wildcard include/config/detect/hung/task.h) \\ $(wildcard include/config/auditsyscall.h) \\ $(wildcard include/config/rt/mutexes.h) \\ $(wildcard include/config/ubsan.h) \\ $(wildcard include/config/block.h) \\ $(wildcard include/config/task/xacct.h) \\ $(wildcard include/config/cpusets.h) \\ $(wildcard include/config/intel/rdt.h) \\ $(wildcard include/config/futex.h) \\ $(wildcard include/config/perf/events.h) \\ $(wildcard include/config/rseq.h) \\ $(wildcard include/config/task/delay/acct.h) \\ $(wildcard include/config/fault/injection.h) \\ $(wildcard include/config/latencytop.h) \\ $(wildcard include/config/function/graph/tracer.h) \\ $(wildcard include/config/kcov.h) \\ $(wildcard include/config/uprobes.h) \\ $(wildcard include/config/bcache.h) \\ $(wildcard include/config/livepatch.h) \\ $(wildcard include/config/security.h) \\ $(wildcard include/config/arch/task/struct/on/stack.h) \\ $(wildcard include/config/debug/rseq.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sched.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rculist.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ipc.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rhashtable-types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/ipc.h \\ arch/arm64/include/generated/uapi/asm/ipcbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/ipcbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/refcount.h \\ $(wildcard include/config/refcount/full.h) \\ arch/arm64/include/generated/uapi/asm/sembuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/sembuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/shm.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/shm.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/hugetlb_encode.h \\ arch/arm64/include/generated/uapi/asm/shmbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/shmbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/shmparam.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/shmparam.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kcov.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/kcov.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/plist.h \\ $(wildcard include/config/debug/pi/list.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/hrtimer.h \\ $(wildcard include/config/high/res/timers.h) \\ $(wildcard include/config/time/low/res.h) \\ $(wildcard include/config/timerfd.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timerqueue.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/seccomp.h \\ $(wildcard include/config/seccomp.h) \\ $(wildcard include/config/have/arch/seccomp/filter.h) \\ $(wildcard include/config/seccomp/filter.h) \\ $(wildcard include/config/checkpoint/restore.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/seccomp.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/resource.h \\ arch/arm64/include/generated/uapi/asm/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/latencytop.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/prio.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/signal_types.h \\ $(wildcard include/config/old/sigaction.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/signal-defs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/siginfo.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/siginfo.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mm_types_task.h \\ $(wildcard include/config/arch/want/batched/unmap/tlb/flush.h) \\ $(wildcard include/config/split/ptlock/cpus.h) \\ $(wildcard include/config/arch/enable/split/pmd/ptlock.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/task_io_accounting.h \\ $(wildcard include/config/task/io/accounting.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/rseq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/task_stack.h \\ $(wildcard include/config/stack/growsup.h) \\ $(wildcard include/config/debug/stack/usage.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/magic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kref.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/klist.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pm.h \\ $(wildcard include/config/vt/console/sleep.h) \\ $(wildcard include/config/pm/clk.h) \\ $(wildcard include/config/pm/generic/domains.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ratelimit.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/overflow.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/device.h \\ $(wildcard include/config/iommu/api.h) \\ $(wildcard include/config/xen.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pm_wakeup.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/usb/ch9.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/delay.h \\ arch/arm64/include/generated/asm/delay.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/delay.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/interrupt.h \\ $(wildcard include/config/irq/forced/threading.h) \\ $(wildcard include/config/generic/irq/probe.h) \\ $(wildcard include/config/proc/fs.h) \\ $(wildcard include/config/irq/timings.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/irqreturn.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/irqnr.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/irqnr.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/hardirq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ftrace_irq.h \\ $(wildcard include/config/ftrace/nmi/enter.h) \\ $(wildcard include/config/hwlat/tracer.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/vtime.h \\ $(wildcard include/config/virt/cpu/accounting.h) \\ $(wildcard include/config/irq/time/accounting.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/context_tracking_state.h \\ $(wildcard include/config/context/tracking.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/static_key.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/hardirq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/irq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/irq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/irq_cpustat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/fs.h \\ $(wildcard include/config/fs/posix/acl.h) \\ $(wildcard include/config/cgroup/writeback.h) \\ $(wildcard include/config/ima.h) \\ $(wildcard include/config/fsnotify.h) \\ $(wildcard include/config/fs/encryption.h) \\ $(wildcard include/config/epoll.h) \\ $(wildcard include/config/file/locking.h) \\ $(wildcard include/config/quota.h) \\ $(wildcard include/config/fs/dax.h) \\ $(wildcard include/config/mandatory/file/locking.h) \\ $(wildcard include/config/migration.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/wait_bit.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kdev_t.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/kdev_t.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dcache.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rculist_bl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/list_bl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bit_spinlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/lockref.h \\ $(wildcard include/config/arch/use/cmpxchg/lockref.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stringhash.h \\ $(wildcard include/config/dcache/word/access.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/hash.h \\ $(wildcard include/config/have/arch/hash.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/path.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/list_lru.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/shrinker.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/xarray.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mm_types.h \\ $(wildcard include/config/have/aligned/struct/page.h) \\ $(wildcard include/config/userfaultfd.h) \\ $(wildcard include/config/have/arch/compat/mmap/bases.h) \\ $(wildcard include/config/membarrier.h) \\ $(wildcard include/config/aio.h) \\ $(wildcard include/config/mmu/notifier.h) \\ $(wildcard include/config/hmm.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/auxvec.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/auxvec.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/auxvec.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uprobes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/mmu.h \\ $(wildcard include/config/unmap/kernel/at/el0.h) \\ $(wildcard include/config/harden/branch/predictor.h) \\ $(wildcard include/config/harden/el2/vectors.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/capability.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/capability.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/semaphore.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/fiemap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/migrate_mode.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu-rwsem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcuwait.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcu_sync.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/delayed_call.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/errseq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ioprio.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/rt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/iocontext.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/fs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/limits.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/ioctl.h \\ arch/arm64/include/generated/uapi/asm/ioctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/ioctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/ioctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/quota.h \\ $(wildcard include/config/quota/netlink/interface.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu_counter.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/dqblk_xfs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dqblk_v1.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dqblk_v2.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dqblk_qtree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/projid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/quota.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/nfs_fs_i.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pm_runtime.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/usb/hcd.h \\ $(wildcard include/config/usb/pci.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/usb/ch11.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/io-64-nonatomic-lo-hi.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/io.h \\ $(wildcard include/config/have/arch/huge/vmap.h) \\ $(wildcard include/config/has/ioport/map.h) \\ $(wildcard include/config/pci.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/io.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/proc-fns.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable-prot.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/fixmap.h \\ $(wildcard include/config/acpi/apei/ghes.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/boot.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/fixmap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/pgtable.h \\ $(wildcard include/config/have/arch/transparent/hugepage/pud.h) \\ $(wildcard include/config/have/arch/soft/dirty.h) \\ $(wildcard include/config/arch/enable/thp/migration.h) \\ $(wildcard include/config/x86/espfix64.h) \\ arch/arm64/include/generated/asm/early_ioremap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/early_ioremap.h \\ $(wildcard include/config/generic/early/ioremap.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/xen/xen.h \\ $(wildcard include/config/xen/pvh.h) \\ $(wildcard include/config/xen/dom0.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/io.h \\ $(wildcard include/config/generic/iomap.h) \\ $(wildcard include/config/virt/to/bus.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/pci_iomap.h \\ $(wildcard include/config/no/generic/pci/ioport/map.h) \\ $(wildcard include/config/generic/pci/iomap.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/logic_pio.h \\ $(wildcard include/config/indirect/pio.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/fwnode.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/vmalloc.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/drivers/usb/host/xhci-ext-caps.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/drivers/usb/host/pci-quirks.h \\ drivers/usb/host/xhci-dbg.o: $(deps_drivers/usb/host/xhci-dbg.o) $(deps_drivers/usb/host/xhci-dbg.o): ",16192,True,5333.655011411945,median "cmd_drivers/usb/phy/phy.o := aarch64-xilinx-linux-gcc -fuse-ld=bfd -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0=/usr/src/debug/linux-xlnx/4.19-xilinx-v2019.1+git999-r0 -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot= -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work-shared/ultra96-zynqmp/kernel-source=/usr/src/kernel --sysroot=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot -Wp,-MD,drivers/usb/phy/.phy.o.d -nostdinc -isystem /home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../lib/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/8.2.0/include -I/home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include -I./arch/arm64/include/generated -I/home/zw/share/ultra96/mipitest/linux-xlnx/include -I./include -I/home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi -I./arch/arm64/include/generated/uapi -I/home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi -I./include/generated/uapi -include /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kconfig.h -include /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler_types.h -I/home/zw/share/ultra96/mipitest/linux-xlnx/drivers/usb/phy -Idrivers/usb/phy -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -mgeneral-regs-only -DCONFIG_AS_LSE=1 -fno-asynchronous-unwind-tables -mabi=lp64 -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=/home/zw/share/ultra96/mipitest/linux-xlnx/= -Wno-packed-not-aligned -DKBUILD_BASENAME='""phy""' -DKBUILD_MODNAME='""phy""' -c -o drivers/usb/phy/phy.o /home/zw/share/ultra96/mipitest/linux-xlnx/drivers/usb/phy/phy.c source_drivers/usb/phy/phy.o := /home/zw/share/ultra96/mipitest/linux-xlnx/drivers/usb/phy/phy.c deps_drivers/usb/phy/phy.o := \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kconfig.h \\ $(wildcard include/config/cpu/big/endian.h) \\ $(wildcard include/config/booger.h) \\ $(wildcard include/config/foo.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler_types.h \\ $(wildcard include/config/have/arch/compiler/h.h) \\ $(wildcard include/config/enable/must/check.h) \\ $(wildcard include/config/arch/supports/optimized/inlining.h) \\ $(wildcard include/config/optimize/inlining.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler-gcc.h \\ $(wildcard include/config/arch/use/builtin/bswap.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kernel.h \\ $(wildcard include/config/lbdaf.h) \\ $(wildcard include/config/preempt/voluntary.h) \\ $(wildcard include/config/debug/atomic/sleep.h) \\ $(wildcard include/config/mmu.h) \\ $(wildcard include/config/prove/locking.h) \\ $(wildcard include/config/arch/has/refcount.h) \\ $(wildcard include/config/panic/timeout.h) \\ $(wildcard include/config/tracing.h) \\ $(wildcard include/config/ftrace/mcount/record.h) \\ /home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot-native/usr/lib/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/8.2.0/include/stdarg.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/linkage.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stringify.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/export.h \\ $(wildcard include/config/modules.h) \\ $(wildcard include/config/modversions.h) \\ $(wildcard include/config/module/rel/crcs.h) \\ $(wildcard include/config/have/arch/prel32/relocations.h) \\ $(wildcard include/config/trim/unused/ksyms.h) \\ $(wildcard include/config/unused/symbols.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler.h \\ $(wildcard include/config/trace/branch/profiling.h) \\ $(wildcard include/config/profile/all/branches.h) \\ $(wildcard include/config/stack/validation.h) \\ $(wildcard include/config/kasan.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/types.h \\ arch/arm64/include/generated/uapi/asm/types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/int-ll64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/int-ll64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/bitsperlong.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitsperlong.h \\ $(wildcard include/config/64bit.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/bitsperlong.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/posix_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stddef.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/stddef.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/posix_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/posix_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/barrier.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/barrier.h \\ $(wildcard include/config/smp.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kasan-checks.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/linkage.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/types.h \\ $(wildcard include/config/have/uid16.h) \\ $(wildcard include/config/uid16.h) \\ $(wildcard include/config/arch/dma/addr/t/64bit.h) \\ $(wildcard include/config/phys/addr/t/64bit.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bitops.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bits.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/bitops.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-__ffs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-ffs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-__fls.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-fls.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/ffz.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/fls64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/find.h \\ $(wildcard include/config/generic/find/first/bit.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/sched.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/hweight.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/arch_hweight.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/const_hweight.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/atomic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/atomic.h \\ $(wildcard include/config/generic/atomic64.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/atomic.h \\ $(wildcard include/config/arm64/lse/atomics.h) \\ $(wildcard include/config/as/lse.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/lse.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/alternative.h \\ $(wildcard include/config/arm64/uao.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cpucaps.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/insn.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/init.h \\ $(wildcard include/config/strict/kernel/rwx.h) \\ $(wildcard include/config/strict/module/rwx.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/atomic_lse.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cmpxchg.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/build_bug.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/atomic-long.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/lock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/non-atomic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/le.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/byteorder.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/byteorder/little_endian.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/byteorder/little_endian.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/swab.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/swab.h \\ arch/arm64/include/generated/uapi/asm/swab.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/swab.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/byteorder/generic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/ext2-atomic-setbit.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/log2.h \\ $(wildcard include/config/arch/has/ilog2/u32.h) \\ $(wildcard include/config/arch/has/ilog2/u64.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/typecheck.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/printk.h \\ $(wildcard include/config/message/loglevel/default.h) \\ $(wildcard include/config/console/loglevel/default.h) \\ $(wildcard include/config/console/loglevel/quiet.h) \\ $(wildcard include/config/early/printk.h) \\ $(wildcard include/config/printk/nmi.h) \\ $(wildcard include/config/printk.h) \\ $(wildcard include/config/dynamic/debug.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kern_levels.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/cache.h \\ $(wildcard include/config/arch/has/cache/line/size.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/kernel.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sysinfo.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cache.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cputype.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/sysreg.h \\ $(wildcard include/config/broken/gas/inst.h) \\ $(wildcard include/config/arm64/pa/bits/52.h) \\ $(wildcard include/config/arm64/4k/pages.h) \\ $(wildcard include/config/arm64/16k/pages.h) \\ $(wildcard include/config/arm64/64k/pages.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/compiler.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/err.h \\ arch/arm64/include/generated/uapi/asm/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/errno-base.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/device.h \\ $(wildcard include/config/debug/devres.h) \\ $(wildcard include/config/srcu.h) \\ $(wildcard include/config/generic/msi/irq/domain.h) \\ $(wildcard include/config/pinctrl.h) \\ $(wildcard include/config/generic/msi/irq.h) \\ $(wildcard include/config/numa.h) \\ $(wildcard include/config/dma/cma.h) \\ $(wildcard include/config/pm/sleep.h) \\ $(wildcard include/config/of.h) \\ $(wildcard include/config/devtmpfs.h) \\ $(wildcard include/config/sysfs/deprecated.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ioport.h \\ $(wildcard include/config/memory/hotremove.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kobject.h \\ $(wildcard include/config/uevent/helper.h) \\ $(wildcard include/config/debug/kobject/release.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/list.h \\ $(wildcard include/config/debug/list.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/poison.h \\ $(wildcard include/config/illegal/pointer/value.h) \\ $(wildcard include/config/page/poisoning/zero.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/const.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/const.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sysfs.h \\ $(wildcard include/config/debug/lock/alloc.h) \\ $(wildcard include/config/sysfs.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kernfs.h \\ $(wildcard include/config/kernfs.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mutex.h \\ $(wildcard include/config/mutex/spin/on/owner.h) \\ $(wildcard include/config/debug/mutexes.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/current.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/spinlock_types.h \\ $(wildcard include/config/debug/spinlock.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/spinlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qspinlock_types.h \\ $(wildcard include/config/paravirt.h) \\ $(wildcard include/config/nr/cpus.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qrwlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/lockdep.h \\ $(wildcard include/config/lockdep.h) \\ $(wildcard include/config/lock/stat.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/processor.h \\ $(wildcard include/config/compat.h) \\ $(wildcard include/config/have/hw/breakpoint.h) \\ $(wildcard include/config/gcc/plugin/stackleak.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/string.h \\ $(wildcard include/config/binary/printf.h) \\ $(wildcard include/config/fortify/source.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/string.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/string.h \\ $(wildcard include/config/arch/has/uaccess/flushcache.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cpufeature.h \\ $(wildcard include/config/arm64/sw/ttbr0/pan.h) \\ $(wildcard include/config/arm64/sve.h) \\ $(wildcard include/config/arm64/ssbd.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/hwcap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/hwcap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bug.h \\ $(wildcard include/config/generic/bug.h) \\ $(wildcard include/config/bug/on/data/corruption.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/bug.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/asm-bug.h \\ $(wildcard include/config/debug/bugverbose.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/brk-imm.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bug.h \\ $(wildcard include/config/bug.h) \\ $(wildcard include/config/generic/bug/relative/pointers.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/jump_label.h \\ $(wildcard include/config/jump/label.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/hw_breakpoint.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/virt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/ptrace.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/ptrace.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/sigcontext.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/prctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/ptrace.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/sections.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/sections.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable-hwdef.h \\ $(wildcard include/config/pgtable/levels.h) \\ $(wildcard include/config/arm64/pa/bits.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/memory.h \\ $(wildcard include/config/arm64/va/bits.h) \\ $(wildcard include/config/vmap/stack.h) \\ $(wildcard include/config/debug/align/rodata.h) \\ $(wildcard include/config/blk/dev/initrd.h) \\ $(wildcard include/config/debug/virtual.h) \\ $(wildcard include/config/sparsemem/vmemmap.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/page-def.h \\ $(wildcard include/config/arm64/page/shift.h) \\ $(wildcard include/config/arm64/cont/shift.h) \\ arch/arm64/include/generated/asm/sizes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/sizes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sizes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mmdebug.h \\ $(wildcard include/config/debug/vm.h) \\ $(wildcard include/config/debug/vm/pgflags.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/memory_model.h \\ $(wildcard include/config/flatmem.h) \\ $(wildcard include/config/discontigmem.h) \\ $(wildcard include/config/sparsemem.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pfn.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/fpsimd.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/osq_lock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/debug_locks.h \\ $(wildcard include/config/debug/locking/api/selftests.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/idr.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/radix-tree.h \\ $(wildcard include/config/base/small.h) \\ $(wildcard include/config/radix/tree/multiorder.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/preempt.h \\ $(wildcard include/config/preempt/count.h) \\ $(wildcard include/config/debug/preempt.h) \\ $(wildcard include/config/trace/preempt/toggle.h) \\ $(wildcard include/config/preempt.h) \\ $(wildcard include/config/preempt/notifiers.h) \\ arch/arm64/include/generated/asm/preempt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/preempt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/thread_info.h \\ $(wildcard include/config/thread/info/in/task.h) \\ $(wildcard include/config/have/arch/within/stack/frames.h) \\ $(wildcard include/config/hardened/usercopy.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/restart_block.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/time64.h \\ $(wildcard include/config/64bit/time.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/math64.h \\ $(wildcard include/config/arch/supports/int128.h) \\ arch/arm64/include/generated/asm/div64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/div64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/time.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/thread_info.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/stack_pointer.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcupdate.h \\ $(wildcard include/config/preempt/rcu.h) \\ $(wildcard include/config/rcu/stall/common.h) \\ $(wildcard include/config/no/hz/full.h) \\ $(wildcard include/config/rcu/nocb/cpu.h) \\ $(wildcard include/config/tasks/rcu.h) \\ $(wildcard include/config/tree/rcu.h) \\ $(wildcard include/config/tiny/rcu.h) \\ $(wildcard include/config/debug/objects/rcu/head.h) \\ $(wildcard include/config/hotplug/cpu.h) \\ $(wildcard include/config/prove/rcu.h) \\ $(wildcard include/config/rcu/boost.h) \\ $(wildcard include/config/arch/weak/release/acquire.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/irqflags.h \\ $(wildcard include/config/trace/irqflags.h) \\ $(wildcard include/config/irqsoff/tracer.h) \\ $(wildcard include/config/preempt/tracer.h) \\ $(wildcard include/config/trace/irqflags/support.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/irqflags.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bottom_half.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/cpumask.h \\ $(wildcard include/config/cpumask/offstack.h) \\ $(wildcard include/config/debug/per/cpu/maps.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/threads.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bitmap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcutree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/spinlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/spinlock.h \\ arch/arm64/include/generated/asm/qrwlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qrwlock.h \\ arch/arm64/include/generated/asm/qspinlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qspinlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/spinlock_api_smp.h \\ $(wildcard include/config/inline/spin/lock.h) \\ $(wildcard include/config/inline/spin/lock/bh.h) \\ $(wildcard include/config/inline/spin/lock/irq.h) \\ $(wildcard include/config/inline/spin/lock/irqsave.h) \\ $(wildcard include/config/inline/spin/trylock.h) \\ $(wildcard include/config/inline/spin/trylock/bh.h) \\ $(wildcard include/config/uninline/spin/unlock.h) \\ $(wildcard include/config/inline/spin/unlock/bh.h) \\ $(wildcard include/config/inline/spin/unlock/irq.h) \\ $(wildcard include/config/inline/spin/unlock/irqrestore.h) \\ $(wildcard include/config/generic/lockbreak.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwlock_api_smp.h \\ $(wildcard include/config/inline/read/lock.h) \\ $(wildcard include/config/inline/write/lock.h) \\ $(wildcard include/config/inline/read/lock/bh.h) \\ $(wildcard include/config/inline/write/lock/bh.h) \\ $(wildcard include/config/inline/read/lock/irq.h) \\ $(wildcard include/config/inline/write/lock/irq.h) \\ $(wildcard include/config/inline/read/lock/irqsave.h) \\ $(wildcard include/config/inline/write/lock/irqsave.h) \\ $(wildcard include/config/inline/read/trylock.h) \\ $(wildcard include/config/inline/write/trylock.h) \\ $(wildcard include/config/inline/read/unlock.h) \\ $(wildcard include/config/inline/write/unlock.h) \\ $(wildcard include/config/inline/read/unlock/bh.h) \\ $(wildcard include/config/inline/write/unlock/bh.h) \\ $(wildcard include/config/inline/read/unlock/irq.h) \\ $(wildcard include/config/inline/write/unlock/irq.h) \\ $(wildcard include/config/inline/read/unlock/irqrestore.h) \\ $(wildcard include/config/inline/write/unlock/irqrestore.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/gfp.h \\ $(wildcard include/config/highmem.h) \\ $(wildcard include/config/zone/dma.h) \\ $(wildcard include/config/zone/dma32.h) \\ $(wildcard include/config/zone/device.h) \\ $(wildcard include/config/memory/isolation.h) \\ $(wildcard include/config/compaction.h) \\ $(wildcard include/config/cma.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mmzone.h \\ $(wildcard include/config/force/max/zoneorder.h) \\ $(wildcard include/config/zsmalloc.h) \\ $(wildcard include/config/memcg.h) \\ $(wildcard include/config/memory/hotplug.h) \\ $(wildcard include/config/flat/node/mem/map.h) \\ $(wildcard include/config/page/extension.h) \\ $(wildcard include/config/no/bootmem.h) \\ $(wildcard include/config/deferred/struct/page/init.h) \\ $(wildcard include/config/transparent/hugepage.h) \\ $(wildcard include/config/have/memory/present.h) \\ $(wildcard include/config/have/memoryless/nodes.h) \\ $(wildcard include/config/have/memblock/node/map.h) \\ $(wildcard include/config/need/multiple/nodes.h) \\ $(wildcard include/config/have/arch/early/pfn/to/nid.h) \\ $(wildcard include/config/sparsemem/extreme.h) \\ $(wildcard include/config/have/arch/pfn/valid.h) \\ $(wildcard include/config/holes/in/zone.h) \\ $(wildcard include/config/arch/has/holes/memorymodel.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/wait.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/wait.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/numa.h \\ $(wildcard include/config/nodes/shift.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/seqlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/nodemask.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pageblock-flags.h \\ $(wildcard include/config/hugetlb/page.h) \\ $(wildcard include/config/hugetlb/page/size/variable.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/page-flags-layout.h \\ $(wildcard include/config/numa/balancing.h) \\ include/generated/bounds.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/sparsemem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/page.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/personality.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/personality.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable-types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/pgtable-nopud.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/pgtable-nop4d-hack.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/5level-fixup.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/getorder.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/memory_hotplug.h \\ $(wildcard include/config/arch/has/add/pages.h) \\ $(wildcard include/config/have/arch/nodedata/extension.h) \\ $(wildcard include/config/have/bootmem/info/node.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/notifier.h \\ $(wildcard include/config/tree/srcu.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwsem.h \\ $(wildcard include/config/rwsem/spin/on/owner.h) \\ $(wildcard include/config/rwsem/generic/spinlock.h) \\ arch/arm64/include/generated/asm/rwsem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/rwsem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/srcu.h \\ $(wildcard include/config/tiny/srcu.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/workqueue.h \\ $(wildcard include/config/debug/objects/work.h) \\ $(wildcard include/config/freezer.h) \\ $(wildcard include/config/wq/watchdog.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timer.h \\ $(wildcard include/config/debug/objects/timers.h) \\ $(wildcard include/config/no/hz/common.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ktime.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/time.h \\ $(wildcard include/config/arch/uses/gettimeoffset.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/time32.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/jiffies.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timex.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/timex.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/param.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/param.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/param.h \\ $(wildcard include/config/hz.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/param.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/timex.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/arch_timer.h \\ $(wildcard include/config/arm/arch/timer/ool/workaround.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/smp.h \\ $(wildcard include/config/up/late/init.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/llist.h \\ $(wildcard include/config/arch/have/nmi/safe/cmpxchg.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/smp.h \\ $(wildcard include/config/arm64/acpi/parking/protocol.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/percpu.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/percpu.h \\ $(wildcard include/config/have/setup/per/cpu/area.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu-defs.h \\ $(wildcard include/config/debug/force/weak/per/cpu.h) \\ $(wildcard include/config/virtualization.h) \\ $(wildcard include/config/amd/mem/encrypt.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/clocksource/arm_arch_timer.h \\ $(wildcard include/config/arm/arch/timer.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timecounter.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/timex.h \\ include/generated/timeconst.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timekeeping.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timekeeping32.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/debugobjects.h \\ $(wildcard include/config/debug/objects.h) \\ $(wildcard include/config/debug/objects/free.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcu_segcblist.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/srcutree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcu_node_tree.h \\ $(wildcard include/config/rcu/fanout.h) \\ $(wildcard include/config/rcu/fanout/leaf.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/completion.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/topology.h \\ $(wildcard include/config/use/percpu/numa/node/id.h) \\ $(wildcard include/config/sched/smt.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu.h \\ $(wildcard include/config/need/per/cpu/embed/first/chunk.h) \\ $(wildcard include/config/need/per/cpu/page/first/chunk.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/topology.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/arch_topology.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/topology.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rbtree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uidgid.h \\ $(wildcard include/config/multiuser.h) \\ $(wildcard include/config/user/ns.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/highuid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kobject_ns.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compat_time.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/compat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched.h \\ $(wildcard include/config/virt/cpu/accounting/native.h) \\ $(wildcard include/config/sched/info.h) \\ $(wildcard include/config/schedstats.h) \\ $(wildcard include/config/fair/group/sched.h) \\ $(wildcard include/config/rt/group/sched.h) \\ $(wildcard include/config/cgroup/sched.h) \\ $(wildcard include/config/blk/dev/io/trace.h) \\ $(wildcard include/config/memcg/kmem.h) \\ $(wildcard include/config/compat/brk.h) \\ $(wildcard include/config/cgroups.h) \\ $(wildcard include/config/blk/cgroup.h) \\ $(wildcard include/config/stackprotector.h) \\ $(wildcard include/config/arch/has/scaled/cputime.h) \\ $(wildcard include/config/virt/cpu/accounting/gen.h) \\ $(wildcard include/config/posix/timers.h) \\ $(wildcard include/config/sysvipc.h) \\ $(wildcard include/config/detect/hung/task.h) \\ $(wildcard include/config/auditsyscall.h) \\ $(wildcard include/config/rt/mutexes.h) \\ $(wildcard include/config/ubsan.h) \\ $(wildcard include/config/block.h) \\ $(wildcard include/config/task/xacct.h) \\ $(wildcard include/config/cpusets.h) \\ $(wildcard include/config/intel/rdt.h) \\ $(wildcard include/config/futex.h) \\ $(wildcard include/config/perf/events.h) \\ $(wildcard include/config/rseq.h) \\ $(wildcard include/config/task/delay/acct.h) \\ $(wildcard include/config/fault/injection.h) \\ $(wildcard include/config/latencytop.h) \\ $(wildcard include/config/function/graph/tracer.h) \\ $(wildcard include/config/kcov.h) \\ $(wildcard include/config/uprobes.h) \\ $(wildcard include/config/bcache.h) \\ $(wildcard include/config/livepatch.h) \\ $(wildcard include/config/security.h) \\ $(wildcard include/config/arch/task/struct/on/stack.h) \\ $(wildcard include/config/debug/rseq.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sched.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rculist.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ipc.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rhashtable-types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/ipc.h \\ arch/arm64/include/generated/uapi/asm/ipcbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/ipcbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/refcount.h \\ $(wildcard include/config/refcount/full.h) \\ arch/arm64/include/generated/uapi/asm/sembuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/sembuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/shm.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/shm.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/hugetlb_encode.h \\ arch/arm64/include/generated/uapi/asm/shmbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/shmbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/shmparam.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/shmparam.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kcov.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/kcov.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/plist.h \\ $(wildcard include/config/debug/pi/list.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/hrtimer.h \\ $(wildcard include/config/high/res/timers.h) \\ $(wildcard include/config/time/low/res.h) \\ $(wildcard include/config/timerfd.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timerqueue.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/seccomp.h \\ $(wildcard include/config/seccomp.h) \\ $(wildcard include/config/have/arch/seccomp/filter.h) \\ $(wildcard include/config/seccomp/filter.h) \\ $(wildcard include/config/checkpoint/restore.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/seccomp.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/resource.h \\ arch/arm64/include/generated/uapi/asm/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/latencytop.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/prio.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/signal_types.h \\ $(wildcard include/config/old/sigaction.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/signal-defs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/siginfo.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/siginfo.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mm_types_task.h \\ $(wildcard include/config/arch/want/batched/unmap/tlb/flush.h) \\ $(wildcard include/config/split/ptlock/cpus.h) \\ $(wildcard include/config/arch/enable/split/pmd/ptlock.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/task_io_accounting.h \\ $(wildcard include/config/task/io/accounting.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/rseq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/task_stack.h \\ $(wildcard include/config/stack/growsup.h) \\ $(wildcard include/config/debug/stack/usage.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/magic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kref.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/klist.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pm.h \\ $(wildcard include/config/vt/console/sleep.h) \\ $(wildcard include/config/pm.h) \\ $(wildcard include/config/pm/clk.h) \\ $(wildcard include/config/pm/generic/domains.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ratelimit.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/overflow.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/device.h \\ $(wildcard include/config/iommu/api.h) \\ $(wildcard include/config/xen.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pm_wakeup.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/module.h \\ $(wildcard include/config/modules/tree/lookup.h) \\ $(wildcard include/config/module/sig.h) \\ $(wildcard include/config/kallsyms.h) \\ $(wildcard include/config/tracepoints.h) \\ $(wildcard include/config/event/tracing.h) \\ $(wildcard include/config/module/unload.h) \\ $(wildcard include/config/constructors.h) \\ $(wildcard include/config/function/error/injection.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kmod.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/umh.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sysctl.h \\ $(wildcard include/config/sysctl.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sysctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/elf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/elf.h \\ arch/arm64/include/generated/asm/user.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/user.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/elf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/elf-em.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/moduleparam.h \\ $(wildcard include/config/alpha.h) \\ $(wildcard include/config/ia64.h) \\ $(wildcard include/config/ppc64.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rbtree_latch.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/error-injection.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/error-injection.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/tracepoint-defs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/static_key.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/module.h \\ $(wildcard include/config/arm64/module/plts.h) \\ $(wildcard include/config/dynamic/ftrace.h) \\ $(wildcard include/config/randomize/base.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/module.h \\ $(wildcard include/config/have/mod/arch/specific.h) \\ $(wildcard include/config/modules/use/elf/rel.h) \\ $(wildcard include/config/modules/use/elf/rela.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/slab.h \\ $(wildcard include/config/debug/slab.h) \\ $(wildcard include/config/failslab.h) \\ $(wildcard include/config/have/hardened/usercopy/allocator.h) \\ $(wildcard include/config/slab.h) \\ $(wildcard include/config/slub.h) \\ $(wildcard include/config/slob.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kasan.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/of.h \\ $(wildcard include/config/of/dynamic.h) \\ $(wildcard include/config/sparc.h) \\ $(wildcard include/config/of/promtree.h) \\ $(wildcard include/config/of/kobj.h) \\ $(wildcard include/config/of/numa.h) \\ $(wildcard include/config/of/resolve.h) \\ $(wildcard include/config/of/overlay.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mod_devicetable.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uuid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/uuid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/property.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/fwnode.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/usb/phy.h \\ $(wildcard include/config/usb/phy.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/extcon.h \\ $(wildcard include/config/extcon.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/usb.h \\ $(wildcard include/config/usb/mon.h) \\ $(wildcard include/config/acpi.h) \\ $(wildcard include/config/usb/led/trig.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/usb/ch9.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/usb/ch9.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/delay.h \\ arch/arm64/include/generated/asm/delay.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/delay.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/interrupt.h \\ $(wildcard include/config/irq/forced/threading.h) \\ $(wildcard include/config/generic/irq/probe.h) \\ $(wildcard include/config/proc/fs.h) \\ $(wildcard include/config/irq/timings.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/irqreturn.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/irqnr.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/irqnr.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/hardirq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ftrace_irq.h \\ $(wildcard include/config/ftrace/nmi/enter.h) \\ $(wildcard include/config/hwlat/tracer.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/vtime.h \\ $(wildcard include/config/virt/cpu/accounting.h) \\ $(wildcard include/config/irq/time/accounting.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/context_tracking_state.h \\ $(wildcard include/config/context/tracking.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/hardirq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/irq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/irq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/irq_cpustat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/fs.h \\ $(wildcard include/config/fs/posix/acl.h) \\ $(wildcard include/config/cgroup/writeback.h) \\ $(wildcard include/config/ima.h) \\ $(wildcard include/config/fsnotify.h) \\ $(wildcard include/config/fs/encryption.h) \\ $(wildcard include/config/epoll.h) \\ $(wildcard include/config/file/locking.h) \\ $(wildcard include/config/quota.h) \\ $(wildcard include/config/fs/dax.h) \\ $(wildcard include/config/mandatory/file/locking.h) \\ $(wildcard include/config/migration.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/wait_bit.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kdev_t.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/kdev_t.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dcache.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rculist_bl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/list_bl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bit_spinlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/lockref.h \\ $(wildcard include/config/arch/use/cmpxchg/lockref.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stringhash.h \\ $(wildcard include/config/dcache/word/access.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/hash.h \\ $(wildcard include/config/have/arch/hash.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/path.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/list_lru.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/shrinker.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/xarray.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mm_types.h \\ $(wildcard include/config/have/aligned/struct/page.h) \\ $(wildcard include/config/userfaultfd.h) \\ $(wildcard include/config/have/arch/compat/mmap/bases.h) \\ $(wildcard include/config/membarrier.h) \\ $(wildcard include/config/aio.h) \\ $(wildcard include/config/mmu/notifier.h) \\ $(wildcard include/config/hmm.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/auxvec.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/auxvec.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/auxvec.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uprobes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/mmu.h \\ $(wildcard include/config/unmap/kernel/at/el0.h) \\ $(wildcard include/config/harden/branch/predictor.h) \\ $(wildcard include/config/harden/el2/vectors.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/capability.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/capability.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/semaphore.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/fiemap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/migrate_mode.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu-rwsem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcuwait.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcu_sync.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/delayed_call.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/errseq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ioprio.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/rt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/iocontext.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/fs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/limits.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/ioctl.h \\ arch/arm64/include/generated/uapi/asm/ioctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/ioctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/ioctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/quota.h \\ $(wildcard include/config/quota/netlink/interface.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu_counter.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/dqblk_xfs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dqblk_v1.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dqblk_v2.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dqblk_qtree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/projid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/quota.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/nfs_fs_i.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pm_runtime.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/usb/charger.h \\ drivers/usb/phy/phy.o: $(deps_drivers/usb/phy/phy.o) $(deps_drivers/usb/phy/phy.o): ",16344,True,5338.61695558889,median "@ECHO OFF & :: ANSI-COLOR :: Authored by Ryan Beesley :: https://github.com/rbeesley GOTO :DEFINE_MACROS %=- Entry point after macro definitions -=% :MAIN SETLOCAL ENABLEDELAYEDEXPANSION CALL :PARSE_ARGS %1 %2 %3 %4 %5 %6 %7 %8 %9 :: Error when parsing IF ERRORLEVEL 1 %@exit% %ERRORLEVEL% :: Parsing success IF ERRORLEVEL 0 GOTO :CONFIGURATION :: Help requested, but this shouldn't actually be an error from CMD's perspective IF ERRORLEVEL -1 %@exit% 0 %=- Configuration -=% :CONFIGURATION :: Default test text if not defined in the data segment SET ""CELL= gYw "" :: Uncomment to use UTF-8 for output, such as when the test text is Unicode REM SET ""SHOW.UTF8=#TRUE#"" :: Uncomment to disable the spinner and speed up processing REM SET ""SPINNER.DISABLED=#TRUE#"" :: Uncomment to display the ANSI Escape Sequence control characters REM SET ""SHOW.ANSI=#TRUE#"" :: Uncomment to show cell R1C1 reference addressing instead of cell text REM SET ""SHOW.R1C1_REFERENCE=#TRUE#"" %=- End Configuration -=% %=- Data Segment -=% GOTO :END_DATA_SEGMENT :: Complete matrix of SGR parameters available :: This definition also demonstrates the various configuration changes :: which are used to control the way the table is generated __DATA__ :: Select Graphic Rendition (SGR) parameters :: #NUL# is treated as a special case to provide cells in that column :: or row, but there is no row or column value applied to the cell. :: This has the effect that the row or column has no SGR parameter applied :: and so this will show the default. :: #SPC# is a special case which can be used to make gaps in the table. :: Whereas #NUL# still outputs the CELL text, #SPC# won't show anything in :: that row. #SPC# can be used in columns to also provide a gap which matches :: cell width. :: #LBL# is also a special case similar to #SPC#. #LBL# makes it possible to :: write a text label in the middle of a generated table for a particular row. :: Formatting can be applied to the labels and an SGR RESET is automatically :: applied at the end of the string. __TABLE__ :: If the definition is defined using Unicode characters, uncomment and include :: the following line in the __TABLE__ section of the definition file. REM SET ""UTF8.REQUIRED=#TRUE#"" :: The test text SET ""STUBHEAD=SGR"" :: Alignment properties for the cells and headers REM SET ""ALIGN.CELL=C"" REM SET ""ALIGN.BOXHEAD=R"" REM SET ""ALIGN.STUB=L"" REM SET ""ALIGN.STUBHEAD=C"" :: Separator characters for cells and headers REM SET ""SEPARATOR.STUB= "" REM SET ""SEPARATOR.STUB=│"" & :: UTF-8 REM SET ""SEPARATOR.BOXHEAD= "" REM SET ""SEPARATOR.BOXHEAD=─"" & :: UTF-8 SET ""SEPARATOR.COL= "" REM SET ""SEPARATOR.COL=╎"" REM SET ""SEPARATOR.STUBHEAD_BOXHEAD= "" REM SET ""SEPARATOR.STUBHEAD_BOXHEAD=:"" REM SET ""SEPARATOR.STUBHEAD_BOXHEAD=│"" & :: UTF-8 REM SET ""SEPARATOR.STUBHEAD_BOXHEAD=▓▓"" & :: UTF-8 REM SET ""SEPARATOR.STUBHEAD_STUB= "" REM SET ""SEPARATOR.STUBHEAD_STUB=-"" REM SET ""SEPARATOR.STUBHEAD_STUB=─"" & :: UTF-8 REM SET ""SEPARATOR.STUBHEAD_STUB=▓"" & :: UTF-8 REM SET ""SEPARATOR.INTERSECT= "" REM SET ""SEPARATOR.INTERSECT=┼"" & :: UTF-8 REM SET ""SEPARATOR.INTERSECT=┘"" & :: UTF-8 REM SET ""SEPARATOR.INTERSECT=▓▒▒░"" & :: UTF-8 REM SET ""SEPARATOR.INTERSECT=+"" REM SET ""SEPARATOR.BOXHEAD_BODY= "" REM SET ""SEPARATOR.BOXHEAD_BODY=─"" & :: UTF-8 REM SET ""SEPARATOR.BOXHEAD_BODY=░"" & :: UTF-8 REM SET ""SEPARATOR.STUB_BODY= "" REM SET ""SEPARATOR.STUB_BODY=│"" & :: UTF-8 REM SET ""SEPARATOR.STUB_BODY=░░"" & :: UTF-8 REM SET ""SEPARATOR.BOXHEADERS= "" REM SET ""SEPARATOR.BOXHEADERS=╎"" & :: UTF-8 REM SET ""SEPARATOR.CELL= "" REM SET ""SEPARATOR.CELL=╎"" & :: UTF-8 :: Conditional definitions like this must be one line per statement :: and can be used to define how to fall back to ANSI if Unicode isn't supported IF DEFINED SHOW.UTF8 (SET ""SEPARATOR.STUBHEAD_BOXHEAD=│"") ELSE (SET ""SEPARATOR.STUBHEAD_BOXHEAD=:"") IF DEFINED SHOW.UTF8 (SET ""SEPARATOR.STUBHEAD_STUB=─"") ELSE (SET ""SEPARATOR.STUBHEAD_STUB=-"") IF DEFINED SHOW.UTF8 (SET ""SEPARATOR.INTERSECT=┘"") ELSE (SET ""SEPARATOR.INTERSECT=+"") :: You can also define control for formatting SET ""SECTION=!CSI!1;4m"" __TABLE:END__ :: Background __COLS__ #NUL# REM 1m REM 2m REM 3m REM 4m REM 5m REM 6m REM 7m REM 8m REM 9m REM 21m 40m 100m 41m 101m 42m 102m 43m 103m 44m 104m 45m 105m 46m 106m 47m 107m __COLS:END__ :: [Intensity;][Attribute;]Foreground __ROWS__ #NUL# #SPC# :: Attributes #LBL# !SECTION!Attributes 1m 2m 3m 4m 5m 6m 7m 8m 9m REM 10m REM 11m REM 12m REM 13m REM 14m REM 15m REM 16m REM 17m REM 18m REM 19m REM 20m 21m REM 22m REM 23m REM 24m REM 25m REM 26m REM 27m REM 28m REM 29m #SPC# :: Normal #LBL# !SECTION!Normal 30m 90m 31m 91m 32m 92m 33m 93m 34m 94m 35m 95m 36m 96m 37m 97m #SPC# :: Bold or increased intensity, 1 #LBL# !SECTION!Bold or increased intensity, 1 1;30m 1;90m 1;31m 1;91m 1;32m 1;92m 1;33m 1;93m 1;34m 1;94m 1;35m 1;95m 1;36m 1;96m 1;37m 1;97m #SPC# :: Faint (decreased intensity), 2 #LBL# !SECTION!Faint (decreased intensity), 2 2;30m 2;90m 2;31m 2;91m 2;32m 2;92m 2;33m 2;93m 2;34m 2;94m 2;35m 2;95m 2;36m 2;96m 2;37m 2;97m #SPC# :: Italic, 3 #LBL# !SECTION!Italic, 3 3;30m 3;90m 3;31m 3;91m 3;32m 3;92m 3;33m 3;93m 3;34m 3;94m 3;35m 3;95m 3;36m 3;96m 3;37m 3;97m #SPC# :: Underline, 4 #LBL# !SECTION!Underline, 4 4;30m 4;90m 4;31m 4;91m 4;32m 4;92m 4;33m 4;93m 4;34m 4;94m 4;35m 4;95m 4;36m 4;96m 4;37m 4;97m #SPC# :: Slow Blink, 5 #LBL# !SECTION!Slow Blink, 5 5;30m 5;90m 5;31m 5;91m 5;32m 5;92m 5;33m 5;93m 5;34m 5;94m 5;35m 5;95m 5;36m 5;96m 5;37m 5;97m #SPC# :: Rapid Blink, 6 #LBL# !SECTION!Rapid Blink, 6 6;30m 6;90m 6;31m 6;91m 6;32m 6;92m 6;33m 6;93m 6;34m 6;94m 6;35m 6;95m 6;36m 6;96m 6;37m 6;97m #SPC# :: Reverse video, 7 #LBL# !SECTION!Reverse video, 7 7;30m 7;90m 7;31m 7;91m 7;32m 7;92m 7;33m 7;93m 7;34m 7;94m 7;35m 7;95m 7;36m 7;96m 7;37m 7;97m #SPC# :: Conceal, 8 #LBL# !SECTION!Conceal, 8 8;30m 8;90m 8;31m 8;91m 8;32m 8;92m 8;33m 8;93m 8;34m 8;94m 8;35m 8;95m 8;36m 8;96m 8;37m 8;97m #SPC# :: Crossed-out, 9 #LBL# !SECTION!Crossed-out, 9 9;30m 9;90m 9;31m 9;91m 9;32m 9;92m 9;33m 9;93m 9;34m 9;94m 9;35m 9;95m 9;36m 9;96m 9;37m 9;97m #SPC# :: Double Underline, 21 #LBL# !SECTION!Double Underline, 21 21;30m 21;90m 21;31m 21;91m 21;32m 21;92m 21;33m 21;93m 21;34m 21;94m 21;35m 21;95m 21;36m 21;96m 21;37m 21;97m __ROWS:END__ __DATA:END__ :END_DATA_SEGMENT %=- End Data Segment -=% %=- Main Script -=% SETLOCAL ENABLEDELAYEDEXPANSION :INITIALIZATION :: Configure ANSI escape sequences. This has a dependency on PowerShell for creating the escape code REM FOR /F ""tokens=* USEBACKQ"" %%G IN (`PowerShell -Command ""[char]0x1B""`) DO (SET ""ESC=%%G"") :: Otherwise you need to use an unprintable character SET ""ESC="" :: If we're going to display the ANSI Escape Sequence control characters :: we require UTF-8, will disable the spinner, and override the ANSI ESC :: character with a Unicode codepoint which represents ESC. IF DEFINED SHOW.ANSI ( SET ""UTF8.REQUIRED=#TRUE#"" SET ""SPINNER.DISABLED=#TRUE#"" ) :: The console (CMD) is normally not UTF-8, so preserve the codepage so we can reset it. :: Because the output of CHCP is localized, we grab the last value of the string, :: which we have our fingers crossed, will be the codepage. FOR /F ""tokens=*"" %%_ IN ('chcp 2^>^&1 ^& FOR /F %%_ IN ^(""ERRORLEVEL""^) DO @CALL ECHO __ERRORLEVEL__:%%%%_%%') DO ( SET CHCP_OUT=%%_ :: Check if the CHCP call failed IF [""!CHCP_OUT:~0,15!""] EQU [""__ERRORLEVEL__:""] ( SET ""CHCP_ERR=!CHCP_OUT:__ERRORLEVEL__:=!"" IF [!CHCP_ERR!] NEQ [0] ( :: This means that the call to CHCP failed ECHO Warning: Error reading the active codepage, check the output from the command CHCP. IF DEFINED SHOW.UTF8 ( :: UTF-8 support is required if SHOW.UTF8 is defined, so error out ECHO. ECHO Error: UTF-8 support is required for the definition file in use or flags provided. :: Since this was fatal, also pass the error code received trying to call CHCP %@exit% !CHCP_ERR! ) ELSE ( :: If UTF-8 support isn't required, maybe we can swallow this error and still show ANSI definition file SET ""SHOW.UTF8="" :: Clear the CHCP_RET value as nothing returned should be considered valid SET ""CHCP_RET="" ) ) ) ELSE ( SET ""CHCP_RET=!CHCP_OUT!"" ) ) :: If we didn't get an error, read the last value of the output string FOR %%_ IN (!CHCP_RET!) DO (SET CHCP=%%_) IF DEFINED CHCP ( IF [!CHCP!] EQU [65001] ( :: If the CHCP value was 65001, we can show UTF8 and we don't need to check more SET ""SHOW.UTF8=#TRUE#"" ) ELSE ( :: Otherwise we now want to set the codepage to 65001 and exit with the error if that fails IF DEFINED SHOW.UTF8 ( chcp 65001 > NUL 2>&1 IF ERRORLEVEL 1 ( ECHO Error: Unable to set the active codepage %@exit% %ErrorLevel% ) ) ) ) SET ""CHCP_OUT="" SET ""CHCP_ERR="" SET ""CHCP_RET="" :: This is a separate code block from the test above so that the active console Code Page :: is changed first. If we want to show the ANSI characters rather than actually drawing :: them, we need to replace ESC with a Unicode codepoint which represents ESC. We do this :: now that UTF8 has been configured for the console and before we define the CSI commands. IF DEFINED SHOW.ANSI ( SET ""ESC=␛"" ) :: Control Sequence Introducer (CSI) SET ""CSI=!ESC!["" :: Cursor Up SET ""CUU=!CSI!A"" :: Cursor Down SET ""CUD=!CSI!B"" :: Cursor Forward SET ""CUF=!CSI!C"" :: Cursor Back SET ""CUB=!CSI!D"" :: Cursor Previous Line // will work like a CR without LF when appended to an echo SET ""CPL=!CSI!F"" :: Select Graphic Rendition (SGR) Reset // reset colors and attributes SET ""RESET=!CSI!m"" :: We will want to calculate the max widths as we process the data segment SET /A STUB.MAX_WIDTH=0 SET /A COL.MAX_WIDTH=0 :: If showing the R1C1 reference address of each cell instead of the cell value, assume :: there will be at most R999C99 cells and set the width at 7 IF DEFINED SHOW.R1C1_REFERENCE ( SET /A COL.MAX_WIDTH=7 ) :: Default properties if not defined in the data segment :: See Figure 1.1 in the PDF for Wang Terminology :: https://uwspace.uwaterloo.ca/handle/10012/10962 :: Fields SET ""STUBHEAD="" :: Alignment SET ""ALIGN.CELL=C"" SET ""ALIGN.CELL.R1C1=R"" SET ""ALIGN.STUBHEAD=C"" SET ""ALIGN.BOXHEAD=C"" SET ""ALIGN.STUB=R"" SET ""ALIGN.STUBHEAD_STUB=C"" SET ""ALIGN.STUB_BODY=C"" SET ""ALIGN.BOXHEAD_BODY=C"" SET ""ALIGN.INTERSECT=C"" SET ""ALIGN.STUB_BOXHEAD_INTERSECT="" :: Separators SET ""SEPARATOR.STUB="" SET ""SEPARATOR.STUBHEAD_BOXHEAD="" SET ""SEPARATOR.STUB_BODY="" SET ""SEPARATOR.COL="" SET ""SEPARATOR.BOXHEADERS="" SET ""SEPARATOR.CELL="" SET ""SEPARATOR.STUBHEAD_STUB="" SET ""SEPARATOR.BOXHEAD_BODY="" SET ""SEPARATOR.BOXHEAD="" SET ""SEPARATOR.INTERSECT="" SET ""SEPARATOR.STUB_BOXHEAD_INTERSECT="" SET ""SEPARATOR.CELL_INTERSECT="" :: Flags SET ""SEPARATOR.VERTICAL="" SET ""SEPARATOR.HORIZONTAL="" SET ""SEPARATOR.COLUMN="" :: Read and parse the data, validate the configuration, calculate table headings, :: build the table, and show the table CALL :READ_DATA_SEGMENT IF ERRORLEVEL 1 %@exit% %ERRORLEVEL% CALL :VALIDATE_CONFIGURATION IF ERRORLEVEL 1 %@exit% %ERRORLEVEL% CALL :RESOLVE_SEPARATORS CALL :BUILD_TABLE CALL :DISPLAY_TABLE :: Restore the console Code Page saved at the beginning of the script IF DEFINED CHCP ( chcp !CHCP! > NUL 2>&1 IF ERRORLEVEL 1 ( ECHO Error: Unable to reset the active codepage %@exit% %ErrorLevel% ) ) :: Final blank line to match ColorTool.exe -c output and to improve screen readability ECHO. :: Exit %@exit% 0 :: Should never be reached ECHO Failed to EXIT cleanly CMD /C EXIT -1073741510 :: Routine to process the data segment of a file, used to build the table :READ_DATA_SEGMENT SET ""DATA_SEGMENT="" FOR /F ""delims="" %%_ IN (!DATA_FILE!) DO ( SET ""DATA=%%_"" IF /I [""!DATA:~0,12!""] EQU [""__ROWS:END__""] SET ""SEGMENT="" IF /I [""!DATA:~0,12!""] EQU [""__COLS:END__""] SET ""SEGMENT="" IF /I [""!DATA:~0,13!""] EQU [""__TABLE:END__""] SET ""SEGMENT="" IF /I [""!DATA:~0,12!""] EQU [""__DATA:END__""] SET ""DATA_SEGMENT="" IF DEFINED DATA_SEGMENT ( CALL :PARSE_DATA_SEGMENT !DATA! IF ERRORLEVEL 1 %@exit% %ERRORLEVEL% ) IF /I [""!DATA:~0,8!""] EQU [""__ROWS__""] ( SET ""SEGMENT=ROWS"" :: Initialize the row globals SET /A ROW[#]=0 SET /A ROWS.LEN=0 ) IF /I [""!DATA:~0,8!""] EQU [""__COLS__""] ( SET ""SEGMENT=COLS"" :: Initialize the column globals SET /A COL[#]=0 SET /A COLS.LEN=0 ) IF /I [""!DATA:~0,9!""] EQU [""__TABLE__""] ( SET ""SEGMENT=TABLE"" :: Initialize the table globals SET /A TABLE[#]=0 ) IF /I [""!DATA:~0,8!""] EQU [""__DATA__""] ( SET ""DATA_SEGMENT=#TRUE#"" SET ""SEGMENT="" ) ) %@exit% :: Process each segment type :PARSE_DATA_SEGMENT IF NOT DEFINED SEGMENT %@exit% SET ""DATA=%*"" :: We're parsing the data segment, so clean up the data before further processing %@trim% DATA :: Skip over any blank lines or comments IF NOT DEFINED DATA %@exit% IF /I [""!DATA!""] EQU [""REM""] %@exit% IF /I [""!DATA!""] EQU [""@REM""] %@exit% IF /I [""!DATA:~0,2!""] EQU [""::""] %@exit% IF /I [""!DATA:~0,4!""] EQU [""REM ""] %@exit% IF /I [""!DATA:~0,5!""] EQU [""@REM ""] %@exit% :: Advance and output the spinner animation if not disabled IF NOT DEFINED SPINNER.DISABLED ( %@spinner% SPINNER.FRAME ) :: Dispatch to TABLE, COLS, or ROWS parsing routines IF /I [""!SEGMENT!""] EQU [""TABLE""] CALL :PARSE_TABLE_DATA !DATA! IF /I [""!SEGMENT!""] EQU [""COLS""] CALL :PARSE_COLS_DATA !DATA! IF /I [""!SEGMENT!""] EQU [""ROWS""] CALL :PARSE_ROWS_DATA !DATA! %@exit% :PARSE_TABLE_DATA :: Only eval single line SET or IF statements SET ""DATA=%*"" IF /I [""!DATA:~0,4!""] EQU [""SET ""] GOTO :EVAL_TABLE_DATA IF /I [""!DATA:~0,3!""] EQU [""IF ""] GOTO :EVAL_TABLE_DATA %@exit% :EVAL_TABLE_DATA :: Eval the TABLE data directly %* :: If there is an error, we want to catch it IF ERRORLEVEL 1 %@exit% %ERRORLEVEL% :: Otherwise just exit the routine %@exit% :PARSE_COLS_DATA SET ""COL=%*"" :: Set the column header text and track the max width IF [""!COL:~0,1!""] EQU [""#""] ( IF [""!COL:~4,1!""] EQU [""#""] ( :: Special case for #???# tokens SET /A ""COL.LEN=0"" ) ELSE ( %@strlen% COL COL.LEN ) ) ELSE ( %@strlen% COL COL.LEN ) %@maxval% COL.MAX_WIDTH COL.LEN :: Set the col index and store value SET /A COL[#]+=1 SET ""COL[!COL[#]!]=!COL!"" %@exit% :PARSE_ROWS_DATA SET ""ROW=%*"" :: Set the row header text IF [""!ROW:~0,1!""] EQU [""#""] ( IF [""!ROW:~4,1!""] EQU [""#""] ( :: Special case for #???# tokens SET /A ""ROW.LEN=0"" ) ELSE ( %@strlen% ROW ROW.LEN ) ) ELSE ( %@strlen% ROW ROW.LEN ) %@maxval% STUB.MAX_WIDTH ROW.LEN :: Set the row index and store value SET /A ROW[#]+=1 SET ""ROW[!ROW[#]!]=!ROW!"" %@exit% :: Validate that we can render the definition file :VALIDATE_CONFIGURATION :: Does the definition require UTF-8 IF DEFINED UTF8.REQUIRED ( IF NOT DEFINED SHOW.UTF8 ( SET ""SCRIPT_NAME=%~nx0"" SET ""MSG=Error: UTF-8 console support is required.!LF! Try ^""!SCRIPT_NAME! /U [^]^"" to enable UTF-8 support!LF! or change the default configuration in !SCRIPT_NAME! to always use UTF-8."" CALL :USAGE MSG %@exit% 1 ) ) %@exit% :RESOLVE_SEPARATORS :: There's a lot to consider with separators in trying to do what is best :: for the definition author. Look at the separator.def, ansi-colortool.def, :: and fgbg.def for examples for how to most effectively manage this. :: Separators have cascading effects, so if some are not defined this is where :: they are defined. :: Define the column separator :: :: SEPARATOR.COL is the default column separator and it will be overridden :: by SEPARATOR.BOXHEADERS or SEPARATOR.CELL. :: If SEPARATOR.COL is not defined, and SEPARATOR.BOXHEADERS is defined :: but SEPARATOR.CELL is not defined, or vice versa, then the undefined :: separator will be defined with a space to preserve proper separation. IF DEFINED SEPARATOR.COL ( SET ""SEPARATOR.COLUMN=#TRUE#"" IF NOT DEFINED SEPARATOR.BOXHEADERS ( SET ""SEPARATOR.BOXHEADERS=!SEPARATOR.COL!"" ) IF NOT DEFINED SEPARATOR.CELL ( SET ""SEPARATOR.CELL=!SEPARATOR.COL!"" ) ) ELSE ( IF DEFINED SEPARATOR.BOXHEADERS ( SET ""SEPARATOR.COLUMN=#TRUE#"" IF NOT DEFINED SEPARATOR.CELL ( SET ""SEPARATOR.CELL= "" ) ) IF DEFINED SEPARATOR.CELL ( SET ""SEPARATOR.COLUMN=#TRUE#"" IF NOT DEFINED SEPARATOR.BOXHEADERS ( SET ""SEPARATOR.BOXHEADERS= "" ) ) ) :: Define the vertical separator :: :: SEPARATOR.STUB is the default vertical separator and it will be :: overridden by SEPARATOR.STUBHEAD_BOXHEAD or SEPARATOR.STUB_BODY. :: If SEPARATOR.STUB is not defined, and SEPARATOR.STUB_BODY is defined :: but SEPARATOR.STUBHEAD_BOXHEAD is not defined, or vice versa, then :: the undefined separator will be defined with a space to preserve :: proper separation. IF DEFINED SEPARATOR.STUB ( SET ""SEPARATOR.VERTICAL=#TRUE#"" IF NOT DEFINED SEPARATOR.STUBHEAD_BOXHEAD ( SET ""SEPARATOR.STUBHEAD_BOXHEAD=!SEPARATOR.STUB!"" ) IF NOT DEFINED SEPARATOR.STUB_BODY ( SET ""SEPARATOR.STUB_BODY=!SEPARATOR.STUB!"" ) ) ELSE ( IF DEFINED SEPARATOR.STUB_BODY ( SET ""SEPARATOR.VERTICAL=#TRUE#"" IF NOT DEFINED SEPARATOR.STUBHEAD_BOXHEAD ( SET ""SEPARATOR.STUBHEAD_BOXHEAD= "" ) ) IF DEFINED SEPARATOR.STUBHEAD_BOXHEAD ( SET ""SEPARATOR.VERTICAL=#TRUE#"" IF NOT DEFINED SEPARATOR.STUB_BODY ( SET ""SEPARATOR.STUB_BODY= "" ) ) ) :: If there is no vertical separator defined, but there is a column separator :: assume that the column separator should be uniformally applied. This can be :: forcibly overridden by putting SET ""SEPARATOR.VERTICAL=#TRUE#"" in the table :: definition and leaving SEPARATOR.STUBHEAD_BOXHEAD and SEPARATOR.STUB_BODY :: undefined. IF NOT DEFINED SEPARATOR.VERTICAL ( IF DEFINED SEPARATOR.COLUMN ( SET ""SEPARATOR.VERTICAL=#TRUE#"" SET ""SEPARATOR.STUBHEAD_BOXHEAD=!SEPARATOR.BOXHEADERS!"" SET ""SEPARATOR.STUB_BODY=!SEPARATOR.CELL!"" IF NOT DEFINED SEPARATOR.INTERSECT ( SET ""SEPARATOR.INTERSECT=!SEPARATOR.CELL_INTERSECT!"" ) IF NOT DEFINED SEPARATOR.CELL_INTERSECT ( SET ""SEPARATOR.CELL_INTERSECT=!SEPARATOR.INTERSECT!"" ) ) ) :: Define the horizontal separator :: :: SEPARATOR.BOXHEAD is the default horizontal separator and it will be :: overridden by SEPARATOR.STUBHEAD_STUB or SEPARATOR.BOXHEAD_BODY. :: If SEPARATOR.BOXHEAD is not defined and SEPARATOR.BOXHEAD_BODY is defined :: but SEPARATOR.STUBHEAD_STUB is not defined, SEPARATOR.STUBHEAD_STUB will :: be defined with a space so that there is proper separation. :: SEPARATOR.BOXHEAD_BODY does not need this treatment as a newline is an :: adequate replacement for trailing spaces. IF DEFINED SEPARATOR.BOXHEAD ( SET ""SEPARATOR.HORIZONTAL=#TRUE#"" IF NOT DEFINED SEPARATOR.STUBHEAD_STUB ( SET ""SEPARATOR.STUBHEAD_STUB=!SEPARATOR.BOXHEAD!"" ) IF NOT DEFINED SEPARATOR.BOXHEAD_BODY ( SET ""SEPARATOR.BOXHEAD_BODY=!SEPARATOR.BOXHEAD!"" ) ) ELSE ( IF DEFINED SEPARATOR.STUBHEAD_STUB ( SET ""SEPARATOR.HORIZONTAL=#TRUE#"" ) IF DEFINED SEPARATOR.BOXHEAD_BODY ( SET ""SEPARATOR.HORIZONTAL=#TRUE#"" IF NOT DEFINED SEPARATOR.STUBHEAD_STUB ( SET ""SEPARATOR.STUBHEAD_STUB= "" ) ) ) :: SEPARATOR.INTERSECT is intended to be a friendlier name of SEPARATOR.STUB_BOXHEAD_INTERSECT :: Only one should be defined with a non-space character. IF DEFINED SEPARATOR.INTERSECT ( IF NOT DEFINED SEPARATOR.STUB_BOXHEAD_INTERSECT ( SET ""SEPARATOR.STUB_BOXHEAD_INTERSECT=!SEPARATOR.INTERSECT!"" ) ELSE ( ECHO Warning: SEPARATOR.STUB_BOXHEAD_INTERSECT definition overriding SEPARATOR.INTERSECT ) ) :: Determine if we need an intersect and if it wasn't already defined :: decide what makes the most sense based on other separators, either :: trying to extend the vertical default or the horizontal default. :: If default vertical or horizontal separators weren't used, it is an :: advanced definition and the intersect should have been provided, :: so with no better guidance we define it as a space. IF DEFINED SEPARATOR.VERTICAL ( IF DEFINED SEPARATOR.HORIZONTAL ( :: Both vertical and horizontal separators are defined IF NOT DEFINED SEPARATOR.STUB_BOXHEAD_INTERSECT ( :: But no intersect was actually defined IF DEFINED SEPARATOR.STUB ( :: A default vertical separator is already defined IF NOT DEFINED SEPARATOR.BOXHEAD ( :: but not a default horizontal, so extend the vertical SET ""SEPARATOR.STUB_BOXHEAD_INTERSECT=!SEPARATOR.STUB!"" ) ELSE ( :: SEPARATOR.INTERSECT should be defined by the definition, just provide a space SET ""SEPARATOR.STUB_BOXHEAD_INTERSECT= "" ) ) ELSE ( :: There is no default vertical separator IF DEFINED SEPARATOR.BOXHEAD ( :: but there is a default horizontal, so extend the horizontal SET ""SEPARATOR.STUB_BOXHEAD_INTERSECT=!SEPARATOR.BOXHEAD!"" ) ELSE ( :: SEPARATOR.INTERSECT should be defined by the definition, just provide a space SET ""SEPARATOR.STUB_BOXHEAD_INTERSECT= "" ) ) ) ) ELSE ( :: Both a vertical and horizontal separator are needed for a SEPARATOR.INTERSECT, so undefine SET ""SEPARATOR.STUB_BOXHEAD_INTERSECT="" ) ) ELSE ( :: Both a vertical and horizontal separator are needed for a SEPARATOR.INTERSECT, so undefine SET ""SEPARATOR.STUB_BOXHEAD_INTERSECT="" ) :: If SEPARATOR.CELL_INTERSECT is not defined, but SEPARATOR.BOXHEAD_BODY is defined, :: see if SEPARATOR.COLS, SEPARATOR.CELL, or SEPARATOR.BOXHEADERS is defined and extend :: SEPARATOR.BOXHEAD_BODY for SEPARATOR.CELL_INTERSECT as default. IF NOT DEFINED SEPARATOR.CELL_INTERSECT ( IF DEFINED SEPARATOR.BOXHEAD_BODY ( IF DEFINED SEPARATOR.COL ( SET ""SEPARATOR.CELL_INTERSECT=!SEPARATOR.BOXHEAD_BODY!"" ) ELSE IF DEFINED SEPARATOR.CELL ( SET ""SEPARATOR.CELL_INTERSECT=!SEPARATOR.BOXHEAD_BODY!"" ) ELSE IF DEFINED SEPARATOR.BOXHEADERS ( SET ""SEPARATOR.CELL_INTERSECT=!SEPARATOR.BOXHEAD_BODY!"" ) ) ) :: SEPARATOR.CELL_INTERSECT only applies if SEPARATOR.BOXHEADERS, SEPARATOR.COL, or SEPARATOR.CELL is defined IF DEFINED SEPARATOR.CELL_INTERSECT ( IF NOT DEFINED SEPARATOR.BOXHEADERS ( IF NOT DEFINED SEPARATOR.COL ( IF NOT DEFINED SEPARATOR.CELL ( SET ""SEPARATOR.CELL_INTERSECT="" ) ) ) ) :: Now with all the separators resolved, determine the maximum vertical width in :: the stub separators. This is the only category of separators supported to be :: more than a character wide because it can be calculated in a column whereas :: a horizontal separator would require multiple lines and that hasn't been :: implemented. Boxhead and Cell separators could conceivably be more than a :: character, but that would quickly take up more space as it is multiplied out. IF DEFINED SEPARATOR.VERTICAL ( SET /A ""SEPARATOR.VERTICAL.WIDTH=0"" %@strlen% SEPARATOR.STUBHEAD_BOXHEAD SEPARATOR.WIDTH %@maxval% SEPARATOR.VERTICAL.WIDTH SEPARATOR.WIDTH %@strlen% SEPARATOR.STUB_BOXHEAD_INTERSECT SEPARATOR.WIDTH %@maxval% SEPARATOR.VERTICAL.WIDTH SEPARATOR.WIDTH %@strlen% SEPARATOR.STUB_BODY SEPARATOR.WIDTH %@maxval% SEPARATOR.VERTICAL.WIDTH SEPARATOR.WIDTH IF DEFINED SEPARATOR.STUBHEAD_BOXHEAD ( %@align% SEPARATOR.STUBHEAD_BOXHEAD !SEPARATOR.VERTICAL.WIDTH! C SEPARATOR.STUBHEAD_BOXHEAD ) IF DEFINED SEPARATOR.STUB_BOXHEAD_INTERSECT ( %@align% SEPARATOR.STUB_BOXHEAD_INTERSECT !SEPARATOR.VERTICAL.WIDTH! C SEPARATOR.STUB_BOXHEAD_INTERSECT ) IF DEFINED SEPARATOR.STUB_BODY ( %@align% SEPARATOR.STUB_BODY !SEPARATOR.VERTICAL.WIDTH! C SEPARATOR.STUB_BODY ) ) %@exit% :: At this point, the table is defined only in terms of the Stub and Boxhead :: BUILD_TABLE takes those definitions and populates the cells :BUILD_TABLE :: Build the Stub head IF NOT DEFINED STUBHEAD ( %@repeat% #SPC# !STUB.MAX_WIDTH! STUBHEAD ) %@strlen% STUBHEAD STUBHEAD.WIDTH %@maxval% STUB.MAX_WIDTH STUBHEAD.WIDTH IF DEFINED SEPARATOR.HORIZONTAL ( %@strlen% SEPARATOR.STUBHEAD_STUB STUBHEAD.WIDTH %@maxval% STUB.MAX_WIDTH STUBHEAD.WIDTH ) %@align% STUBHEAD !STUB.MAX_WIDTH! !ALIGN.STUBHEAD! STUBHEAD SET ""LINE=!STUBHEAD!!SEPARATOR.STUBHEAD_BOXHEAD!"" :: Line = Stub head + Stub separator, still missing Boxhead column headers :: The test text might be wider than the column headers, so check that now %@strlen% CELL CELL.LEN %@maxval% COL.MAX_WIDTH CELL.LEN :: Build the boxheader :: Append a column header SET ""BOXHEAD="" FOR /L %%c IN (1,1,!COL[#]!) DO ( SET ""COL=!COL[%%c]!"" SET ""COL.VALUE=#SPC#"" & %@align% COL !COL.MAX_WIDTH! !ALIGN.BOXHEAD! COL.VALUE IF [%%c] EQU [1] ( SET ""BOXHEAD=!COL.VALUE!"" ) ELSE ( SET ""BOXHEAD=!BOXHEAD!!SEPARATOR.BOXHEADERS!!COL.VALUE!"" ) ) %@strlen% BOXHEAD BOXHEAD.WIDTH SET ""LINE=!LINE!!BOXHEAD!"" %@strlen% LINE TABLE.WIDTH :: Save the line to the TABLE SET /A TABLE[#]+=1 SET ""TABLE[!TABLE[#]!]=!LINE!"" :: Add a horizontal separator if defined IF DEFINED SEPARATOR.HORIZONTAL ( SET ""LINE="" SET ""SEPARATOR="" %@strlen% SEPARATOR.STUBHEAD_STUB SEPARATOR.WIDTH IF [!SEPARATOR.WIDTH!] EQU [1] ( :: If the SEPARATOR.STUBHEAD_STUB is a single character, repeat it IF DEFINED SEPARATOR.STUBHEAD_STUB ( %@repeat% SEPARATOR.STUBHEAD_STUB !STUB.MAX_WIDTH! SEPARATOR) ) ELSE ( :: Otherwise align it based on the defined ALIGN.STUBHEAD_STUB IF DEFINED SEPARATOR.STUBHEAD_STUB ( %@align% SEPARATOR.STUBHEAD_STUB !STUB.MAX_WIDTH! !ALIGN.STUBHEAD_STUB! SEPARATOR ) ) SET ""LINE=!LINE!!SEPARATOR!"" :: ALIGN.INTERSECT is intended to be a friendlier name of ALIGN.STUB_BOXHEAD_INTERSECT IF DEFINED ALIGN.INTERSECT ( IF NOT DEFINED ALIGN.STUB_BOXHEAD_INTERSECT ( SET ""ALIGN.STUB_BOXHEAD_INTERSECT=!ALIGN.INTERSECT!"" ) ELSE ( ECHO Warning: ALIGN.STUB_BOXHEAD_INTERSECT definition overriding ALIGN.INTERSECT ) ) SET ""SEPARATOR="" %@strlen% SEPARATOR.STUB_BOXHEAD_INTERSECT SEPARATOR.WIDTH IF [!SEPARATOR.WIDTH!] EQU [1] ( :: If the SEPARATOR.STUB_BOXHEAD_INTERSECT is a single character, repeat it IF DEFINED SEPARATOR.STUB_BOXHEAD_INTERSECT ( %@repeat% SEPARATOR.STUB_BOXHEAD_INTERSECT !SEPARATOR.VERTICAL.WIDTH! SEPARATOR ) ) ELSE ( :: Otherwise align it based on the defined ALIGN.STUBHEAD IF DEFINED SEPARATOR.STUB_BOXHEAD_INTERSECT ( %@align% SEPARATOR.STUB_BOXHEAD_INTERSECT !SEPARATOR.VERTICAL.WIDTH! !ALIGN.STUB_BOXHEAD_INTERSECT! SEPARATOR ) ) SET ""LINE=!LINE!!SEPARATOR!"" SET ""SEPARATOR="" %@strlen% SEPARATOR.BOXHEAD_BODY SEPARATOR.WIDTH IF [!SEPARATOR.WIDTH!] EQU [1] ( IF DEFINED SEPARATOR.CELL_INTERSECT ( :: If there is a column intersect, we need to build the line out for each column, FOR /L %%c IN (2,1,!COL[#]!) DO ( :: Loop COL[#]-1 times so that we don't have too many segments %@repeat% SEPARATOR.BOXHEAD_BODY !COL.MAX_WIDTH! COLUMN SET ""LINE=!LINE!!COLUMN!!SEPARATOR.CELL_INTERSECT!"" ) :: Append the final column SET ""LINE=!LINE!!COLUMN!"" ) ELSE ( :: otherwise, if the SEPARATOR.BOXHEAD_BODY is a single character, repeat it for the width of the BOXHEAD IF DEFINED SEPARATOR.BOXHEAD_BODY ( %@repeat% SEPARATOR.BOXHEAD_BODY !BOXHEAD.WIDTH! SEPARATOR ) ) ) ELSE ( :: Otherwise align it based on the defined ALIGN.STUBHEAD IF DEFINED SEPARATOR.BOXHEAD_BODY ( %@align% SEPARATOR.BOXHEAD_BODY !BOXHEAD.WIDTH! !ALIGN.BOXHEAD_BODY! SEPARATOR ) ) SET ""LINE=!LINE!!SEPARATOR!"" SET /A TABLE[#]+=1 SET ""TABLE[!TABLE[#]!]=!LINE!"" ) :: If we're going to show an R1C1 reference, we don't need to compute the cell alignment IF DEFINED SHOW.R1C1_REFERENCE ( :: Set up the R1C1 row counter SET /A ""R1C1_REFERENCE.R=0"" ) ELSE ( :: Otherwise figure out the CELL alignment now so we only need to compute this once %@align% CELL !COL.MAX_WIDTH! !ALIGN.CELL! CELL ) :: Build the row FOR /L %%r IN (1,1,!ROW[#]!) DO ( :: Advance and output the spinner animation if not disabled IF NOT DEFINED SPINNER.DISABLED ( %@spinner% SPINNER.FRAME ) :: Build the stub for the row SET ""ROW=!ROW[%%r]!"" %@align% ROW !STUB.MAX_WIDTH! !ALIGN.STUB! ROW.VALUE SET ""SEPARATOR="" IF DEFINED SEPARATOR.VERTICAL ( %@strlen% SEPARATOR.STUB_BODY SEPARATOR.WIDTH IF [!SEPARATOR.WIDTH!] EQU [1] ( IF DEFINED SEPARATOR.STUB_BODY ( %@repeat% SEPARATOR.STUB_BODY !SEPARATOR.VERTICAL.WIDTH! SEPARATOR ) ) ELSE ( IF DEFINED SEPARATOR.STUB_BODY ( %@align% SEPARATOR.STUB_BODY !SEPARATOR.VERTICAL.WIDTH! !ALIGN.STUB_BODY! SEPARATOR ) ) ) IF /I [""!ROW:~0,5!""] EQU [""#SPC#""] ( :: We want a special case for #SPC# so that we print a blank line SET ""LINE="" ) ELSE IF /I [""!ROW:~0,5!""] EQU [""#LBL#""] ( :: We want a special case for #LBL# so that we print the string which follows and append an SGR RESET IF /I [""!ROW:~5,1!""] EQU ["" ""] ( :: Allow for a space to follow #LBL# SET ""LINE=!ROW:~6!!RESET!"" ) ELSE IF /I [""!ROW:~5,1!""] EQU ["".""] ( :: Allow for a period to follow #LBL# and treat it like space, to mimic ECHO SET ""LINE=!ROW:~6!!RESET!"" ) ELSE ( :: Assume that any other character is part of the label SET ""LINE=!ROW:~5!!RESET!"" ) ) ELSE ( :: Otherwise process the line SET ""LINE=!ROW.VALUE!!SEPARATOR!"" IF /I [""!ROW!""] EQU [""#NUL#""] ( SET ""ROW="" ) ELSE ( SET ""ROW=!CSI!!ROW!"" ) :: Set up the R1C1 column counter IF DEFINED SHOW.R1C1_REFERENCE ( SET /A ""R1C1_REFERENCE.C=0"" %@counter% R1C1_REFERENCE.R ) :: Append a cell to the row, adding separators unless processing the first column FOR /L %%c IN (1,1,!COL[#]!) DO ( :: This is where we actually build the R1C1 reference, replacing the CELL IF DEFINED SHOW.R1C1_REFERENCE ( %@counter% R1C1_REFERENCE.C SET ""R1C1_REFERENCE=R!R1C1_REFERENCE.R!C!R1C1_REFERENCE.C!"" %@align% R1C1_REFERENCE !COL.MAX_WIDTH! !ALIGN.CELL.R1C1! CELL ) IF /I [""!COL[%%c]!""] EQU [""#NUL#""] ( :: Special case for #NUL# IF [%%c] EQU [1] ( SET ""LINE=!LINE!!ROW!!CELL!!RESET!"" ) ELSE ( SET ""LINE=!LINE!!SEPARATOR.CELL!!ROW!!CELL!!RESET!"" ) ) ELSE IF /I [""!COL[%%c]!""] EQU [""#SPC#""] ( :: Special case for #SPC# %@repeat% #SPC# !COL.MAX_WIDTH! OUT IF [%%c] EQU [1] ( SET ""LINE=!LINE!!OUT!"" ) ELSE ( SET ""LINE=!LINE!!SEPARATOR.CELL!!OUT!"" ) :: Don't count spaces as columns for R1C1_REFERENCE SET /A ""R1C1_REFERENCE.C-=1"" ) ELSE ( :: Normal processing SET ""COL=!CSI!!COL[%%c]!"" IF [%%c] EQU [1] ( SET ""LINE=!LINE!!ROW!!COL!!CELL!!RESET!"" ) ELSE ( SET ""LINE=!LINE!!SEPARATOR.CELL!!ROW!!COL!!CELL!!RESET!"" ) ) ) ) :: Save the line to the TABLE SET /A TABLE[#]+=1 SET ""TABLE[!TABLE[#]!]=!LINE!"" ) %@exit% :DISPLAY_TABLE :: We use an out buffer to iterate through all the rows of the table :: This allows us to quickly display the output even though it takes :: time to figure out the alignment calculations FOR /L %%r IN (1,1,!TABLE[#]!) DO ( ECHO.!TABLE[%%r]! ) %@exit% %=- End Main Script -=% %=- Macro Definitions -=% :DEFINE_MACROS :: Return from this with GOTO :MAIN to retain macro definitions SETLOCAL DISABLEDELAYEDEXPANSION :: -------- Begin macro definitions ---------- (SET LF=^ %= This defines a Line Feed (0x0A) =% ) (SET \\n=^^^ %= This defines an escaped Line Feed (0x5E 0x0A) =% ) :: @strlen StrVar [RtnVar] :: :: Computes the length of string in variable StrVar :: and stores the result in variable RtnVar. :: If StrVar is #SPC#, the return val should be 1. :: If StrVar is any other Special Token, the return val should be 0. :: If RtnVar is not specified, then print the length to stdout. :: SET @strlen=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% FOR /F ""tokens=1,2 delims=, "" %%1 IN (""!argv!"") DO ( ENDLOCAL%\\n% SET ""s=A!%%~1!""%\\n% IF /I [""!s:~0,5!""] EQU [""#SPC#""] (%\\n% SET ""s= ""%\\n% ) ELSE IF /I [""!s:~0,1!""] EQU [""#""] (%\\n% IF /I [""!s:~4,1!""] EQU [""#""] (%\\n% :: Look for Special Tokens of the form #???# %\\n% SET ""s=""%\\n% )%\\n% )%\\n% SET ""len=0""%\\n% FOR %%P in (4096 2048 1024 512 256 128 64 32 16 8 4 2 1) DO (%\\n% IF [""!s:~%%P,1!""] NEQ [""""] (%\\n% SET /A ""len+=%%P""%\\n% SET ""s=!s:~%%P!""%\\n% )%\\n% )%\\n% FOR %%V IN (!len!) DO ENDLOCAL^&IF [""%%~2""] NEQ [""""] (SET ""%%~2=%%V"") ELSE (ECHO %%V)%\\n% )%\\n% ) ELSE SETLOCAL ENABLEDELAYEDEXPANSION^&SETLOCAL^&SET argv=, :: @maxval NumVar1 NumVar2 [RetVar] :: :: Compares NumVar1 with NumVar2, and assigns to RetVar. :: If RtnVar is not specified, then return the largest value :: back through NumVar1. :: :: It is recommended that NumVar1 will be accumulating the :: Max value passed through multiple subsequent calls, to :: determine the largest string passed in. :: SET @maxval=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% FOR /F ""tokens=1,2,3 delims=, "" %%1 IN (""!argv!"") DO ( ENDLOCAL%\\n% IF [!%%~1!] NEQ [] (SET /a ""a=!%%~1!"") ELSE (SET /a ""a=%%~1"")%\\n% IF [!%%~2!] NEQ [] (SET /a ""b=!%%~2!"") ELSE (SET /a ""b=%%~2"")%\\n% IF !b! GTR !a! (SET /a ""a=b"")%\\n% FOR %%V IN (!a!) DO ENDLOCAL^&IF [""%%~3""] NEQ [""""] (SET ""%%~3=%%V"") ELSE (SET ""%%~1=%%V"")%\\n% )%\\n% ) ELSE SETLOCAL ENABLEDELAYEDEXPANSION^&SETLOCAL^&SET argv=, :: @repeat StrVal Count [RetVar] :: :: Repeats StrVal, Count times, and assigns to RetVar. :: If StrVar is #SPC#, this should empty padding. :: If StrVar is any other Special Token, this should be empty. :: If RtnVar is not specified, then print the output string to stdout. :: SET @repeat=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% FOR /F ""tokens=1,2,3 delims=, "" %%1 IN (""!argv!"") DO ( ENDLOCAL%\\n% IF [!%%~1!] NEQ [] (SET ""s=!%%~1!"") ELSE (SET ""s=%%~1"")%\\n% IF /I [""!s:~0,5!""] EQU [""#SPC#""] (%\\n% SET ""s= ""%\\n% ) ELSE IF /I [""!s:~0,1!""] EQU [""#""] (%\\n% IF /I [""!s:~4,1!""] EQU [""#""] (%\\n% :: Look for Special Tokens of the form #???# %\\n% SET ""s=""%\\n% )%\\n% )%\\n% SET ""count=%%~2""%\\n% SET ""outstr=""%\\n% FOR /L %%. IN (1,1,!count!) DO SET ""outstr=!outstr!!s!""%\\n% FOR /F ""delims="" %%V IN (""!outstr!"") DO ENDLOCAL^&IF [""%%~3""] NEQ [""""] (SET ""%%~3=%%V"") ELSE (ECHO %%V)%\\n% )%\\n% ) ELSE SETLOCAL ENABLEDELAYEDEXPANSION^&SETLOCAL^&SET argv=, :: @rtrim StrVar [CharVar] :: :: Right Trim CharVar surrounding StrVar. :: If CharVar is not specified, then default to space. :: :: Technique Source: https://www.dostips.com/forum/viewtopic.php?p=12327#p12327 :: SET @rtrim=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% SET ""charVar= ""%\\n% FOR /F ""tokens=1,2 delims=, "" %%1 IN (""!argv!"") DO (%\\n% SET ""strVar=!%%1!""%\\n% IF [%%~2] NEQ [] IF DEFINED %%~2 SET ""charVar=!%%2:~0,1!""%\\n% FOR /L %%i IN (1 1 12) DO SET ""charVar=!charVar!!charVar!""%\\n% IF DEFINED strVar FOR %%k IN (4096 2048 1024 512 256 128 64 32 16 8 4 2 1) DO (%\\n% IF [""!strVar:~-%%k!""] EQU [""!charVar:~-%%k!""] SET ""strVar=!strVar:~0,-%%k!""%\\n% )%\\n% IF DEFINED strVar (%\\n% IF NOT DEFINED _notDelayed (%\\n% SET ""strVar=!strVar:^=^^!""%\\n% SET ""strVar=!strVar:""=""""Q!^""%\\n% CALL SET ""strVar=%%^strVar:^!=""""E^!%%"" ! %\\n% SET ""strVar=!strVar:""""E=^!""%\\n% SET ""strVar=!strVar:""""Q=""!^""%\\n% )%\\n% FOR /F ^^^""eol^^=^^^%LF%%LF%^%LF%%LF%^^ delims^^=^^^"" %%k IN (""!strVar!"") DO ENDLOCAL^&ENDLOCAL^&SET ""%%1=%%k""%\\n% ) ELSE ENDLOCAL^&ENDLOCAL^&SET ""%%1=""%\\n% )%\\n% ) ELSE SETLOCAL^&SET ""_notDelayed=!""^&SETLOCAL ENABLEDELAYEDEXPANSION^&SET argv=, :: @ltrim StrVar [CharVar] :: :: Left Trim CharVar surrounding StrVar. :: If CharVar is not specified, then default to space. :: :: Technique Source: https://www.dostips.com/forum/viewtopic.php?p=12327#p12327 :: SET @ltrim=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% SET ""charVar= ""%\\n% FOR /F ""tokens=1,2 delims=, "" %%1 IN (""!argv!"") DO (%\\n% SET ""strVar=!%%1!""%\\n% IF [%%~2] NEQ [] IF DEFINED %%~2 SET ""charVar=!%%2:~0,1!""%\\n% FOR /L %%i IN (1 1 12) DO SET ""charVar=!charVar!!charVar!""%\\n% IF DEFINED strVar FOR %%k IN (4096 2048 1024 512 256 128 64 32 16 8 4 2 1) DO (%\\n% IF [""!strVar:~0,%%k!""] EQU [""!charVar:~-%%k!""] SET ""strVar=!strVar:~%%k!""%\\n% )%\\n% IF DEFINED strVar (%\\n% IF NOT DEFINED _notDelayed (%\\n% SET ""strVar=!strVar:^=^^!""%\\n% SET ""strVar=!strVar:""=""""Q!^""%\\n% CALL SET ""strVar=%%^strVar:^!=""""E^!%%"" ! %\\n% SET ""strVar=!strVar:""""E=^!""%\\n% SET ""strVar=!strVar:""""Q=""!^""%\\n% )%\\n% FOR /F ^^^""eol^^=^^^%LF%%LF%^%LF%%LF%^^ delims^^=^^^"" %%k IN (""!strVar!"") DO ENDLOCAL^&ENDLOCAL^&SET ""%%1=%%k""%\\n% ) ELSE ENDLOCAL^&ENDLOCAL^&SET ""%%1=""%\\n% )%\\n% ) ELSE SETLOCAL^&SET ""_notDelayed=!""^&SETLOCAL ENABLEDELAYEDEXPANSION^&SET argv=, :: @trim StrVar [CharVar] :: :: Trim CharVar surrounding StrVar. :: If CharVar is not specified, then default to space. :: :: Technique Source: https://www.dostips.com/forum/viewtopic.php?p=12327#p12327 :: SET @trim=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% SET ""charVar= ""%\\n% FOR /F ""tokens=1,2 delims=, "" %%1 IN (""!argv!"") DO (%\\n% SET ""strVar=!%%1!""%\\n% IF [%%~2] NEQ [] IF DEFINED %%~2 SET ""charVar=!%%2:~0,1!""%\\n% FOR /L %%i IN (1 1 12) DO SET ""charVar=!charVar!!charVar!""%\\n% IF DEFINED strVar FOR %%k IN (4096 2048 1024 512 256 128 64 32 16 8 4 2 1) DO (%\\n% IF [""!strVar:~-%%k!""] EQU [""!charVar:~-%%k!""] SET ""strVar=!strVar:~0,-%%k!""%\\n% IF [""!strVar:~0,%%k!""] EQU [""!charVar:~-%%k!""] SET ""strVar=!strVar:~%%k!""%\\n% )%\\n% IF DEFINED strVar (%\\n% IF NOT DEFINED _notDelayed (%\\n% SET ""strVar=!strVar:^=^^!""%\\n% SET ""strVar=!strVar:""=""""Q!^""%\\n% CALL SET ""strVar=%%^strVar:^!=""""E^!%%"" ! %\\n% SET ""strVar=!strVar:""""E=^!""%\\n% SET ""strVar=!strVar:""""Q=""!^""%\\n% )%\\n% FOR /F ^^^""eol^^=^^^%LF%%LF%^%LF%%LF%^^ delims^^=^^^"" %%k IN (""!strVar!"") DO ENDLOCAL^&ENDLOCAL^&SET ""%%1=%%k""%\\n% ) ELSE ENDLOCAL^&ENDLOCAL^&SET ""%%1=""%\\n% )%\\n% ) ELSE SETLOCAL^&SET ""_notDelayed=!""^&SETLOCAL ENABLEDELAYEDEXPANSION^&SET argv=, :: @align StrVar Width [RtnVar] :: :: Aligns the string in variable StrVar :: in the field using the Width and Alignment provided :: and stores the result in variable RtnVar. :: If StrVar is a Special Token, it is treated as a space. :: If RtnVar is not specified, then print the output to stdout. :: SET @align=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% FOR /F ""tokens=1,2,3,4 delims=, "" %%1 IN (""!argv!"") DO ( ENDLOCAL%\\n% IF [""!%%~1!""] NEQ [""""] (SET ""strVar=!%%~1!"") ELSE (SET ""strVar=%%~1"")%\\n% IF /I [""!strVar:~0,1!""] EQU [""#""] (%\\n% IF /I [""!strVar:~4,1!""] EQU [""#""] (%\\n% :: Look for Special Tokens of the form #???# %\\n% SET ""strVar= ""%\\n% )%\\n% )%\\n% IF [""!%%~2!""] NEQ [""""] (SET ""width=!%%~2!"") ELSE (SET ""width=%%~2"")%\\n% SET ""alignment=%%~3""%\\n% IF [""!%%~4!""] NEQ [""""] (SET ""%%~4="")%\\n% SET ""len=1""%\\n% SET ""s=!strVar!""%\\n% FOR %%P in (4096 2048 1024 512 256 128 64 32 16 8 4 2 1) DO (%\\n% IF [""!s:~%%P,1!""] NEQ [""""] (%\\n% SET /A ""len+=%%P""%\\n% SET ""s=!s:~%%P!""%\\n% )%\\n% )%\\n% IF /I [""!alignment!""] EQU [""L""] (%\\n% SET /A ""pre=0""%\\n% SET /A ""post=(!width! - !len!)""%\\n% )%\\n% IF /I [""!alignment!""] EQU [""C""] (%\\n% SET /A ""pre=(!width! - !len! + 1) / 2""%\\n% SET /A ""post=(!width! - !pre! - !len!)""%\\n% )%\\n% IF /I [""!alignment!""] EQU [""R""] (%\\n% SET /A ""pre=(!width! - !len!)""%\\n% SET /A ""post=0""%\\n% )%\\n% SET ""wrkstr=""%\\n% FOR /L %%. IN (1,1,!pre!) DO SET ""wrkstr=!wrkstr! ""%\\n% SET ""wrkstr=!wrkstr!!strVar!""%\\n% FOR /L %%. IN (1,1,!post!) DO SET ""wrkstr=!wrkstr! ""%\\n% FOR /F ""delims="" %%V IN (""!wrkstr!"") DO ENDLOCAL^&IF [""%%~4""] NEQ [""""] (SET ""%%~4=%%V"") ELSE (ECHO %%V)%\\n% )%\\n% ) ELSE SETLOCAL ENABLEDELAYEDEXPANSION^&SETLOCAL^&SET argv=, :: @spinner FrameVar :: :: When called print a spinning wait cursor using the FrameVar :: as an accumulator. If the FrameVar variable is not set :: it is initialized. Advancing one frame the FrameVar is :: incremented. If it reaches the last frame it is reset :: back to the first frame. :: :: Has a dependency on the ANSI Control Sequence, :: Cursor Previous Line (CPL). This means the initialization :: needs to be completed before this macro can be used. :: :: The animation can be changed by adjusting the variables named :: @spinner[#] and setting the count to match. :: SET ""@spinner[0]= - Processing"" SET ""@spinner[1]= \\ Processing"" SET ""@spinner[2]= ^| Processing"" SET ""@spinner[3]= / Processing"" SET /A ""@spinner[#]=4"" SET @spinner=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% FOR /f ""tokens=1 delims=, "" %%1 IN (""!argv!"") DO ( ENDLOCAL%\\n% SET ""frameVar=%%~1""%\\n% IF [""!frameVar!""] EQU [""""] (%\\n% SET /A ""frame=0""%\\n% ) ELSE (%\\n% SET /A ""frame=!frameVar!""%\\n% )%\\n% CALL ECHO %%@spinner[!frame!]%%!CPL!%\\n% SET /A ""frame+=1""%\\n% SET /A ""frame%%=!@spinner[#]!""%\\n% FOR /F ""delims="" %%V IN (""!frame!"") DO ENDLOCAL^&SET ""%%~1=%%V""%\\n% )%\\n% ) ELSE SETLOCAL ENABLEDELAYEDEXPANSION^&SETLOCAL^&SET argv=, :: @counter NumVar :: :: When called it uses the NumVar as an accumulator. If the :: NumVar variable is not set it is initialized. :: SET @counter=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% FOR /f ""tokens=1 delims=, "" %%1 IN (""!argv!"") DO ( ENDLOCAL%\\n% SET ""numVar=%%~1""%\\n% IF [""!numVar!""] EQU [""""] (%\\n% SET /A ""count=0""%\\n% ) ELSE (%\\n% SET /A ""count=!numVar!""%\\n% )%\\n% SET /A ""count+=1""%\\n% FOR /F ""delims="" %%V IN (""!count!"") DO ENDLOCAL^&SET ""%%~1=%%V""%\\n% )%\\n% ) ELSE SETLOCAL ENABLEDELAYEDEXPANSION^&SETLOCAL^&SET argv=, :: @exit [ErrorLevel] :: :: Used to exit and optionally sets an error code if provided. :: This is preferred for exiting a script over GOTO :EOF for consistency :: and to pass Error Levels if necessary. This tidy's up a call :: to EXIT /B [ErrorLevel] so the use feels the same as other macros. :: SET @exit=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% FOR /F ""tokens=1 delims=, "" %%1 IN (""!argv! 0"") DO ( ENDLOCAL%\\n% IF [""%%~1""] NEQ [""""] (IF DEFINED %%~1 (SET ""exitCode=!%%1!""%\\n% ) ELSE (SET ""exitCode=%%~1"")%\\n% ) ELSE (SET ""exitCode=0"")%\\n% EXIT /B !exitCode!%\\n% )%\\n% ) ELSE SETLOCAL ENABLEDELAYEDEXPANSION^&SETLOCAL^&SET argv=, GOTO :MAIN :: -------- End macro definitions ---------- %=- End Macro Definitions -=% %=- Parse Command Line Arguments -=% :PARSE_ARGS SET ""SCRIPT=%~dpnx0"" SET ""SCRIPT_NAME=%~nx0"" SET ""DATA_FILE="" FOR %%a IN (%*) DO ( SET ""ARG=%%~a"" SET ""OPT.FOUND="" :: Check for options IF [""!ARG:~0,1!""] EQU [""/""] ( SET ""OPT.FOUND=#TRUE#"" ) ELSE IF [""!ARG:~0,1!""] EQU [""-""] ( :: Makes this more friendly to run in PowerShell where - is used for arguments SET ""OPT.FOUND=#TRUE#"" ) IF DEFINED OPT.FOUND ( SHIFT /1 SET ""OPT=!ARG:~1,1!"" :: /H [Help] IF /I [""!OPT!""] EQU [""H""] ( SET ""OPT="" CALL :USAGE %@exit% -1 ) :: /A [ANSI] IF /I [""!OPT!""] EQU [""A""] ( SET ""OPT="" SET ""SHOW.ANSI=#TRUE#"" SET ""SHOW.UTF8=#TRUE#"" ) :: /R [R1C1] IF /I [""!OPT!""] EQU [""R""] ( SET ""OPT="" SET ""SHOW.R1C1_REFERENCE=#TRUE#"" ) :: /U [UTF-8] IF /I [""!OPT!""] EQU [""U""] ( SET ""OPT="" SET ""SHOW.UTF8=#TRUE#"" ) IF [""!OPT!""] NEQ [""""] ( SET ""MSG=Error: Unknown option: !OPT!"" CALL :USAGE MSG %@exit% 1 ) ) ) :: If there isn't a definition passed on the command-line :: default to using this script as the definition file. IF [%~1] EQU [] ( SET ""DATA_FILE=!SCRIPT!"" ) ELSE ( SET ""DATA_FILE=%~1"" ) :: Verify that the definition file exists and exit with :: error code 1 if it doesn't. IF NOT EXIST !DATA_FILE! ( SET ""MSG=Error: File does not exist: !DATA_FILE!"" CALL :USAGE MSG %@exit% 1 ) %@exit% :: CALL :USAGE MsgVar :: :: When called with a MsgVar, it will prepend the usage :: output message with the custom string message assigned :: to MsgVar. This is used to further explain the error. :: :USAGE SET ""SCRIPT_NAME=%~nx0"" :: The following ECHO intentionally has 80 spaces to clear the :: line any remaining on screen text on call. ECHO. IF [%1] NEQ [] ( ECHO !%1! ECHO. ) ECHO Usage: !SCRIPT_NAME! [flags] [^] ECHO. ECHO This file echoes a bunch of color codes to the terminal to demonstrate ECHO how they will render. The `Data Segment` portion of the file defines the ECHO table layout and allows the user to configure whatever matrix of ANSI ECHO Escape Sequence control characters they wish. This can also be read from ECHO an external definition file using the same structure. ECHO. ECHO Flags: ECHO /H : This message ECHO /A : Display the ANSI Escape Sequence control characters ECHO This requires UTF-8 support and implies the additional /U flag ECHO /R : Show cell R1C1 reference addressing instead of cell text ECHO /U : Enable UTF-8 support ECHO. ECHO The script itself only has one external dependency on CHCP if you want ECHO to show Unicode text. This just sets the Command Prompt codepage to 65001 ECHO and will restore it when the script successfully completes. ECHO. %@exit% %=- End Parse Command Line Arguments -=% :: :: Inspired by Daniel Crisman's BASH script from http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html :: :: #!/bin/bash :: # :: # This file echoes a bunch of color codes to the :: # terminal to demonstrate what's available. Each :: # line is the color code of one foreground color, :: # out of 17 (default + 16 escapes), followed by a :: # test use of that color on all nine background :: # colors (default + 8 escapes). :: # :: :: T='gYw' # The test text :: :: echo -e ""\\n 40m 41m 42m 43m\\ :: 44m 45m 46m 47m""; :: :: for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \\ :: '1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \\ :: ' 36m' '1;36m' ' 37m' '1;37m'; :: do FG=${FGs// /} :: echo -en "" $FGs \\033[$FG $T "" :: for BG in 40m 41m 42m 43m 44m 45m 46m 47m; :: do echo -en ""$EINS \\033[$FG\\033[$BG $T \\033[0m""; :: done :: echo; :: done :: echo :: ",16317,True,2730.0309339153323,median "cmd_/home/zrd/openvswitch-2.5.0/datapath/linux/vport-vxlan.o := gcc -Wp,-MD,/home/zrd/openvswitch-2.5.0/datapath/linux/.vport-vxlan.o.d -nostdinc -isystem /usr/lib/gcc/i686-linux-gnu/5/include -I/home/zrd/openvswitch-2.5.0/include -I/home/zrd/openvswitch-2.5.0/datapath/linux/compat -I/home/zrd/openvswitch-2.5.0/datapath/linux/compat/include -I./arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m32 -msoft-float -mregparm=3 -freg-struct-return -fno-pic -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -DVERSION=\\""2.5.0\\"" -I/home/zrd/openvswitch-2.5.0/datapath/linux/.. -I/home/zrd/openvswitch-2.5.0/datapath/linux/.. -g -include /home/zrd/openvswitch-2.5.0/datapath/linux/kcompat.h -DMODULE -D""KBUILD_STR(s)=\\#s"" -D""KBUILD_BASENAME=KBUILD_STR(vport_vxlan)"" -D""KBUILD_MODNAME=KBUILD_STR(vport_vxlan)"" -c -o /home/zrd/openvswitch-2.5.0/datapath/linux/.tmp_vport-vxlan.o /home/zrd/openvswitch-2.5.0/datapath/linux/vport-vxlan.c source_/home/zrd/openvswitch-2.5.0/datapath/linux/vport-vxlan.o := /home/zrd/openvswitch-2.5.0/datapath/linux/vport-vxlan.c deps_/home/zrd/openvswitch-2.5.0/datapath/linux/vport-vxlan.o := \\ /home/zrd/openvswitch-2.5.0/datapath/linux/kcompat.h \\ include/generated/uapi/linux/version.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/kernel.h \\ include/linux/kernel.h \\ $(wildcard include/config/lbdaf.h) \\ $(wildcard include/config/preempt/voluntary.h) \\ $(wildcard include/config/debug/atomic/sleep.h) \\ $(wildcard include/config/mmu.h) \\ $(wildcard include/config/prove/locking.h) \\ $(wildcard include/config/panic/timeout.h) \\ $(wildcard include/config/tracing.h) \\ $(wildcard include/config/ftrace/mcount/record.h) \\ /usr/lib/gcc/i686-linux-gnu/5/include/stdarg.h \\ include/linux/linkage.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/compiler.h \\ include/linux/compiler.h \\ $(wildcard include/config/sparse/rcu/pointer.h) \\ $(wildcard include/config/trace/branch/profiling.h) \\ $(wildcard include/config/profile/all/branches.h) \\ $(wildcard include/config/enable/must/check.h) \\ $(wildcard include/config/enable/warn/deprecated.h) \\ $(wildcard include/config/kprobes.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/compiler-gcc.h \\ include/linux/compiler-gcc.h \\ $(wildcard include/config/arch/supports/optimized/inlining.h) \\ $(wildcard include/config/optimize/inlining.h) \\ $(wildcard include/config/gcov/kernel.h) \\ $(wildcard include/config/arch/use/builtin/bswap.h) \\ include/uapi/linux/types.h \\ arch/x86/include/uapi/asm/types.h \\ include/uapi/asm-generic/types.h \\ include/asm-generic/int-ll64.h \\ include/uapi/asm-generic/int-ll64.h \\ arch/x86/include/uapi/asm/bitsperlong.h \\ include/asm-generic/bitsperlong.h \\ $(wildcard include/config/64bit.h) \\ include/uapi/asm-generic/bitsperlong.h \\ include/uapi/linux/posix_types.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/stddef.h \\ include/linux/stddef.h \\ include/uapi/linux/stddef.h \\ arch/x86/include/asm/posix_types.h \\ $(wildcard include/config/x86/32.h) \\ arch/x86/include/uapi/asm/posix_types_32.h \\ include/uapi/asm-generic/posix_types.h \\ include/linux/stringify.h \\ include/linux/export.h \\ $(wildcard include/config/have/underscore/symbol/prefix.h) \\ $(wildcard include/config/modules.h) \\ $(wildcard include/config/modversions.h) \\ $(wildcard include/config/unused/symbols.h) \\ arch/x86/include/asm/linkage.h \\ $(wildcard include/config/x86/64.h) \\ $(wildcard include/config/x86/alignment/16.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/types.h \\ include/linux/types.h \\ $(wildcard include/config/uid16.h) \\ $(wildcard include/config/arch/dma/addr/t/64bit.h) \\ $(wildcard include/config/phys/addr/t/64bit.h) \\ include/linux/bitops.h \\ arch/x86/include/asm/bitops.h \\ $(wildcard include/config/x86/cmov.h) \\ arch/x86/include/asm/alternative.h \\ $(wildcard include/config/smp.h) \\ $(wildcard include/config/paravirt.h) \\ arch/x86/include/asm/asm.h \\ arch/x86/include/asm/ptrace.h \\ $(wildcard include/config/x86/debugctlmsr.h) \\ arch/x86/include/asm/segment.h \\ $(wildcard include/config/cc/stackprotector.h) \\ $(wildcard include/config/x86/32/lazy/gs.h) \\ include/uapi/linux/const.h \\ arch/x86/include/asm/page_types.h \\ $(wildcard include/config/physical/start.h) \\ $(wildcard include/config/physical/align.h) \\ arch/x86/include/asm/page_32_types.h \\ $(wildcard include/config/highmem4g.h) \\ $(wildcard include/config/highmem64g.h) \\ $(wildcard include/config/page/offset.h) \\ $(wildcard include/config/x86/pae.h) \\ arch/x86/include/uapi/asm/ptrace.h \\ arch/x86/include/uapi/asm/ptrace-abi.h \\ arch/x86/include/asm/processor-flags.h \\ $(wildcard include/config/vm86.h) \\ arch/x86/include/uapi/asm/processor-flags.h \\ arch/x86/include/asm/paravirt_types.h \\ $(wildcard include/config/x86/local/apic.h) \\ $(wildcard include/config/pgtable/levels.h) \\ $(wildcard include/config/queued/spinlocks.h) \\ $(wildcard include/config/paravirt/debug.h) \\ arch/x86/include/asm/desc_defs.h \\ arch/x86/include/asm/kmap_types.h \\ $(wildcard include/config/debug/highmem.h) \\ include/asm-generic/kmap_types.h \\ arch/x86/include/asm/pgtable_types.h \\ $(wildcard include/config/kmemcheck.h) \\ $(wildcard include/config/mem/soft/dirty.h) \\ $(wildcard include/config/proc/fs.h) \\ arch/x86/include/asm/pgtable_32_types.h \\ $(wildcard include/config/highmem.h) \\ arch/x86/include/asm/pgtable-3level_types.h \\ include/asm-generic/pgtable-nopud.h \\ arch/x86/include/asm/spinlock_types.h \\ $(wildcard include/config/paravirt/spinlocks.h) \\ $(wildcard include/config/nr/cpus.h) \\ include/asm-generic/qspinlock_types.h \\ include/asm-generic/qrwlock_types.h \\ include/asm-generic/ptrace.h \\ arch/x86/include/asm/cpufeature.h \\ $(wildcard include/config/x86/feature/names.h) \\ $(wildcard include/config/x86/debug/static/cpu/has.h) \\ arch/x86/include/asm/required-features.h \\ $(wildcard include/config/x86/minimum/cpu/family.h) \\ $(wildcard include/config/math/emulation.h) \\ $(wildcard include/config/x86/cmpxchg64.h) \\ $(wildcard include/config/x86/use/3dnow.h) \\ $(wildcard include/config/x86/p6/nop.h) \\ $(wildcard include/config/matom.h) \\ arch/x86/include/asm/disabled-features.h \\ $(wildcard include/config/x86/intel/mpx.h) \\ arch/x86/include/asm/rmwcc.h \\ arch/x86/include/asm/barrier.h \\ $(wildcard include/config/x86/ppro/fence.h) \\ arch/x86/include/asm/nops.h \\ $(wildcard include/config/mk7.h) \\ include/asm-generic/bitops/fls64.h \\ include/asm-generic/bitops/find.h \\ $(wildcard include/config/generic/find/first/bit.h) \\ include/asm-generic/bitops/sched.h \\ arch/x86/include/asm/arch_hweight.h \\ include/asm-generic/bitops/const_hweight.h \\ include/asm-generic/bitops/le.h \\ arch/x86/include/uapi/asm/byteorder.h \\ include/linux/byteorder/little_endian.h \\ include/uapi/linux/byteorder/little_endian.h \\ include/linux/swab.h \\ include/uapi/linux/swab.h \\ arch/x86/include/uapi/asm/swab.h \\ include/linux/byteorder/generic.h \\ include/asm-generic/bitops/ext2-atomic-setbit.h \\ include/linux/log2.h \\ $(wildcard include/config/arch/has/ilog2/u32.h) \\ $(wildcard include/config/arch/has/ilog2/u64.h) \\ include/linux/typecheck.h \\ include/linux/printk.h \\ $(wildcard include/config/message/loglevel/default.h) \\ $(wildcard include/config/early/printk.h) \\ $(wildcard include/config/printk.h) \\ $(wildcard include/config/dynamic/debug.h) \\ include/linux/init.h \\ $(wildcard include/config/broken/rodata.h) \\ $(wildcard include/config/lto.h) \\ include/linux/kern_levels.h \\ include/linux/cache.h \\ $(wildcard include/config/arch/has/cache/line/size.h) \\ include/uapi/linux/kernel.h \\ include/uapi/linux/sysinfo.h \\ arch/x86/include/asm/cache.h \\ $(wildcard include/config/x86/l1/cache/shift.h) \\ $(wildcard include/config/x86/internode/cache/shift.h) \\ $(wildcard include/config/x86/vsmp.h) \\ include/linux/dynamic_debug.h \\ arch/x86/include/asm/div64.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/skbuff.h \\ include/linux/skbuff.h \\ $(wildcard include/config/nf/conntrack.h) \\ $(wildcard include/config/bridge/netfilter.h) \\ $(wildcard include/config/xfrm.h) \\ $(wildcard include/config/ipv6/ndisc/nodetype.h) \\ $(wildcard include/config/net/sched.h) \\ $(wildcard include/config/net/cls/act.h) \\ $(wildcard include/config/net/rx/busy/poll.h) \\ $(wildcard include/config/xps.h) \\ $(wildcard include/config/network/secmark.h) \\ $(wildcard include/config/network/phy/timestamping.h) \\ $(wildcard include/config/netfilter/xt/target/trace.h) \\ $(wildcard include/config/nf/tables.h) \\ include/linux/kmemcheck.h \\ include/linux/mm_types.h \\ $(wildcard include/config/split/ptlock/cpus.h) \\ $(wildcard include/config/arch/enable/split/pmd/ptlock.h) \\ $(wildcard include/config/have/cmpxchg/double.h) \\ $(wildcard include/config/have/aligned/struct/page.h) \\ $(wildcard include/config/transparent/hugepage.h) \\ $(wildcard include/config/memcg.h) \\ $(wildcard include/config/numa.h) \\ $(wildcard include/config/aio.h) \\ $(wildcard include/config/mmu/notifier.h) \\ $(wildcard include/config/cpumask/offstack.h) \\ $(wildcard include/config/numa/balancing.h) \\ $(wildcard include/config/compaction.h) \\ include/linux/auxvec.h \\ include/uapi/linux/auxvec.h \\ arch/x86/include/uapi/asm/auxvec.h \\ $(wildcard include/config/ia32/emulation.h) \\ include/linux/threads.h \\ $(wildcard include/config/base/small.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/list.h \\ include/linux/list.h \\ $(wildcard include/config/debug/list.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/poison.h \\ include/linux/poison.h \\ $(wildcard include/config/illegal/pointer/value.h) \\ include/linux/spinlock.h \\ $(wildcard include/config/debug/spinlock.h) \\ $(wildcard include/config/generic/lockbreak.h) \\ $(wildcard include/config/preempt.h) \\ $(wildcard include/config/debug/lock/alloc.h) \\ include/linux/preempt.h \\ $(wildcard include/config/preempt/count.h) \\ $(wildcard include/config/debug/preempt.h) \\ $(wildcard include/config/preempt/tracer.h) \\ $(wildcard include/config/preempt/notifiers.h) \\ arch/x86/include/asm/preempt.h \\ arch/x86/include/asm/percpu.h \\ $(wildcard include/config/x86/64/smp.h) \\ include/asm-generic/percpu.h \\ $(wildcard include/config/have/setup/per/cpu/area.h) \\ include/linux/percpu-defs.h \\ $(wildcard include/config/debug/force/weak/per/cpu.h) \\ include/linux/thread_info.h \\ $(wildcard include/config/compat.h) \\ $(wildcard include/config/debug/stack/usage.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/bug.h \\ include/linux/bug.h \\ $(wildcard include/config/generic/bug.h) \\ arch/x86/include/asm/bug.h \\ $(wildcard include/config/debug/bugverbose.h) \\ include/asm-generic/bug.h \\ $(wildcard include/config/bug.h) \\ $(wildcard include/config/generic/bug/relative/pointers.h) \\ arch/x86/include/asm/thread_info.h \\ arch/x86/include/asm/page.h \\ arch/x86/include/asm/page_32.h \\ $(wildcard include/config/debug/virtual.h) \\ $(wildcard include/config/flatmem.h) \\ $(wildcard include/config/x86/3dnow.h) \\ include/linux/string.h \\ $(wildcard include/config/binary/printf.h) \\ include/uapi/linux/string.h \\ arch/x86/include/asm/string.h \\ arch/x86/include/asm/string_32.h \\ include/linux/range.h \\ include/asm-generic/memory_model.h \\ $(wildcard include/config/discontigmem.h) \\ $(wildcard include/config/sparsemem/vmemmap.h) \\ $(wildcard include/config/sparsemem.h) \\ include/asm-generic/getorder.h \\ arch/x86/include/asm/processor.h \\ $(wildcard include/config/m486.h) \\ $(wildcard include/config/xen.h) \\ arch/x86/include/asm/math_emu.h \\ arch/x86/include/asm/sigcontext.h \\ arch/x86/include/uapi/asm/sigcontext.h \\ arch/x86/include/asm/current.h \\ arch/x86/include/asm/msr.h \\ arch/x86/include/asm/msr-index.h \\ arch/x86/include/uapi/asm/errno.h \\ include/uapi/asm-generic/errno.h \\ include/uapi/asm-generic/errno-base.h \\ arch/x86/include/asm/cpumask.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/cpumask.h \\ include/linux/cpumask.h \\ $(wildcard include/config/hotplug/cpu.h) \\ $(wildcard include/config/debug/per/cpu/maps.h) \\ include/linux/bitmap.h \\ arch/x86/include/uapi/asm/msr.h \\ include/uapi/linux/ioctl.h \\ arch/x86/include/uapi/asm/ioctl.h \\ include/asm-generic/ioctl.h \\ include/uapi/asm-generic/ioctl.h \\ arch/x86/include/asm/paravirt.h \\ arch/x86/include/asm/special_insns.h \\ arch/x86/include/asm/fpu/types.h \\ include/linux/personality.h \\ include/uapi/linux/personality.h \\ include/linux/math64.h \\ $(wildcard include/config/arch/supports/int128.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/err.h \\ include/linux/err.h \\ include/linux/irqflags.h \\ $(wildcard include/config/trace/irqflags.h) \\ $(wildcard include/config/irqsoff/tracer.h) \\ $(wildcard include/config/trace/irqflags/support.h) \\ arch/x86/include/asm/irqflags.h \\ include/linux/atomic.h \\ $(wildcard include/config/arch/has/atomic/or.h) \\ $(wildcard include/config/generic/atomic64.h) \\ arch/x86/include/asm/atomic.h \\ arch/x86/include/asm/cmpxchg.h \\ arch/x86/include/asm/cmpxchg_32.h \\ arch/x86/include/asm/atomic64_32.h \\ include/asm-generic/atomic-long.h \\ include/linux/bottom_half.h \\ include/linux/spinlock_types.h \\ include/linux/lockdep.h \\ $(wildcard include/config/lockdep.h) \\ $(wildcard include/config/lock/stat.h) \\ include/linux/rwlock_types.h \\ arch/x86/include/asm/spinlock.h \\ include/linux/jump_label.h \\ $(wildcard include/config/jump/label.h) \\ arch/x86/include/asm/jump_label.h \\ arch/x86/include/asm/qspinlock.h \\ include/asm-generic/qspinlock.h \\ arch/x86/include/asm/qrwlock.h \\ include/asm-generic/qrwlock.h \\ include/linux/rwlock.h \\ include/linux/spinlock_api_smp.h \\ $(wildcard include/config/inline/spin/lock.h) \\ $(wildcard include/config/inline/spin/lock/bh.h) \\ $(wildcard include/config/inline/spin/lock/irq.h) \\ $(wildcard include/config/inline/spin/lock/irqsave.h) \\ $(wildcard include/config/inline/spin/trylock.h) \\ $(wildcard include/config/inline/spin/trylock/bh.h) \\ $(wildcard include/config/uninline/spin/unlock.h) \\ $(wildcard include/config/inline/spin/unlock/bh.h) \\ $(wildcard include/config/inline/spin/unlock/irq.h) \\ $(wildcard include/config/inline/spin/unlock/irqrestore.h) \\ include/linux/rwlock_api_smp.h \\ $(wildcard include/config/inline/read/lock.h) \\ $(wildcard include/config/inline/write/lock.h) \\ $(wildcard include/config/inline/read/lock/bh.h) \\ $(wildcard include/config/inline/write/lock/bh.h) \\ $(wildcard include/config/inline/read/lock/irq.h) \\ $(wildcard include/config/inline/write/lock/irq.h) \\ $(wildcard include/config/inline/read/lock/irqsave.h) \\ $(wildcard include/config/inline/write/lock/irqsave.h) \\ $(wildcard include/config/inline/read/trylock.h) \\ $(wildcard include/config/inline/write/trylock.h) \\ $(wildcard include/config/inline/read/unlock.h) \\ $(wildcard include/config/inline/write/unlock.h) \\ $(wildcard include/config/inline/read/unlock/bh.h) \\ $(wildcard include/config/inline/write/unlock/bh.h) \\ $(wildcard include/config/inline/read/unlock/irq.h) \\ $(wildcard include/config/inline/write/unlock/irq.h) \\ $(wildcard include/config/inline/read/unlock/irqrestore.h) \\ $(wildcard include/config/inline/write/unlock/irqrestore.h) \\ include/linux/rbtree.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/rcupdate.h \\ include/linux/rcupdate.h \\ $(wildcard include/config/tiny/rcu.h) \\ $(wildcard include/config/tree/rcu.h) \\ $(wildcard include/config/preempt/rcu.h) \\ $(wildcard include/config/rcu/trace.h) \\ $(wildcard include/config/rcu/stall/common.h) \\ $(wildcard include/config/rcu/user/qs.h) \\ $(wildcard include/config/rcu/nocb/cpu.h) \\ $(wildcard include/config/tasks/rcu.h) \\ $(wildcard include/config/debug/objects/rcu/head.h) \\ $(wildcard include/config/prove/rcu.h) \\ $(wildcard include/config/rcu/boost.h) \\ $(wildcard include/config/rcu/nocb/cpu/all.h) \\ $(wildcard include/config/no/hz/full/sysidle.h) \\ include/linux/seqlock.h \\ include/linux/completion.h \\ include/linux/wait.h \\ include/uapi/linux/wait.h \\ include/linux/debugobjects.h \\ $(wildcard include/config/debug/objects.h) \\ $(wildcard include/config/debug/objects/free.h) \\ include/linux/ktime.h \\ include/linux/time.h \\ $(wildcard include/config/arch/uses/gettimeoffset.h) \\ include/linux/time64.h \\ include/uapi/linux/time.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/jiffies.h \\ include/linux/jiffies.h \\ include/linux/timex.h \\ include/uapi/linux/timex.h \\ include/uapi/linux/param.h \\ arch/x86/include/uapi/asm/param.h \\ include/asm-generic/param.h \\ $(wildcard include/config/hz.h) \\ include/uapi/asm-generic/param.h \\ arch/x86/include/asm/timex.h \\ arch/x86/include/asm/tsc.h \\ $(wildcard include/config/x86/tsc.h) \\ include/generated/timeconst.h \\ include/linux/timekeeping.h \\ include/linux/rcutree.h \\ include/linux/rwsem.h \\ $(wildcard include/config/rwsem/spin/on/owner.h) \\ $(wildcard include/config/rwsem/generic/spinlock.h) \\ include/linux/osq_lock.h \\ arch/x86/include/asm/rwsem.h \\ include/linux/uprobes.h \\ $(wildcard include/config/uprobes.h) \\ include/linux/errno.h \\ include/uapi/linux/errno.h \\ arch/x86/include/asm/uprobes.h \\ include/linux/notifier.h \\ include/linux/mutex.h \\ $(wildcard include/config/debug/mutexes.h) \\ $(wildcard include/config/mutex/spin/on/owner.h) \\ include/linux/srcu.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/workqueue.h \\ include/linux/workqueue.h \\ $(wildcard include/config/debug/objects/work.h) \\ $(wildcard include/config/freezer.h) \\ $(wildcard include/config/sysfs.h) \\ include/linux/timer.h \\ $(wildcard include/config/timer/stats.h) \\ $(wildcard include/config/debug/objects/timers.h) \\ $(wildcard include/config/no/hz/common.h) \\ include/linux/sysctl.h \\ $(wildcard include/config/sysctl.h) \\ include/uapi/linux/sysctl.h \\ include/linux/page-flags-layout.h \\ include/linux/numa.h \\ $(wildcard include/config/nodes/shift.h) \\ include/generated/bounds.h \\ arch/x86/include/asm/sparsemem.h \\ arch/x86/include/asm/mmu.h \\ $(wildcard include/config/modify/ldt/syscall.h) \\ include/linux/socket.h \\ arch/x86/include/uapi/asm/socket.h \\ include/uapi/asm-generic/socket.h \\ arch/x86/include/uapi/asm/sockios.h \\ include/uapi/asm-generic/sockios.h \\ include/uapi/linux/sockios.h \\ include/linux/uio.h \\ include/uapi/linux/uio.h \\ include/uapi/linux/socket.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/net.h \\ include/linux/net.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/random.h \\ include/linux/random.h \\ $(wildcard include/config/arch/random.h) \\ include/uapi/linux/random.h \\ include/linux/irqnr.h \\ include/uapi/linux/irqnr.h \\ arch/x86/include/asm/archrandom.h \\ include/linux/fcntl.h \\ include/uapi/linux/fcntl.h \\ arch/x86/include/uapi/asm/fcntl.h \\ include/uapi/asm-generic/fcntl.h \\ include/uapi/linux/net.h \\ include/linux/textsearch.h \\ include/linux/slab.h \\ $(wildcard include/config/debug/slab.h) \\ $(wildcard include/config/failslab.h) \\ $(wildcard include/config/slab.h) \\ $(wildcard include/config/slub.h) \\ $(wildcard include/config/slob.h) \\ $(wildcard include/config/zone/dma.h) \\ include/linux/gfp.h \\ $(wildcard include/config/zone/dma32.h) \\ $(wildcard include/config/deferred/struct/page/init.h) \\ $(wildcard include/config/pm/sleep.h) \\ $(wildcard include/config/cma.h) \\ include/linux/mmdebug.h \\ $(wildcard include/config/debug/vm.h) \\ include/linux/mmzone.h \\ $(wildcard include/config/force/max/zoneorder.h) \\ $(wildcard include/config/memory/isolation.h) \\ $(wildcard include/config/memory/hotplug.h) \\ $(wildcard include/config/have/memblock/node/map.h) \\ $(wildcard include/config/flat/node/mem/map.h) \\ $(wildcard include/config/page/extension.h) \\ $(wildcard include/config/no/bootmem.h) \\ $(wildcard include/config/have/memory/present.h) \\ $(wildcard include/config/have/memoryless/nodes.h) \\ $(wildcard include/config/need/node/memmap/size.h) \\ $(wildcard include/config/need/multiple/nodes.h) \\ $(wildcard include/config/have/arch/early/pfn/to/nid.h) \\ $(wildcard include/config/sparsemem/extreme.h) \\ $(wildcard include/config/have/arch/pfn/valid.h) \\ $(wildcard include/config/holes/in/zone.h) \\ $(wildcard include/config/arch/has/holes/memorymodel.h) \\ include/linux/nodemask.h \\ $(wildcard include/config/movable/node.h) \\ include/linux/pageblock-flags.h \\ $(wildcard include/config/hugetlb/page.h) \\ $(wildcard include/config/hugetlb/page/size/variable.h) \\ include/linux/memory_hotplug.h \\ $(wildcard include/config/memory/hotremove.h) \\ $(wildcard include/config/have/arch/nodedata/extension.h) \\ $(wildcard include/config/have/bootmem/info/node.h) \\ include/linux/topology.h \\ $(wildcard include/config/use/percpu/numa/node/id.h) \\ $(wildcard include/config/sched/smt.h) \\ include/linux/smp.h \\ $(wildcard include/config/up/late/init.h) \\ include/linux/llist.h \\ $(wildcard include/config/arch/have/nmi/safe/cmpxchg.h) \\ arch/x86/include/asm/smp.h \\ $(wildcard include/config/x86/io/apic.h) \\ $(wildcard include/config/x86/32/smp.h) \\ $(wildcard include/config/debug/nmi/selftest.h) \\ arch/x86/include/asm/mpspec.h \\ $(wildcard include/config/eisa.h) \\ $(wildcard include/config/x86/mpparse.h) \\ arch/x86/include/asm/mpspec_def.h \\ arch/x86/include/asm/x86_init.h \\ arch/x86/include/uapi/asm/bootparam.h \\ include/linux/screen_info.h \\ include/uapi/linux/screen_info.h \\ include/linux/apm_bios.h \\ include/uapi/linux/apm_bios.h \\ include/linux/edd.h \\ include/uapi/linux/edd.h \\ arch/x86/include/asm/e820.h \\ $(wildcard include/config/efi.h) \\ $(wildcard include/config/hibernation.h) \\ arch/x86/include/uapi/asm/e820.h \\ $(wildcard include/config/x86/pmem/legacy.h) \\ $(wildcard include/config/intel/txt.h) \\ include/linux/ioport.h \\ arch/x86/include/asm/ist.h \\ arch/x86/include/uapi/asm/ist.h \\ include/video/edid.h \\ $(wildcard include/config/x86.h) \\ include/uapi/video/edid.h \\ arch/x86/include/asm/apicdef.h \\ arch/x86/include/asm/apic.h \\ $(wildcard include/config/x86/x2apic.h) \\ include/linux/pm.h \\ $(wildcard include/config/vt/console/sleep.h) \\ $(wildcard include/config/pm.h) \\ $(wildcard include/config/pm/clk.h) \\ $(wildcard include/config/pm/generic/domains.h) \\ arch/x86/include/asm/fixmap.h \\ $(wildcard include/config/x86/vsyscall/emulation.h) \\ $(wildcard include/config/paravirt/clock.h) \\ $(wildcard include/config/provide/ohci1394/dma/init.h) \\ $(wildcard include/config/pci/mmconfig.h) \\ $(wildcard include/config/x86/intel/mid.h) \\ arch/x86/include/asm/acpi.h \\ $(wildcard include/config/acpi.h) \\ $(wildcard include/config/acpi/numa.h) \\ include/acpi/pdc_intel.h \\ arch/x86/include/asm/numa.h \\ $(wildcard include/config/numa/emu.h) \\ arch/x86/include/asm/topology.h \\ include/asm-generic/topology.h \\ arch/x86/include/asm/numa_32.h \\ arch/x86/include/asm/realmode.h \\ $(wildcard include/config/acpi/sleep.h) \\ arch/x86/include/asm/io.h \\ $(wildcard include/config/mtrr.h) \\ arch/x86/include/generated/asm/early_ioremap.h \\ include/asm-generic/early_ioremap.h \\ $(wildcard include/config/generic/early/ioremap.h) \\ include/asm-generic/iomap.h \\ $(wildcard include/config/has/ioport/map.h) \\ $(wildcard include/config/pci.h) \\ $(wildcard include/config/generic/iomap.h) \\ include/asm-generic/pci_iomap.h \\ $(wildcard include/config/no/generic/pci/ioport/map.h) \\ $(wildcard include/config/generic/pci/iomap.h) \\ include/xen/xen.h \\ $(wildcard include/config/xen/dom0.h) \\ $(wildcard include/config/xen/pvh.h) \\ include/xen/interface/xen.h \\ arch/x86/include/asm/xen/interface.h \\ arch/x86/include/asm/xen/interface_32.h \\ arch/x86/include/asm/pvclock-abi.h \\ arch/x86/include/asm/xen/hypervisor.h \\ arch/x86/include/asm/pvclock.h \\ include/linux/clocksource.h \\ $(wildcard include/config/arch/clocksource/data.h) \\ $(wildcard include/config/clocksource/watchdog.h) \\ $(wildcard include/config/clksrc/of.h) \\ arch/x86/include/asm/clocksource.h \\ include/asm-generic/fixmap.h \\ arch/x86/include/asm/idle.h \\ arch/x86/include/asm/io_apic.h \\ arch/x86/include/asm/irq_vectors.h \\ $(wildcard include/config/have/kvm.h) \\ $(wildcard include/config/pci/msi.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/percpu.h \\ include/linux/percpu.h \\ $(wildcard include/config/need/per/cpu/embed/first/chunk.h) \\ $(wildcard include/config/need/per/cpu/page/first/chunk.h) \\ include/linux/pfn.h \\ include/linux/kmemleak.h \\ $(wildcard include/config/debug/kmemleak.h) \\ include/linux/kasan.h \\ $(wildcard include/config/kasan.h) \\ $(wildcard include/config/kasan/shadow/offset.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/checksum.h \\ include/net/checksum.h \\ arch/x86/include/asm/uaccess.h \\ $(wildcard include/config/x86/intel/usercopy.h) \\ $(wildcard include/config/debug/strict/user/copy/checks.h) \\ arch/x86/include/asm/smap.h \\ $(wildcard include/config/x86/smap.h) \\ arch/x86/include/asm/uaccess_32.h \\ arch/x86/include/asm/checksum.h \\ arch/x86/include/asm/checksum_32.h \\ include/linux/in6.h \\ include/uapi/linux/in6.h \\ include/uapi/linux/libc-compat.h \\ include/linux/hrtimer.h \\ $(wildcard include/config/high/res/timers.h) \\ $(wildcard include/config/timerfd.h) \\ include/linux/timerqueue.h \\ include/linux/dma-mapping.h \\ $(wildcard include/config/has/dma.h) \\ $(wildcard include/config/arch/has/dma/set/coherent/mask.h) \\ $(wildcard include/config/have/dma/attrs.h) \\ $(wildcard include/config/need/dma/map/state.h) \\ include/linux/device.h \\ $(wildcard include/config/debug/devres.h) \\ $(wildcard include/config/pinctrl.h) \\ $(wildcard include/config/dma/cma.h) \\ $(wildcard include/config/of.h) \\ $(wildcard include/config/devtmpfs.h) \\ $(wildcard include/config/sysfs/deprecated.h) \\ include/linux/kobject.h \\ $(wildcard include/config/uevent/helper.h) \\ $(wildcard include/config/debug/kobject/release.h) \\ include/linux/sysfs.h \\ include/linux/kernfs.h \\ $(wildcard include/config/kernfs.h) \\ include/linux/idr.h \\ include/linux/kobject_ns.h \\ include/linux/stat.h \\ arch/x86/include/uapi/asm/stat.h \\ include/uapi/linux/stat.h \\ include/linux/uidgid.h \\ $(wildcard include/config/multiuser.h) \\ $(wildcard include/config/user/ns.h) \\ include/linux/highuid.h \\ include/linux/kref.h \\ include/linux/klist.h \\ include/linux/pinctrl/devinfo.h \\ include/linux/pinctrl/consumer.h \\ include/linux/seq_file.h \\ include/linux/pinctrl/pinctrl-state.h \\ include/linux/ratelimit.h \\ arch/x86/include/asm/device.h \\ $(wildcard include/config/x86/dev/dma/ops.h) \\ $(wildcard include/config/intel/iommu.h) \\ $(wildcard include/config/amd/iommu.h) \\ include/linux/pm_wakeup.h \\ include/linux/dma-attrs.h \\ include/linux/dma-direction.h \\ include/linux/scatterlist.h \\ $(wildcard include/config/debug/sg.h) \\ $(wildcard include/config/need/sg/dma/length.h) \\ $(wildcard include/config/arch/has/sg/chain.h) \\ include/linux/mm.h \\ $(wildcard include/config/ppc.h) \\ $(wildcard include/config/parisc.h) \\ $(wildcard include/config/metag.h) \\ $(wildcard include/config/ia64.h) \\ $(wildcard include/config/stack/growsup.h) \\ $(wildcard include/config/shmem.h) \\ $(wildcard include/config/debug/vm/rb.h) \\ $(wildcard include/config/debug/pagealloc.h) \\ $(wildcard include/config/hugetlbfs.h) \\ include/linux/debug_locks.h \\ $(wildcard include/config/debug/locking/api/selftests.h) \\ include/linux/bit_spinlock.h \\ include/linux/shrinker.h \\ include/linux/resource.h \\ include/uapi/linux/resource.h \\ arch/x86/include/uapi/asm/resource.h \\ include/asm-generic/resource.h \\ include/uapi/asm-generic/resource.h \\ include/linux/page_ext.h \\ $(wildcard include/config/page/owner.h) \\ include/linux/stacktrace.h \\ $(wildcard include/config/stacktrace.h) \\ $(wildcard include/config/user/stacktrace/support.h) \\ arch/x86/include/asm/pgtable.h \\ $(wildcard include/config/have/arch/soft/dirty.h) \\ arch/x86/include/asm/pgtable_32.h \\ $(wildcard include/config/highpte.h) \\ arch/x86/include/asm/pgtable-3level.h \\ include/asm-generic/pgtable.h \\ $(wildcard include/config/have/arch/huge/vmap.h) \\ include/linux/page-flags.h \\ $(wildcard include/config/pageflags/extended.h) \\ $(wildcard include/config/arch/uses/pg/uncached.h) \\ $(wildcard include/config/memory/failure.h) \\ $(wildcard include/config/swap.h) \\ $(wildcard include/config/ksm.h) \\ include/linux/huge_mm.h \\ include/linux/vmstat.h \\ $(wildcard include/config/vm/event/counters.h) \\ $(wildcard include/config/debug/tlbflush.h) \\ $(wildcard include/config/debug/vm/vmacache.h) \\ include/linux/vm_event_item.h \\ $(wildcard include/config/migration.h) \\ $(wildcard include/config/memory/balloon.h) \\ $(wildcard include/config/balloon/compaction.h) \\ arch/x86/include/asm/dma-mapping.h \\ $(wildcard include/config/isa.h) \\ $(wildcard include/config/x86/dma/remap.h) \\ include/linux/dma-debug.h \\ $(wildcard include/config/dma/api/debug.h) \\ arch/x86/include/asm/swiotlb.h \\ $(wildcard include/config/swiotlb.h) \\ include/linux/swiotlb.h \\ include/asm-generic/dma-coherent.h \\ $(wildcard include/config/have/generic/dma/coherent.h) \\ include/linux/dma-contiguous.h \\ include/asm-generic/dma-mapping-common.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/netdev_features.h \\ include/linux/netdev_features.h \\ include/linux/sched.h \\ $(wildcard include/config/sched/debug.h) \\ $(wildcard include/config/lockup/detector.h) \\ $(wildcard include/config/detect/hung/task.h) \\ $(wildcard include/config/core/dump/default/elf/headers.h) \\ $(wildcard include/config/sched/autogroup.h) \\ $(wildcard include/config/virt/cpu/accounting/native.h) \\ $(wildcard include/config/bsd/process/acct.h) \\ $(wildcard include/config/taskstats.h) \\ $(wildcard include/config/audit.h) \\ $(wildcard include/config/inotify/user.h) \\ $(wildcard include/config/fanotify.h) \\ $(wildcard include/config/epoll.h) \\ $(wildcard include/config/posix/mqueue.h) \\ $(wildcard include/config/keys.h) \\ $(wildcard include/config/perf/events.h) \\ $(wildcard include/config/sched/info.h) \\ $(wildcard include/config/task/delay/acct.h) \\ $(wildcard include/config/schedstats.h) \\ $(wildcard include/config/sched/mc.h) \\ $(wildcard include/config/fair/group/sched.h) \\ $(wildcard include/config/rt/group/sched.h) \\ $(wildcard include/config/cgroup/sched.h) \\ $(wildcard include/config/blk/dev/io/trace.h) \\ $(wildcard include/config/memcg/kmem.h) \\ $(wildcard include/config/compat/brk.h) \\ $(wildcard include/config/virt/cpu/accounting/gen.h) \\ $(wildcard include/config/sysvipc.h) \\ $(wildcard include/config/auditsyscall.h) \\ $(wildcard include/config/rt/mutexes.h) \\ $(wildcard include/config/block.h) \\ $(wildcard include/config/task/xacct.h) \\ $(wildcard include/config/cpusets.h) \\ $(wildcard include/config/cgroups.h) \\ $(wildcard include/config/futex.h) \\ $(wildcard include/config/fault/injection.h) \\ $(wildcard include/config/latencytop.h) \\ $(wildcard include/config/function/graph/tracer.h) \\ $(wildcard include/config/bcache.h) \\ $(wildcard include/config/arch/wants/dynamic/task/struct.h) \\ $(wildcard include/config/have/unstable/sched/clock.h) \\ $(wildcard include/config/irq/time/accounting.h) \\ $(wildcard include/config/no/hz/full.h) \\ $(wildcard include/config/have/copy/thread/tls.h) \\ include/uapi/linux/sched.h \\ include/linux/sched/prio.h \\ include/linux/capability.h \\ include/uapi/linux/capability.h \\ include/linux/plist.h \\ $(wildcard include/config/debug/pi/list.h) \\ include/linux/cputime.h \\ arch/x86/include/generated/asm/cputime.h \\ include/asm-generic/cputime.h \\ $(wildcard include/config/virt/cpu/accounting.h) \\ include/asm-generic/cputime_jiffies.h \\ include/linux/sem.h \\ include/uapi/linux/sem.h \\ include/linux/ipc.h \\ include/uapi/linux/ipc.h \\ arch/x86/include/uapi/asm/ipcbuf.h \\ include/uapi/asm-generic/ipcbuf.h \\ arch/x86/include/uapi/asm/sembuf.h \\ include/linux/shm.h \\ include/uapi/linux/shm.h \\ arch/x86/include/uapi/asm/shmbuf.h \\ include/uapi/asm-generic/shmbuf.h \\ arch/x86/include/asm/shmparam.h \\ include/linux/signal.h \\ $(wildcard include/config/old/sigaction.h) \\ include/uapi/linux/signal.h \\ arch/x86/include/asm/signal.h \\ arch/x86/include/uapi/asm/signal.h \\ include/uapi/asm-generic/signal-defs.h \\ arch/x86/include/uapi/asm/siginfo.h \\ include/asm-generic/siginfo.h \\ include/uapi/asm-generic/siginfo.h \\ include/linux/pid.h \\ include/linux/proportions.h \\ include/linux/percpu_counter.h \\ include/linux/seccomp.h \\ $(wildcard include/config/seccomp.h) \\ $(wildcard include/config/have/arch/seccomp/filter.h) \\ $(wildcard include/config/seccomp/filter.h) \\ include/uapi/linux/seccomp.h \\ arch/x86/include/asm/seccomp.h \\ arch/x86/include/asm/unistd.h \\ $(wildcard include/config/x86/x32/abi.h) \\ arch/x86/include/uapi/asm/unistd.h \\ arch/x86/include/generated/uapi/asm/unistd_32.h \\ include/asm-generic/seccomp.h \\ include/uapi/linux/unistd.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/rculist.h \\ include/linux/rculist.h \\ include/linux/rtmutex.h \\ $(wildcard include/config/debug/rt/mutexes.h) \\ include/linux/task_io_accounting.h \\ $(wildcard include/config/task/io/accounting.h) \\ include/linux/latencytop.h \\ include/linux/cred.h \\ $(wildcard include/config/debug/credentials.h) \\ $(wildcard include/config/security.h) \\ include/linux/key.h \\ include/linux/assoc_array.h \\ $(wildcard include/config/associative/array.h) \\ include/linux/selinux.h \\ $(wildcard include/config/security/selinux.h) \\ include/uapi/linux/magic.h \\ include/linux/cgroup-defs.h \\ include/uapi/linux/limits.h \\ include/linux/percpu-refcount.h \\ include/linux/percpu-rwsem.h \\ include/linux/cgroup_subsys.h \\ $(wildcard include/config/cgroup/cpuacct.h) \\ $(wildcard include/config/blk/cgroup.h) \\ $(wildcard include/config/cgroup/device.h) \\ $(wildcard include/config/cgroup/freezer.h) \\ $(wildcard include/config/cgroup/net/classid.h) \\ $(wildcard include/config/cgroup/perf.h) \\ $(wildcard include/config/cgroup/net/prio.h) \\ $(wildcard include/config/cgroup/hugetlb.h) \\ $(wildcard include/config/cgroup/debug.h) \\ include/net/flow_dissector.h \\ include/uapi/linux/if_ether.h \\ include/linux/splice.h \\ include/linux/pipe_fs_i.h \\ include/linux/jhash.h \\ include/linux/unaligned/packed_struct.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/openvswitch.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/if_ether.h \\ include/linux/if_ether.h \\ include/linux/module.h \\ $(wildcard include/config/module/sig.h) \\ $(wildcard include/config/modules/tree/lookup.h) \\ $(wildcard include/config/kallsyms.h) \\ $(wildcard include/config/tracepoints.h) \\ $(wildcard include/config/event/tracing.h) \\ $(wildcard include/config/livepatch.h) \\ $(wildcard include/config/module/unload.h) \\ $(wildcard include/config/constructors.h) \\ $(wildcard include/config/debug/set/module/ronx.h) \\ include/linux/kmod.h \\ include/linux/elf.h \\ arch/x86/include/asm/elf.h \\ arch/x86/include/asm/user.h \\ arch/x86/include/asm/user_32.h \\ arch/x86/include/asm/vdso.h \\ $(wildcard include/config/x86/x32.h) \\ arch/x86/include/asm/desc.h \\ arch/x86/include/uapi/asm/ldt.h \\ include/uapi/linux/elf.h \\ include/uapi/linux/elf-em.h \\ include/linux/moduleparam.h \\ $(wildcard include/config/alpha.h) \\ $(wildcard include/config/ppc64.h) \\ include/linux/rbtree_latch.h \\ arch/x86/include/asm/module.h \\ $(wildcard include/config/m586.h) \\ $(wildcard include/config/m586tsc.h) \\ $(wildcard include/config/m586mmx.h) \\ $(wildcard include/config/mcore2.h) \\ $(wildcard include/config/m686.h) \\ $(wildcard include/config/mpentiumii.h) \\ $(wildcard include/config/mpentiumiii.h) \\ $(wildcard include/config/mpentiumm.h) \\ $(wildcard include/config/mpentium4.h) \\ $(wildcard include/config/mk6.h) \\ $(wildcard include/config/mk8.h) \\ $(wildcard include/config/melan.h) \\ $(wildcard include/config/mcrusoe.h) \\ $(wildcard include/config/mefficeon.h) \\ $(wildcard include/config/mwinchipc6.h) \\ $(wildcard include/config/mwinchip3d.h) \\ $(wildcard include/config/mcyrixiii.h) \\ $(wildcard include/config/mviac3/2.h) \\ $(wildcard include/config/mviac7.h) \\ $(wildcard include/config/mgeodegx1.h) \\ $(wildcard include/config/mgeode/lx.h) \\ include/asm-generic/module.h \\ $(wildcard include/config/have/mod/arch/specific.h) \\ $(wildcard include/config/modules/use/elf/rel.h) \\ $(wildcard include/config/modules/use/elf/rela.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/udp.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/ip.h \\ include/net/ip.h \\ $(wildcard include/config/inet.h) \\ $(wildcard include/config/ipv6.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/ip.h \\ include/linux/ip.h \\ include/uapi/linux/ip.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/in.h \\ include/linux/in.h \\ include/uapi/linux/in.h \\ include/net/inet_sock.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/netdevice.h \\ include/linux/netdevice.h \\ $(wildcard include/config/dcb.h) \\ $(wildcard include/config/wlan.h) \\ $(wildcard include/config/ax25.h) \\ $(wildcard include/config/mac80211/mesh.h) \\ $(wildcard include/config/net/ipip.h) \\ $(wildcard include/config/net/ipgre.h) \\ $(wildcard include/config/ipv6/sit.h) \\ $(wildcard include/config/ipv6/tunnel.h) \\ $(wildcard include/config/rps.h) \\ $(wildcard include/config/netpoll.h) \\ $(wildcard include/config/bql.h) \\ $(wildcard include/config/rfs/accel.h) \\ $(wildcard include/config/fcoe.h) \\ $(wildcard include/config/net/poll/controller.h) \\ $(wildcard include/config/libfcoe.h) \\ $(wildcard include/config/wireless/ext.h) \\ $(wildcard include/config/net/switchdev.h) \\ $(wildcard include/config/vlan/8021q.h) \\ $(wildcard include/config/net/dsa.h) \\ $(wildcard include/config/tipc.h) \\ $(wildcard include/config/mpls/routing.h) \\ $(wildcard include/config/netfilter/ingress.h) \\ $(wildcard include/config/net/flow/limit.h) \\ include/linux/delay.h \\ arch/x86/include/asm/delay.h \\ include/asm-generic/delay.h \\ include/linux/prefetch.h \\ include/linux/dmaengine.h \\ $(wildcard include/config/async/tx/enable/channel/switch.h) \\ $(wildcard include/config/dma/engine.h) \\ $(wildcard include/config/rapidio/dma/engine.h) \\ $(wildcard include/config/async/tx/dma.h) \\ include/linux/dynamic_queue_limits.h \\ include/linux/ethtool.h \\ include/linux/compat.h \\ $(wildcard include/config/compat/old/sigaction.h) \\ $(wildcard include/config/odd/rt/sigaction.h) \\ include/uapi/linux/ethtool.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/net_namespace.h \\ $(wildcard include/config/net/ns.h) \\ include/net/net_namespace.h \\ $(wildcard include/config/ieee802154/6lowpan.h) \\ $(wildcard include/config/ip/sctp.h) \\ $(wildcard include/config/ip/dccp.h) \\ $(wildcard include/config/netfilter.h) \\ $(wildcard include/config/nf/defrag/ipv6.h) \\ $(wildcard include/config/wext/core.h) \\ $(wildcard include/config/ip/vs.h) \\ $(wildcard include/config/mpls.h) \\ include/net/flow.h \\ include/net/netns/core.h \\ include/net/netns/mib.h \\ $(wildcard include/config/xfrm/statistics.h) \\ include/net/snmp.h \\ include/uapi/linux/snmp.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/u64_stats_sync.h \\ include/linux/u64_stats_sync.h \\ include/net/netns/unix.h \\ include/net/netns/packet.h \\ include/net/netns/ipv4.h \\ $(wildcard include/config/ip/multiple/tables.h) \\ $(wildcard include/config/ip/route/classid.h) \\ $(wildcard include/config/ip/mroute.h) \\ $(wildcard include/config/ip/mroute/multiple/tables.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/inet_frag.h \\ include/net/inet_frag.h \\ include/net/netns/ipv6.h \\ $(wildcard include/config/ipv6/multiple/tables.h) \\ $(wildcard include/config/ipv6/mroute.h) \\ $(wildcard include/config/ipv6/mroute/multiple/tables.h) \\ include/net/dst_ops.h \\ include/net/netns/ieee802154_6lowpan.h \\ include/net/netns/sctp.h \\ include/net/netns/dccp.h \\ include/net/netns/netfilter.h \\ include/linux/netfilter_defs.h \\ include/uapi/linux/netfilter.h \\ include/net/netns/x_tables.h \\ $(wildcard include/config/bridge/nf/ebtables.h) \\ include/net/netns/conntrack.h \\ $(wildcard include/config/nf/conntrack/proc/compat.h) \\ $(wildcard include/config/nf/conntrack/events.h) \\ $(wildcard include/config/nf/conntrack/labels.h) \\ $(wildcard include/config/nf/nat/needed.h) \\ include/linux/list_nulls.h \\ include/linux/netfilter/nf_conntrack_tcp.h \\ include/uapi/linux/netfilter/nf_conntrack_tcp.h \\ include/net/netns/nftables.h \\ include/net/netns/xfrm.h \\ include/uapi/linux/xfrm.h \\ include/net/flowcache.h \\ include/linux/interrupt.h \\ $(wildcard include/config/irq/forced/threading.h) \\ $(wildcard include/config/generic/irq/probe.h) \\ include/linux/irqreturn.h \\ include/linux/hardirq.h \\ include/linux/ftrace_irq.h \\ $(wildcard include/config/ftrace/nmi/enter.h) \\ include/linux/vtime.h \\ include/linux/context_tracking_state.h \\ $(wildcard include/config/context/tracking.h) \\ include/linux/static_key.h \\ arch/x86/include/asm/hardirq.h \\ $(wildcard include/config/x86/thermal/vector.h) \\ $(wildcard include/config/x86/mce/threshold.h) \\ $(wildcard include/config/x86/mce/amd.h) \\ $(wildcard include/config/hyperv.h) \\ include/linux/irq.h \\ $(wildcard include/config/irq/domain/hierarchy.h) \\ $(wildcard include/config/generic/pending/irq.h) \\ $(wildcard include/config/hardirqs/sw/resend.h) \\ $(wildcard include/config/generic/irq/legacy/alloc/hwirq.h) \\ $(wildcard include/config/generic/irq/legacy.h) \\ include/linux/irqhandler.h \\ include/linux/io.h \\ arch/x86/include/asm/irq.h \\ arch/x86/include/asm/irq_regs.h \\ include/linux/irqdesc.h \\ $(wildcard include/config/irq/preflow/fasteoi.h) \\ $(wildcard include/config/sparse/irq.h) \\ $(wildcard include/config/handle/domain/irq.h) \\ arch/x86/include/asm/hw_irq.h \\ $(wildcard include/config/hpet/timer.h) \\ $(wildcard include/config/dmar/table.h) \\ $(wildcard include/config/ht/irq.h) \\ $(wildcard include/config/x86/uv.h) \\ include/linux/profile.h \\ $(wildcard include/config/profiling.h) \\ arch/x86/include/asm/sections.h \\ $(wildcard include/config/debug/rodata.h) \\ include/asm-generic/sections.h \\ include/net/netns/mpls.h \\ include/linux/ns_common.h \\ include/linux/seq_file_net.h \\ include/net/dsa.h \\ $(wildcard include/config/net/dsa/hwmon.h) \\ include/linux/of.h \\ $(wildcard include/config/sparc.h) \\ $(wildcard include/config/of/dynamic.h) \\ $(wildcard include/config/attach/node.h) \\ $(wildcard include/config/detach/node.h) \\ $(wildcard include/config/add/property.h) \\ $(wildcard include/config/remove/property.h) \\ $(wildcard include/config/update/property.h) \\ $(wildcard include/config/no/change.h) \\ $(wildcard include/config/change/add.h) \\ $(wildcard include/config/change/remove.h) \\ $(wildcard include/config/of/resolve.h) \\ $(wildcard include/config/of/overlay.h) \\ include/linux/mod_devicetable.h \\ include/linux/uuid.h \\ include/uapi/linux/uuid.h \\ include/linux/property.h \\ include/linux/fwnode.h \\ include/linux/phy.h \\ include/linux/mii.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/if.h \\ include/uapi/linux/if.h \\ include/uapi/linux/hdlc/ioctl.h \\ include/uapi/linux/mii.h \\ include/linux/phy_fixed.h \\ $(wildcard include/config/fixed/phy.h) \\ include/net/dcbnl.h \\ include/uapi/linux/dcbnl.h \\ include/net/netprio_cgroup.h \\ include/linux/cgroup.h \\ include/uapi/linux/cgroupstats.h \\ include/uapi/linux/taskstats.h \\ include/linux/fs.h \\ $(wildcard include/config/fs/posix/acl.h) \\ $(wildcard include/config/cgroup/writeback.h) \\ $(wildcard include/config/ima.h) \\ $(wildcard include/config/fsnotify.h) \\ $(wildcard include/config/file/locking.h) \\ $(wildcard include/config/quota.h) \\ $(wildcard include/config/blk/dev/loop.h) \\ $(wildcard include/config/fs/dax.h) \\ include/linux/kdev_t.h \\ include/uapi/linux/kdev_t.h \\ include/linux/dcache.h \\ include/linux/rculist_bl.h \\ include/linux/list_bl.h \\ include/linux/lockref.h \\ $(wildcard include/config/arch/use/cmpxchg/lockref.h) \\ include/linux/path.h \\ include/linux/list_lru.h \\ include/linux/radix-tree.h \\ include/linux/semaphore.h \\ include/uapi/linux/fiemap.h \\ include/linux/migrate_mode.h \\ include/linux/blk_types.h \\ $(wildcard include/config/blk/dev/integrity.h) \\ include/uapi/linux/fs.h \\ include/linux/quota.h \\ $(wildcard include/config/quota/netlink/interface.h) \\ include/uapi/linux/dqblk_xfs.h \\ include/linux/dqblk_v1.h \\ include/linux/dqblk_v2.h \\ include/linux/dqblk_qtree.h \\ include/linux/projid.h \\ include/uapi/linux/quota.h \\ include/linux/nfs_fs_i.h \\ include/uapi/linux/neighbour.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/netlink.h \\ include/linux/netlink.h \\ include/net/scm.h \\ $(wildcard include/config/security/network.h) \\ include/linux/security.h \\ $(wildcard include/config/security/network/xfrm.h) \\ $(wildcard include/config/security/path.h) \\ $(wildcard include/config/securityfs.h) \\ include/linux/nsproxy.h \\ include/uapi/linux/netlink.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/netlink.h \\ include/net/netlink.h \\ include/linux/in6.h \\ include/uapi/linux/netdevice.h \\ include/uapi/linux/if_packet.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/if_link.h \\ include/linux/if_link.h \\ include/uapi/linux/if_link.h \\ include/uapi/linux/if_bonding.h \\ include/linux/if_bridge.h \\ $(wildcard include/config/bridge.h) \\ $(wildcard include/config/bridge/igmp/snooping.h) \\ include/uapi/linux/if_bridge.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/sock.h \\ include/net/sock.h \\ $(wildcard include/config/net.h) \\ include/linux/uaccess.h \\ include/linux/page_counter.h \\ include/linux/memcontrol.h \\ $(wildcard include/config/memcg/swap.h) \\ include/linux/filter.h \\ $(wildcard include/config/bpf/jit.h) \\ arch/x86/include/asm/cacheflush.h \\ $(wildcard include/config/debug/rodata/test.h) \\ include/asm-generic/cacheflush.h \\ include/uapi/linux/filter.h \\ include/uapi/linux/bpf_common.h \\ include/uapi/linux/bpf.h \\ include/linux/rculist_nulls.h \\ include/linux/poll.h \\ include/uapi/linux/poll.h \\ arch/x86/include/uapi/asm/poll.h \\ include/uapi/asm-generic/poll.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/dst.h \\ include/net/dst.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/rtnetlink.h \\ include/linux/rtnetlink.h \\ $(wildcard include/config/net/ingress.h) \\ include/uapi/linux/rtnetlink.h \\ include/uapi/linux/if_addr.h \\ include/net/neighbour.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/rtnetlink.h \\ include/net/rtnetlink.h \\ include/net/tcp_states.h \\ include/uapi/linux/net_tstamp.h \\ include/net/request_sock.h \\ include/net/netns/hash.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/route.h \\ include/net/route.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/inetpeer.h \\ include/net/inetpeer.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/ipv6.h \\ $(wildcard include/config/have/efficient/unaligned/access.h) \\ include/net/ipv6.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/ipv6.h \\ include/linux/ipv6.h \\ $(wildcard include/config/ipv6/router/pref.h) \\ $(wildcard include/config/ipv6/route/info.h) \\ $(wildcard include/config/ipv6/optimistic/dad.h) \\ $(wildcard include/config/ipv6/mip6.h) \\ $(wildcard include/config/ipv6/subtrees.h) \\ include/uapi/linux/ipv6.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/icmpv6.h \\ include/linux/icmpv6.h \\ include/uapi/linux/icmpv6.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/tcp.h \\ include/linux/tcp.h \\ $(wildcard include/config/tcp/md5sig.h) \\ include/net/inet_connection_sock.h \\ include/net/inet_timewait_sock.h \\ include/net/timewait_sock.h \\ include/uapi/linux/tcp.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/udp.h \\ include/linux/udp.h \\ include/uapi/linux/udp.h \\ include/net/if_inet6.h \\ include/net/ndisc.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/if_arp.h \\ include/linux/if_arp.h \\ $(wildcard include/config/firewire/net.h) \\ include/uapi/linux/if_arp.h \\ include/linux/hash.h \\ $(wildcard include/config/arch/has/fast/multiplier.h) \\ include/uapi/linux/in_route.h \\ include/uapi/linux/route.h \\ include/net/udp.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/ip_tunnels.h \\ include/linux/if_tunnel.h \\ include/uapi/linux/if_tunnel.h \\ include/net/dsfield.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/inet_ecn.h \\ include/net/inet_ecn.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/vxlan.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/udp_tunnel.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/dst_metadata.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/if_vlan.h \\ include/linux/if_vlan.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/etherdevice.h \\ include/linux/etherdevice.h \\ arch/x86/include/asm/unaligned.h \\ include/linux/unaligned/access_ok.h \\ include/linux/unaligned/generic.h \\ include/uapi/linux/if_vlan.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../compat.h \\ include/net/xfrm.h \\ $(wildcard include/config/xfrm/sub/policy.h) \\ $(wildcard include/config/xfrm/migrate.h) \\ include/uapi/linux/pfkeyv2.h \\ include/uapi/linux/ipsec.h \\ include/linux/audit.h \\ $(wildcard include/config/audit/compat/generic.h) \\ include/linux/ptrace.h \\ include/linux/pid_namespace.h \\ $(wildcard include/config/pid/ns.h) \\ include/uapi/linux/ptrace.h \\ include/uapi/linux/audit.h \\ $(wildcard include/config/change.h) \\ arch/x86/include/asm/syscall.h \\ arch/x86/include/asm/asm-offsets.h \\ include/generated/asm-offsets.h \\ include/net/ip6_fib.h \\ include/linux/ipv6_route.h \\ include/uapi/linux/ipv6_route.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/netfilter/ipv6/nf_defrag_ipv6.h \\ include/net/netfilter/ipv6/nf_defrag_ipv6.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/gso.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../datapath.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../compat.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../flow.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/flex_array.h \\ include/linux/flex_array.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/reciprocal_div.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../flow_table.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../vlan.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../vport.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../datapath.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../vport-netdev.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../vport.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/vport-vxlan.o: $(deps_/home/zrd/openvswitch-2.5.0/datapath/linux/vport-vxlan.o) $(deps_/home/zrd/openvswitch-2.5.0/datapath/linux/vport-vxlan.o): ",16373,True,4528.9508081647555,median "/* Copyright (C) 2020 Jan BOON (Kaetemi) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ""AS IS"" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Wobble. * IMPORTANT: * - Set lwIP Variant to ""v2 Higher Bandwidth"" * - Builtin Led: ""2"" */ #define SENSOR_LIS3DHH 1 #define SENSOR_MPU6050 2 #define SENSOR SENSOR_LIS3DHH #if (SENSOR == SENSOR_LIS3DHH) #define CS_PIN 15 // Wemos D1 mini, NodeMCU ESP-12E #elif (SENSOR == SENSOR_MPU6050) #define SCL_PIN D6 #define SDA_PIN D7 #endif #define INT1_PIN 5 #define INT2_PIN 4 #define OPT_FIFO_EN 1 #define AUXIL_SENSOR_EN 1 // Boards Manager URLs: // https://dl.espressif.com/dl/package_esp32_index.json (esp32) // https://arduino.esp8266.com/stable/package_esp8266com_index.json (esp8266) // Dependencies: // https://github.com/Links2004/arduinoWebSockets // https://github.com/arduino-libraries/NTPClient // https://github.com/yoursunny/PriUint64/ // https://techtutorialsx.com/2018/10/19/esp32-esp8266-arduino-protocol-buffers/ // References: // https://www.instructables.com/id/Wemos-ESP8266-Getting-Started-Guide-Wemos-101/ // http://shawnhymel.com/1675/arduino-websocket-server-using-an-esp32/ // https://techtutorialsx.com/2018/10/19/esp32-esp8266-arduino-protocol-buffers/ // https://www.dfrobot.com/blog-1161.html // https://www.dfrobot.com/blog-1177.html // https://randomnerdtutorials.com/esp32-ntp-client-date-time-arduino-ide/ // https://in.uninett.no/ntp-clock-synch-accuracy-its-time-for-microseconds/ // https://lastminuteengineers.com/handling-esp32-gpio-interrupts-tutorial/ // https://esp32.com/viewtopic.php?t=9289 // https://www.circuito.io/app?components=513,360217,1671987 // https://github.com/stm32duino/LIS3DHH/blob/master/src/lis3dhh_reg.h // https://www.st.com/content/ccc/resource/technical/document/application_note/group0/b5/5a/15/58/aa/82/44/e8/DM00477046/files/DM00477046.pdf/jcr:content/translations/en.DM00477046.pdf // https://www.reddit.com/r/esp8266/comments/ausw32/turn_off_built_in_blue_led_wemos_d1_mini/ // https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt/ // https://forum.arduino.cc/index.php?topic=616264.0 // https://arduino.stackexchange.com/questions/51893/how-to-rebuild-arduino-core-for-esp8266 #ifdef ESP32 #include #endif #include #include #include #ifdef ESP8266 #include #else #include #endif #include #define private public #include #undef private #include #include #include #include #if (SENSOR == SENSOR_LIS3DHH) #include #define private public #include #undef private #elif (SENSOR == SENSOR_MPU6050) #include #endif #include ""wobble_protocol.pb.h"" #include ""wifi_setup.h"" bool clockedUp = false; bool connectingWiFi = false; bool timeConnected = false; bool timeReady = false; WiFiUDP ntpUDP; NTPClient timeClient(ntpUDP); // ntpUDP, ""europe.pool.ntp.org"", 3600, 60000 WebSocketsClient webSocket; #if (SENSOR == SENSOR_LIS3DHH) LIS3DHHSensor *sensor; #endif #if (SENSOR == SENSOR_MPU6050) // MPU6050 Slave Device Address const uint8_t MPU6050_SLAVE_ADDRESS = 0x68; // MPU6050 Configuration Register Addresses const uint8_t MPU6050_REGISTER_SMPLRT_DIV = 0x19; const uint8_t MPU6050_REGISTER_USER_CTRL = 0x6A; const uint8_t MPU6050_REGISTER_PWR_MGMT_1 = 0x6B; const uint8_t MPU6050_REGISTER_PWR_MGMT_2 = 0x6C; const uint8_t MPU6050_REGISTER_CONFIG = 0x1A; const uint8_t MPU6050_REGISTER_GYRO_CONFIG = 0x1B; const uint8_t MPU6050_REGISTER_ACCEL_CONFIG = 0x1C; const uint8_t MPU6050_REGISTER_FIFO_EN = 0x23; const uint8_t MPU6050_REGISTER_INT_ENABLE = 0x38; const uint8_t MPU6050_REGISTER_ACCEL_XOUT_H = 0x3B; const uint8_t MPU6050_REGISTER_SIGNAL_PATH_RESET = 0x68; #endif const unsigned long ntpRefresh = 4 * 60000; unsigned long ntpLast = 0; bool refreshNtp = false; bool checkDrift = false; bool checkSampleDrift = false; int32_t ntpCountdown = 0; unsigned long microsLast; int64_t ntpOffset; bool webSocketProblem = false; bool webSocketConnected = false; bool webSocketConnecting = false; int32_t safeTimeout = 10; /* const int testStreamAlias = 1; bool testStreamOpen = false; bool testStreamProblem = false; int64_t lastTestStreamTimestamp = 0; int32_t samplesSent = 0; */ bool sensorChecked = false; #define ACCEL_BUFFER_SZ 4096 #define ACCEL_BUFFER_MASK (ACCEL_BUFFER_SZ - 1) #if (SENSOR == SENSOR_LIS3DHH) #define ACCEL_SAMPLE_BLOCK 55 #elif (SENSOR == SENSOR_MPU6050) #define ACCEL_SAMPLE_BLOCK 50 #endif const int accelStreamAlias = 2; bool accelStreamOpen = false; bool accelStreamProblem = false; bool accelFifoOverflow = false; int16_t accelX[ACCEL_BUFFER_SZ], accelY[ACCEL_BUFFER_SZ], accelZ[ACCEL_BUFFER_SZ]; int16_t accelRd = 0, accelWr = 0; int16_t accelRefWr = 0; int64_t accelRefTs = 0, accelNextTs = 0; int32_t accelRefReads = 0, accelNextReads = 0; int32_t accelReads = 0; int32_t accelSamplesSent = 0; #if (SENSOR == SENSOR_LIS3DHH) int32_t accelFreq = 1100; // auto adjust by drift #elif (SENSOR == SENSOR_MPU6050) #if OPT_FIFO_EN int32_t accelFreq = 1000; // auto adjust by drift #else int32_t accelFreq = 250; // auto adjust by drift #endif #endif int64_t accelOpenTs = 0; int32_t accelOpenReads = 0; os_timer_t accelTimer; #if AUXIL_SENSOR_EN #if (SENSOR == SENSOR_LIS3DHH) // 50 samples per second, send twice a second, 10 seconds buffer #define AUXIL_BUFFER_SZ 512 #define AUXIL_SAMPLE_BLOCK 25 #define AUXIL_TIMER_INTERVAL (1000 / 50) #elif (SENSOR == SENSOR_MPU6050) // 10 samples per second, four buffers, send once a second, 10 seconds buffer #define AUXIL_BUFFER_SZ 128 #define AUXIL_SAMPLE_BLOCK 10 #define AUXIL_TIMER_INTERVAL (1000 / 10) #endif #define AUXIL_BUFFER_MASK (AUXIL_BUFFER_SZ - 1) const int auxilStreamAlias = 3; bool auxilStreamOpen = false; bool auxilStreamProblem = false; #if (SENSOR == SENSOR_LIS3DHH) int16_t auxil[AUXIL_BUFFER_SZ]; #elif (SENSOR == SENSOR_MPU6050) int16_t auxilTemp[AUXIL_BUFFER_SZ]; int16_t auxilGyroX[AUXIL_BUFFER_SZ], auxilGyroY[AUXIL_BUFFER_SZ], auxilGyroZ[AUXIL_BUFFER_SZ]; #endif int64_t auxilRd = 0, auxilWr = 0; os_timer_t auxilTimer; #endif void delaySafe(int32_t maxTimeout = 1000) { delay(safeTimeout); if (safeTimeout < maxTimeout) { safeTimeout *= 2; } } void delayReset() { safeTimeout = 10; } union { OpenStream openStream; CloseStream closeStream; WriteFrame writeFrame; } messages; struct { uint8_t hdr[WEBSOCKETS_MAX_HEADER_SIZE]; union { uint8_t any[1]; uint8_t openStream[OpenStream_size]; uint8_t closeStream[CloseStream_size]; uint8_t writeFrame[WriteFrame_size]; } frame; } buffers; void setup() { Serial.begin(115200); delay(10); Serial.println(); Serial.println(); Serial.println(""Wobble!""); #ifdef ESP32 Serial.print(""Clock: ""); Serial.println(getCpuFrequencyMhz()); /* if (getCpuFrequencyMhz() >= 240) { clockedUp = true; } */ #endif pinMode(INT1_PIN, INPUT); pinMode(INT2_PIN, INPUT); pinMode(LED_BUILTIN, OUTPUT); digitalWrite(LED_BUILTIN, LOW); // Turn on LED #if (SENSOR == SENSOR_LIS3DHH) SPI.begin(); // SPI.setFrequency(1000000); sensor = new LIS3DHHSensor(&SPI, CS_PIN); #elif (SENSOR == SENSOR_MPU6050) Wire.begin(SDA_PIN, SCL_PIN); #endif } void clockDown() { #ifdef ESP32 if (clockedUp) { setCpuFrequencyMhz(80); // 80, 160, 240 clockedUp = false; Serial.print(""Clock: ""); Serial.println(getCpuFrequencyMhz()); } #endif } void clockUp() { #ifdef ESP32 if (!clockedUp) { // Throttling between 80 and 240 seems to drop the WiFi more frequently setCpuFrequencyMhz(160); // 80, 160, 240 clockedUp = true; Serial.print(""Clock: ""); Serial.println(getCpuFrequencyMhz()); } #endif } int64_t ICACHE_RAM_ATTR currentTimestamp() { const unsigned long currentMicros = micros(); const unsigned long deltaMicros = currentMicros - microsLast; ntpOffset += deltaMicros; microsLast = currentMicros; return ntpOffset; } int64_t ICACHE_RAM_ATTR currentTimestampNoAdj() { const unsigned long currentMicros = micros(); const unsigned long deltaMicros = currentMicros - microsLast; return ntpOffset + deltaMicros; } int64_t getEpochTimeMillis() { return ((int64_t)timeClient._timeOffset * 1000) + ((int64_t)timeClient._currentEpoc * 1000) + (int64_t)millis() - (int64_t)timeClient._lastUpdate; } void printWiFiStatus() { switch (WiFi.status()) { case WL_NO_SHIELD: Serial.println(""WL_NO_SHIELD""); break; case WL_IDLE_STATUS: Serial.println(""WL_IDLE_STATUS""); break; case WL_NO_SSID_AVAIL: Serial.println(""WL_NO_SSID_AVAIL""); break; case WL_SCAN_COMPLETED: Serial.println(""WL_SCAN_COMPLETED""); break; case WL_CONNECTED: Serial.println(""WL_CONNECTED""); break; case WL_CONNECT_FAILED: Serial.println(""WL_CONNECT_FAILED""); break; case WL_CONNECTION_LOST: Serial.println(""WL_CONNECTION_LOST""); break; case WL_DISCONNECTED: Serial.println(""WL_DISCONNECTED""); break; } } void webSocketEvent(WStype_t type, uint8_t *payload, size_t length) { switch(type) { case WStype_DISCONNECTED: Serial.println(""WStype_DISCONNECTED""); clockDown(); webSocketProblem = false; webSocketConnected = false; webSocketConnecting = false; if (safeTimeout < 1000) { safeTimeout *= 2; } break; case WStype_CONNECTED: Serial.println(); Serial.println(""WStype_CONNECTED""); webSocketConnected = true; break; case WStype_TEXT: Serial.println(""WStype_TEXT""); break; case WStype_BIN: Serial.println(""WStype_BIN""); break; case WStype_ERROR: Serial.println(""WStype_ERROR""); webSocketProblem = true; if (safeTimeout < 1000) { safeTimeout *= 2; } break; case WStype_FRAGMENT_TEXT_START: case WStype_FRAGMENT_BIN_START: case WStype_FRAGMENT: case WStype_FRAGMENT_FIN: break; } } #if (SENSOR == SENSOR_MPU6050) void writeRegister(uint8_t deviceAddress, uint8_t regAddress, uint8_t data){ Wire.beginTransmission(deviceAddress); Wire.write(regAddress); Wire.write(data); Wire.endTransmission(); } #endif void accelReset() { accelRd = 0; accelWr = 0; accelRefWr = 0; accelRefTs = 0; accelRefReads = 0; } // Called from timer void ICACHE_RAM_ATTR accelPushValue(int16_t x, int16_t y, int16_t z, int i) { // if (!accelStreamOpen) return; if (accelStreamProblem) { // Serial.println(""DEBUG: accelPushValue accelStreamProblem""); return; } int16_t rd = accelRd, wr = accelWr; int16_t space = (ACCEL_BUFFER_SZ - wr + rd - 1) & ACCEL_BUFFER_MASK; if (!space) { Serial.println(""Accelerometer buffer out of space""); accelStreamProblem = true; // System will restart stream & clear buffer return; } accelX[wr] = x; accelY[wr] = y; accelZ[wr] = z; /* Serial.print(""X: ""); Serial.print(x); Serial.print("", Y: ""); Serial.print(y); Serial.print("", Z: ""); Serial.println(z); */ int64_t ts = accelNextTs; if (i == 0 && ts) { // This is the first read in this fifo batch, // the last stored timestamp is good to use! // Store the next batch timestamp when done processing this fifo. accelRefWr = wr; accelRefTs = ts; accelRefReads = accelNextReads; accelNextTs = 0; // Serial.println(PriUint64(accelRefTs)); if (!accelStreamOpen) { accelRd = wr; // Skip ahead } } accelWr = (wr + 1) & ACCEL_BUFFER_MASK; } bool accelOpenOrPublish(int count) { if (accelStreamProblem) return false; int16_t rd = accelRd, wr = accelWr; if (accelStreamOpen) { int16_t space = (ACCEL_BUFFER_SZ - wr + rd - 1) & ACCEL_BUFFER_MASK; int16_t written = ACCEL_BUFFER_SZ - space; return written >= count; } else { int64_t refTs = accelRefTs; int16_t refWr = accelRefWr; int16_t space = (ACCEL_BUFFER_SZ - wr + rd - 1) & ACCEL_BUFFER_MASK; int16_t written = ACCEL_BUFFER_SZ - space; int16_t refOff = (refWr - rd) & ACCEL_BUFFER_MASK; // Serial.println(refOff); // Serial.println(written); // Serial.println(PriUint64(refTs)); delaySafe(); return (refOff < written) && refTs; } } // Called from main function bool accelReadValues(int32_t *x, int32_t *y, int32_t *z, int count, int64_t *timestamp = NULL, int32_t *reads = NULL) { // if (!accelStreamOpen) return false; if (accelStreamProblem) return false; // Only set timestamp if a timestamp is wanted // A timestamp is only needed for opening the stream int16_t rd = accelRd, wr = accelWr; int64_t refTs = accelRefTs; int16_t refWr = accelRefWr; int16_t space = (ACCEL_BUFFER_SZ - wr + rd - 1) & ACCEL_BUFFER_MASK; int16_t written = ACCEL_BUFFER_SZ - space; int16_t refOff = (refWr - rd) & ACCEL_BUFFER_MASK; if (timestamp) { if (refOff >= written || !refTs) { // Don't have a valid timestamp currently return false; } *timestamp = refTs; if (reads) { *reads = accelRefReads; } } if (count >= written) { // Don't have enough values currently return false; } for (int i = 0; i < count; ++i) { int rdi = (rd + i) & ACCEL_BUFFER_MASK; x[i] = accelX[rdi]; y[i] = accelY[rdi]; z[i] = accelZ[rdi]; } accelRd = (rd + count) & ACCEL_BUFFER_MASK; return true; } bool accelBackoutRead(int count) { // Attempt to back out of a read when sending fails if (accelStreamProblem) return false; int16_t rd = accelRd, wr = accelWr; int16_t space = (ACCEL_BUFFER_SZ - wr + rd - 1) & ACCEL_BUFFER_MASK; if (space < count) { return false; } accelRd = (rd - count) & ACCEL_BUFFER_MASK; return true; } void ICACHE_RAM_ATTR accelRead(void *) { int64_t nextTs = currentTimestamp(); int32_t nextReads = accelReads; #if (SENSOR == SENSOR_LIS3DHH) LIS3DHHStatusTypeDef res; lis3dhh_reg_t reg; reg.byte = 0; res = sensor->ReadReg(LIS3DHH_FIFO_SRC, ®.byte); if (res != LIS3DHH_STATUS_OK) { accelStreamProblem = true; accelNextTs = 0; return; } if (reg.fifo_src.ovrn) { Serial.println(""Accelerometer FIFO Overrun""); accelStreamProblem = true; accelFifoOverflow = true; } for (int i = 0; i < reg.fifo_src.fss; ++i) { int16_t sample[3]; res = sensor->Get_X_AxesRaw(sample); accelPushValue(sample[0], sample[1], sample[2], i); if (accelReads % 1100 == 0) { if (accelStreamOpen) { digitalWrite(LED_BUILTIN, LOW); // Turn on LED } } else if (accelReads % 1100 == 55) { digitalWrite(LED_BUILTIN, HIGH); // Turn off LED } ++accelReads; if (res != LIS3DHH_STATUS_OK) { accelStreamProblem = true; accelNextTs = 0; return; } } #elif (SENSOR == SENSOR_MPU6050) #if OPT_FIFO_EN // TODO: MPU6050 #else Wire.beginTransmission(MPU6050_SLAVE_ADDRESS); Wire.write(MPU6050_REGISTER_ACCEL_XOUT_H); Wire.endTransmission(); Wire.requestFrom(MPU6050_SLAVE_ADDRESS, (uint8_t)6); // Up to 14 to add temp and gyro int16_t accelX = ((int16_t)Wire.read() << 8) | Wire.read(); int16_t accelY = ((int16_t)Wire.read() << 8) | Wire.read(); int16_t accelZ = ((int16_t)Wire.read() << 8) | Wire.read(); accelPushValue(accelX, accelY, accelZ, 0); if (accelReads % 250 == 0) { if (accelStreamOpen) { digitalWrite(LED_BUILTIN, LOW); // Turn on LED } } else if (accelReads % 250 == 10) { digitalWrite(LED_BUILTIN, HIGH); // Turn off LED } ++accelReads; #endif #endif accelNextTs = nextTs; accelNextReads = nextReads; } #if AUXIL_SENSOR_EN void auxilReset() { auxilRd = 0; auxilWr = 0; } bool auxilOpenOrPublish(int count) { if (auxilStreamProblem) return false; int16_t rd = auxilRd, wr = auxilWr; int16_t space = (AUXIL_BUFFER_SZ - wr + rd - 1) & AUXIL_BUFFER_MASK; int16_t written = AUXIL_BUFFER_SZ - space; if (auxilStreamOpen) { return written >= count; } else { return written > 0; } } #if (SENSOR == SENSOR_LIS3DHH) void ICACHE_RAM_ATTR auxilPushValue(int16_t temp) { #elif (SENSOR == SENSOR_MPU6050) void ICACHE_RAM_ATTR auxilPushValue(int16_t temp, int16_t gyroX, int16_t gyroY, int16_t gyroZ) { #endif if (auxilStreamProblem) return; int16_t rd = auxilRd, wr = auxilWr; int16_t space = (AUXIL_BUFFER_SZ - wr + rd - 1) & AUXIL_BUFFER_MASK; if (!space) { Serial.println(""Temperature buffer out of space""); auxilStreamProblem = true; // System will restart stream & clear buffer return; } #if (SENSOR == SENSOR_LIS3DHH) auxil[wr] = temp; #elif (SENSOR == SENSOR_MPU6050) auxilTemp[wr] = temp; auxilGyroX[wr] = gyroX; auxilGyroY[wr] = gyroY; auxilGyroZ[wr] = gyroZ; #endif auxilWr = (wr + 1) & AUXIL_BUFFER_MASK; } #if (SENSOR == SENSOR_LIS3DHH) bool ICACHE_RAM_ATTR auxilReadValues(int32_t *temp, int count, int64_t *timestamp = NULL) { #elif (SENSOR == SENSOR_MPU6050) bool ICACHE_RAM_ATTR auxilReadValues(int32_t *temp, int32_t *gyroX, int32_t *gyroY, int32_t *gyroZ, int count, int64_t *timestamp = NULL) { #endif if (auxilStreamProblem) return false; int16_t rd = auxilRd, wr = auxilWr; int16_t space = (AUXIL_BUFFER_SZ - wr + rd - 1) & AUXIL_BUFFER_MASK; int16_t written = AUXIL_BUFFER_SZ - space; if (timestamp && written > 0) { // Timestamping for temperature should match system clock, since it's sampled by the timer // Temperature sampling may have aliasing due to not matching the native sampling rate // Simply calculate the past timestamp *timestamp = currentTimestamp() - (AUXIL_TIMER_INTERVAL * 1000 * written); } if (count >= written) { // Don't have enough values currently return false; } for (int i = 0; i < count; ++i) { int rdi = (rd + i) & AUXIL_BUFFER_MASK; #if (SENSOR == SENSOR_LIS3DHH) temp[i] = auxil[rdi]; #elif (SENSOR == SENSOR_MPU6050) temp[i] = auxilTemp[rdi]; gyroX[i] = auxilGyroX[rdi]; gyroY[i] = auxilGyroY[rdi]; gyroZ[i] = auxilGyroZ[rdi]; #endif } auxilRd = (rd + count) & AUXIL_BUFFER_MASK; return true; } void ICACHE_RAM_ATTR auxilRead(void *) { #if (SENSOR == SENSOR_LIS3DHH) int32_t res; axis1bit16_t buf; res = lis3dhh_temperature_raw_get(&sensor->reg_ctx, buf.u8bit); if (res) { auxilStreamProblem = true; return; } auxilPushValue(buf.i16bit >> 4); #elif (SENSOR == SENSOR_MPU6050) // TODO: MPU6050 /*// read all 14 register void Read_RawValue(uint8_t deviceAddress, uint8_t regAddress){ Wire.beginTransmission(deviceAddress); Wire.write(regAddress); Wire.endTransmission(); Wire.requestFrom(deviceAddress, (uint8_t)14); AccelX = (((int16_t)Wire.read()<<8) | Wire.read()); AccelY = (((int16_t)Wire.read()<<8) | Wire.read()); AccelZ = (((int16_t)Wire.read()<<8) | Wire.read()); Temperature = (((int16_t)Wire.read()<<8) | Wire.read()); GyroX = (((int16_t)Wire.read()<<8) | Wire.read()); GyroY = (((int16_t)Wire.read()<<8) | Wire.read()); GyroZ = (((int16_t)Wire.read()<<8) | Wire.read()); }*/ // auxilPushValue(temp, gyroX, gyroY, gyroZ) #endif } #endif void loop() { // Might actually move this whole thing into the accelerometer interrupt handler.. // So the accelerometer interrupt will just push everything into FIFO that can cache about 2s of data // Here we swap and take from that array when it's full-ish // Routine to keep the WiFi going if (WiFi.status() != WL_CONNECTED) { if (connectingWiFi) { // Waiting to be connected delaySafe(); Serial.print(""W""); return; } Serial.println(); clockUp(); // Serial.println(WiFi.status()); // 5 = WL_CONNECTION_LOST, 255 = WL_NO_SHIELD printWiFiStatus(); WiFi.mode(WIFI_STA); // Disable AP Serial.print(""Connecting to ""); Serial.println(ssid); // Connect if (webSocketConnected) { // Close websocket webSocket.disconnect(); webSocketConnected = false; webSocketConnecting = false; } if (timeConnected) { // Close time timeClient.end(); timeConnected = false; } char ssidc[128]; strcpy(ssidc, ssid); WiFi.begin(ssidc, password); connectingWiFi = true; return; } if (connectingWiFi) { connectingWiFi = false; // We are connected Serial.println(""""); printWiFiStatus(); Serial.println(""WiFi connected""); Serial.println(""IP address: ""); Serial.println(WiFi.localIP()); Serial.print(""TCP_SND_BUF: ""); Serial.println(TCP_SND_BUF); delayReset(); } // Routine to bring up the NTP if (!timeConnected) { // Start up time client clockUp(); timeClient.begin(); timeConnected = true; timeReady = false; refreshNtp = true; } unsigned long ntpPassed = millis() - ntpLast; if (refreshNtp || ntpPassed >= ntpRefresh) { // Refresh NTP clockUp(); if (!refreshNtp) { // Serial.println(""Update NTP""); } // Serial.print(""Passed: ""); // Serial.println(ntpPassed); if (!timeClient.forceUpdate()) { // Need to do the refresh timing manually since we throttle the clock Serial.print(""T""); // timeReady = false; refreshNtp = true; delaySafe(); return; } ntpLast = millis(); Serial.println(""NTP Updated""); refreshNtp = false; checkDrift = true; checkSampleDrift = true; delayReset(); } if (!timeReady) { // Time is ready now, realign timestamp with NTP clockUp(); Serial.print(""Time: ""); Serial.println(timeClient.getFormattedTime()); Serial.print(""Epoch: ""); Serial.println(timeClient.getEpochTime()); microsLast = micros(); ntpOffset = getEpochTimeMillis() * 1000; microsLast = (microsLast + (int64_t)micros()) >> 1; // Average before and after Serial.print(""Timestamp: ""); Serial.println(PriUint64(currentTimestamp())); timeReady = true; checkDrift = true; checkSampleDrift = true; } if (checkDrift) { // Kick in case of large time drift clockUp(); checkDrift = false; int64_t timestamp = currentTimestamp(); int64_t ntpTimestamp = getEpochTimeMillis() * 1000; timestamp = (timestamp + currentTimestamp()) >> 1; // Average before and after int64_t timestampDrift = abs(ntpTimestamp - timestamp); if (timestampDrift > 1100000) { // Needs to stay within 1.1s drift Serial.println(""Drift on clock, retime""); Serial.print(""Timestamp: ""); Serial.println(PriUint64(timestamp)); Serial.print(""NTP Timestamp: ""); Serial.println(PriUint64(ntpTimestamp)); Serial.print(""Drift: ""); Serial.println(PriUint64(timestampDrift)); timeReady = false; #if AUXIL_SENSOR_EN // Close temperature stream, since it follows the system clock auxilStreamProblem = true; #endif return; } } // Routine to bring up the web socket if (webSocketConnecting) { webSocket.loop(); if (!webSocketConnected) { // delaySafe(); delay(safeTimeout); Serial.print(""S""); return; } Serial.println(""Web socket connected""); Serial.print(""WEBSOCKETS_MAX_HEADER_SIZE: ""); Serial.print((int)buffers.frame.any - (int)buffers.hdr); Serial.print("" (""); // Should be WEBSOCKETS_MAX_HEADER_SIZE (14) Serial.print(WEBSOCKETS_MAX_HEADER_SIZE); Serial.println("")""); webSocketConnecting = false; delayReset(); // TODO: Flag WS stream to restart from the next timestamp here! } if (!webSocketConnected) { clockUp(); if (accelStreamOpen) { // Close accel stream accelStreamOpen = false; // accelStreamProblem = false; if (sensorChecked) { accelReset(); } } #if AUXIL_SENSOR_EN if (auxilStreamOpen) { auxilStreamOpen = false; if (sensorChecked) { auxilReset(); } } #endif webSocket.begin(serverAddress, serverPort, ""/"", ""wobble1""); webSocket.onEvent(webSocketEvent); webSocketConnecting = true; Serial.print(""Connecting to ws://""); Serial.print(serverAddress); Serial.print("":""); Serial.println(serverPort); return; } webSocket.loop(); if (webSocketProblem) { clockUp(); webSocketProblem = false; webSocket.disconnect(); return; } if (!webSocketConnected) { clockUp(); return; } // Check sensor if (!sensorChecked) { clockUp(); digitalWrite(LED_BUILTIN, HIGH); // Turn off LED #if (SENSOR == SENSOR_LIS3DHH) LIS3DHHStatusTypeDef res; // Check ID Serial.println(); Serial.print(""Sensor ID: ""); uint8_t id; res = sensor->ReadID(&id); Serial.println(id); if (res != LIS3DHH_STATUS_OK || id != 17) { Serial.println(""Not OK!""); delaySafe(); return; } // Write settings lis3dhh_reg_t reg; // ctrl_reg1, int1_ctrl, int2_ctrl, ctrl_reg4, ctrl_reg5, status, fifo_ctrl, fifo_src res = sensor->Disable_X(); if (res != LIS3DHH_STATUS_OK) { Serial.println(""Failed Disable_X!""); delaySafe(); return; } // Enable FIFO reg.byte = 0; reg.ctrl_reg4.not_used_01 = 1; // Must be 1 reg.ctrl_reg4.fifo_en = 1; // Enable FIFO // dsp = 0 (440Hz bw), st = 0 (235Hz bw) res = sensor->WriteReg(LIS3DHH_CTRL_REG4, reg.byte); if (res != LIS3DHH_STATUS_OK) { Serial.println(""Failed WriteReg LIS3DHH_CTRL_REG4!""); delaySafe(); return; } // Set FIFO options reg.byte = 0; reg.fifo_ctrl.fth = 24; // 12; // Threshold 12 / 32 fifo samples reg.fifo_ctrl.fmode = LIS3DHH_FIFO_MODE; res = sensor->WriteReg(LIS3DHH_FIFO_CTRL, reg.byte); if (res != LIS3DHH_STATUS_OK) { Serial.println(""Failed WriteReg LIS3DHH_FIFO_CTRL!""); delaySafe(); return; } // Enable INT1 on FIFO threshold reached reg.byte = 0; // reg.int1_ctrl.int1_drdy = 1; reg.int1_ctrl.int1_fth = 1; res = sensor->WriteReg(LIS3DHH_INT1_CTRL, reg.byte); if (res != LIS3DHH_STATUS_OK) { Serial.println(""Failed WriteReg LIS3DHH_INT1_CTRL!""); delaySafe(); return; } // Enable INT2 on FIFO overrun reg.byte = 0; reg.int2_ctrl.int2_ovr = 1; res = sensor->WriteReg(LIS3DHH_INT2_CTRL, reg.byte); if (res != LIS3DHH_STATUS_OK) { Serial.println(""Failed WriteReg LIS3DHH_INT2_CTRL!""); delaySafe(); return; } // Flush FIFO reg.byte = 0; res = sensor->ReadReg(LIS3DHH_FIFO_SRC, ®.byte); if (res != LIS3DHH_STATUS_OK) { Serial.println(""Failed ReadReg LIS3DHH_FIFO_SRC!""); delaySafe(); return; } Serial.print(""FTH: ""); Serial.println(reg.fifo_src.fth); Serial.print(""OVRN: ""); Serial.println(reg.fifo_src.ovrn); Serial.print(""FSS: ""); Serial.println(reg.fifo_src.fss); for (int i = 0; i < reg.fifo_src.fss; ++i) { int16_t sample[3]; res = sensor->Get_X_AxesRaw(sample); Serial.print(""X: ""); Serial.print(sample[0]); Serial.print("", Y: ""); Serial.print(sample[1]); Serial.print("", Z: ""); Serial.println(sample[2]); } // Attach interrupt and flush FIFO to kick it into effect //attachInterrupt(digitalPinToInterrupt(INT1_PIN), accelRead, RISING); os_timer_setfn(&accelTimer, accelRead, NULL); os_timer_arm(&accelTimer, 4, true); // Interrupt with SPI not working reliably // Regular call not reliable either due to WiFi! #if AUXIL_SENSOR_EN os_timer_setfn(&auxilTimer, auxilRead, NULL); os_timer_arm(&auxilTimer, AUXIL_TIMER_INTERVAL, true); #endif res = sensor->Enable_X(); if (res != LIS3DHH_STATUS_OK) { Serial.println(""Failed Enable_X!""); delaySafe(); return; } // OK! Serial.println(""OK!""); Serial.println(); #elif (SENSOR == SENSOR_MPU6050) Serial.println(); Serial.print(""Sensor...""); // TODO: Verify that the sensor is connected! writeRegister(MPU6050_SLAVE_ADDRESS, MPU6050_REGISTER_SMPLRT_DIV, 0x07); writeRegister(MPU6050_SLAVE_ADDRESS, MPU6050_REGISTER_PWR_MGMT_1, 0x01); writeRegister(MPU6050_SLAVE_ADDRESS, MPU6050_REGISTER_PWR_MGMT_2, 0x00); writeRegister(MPU6050_SLAVE_ADDRESS, MPU6050_REGISTER_CONFIG, 0x00); writeRegister(MPU6050_SLAVE_ADDRESS, MPU6050_REGISTER_GYRO_CONFIG, 0x00);//set +/-250 degree/second full scale writeRegister(MPU6050_SLAVE_ADDRESS, MPU6050_REGISTER_ACCEL_CONFIG, 0x00);// set +/- 2g full scale writeRegister(MPU6050_SLAVE_ADDRESS, MPU6050_REGISTER_FIFO_EN, 0x00); // TODO: FIFO writeRegister(MPU6050_SLAVE_ADDRESS, MPU6050_REGISTER_INT_ENABLE, 0x01); writeRegister(MPU6050_SLAVE_ADDRESS, MPU6050_REGISTER_SIGNAL_PATH_RESET, 0x00); writeRegister(MPU6050_SLAVE_ADDRESS, MPU6050_REGISTER_USER_CTRL, 0x00); os_timer_setfn(&accelTimer, accelRead, NULL); os_timer_arm(&accelTimer, 4, true); // OK! Serial.println(""OK!""); Serial.println(); #endif sensorChecked = true; accelRead(NULL); // Quick first read } bool wsSent = false; if (accelFifoOverflow) { clockUp(); accelReset(); #if (SENSOR == SENSOR_LIS3DHH) Serial.println(); Serial.println(""Restart accelerometer FIFO""); LIS3DHHStatusTypeDef res; lis3dhh_reg_t reg; // Set FIFO options to LIS3DHH_BYPASS_MODE reg.byte = 0; reg.fifo_ctrl.fth = 24; // 12; // Threshold 12 / 32 fifo samples reg.fifo_ctrl.fmode = LIS3DHH_BYPASS_MODE; res = sensor->WriteReg(LIS3DHH_FIFO_CTRL, reg.byte); if (res != LIS3DHH_STATUS_OK) { Serial.println(""Failed WriteReg LIS3DHH_FIFO_CTRL!""); delaySafe(); return; } // Set FIFO options to LIS3DHH_FIFO_MODE reg.byte = 0; reg.fifo_ctrl.fth = 24; // 12; // Threshold 12 / 32 fifo samples reg.fifo_ctrl.fmode = LIS3DHH_FIFO_MODE; res = sensor->WriteReg(LIS3DHH_FIFO_CTRL, reg.byte); if (res != LIS3DHH_STATUS_OK) { Serial.println(""Failed WriteReg LIS3DHH_FIFO_CTRL!""); delaySafe(); return; } // Flush FIFO reg.byte = 0; res = sensor->ReadReg(LIS3DHH_FIFO_SRC, ®.byte); if (res != LIS3DHH_STATUS_OK) { Serial.println(""Failed ReadReg LIS3DHH_FIFO_SRC!""); delaySafe(); return; } Serial.print(""FTH: ""); Serial.println(reg.fifo_src.fth); Serial.print(""OVRN: ""); Serial.println(reg.fifo_src.ovrn); Serial.print(""FSS: ""); Serial.println(reg.fifo_src.fss); for (int i = 0; i < reg.fifo_src.fss; ++i) { int16_t sample[3]; res = sensor->Get_X_AxesRaw(sample); Serial.print(""X: ""); Serial.print(sample[0]); Serial.print("", Y: ""); Serial.print(sample[1]); Serial.print("", Z: ""); Serial.println(sample[2]); } Serial.println(); #elif (SENSOR == SENSOR_MPU6050) // TODO: MPU6050 #endif accelFifoOverflow = false; } // Routine to stream accelerometer samples if (accelStreamProblem) { clockUp(); accelReset(); if (accelStreamOpen) { Serial.println(""Close accelerometer stream""); messages.closeStream = (CloseStream)CloseStream_init_zero; messages.closeStream.message_type = MessageType_CLOSE_STREAM; messages.closeStream.alias = accelStreamAlias; pb_ostream_t stream = pb_ostream_from_buffer(buffers.frame.any, sizeof(buffers)); if (!pb_encode(&stream, CloseStream_fields, &messages.closeStream)) { Serial.println(""Failed to encode CloseStream""); delaySafe(); return; } if (!webSocket.sendBIN(buffers.hdr, stream.bytes_written, true)) { Serial.println(""Failed to send CloseStream""); delaySafe(); return; } wsSent = true; accelStreamOpen = false; } accelStreamProblem = false; accelRead(NULL); // Quick read } if (!wsSent && accelOpenOrPublish(ACCEL_SAMPLE_BLOCK)) { clockUp(); if (!accelStreamOpen) { int64_t timestamp; int32_t reads; if (accelReadValues(NULL, NULL, NULL, 0, ×tamp, &reads)) { Serial.print(""Open accelerometer stream at ""); Serial.print(PriUint64(timestamp)); Serial.print("", ""); Serial.println(reads); accelOpenTs = timestamp; accelOpenReads = reads; messages.openStream = (OpenStream)OpenStream_init_zero; messages.openStream.message_type = MessageType_OPEN_STREAM; strcpy(messages.openStream.password, accelPassword); messages.openStream.has_info = true; strcpy(messages.openStream.info.name, accelName); messages.openStream.alias = accelStreamAlias; messages.openStream.info.channels = 3; messages.openStream.info.frequency = accelFreq; messages.openStream.info.bits = 16; messages.openStream.info.timestamp = timestamp; // The timestamp that was set when the sensor fifo was cleared, so the timestamp of the first sample strcpy(messages.openStream.info.description, accelDescription); messages.openStream.info.channel_descriptions_count = 3; strcpy(messages.openStream.info.channel_descriptions[0], ""X""); strcpy(messages.openStream.info.channel_descriptions[1], ""Y""); strcpy(messages.openStream.info.channel_descriptions[2], ""Z""); messages.openStream.info.timestamp_precision = 1000000; // 1s messages.openStream.info.sensor = SensorType_ACCELEROMETER; messages.openStream.info.center_count = 3; messages.openStream.info.center[0] = 0; messages.openStream.info.center[1] = 0; #if (SENSOR == SENSOR_LIS3DHH) strcpy(messages.openStream.info.hardware, ""LIS3DHH""); messages.openStream.info.scale = 2.5f; messages.openStream.info.zoom = 32.0f; messages.openStream.info.center[2] = 13107; // 1g #elif (SENSOR == SENSOR_MPU6050) strcpy(messages.openStream.info.hardware, ""MPU6050""); messages.openStream.info.scale = 2.0f; messages.openStream.info.zoom = 25.6f; messages.openStream.info.center[2] = 16384; // 1g #endif messages.openStream.info.unit = Unit_G; messages.openStream.info.latitude = latitude; messages.openStream.info.longitude = longitude; pb_ostream_t stream = pb_ostream_from_buffer(buffers.frame.any, sizeof(buffers)); if (!pb_encode(&stream, OpenStream_fields, &messages.openStream)) { Serial.println(""Failed to encode OpenStream""); delaySafe(); return; } if (!webSocket.sendBIN(buffers.hdr, stream.bytes_written, true)) { Serial.println(""Failed to send OpenStream""); delaySafe(); return; } wsSent = true; accelStreamOpen = true; accelStreamProblem = false; accelSamplesSent = 0; } } if (accelStreamOpen) { messages.writeFrame = (WriteFrame)WriteFrame_init_zero; if (accelReadValues( messages.writeFrame.channels[0].data, messages.writeFrame.channels[1].data, messages.writeFrame.channels[2].data, ACCEL_SAMPLE_BLOCK, NULL)) { messages.writeFrame.message_type = MessageType_WRITE_FRAME; messages.writeFrame.alias = accelStreamAlias; messages.writeFrame.channels_count = 3; messages.writeFrame.channels[0].data_count = ACCEL_SAMPLE_BLOCK; messages.writeFrame.channels[1].data_count = ACCEL_SAMPLE_BLOCK; messages.writeFrame.channels[2].data_count = ACCEL_SAMPLE_BLOCK; pb_ostream_t stream = pb_ostream_from_buffer(buffers.frame.any, sizeof(buffers)); if (!pb_encode(&stream, WriteFrame_fields, &messages.writeFrame)) { Serial.println(""Failed to encode WriteFrame""); accelStreamProblem = true; delaySafe(); return; } if (!webSocket.sendBIN(buffers.hdr, stream.bytes_written, true)) { Serial.println(""Failed to send WriteFrame""); if (accelBackoutRead(ACCEL_SAMPLE_BLOCK)) { Serial.println(""Backed out of frame, reattempt WriteFrame""); delaySafe(); } else { accelStreamProblem = true; delaySafe(); } return; } wsSent = true; accelSamplesSent += ACCEL_SAMPLE_BLOCK; } // Check for drift on the sensor timing int64_t streamReads = (int64_t)accelRefReads - (int64_t)accelOpenReads; int64_t calcTimestamp = accelOpenTs + (1000000LL * streamReads / accelFreq); int64_t refTimestamp = accelRefTs; int64_t timestampDrift = abs(calcTimestamp - refTimestamp); if (timestampDrift > 1100000) { // Needs to stay within 1.1s drift Serial.println(""Drift on sensor timing, retime""); Serial.print(""Current frequency: ""); Serial.println(accelFreq); int64_t streamTime = refTimestamp - accelOpenTs; int64_t nextFreq = streamReads * 1000000LL / streamTime; Serial.print(""Next frequency: ""); Serial.println((int32_t)nextFreq); accelFreq = nextFreq; accelStreamProblem = true; return; } } } #if AUXIL_SENSOR_EN // Routine to stream temperature samples if (auxilStreamProblem) { clockUp(); auxilReset(); if (auxilStreamOpen) { Serial.println(""Close temperature stream""); messages.closeStream = (CloseStream)CloseStream_init_zero; messages.closeStream.message_type = MessageType_CLOSE_STREAM; messages.closeStream.alias = auxilStreamAlias; pb_ostream_t stream = pb_ostream_from_buffer(buffers.frame.any, sizeof(buffers)); if (!pb_encode(&stream, CloseStream_fields, &messages.closeStream)) { Serial.println(""Failed to encode CloseStream""); delaySafe(); return; } if (!webSocket.sendBIN(buffers.hdr, stream.bytes_written, true)) { Serial.println(""Failed to send CloseStream""); delaySafe(); return; } wsSent = true; auxilStreamOpen = false; } auxilStreamProblem = false; } if (!wsSent && auxilOpenOrPublish(AUXIL_SAMPLE_BLOCK)) { clockUp(); if (!auxilStreamOpen) { int64_t timestamp; if (auxilReadValues(NULL, 0, ×tamp)) { Serial.print(""Open temperature stream at ""); Serial.println(PriUint64(timestamp)); messages.openStream = (OpenStream)OpenStream_init_zero; messages.openStream.message_type = MessageType_OPEN_STREAM; strcpy(messages.openStream.password, tempPassword); messages.openStream.has_info = true; strcpy(messages.openStream.info.name, tempName); messages.openStream.alias = auxilStreamAlias; messages.openStream.info.channels = 1; messages.openStream.info.frequency = 50; messages.openStream.info.bits = 12; messages.openStream.info.timestamp = timestamp; // The timestamp that was set when the sensor fifo was cleared, so the timestamp of the first sample strcpy(messages.openStream.info.description, tempDescription); messages.openStream.info.channel_descriptions_count = 1; strcpy(messages.openStream.info.channel_descriptions[0], ""Sensor""); messages.openStream.info.timestamp_precision = 1000000; // 1s messages.openStream.info.sensor = SensorType_TEMPERATURE; strcpy(messages.openStream.info.hardware, ""LIS3DHH""); messages.openStream.info.unit = Unit_CELSIUS; messages.openStream.info.scale = 128.0f; // 16 bitcounts per unit messages.openStream.info.zoom = 128.0f / 50.0f; messages.openStream.info.zero_count = 1; messages.openStream.info.zero[0] = -25 * 16; messages.openStream.info.latitude = latitude; messages.openStream.info.longitude = longitude; pb_ostream_t stream = pb_ostream_from_buffer(buffers.frame.any, sizeof(buffers)); if (!pb_encode(&stream, OpenStream_fields, &messages.openStream)) { Serial.println(""Failed to encode OpenStream""); delaySafe(); return; } if (!webSocket.sendBIN(buffers.hdr, stream.bytes_written, true)) { Serial.println(""Failed to send OpenStream""); delaySafe(); return; } wsSent = true; auxilStreamOpen = true; auxilStreamProblem = false; } } if (auxilStreamOpen) { messages.writeFrame = (WriteFrame)WriteFrame_init_zero; if (auxilReadValues( messages.writeFrame.channels[0].data, AUXIL_SAMPLE_BLOCK, NULL)) { messages.writeFrame.message_type = MessageType_WRITE_FRAME; messages.writeFrame.alias = auxilStreamAlias; messages.writeFrame.channels_count = 1; messages.writeFrame.channels[0].data_count = AUXIL_SAMPLE_BLOCK; pb_ostream_t stream = pb_ostream_from_buffer(buffers.frame.any, sizeof(buffers)); if (!pb_encode(&stream, WriteFrame_fields, &messages.writeFrame)) { Serial.println(""Failed to encode WriteFrame""); auxilStreamProblem = true; delaySafe(); return; } if (!webSocket.sendBIN(buffers.hdr, stream.bytes_written, true)) { Serial.println(""Failed to send WriteFrame""); auxilStreamProblem = true; delaySafe(); return; } wsSent = true; } } } #endif // Clock down when we're done! clockDown(); delayReset(); } /* end of file */ ",12179,False,2172.5752510843868,median "/* PowerSaveTest.ino This test will turn on and off your display for two seconds. If the text ""power off"" is visible on your display, then power save mode does not work with your display. Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ""AS IS"" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include #include #ifdef U8X8_HAVE_HW_SPI #include #endif #ifdef U8X8_HAVE_HW_I2C #include #endif // Please UNCOMMENT one of the contructor lines below // U8g2 Contructor List (Picture Loop Page Buffer) // The complete list is available here: https://github.com/olikraus/u8g2/wiki/u8g2setupcpp // Please update the pin numbers according to your setup. Use U8X8_PIN_NONE if the reset pin is not connected //U8G2_NULL u8g2(U8G2_R0); // null device, a 8x8 pixel display which does nothing //U8G2_SSD1306_128X64_NONAME_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1306_128X64_NONAME_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 12, /* dc=*/ 4, /* reset=*/ 6); // Arduboy (Production, Kickstarter Edition) //U8G2_SSD1306_128X64_NONAME_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1306_128X64_NONAME_1_3W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* reset=*/ 8); //U8G2_SSD1306_128X64_NONAME_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); //U8G2_SSD1306_128X64_ALT0_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); // same as the NONAME variant, but may solve the ""every 2nd line skipped"" problem //U8G2_SSD1306_128X64_NONAME_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* reset=*/ 8); //U8G2_SSD1306_128X64_NONAME_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); // All Boards without Reset of the Display //U8G2_SSD1306_128X64_NONAME_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ 16, /* data=*/ 17, /* reset=*/ U8X8_PIN_NONE); // ESP32 Thing, pure SW emulated I2C //U8G2_SSD1306_128X64_NONAME_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE, /* clock=*/ 16, /* data=*/ 17); // ESP32 Thing, HW I2C with pin remapping //U8G2_SSD1306_128X64_NONAME_1_6800 u8g2(U8G2_R0, 13, 11, 2, 3, 4, 5, 6, A4, /*enable=*/ 7, /*cs=*/ 10, /*dc=*/ 9, /*reset=*/ 8); //U8G2_SSD1306_128X64_NONAME_1_8080 u8g2(U8G2_R0, 13, 11, 2, 3, 4, 5, 6, A4, /*enable=*/ 7, /*cs=*/ 10, /*dc=*/ 9, /*reset=*/ 8); //U8G2_SSD1306_128X64_VCOMH0_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // same as the NONAME variant, but maximizes setContrast() range //U8G2_SSD1306_128X64_ALT0_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // same as the NONAME variant, but may solve the ""every 2nd line skipped"" problem //U8G2_SH1106_128X64_NONAME_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SH1106_128X64_NONAME_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); //U8G2_SH1106_128X64_VCOMH0_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // same as the NONAME variant, but maximizes setContrast() range //U8G2_SH1106_128X64_WINSTAR_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // same as the NONAME variant, but uses updated SH1106 init sequence //U8G2_SH1106_72X40_WISE_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SH1107_64X128_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SH1107_128X128_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SH1107_128X128_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ 8); //U8G2_SH1107_SEEED_96X96_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SH1108_160X160_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SH1122_256X64_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Enable U8G2_16BIT in u8g2.h //U8G2_SSD1306_128X32_UNIVISION_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ 21, /* data=*/ 20, /* reset=*/ U8X8_PIN_NONE); // Adafruit Feather M0 Basic Proto + FeatherWing OLED //U8G2_SSD1306_128X32_UNIVISION_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); // Adafruit Feather ESP8266/32u4 Boards + FeatherWing OLED //U8G2_SSD1306_128X32_UNIVISION_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); // Adafruit ESP8266/32u4/ARM Boards + FeatherWing OLED //U8G2_SSD1306_128X32_UNIVISION_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE, /* clock=*/ SCL, /* data=*/ SDA); // pin remapping with ESP8266 HW I2C //U8G2_SSD1306_64X48_ER_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); // EastRising 0.66"" OLED breakout board, Uno: A4=SDA, A5=SCL, 5V powered //U8G2_SSD1306_48X64_WINSTAR_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); //U8G2_SSD1306_64X32_NONAME_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); //U8G2_SSD1306_64X32_1F_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); //U8G2_SSD1306_96X16_ER_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); // EastRising 0.69"" OLED //U8G2_SSD1322_NHD_256X64_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Enable U8G2_16BIT in u8g2.h //U8G2_SSD1322_NHD_256X64_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Enable U8G2_16BIT in u8g2.h //U8G2_SSD1322_NHD_128X64_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1322_NHD_128X64_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1325_NHD_128X64_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1325_NHD_128X64_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1326_ER_256X32_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // experimental driver for ER-OLED018-1 //U8G2_SSD1327_SEEED_96X96_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); // Seeedstudio Grove OLED 96x96 //U8G2_SSD1327_SEEED_96X96_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); // Seeedstudio Grove OLED 96x96 //U8G2_SSD1327_EA_W128128_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1327_EA_W128128_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1327_EA_W128128_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ 5, /* data=*/ 4, /* reset=*/ U8X8_PIN_NONE); //U8G2_SSD1327_EA_W128128_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); //U8G2_SSD1327_MIDAS_128X128_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1327_MIDAS_128X128_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1329_128X96_NONAME_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1329_128X96_NONAME_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1305_128X32_NONAME_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1305_128X32_NONAME_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1305_128X64_ADAFRUIT_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1305_128X64_ADAFRUIT_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1309_128X64_NONAME0_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1309_128X64_NONAME0_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1309_128X64_NONAME2_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1309_128X64_NONAME2_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1317_96X96_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1317_96X96_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_LD7032_60X32_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 11, /* data=*/ 12, /* cs=*/ 9, /* dc=*/ 10, /* reset=*/ 8); // SW SPI Nano Board //U8G2_LD7032_60X32_1_4W_SW_I2C u8g2(U8G2_R0, /* clock=*/ 11, /* data=*/ 12, /* reset=*/ U8X8_PIN_NONE); // NOT TESTED! //U8G2_UC1701_EA_DOGS102_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_UC1701_EA_DOGS102_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_PCD8544_84X48_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Nokia 5110 Display //U8G2_PCD8544_84X48_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Nokia 5110 Display //U8G2_PCF8812_96X65_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Could be also PCF8814 //U8G2_PCF8812_96X65_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Could be also PCF8814 //U8G2_HX1230_96X68_1_3W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* reset=*/ 8); //U8G2_HX1230_96X68_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_KS0108_128X64_1 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*dc=*/ 17, /*cs0=*/ 14, /*cs1=*/ 15, /*cs2=*/ U8X8_PIN_NONE, /* reset=*/ U8X8_PIN_NONE); // Set R/W to low! //U8G2_KS0108_ERM19264_1 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*dc=*/ 17, /*cs0=*/ 14, /*cs1=*/ 15, /*cs2=*/ 16, /* reset=*/ U8X8_PIN_NONE); // Set R/W to low! //U8G2_ST7920_192X32_1_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*cs=*/ U8X8_PIN_NONE, /*dc=*/ 17, /*reset=*/ U8X8_PIN_NONE); //U8G2_ST7920_192X32_1_SW_SPI u8g2(U8G2_R0, /* clock=*/ 18 /* A4 */ , /* data=*/ 16 /* A2 */, /* CS=*/ 17 /* A3 */, /* reset=*/ U8X8_PIN_NONE); //U8G2_ST7920_128X64_1_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18 /* A4 */, /*cs=*/ U8X8_PIN_NONE, /*dc/rs=*/ 17 /* A3 */, /*reset=*/ 15 /* A1 */); // Remember to set R/W to 0 //U8G2_ST7920_128X64_1_SW_SPI u8g2(U8G2_R0, /* clock=*/ 18 /* A4 */ , /* data=*/ 16 /* A2 */, /* CS=*/ 17 /* A3 */, /* reset=*/ U8X8_PIN_NONE); //U8G2_ST7920_128X64_1_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* CS=*/ 10, /* reset=*/ 8); //U8G2_ST7920_128X64_1_HW_SPI u8g2(U8G2_R0, /* CS=*/ 10, /* reset=*/ 8); //U8G2_ST7565_EA_DOGM128_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_EA_DOGM128_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_64128N_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_64128N_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_EA_DOGM132_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); // DOGM132 Shield //U8G2_ST7565_EA_DOGM132_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); // DOGM132 Shield //U8G2_ST7565_ZOLEN_128X64_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_ZOLEN_128X64_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_LM6059_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Adafruit ST7565 GLCD //U8G2_ST7565_LM6059_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Adafruit ST7565 GLCD //U8G2_ST7565_LX12864_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_LX12864_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_ERC12864_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_ERC12864_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_NHD_C12832_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_NHD_C12832_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_NHD_C12864_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_NHD_C12864_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_JLX12864_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_JLX12864_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7567_PI_132X64_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); // Pax Instruments Shield, LCD_BL=6 //U8G2_ST7567_PI_132X64_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); // Pax Instruments Shield, LCD_BL=6 //U8G2_ST7567_JLX12864_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7567_JLX12864_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7567_ENH_DG128064_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7567_ENH_DG128064_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7567_ENH_DG128064I_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7567_ENH_DG128064I_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7567_64X32_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); //U8G2_ST75256_JLX172104_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST75256_JLX172104_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST75256_JLX256128_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Uno, Enable U8g2 16 bit mode for this display //U8G2_ST75256_JLX256128_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Uno, Enable U8g2 16 bit mode for this display //U8G2_ST75256_JLX256128_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 9, /* data=*/ 8, /* cs=*/ 7, /* dc=*/ 6, /* reset=*/ 5); // MKR Zero, Enable U8g2 16 bit mode for this display //U8G2_ST75256_JLX256128_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 7, /* dc=*/ 6, /* reset=*/ 5); // MKR Zero, Enable U8g2 16 bit mode for this display //U8G2_ST75256_JLX256160_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Uno, Enable U8g2 16 bit mode for this display //U8G2_ST75256_JLX256160_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Uno, Enable U8g2 16 bit mode for this display //U8G2_ST75256_JLX240160_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST75256_JLX240160_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST75256_JLX25664_1_2ND_HW_I2C u8g2(U8G2_R0, /* reset=*/ 8); // Due, 2nd I2C, enable U8g2 16 bit mode for this display //U8G2_NT7534_TG12864R_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_NT7534_TG12864R_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7588_JLX12864_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ 5); //U8G2_ST7588_JLX12864_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ 5); //U8G2_IST3020_ERC19264_1_6800 u8g2(U8G2_R0, 44, 43, 42, 41, 40, 39, 38, 37, /*enable=*/ 28, /*cs=*/ 32, /*dc=*/ 30, /*reset=*/ 31); // Connect WR pin with GND //U8G2_IST3020_ERC19264_1_8080 u8g2(U8G2_R0, 44, 43, 42, 41, 40, 39, 38, 37, /*enable=*/ 29, /*cs=*/ 32, /*dc=*/ 30, /*reset=*/ 31); // Connect RD pin with 3.3V //U8G2_IST3020_ERC19264_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_LC7981_160X80_1_6800 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect RW with GND //U8G2_LC7981_160X160_1_6800 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect RW with GND //U8G2_LC7981_240X128_1_6800 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect RW with GND //U8G2_LC7981_240X64_1_6800 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect RW with GND //U8G2_SED1520_122X32_1 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*dc=*/ A0, /*e1=*/ A3, /*e2=*/ A2, /* reset=*/ A4); // Set R/W to low! //U8G2_T6963_240X128_1_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 17, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect RD with +5V, FS0 and FS1 with GND //U8G2_T6963_256X64_1_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 17, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect RD with +5V, FS0 and FS1 with GND //U8G2_T6963_160X80_1_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 17, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect RD with +5V, FS0 and FS1 with GND //U8G2_SED1330_240X128_1_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 17, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect /RD = E with +5V, enable is /WR = RW, FG with GND, 14=Uno Pin A0 //U8G2_SED1330_240X128_1_6800 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 17, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // A0 is dc pin, /WR = RW = GND, enable is /RD = E //U8G2_RA8835_NHD_240X128_1_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 17, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect /RD = E with +5V, enable is /WR = RW, FG with GND, 14=Uno Pin A0 //U8G2_RA8835_NHD_240X128_1_6800 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 17, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // A0 is dc pin, /WR = RW = GND, enable is /RD = E //U8G2_UC1601_128X32_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_UC1601_128X32_1_3W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* reset=*/ 8); //U8G2_UC1604_JLX19264_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_UC1604_JLX19264_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_UC1608_ERC24064_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // SW SPI, Due ERC24064-1 Test Setup //U8G2_UC1608_ERC240120_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_UC1608_240X128_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // SW SPI, Due ERC24064-1 Test Setup //U8G2_UC1610_EA_DOGXL160_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); //U8G2_UC1610_EA_DOGXL160_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); //U8G2_UC1611_EA_DOGM240_1_2ND_HW_I2C u8g2(U8G2_R0, /* reset=*/ 8); // Due, 2nd I2C, DOGM240 Test Board //U8G2_UC1611_EA_DOGM240_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // SW SPI, Due DOGXL240 Test Board //U8G2_UC1611_EA_DOGXL240_1_2ND_HW_I2C u8g2(U8G2_R0, /* reset=*/ 8); // Due, 2nd I2C, DOGXL240 Test Board //U8G2_UC1611_EA_DOGXL240_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // SW SPI, Due DOGXL240 Test Board //U8G2_UC1611_EW50850_1_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*cs=*/ 3, /*dc=*/ 16, /*reset=*/ 16); // 240x160, Connect RD/WR1 pin with 3.3V, CS is aktive high //U8G2_UC1638_160X128_1_4W_HW_SPI u8g2(U8G2_R2, /* cs=*/ 2, /* dc=*/ 3, /* reset=*/ 4); // Not tested //U8G2_SSD1606_172X72_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // eInk/ePaper Display //U8G2_SSD1607_200X200_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // eInk/ePaper Display, original LUT from embedded artists //U8G2_SSD1607_GD_200X200_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Good Display //U8G2_IL3820_296X128_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // WaveShare 2.9 inch eInk/ePaper Display, enable 16 bit mode for this display! //U8G2_IL3820_V2_296X128_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // ePaper Display, lesser flickering and faster speed, enable 16 bit mode for this display! //U8G2_LS013B7DH03_128X128_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ U8X8_PIN_NONE, /* reset=*/ 8); // there is no DC line for this display //U8G2_LS027B7DH01_400X240_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ U8X8_PIN_NONE, /* reset=*/ 8); // there is no DC line for this display // End of constructor list void setup(void) { u8g2.begin(); u8g2.setFont(u8g2_font_6x10_tr); } void draw(const char *s) { u8g2.firstPage(); do { u8g2.drawStr(2,15,""PowerSaveTest""); u8g2.drawStr(2,30,s); u8g2.drawFrame(0,0,u8g2.getDisplayWidth(),u8g2.getDisplayHeight() ); } while ( u8g2.nextPage() ); delay(2000); } void loop(void) { u8g2.setPowerSave(0); draw(""power on / x""); u8g2.setPowerSave(1); draw(""power off / x""); u8g2.setPowerSave(0); draw(""power on / +""); u8g2.setPowerSave(1); draw(""power off / +""); } ",12256,True,3704.2836256889773,median "#include ""test_bc_ur.hpp"" using namespace ur_arduino; using namespace std; typedef std::vector ByteVector; bool test_rng_1(void) { auto rng = Xoshiro256(""Wolf""); vector numbers; for(int i = 0; i < 100; i++) { numbers.push_back(rng.next() % 100); } vector expected_numbers = {42, 81, 85, 8, 82, 84, 76, 73, 70, 88, 2, 74, 40, 48, 77, 54, 88, 7, 5, 88, 37, 25, 82, 13, 69, 59, 30, 39, 11, 82, 19, 99, 45, 87, 30, 15, 32, 22, 89, 44, 92, 77, 29, 78, 4, 92, 44, 68, 92, 69, 1, 42, 89, 50, 37, 84, 63, 34, 32, 3, 17, 62, 40, 98, 82, 89, 24, 43, 85, 39, 15, 3, 99, 29, 20, 42, 27, 10, 85, 66, 50, 35, 69, 70, 70, 74, 30, 13, 72, 54, 11, 5, 70, 55, 91, 52, 10, 43, 43, 52}; for(int i=0; i < expected_numbers.size(); i++) { assert(expected_numbers.at(i) == numbers.at(i)); } } bool test_rng_2() { auto checksum = bytes_to_int(crc32_bytes(string_to_bytes(""Wolf""))); auto rng = Xoshiro256(checksum); vector numbers; for(int i = 0; i < 100; i++) { numbers.push_back(rng.next() % 100); } vector expected_numbers = {88, 44, 94, 74, 0, 99, 7, 77, 68, 35, 47, 78, 19, 21, 50, 15, 42, 36, 91, 11, 85, 39, 64, 22, 57, 11, 25, 12, 1, 91, 17, 75, 29, 47, 88, 11, 68, 58, 27, 65, 21, 54, 47, 54, 73, 83, 23, 58, 75, 27, 26, 15, 60, 36, 30, 21, 55, 57, 77, 76, 75, 47, 53, 76, 9, 91, 14, 69, 3, 95, 11, 73, 20, 99, 68, 61, 3, 98, 36, 98, 56, 65, 14, 80, 74, 57, 63, 68, 51, 56, 24, 39, 53, 80, 57, 51, 81, 3, 1, 30}; for(int i=0; i < expected_numbers.size(); i++) { //assert(expected_numbers.at(i) == numbers.at(i)); std::cout << (uint32_t)numbers.at(i) << ' '; } for(int i=0; i < expected_numbers.size(); i++) { //assert(expected_numbers.at(i) == numbers.at(i)); std::cout << (uint32_t)expected_numbers.at(i) << ' '; } } bool test_rng_3() { auto rng = Xoshiro256(""Wolf""); vector numbers; for(int i = 0; i < 100; i++) { numbers.push_back(rng.next_int(1, 10)); } vector expected_numbers = {6, 5, 8, 4, 10, 5, 7, 10, 4, 9, 10, 9, 7, 7, 1, 1, 2, 9, 9, 2, 6, 4, 5, 7, 8, 5, 4, 2, 3, 8, 7, 4, 5, 1, 10, 9, 3, 10, 2, 6, 8, 5, 7, 9, 3, 1, 5, 2, 7, 1, 4, 4, 4, 4, 9, 4, 5, 5, 6, 9, 5, 1, 2, 8, 3, 3, 2, 8, 4, 3, 2, 1, 10, 8, 9, 3, 10, 8, 5, 5, 6, 7, 10, 5, 8, 9, 4, 6, 4, 2, 10, 2, 1, 7, 9, 6, 7, 4, 2, 5}; for(int i=0; i < expected_numbers.size(); i++) { assert(expected_numbers.at(i) == numbers.at(i)); } } bool test_find_fragment_length() { assert(FountainEncoder::find_nominal_fragment_length(12345, 1005, 1955) == 1764); assert(FountainEncoder::find_nominal_fragment_length(12345, 1005, 30000) == 12345); } bool test_random_sampler() { vector probs = { 1, 2, 4, 8 }; auto sampler = RandomSampler(probs); auto rng = Xoshiro256(""Wolf""); vector samples; auto f = [&](){ return rng.next_double(); }; for(int i = 0; i < 500; i++) { //samples.push_back(sampler.next(f)); samples.push_back(sampler.next(f(), f())); } vector expected_samples = {3, 3, 3, 3, 3, 3, 3, 0, 2, 3, 3, 3, 3, 1, 2, 2, 1, 3, 3, 2, 3, 3, 1, 1, 2, 1, 1, 3, 1, 3, 1, 2, 0, 2, 1, 0, 3, 3, 3, 1, 3, 3, 3, 3, 1, 3, 2, 3, 2, 2, 3, 3, 3, 3, 2, 3, 3, 0, 3, 3, 3, 3, 1, 2, 3, 3, 2, 2, 2, 1, 2, 2, 1, 2, 3, 1, 3, 0, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 1, 3, 3, 2, 0, 2, 2, 3, 1, 1, 2, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 3, 1, 2, 1, 1, 3, 1, 3, 2, 2, 3, 3, 3, 1, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 2, 3, 3, 1, 2, 3, 3, 1, 3, 2, 3, 3, 3, 2, 3, 1, 3, 0, 3, 2, 1, 1, 3, 1, 3, 2, 3, 3, 3, 3, 2, 0, 3, 3, 1, 3, 0, 2, 1, 3, 3, 1, 1, 3, 1, 2, 3, 3, 3, 0, 2, 3, 2, 0, 1, 3, 3, 3, 2, 2, 2, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 2, 0, 2, 3, 3, 3, 3, 2, 1, 1, 1, 2, 1, 3, 3, 3, 2, 2, 3, 3, 1, 2, 3, 0, 3, 2, 3, 3, 3, 3, 0, 2, 2, 3, 2, 2, 3, 3, 3, 3, 1, 3, 2, 3, 3, 3, 3, 3, 2, 2, 3, 1, 3, 0, 2, 1, 3, 3, 3, 3, 3, 3, 3, 3, 1, 3, 3, 3, 3, 2, 2, 2, 3, 1, 1, 3, 2, 2, 0, 3, 2, 1, 2, 1, 0, 3, 3, 3, 2, 2, 3, 2, 1, 2, 0, 0, 3, 3, 2, 3, 3, 2, 3, 3, 3, 3, 3, 2, 2, 2, 3, 3, 3, 3, 3, 1, 1, 3, 2, 2, 3, 1, 1, 0, 1, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 1, 2, 3, 3, 2, 2, 2, 2, 3, 3, 2, 0, 2, 1, 3, 3, 3, 3, 0, 3, 3, 3, 3, 2, 2, 3, 1, 3, 3, 3, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 2, 1, 3, 3, 3, 3, 2, 2, 0, 1, 2, 3, 2, 0, 3, 3, 3, 3, 3, 3, 1, 3, 3, 2, 3, 2, 2, 3, 3, 3, 3, 3, 2, 2, 3, 3, 2, 2, 2, 1, 3, 3, 3, 3, 1, 2, 3, 2, 3, 3, 2, 3, 2, 3, 3, 3, 2, 3, 1, 2, 3, 2, 1, 1, 3, 3, 2, 3, 3, 2, 3, 3, 0, 0, 1, 3, 3, 2, 3, 3, 3, 3, 1, 3, 3, 0, 3, 2, 3, 3, 1, 3, 3, 3, 3, 3, 3, 3, 0, 3, 3, 2}; for(int i=0; i < expected_samples.size(); i++) { assert(expected_samples.at(i) == samples.at(i)); } } static void test_shuffle() { auto rng = Xoshiro256(""Wolf""); vector values = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; vector> result; for(int i = 0; i < 10; i++) { result.push_back(shuffled(values, rng)); } vector> expectedResult = { {6, 4, 9, 3, 10, 5, 7, 8, 1, 2}, {10, 8, 6, 5, 1, 2, 3, 9, 7, 4}, {6, 4, 5, 8, 9, 3, 2, 1, 7, 10}, {7, 3, 5, 1, 10, 9, 4, 8, 2, 6}, {8, 5, 7, 10, 2, 1, 4, 3, 9, 6}, {4, 3, 5, 6, 10, 2, 7, 8, 9, 1}, {5, 1, 3, 9, 4, 6, 2, 10, 7, 8}, {2, 1, 10, 8, 9, 4, 7, 6, 3, 5}, {6, 7, 10, 4, 8, 9, 2, 3, 1, 5}, {10, 2, 1, 7, 9, 5, 6, 3, 4, 8} }; assert(result == expectedResult); } /* bool test_partition_and_join() { auto message = make_message(1024); auto fragment_len = FountainEncoder::find_nominal_fragment_length(message.size(), 10, 100); auto fragments = FountainEncoder::partition_message(message, fragment_len); vector fragments_hex; transform(fragments.begin(), fragments.end(), back_inserter(fragments_hex), [](const ByteVector& b) -> string { return data_to_hex(b); }); vector expected_fragments = { ""916ec65cf77cadf55cd7f9cda1a1030026ddd42e905b77adc36e4f2d3ccba44f7f04f2de44f42d84c374a0e149136f25b01852545961d55f7f7a8cde6d0e2ec43f3b2dcb644a2209e8c9e34af5c4747984a5e873c9cf5f965e25ee29039f"", ""df8ca74f1c769fc07eb7ebaec46e0695aea6cbd60b3ec4bbff1b9ffe8a9e7240129377b9d3711ed38d412fbb4442256f1e6f595e0fc57fed451fb0a0101fb76b1fb1e1b88cfdfdaa946294a47de8fff173f021c0e6f65b05c0a494e50791"", ""270a0050a73ae69b6725505a2ec8a5791457c9876dd34aadd192a53aa0dc66b556c0c215c7ceb8248b717c22951e65305b56a3706e3e86eb01c803bbf915d80edcd64d4d41977fa6f78dc07eecd072aae5bc8a852397e06034dba6a0b570"", ""797c3a89b16673c94838d884923b8186ee2db5c98407cab15e13678d072b43e406ad49477c2e45e85e52ca82a94f6df7bbbe7afbed3a3a830029f29090f25217e48d1f42993a640a67916aa7480177354cc7440215ae41e4d02eae9a1912"", ""33a6d4922a792c1b7244aa879fefdb4628dc8b0923568869a983b8c661ffab9b2ed2c149e38d41fba090b94155adbed32f8b18142ff0d7de4eeef2b04adf26f2456b46775c6c20b37602df7da179e2332feba8329bbb8d727a138b4ba7a5"", ""03215eda2ef1e953d89383a382c11d3f2cad37a4ee59a91236a3e56dcf89f6ac81dd4159989c317bd649d9cbc617f73fe10033bd288c60977481a09b343d3f676070e67da757b86de27bfca74392bac2996f7822a7d8f71a489ec6180390"", ""089ea80a8fcd6526413ec6c9a339115f111d78ef21d456660aa85f790910ffa2dc58d6a5b93705caef1091474938bd312427021ad1eeafbd19e0d916ddb111fabd8dcab5ad6a6ec3a9c6973809580cb2c164e26686b5b98cfb017a337968"", ""c7daaa14ae5152a067277b1b3902677d979f8e39cc2aafb3bc06fcf69160a853e6869dcc09a11b5009f91e6b89e5b927ab1527a735660faa6012b420dd926d940d742be6a64fb01cdc0cff9faa323f02ba41436871a0eab851e7f5782d10"", ""fbefde2a7e9ae9dc1e5c2c48f74f6c824ce9ef3c89f68800d44587bedc4ab417cfb3e7447d90e1e417e6e05d30e87239d3a5d1d45993d4461e60a0192831640aa32dedde185a371ded2ae15f8a93dba8809482ce49225daadfbb0fec629e"", ""23880789bdf9ed73be57fa84d555134630e8d0f7df48349f29869a477c13ccca9cd555ac42ad7f568416c3d61959d0ed568b2b81c7771e9088ad7fd55fd4386bafbf5a528c30f107139249357368ffa980de2c76ddd9ce4191376be0e6b5"", ""170010067e2e75ebe2d2904aeb1f89d5dc98cd4a6f2faaa8be6d03354c990fd895a97feb54668473e9d942bb99e196d897e8f1b01625cf48a7b78d249bb4985c065aa8cd1402ed2ba1b6f908f63dcd84b66425df00000000000000000000"" }; assert(fragments_hex == expected_fragments); auto rejoined_message = FountainDecoder::join_fragments(fragments, message.size()); assert(message == rejoined_message); } */ bool test_choose_degree() { Serial.println(""test_choose_degree""); auto message = make_message(1024); auto fragment_len = FountainEncoder::find_nominal_fragment_length(message.size(), 10, 100); auto fragments = FountainEncoder::partition_message(message, fragment_len); vector degrees; char * nonce_str = NULL; string nonce_string; for(int nonce = 1; nonce <= 200; nonce++) { nonce_str = (char *)String(nonce).c_str(); nonce_string = nonce_str; auto part_rng = Xoshiro256(""Wolf-"" + nonce_string); degrees.push_back(choose_degree(fragments.size(), part_rng)); } vector expected_degrees = {11, 3, 6, 5, 2, 1, 2, 11, 1, 3, 9, 10, 10, 4, 2, 1, 1, 2, 1, 1, 5, 2, 4, 10, 3, 2, 1, 1, 3, 11, 2, 6, 2, 9, 9, 2, 6, 7, 2, 5, 2, 4, 3, 1, 6, 11, 2, 11, 3, 1, 6, 3, 1, 4, 5, 3, 6, 1, 1, 3, 1, 2, 2, 1, 4, 5, 1, 1, 9, 1, 1, 6, 4, 1, 5, 1, 2, 2, 3, 1, 1, 5, 2, 6, 1, 7, 11, 1, 8, 1, 5, 1, 1, 2, 2, 6, 4, 10, 1, 2, 5, 5, 5, 1, 1, 4, 1, 1, 1, 3, 5, 5, 5, 1, 4, 3, 3, 5, 1, 11, 3, 2, 8, 1, 2, 1, 1, 4, 5, 2, 1, 1, 1, 5, 6, 11, 10, 7, 4, 7, 1, 5, 3, 1, 1, 9, 1, 2, 5, 5, 2, 2, 3, 10, 1, 3, 2, 3, 3, 1, 1, 2, 1, 3, 2, 2, 1, 3, 8, 4, 1, 11, 6, 3, 1, 1, 1, 1, 1, 3, 1, 2, 1, 10, 1, 1, 8, 2, 7, 1, 2, 1, 9, 2, 10, 2, 1, 3, 4, 10}; assert(degrees == expected_degrees); } static void test_choose_fragments() { auto message = make_message(1024); auto checksum = crc32_int(message); auto fragment_len = FountainEncoder::find_nominal_fragment_length(message.size(), 10, 100); auto fragments = FountainEncoder::partition_message(message, fragment_len); vector> fragment_indexes; for(uint32_t seq_num = 1; seq_num <= 30; seq_num++) { auto indexes_set = choose_fragments(seq_num, fragments.size(), checksum); auto indexes = vector(indexes_set.begin(), indexes_set.end()); sort(indexes.begin(), indexes.end()); fragment_indexes.push_back(indexes); } vector> expected_fragment_indexes = { {0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}, {9}, {2, 5, 6, 8, 9, 10}, {8}, {1, 5}, {1}, {0, 2, 4, 5, 8, 10}, {5}, {2}, {2}, {0, 1, 3, 4, 5, 7, 9, 10}, {0, 1, 2, 3, 5, 6, 8, 9, 10}, {0, 2, 4, 5, 7, 8, 9, 10}, {3, 5}, {4}, {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, {0, 1, 3, 4, 5, 6, 7, 9, 10}, {6}, {5, 6}, {7} }; assert(fragment_indexes == expected_fragment_indexes); } bool test_xor() { auto rng = Xoshiro256(""Wolf""); auto data1 = rng.next_data(10); assert(data_to_hex(data1) == ""916ec65cf77cadf55cd7""); auto data2 = rng.next_data(10); assert(data_to_hex(data2) == ""f9cda1a1030026ddd42e""); auto data3 = data1; xor_into(data3, data2); assert(data_to_hex(data3) == ""68a367fdf47c8b2888f9""); xor_into(data3, data1); assert(data3 == data2); } bool test_fountain_encoder() { auto message = make_message(256); auto encoder = FountainEncoder(message, 30); StringVector parts; for(int i = 0; i < 20; i++) { parts.push_back(encoder.next_part().description()); } StringVector expected_parts = { ""seqNum:1, seqLen:9, messageLen:256, checksum:23570951, data:916ec65cf77cadf55cd7f9cda1a1030026ddd42e905b77adc36e4f2d3c"", ""seqNum:2, seqLen:9, messageLen:256, checksum:23570951, data:cba44f7f04f2de44f42d84c374a0e149136f25b01852545961d55f7f7a"", ""seqNum:3, seqLen:9, messageLen:256, checksum:23570951, data:8cde6d0e2ec43f3b2dcb644a2209e8c9e34af5c4747984a5e873c9cf5f"", ""seqNum:4, seqLen:9, messageLen:256, checksum:23570951, data:965e25ee29039fdf8ca74f1c769fc07eb7ebaec46e0695aea6cbd60b3e"", ""seqNum:5, seqLen:9, messageLen:256, checksum:23570951, data:c4bbff1b9ffe8a9e7240129377b9d3711ed38d412fbb4442256f1e6f59"", ""seqNum:6, seqLen:9, messageLen:256, checksum:23570951, data:5e0fc57fed451fb0a0101fb76b1fb1e1b88cfdfdaa946294a47de8fff1"", ""seqNum:7, seqLen:9, messageLen:256, checksum:23570951, data:73f021c0e6f65b05c0a494e50791270a0050a73ae69b6725505a2ec8a5"", ""seqNum:8, seqLen:9, messageLen:256, checksum:23570951, data:791457c9876dd34aadd192a53aa0dc66b556c0c215c7ceb8248b717c22"", ""seqNum:9, seqLen:9, messageLen:256, checksum:23570951, data:951e65305b56a3706e3e86eb01c803bbf915d80edcd64d4d0000000000"", ""seqNum:10, seqLen:9, messageLen:256, checksum:23570951, data:330f0f33a05eead4f331df229871bee733b50de71afd2e5a79f196de09"", ""seqNum:11, seqLen:9, messageLen:256, checksum:23570951, data:3b205ce5e52d8c24a52cffa34c564fa1af3fdffcd349dc4258ee4ee828"", ""seqNum:12, seqLen:9, messageLen:256, checksum:23570951, data:dd7bf725ea6c16d531b5f03254783803048ca08b87148daacd1cd7a006"", ""seqNum:13, seqLen:9, messageLen:256, checksum:23570951, data:760be7ad1c6187902bbc04f539b9ee5eb8ea6833222edea36031306c01"", ""seqNum:14, seqLen:9, messageLen:256, checksum:23570951, data:5bf4031217d2c3254b088fa7553778b5003632f46e21db129416f65b55"", ""seqNum:15, seqLen:9, messageLen:256, checksum:23570951, data:73f021c0e6f65b05c0a494e50791270a0050a73ae69b6725505a2ec8a5"", ""seqNum:16, seqLen:9, messageLen:256, checksum:23570951, data:b8546ebfe2048541348910267331c643133f828afec9337c318f71b7df"", ""seqNum:17, seqLen:9, messageLen:256, checksum:23570951, data:23dedeea74e3a0fb052befabefa13e2f80e4315c9dceed4c8630612e64"", ""seqNum:18, seqLen:9, messageLen:256, checksum:23570951, data:d01a8daee769ce34b6b35d3ca0005302724abddae405bdb419c0a6b208"", ""seqNum:19, seqLen:9, messageLen:256, checksum:23570951, data:3171c5dc365766eff25ae47c6f10e7de48cfb8474e050e5fe997a6dc24"", ""seqNum:20, seqLen:9, messageLen:256, checksum:23570951, data:e055c2433562184fa71b4be94f262e200f01c6f74c284b0dc6fae6673f"" }; assert(parts == expected_parts); } static void test_fountain_encoder_cbor() { auto message = make_message(256); auto encoder = FountainEncoder(message, 30); StringVector parts; for(int i = 0; i < 20; i++) { parts.push_back(data_to_hex(encoder.next_part().cbor())); } StringVector expected_parts = { ""8501091901001a0167aa07581d916ec65cf77cadf55cd7f9cda1a1030026ddd42e905b77adc36e4f2d3c"", ""8502091901001a0167aa07581dcba44f7f04f2de44f42d84c374a0e149136f25b01852545961d55f7f7a"", ""8503091901001a0167aa07581d8cde6d0e2ec43f3b2dcb644a2209e8c9e34af5c4747984a5e873c9cf5f"", ""8504091901001a0167aa07581d965e25ee29039fdf8ca74f1c769fc07eb7ebaec46e0695aea6cbd60b3e"", ""8505091901001a0167aa07581dc4bbff1b9ffe8a9e7240129377b9d3711ed38d412fbb4442256f1e6f59"", ""8506091901001a0167aa07581d5e0fc57fed451fb0a0101fb76b1fb1e1b88cfdfdaa946294a47de8fff1"", ""8507091901001a0167aa07581d73f021c0e6f65b05c0a494e50791270a0050a73ae69b6725505a2ec8a5"", ""8508091901001a0167aa07581d791457c9876dd34aadd192a53aa0dc66b556c0c215c7ceb8248b717c22"", ""8509091901001a0167aa07581d951e65305b56a3706e3e86eb01c803bbf915d80edcd64d4d0000000000"", ""850a091901001a0167aa07581d330f0f33a05eead4f331df229871bee733b50de71afd2e5a79f196de09"", ""850b091901001a0167aa07581d3b205ce5e52d8c24a52cffa34c564fa1af3fdffcd349dc4258ee4ee828"", ""850c091901001a0167aa07581ddd7bf725ea6c16d531b5f03254783803048ca08b87148daacd1cd7a006"", ""850d091901001a0167aa07581d760be7ad1c6187902bbc04f539b9ee5eb8ea6833222edea36031306c01"", ""850e091901001a0167aa07581d5bf4031217d2c3254b088fa7553778b5003632f46e21db129416f65b55"", ""850f091901001a0167aa07581d73f021c0e6f65b05c0a494e50791270a0050a73ae69b6725505a2ec8a5"", ""8510091901001a0167aa07581db8546ebfe2048541348910267331c643133f828afec9337c318f71b7df"", ""8511091901001a0167aa07581d23dedeea74e3a0fb052befabefa13e2f80e4315c9dceed4c8630612e64"", ""8512091901001a0167aa07581dd01a8daee769ce34b6b35d3ca0005302724abddae405bdb419c0a6b208"", ""8513091901001a0167aa07581d3171c5dc365766eff25ae47c6f10e7de48cfb8474e050e5fe997a6dc24"", ""8514091901001a0167aa07581de055c2433562184fa71b4be94f262e200f01c6f74c284b0dc6fae6673f"" }; assert(parts == expected_parts); } bool test_fountain_encoder_is_complete() { auto message = make_message(256); auto encoder = FountainEncoder(message, 30); size_t generated_parts_count = 0; while(!encoder.is_complete()) { encoder.next_part(); generated_parts_count += 1; } assert(encoder.seq_len() == generated_parts_count); } bool test_fountain_cbor() { CborDynamicOutput output; CborWriter writer(output); writer.writeArray(5); writer.writeInt(12); writer.writeInt(8); writer.writeInt(100); writer.writeInt(0x12345678); uint8_t arr[] ={1, 5, 3, 3 ,5}; writer.writeBytes(arr, sizeof(arr)); ByteVector vec(output.getData(), output.getData() + output.getSize()); //auto part = FountainEncoder::Part(12, 8, 100, 0x12345678, {1, 5, 3, 3 ,5}); auto part = FountainEncoder::Part(vec); auto cbor = part.cbor(); auto part2 = FountainEncoder::Part(cbor); auto cbor2 = part2.cbor(); assert(cbor == cbor2); } static void test_ur_encoder() { auto ur = make_message_ur(256); auto encoder = UREncoder(ur, 30); StringVector parts; for(int i = 0; i < 20; i++) { parts.push_back(encoder.next_part()); } StringVector expected_parts = { ""ur:bytes/1-9/lpadascfadaxcywenbpljkhdcahkadaemejtswhhylkepmykhhtsytsnoyoyaxaedsuttydmmhhpktpmsrjtdkgslpgh"", ""ur:bytes/2-9/lpaoascfadaxcywenbpljkhdcagwdpfnsboxgwlbaawzuefywkdplrsrjynbvygabwjldapfcsgmghhkhstlrdcxaefz"", ""ur:bytes/3-9/lpaxascfadaxcywenbpljkhdcahelbknlkuejnbadmssfhfrdpsbiegecpasvssovlgeykssjykklronvsjksopdzmol"", ""ur:bytes/4-9/lpaaascfadaxcywenbpljkhdcasotkhemthydawydtaxneurlkosgwcekonertkbrlwmplssjtammdplolsbrdzcrtas"", ""ur:bytes/5-9/lpahascfadaxcywenbpljkhdcatbbdfmssrkzmcwnezelennjpfzbgmuktrhtejscktelgfpdlrkfyfwdajldejokbwf"", ""ur:bytes/6-9/lpamascfadaxcywenbpljkhdcackjlhkhybssklbwefectpfnbbectrljectpavyrolkzczcpkmwidmwoxkilghdsowp"", ""ur:bytes/7-9/lpatascfadaxcywenbpljkhdcavszmwnjkwtclrtvaynhpahrtoxmwvwatmedibkaegdosftvandiodagdhthtrlnnhy"", ""ur:bytes/8-9/lpayascfadaxcywenbpljkhdcadmsponkkbbhgsoltjntegepmttmoonftnbuoiyrehfrtsabzsttorodklubbuyaetk"", ""ur:bytes/9-9/lpasascfadaxcywenbpljkhdcajskecpmdckihdyhphfotjojtfmlnwmadspaxrkytbztpbauotbgtgtaeaevtgavtny"", ""ur:bytes/10-9/lpbkascfadaxcywenbpljkhdcahkadaemejtswhhylkepmykhhtsytsnoyoyaxaedsuttydmmhhpktpmsrjtwdkiplzs"", ""ur:bytes/11-9/lpbdascfadaxcywenbpljkhdcahelbknlkuejnbadmssfhfrdpsbiegecpasvssovlgeykssjykklronvsjkvetiiapk"", ""ur:bytes/12-9/lpbnascfadaxcywenbpljkhdcarllaluzmdmgstospeyiefmwejlwtpedamktksrvlcygmzemovovllarodtmtbnptrs"", ""ur:bytes/13-9/lpbtascfadaxcywenbpljkhdcamtkgtpknghchchyketwsvwgwfdhpgmgtylctotzopdrpayoschcmhplffziachrfgd"", ""ur:bytes/14-9/lpbaascfadaxcywenbpljkhdcapazewnvonnvdnsbyleynwtnsjkjndeoldydkbkdslgjkbbkortbelomueekgvstegt"", ""ur:bytes/15-9/lpbsascfadaxcywenbpljkhdcaynmhpddpzmversbdqdfyrehnqzlugmjzmnmtwmrouohtstgsbsahpawkditkckynwt"", ""ur:bytes/16-9/lpbeascfadaxcywenbpljkhdcawygekobamwtlihsnpalnsghenskkiynthdzotsimtojetprsttmukirlrsbtamjtpd"", ""ur:bytes/17-9/lpbyascfadaxcywenbpljkhdcamklgftaxykpewyrtqzhydntpnytyisincxmhtbceaykolduortotiaiaiafhiaoyce"", ""ur:bytes/18-9/lpbgascfadaxcywenbpljkhdcahkadaemejtswhhylkepmykhhtsytsnoyoyaxaedsuttydmmhhpktpmsrjtntwkbkwy"", ""ur:bytes/19-9/lpbwascfadaxcywenbpljkhdcadekicpaajootjzpsdrbalpeywllbdsnbinaerkurspbncxgslgftvtsrjtksplcpeo"", ""ur:bytes/20-9/lpbbascfadaxcywenbpljkhdcayapmrleeleaxpasfrtrdkncffwjyjzgyetdmlewtkpktgllepfrltataztksmhkbot"" }; assert(parts == expected_parts); } bool test_bc_ur(void) { test_rng_1(); test_rng_2(); test_rng_3(); test_find_fragment_length(); test_random_sampler(); test_shuffle(); test_choose_degree(); test_choose_fragments(); test_xor(); test_fountain_encoder(); test_fountain_encoder_cbor(); test_fountain_encoder_is_complete(); test_fountain_cbor(); test_ur_encoder(); return true; } ",12139,False,2012.3533497222406,median "@echo off color 1E :: BatchGotAdmin :------------------------------------- REM --> Check for permissions >nul 2>&1 ""%SYSTEMROOT%\\system32\\cacls.exe"" ""%SYSTEMROOT%\\system32\\config\\system"" taskkill /f /im epicgameslauncher.exe taskkill /f /im FortniteClient-Win64-Shipping_EAC.exe taskkill /f /im FortniteClient-Win64-Shipping.exe taskkill /f /im FortniteClient-Win64-Shipping_BE.exe taskkill /f /im FortniteLauncher.exe taskkill /f /im EpicGamesLauncher.exe taskkill /f /im FortniteClient-Win64-Shipping.exe taskkill /f /im EpicGamesLauncher.exe del ""C:\\Windows\\TEMP\\206F3FDC-B1A8-4FD6-BDB8-6CFE76122873"", del ""C:\\ProgramData\\Microsoft\\Windows\\WER\\Temp\\WER95DF.tmp.mdmp"", del ""C:\\Windows.old\\Users\\All Users\\Microsoft\\Windows\\WER\\Temp\\WER95DF.tmp.mdmp"", del ""C:\\Users\\All Users\\Microsoft\\Windows\\WER\\Temp\\WER95DF.tmp.mdmp"", del ""C:\\Windows\\CbsTemp\\30780525_1668355464"", del ""C:\\Windows\\TEMP\\6E04EF32-0387-48B1-B812-AC2BBA90A8D0"", del ""C:\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\webcache\\Cookies"", del ""C:\\Users\\%username%\\AppData\\Local\\NVIDIA Corporation\\GfeSDK\\FORTNI~1.LOG"", del ""C:\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\PersistentDownloadDir\\CMS\\Files\\9A71EB4A90946A4A0DCD9B7D82F48C55B49D0880\\siphon-1024x512-4cc0ff3407053325e353c4aea55fb30316e6ecf6.jpg"", del ""C:\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\PersistentDownloadDir\\CMS\\Files\\9A71EB4A90946A4A0DCD9B7D82F48C55B49D0880\\Fortnite%2Ffortnite-game%2Ftournaments%2F11BR_Arena_ModeTiles_Squad_ModeTile-1024x512-c543a187ce733be5ee9f6d17bfb74fb1f2e15f4a.jpg"", del ""C:\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\PersistentDownloadDir\\CMS\\Files\\9A71EB4A90946A4A0DCD9B7D82F48C55B49D0880\\Fortnite%2Ffortnite-game%2Ftournaments%2F11BR_Arena_ModeTiles_Solo_ModeTile-1024x512-6cee09d7bcf82ce3f32ca7c77ca04948121ce617.jpg"", del ""C:\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\WebCache\\V0100024.log"", del ""C:\\Users\\All Users\\Microsoft\\Windows\\WER\\Temp\\WER5CC2.tmp.xml"", del ""C:\\Windows.old\\Users\\All Users\\Microsoft\\Windows\\WER\\Temp\\WER6D21.tmp.WERInternalMetadata.xml"", del ""C:\\Users\\%username%\\AppData\\Local\\Temp\\ecache.bin"", del ""C:\\Users\\%username%\\AppData\\Local\\CrashDumps\\BACKGR~2.DMP"", del ""C:\\Windows\\prefetch\\ATTRIB.EXE-58A07CAF.pf"", del ""C:\\Windows\\prefetch\\AgRobust.db"", del ""C:\\Users\\%username%\\AppData\\Local\\Microsoft\\Feeds Cache"", del ""C:\\Windows\\prefetch\\CEPHTMLENGINE.EXE-E15640BA.pf"", del ""C:\\Windows\\prefetch\\CMD.EXE-0BD30981.pf"", del ""C:\\Windows\\prefetch\\CLIPUP.EXE-4C5C7B66.pf"", del ""C:\\Windows\\prefetch\\D3D9TEST.EXE-1B86F3FC.pf"", del ""C:\\Windows\\prefetch\\DISCORD.EXE-6BEBC47C.pf"", del ""C:\\Windows\\prefetch\\EPICGAMESLAUNCHER.EXE-FAB85FF0.pf"", del ""C:\\Windows\\prefetch\\EPICGAMESLAUNCHER.EXE-018FC121.pf"", del ""C:\\Windows\\prefetch\\GET-GRAPHICS-OFFSETS64.EXE-2BCB2EA4.pf"", del ""C:\\Windows\\prefetch\\GET-GRAPHICS-OFFSETS32.EXE-D4C865E3.pf"", del ""C:\\Windows\\prefetch\\OBS64.EXE-2B6570C7.pf"", del ""C:\\Windows\\prefetch\\OBS-FFMPEG-MUX.EXE-1C01271A.pf"", del ""C:\\Windows\\prefetch\\OBS-FFMPEG-MUX.EXE-1C01271A.pf"", cd C:\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\Binaries\\Win64\\ cd D:\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\Binaries\\Win64\\ cd E:\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\Binaries\\Win64\\ cd F:\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\Binaries\\Win64\\ del /f /s /q ""C:\\Users\\%username%\\Desktop\\test\\*.*"" @del /s /f /a:h /a:a /q ""C:\\Users\\All Users\\NVIDIA\\*.*"" @del /s /f /a:h /a:a /q ""C:\\ProgramData\\NVIDIA\\*.*"" @del /s /f /a:h /a:a /q ""C:\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\Logs\\*.*"" @del /s /f /a:h /a:a /q ""C:\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\webcache\\Cache\\*.*"" @del /s /f /a:h /a:a /q ""C:\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\Config\\CrashReportClient\\*.*"" @del /s /f /a:h /a:a /q ""C:\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\Demos\\*.*"" @del /s /f /a:h /a:a /q ""C:\\Users\\%username%\\AppData\\Roaming\\Microsoft\\Windows\\Recent\\*.*"" @del /s /f /a:h /a:a /q ""C:\\Users\\%username%\\AppData\\Local\\Google\\Chrome\\User Data\\lockfile"" @del /s /f /a:h /a:a /q ""C:\\Users\\%username%\\AppData\\Local\\Google\\Chrome\\User Data\\BrowserMetrics\\*.*"" @del /s /f /a:h /a:a /q ""C:\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\Config\\CrashReportClient\\*.*"" @del /s /f /a:h /a:a /q ""C:\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\Logs\\*.*"" @del /s /f /a:h /a:a /q ""C:\\Users\\%username%\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\*.*"" @del /s /f /a:h /a:a /q ""C:\\Users\\%username%\\AppData\\Local\\NVIDIA Corporation\\GfeSDK\\*.*"" @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\UnrealEngine\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\Logs\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\webcache\\Service Worker\\CacheStorage\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\webcache\\GPUCache\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\Config\\WindowsClient\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\PersistentDownloadDir\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\LMS\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\Cloud\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\Demos\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Recovery\\ntuser.sys\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\Public\\Libraries\\collection.dat\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\MSOCache\\{71230000-00E2-0000-1000-00000000}\\Setup.dat\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\WebCache\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Feeds\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\ProgramData\\Microsoft\\DataMart\\PaidWiFi\\NetworksCache\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\ProgramData\\Microsoft\\DataMart\\PaidWiFi\\Rules\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\History\\History.IE5\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Speech Graphics\\Carnival\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\ProgramData\\Microsoft\\Windows\\WER\\Temp\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\Local\\Microsoft\\Windows\\INetCache\\Content.IE5\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\Local\\Microsoft\\Windows\\INetCookies\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\LocalLow\\Microsoft\\CryptnetUrlCache\\MetaData\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\LocalLow\\Microsoft\\CryptnetUrlCache\\Content\\*.*"" >nul 2>&1 del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\UnrealEngine\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\Logs\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\webcache\\Service Worker\\CacheStorage\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\webcache\\GPUCache\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\Config\\WindowsClient\\*.* del /f /s /q ""%systemdrive%\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\PersistentDownloadDir\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\LMS\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\Cloud\\*.* del /f /s /q ""%systemdrive%\\Recovery\\ntuser.sys\\*.* del /f /s /q ""%systemdrive%\\Users\\Public\\Libraries\\collection.dat\\*.* del /f /s /q ""%systemdrive%\\MSOCache\\{71230000-00E2-0000-1000-00000000}\\Setup.dat\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\WebCache\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Feeds\\*.*"" del /f /s /q ""%systemdrive%\\ProgramData\\Microsoft\\DataMart\\PaidWiFi\\NetworksCache\\*.* del /f /s /q ""%systemdrive%\\ProgramData\\Microsoft\\DataMart\\PaidWiFi\\Rules\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\History\\History.IE5\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Speech Graphics\\Carnival\\*.* del /f /s /q ""%systemdrive%\\ProgramData\\Microsoft\\Windows\\WER\\Temp\\*.* del /f /s /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\Local\\Microsoft\\Windows\\INetCache\\Content.IE5\\*.* del /f /s /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\Local\\Microsoft\\Windows\\INetCookies\\*.* del /f /s /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\LocalLow\\Microsoft\\CryptnetUrlCache\\MetaData\\*.* del /f /s /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\LocalLow\\Microsoft\\CryptnetUrlCache\\Content\\*.* del /s /f /q %systemdrive%\\Windows\\Public\\Libraries\\*.* del /s /f /q %systemdrive%\\Windows\\Prefetch\\*.* del /f /s /q %systemdrive%\\Intel\\*.*"" del /f /s /q %systemdrive%\\\\desktop.ini\\*.*"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\UnrealEngine"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\Logs"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\webcache\\Service Worker\\CacheStorage"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\webcache\\GPUCache"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\Config\\WindowsClient"" rmdir /s /q ""%systemdrive%\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\PersistentDownloadDir"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\LMS"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\Cloud"" rmdir /s /q ""%systemdrive%\\Recovery\\ntuser.sys"" rmdir /s /q ""%systemdrive%\\Users\\Public\\Libraries\\collection.dat"" rmdir /s /q ""%systemdrive%\\MSOCache\\{71230000-00E2-0000-1000-00000000}\\Setup.dat"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\WebCache"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Feeds"" rmdir /s /q ""%systemdrive%\\ProgramData\\Microsoft\\DataMart\\PaidWiFi\\NetworksCache"" rmdir /s /q ""%systemdrive%\\ProgramData\\Microsoft\\DataMart\\PaidWiFi\\Rules"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\History\\History.IE5"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Speech Graphics\\Carnival"" rmdir /s /q ""%systemdrive%\\ProgramData\\Microsoft\\Windows\\WER\\Temp"" rmdir /s /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\Local\\Microsoft\\Windows\\INetCache\\Content.IE5"" rmdir /s /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\Local\\Microsoft\\Windows\\INetCookies"" rmdir /s /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\LocalLow\\Microsoft\\CryptnetUrlCache\\MetaData"" rmdir /s /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\LocalLow\\Microsoft\\CryptnetUrlCache\\Content"" rmdir /s /q ""%systemdrive%\\Windows\\Public\\Libraries"" rmdir /s /q ""%systemdrive%\\Windows\\Prefetch"" rmdir /s /q ""%systemdrive%\\Intel"" rmdir /s /q ""%systemdrive%\\desktop.ini"" @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Roaming\\Microsoft\\Windows\\Themes\\CachedFiles\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\Local\\Microsoft\\Windows\\INetCache\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\config\\systemprofile\\AppData\\Local\\Microsoft\\Windows\\WebCache\\WebCacheV01.dat\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\config\\systemprofile\\AppData\\Local\\Microsoft\\Windows\\WebCache\\WebCacheV01.jfm\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\LocalLow\\Microsoft\\CryptnetUrlCache\\MetaData\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\INetCache\\IE\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Program Files (x86)\\Common Files\\BattlEye\\BEDaisy.sys\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\Prefetch\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\Videos\\Captures\\desktop.ini\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.Windows.Cortana_cw5n1h2txyewy\\AC\\AppCache\\YVV2MEXU\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Roaming\\Microsoft\\Windows\\Recent\\AutomaticDestinations\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.Windows.Cortana_cw5n1h2txyewy\\AC\\INetCache\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\ProgramData\\Microsoft\\Windows\\DeviceMetadataCache\\dmrc.idx\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.XboxGamingOverlay_8wekyb3d8bbwe\\AC\\INetCookies\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.XboxGamingOverlay_8wekyb3d8bbwe\\AC\\Microsoft\\CryptnetUrlCache\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.XboxGamingOverlay_8wekyb3d8bbwe\\AC\\INetHistory\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.Windows.Cortana_cw5n1h2txyewy\\TempState\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\WebCache\\WebCacheV01.dat\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\NVIDIA Corporation\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\ProgramData\\Microsoft\\Windows\\DeviceMetadataCache\\dmrc.idx\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Internet Explorer\\CacheStorage\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\AMD\\DxCache\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Program Files (x86)\\AMD\\CNext\\CCCSlim\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\NVIDIA Corporation\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\webcache\\GPUCache\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\ProgramData\\Microsoft\\XboxLive\\NSALCache\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\PersistentDownloadDir\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\PlaceholderTileLogoFolder\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\LocalLow\\Microsoft\\CryptnetUrlCache\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\WebCache\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Roaming\\Microsoft\\Windows\\Themes\\CachedFiles\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\ServiceProfiles\\LocalService\\AppData\\Local\\FontCache\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Roaming\\Microsoft\\Windows\\CloudStore\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\Prefetch\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\LMS\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\ProgramData\\Microsoft\\Diagnosis\\EventStore.db-wal\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\perfc009.dat\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\perfh009.dat\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\INF\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\PerfStringBackup.TMP\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\PerfStringBackup.INI\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\ntuser.dat.LOG2\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.Windows.Cortana_cw5n1h2txyewy\\Settings\\settings.dat.LOG1\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\wbem\\Performance\\WmiApRpl.ini\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\TEMP\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\SoftwareDistribution\\DataStore\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\WDI\\LogFiles\\StartupInfo\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\ServiceProfiles\\NetworkService\\AppData\\Local\\Microsoft\\Windows\\DeliveryOptimization\\Logs\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\ServiceProfiles\\NetworkService\\AppData\\Local\\Microsoft\\Windows\\DeliveryOptimization\\State\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\SysWOW64\\Gms.log\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\spp\\store\\2.0\\cache\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\ProgramData\\USOShared\\Logs\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.ZuneVideo_8wekyb3d8bbwe\\LocalState\\Database\\anonymous\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\WER\\ERC\\*.* del /s /q /f /a "".\\desktop.ini"" del /s /ah desktop.ini. @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\SettingSync\\remotemetastore\\v1\\edb.log\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\SettingSync\\metastore\\edb.log\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\Logs\\CBS\\CBS.log\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Comms\\Unistore\\data\\3\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Comms\\Unistore\\data\\temp\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\\AppData\\User\\Default\\Indexed DB\\edb.log\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\SettingSync\\metastore\\meta.edb\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Roaming\\Microsoft\\Windows\\Recent\\AutomaticDestinations\\b05132b02959bc64.automaticDestinations-ms\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\appcompat\\Programs\\Amcache.hve\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Roaming\\EasyAntiCheat\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\LogFiles\\WMI\\RtBackup\\EtwRTGraphicsPerfMonitorSession.etl\\*.* del /f /s /q ""@del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\*.*"" rmdir /s /q ""@del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame"" @RD /S /Q ""%localappdata%\\FortniteGame"" @RD /S /Q ""%localappdata%\\EpicGamesLauncher"" @RD /S /Q ""%localappdata%\\UnrealEngine"" @RD /S /Q ""%localappdata%\\UnrealEngineLauncher"" @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\\AC\\MicrosoftEdge\\User\\Default\\Recovery\\Active\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\\AC\\#!002\\MicrosoftEdge\\User\\Default\\AppCache\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Roaming\\Microsoft\\Windows\\Recent\\Autom\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\rescache\\_merged\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\ntuser.dat.LOG1\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\ntuser.dat.LOG2\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\OneDrive\\settings\\Personal\\logUploaderSettings_temp.ini\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\OneDrive\\settings\\Personal\\logUploaderSettings.ini\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\sru\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\OneDrive\\logs\\Common\\DeviceHealthSummaryConfiguration.ini\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\config\\systemprofile\\AppData\\Local\\Microsoft\\Windows\\WebCache\\WebCacheV01.dat\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\config\\systemprofile\\AppData\\Local\\Microsoft\\XboxLive\\AuthStateCache.dat\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\config\\BBI.LOG1\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\config\\BBI.LOG2\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\config\\DEFAULT.LOG2\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\Logs\\MoSetup\\UpdateAgent.log\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\SoftwareDistribution\\PostRebootEventCache.V2\\{323558A6-0300-4C3E-97A0-EDEDFEB96B00}.bin\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.Windows.Cortana_cw5n1h2txyewy\\TempState\\CortanaUnifiedTileModelCache.dat\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\SettingSync\\metastore\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.Windows.Cortana_cw5n1h2txyewy\\AC\\INetCache\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.Windows.Cortana_cw5n1h2txyewy\\AppData\\Indexed DB\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\LogFiles\\WMI\\RtBackup\\EtwRTGraphicsPerfMonitorSession.etl\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\NVIDIA Corporation\\GfeSDK\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\SoftwareDistribution\\DataStore\\Logs\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\Logs\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Comms\\Unistore\\data\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Comms\\UnistoreDB\\USS.jtx\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Feeds\\*.*"" >nul 2>&1\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\ProgramData\\Microsoft\\Windows\\AppRepository\\Packages\\Microsoft.XboxGameOverlay_1.42.4001.0_x64__8wekyb3d8bbwe\\ActivationStore.dat\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.SkypeApp_kzf8qxf38zg5c\\LocalState\\DiagOutputDir\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\WebCache\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.Windows.Cortana_cw5n1h2txyewy\\AppData\\Indexed DB\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\ServiceState\\EventLog\\Data\\lastalive0.dat\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\UsrClass.dat.LOG2\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\UsrClass.dat.LOG1\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\INetCache\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\Safety\\edge\\remote\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\WindowsUpdate.log\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\SoftwareDistribution\\DataStore\\DataStore.edb\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\SoftwareDistribution\\DataStore\\Logs\\edb.log\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\Safety\\edge\\remote\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.Windows.Cortana_cw5n1h2txyewy\\Settings\\settings.dat.LOG1\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\SoftwareDistribution\\DataStore\\Logs\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\config\\DEFAULT.LOG2\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\config\\SYSTEM.LOG2\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\UsrClass.dat.LOG1\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\OneDrive\\logs\\Common\\DeviceHealthSummaryConfiguration.ini\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\appcompat\\appraiser\\AltData\\Appraiser_Data.ini\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\Logs\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\System Volume Information\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\ServiceProfiles\\NetworkService\\AppData\\Local\\Microsoft\\Windows\\DeliveryOptimization\\State\\dosvcState.dat.LOG1\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\appcompat\\Programs\\Amcache.hve.LOG1\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\ProgramData\\Microsoft\\Windows\\ClipSVC\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Roaming\\Microsoft\\Windows\\CloudStore\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Program Files\\WindowsApps\\Microsoft.LanguageExperiencePacken-GB_17763.9.22.0_neutral__8wekyb3d8bbwe\\Windows\\System32\\driverstore\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\Logs\\CBS\\CBS.log\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\History\\History.IE5\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\OneDrive\\logs\\Common\\DeviceHealthSummaryConfiguration.ini\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\Logs\\MoSetup\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.Windows.Cortana_cw5n1h2txyewy\\AppData\\Indexed DB\\edb.log\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.Windows.Cortana_cw5n1h2txyewy\\AC\\INetCache\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Program Files (x86)\\Common Files\\BattlEye\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\AMD\\DxCache\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\NVIDIA Corporation\\GfeSDK\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\PersistentDownloadDir\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.XboxGamingOverlay_8wekyb3d8bbwe\\AC\\INetCookies\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\config\\BBI.LOG2\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\UsrClass.dat.LOG1\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\LogFiles\\WMI\\LwtNetLog.etl\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\ntuser.dat.LOG1\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Roaming\\Notepad++\\backup\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\temp\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\INF\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\ProgramData\\Microsoft\\Windows\\WER\\Temp\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\Binaries\\Win64\\Shared Files\\*.* rmdir /s /q ""%systemdrive%\\ProgramData\\Microsoft\\Windows\\WER\\Temp"" rmdir /s /q ""%systemdrive%\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\Binaries\\Win64\\Shared Files"" rmdir /s /q ""%systemdrive%\\Windows\\temp"" rmdir /s /q ""%systemdrive%\\Windows\\Logs"" rmdir /s /q ""%systemdrive%\\Windows\\SoftwareDistribution\\DataStore\\Logs"" @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Roaming\\Microsoft\\Windows\\Recent\\AutomaticDestinations\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.XboxGamingOverlay_8wekyb3d8bbwe\\LocalCache\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.XboxGamingOverlay_8wekyb3d8bbwe\\AC\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\microsoft.windowscommunicationsapps_8wekyb3d8bbwe\\LocalState\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\config\\BBI.LOG2\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\OneDrive\\logs\\*.* rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Roaming\\Microsoft\\Windows\\Recent"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.XboxGamingOverlay_8wekyb3d8bbwe\\TempState"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Roaming\\EasyAntiCheat"" @del /s /f /a:h /a:a /q ""%systemdrive%\\Program Files (x86)\\EasyAntiCheat\\EasyAntiCheat.sys\\*.* rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\webcache\\GPUCache"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Roaming\\Microsoft\\Windows\\Recent\\AutomaticDestinations"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.XboxGamingOverlay_8wekyb3d8bbwe\\LocalCache"" rmdir /s /q ""%systemdrive%\\Program Files (x86)\\Common Files\\BattlEye"" @del /s /f /a:h /a:a /q ""%systemdrive%\\Users%username%\\AppData\\Local\\Microsoft\\OneDrive\\settings\\Personal\\logUploaderSettings_temp.ini\\*.* rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\OneDrive\\settings\\Personal"" rmdir /s /q ""%systemdrive%\\Windows\\Logs"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\Cloud\\9f92640e32874a76bb46156d11ae5fcf\\"" rmdir /s /q ""%systemdrive%\\ProgramData\\AMD\\PPC\\apprecord.csv\\"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.Windows.Cortana_cw5n1h2txyewy\\AppData\\Indexed DB"" rmdir /s /q ""%systemdrive%\\ProgramData\\Microsoft\\Diagnosis\\EventStore.db-wal"" rmdir /s /q ""%systemdrive%\\ProgramData\\Microsoft\\Diagnosis\\DownloadedSettings"" rmdir /s /q ""%systemdrive%\\ProgramData\\Microsoft\\Diagnosis\\EventStore.db-wal"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\INetCache\\IE\\AW1C2HQS\\"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Temp\\VSRemoteControl\\efe1e93f8bdd406aa6f0a42171c129a4"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Temp\\VSRemoteControl\\282fb338dbd04a7fbe725354ebc71bdf"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Temp\\VSRemoteControl\\efe1e93f8bdd406aa6f0a42171c129a4"" @del /s /f /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\AMD\\DxCache\\aa997381d1f6ca216f40b98a2d90cb44070036078e091a27.bin"" @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\LogFiles\\WMI\\RtBackup"" >nul 2>&1 rmdir /s /q ""%systemdrive%\\Windows\\System32\\LogFiles\\WMI\\RtBackup"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\Cloud\\9f92640e32874a76bb46156d11ae5fcf\\"" rmdir /s /q ""%systemdrive%\\ProgramData\\AMD\\PPC\\apprecord.csv\\"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Packages\\Microsoft.Windows.Cortana_cw5n1h2txyewy\\AppData\\Indexed DB"" rmdir /s /q ""%systemdrive%\\ProgramData\\Microsoft\\Diagnosis\\EventStore.db-wal"" rmdir /s /q ""%systemdrive%\\ProgramData\\Microsoft\\Diagnosis\\DownloadedSettings"" rmdir /s /q ""%systemdrive%\\ProgramData\\Microsoft\\Diagnosis\\EventStore.db-wal"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\INetCache\\IE\\AW1C2HQS\\"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Temp\\VSRemoteControl\\efe1e93f8bdd406aa6f0a42171c129a4"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Temp\\VSRemoteControl\\282fb338dbd04a7fbe725354ebc71bdf"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Temp\\VSRemoteControl\\efe1e93f8bdd406aa6f0a42171c129a4"" @del /s /f /q ""%systemdrive%\\Users\\Outbuilt\\AppData\\Local\\AMD\\DxCache\\aa997381d1f6ca216f40b98a2d90cb44070036078e091a27.bin"" @del /s /f /a:h /a:a /q ""%systemdrive%\\Windows\\System32\\LogFiles\\WMI\\RtBackup"" >nul 2>&1 rmdir /s /q ""%systemdrive%\\Windows\\System32\\LogFiles\\WMI\\RtBackup"" rmdir /s /q ""%systemdrive%\\Windows\\SoftwareDistribution\\PostRebootEventCache.V2"" rmdir /s /q ""%systemdrive%\\Windows\\INF"" reg delete ""HKEY_LOCAL_MACHINE\\Software\\Epic Games"" /f reg delete ""HKEY_CURRENT_USER\\Software\\Epic Games"" /f reg delete ""HKEY_LOCAL_MACHINE\\Software\\Epic Games"" /f rd /q /s %systemdrive%\\$Recycle.Bin rd /q /s d:\\$Recycle.Bin rd /q /s e:\\$Recycle.Bin rd /q /s f:\\$Recycle.Bin rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Temp"" del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Temp\\*.* @del /s /f /a:h /a:a /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Temp\\*.*"" >nul 2>&1 @del /s /f /a:h /a:a /q ""%systemdrive%\\Program Files (x86)\\Common Files\\BattlEye\\*.* del /f /s /q ""C:\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\LMS\\Manifest.sav\\*.*"" del /f /s /q ""C:\\MSOCache\\*.*"" del /f /s /q ""C:\\Users\\Public\\*.*"" del /f /s /q ""C:\\Recovery\\*.*"" del /f /s /q ""C:\\Amd\\*.*"" del /f /s /q ""C:\\Intel\\*.*"" del /f /s /q ""C:\\Users\\Public\\*.*"" del /f /s /q ""C:\\MSOCache\\*.*"" del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\Cloud\\*.* del /f /s /q ""%systemdrive%\\Recovery\\ntuser.sys\\*.* del /f /s /q ""%systemdrive%\\Users\\Public\\Libraries\\collection.dat\\*.* del /f /s /q ""%systemdrive%\\MSOCache\\{71230000-00E2-0000-1000-00000000}\\Setup.dat\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\WebCache\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Feeds\\*.*"" del /f /s /q ""%systemdrive%\\ProgramData\\Microsoft\\DataMart\\PaidWiFi\\NetworksCache\\*.* del /f /s /q ""%systemdrive%\\ProgramData\\Microsoft\\DataMart\\PaidWiFi\\Rules\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\History\\History.IE5\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Speech Graphics\\Carnival\\*.* del /f /s /q ""%systemdrive%\\ProgramData\\Microsoft\\Windows\\WER\\Temp\\*.* del /f /s /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\Local\\Microsoft\\Windows\\INetCache\\Content.IE5\\*.* del /f /s /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\Local\\Microsoft\\Windows\\INetCookies\\*.* del /f /s /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\LocalLow\\Microsoft\\CryptnetUrlCache\\MetaData\\*.* del /f /s /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\LocalLow\\Microsoft\\CryptnetUrlCache\\Content\\*.* del /s /f /q %systemdrive%\\Windows\\Public\\Libraries\\*.* del /s /f /q %systemdrive%\\Windows\\Prefetch\\*.* del /f /s /q %systemdrive%\\Intel\\*.*"" del /f /s /q %systemdrive%\\\\desktop.ini\\*.*"" del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\UnrealEngine\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\Logs\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\webcache\\Service Worker\\CacheStorage\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\webcache\\GPUCache\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\Config\\WindowsClient\\*.* del /f /s /q ""%systemdrive%\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\PersistentDownloadDir\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\LMS\\*.* del /f /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\Cloud\\*.* del /f /s /q ""C:\\Users\\%username%\\AppData\\Local\\Microsoft\\Feeds\\*.*"" del /f /s /q ""C:\\Users\\%username%\\AppData\\Local\\FortniteGame\\*.*"" RD /s /q ""C:\\Users\\%Username%\\AppData\\Local\\BattlEye"" RD /s /q ""C:\\Users\\%Username%\\AppData\\Local\\CEF"" RD /s /q ""C:\\Users\\%Username%\\AppData\\Local\\ConnectedDevicesPlatform"" RD /s /q ""C:\\Users\\%Username%\\AppData\\Local\\Comms"" RD /s /q ""C:\\Users\\%Username%\\AppData\\Local\\UnrealEngine"" RD /s /q ""C:\\Users\\%Username%\\AppData\\Local\\UnrealEngineLauncher"" RD /s /q ""C:\\Users\\%Username%\\AppData\\Local\\FortniteGame"" RD /s /q ""C:\\Users\\%Username%\\AppData\\Local\\Microsoft\\Feeds"" RD /s /q ""C:\\Users\\%Username%\\AppData\\Local\\Publishers"" RD /s /q ""C:\\Users\\%Username%\\AppData\\Local\\Programs\\Common"" RD /s /q ""C:\\Users\\%Username%\\AppData\\Roaming\\EasyAntiCheat"" rmdir /s /q ""C:\\Users\\%username%\\AppData\\Local\\FortniteGame"" rmdir /s /q ""C:\\Users\\Public\\Libraries"" rmdir /s /q ""C:\\MSOCache"" rmdir /s /q ""C:\\Users\\Public"" rmdir /s /q ""C:\\Intel"" rmdir /s /q ""C:\\Recovery"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\UnrealEngine"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\Logs"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\webcache\\Service Worker\\CacheStorage"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\webcache\\GPUCache"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\Config\\WindowsClient"" rmdir /s /q ""%systemdrive%\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\PersistentDownloadDir"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\LMS"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\FortniteGame\\Saved\\Cloud"" rmdir /s /q ""%systemdrive%\\Recovery\\ntuser.sys"" rmdir /s /q ""%systemdrive%\\Users\\Public\\Libraries\\collection.dat"" rmdir /s /q ""%systemdrive%\\MSOCache\\{71230000-00E2-0000-1000-00000000}\\Setup.dat"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\WebCache"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Feeds"" rmdir /s /q ""%systemdrive%\\ProgramData\\Microsoft\\DataMart\\PaidWiFi\\NetworksCache"" rmdir /s /q ""%systemdrive%\\ProgramData\\Microsoft\\DataMart\\PaidWiFi\\Rules"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\History\\History.IE5"" rmdir /s /q ""%systemdrive%\\Users\\%username%\\AppData\\Local\\Speech Graphics\\Carnival"" rmdir /s /q ""%systemdrive%\\ProgramData\\Microsoft\\Windows\\WER\\Temp"" rmdir /s /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\Local\\Microsoft\\Windows\\INetCache\\Content.IE5"" rmdir /s /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\Local\\Microsoft\\Windows\\INetCookies"" rmdir /s /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\LocalLow\\Microsoft\\CryptnetUrlCache\\MetaData"" rmdir /s /q ""%systemdrive%\\Windows\\SysWOW64\\config\\systemprofile\\AppData\\LocalLow\\Microsoft\\CryptnetUrlCache\\Content"" rmdir /s /q ""%systemdrive%\\Windows\\Public\\Libraries"" rmdir /s /q ""%systemdrive%\\Windows\\Prefetch"" rmdir /s /q ""%systemdrive%\\Intel"" rmdir /s /q ""%systemdrive%\\desktop.ini"" rmdir /s /q ""%systemdrive%\\ProgramData\\Microsoft\\Windows\\WER\\Temp"" rmdir /s /q ""%systemdrive%\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\Binaries\\Win64\\Shared Files"" rmdir /s /q ""%systemdrive%\\Windows\\temp"" rmdir /s /q ""%systemdrive%\\Windows\\Logs"" rmdir /s /q ""%systemdrive%\\Windows\\SoftwareDistribution\\DataStore\\Logs"" echo 1 del ""C:\\Windows\\TEMP\\206F3FDC-B1A8-4FD6-BDB8-6CFE76122873"", del ""C:\\ProgramData\\Microsoft\\Windows\\WER\\Temp\\WER95DF.tmp.mdmp"", del ""C:\\Windows.old\\Users\\All Users\\Microsoft\\Windows\\WER\\Temp\\WER95DF.tmp.mdmp"", del ""C:\\Users\\All Users\\Microsoft\\Windows\\WER\\Temp\\WER95DF.tmp.mdmp"", del ""C:\\Windows\\CbsTemp\\30780525_1668355464"", del ""C:\\Windows\\TEMP\\6E04EF32-0387-48B1-B812-AC2BBA90A8D0"", del ""C:\\Users\\%username%\\AppData\\Local\\EpicGamesLauncher\\Saved\\webcache\\Cookies"", del ""C:\\Users\\%username%\\AppData\\Local\\NVIDIA Corporation\\GfeSDK\\FORTNI~1.LOG"", del ""C:\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\PersistentDownloadDir\\CMS\\Files\\9A71EB4A90946A4A0DCD9B7D82F48C55B49D0880\\siphon-1024x512-4cc0ff3407053325e353c4aea55fb30316e6ecf6.jpg"", del ""C:\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\PersistentDownloadDir\\CMS\\Files\\9A71EB4A90946A4A0DCD9B7D82F48C55B49D0880\\Fortnite%2Ffortnite-game%2Ftournaments%2F11BR_Arena_ModeTiles_Squad_ModeTile-1024x512-c543a187ce733be5ee9f6d17bfb74fb1f2e15f4a.jpg"", del ""C:\\Program Files\\Epic Games\\Fortnite\\FortniteGame\\PersistentDownloadDir\\CMS\\Files\\9A71EB4A90946A4A0DCD9B7D82F48C55B49D0880\\Fortnite%2Ffortnite-game%2Ftournaments%2F11BR_Arena_ModeTiles_Solo_ModeTile-1024x512-6cee09d7bcf82ce3f32ca7c77ca04948121ce617.jpg"", del ""C:\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\WebCache\\V0100024.log"", del ""C:\\Users\\All Users\\Microsoft\\Windows\\WER\\Temp\\WER5CC2.tmp.xml"", del ""C:\\Windows.old\\Users\\All Users\\Microsoft\\Windows\\WER\\Temp\\WER6D21.tmp.WERInternalMetadata.xml"", del ""C:\\Users\\%username%\\AppData\\Local\\Temp\\ecache.bin"", del ""C:\\Users\\%username%\\AppData\\Local\\CrashDumps\\BACKGR~2.DMP"", del ""C:\\Windows\\prefetch\\ATTRIB.EXE-58A07CAF.pf"", del ""C:\\Windows\\prefetch\\AgRobust.db"", del ""C:\\Users\\%username%\\AppData\\Local\\Microsoft\\Feeds Cache"", del ""C:\\Windows\\prefetch\\CEPHTMLENGINE.EXE-E15640BA.pf"", del ""C:\\Windows\\prefetch\\CMD.EXE-0BD30981.pf"", del ""C:\\Windows\\prefetch\\CLIPUP.EXE-4C5C7B66.pf"", del ""C:\\Windows\\prefetch\\D3D9TEST.EXE-1B86F3FC.pf"", del ""C:\\Windows\\prefetch\\DISCORD.EXE-6BEBC47C.pf"", del ""C:\\Windows\\prefetch\\EPICGAMESLAUNCHER.EXE-FAB85FF0.pf"", del ""C:\\Windows\\prefetch\\EPICGAMESLAUNCHER.EXE-018FC121.pf"", del ""C:\\Windows\\prefetch\\GET-GRAPHICS-OFFSETS64.EXE-2BCB2EA4.pf"", del ""C:\\Windows\\prefetch\\GET-GRAPHICS-OFFSETS32.EXE-D4C865E3.pf"", del ""C:\\Windows\\prefetch\\OBS64.EXE-2B6570C7.pf"", del ""C:\\Windows\\prefetch\\OBS-FFMPEG-MUX.EXE-1C01271A.pf"", del ""C:\\Windows\\prefetch\\OBS-FFMPEG-MUX.EXE-1C01271A.pf"", REG ADD HKLM\\HARDWARE\\DESCRIPTION\\System\\BIOS /v BaseBoardManufacturer /t REG_SZ /d opensource-%random% /f REG ADD HKLM\\HARDWARE\\DESCRIPTION\\System\\BIOS /v BaseBoardProduct /t REG_SZ /d opensource-%random% /f REG ADD HKLM\\HARDWARE\\DESCRIPTION\\System\\BIOS /v BaseBoardVersion /t REG_SZ /d opensource-%random% /f REG ADD HKLM\\HARDWARE\\DESCRIPTION\\System\\BIOS /v BIOSVersion /t REG_SZ /d opensource-%random% /f REG ADD HKLM\\HARDWARE\\DESCRIPTION\\System\\BIOS /v SystemFamily /t REG_SZ /d opensource-%random% /f REG ADD HKLM\\HARDWARE\\DESCRIPTION\\System\\BIOS /v SystemManufacturer /t REG_SZ /d opensource-%random% /f REG ADD HKLM\\HARDWARE\\DESCRIPTION\\System\\BIOS /v SystemProductName /t REG_SZ /d opensource-%random% /f REG ADD HKLM\\HARDWARE\\DESCRIPTION\\System\\BIOS /v SystemSKU /t REG_SZ /d opensource-%random% /f REG ADD HKLM\\HARDWARE\\DESCRIPTION\\System\\BIOS /v SystemVersion /t REG_SZ /d opensource-%random% /f REG ADD HKLM\\HARDWARE\\DESCRIPTION\\System\\BIOS /v SystemProductName /t REG_SZ /d opensource-%random% /f",16288,True,4460.989555877107,median "cmd_drivers/tty/n_null.o := aarch64-xilinx-linux-gcc -fuse-ld=bfd -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0=/usr/src/debug/linux-xlnx/4.19-xilinx-v2019.1+git999-r0 -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot= -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work-shared/ultra96-zynqmp/kernel-source=/usr/src/kernel --sysroot=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot -Wp,-MD,drivers/tty/.n_null.o.d -nostdinc -isystem /home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../lib/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/8.2.0/include -I/home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include -I./arch/arm64/include/generated -I/home/zw/share/ultra96/mipitest/linux-xlnx/include -I./include -I/home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi -I./arch/arm64/include/generated/uapi -I/home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi -I./include/generated/uapi -include /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kconfig.h -include /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler_types.h -I/home/zw/share/ultra96/mipitest/linux-xlnx/drivers/tty -Idrivers/tty -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -mgeneral-regs-only -DCONFIG_AS_LSE=1 -fno-asynchronous-unwind-tables -mabi=lp64 -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=/home/zw/share/ultra96/mipitest/linux-xlnx/= -Wno-packed-not-aligned -DKBUILD_BASENAME='""n_null""' -DKBUILD_MODNAME='""n_null""' -c -o drivers/tty/n_null.o /home/zw/share/ultra96/mipitest/linux-xlnx/drivers/tty/n_null.c source_drivers/tty/n_null.o := /home/zw/share/ultra96/mipitest/linux-xlnx/drivers/tty/n_null.c deps_drivers/tty/n_null.o := \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kconfig.h \\ $(wildcard include/config/cpu/big/endian.h) \\ $(wildcard include/config/booger.h) \\ $(wildcard include/config/foo.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler_types.h \\ $(wildcard include/config/have/arch/compiler/h.h) \\ $(wildcard include/config/enable/must/check.h) \\ $(wildcard include/config/arch/supports/optimized/inlining.h) \\ $(wildcard include/config/optimize/inlining.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler-gcc.h \\ $(wildcard include/config/arch/use/builtin/bswap.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/types.h \\ $(wildcard include/config/have/uid16.h) \\ $(wildcard include/config/uid16.h) \\ $(wildcard include/config/lbdaf.h) \\ $(wildcard include/config/arch/dma/addr/t/64bit.h) \\ $(wildcard include/config/phys/addr/t/64bit.h) \\ $(wildcard include/config/64bit.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/types.h \\ arch/arm64/include/generated/uapi/asm/types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/int-ll64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/int-ll64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/bitsperlong.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitsperlong.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/bitsperlong.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/posix_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stddef.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/stddef.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/posix_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/posix_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/errno.h \\ arch/arm64/include/generated/uapi/asm/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/errno-base.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/tty.h \\ $(wildcard include/config/tty.h) \\ $(wildcard include/config/audit.h) \\ $(wildcard include/config/proc/fs.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/fs.h \\ $(wildcard include/config/sysfs.h) \\ $(wildcard include/config/smp.h) \\ $(wildcard include/config/fs/posix/acl.h) \\ $(wildcard include/config/security.h) \\ $(wildcard include/config/cgroup/writeback.h) \\ $(wildcard include/config/ima.h) \\ $(wildcard include/config/fsnotify.h) \\ $(wildcard include/config/fs/encryption.h) \\ $(wildcard include/config/preempt.h) \\ $(wildcard include/config/epoll.h) \\ $(wildcard include/config/file/locking.h) \\ $(wildcard include/config/mmu.h) \\ $(wildcard include/config/quota.h) \\ $(wildcard include/config/fs/dax.h) \\ $(wildcard include/config/block.h) \\ $(wildcard include/config/mandatory/file/locking.h) \\ $(wildcard include/config/debug/lock/alloc.h) \\ $(wildcard include/config/migration.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/linkage.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stringify.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/export.h \\ $(wildcard include/config/modules.h) \\ $(wildcard include/config/modversions.h) \\ $(wildcard include/config/module/rel/crcs.h) \\ $(wildcard include/config/have/arch/prel32/relocations.h) \\ $(wildcard include/config/trim/unused/ksyms.h) \\ $(wildcard include/config/unused/symbols.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler.h \\ $(wildcard include/config/trace/branch/profiling.h) \\ $(wildcard include/config/profile/all/branches.h) \\ $(wildcard include/config/stack/validation.h) \\ $(wildcard include/config/kasan.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/barrier.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/barrier.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kasan-checks.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/linkage.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/wait_bit.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/wait.h \\ $(wildcard include/config/lockdep.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/list.h \\ $(wildcard include/config/debug/list.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/poison.h \\ $(wildcard include/config/illegal/pointer/value.h) \\ $(wildcard include/config/page/poisoning/zero.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/const.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/const.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kernel.h \\ $(wildcard include/config/preempt/voluntary.h) \\ $(wildcard include/config/debug/atomic/sleep.h) \\ $(wildcard include/config/prove/locking.h) \\ $(wildcard include/config/arch/has/refcount.h) \\ $(wildcard include/config/panic/timeout.h) \\ $(wildcard include/config/tracing.h) \\ $(wildcard include/config/ftrace/mcount/record.h) \\ /home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot-native/usr/lib/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/8.2.0/include/stdarg.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bitops.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bits.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/bitops.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-__ffs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-ffs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-__fls.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-fls.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/ffz.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/fls64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/find.h \\ $(wildcard include/config/generic/find/first/bit.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/sched.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/hweight.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/arch_hweight.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/const_hweight.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/atomic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/atomic.h \\ $(wildcard include/config/generic/atomic64.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/atomic.h \\ $(wildcard include/config/arm64/lse/atomics.h) \\ $(wildcard include/config/as/lse.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/lse.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/alternative.h \\ $(wildcard include/config/arm64/uao.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cpucaps.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/insn.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/init.h \\ $(wildcard include/config/strict/kernel/rwx.h) \\ $(wildcard include/config/strict/module/rwx.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/atomic_lse.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cmpxchg.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/build_bug.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/atomic-long.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/lock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/non-atomic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/le.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/byteorder.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/byteorder/little_endian.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/byteorder/little_endian.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/swab.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/swab.h \\ arch/arm64/include/generated/uapi/asm/swab.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/swab.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/byteorder/generic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/ext2-atomic-setbit.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/log2.h \\ $(wildcard include/config/arch/has/ilog2/u32.h) \\ $(wildcard include/config/arch/has/ilog2/u64.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/typecheck.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/printk.h \\ $(wildcard include/config/message/loglevel/default.h) \\ $(wildcard include/config/console/loglevel/default.h) \\ $(wildcard include/config/console/loglevel/quiet.h) \\ $(wildcard include/config/early/printk.h) \\ $(wildcard include/config/printk/nmi.h) \\ $(wildcard include/config/printk.h) \\ $(wildcard include/config/dynamic/debug.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kern_levels.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/cache.h \\ $(wildcard include/config/arch/has/cache/line/size.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/kernel.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sysinfo.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cache.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cputype.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/sysreg.h \\ $(wildcard include/config/broken/gas/inst.h) \\ $(wildcard include/config/arm64/pa/bits/52.h) \\ $(wildcard include/config/arm64/4k/pages.h) \\ $(wildcard include/config/arm64/16k/pages.h) \\ $(wildcard include/config/arm64/64k/pages.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/compiler.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/spinlock.h \\ $(wildcard include/config/debug/spinlock.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/preempt.h \\ $(wildcard include/config/preempt/count.h) \\ $(wildcard include/config/debug/preempt.h) \\ $(wildcard include/config/trace/preempt/toggle.h) \\ $(wildcard include/config/preempt/notifiers.h) \\ arch/arm64/include/generated/asm/preempt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/preempt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/thread_info.h \\ $(wildcard include/config/thread/info/in/task.h) \\ $(wildcard include/config/have/arch/within/stack/frames.h) \\ $(wildcard include/config/hardened/usercopy.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bug.h \\ $(wildcard include/config/generic/bug.h) \\ $(wildcard include/config/bug/on/data/corruption.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/bug.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/asm-bug.h \\ $(wildcard include/config/debug/bugverbose.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/brk-imm.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bug.h \\ $(wildcard include/config/bug.h) \\ $(wildcard include/config/generic/bug/relative/pointers.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/restart_block.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/time64.h \\ $(wildcard include/config/64bit/time.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/math64.h \\ $(wildcard include/config/arch/supports/int128.h) \\ arch/arm64/include/generated/asm/div64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/div64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/time.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/current.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/thread_info.h \\ $(wildcard include/config/arm64/sw/ttbr0/pan.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/memory.h \\ $(wildcard include/config/arm64/va/bits.h) \\ $(wildcard include/config/vmap/stack.h) \\ $(wildcard include/config/debug/align/rodata.h) \\ $(wildcard include/config/blk/dev/initrd.h) \\ $(wildcard include/config/debug/virtual.h) \\ $(wildcard include/config/sparsemem/vmemmap.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/page-def.h \\ $(wildcard include/config/arm64/page/shift.h) \\ $(wildcard include/config/arm64/cont/shift.h) \\ arch/arm64/include/generated/asm/sizes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/sizes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sizes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mmdebug.h \\ $(wildcard include/config/debug/vm.h) \\ $(wildcard include/config/debug/vm/pgflags.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/memory_model.h \\ $(wildcard include/config/flatmem.h) \\ $(wildcard include/config/discontigmem.h) \\ $(wildcard include/config/sparsemem.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pfn.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/stack_pointer.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/irqflags.h \\ $(wildcard include/config/trace/irqflags.h) \\ $(wildcard include/config/irqsoff/tracer.h) \\ $(wildcard include/config/preempt/tracer.h) \\ $(wildcard include/config/trace/irqflags/support.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/irqflags.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/ptrace.h \\ $(wildcard include/config/compat.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/ptrace.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/hwcap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/hwcap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/sigcontext.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/prctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/ptrace.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bottom_half.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/spinlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/spinlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qspinlock_types.h \\ $(wildcard include/config/paravirt.h) \\ $(wildcard include/config/nr/cpus.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qrwlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/lockdep.h \\ $(wildcard include/config/lock/stat.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/spinlock.h \\ arch/arm64/include/generated/asm/qrwlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qrwlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/processor.h \\ $(wildcard include/config/have/hw/breakpoint.h) \\ $(wildcard include/config/gcc/plugin/stackleak.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/string.h \\ $(wildcard include/config/binary/printf.h) \\ $(wildcard include/config/fortify/source.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/string.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/string.h \\ $(wildcard include/config/arch/has/uaccess/flushcache.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cpufeature.h \\ $(wildcard include/config/arm64/sve.h) \\ $(wildcard include/config/arm64/ssbd.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/jump_label.h \\ $(wildcard include/config/jump/label.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/hw_breakpoint.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/virt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/sections.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/sections.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable-hwdef.h \\ $(wildcard include/config/pgtable/levels.h) \\ $(wildcard include/config/arm64/pa/bits.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/fpsimd.h \\ arch/arm64/include/generated/asm/qspinlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qspinlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/spinlock_api_smp.h \\ $(wildcard include/config/inline/spin/lock.h) \\ $(wildcard include/config/inline/spin/lock/bh.h) \\ $(wildcard include/config/inline/spin/lock/irq.h) \\ $(wildcard include/config/inline/spin/lock/irqsave.h) \\ $(wildcard include/config/inline/spin/trylock.h) \\ $(wildcard include/config/inline/spin/trylock/bh.h) \\ $(wildcard include/config/uninline/spin/unlock.h) \\ $(wildcard include/config/inline/spin/unlock/bh.h) \\ $(wildcard include/config/inline/spin/unlock/irq.h) \\ $(wildcard include/config/inline/spin/unlock/irqrestore.h) \\ $(wildcard include/config/generic/lockbreak.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwlock_api_smp.h \\ $(wildcard include/config/inline/read/lock.h) \\ $(wildcard include/config/inline/write/lock.h) \\ $(wildcard include/config/inline/read/lock/bh.h) \\ $(wildcard include/config/inline/write/lock/bh.h) \\ $(wildcard include/config/inline/read/lock/irq.h) \\ $(wildcard include/config/inline/write/lock/irq.h) \\ $(wildcard include/config/inline/read/lock/irqsave.h) \\ $(wildcard include/config/inline/write/lock/irqsave.h) \\ $(wildcard include/config/inline/read/trylock.h) \\ $(wildcard include/config/inline/write/trylock.h) \\ $(wildcard include/config/inline/read/unlock.h) \\ $(wildcard include/config/inline/write/unlock.h) \\ $(wildcard include/config/inline/read/unlock/bh.h) \\ $(wildcard include/config/inline/write/unlock/bh.h) \\ $(wildcard include/config/inline/read/unlock/irq.h) \\ $(wildcard include/config/inline/write/unlock/irq.h) \\ $(wildcard include/config/inline/read/unlock/irqrestore.h) \\ $(wildcard include/config/inline/write/unlock/irqrestore.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/wait.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kdev_t.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/kdev_t.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dcache.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rculist.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcupdate.h \\ $(wildcard include/config/preempt/rcu.h) \\ $(wildcard include/config/rcu/stall/common.h) \\ $(wildcard include/config/no/hz/full.h) \\ $(wildcard include/config/rcu/nocb/cpu.h) \\ $(wildcard include/config/tasks/rcu.h) \\ $(wildcard include/config/tree/rcu.h) \\ $(wildcard include/config/tiny/rcu.h) \\ $(wildcard include/config/debug/objects/rcu/head.h) \\ $(wildcard include/config/hotplug/cpu.h) \\ $(wildcard include/config/prove/rcu.h) \\ $(wildcard include/config/rcu/boost.h) \\ $(wildcard include/config/arch/weak/release/acquire.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/cpumask.h \\ $(wildcard include/config/cpumask/offstack.h) \\ $(wildcard include/config/debug/per/cpu/maps.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/threads.h \\ $(wildcard include/config/base/small.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bitmap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcutree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rculist_bl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/list_bl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bit_spinlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/seqlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/lockref.h \\ $(wildcard include/config/arch/use/cmpxchg/lockref.h) \\ include/generated/bounds.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stringhash.h \\ $(wildcard include/config/dcache/word/access.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/hash.h \\ $(wildcard include/config/have/arch/hash.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/path.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compat_time.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/compat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched.h \\ $(wildcard include/config/virt/cpu/accounting/native.h) \\ $(wildcard include/config/sched/info.h) \\ $(wildcard include/config/schedstats.h) \\ $(wildcard include/config/fair/group/sched.h) \\ $(wildcard include/config/rt/group/sched.h) \\ $(wildcard include/config/cgroup/sched.h) \\ $(wildcard include/config/blk/dev/io/trace.h) \\ $(wildcard include/config/memcg.h) \\ $(wildcard include/config/memcg/kmem.h) \\ $(wildcard include/config/compat/brk.h) \\ $(wildcard include/config/cgroups.h) \\ $(wildcard include/config/blk/cgroup.h) \\ $(wildcard include/config/stackprotector.h) \\ $(wildcard include/config/arch/has/scaled/cputime.h) \\ $(wildcard include/config/virt/cpu/accounting/gen.h) \\ $(wildcard include/config/posix/timers.h) \\ $(wildcard include/config/sysvipc.h) \\ $(wildcard include/config/detect/hung/task.h) \\ $(wildcard include/config/auditsyscall.h) \\ $(wildcard include/config/rt/mutexes.h) \\ $(wildcard include/config/debug/mutexes.h) \\ $(wildcard include/config/ubsan.h) \\ $(wildcard include/config/task/xacct.h) \\ $(wildcard include/config/cpusets.h) \\ $(wildcard include/config/intel/rdt.h) \\ $(wildcard include/config/futex.h) \\ $(wildcard include/config/perf/events.h) \\ $(wildcard include/config/numa.h) \\ $(wildcard include/config/numa/balancing.h) \\ $(wildcard include/config/rseq.h) \\ $(wildcard include/config/task/delay/acct.h) \\ $(wildcard include/config/fault/injection.h) \\ $(wildcard include/config/latencytop.h) \\ $(wildcard include/config/function/graph/tracer.h) \\ $(wildcard include/config/kcov.h) \\ $(wildcard include/config/uprobes.h) \\ $(wildcard include/config/bcache.h) \\ $(wildcard include/config/livepatch.h) \\ $(wildcard include/config/arch/task/struct/on/stack.h) \\ $(wildcard include/config/debug/rseq.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sched.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ipc.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uidgid.h \\ $(wildcard include/config/multiuser.h) \\ $(wildcard include/config/user/ns.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/highuid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rhashtable-types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mutex.h \\ $(wildcard include/config/mutex/spin/on/owner.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/osq_lock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/debug_locks.h \\ $(wildcard include/config/debug/locking/api/selftests.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/workqueue.h \\ $(wildcard include/config/debug/objects/work.h) \\ $(wildcard include/config/freezer.h) \\ $(wildcard include/config/wq/watchdog.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timer.h \\ $(wildcard include/config/debug/objects/timers.h) \\ $(wildcard include/config/no/hz/common.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ktime.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/time.h \\ $(wildcard include/config/arch/uses/gettimeoffset.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/time32.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/jiffies.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timex.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/timex.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/param.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/param.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/param.h \\ $(wildcard include/config/hz.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/param.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/timex.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/arch_timer.h \\ $(wildcard include/config/arm/arch/timer/ool/workaround.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/smp.h \\ $(wildcard include/config/up/late/init.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/llist.h \\ $(wildcard include/config/arch/have/nmi/safe/cmpxchg.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/smp.h \\ $(wildcard include/config/arm64/acpi/parking/protocol.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/percpu.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/percpu.h \\ $(wildcard include/config/have/setup/per/cpu/area.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu-defs.h \\ $(wildcard include/config/debug/force/weak/per/cpu.h) \\ $(wildcard include/config/virtualization.h) \\ $(wildcard include/config/amd/mem/encrypt.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/clocksource/arm_arch_timer.h \\ $(wildcard include/config/arm/arch/timer.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timecounter.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/timex.h \\ include/generated/timeconst.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timekeeping.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timekeeping32.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/debugobjects.h \\ $(wildcard include/config/debug/objects.h) \\ $(wildcard include/config/debug/objects/free.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/ipc.h \\ arch/arm64/include/generated/uapi/asm/ipcbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/ipcbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/refcount.h \\ $(wildcard include/config/refcount/full.h) \\ arch/arm64/include/generated/uapi/asm/sembuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/sembuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/shm.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/page.h \\ $(wildcard include/config/have/arch/pfn/valid.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/personality.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/personality.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable-types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/pgtable-nopud.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/pgtable-nop4d-hack.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/5level-fixup.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/getorder.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/shm.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/hugetlb_encode.h \\ arch/arm64/include/generated/uapi/asm/shmbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/shmbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/shmparam.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/shmparam.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kcov.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/kcov.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/plist.h \\ $(wildcard include/config/debug/pi/list.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/hrtimer.h \\ $(wildcard include/config/high/res/timers.h) \\ $(wildcard include/config/time/low/res.h) \\ $(wildcard include/config/timerfd.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rbtree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu.h \\ $(wildcard include/config/need/per/cpu/embed/first/chunk.h) \\ $(wildcard include/config/need/per/cpu/page/first/chunk.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timerqueue.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/seccomp.h \\ $(wildcard include/config/seccomp.h) \\ $(wildcard include/config/have/arch/seccomp/filter.h) \\ $(wildcard include/config/seccomp/filter.h) \\ $(wildcard include/config/checkpoint/restore.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/seccomp.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/nodemask.h \\ $(wildcard include/config/highmem.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/numa.h \\ $(wildcard include/config/nodes/shift.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/resource.h \\ arch/arm64/include/generated/uapi/asm/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/latencytop.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/prio.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/signal_types.h \\ $(wildcard include/config/old/sigaction.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/signal-defs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/siginfo.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/siginfo.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mm_types_task.h \\ $(wildcard include/config/arch/want/batched/unmap/tlb/flush.h) \\ $(wildcard include/config/split/ptlock/cpus.h) \\ $(wildcard include/config/arch/enable/split/pmd/ptlock.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/task_io_accounting.h \\ $(wildcard include/config/task/io/accounting.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/rseq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/task_stack.h \\ $(wildcard include/config/stack/growsup.h) \\ $(wildcard include/config/debug/stack/usage.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/magic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/list_lru.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/shrinker.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/radix-tree.h \\ $(wildcard include/config/radix/tree/multiorder.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/xarray.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwsem.h \\ $(wildcard include/config/rwsem/spin/on/owner.h) \\ $(wildcard include/config/rwsem/generic/spinlock.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/err.h \\ arch/arm64/include/generated/asm/rwsem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/rwsem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mm_types.h \\ $(wildcard include/config/have/aligned/struct/page.h) \\ $(wildcard include/config/userfaultfd.h) \\ $(wildcard include/config/have/arch/compat/mmap/bases.h) \\ $(wildcard include/config/membarrier.h) \\ $(wildcard include/config/aio.h) \\ $(wildcard include/config/mmu/notifier.h) \\ $(wildcard include/config/transparent/hugepage.h) \\ $(wildcard include/config/hugetlb/page.h) \\ $(wildcard include/config/hmm.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/auxvec.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/auxvec.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/auxvec.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/completion.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uprobes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/page-flags-layout.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/sparsemem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/mmu.h \\ $(wildcard include/config/unmap/kernel/at/el0.h) \\ $(wildcard include/config/harden/branch/predictor.h) \\ $(wildcard include/config/harden/el2/vectors.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/capability.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/capability.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/semaphore.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/fiemap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/migrate_mode.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu-rwsem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcuwait.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcu_sync.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/delayed_call.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uuid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/uuid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/errseq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ioprio.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/rt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/iocontext.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/fs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/limits.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/ioctl.h \\ arch/arm64/include/generated/uapi/asm/ioctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/ioctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/ioctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/quota.h \\ $(wildcard include/config/quota/netlink/interface.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu_counter.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/gfp.h \\ $(wildcard include/config/zone/dma.h) \\ $(wildcard include/config/zone/dma32.h) \\ $(wildcard include/config/zone/device.h) \\ $(wildcard include/config/pm/sleep.h) \\ $(wildcard include/config/memory/isolation.h) \\ $(wildcard include/config/compaction.h) \\ $(wildcard include/config/cma.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mmzone.h \\ $(wildcard include/config/force/max/zoneorder.h) \\ $(wildcard include/config/zsmalloc.h) \\ $(wildcard include/config/memory/hotplug.h) \\ $(wildcard include/config/flat/node/mem/map.h) \\ $(wildcard include/config/page/extension.h) \\ $(wildcard include/config/no/bootmem.h) \\ $(wildcard include/config/deferred/struct/page/init.h) \\ $(wildcard include/config/have/memory/present.h) \\ $(wildcard include/config/have/memoryless/nodes.h) \\ $(wildcard include/config/have/memblock/node/map.h) \\ $(wildcard include/config/need/multiple/nodes.h) \\ $(wildcard include/config/have/arch/early/pfn/to/nid.h) \\ $(wildcard include/config/sparsemem/extreme.h) \\ $(wildcard include/config/memory/hotremove.h) \\ $(wildcard include/config/holes/in/zone.h) \\ $(wildcard include/config/arch/has/holes/memorymodel.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pageblock-flags.h \\ $(wildcard include/config/hugetlb/page/size/variable.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/memory_hotplug.h \\ $(wildcard include/config/arch/has/add/pages.h) \\ $(wildcard include/config/have/arch/nodedata/extension.h) \\ $(wildcard include/config/have/bootmem/info/node.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/notifier.h \\ $(wildcard include/config/tree/srcu.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/srcu.h \\ $(wildcard include/config/tiny/srcu.h) \\ $(wildcard include/config/srcu.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcu_segcblist.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/srcutree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcu_node_tree.h \\ $(wildcard include/config/rcu/fanout.h) \\ $(wildcard include/config/rcu/fanout/leaf.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/topology.h \\ $(wildcard include/config/use/percpu/numa/node/id.h) \\ $(wildcard include/config/sched/smt.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/topology.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/arch_topology.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/topology.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/dqblk_xfs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dqblk_v1.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dqblk_v2.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dqblk_qtree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/projid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/quota.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/nfs_fs_i.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/major.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/termios.h \\ arch/arm64/include/generated/uapi/asm/termios.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/termios.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uaccess.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/uaccess.h \\ $(wildcard include/config/arm64/pan.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/kernel-pgtable.h \\ $(wildcard include/config/randomize/base.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/proc-fns.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable-prot.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/fixmap.h \\ $(wildcard include/config/acpi/apei/ghes.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/boot.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/fixmap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/pgtable.h \\ $(wildcard include/config/have/arch/transparent/hugepage/pud.h) \\ $(wildcard include/config/have/arch/soft/dirty.h) \\ $(wildcard include/config/arch/enable/thp/migration.h) \\ $(wildcard include/config/have/arch/huge/vmap.h) \\ $(wildcard include/config/x86/espfix64.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/extable.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/termios.h \\ arch/arm64/include/generated/uapi/asm/termbits.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/termbits.h \\ arch/arm64/include/generated/uapi/asm/ioctls.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/ioctls.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/tty_driver.h \\ $(wildcard include/config/console/poll.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/cdev.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kobject.h \\ $(wildcard include/config/uevent/helper.h) \\ $(wildcard include/config/debug/kobject/release.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sysfs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kernfs.h \\ $(wildcard include/config/kernfs.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/idr.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kobject_ns.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kref.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/device.h \\ $(wildcard include/config/debug/devres.h) \\ $(wildcard include/config/generic/msi/irq/domain.h) \\ $(wildcard include/config/pinctrl.h) \\ $(wildcard include/config/generic/msi/irq.h) \\ $(wildcard include/config/dma/cma.h) \\ $(wildcard include/config/of.h) \\ $(wildcard include/config/devtmpfs.h) \\ $(wildcard include/config/sysfs/deprecated.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ioport.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/klist.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pm.h \\ $(wildcard include/config/vt/console/sleep.h) \\ $(wildcard include/config/pm.h) \\ $(wildcard include/config/pm/clk.h) \\ $(wildcard include/config/pm/generic/domains.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ratelimit.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/overflow.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/device.h \\ $(wildcard include/config/iommu/api.h) \\ $(wildcard include/config/xen.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pm_wakeup.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/seq_file.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/cred.h \\ $(wildcard include/config/debug/credentials.h) \\ $(wildcard include/config/keys.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/key.h \\ $(wildcard include/config/sysctl.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sysctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sysctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/assoc_array.h \\ $(wildcard include/config/associative/array.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/selinux.h \\ $(wildcard include/config/security/selinux.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/user.h \\ $(wildcard include/config/fanotify.h) \\ $(wildcard include/config/posix/mqueue.h) \\ $(wildcard include/config/bpf/syscall.h) \\ $(wildcard include/config/net.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/tty_ldisc.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/tty_flags.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/tty.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/module.h \\ $(wildcard include/config/modules/tree/lookup.h) \\ $(wildcard include/config/module/sig.h) \\ $(wildcard include/config/kallsyms.h) \\ $(wildcard include/config/tracepoints.h) \\ $(wildcard include/config/event/tracing.h) \\ $(wildcard include/config/module/unload.h) \\ $(wildcard include/config/constructors.h) \\ $(wildcard include/config/function/error/injection.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kmod.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/umh.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/elf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/elf.h \\ arch/arm64/include/generated/asm/user.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/user.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/elf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/elf-em.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/moduleparam.h \\ $(wildcard include/config/alpha.h) \\ $(wildcard include/config/ia64.h) \\ $(wildcard include/config/ppc64.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rbtree_latch.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/error-injection.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/error-injection.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/tracepoint-defs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/static_key.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/module.h \\ $(wildcard include/config/arm64/module/plts.h) \\ $(wildcard include/config/dynamic/ftrace.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/module.h \\ $(wildcard include/config/have/mod/arch/specific.h) \\ $(wildcard include/config/modules/use/elf/rel.h) \\ $(wildcard include/config/modules/use/elf/rela.h) \\ drivers/tty/n_null.o: $(deps_drivers/tty/n_null.o) $(deps_drivers/tty/n_null.o): ",16344,True,5319.7760401517035,median "@ECHO OFF & :: ANSI-COLOR :: Authored by Ryan Beesley :: https://github.com/rbeesley GOTO :DEFINE_MACROS %=- Entry point after macro definitions -=% :MAIN SETLOCAL ENABLEDELAYEDEXPANSION CALL :PARSE_ARGS %1 %2 %3 %4 %5 %6 %7 %8 %9 :: Error when parsing IF ERRORLEVEL 1 %@exit% %ERRORLEVEL% :: Parsing success IF ERRORLEVEL 0 GOTO :CONFIGURATION :: Help requested, but this shouldn't actually be an error from CMD's perspective IF ERRORLEVEL -1 %@exit% 0 %=- Configuration -=% :CONFIGURATION :: Default test text if not defined in the data segment SET ""CELL= gYw "" :: Uncomment to use UTF-8 for output, such as when the test text is Unicode REM SET ""SHOW.UTF8=#TRUE#"" :: Uncomment to disable the spinner and speed up processing REM SET ""SPINNER.DISABLED=#TRUE#"" :: Uncomment to display the ANSI Escape Sequence control characters REM SET ""SHOW.ANSI=#TRUE#"" :: Uncomment to show cell R1C1 reference addressing instead of cell text REM SET ""SHOW.R1C1_REFERENCE=#TRUE#"" %=- End Configuration -=% %=- Data Segment -=% GOTO :END_DATA_SEGMENT :: Complete matrix of SGR parameters available :: This definition also demonstrates the various configuration changes :: which are used to control the way the table is generated __DATA__ :: Select Graphic Rendition (SGR) parameters :: #NUL# is treated as a special case to provide cells in that column :: or row, but there is no row or column value applied to the cell. :: This has the effect that the row or column has no SGR parameter applied :: and so this will show the default. :: #SPC# is a special case which can be used to make gaps in the table. :: Whereas #NUL# still outputs the CELL text, #SPC# won't show anything in :: that row. #SPC# can be used in columns to also provide a gap which matches :: cell width. :: #LBL# is also a special case similar to #SPC#. #LBL# makes it possible to :: write a text label in the middle of a generated table for a particular row. :: Formatting can be applied to the labels and an SGR RESET is automatically :: applied at the end of the string. __TABLE__ :: If the definition is defined using Unicode characters, uncomment and include :: the following line in the __TABLE__ section of the definition file. REM SET ""UTF8.REQUIRED=#TRUE#"" :: The test text SET ""STUBHEAD=SGR"" :: Alignment properties for the cells and headers REM SET ""ALIGN.CELL=C"" REM SET ""ALIGN.BOXHEAD=R"" REM SET ""ALIGN.STUB=L"" REM SET ""ALIGN.STUBHEAD=C"" :: Separator characters for cells and headers REM SET ""SEPARATOR.STUB= "" REM SET ""SEPARATOR.STUB=│"" & :: UTF-8 REM SET ""SEPARATOR.BOXHEAD= "" REM SET ""SEPARATOR.BOXHEAD=─"" & :: UTF-8 SET ""SEPARATOR.COL= "" REM SET ""SEPARATOR.COL=╎"" REM SET ""SEPARATOR.STUBHEAD_BOXHEAD= "" REM SET ""SEPARATOR.STUBHEAD_BOXHEAD=:"" REM SET ""SEPARATOR.STUBHEAD_BOXHEAD=│"" & :: UTF-8 REM SET ""SEPARATOR.STUBHEAD_BOXHEAD=▓▓"" & :: UTF-8 REM SET ""SEPARATOR.STUBHEAD_STUB= "" REM SET ""SEPARATOR.STUBHEAD_STUB=-"" REM SET ""SEPARATOR.STUBHEAD_STUB=─"" & :: UTF-8 REM SET ""SEPARATOR.STUBHEAD_STUB=▓"" & :: UTF-8 REM SET ""SEPARATOR.INTERSECT= "" REM SET ""SEPARATOR.INTERSECT=┼"" & :: UTF-8 REM SET ""SEPARATOR.INTERSECT=┘"" & :: UTF-8 REM SET ""SEPARATOR.INTERSECT=▓▒▒░"" & :: UTF-8 REM SET ""SEPARATOR.INTERSECT=+"" REM SET ""SEPARATOR.BOXHEAD_BODY= "" REM SET ""SEPARATOR.BOXHEAD_BODY=─"" & :: UTF-8 REM SET ""SEPARATOR.BOXHEAD_BODY=░"" & :: UTF-8 REM SET ""SEPARATOR.STUB_BODY= "" REM SET ""SEPARATOR.STUB_BODY=│"" & :: UTF-8 REM SET ""SEPARATOR.STUB_BODY=░░"" & :: UTF-8 REM SET ""SEPARATOR.BOXHEADERS= "" REM SET ""SEPARATOR.BOXHEADERS=╎"" & :: UTF-8 REM SET ""SEPARATOR.CELL= "" REM SET ""SEPARATOR.CELL=╎"" & :: UTF-8 :: Conditional definitions like this must be one line per statement :: and can be used to define how to fall back to ANSI if Unicode isn't supported IF DEFINED SHOW.UTF8 (SET ""SEPARATOR.STUBHEAD_BOXHEAD=│"") ELSE (SET ""SEPARATOR.STUBHEAD_BOXHEAD=:"") IF DEFINED SHOW.UTF8 (SET ""SEPARATOR.STUBHEAD_STUB=─"") ELSE (SET ""SEPARATOR.STUBHEAD_STUB=-"") IF DEFINED SHOW.UTF8 (SET ""SEPARATOR.INTERSECT=┘"") ELSE (SET ""SEPARATOR.INTERSECT=+"") :: You can also define control for formating SET ""SECTION=!CSI!1;4m"" __TABLE:END__ :: Background __COLS__ #NUL# REM 1m REM 2m REM 3m REM 4m REM 5m REM 6m REM 7m REM 8m REM 9m REM 21m 40m 100m 41m 101m 42m 102m 43m 103m 44m 104m 45m 105m 46m 106m 47m 107m __COLS:END__ :: [Intensity;][Attribute;]Foreground __ROWS__ #NUL# #SPC# :: Attributes #LBL# !SECTION!Attributes 1m 2m 3m 4m 5m 6m 7m 8m 9m REM 10m REM 11m REM 12m REM 13m REM 14m REM 15m REM 16m REM 17m REM 18m REM 19m REM 20m 21m REM 22m REM 23m REM 24m REM 25m REM 26m REM 27m REM 28m REM 29m #SPC# :: Normal #LBL# !SECTION!Normal 30m 90m 31m 91m 32m 92m 33m 93m 34m 94m 35m 95m 36m 96m 37m 97m #SPC# :: Bold or increased intensity, 1 #LBL# !SECTION!Bold or increased intensity, 1 1;30m 1;90m 1;31m 1;91m 1;32m 1;92m 1;33m 1;93m 1;34m 1;94m 1;35m 1;95m 1;36m 1;96m 1;37m 1;97m #SPC# :: Faint (decreased intensity), 2 #LBL# !SECTION!Faint (decreased intensity), 2 2;30m 2;90m 2;31m 2;91m 2;32m 2;92m 2;33m 2;93m 2;34m 2;94m 2;35m 2;95m 2;36m 2;96m 2;37m 2;97m #SPC# :: Italic, 3 #LBL# !SECTION!Italic, 3 3;30m 3;90m 3;31m 3;91m 3;32m 3;92m 3;33m 3;93m 3;34m 3;94m 3;35m 3;95m 3;36m 3;96m 3;37m 3;97m #SPC# :: Underline, 4 #LBL# !SECTION!Underline, 4 4;30m 4;90m 4;31m 4;91m 4;32m 4;92m 4;33m 4;93m 4;34m 4;94m 4;35m 4;95m 4;36m 4;96m 4;37m 4;97m #SPC# :: Slow Blink, 5 #LBL# !SECTION!Slow Blink, 5 5;30m 5;90m 5;31m 5;91m 5;32m 5;92m 5;33m 5;93m 5;34m 5;94m 5;35m 5;95m 5;36m 5;96m 5;37m 5;97m #SPC# :: Rapid Blink, 6 #LBL# !SECTION!Rapid Blink, 6 6;30m 6;90m 6;31m 6;91m 6;32m 6;92m 6;33m 6;93m 6;34m 6;94m 6;35m 6;95m 6;36m 6;96m 6;37m 6;97m #SPC# :: Reverse video, 7 #LBL# !SECTION!Reverse video, 7 7;30m 7;90m 7;31m 7;91m 7;32m 7;92m 7;33m 7;93m 7;34m 7;94m 7;35m 7;95m 7;36m 7;96m 7;37m 7;97m #SPC# :: Conceal, 8 #LBL# !SECTION!Conceal, 8 8;30m 8;90m 8;31m 8;91m 8;32m 8;92m 8;33m 8;93m 8;34m 8;94m 8;35m 8;95m 8;36m 8;96m 8;37m 8;97m #SPC# :: Crossed-out, 9 #LBL# !SECTION!Crossed-out, 9 9;30m 9;90m 9;31m 9;91m 9;32m 9;92m 9;33m 9;93m 9;34m 9;94m 9;35m 9;95m 9;36m 9;96m 9;37m 9;97m #SPC# :: Double Underline, 21 #LBL# !SECTION!Double Underline, 21 21;30m 21;90m 21;31m 21;91m 21;32m 21;92m 21;33m 21;93m 21;34m 21;94m 21;35m 21;95m 21;36m 21;96m 21;37m 21;97m __ROWS:END__ __DATA:END__ :END_DATA_SEGMENT %=- End Data Segment -=% %=- Main Script -=% SETLOCAL ENABLEDELAYEDEXPANSION :INITIALIZATION :: Configure ANSI escape sequences. This has a dependency on PowerShell for creating the escape code REM FOR /F ""tokens=* USEBACKQ"" %%G IN (`PowerShell -Command ""[char]0x1B""`) DO (SET ""ESC=%%G"") :: Otherwise you need to use an unprintable character SET ""ESC="" :: If we're going to display the ANSI Escape Sequence control characters :: we require UTF-8, will disable the spinner, and override the ANSI ESC :: character with a Unicode codepoint which represents ESC. IF DEFINED SHOW.ANSI ( SET ""UTF8.REQUIRED=#TRUE#"" SET ""SPINNER.DISABLED=#TRUE#"" ) :: The console (CMD) is normally not UTF-8, so preserve the codepage so we can reset it. :: Because the output of CHCP is localized, we grab the last value of the string, :: which we have our fingers crossed, will be the codepage. FOR /F ""tokens=*"" %%_ IN ('chcp 2^>^&1 ^& FOR /F %%_ IN ^(""ERRORLEVEL""^) DO @CALL ECHO __ERRORLEVEL__:%%%%_%%') DO ( SET CHCP_OUT=%%_ :: Check if the CHCP call failed IF [""!CHCP_OUT:~0,15!""] EQU [""__ERRORLEVEL__:""] ( SET ""CHCP_ERR=!CHCP_OUT:__ERRORLEVEL__:=!"" IF [!CHCP_ERR!] NEQ [0] ( :: This means that the call to CHCP failed ECHO Warning: Error reading the active codepage, check the output from the command CHCP. IF DEFINED SHOW.UTF8 ( :: UTF-8 support is required if SHOW.UTF8 is defined, so error out ECHO. ECHO Error: UTF-8 support is required for the definition file in use or flags provided. :: Since this was fatal, also pass the error code received trying to call CHCP %@exit% !CHCP_ERR! ) ELSE ( :: If UTF-8 support isn't required, maybe we can swallow this error and still show ANSI definition file SET ""SHOW.UTF8="" :: Clear the CHCP_RET value as nothing returned should be considered valid SET ""CHCP_RET="" ) ) ) ELSE ( SET ""CHCP_RET=!CHCP_OUT!"" ) ) :: If we didn't get an error, read the last value of the output string FOR %%_ IN (!CHCP_RET!) DO (SET CHCP=%%_) IF DEFINED CHCP ( IF [!CHCP!] EQU [65001] ( :: If the CHCP value was 65001, we can show UTF8 and we don't need to check more SET ""SHOW.UTF8=#TRUE#"" ) ELSE ( :: Otherwise we now want to set the codepage to 65001 and exit with the error if that fails IF DEFINED SHOW.UTF8 ( chcp 65001 > NUL 2>&1 IF ERRORLEVEL 1 ( ECHO Error: Unable to set the active codepage %@exit% %ErrorLevel% ) ) ) ) SET ""CHCP_OUT="" SET ""CHCP_ERR="" SET ""CHCP_RET="" :: This is a separate code block from the test above so that the active console Code Page :: is changed first. If we want to show the ANSI characters rather than actually drawing :: them, we need to replace ESC with a Unicode codepoint which represents ESC. We do this :: now that UTF8 has been configured for the console and before we define the CSI commands. IF DEFINED SHOW.ANSI ( SET ""ESC=␛"" ) :: Control Sequence Introducer (CSI) SET ""CSI=!ESC!["" :: Cursor Up SET ""CUU=!CSI!A"" :: Cursor Down SET ""CUD=!CSI!B"" :: Cursor Forward SET ""CUF=!CSI!C"" :: Cursor Back SET ""CUB=!CSI!D"" :: Cursor Previous Line // will work like a CR without LF when appended to an echo SET ""CPL=!CSI!F"" :: Select Graphic Rendition (SGR) Reset // reset colors and attributes SET ""RESET=!CSI!m"" :: We will want to calculate the max widths as we process the data segment SET /A STUB.MAX_WIDTH=0 SET /A COL.MAX_WIDTH=0 :: If showing the R1C1 reference address of each cell instead of the cell value, assume :: there will be at most R999C99 cells and set the width at 7 IF DEFINED SHOW.R1C1_REFERENCE ( SET /A COL.MAX_WIDTH=7 ) :: Default properties if not defined in the data segment :: See Figure 1.1 in the PDF for Wang Terminology :: https://uwspace.uwaterloo.ca/handle/10012/10962 :: Fields SET ""STUBHEAD="" :: Alignment SET ""ALIGN.CELL=C"" SET ""ALIGN.CELL.R1C1=R"" SET ""ALIGN.STUBHEAD=C"" SET ""ALIGN.BOXHEAD=C"" SET ""ALIGN.STUB=R"" SET ""ALIGN.STUBHEAD_STUB=C"" SET ""ALIGN.STUB_BODY=C"" SET ""ALIGN.BOXHEAD_BODY=C"" SET ""ALIGN.INTERSECT=C"" SET ""ALIGN.STUB_BOXHEAD_INTERSECT="" :: Separators SET ""SEPARATOR.STUB="" SET ""SEPARATOR.STUBHEAD_BOXHEAD="" SET ""SEPARATOR.STUB_BODY="" SET ""SEPARATOR.COL="" SET ""SEPARATOR.BOXHEADERS="" SET ""SEPARATOR.CELL="" SET ""SEPARATOR.STUBHEAD_STUB="" SET ""SEPARATOR.BOXHEAD_BODY="" SET ""SEPARATOR.BOXHEAD="" SET ""SEPARATOR.INTERSECT="" SET ""SEPARATOR.STUB_BOXHEAD_INTERSECT="" SET ""SEPARATOR.CELL_INTERSECT="" :: Flags SET ""SEPARATOR.VERTICAL="" SET ""SEPARATOR.HORIZONTAL="" SET ""SEPARATOR.COLUMN="" :: Read and parse the data, validate the configuration, calculate table headings, :: build the table, and show the table CALL :READ_DATA_SEGMENT IF ERRORLEVEL 1 %@exit% %ERRORLEVEL% CALL :VALIDATE_CONFIGURATION IF ERRORLEVEL 1 %@exit% %ERRORLEVEL% CALL :RESOLVE_SEPARATORS CALL :BUILD_TABLE CALL :DISPLAY_TABLE :: Restore the console Code Page saved at the beginning of the script IF DEFINED CHCP ( chcp !CHCP! > NUL 2>&1 IF ERRORLEVEL 1 ( ECHO Error: Unable to reset the active codepage %@exit% %ErrorLevel% ) ) :: Final blank line to match ColorTool.exe -c output and to improve screen readability ECHO. :: Exit %@exit% 0 :: Should never be reached ECHO Failed to EXIT cleanly CMD /C EXIT -1073741510 :: Routine to process the data segment of a file, used to build the table :READ_DATA_SEGMENT SET ""DATA_SEGMENT="" FOR /F ""delims="" %%_ IN (!DATA_FILE!) DO ( SET ""DATA=%%_"" IF /I [""!DATA:~0,12!""] EQU [""__ROWS:END__""] SET ""SEGMENT="" IF /I [""!DATA:~0,12!""] EQU [""__COLS:END__""] SET ""SEGMENT="" IF /I [""!DATA:~0,13!""] EQU [""__TABLE:END__""] SET ""SEGMENT="" IF /I [""!DATA:~0,12!""] EQU [""__DATA:END__""] SET ""DATA_SEGMENT="" IF DEFINED DATA_SEGMENT ( CALL :PARSE_DATA_SEGMENT !DATA! IF ERRORLEVEL 1 %@exit% %ERRORLEVEL% ) IF /I [""!DATA:~0,8!""] EQU [""__ROWS__""] ( SET ""SEGMENT=ROWS"" :: Initialize the row globals SET /A ROW[#]=0 SET /A ROWS.LEN=0 ) IF /I [""!DATA:~0,8!""] EQU [""__COLS__""] ( SET ""SEGMENT=COLS"" :: Initialize the column globals SET /A COL[#]=0 SET /A COLS.LEN=0 ) IF /I [""!DATA:~0,9!""] EQU [""__TABLE__""] ( SET ""SEGMENT=TABLE"" :: Initialize the table globals SET /A TABLE[#]=0 ) IF /I [""!DATA:~0,8!""] EQU [""__DATA__""] ( SET ""DATA_SEGMENT=#TRUE#"" SET ""SEGMENT="" ) ) %@exit% :: Process each segment type :PARSE_DATA_SEGMENT IF NOT DEFINED SEGMENT %@exit% SET ""DATA=%*"" :: We're parsing the data segment, so clean up the data before further processing %@trim% DATA :: Skip over any blank lines or comments IF NOT DEFINED DATA %@exit% IF /I [""!DATA!""] EQU [""REM""] %@exit% IF /I [""!DATA!""] EQU [""@REM""] %@exit% IF /I [""!DATA:~0,2!""] EQU [""::""] %@exit% IF /I [""!DATA:~0,4!""] EQU [""REM ""] %@exit% IF /I [""!DATA:~0,5!""] EQU [""@REM ""] %@exit% :: Advance and output the spinner animation if not disabled IF NOT DEFINED SPINNER.DISABLED ( %@spinner% SPINNER.FRAME ) :: Dispatch to TABLE, COLS, or ROWS parsing routines IF /I [""!SEGMENT!""] EQU [""TABLE""] CALL :PARSE_TABLE_DATA !DATA! IF /I [""!SEGMENT!""] EQU [""COLS""] CALL :PARSE_COLS_DATA !DATA! IF /I [""!SEGMENT!""] EQU [""ROWS""] CALL :PARSE_ROWS_DATA !DATA! %@exit% :PARSE_TABLE_DATA :: Only eval single line SET or IF statements SET ""DATA=%*"" IF /I [""!DATA:~0,4!""] EQU [""SET ""] GOTO :EVAL_TABLE_DATA IF /I [""!DATA:~0,3!""] EQU [""IF ""] GOTO :EVAL_TABLE_DATA %@exit% :EVAL_TABLE_DATA :: Eval the TABLE data directly %* :: If there is an error, we want to catch it IF ERRORLEVEL 1 %@exit% %ERRORLEVEL% :: Otherwise just exit the routine %@exit% :PARSE_COLS_DATA SET ""COL=%*"" :: Set the column header text and track the max width IF [""!COL:~0,1!""] EQU [""#""] ( IF [""!COL:~4,1!""] EQU [""#""] ( :: Special case for #???# tokens SET /A ""COL.LEN=0"" ) ELSE ( %@strlen% COL COL.LEN ) ) ELSE ( %@strlen% COL COL.LEN ) %@maxval% COL.MAX_WIDTH COL.LEN :: Set the col index and store value SET /A COL[#]+=1 SET ""COL[!COL[#]!]=!COL!"" %@exit% :PARSE_ROWS_DATA SET ""ROW=%*"" :: Set the row header text IF [""!ROW:~0,1!""] EQU [""#""] ( IF [""!ROW:~4,1!""] EQU [""#""] ( :: Special case for #???# tokens SET /A ""ROW.LEN=0"" ) ELSE ( %@strlen% ROW ROW.LEN ) ) ELSE ( %@strlen% ROW ROW.LEN ) %@maxval% STUB.MAX_WIDTH ROW.LEN :: Set the row index and store value SET /A ROW[#]+=1 SET ""ROW[!ROW[#]!]=!ROW!"" %@exit% :: Validate that we can render the definition file :VALIDATE_CONFIGURATION :: Does the definition require UTF-8 IF DEFINED UTF8.REQUIRED ( IF NOT DEFINED SHOW.UTF8 ( SET ""SCRIPT_NAME=%~nx0"" SET ""MSG=Error: UTF-8 console support is required.!LF! Try ^""!SCRIPT_NAME! /U [^]^"" to enable UTF-8 support!LF! or change the default configuration in !SCRIPT_NAME! to always use UTF-8."" CALL :USAGE MSG %@exit% 1 ) ) %@exit% :RESOLVE_SEPARATORS :: There's a lot to consider with separators in trying to do what is best :: for the definition author. Look at the separator.def, ansi-colortool.def, :: and fgbg.def for examples for how to most effectively manage this. :: Separators have cascading effects, so if some are not defined this is where :: they are defined. :: Define the column separator :: :: SEPARATOR.COL is the default column separator and it will be overridden :: by SEPARATOR.BOXHEADERS or SEPARATOR.CELL. :: If SEPARATOR.COL is not defined, and SEPARATOR.BOXHEADERS is defined :: but SEPARATOR.CELL is not defined, or vice versa, then the undefined :: separator will be defined with a space to preserve proper separation. IF DEFINED SEPARATOR.COL ( SET ""SEPARATOR.COLUMN=#TRUE#"" IF NOT DEFINED SEPARATOR.BOXHEADERS ( SET ""SEPARATOR.BOXHEADERS=!SEPARATOR.COL!"" ) IF NOT DEFINED SEPARATOR.CELL ( SET ""SEPARATOR.CELL=!SEPARATOR.COL!"" ) ) ELSE ( IF DEFINED SEPARATOR.BOXHEADERS ( SET ""SEPARATOR.COLUMN=#TRUE#"" IF NOT DEFINED SEPARATOR.CELL ( SET ""SEPARATOR.CELL= "" ) ) IF DEFINED SEPARATOR.CELL ( SET ""SEPARATOR.COLUMN=#TRUE#"" IF NOT DEFINED SEPARATOR.BOXHEADERS ( SET ""SEPARATOR.BOXHEADERS= "" ) ) ) :: Define the vertical separator :: :: SEPARATOR.STUB is the default vertical separator and it will be :: overridden by SEPARATOR.STUBHEAD_BOXHEAD or SEPARATOR.STUB_BODY. :: If SEPARATOR.STUB is not defined, and SEPARATOR.STUB_BODY is defined :: but SEPARATOR.STUBHEAD_BOXHEAD is not defined, or vice versa, then :: the undefined separator will be defined with a space to preserve :: proper separation. IF DEFINED SEPARATOR.STUB ( SET ""SEPARATOR.VERTICAL=#TRUE#"" IF NOT DEFINED SEPARATOR.STUBHEAD_BOXHEAD ( SET ""SEPARATOR.STUBHEAD_BOXHEAD=!SEPARATOR.STUB!"" ) IF NOT DEFINED SEPARATOR.STUB_BODY ( SET ""SEPARATOR.STUB_BODY=!SEPARATOR.STUB!"" ) ) ELSE ( IF DEFINED SEPARATOR.STUB_BODY ( SET ""SEPARATOR.VERTICAL=#TRUE#"" IF NOT DEFINED SEPARATOR.STUBHEAD_BOXHEAD ( SET ""SEPARATOR.STUBHEAD_BOXHEAD= "" ) ) IF DEFINED SEPARATOR.STUBHEAD_BOXHEAD ( SET ""SEPARATOR.VERTICAL=#TRUE#"" IF NOT DEFINED SEPARATOR.STUB_BODY ( SET ""SEPARATOR.STUB_BODY= "" ) ) ) :: If there is no vertical separator defined, but there is a column separator :: assume that the column separator should be uniformally applied. This can be :: forcibly overridden by putting SET ""SEPARATOR.VERTICAL=#TRUE#"" in the table :: definition and leaving SEPARATOR.STUBHEAD_BOXHEAD and SEPARATOR.STUB_BODY :: undefined. IF NOT DEFINED SEPARATOR.VERTICAL ( IF DEFINED SEPARATOR.COLUMN ( SET ""SEPARATOR.VERTICAL=#TRUE#"" SET ""SEPARATOR.STUBHEAD_BOXHEAD=!SEPARATOR.BOXHEADERS!"" SET ""SEPARATOR.STUB_BODY=!SEPARATOR.CELL!"" IF NOT DEFINED SEPARATOR.INTERSECT ( SET ""SEPARATOR.INTERSECT=!SEPARATOR.CELL_INTERSECT!"" ) IF NOT DEFINED SEPARATOR.CELL_INTERSECT ( SET ""SEPARATOR.CELL_INTERSECT=!SEPARATOR.INTERSECT!"" ) ) ) :: Define the horizontal separator :: :: SEPARATOR.BOXHEAD is the default horizontal separator and it will be :: overridden by SEPARATOR.STUBHEAD_STUB or SEPARATOR.BOXHEAD_BODY. :: If SEPARATOR.BOXHEAD is not defined and SEPARATOR.BOXHEAD_BODY is defined :: but SEPARATOR.STUBHEAD_STUB is not defined, SEPARATOR.STUBHEAD_STUB will :: be defined with a space so that there is proper separation. :: SEPARATOR.BOXHEAD_BODY does not need this treatment as a newline is an :: adequate replacement for trailing spaces. IF DEFINED SEPARATOR.BOXHEAD ( SET ""SEPARATOR.HORIZONTAL=#TRUE#"" IF NOT DEFINED SEPARATOR.STUBHEAD_STUB ( SET ""SEPARATOR.STUBHEAD_STUB=!SEPARATOR.BOXHEAD!"" ) IF NOT DEFINED SEPARATOR.BOXHEAD_BODY ( SET ""SEPARATOR.BOXHEAD_BODY=!SEPARATOR.BOXHEAD!"" ) ) ELSE ( IF DEFINED SEPARATOR.STUBHEAD_STUB ( SET ""SEPARATOR.HORIZONTAL=#TRUE#"" ) IF DEFINED SEPARATOR.BOXHEAD_BODY ( SET ""SEPARATOR.HORIZONTAL=#TRUE#"" IF NOT DEFINED SEPARATOR.STUBHEAD_STUB ( SET ""SEPARATOR.STUBHEAD_STUB= "" ) ) ) :: SEPARATOR.INTERSECT is intended to be a friendlier name of SEPARATOR.STUB_BOXHEAD_INTERSECT :: Only one should be defined with a non-space character. IF DEFINED SEPARATOR.INTERSECT ( IF NOT DEFINED SEPARATOR.STUB_BOXHEAD_INTERSECT ( SET ""SEPARATOR.STUB_BOXHEAD_INTERSECT=!SEPARATOR.INTERSECT!"" ) ELSE ( ECHO Warning: SEPARATOR.STUB_BOXHEAD_INTERSECT definition overriding SEPARATOR.INTERSECT ) ) :: Determine if we need an intersect and if it wasn't already defined :: decide what makes the most sense based on other separators, either :: trying to extend the vertical default or the horizontal default. :: If default vertical or horizontal separators weren't used, it is an :: advanced definition and the intersect should have been provided, :: so with no better guidance we define it as a space. IF DEFINED SEPARATOR.VERTICAL ( IF DEFINED SEPARATOR.HORIZONTAL ( :: Both vertical and horizontal separators are defined IF NOT DEFINED SEPARATOR.STUB_BOXHEAD_INTERSECT ( :: But no intersect was actually defined IF DEFINED SEPARATOR.STUB ( :: A default vertical separator is already defined IF NOT DEFINED SEPARATOR.BOXHEAD ( :: but not a default horizontal, so extend the vertical SET ""SEPARATOR.STUB_BOXHEAD_INTERSECT=!SEPARATOR.STUB!"" ) ELSE ( :: SEPARATOR.INTERSECT should be defined by the definition, just provide a space SET ""SEPARATOR.STUB_BOXHEAD_INTERSECT= "" ) ) ELSE ( :: There is no default vertical separator IF DEFINED SEPARATOR.BOXHEAD ( :: but there is a default horizontal, so extend the horizontal SET ""SEPARATOR.STUB_BOXHEAD_INTERSECT=!SEPARATOR.BOXHEAD!"" ) ELSE ( :: SEPARATOR.INTERSECT should be defined by the definition, just provide a space SET ""SEPARATOR.STUB_BOXHEAD_INTERSECT= "" ) ) ) ) ELSE ( :: Both a vertical and horizontal separator are needed for a SEPARATOR.INTERSECT, so undefine SET ""SEPARATOR.STUB_BOXHEAD_INTERSECT="" ) ) ELSE ( :: Both a vertical and horizontal separator are needed for a SEPARATOR.INTERSECT, so undefine SET ""SEPARATOR.STUB_BOXHEAD_INTERSECT="" ) :: If SEPARATOR.CELL_INTERSECT is not defined, but SEPARATOR.BOXHEAD_BODY is defined, :: see if SEPARATOR.COLS, SEPARATOR.CELL, or SEPARATOR.BOXHEADERS is defined and extend :: SEPARATOR.BOXHEAD_BODY for SEPARATOR.CELL_INTERSECT as default. IF NOT DEFINED SEPARATOR.CELL_INTERSECT ( IF DEFINED SEPARATOR.BOXHEAD_BODY ( IF DEFINED SEPARATOR.COL ( SET ""SEPARATOR.CELL_INTERSECT=!SEPARATOR.BOXHEAD_BODY!"" ) ELSE IF DEFINED SEPARATOR.CELL ( SET ""SEPARATOR.CELL_INTERSECT=!SEPARATOR.BOXHEAD_BODY!"" ) ELSE IF DEFINED SEPARATOR.BOXHEADERS ( SET ""SEPARATOR.CELL_INTERSECT=!SEPARATOR.BOXHEAD_BODY!"" ) ) ) :: SEPARATOR.CELL_INTERSECT only applies if SEPARATOR.BOXHEADERS, SEPARATOR.COL, or SEPARATOR.CELL is defined IF DEFINED SEPARATOR.CELL_INTERSECT ( IF NOT DEFINED SEPARATOR.BOXHEADERS ( IF NOT DEFINED SEPARATOR.COL ( IF NOT DEFINED SEPARATOR.CELL ( SET ""SEPARATOR.CELL_INTERSECT="" ) ) ) ) :: Now with all the separators resolved, determine the maximum vertical width in :: the stub separators. This is the only category of separators supported to be :: more than a character wide because it can be calculated in a column whereas :: a horizontal separator would require multiple lines and that hasn't been :: implemented. Boxhead and Cell separators could conceivably be more than a :: character, but that would quickly take up more space as it is multiplied out. IF DEFINED SEPARATOR.VERTICAL ( SET /A ""SEPARATOR.VERTICAL.WIDTH=0"" %@strlen% SEPARATOR.STUBHEAD_BOXHEAD SEPARATOR.WIDTH %@maxval% SEPARATOR.VERTICAL.WIDTH SEPARATOR.WIDTH %@strlen% SEPARATOR.STUB_BOXHEAD_INTERSECT SEPARATOR.WIDTH %@maxval% SEPARATOR.VERTICAL.WIDTH SEPARATOR.WIDTH %@strlen% SEPARATOR.STUB_BODY SEPARATOR.WIDTH %@maxval% SEPARATOR.VERTICAL.WIDTH SEPARATOR.WIDTH IF DEFINED SEPARATOR.STUBHEAD_BOXHEAD ( %@align% SEPARATOR.STUBHEAD_BOXHEAD !SEPARATOR.VERTICAL.WIDTH! C SEPARATOR.STUBHEAD_BOXHEAD ) IF DEFINED SEPARATOR.STUB_BOXHEAD_INTERSECT ( %@align% SEPARATOR.STUB_BOXHEAD_INTERSECT !SEPARATOR.VERTICAL.WIDTH! C SEPARATOR.STUB_BOXHEAD_INTERSECT ) IF DEFINED SEPARATOR.STUB_BODY ( %@align% SEPARATOR.STUB_BODY !SEPARATOR.VERTICAL.WIDTH! C SEPARATOR.STUB_BODY ) ) %@exit% :: At this point, the table is defined only in terms of the Stub and Boxhead :: BUILD_TABLE takes those definitions and populates the cells :BUILD_TABLE :: Build the Stub head IF NOT DEFINED STUBHEAD ( %@repeat% #SPC# !STUB.MAX_WIDTH! STUBHEAD ) %@strlen% STUBHEAD STUBHEAD.WIDTH %@maxval% STUB.MAX_WIDTH STUBHEAD.WIDTH IF DEFINED SEPARATOR.HORIZONTAL ( %@strlen% SEPARATOR.STUBHEAD_STUB STUBHEAD.WIDTH %@maxval% STUB.MAX_WIDTH STUBHEAD.WIDTH ) %@align% STUBHEAD !STUB.MAX_WIDTH! !ALIGN.STUBHEAD! STUBHEAD SET ""LINE=!STUBHEAD!!SEPARATOR.STUBHEAD_BOXHEAD!"" :: Line = Stub head + Stub separator, still missing Boxhead column headers :: The test text might be wider than the column headers, so check that now %@strlen% CELL CELL.LEN %@maxval% COL.MAX_WIDTH CELL.LEN :: Build the boxheader :: Append a column header SET ""BOXHEAD="" FOR /L %%c IN (1,1,!COL[#]!) DO ( SET ""COL=!COL[%%c]!"" SET ""COL.VALUE=#SPC#"" & %@align% COL !COL.MAX_WIDTH! !ALIGN.BOXHEAD! COL.VALUE IF [%%c] EQU [1] ( SET ""BOXHEAD=!COL.VALUE!"" ) ELSE ( SET ""BOXHEAD=!BOXHEAD!!SEPARATOR.BOXHEADERS!!COL.VALUE!"" ) ) %@strlen% BOXHEAD BOXHEAD.WIDTH SET ""LINE=!LINE!!BOXHEAD!"" %@strlen% LINE TABLE.WIDTH :: Save the line to the TABLE SET /A TABLE[#]+=1 SET ""TABLE[!TABLE[#]!]=!LINE!"" :: Add a horizontal separator if defined IF DEFINED SEPARATOR.HORIZONTAL ( SET ""LINE="" SET ""SEPARATOR="" %@strlen% SEPARATOR.STUBHEAD_STUB SEPARATOR.WIDTH IF [!SEPARATOR.WIDTH!] EQU [1] ( :: If the SEPARATOR.STUBHEAD_STUB is a single character, repeat it IF DEFINED SEPARATOR.STUBHEAD_STUB ( %@repeat% SEPARATOR.STUBHEAD_STUB !STUB.MAX_WIDTH! SEPARATOR) ) ELSE ( :: Otherwise align it based on the defined ALIGN.STUBHEAD_STUB IF DEFINED SEPARATOR.STUBHEAD_STUB ( %@align% SEPARATOR.STUBHEAD_STUB !STUB.MAX_WIDTH! !ALIGN.STUBHEAD_STUB! SEPARATOR ) ) SET ""LINE=!LINE!!SEPARATOR!"" :: ALIGN.INTERSECT is intended to be a friendlier name of ALIGN.STUB_BOXHEAD_INTERSECT IF DEFINED ALIGN.INTERSECT ( IF NOT DEFINED ALIGN.STUB_BOXHEAD_INTERSECT ( SET ""ALIGN.STUB_BOXHEAD_INTERSECT=!ALIGN.INTERSECT!"" ) ELSE ( ECHO Warning: ALIGN.STUB_BOXHEAD_INTERSECT definition overriding ALIGN.INTERSECT ) ) SET ""SEPARATOR="" %@strlen% SEPARATOR.STUB_BOXHEAD_INTERSECT SEPARATOR.WIDTH IF [!SEPARATOR.WIDTH!] EQU [1] ( :: If the SEPARATOR.STUB_BOXHEAD_INTERSECT is a single character, repeat it IF DEFINED SEPARATOR.STUB_BOXHEAD_INTERSECT ( %@repeat% SEPARATOR.STUB_BOXHEAD_INTERSECT !SEPARATOR.VERTICAL.WIDTH! SEPARATOR ) ) ELSE ( :: Otherwise align it based on the defined ALIGN.STUBHEAD IF DEFINED SEPARATOR.STUB_BOXHEAD_INTERSECT ( %@align% SEPARATOR.STUB_BOXHEAD_INTERSECT !SEPARATOR.VERTICAL.WIDTH! !ALIGN.STUB_BOXHEAD_INTERSECT! SEPARATOR ) ) SET ""LINE=!LINE!!SEPARATOR!"" SET ""SEPARATOR="" %@strlen% SEPARATOR.BOXHEAD_BODY SEPARATOR.WIDTH IF [!SEPARATOR.WIDTH!] EQU [1] ( IF DEFINED SEPARATOR.CELL_INTERSECT ( :: If there is a column intersect, we need to build the line out for each column, FOR /L %%c IN (2,1,!COL[#]!) DO ( :: Loop COL[#]-1 times so that we don't have too many segments %@repeat% SEPARATOR.BOXHEAD_BODY !COL.MAX_WIDTH! COLUMN SET ""LINE=!LINE!!COLUMN!!SEPARATOR.CELL_INTERSECT!"" ) :: Append the final column SET ""LINE=!LINE!!COLUMN!"" ) ELSE ( :: otherwise, if the SEPARATOR.BOXHEAD_BODY is a single character, repeat it for the width of the BOXHEAD IF DEFINED SEPARATOR.BOXHEAD_BODY ( %@repeat% SEPARATOR.BOXHEAD_BODY !BOXHEAD.WIDTH! SEPARATOR ) ) ) ELSE ( :: Otherwise align it based on the defined ALIGN.STUBHEAD IF DEFINED SEPARATOR.BOXHEAD_BODY ( %@align% SEPARATOR.BOXHEAD_BODY !BOXHEAD.WIDTH! !ALIGN.BOXHEAD_BODY! SEPARATOR ) ) SET ""LINE=!LINE!!SEPARATOR!"" SET /A TABLE[#]+=1 SET ""TABLE[!TABLE[#]!]=!LINE!"" ) :: If we're going to show an R1C1 reference, we don't need to compute the cell alignment IF DEFINED SHOW.R1C1_REFERENCE ( :: Set up the R1C1 row counter SET /A ""R1C1_REFERENCE.R=0"" ) ELSE ( :: Otherwise figure out the CELL alignment now so we only need to compute this once %@align% CELL !COL.MAX_WIDTH! !ALIGN.CELL! CELL ) :: Build the row FOR /L %%r IN (1,1,!ROW[#]!) DO ( :: Advance and output the spinner animation if not disabled IF NOT DEFINED SPINNER.DISABLED ( %@spinner% SPINNER.FRAME ) :: Build the stub for the row SET ""ROW=!ROW[%%r]!"" %@align% ROW !STUB.MAX_WIDTH! !ALIGN.STUB! ROW.VALUE SET ""SEPARATOR="" IF DEFINED SEPARATOR.VERTICAL ( %@strlen% SEPARATOR.STUB_BODY SEPARATOR.WIDTH IF [!SEPARATOR.WIDTH!] EQU [1] ( IF DEFINED SEPARATOR.STUB_BODY ( %@repeat% SEPARATOR.STUB_BODY !SEPARATOR.VERTICAL.WIDTH! SEPARATOR ) ) ELSE ( IF DEFINED SEPARATOR.STUB_BODY ( %@align% SEPARATOR.STUB_BODY !SEPARATOR.VERTICAL.WIDTH! !ALIGN.STUB_BODY! SEPARATOR ) ) ) IF /I [""!ROW:~0,5!""] EQU [""#SPC#""] ( :: We want a special case for #SPC# so that we print a blank line SET ""LINE="" ) ELSE IF /I [""!ROW:~0,5!""] EQU [""#LBL#""] ( :: We want a special case for #LBL# so that we print the string which follows and append an SGR RESET IF /I [""!ROW:~5,1!""] EQU ["" ""] ( :: Allow for a space to follow #LBL# SET ""LINE=!ROW:~6!!RESET!"" ) ELSE IF /I [""!ROW:~5,1!""] EQU ["".""] ( :: Allow for a period to follow #LBL# and treat it like space, to mimic ECHO SET ""LINE=!ROW:~6!!RESET!"" ) ELSE ( :: Assume that any other character is part of the label SET ""LINE=!ROW:~5!!RESET!"" ) ) ELSE ( :: Otherwise process the line SET ""LINE=!ROW.VALUE!!SEPARATOR!"" IF /I [""!ROW!""] EQU [""#NUL#""] ( SET ""ROW="" ) ELSE ( SET ""ROW=!CSI!!ROW!"" ) :: Set up the R1C1 column counter IF DEFINED SHOW.R1C1_REFERENCE ( SET /A ""R1C1_REFERENCE.C=0"" %@counter% R1C1_REFERENCE.R ) :: Append a cell to the row, adding separators unless processing the first column FOR /L %%c IN (1,1,!COL[#]!) DO ( :: This is where we actually build the R1C1 reference, replacing the CELL IF DEFINED SHOW.R1C1_REFERENCE ( %@counter% R1C1_REFERENCE.C SET ""R1C1_REFERENCE=R!R1C1_REFERENCE.R!C!R1C1_REFERENCE.C!"" %@align% R1C1_REFERENCE !COL.MAX_WIDTH! !ALIGN.CELL.R1C1! CELL ) IF /I [""!COL[%%c]!""] EQU [""#NUL#""] ( :: Special case for #NUL# IF [%%c] EQU [1] ( SET ""LINE=!LINE!!ROW!!CELL!!RESET!"" ) ELSE ( SET ""LINE=!LINE!!SEPARATOR.CELL!!ROW!!CELL!!RESET!"" ) ) ELSE IF /I [""!COL[%%c]!""] EQU [""#SPC#""] ( :: Special case for #SPC# %@repeat% #SPC# !COL.MAX_WIDTH! OUT IF [%%c] EQU [1] ( SET ""LINE=!LINE!!OUT!"" ) ELSE ( SET ""LINE=!LINE!!SEPARATOR.CELL!!OUT!"" ) :: Don't count spaces as columns for R1C1_REFERENCE SET /A ""R1C1_REFERENCE.C-=1"" ) ELSE ( :: Normal processing SET ""COL=!CSI!!COL[%%c]!"" IF [%%c] EQU [1] ( SET ""LINE=!LINE!!ROW!!COL!!CELL!!RESET!"" ) ELSE ( SET ""LINE=!LINE!!SEPARATOR.CELL!!ROW!!COL!!CELL!!RESET!"" ) ) ) ) :: Save the line to the TABLE SET /A TABLE[#]+=1 SET ""TABLE[!TABLE[#]!]=!LINE!"" ) %@exit% :DISPLAY_TABLE :: We use an out buffer to iterate through all the rows of the table :: This allows us to quickly display the output even though it takes :: time to figure out the alignment calculations FOR /L %%r IN (1,1,!TABLE[#]!) DO ( ECHO.!TABLE[%%r]! ) %@exit% %=- End Main Script -=% %=- Macro Definitions -=% :DEFINE_MACROS :: Return from this with GOTO :MAIN to retain macro definitions SETLOCAL DISABLEDELAYEDEXPANSION :: -------- Begin macro definitions ---------- (SET LF=^ %= This defines a Line Feed (0x0A) =% ) (SET \\n=^^^ %= This defines an escaped Line Feed (0x5E 0x0A) =% ) :: @strlen StrVar [RtnVar] :: :: Computes the length of string in variable StrVar :: and stores the result in variable RtnVar. :: If StrVar is #SPC#, the return val should be 1. :: If StrVar is any other Special Token, the return val should be 0. :: If RtnVar is not specified, then print the length to stdout. :: SET @strlen=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% FOR /F ""tokens=1,2 delims=, "" %%1 IN (""!argv!"") DO ( ENDLOCAL%\\n% SET ""s=A!%%~1!""%\\n% IF /I [""!s:~0,5!""] EQU [""#SPC#""] (%\\n% SET ""s= ""%\\n% ) ELSE IF /I [""!s:~0,1!""] EQU [""#""] (%\\n% IF /I [""!s:~4,1!""] EQU [""#""] (%\\n% :: Look for Special Tokens of the form #???# %\\n% SET ""s=""%\\n% )%\\n% )%\\n% SET ""len=0""%\\n% FOR %%P in (4096 2048 1024 512 256 128 64 32 16 8 4 2 1) DO (%\\n% IF [""!s:~%%P,1!""] NEQ [""""] (%\\n% SET /A ""len+=%%P""%\\n% SET ""s=!s:~%%P!""%\\n% )%\\n% )%\\n% FOR %%V IN (!len!) DO ENDLOCAL^&IF [""%%~2""] NEQ [""""] (SET ""%%~2=%%V"") ELSE (ECHO %%V)%\\n% )%\\n% ) ELSE SETLOCAL ENABLEDELAYEDEXPANSION^&SETLOCAL^&SET argv=, :: @maxval NumVar1 NumVar2 [RetVar] :: :: Compares NumVar1 with NumVar2, and assigns to RetVar. :: If RtnVar is not specified, then return the largest value :: back through NumVar1. :: :: It is recommended that NumVar1 will be accumulating the :: Max value passed through multiple subsequent calls, to :: determine the largest string passed in. :: SET @maxval=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% FOR /F ""tokens=1,2,3 delims=, "" %%1 IN (""!argv!"") DO ( ENDLOCAL%\\n% IF [!%%~1!] NEQ [] (SET /a ""a=!%%~1!"") ELSE (SET /a ""a=%%~1"")%\\n% IF [!%%~2!] NEQ [] (SET /a ""b=!%%~2!"") ELSE (SET /a ""b=%%~2"")%\\n% IF !b! GTR !a! (SET /a ""a=b"")%\\n% FOR %%V IN (!a!) DO ENDLOCAL^&IF [""%%~3""] NEQ [""""] (SET ""%%~3=%%V"") ELSE (SET ""%%~1=%%V"")%\\n% )%\\n% ) ELSE SETLOCAL ENABLEDELAYEDEXPANSION^&SETLOCAL^&SET argv=, :: @repeat StrVal Count [RetVar] :: :: Repeats StrVal, Count times, and assigns to RetVar. :: If StrVar is #SPC#, this should empty padding. :: If StrVar is any other Special Token, this should be empty. :: If RtnVar is not specified, then print the output string to stdout. :: SET @repeat=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% FOR /F ""tokens=1,2,3 delims=, "" %%1 IN (""!argv!"") DO ( ENDLOCAL%\\n% IF [!%%~1!] NEQ [] (SET ""s=!%%~1!"") ELSE (SET ""s=%%~1"")%\\n% IF /I [""!s:~0,5!""] EQU [""#SPC#""] (%\\n% SET ""s= ""%\\n% ) ELSE IF /I [""!s:~0,1!""] EQU [""#""] (%\\n% IF /I [""!s:~4,1!""] EQU [""#""] (%\\n% :: Look for Special Tokens of the form #???# %\\n% SET ""s=""%\\n% )%\\n% )%\\n% SET ""count=%%~2""%\\n% SET ""outstr=""%\\n% FOR /L %%. IN (1,1,!count!) DO SET ""outstr=!outstr!!s!""%\\n% FOR /F ""delims="" %%V IN (""!outstr!"") DO ENDLOCAL^&IF [""%%~3""] NEQ [""""] (SET ""%%~3=%%V"") ELSE (ECHO %%V)%\\n% )%\\n% ) ELSE SETLOCAL ENABLEDELAYEDEXPANSION^&SETLOCAL^&SET argv=, :: @rtrim StrVar [CharVar] :: :: Right Trim CharVar surrounding StrVar. :: If CharVar is not specified, then default to space. :: :: Technique Source: https://www.dostips.com/forum/viewtopic.php?p=12327#p12327 :: SET @rtrim=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% SET ""charVar= ""%\\n% FOR /F ""tokens=1,2 delims=, "" %%1 IN (""!argv!"") DO (%\\n% SET ""strVar=!%%1!""%\\n% IF [%%~2] NEQ [] IF DEFINED %%~2 SET ""charVar=!%%2:~0,1!""%\\n% FOR /L %%i IN (1 1 12) DO SET ""charVar=!charVar!!charVar!""%\\n% IF DEFINED strVar FOR %%k IN (4096 2048 1024 512 256 128 64 32 16 8 4 2 1) DO (%\\n% IF [""!strVar:~-%%k!""] EQU [""!charVar:~-%%k!""] SET ""strVar=!strVar:~0,-%%k!""%\\n% )%\\n% IF DEFINED strVar (%\\n% IF NOT DEFINED _notDelayed (%\\n% SET ""strVar=!strVar:^=^^!""%\\n% SET ""strVar=!strVar:""=""""Q!^""%\\n% CALL SET ""strVar=%%^strVar:^!=""""E^!%%"" ! %\\n% SET ""strVar=!strVar:""""E=^!""%\\n% SET ""strVar=!strVar:""""Q=""!^""%\\n% )%\\n% FOR /F ^^^""eol^^=^^^%LF%%LF%^%LF%%LF%^^ delims^^=^^^"" %%k IN (""!strVar!"") DO ENDLOCAL^&ENDLOCAL^&SET ""%%1=%%k""%\\n% ) ELSE ENDLOCAL^&ENDLOCAL^&SET ""%%1=""%\\n% )%\\n% ) ELSE SETLOCAL^&SET ""_notDelayed=!""^&SETLOCAL ENABLEDELAYEDEXPANSION^&SET argv=, :: @ltrim StrVar [CharVar] :: :: Left Trim CharVar surrounding StrVar. :: If CharVar is not specified, then default to space. :: :: Technique Source: https://www.dostips.com/forum/viewtopic.php?p=12327#p12327 :: SET @ltrim=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% SET ""charVar= ""%\\n% FOR /F ""tokens=1,2 delims=, "" %%1 IN (""!argv!"") DO (%\\n% SET ""strVar=!%%1!""%\\n% IF [%%~2] NEQ [] IF DEFINED %%~2 SET ""charVar=!%%2:~0,1!""%\\n% FOR /L %%i IN (1 1 12) DO SET ""charVar=!charVar!!charVar!""%\\n% IF DEFINED strVar FOR %%k IN (4096 2048 1024 512 256 128 64 32 16 8 4 2 1) DO (%\\n% IF [""!strVar:~0,%%k!""] EQU [""!charVar:~-%%k!""] SET ""strVar=!strVar:~%%k!""%\\n% )%\\n% IF DEFINED strVar (%\\n% IF NOT DEFINED _notDelayed (%\\n% SET ""strVar=!strVar:^=^^!""%\\n% SET ""strVar=!strVar:""=""""Q!^""%\\n% CALL SET ""strVar=%%^strVar:^!=""""E^!%%"" ! %\\n% SET ""strVar=!strVar:""""E=^!""%\\n% SET ""strVar=!strVar:""""Q=""!^""%\\n% )%\\n% FOR /F ^^^""eol^^=^^^%LF%%LF%^%LF%%LF%^^ delims^^=^^^"" %%k IN (""!strVar!"") DO ENDLOCAL^&ENDLOCAL^&SET ""%%1=%%k""%\\n% ) ELSE ENDLOCAL^&ENDLOCAL^&SET ""%%1=""%\\n% )%\\n% ) ELSE SETLOCAL^&SET ""_notDelayed=!""^&SETLOCAL ENABLEDELAYEDEXPANSION^&SET argv=, :: @trim StrVar [CharVar] :: :: Trim CharVar surrounding StrVar. :: If CharVar is not specified, then default to space. :: :: Technique Source: https://www.dostips.com/forum/viewtopic.php?p=12327#p12327 :: SET @trim=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% SET ""charVar= ""%\\n% FOR /F ""tokens=1,2 delims=, "" %%1 IN (""!argv!"") DO (%\\n% SET ""strVar=!%%1!""%\\n% IF [%%~2] NEQ [] IF DEFINED %%~2 SET ""charVar=!%%2:~0,1!""%\\n% FOR /L %%i IN (1 1 12) DO SET ""charVar=!charVar!!charVar!""%\\n% IF DEFINED strVar FOR %%k IN (4096 2048 1024 512 256 128 64 32 16 8 4 2 1) DO (%\\n% IF [""!strVar:~-%%k!""] EQU [""!charVar:~-%%k!""] SET ""strVar=!strVar:~0,-%%k!""%\\n% IF [""!strVar:~0,%%k!""] EQU [""!charVar:~-%%k!""] SET ""strVar=!strVar:~%%k!""%\\n% )%\\n% IF DEFINED strVar (%\\n% IF NOT DEFINED _notDelayed (%\\n% SET ""strVar=!strVar:^=^^!""%\\n% SET ""strVar=!strVar:""=""""Q!^""%\\n% CALL SET ""strVar=%%^strVar:^!=""""E^!%%"" ! %\\n% SET ""strVar=!strVar:""""E=^!""%\\n% SET ""strVar=!strVar:""""Q=""!^""%\\n% )%\\n% FOR /F ^^^""eol^^=^^^%LF%%LF%^%LF%%LF%^^ delims^^=^^^"" %%k IN (""!strVar!"") DO ENDLOCAL^&ENDLOCAL^&SET ""%%1=%%k""%\\n% ) ELSE ENDLOCAL^&ENDLOCAL^&SET ""%%1=""%\\n% )%\\n% ) ELSE SETLOCAL^&SET ""_notDelayed=!""^&SETLOCAL ENABLEDELAYEDEXPANSION^&SET argv=, :: @align StrVar Width [RtnVar] :: :: Aligns the string in variable StrVar :: in the field using the Width and Alignment provided :: and stores the result in variable RtnVar. :: If StrVar is a Special Token, it is treated as a space. :: If RtnVar is not specified, then print the output to stdout. :: SET @align=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% FOR /F ""tokens=1,2,3,4 delims=, "" %%1 IN (""!argv!"") DO ( ENDLOCAL%\\n% IF [""!%%~1!""] NEQ [""""] (SET ""strVar=!%%~1!"") ELSE (SET ""strVar=%%~1"")%\\n% IF /I [""!strVar:~0,1!""] EQU [""#""] (%\\n% IF /I [""!strVar:~4,1!""] EQU [""#""] (%\\n% :: Look for Special Tokens of the form #???# %\\n% SET ""strVar= ""%\\n% )%\\n% )%\\n% IF [""!%%~2!""] NEQ [""""] (SET ""width=!%%~2!"") ELSE (SET ""width=%%~2"")%\\n% SET ""alignment=%%~3""%\\n% IF [""!%%~4!""] NEQ [""""] (SET ""%%~4="")%\\n% SET ""len=1""%\\n% SET ""s=!strVar!""%\\n% FOR %%P in (4096 2048 1024 512 256 128 64 32 16 8 4 2 1) DO (%\\n% IF [""!s:~%%P,1!""] NEQ [""""] (%\\n% SET /A ""len+=%%P""%\\n% SET ""s=!s:~%%P!""%\\n% )%\\n% )%\\n% IF /I [""!alignment!""] EQU [""L""] (%\\n% SET /A ""pre=0""%\\n% SET /A ""post=(!width! - !len!)""%\\n% )%\\n% IF /I [""!alignment!""] EQU [""C""] (%\\n% SET /A ""pre=(!width! - !len! + 1) / 2""%\\n% SET /A ""post=(!width! - !pre! - !len!)""%\\n% )%\\n% IF /I [""!alignment!""] EQU [""R""] (%\\n% SET /A ""pre=(!width! - !len!)""%\\n% SET /A ""post=0""%\\n% )%\\n% SET ""wrkstr=""%\\n% FOR /L %%. IN (1,1,!pre!) DO SET ""wrkstr=!wrkstr! ""%\\n% SET ""wrkstr=!wrkstr!!strVar!""%\\n% FOR /L %%. IN (1,1,!post!) DO SET ""wrkstr=!wrkstr! ""%\\n% FOR /F ""delims="" %%V IN (""!wrkstr!"") DO ENDLOCAL^&IF [""%%~4""] NEQ [""""] (SET ""%%~4=%%V"") ELSE (ECHO %%V)%\\n% )%\\n% ) ELSE SETLOCAL ENABLEDELAYEDEXPANSION^&SETLOCAL^&SET argv=, :: @spinner FrameVar :: :: When called print a spinning wait cursor using the FrameVar :: as an accumulator. If the FrameVar variable is not set :: it is initialized. Advancing one frame the FrameVar is :: incremented. If it reaches the last frame it is reset :: back to the first frame. :: :: Has a dependency on the ANSI Control Sequence, :: Cursor Previous Line (CPL). This means the initialization :: needs to be completed before this macro can be used. :: :: The animation can be changed by adjusting the variables named :: @spinner[#] and setting the count to match. :: SET ""@spinner[0]= - Processing"" SET ""@spinner[1]= \\ Processing"" SET ""@spinner[2]= ^| Processing"" SET ""@spinner[3]= / Processing"" SET /A ""@spinner[#]=4"" SET @spinner=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% FOR /f ""tokens=1 delims=, "" %%1 IN (""!argv!"") DO ( ENDLOCAL%\\n% SET ""frameVar=%%~1""%\\n% IF [""!frameVar!""] EQU [""""] (%\\n% SET /A ""frame=0""%\\n% ) ELSE (%\\n% SET /A ""frame=!frameVar!""%\\n% )%\\n% CALL ECHO %%@spinner[!frame!]%%!CPL!%\\n% SET /A ""frame+=1""%\\n% SET /A ""frame%%=!@spinner[#]!""%\\n% FOR /F ""delims="" %%V IN (""!frame!"") DO ENDLOCAL^&SET ""%%~1=%%V""%\\n% )%\\n% ) ELSE SETLOCAL ENABLEDELAYEDEXPANSION^&SETLOCAL^&SET argv=, :: @counter NumVar :: :: When called it uses the NumVar as an accumulator. If the :: NumVar variable is not set it is initialized. :: SET @counter=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% FOR /f ""tokens=1 delims=, "" %%1 IN (""!argv!"") DO ( ENDLOCAL%\\n% SET ""numVar=%%~1""%\\n% IF [""!numVar!""] EQU [""""] (%\\n% SET /A ""count=0""%\\n% ) ELSE (%\\n% SET /A ""count=!numVar!""%\\n% )%\\n% SET /A ""count+=1""%\\n% FOR /F ""delims="" %%V IN (""!count!"") DO ENDLOCAL^&SET ""%%~1=%%V""%\\n% )%\\n% ) ELSE SETLOCAL ENABLEDELAYEDEXPANSION^&SETLOCAL^&SET argv=, :: @exit [ErrorLevel] :: :: Used to exit and optionally sets an error code if provided. :: This is prefered for exiting a script over GOTO :EOF for consistency :: and to pass Error Levels if necessary. This tidy's up a call :: to EXIT /B [ErrorLevel] so the use feels the same as other macros. :: SET @exit=FOR %%. IN (1 2) DO IF [%%.] EQU [2] (%\\n% FOR /F ""tokens=1 delims=, "" %%1 IN (""!argv! 0"") DO ( ENDLOCAL%\\n% IF [""%%~1""] NEQ [""""] (IF DEFINED %%~1 (SET ""exitCode=!%%1!""%\\n% ) ELSE (SET ""exitCode=%%~1"")%\\n% ) ELSE (SET ""exitCode=0"")%\\n% EXIT /B !exitCode!%\\n% )%\\n% ) ELSE SETLOCAL ENABLEDELAYEDEXPANSION^&SETLOCAL^&SET argv=, GOTO :MAIN :: -------- End macro definitions ---------- %=- End Macro Definitions -=% %=- Parse Command Line Arguments -=% :PARSE_ARGS SET ""SCRIPT=%~dpnx0"" SET ""SCRIPT_NAME=%~nx0"" SET ""DATA_FILE="" FOR %%a IN (%*) DO ( SET ""ARG=%%~a"" SET ""OPT.FOUND="" :: Check for options IF [""!ARG:~0,1!""] EQU [""/""] ( SET ""OPT.FOUND=#TRUE#"" ) ELSE IF [""!ARG:~0,1!""] EQU [""-""] ( :: Makes this more friendly to run in PowerShell where - is used for arguments SET ""OPT.FOUND=#TRUE#"" ) IF DEFINED OPT.FOUND ( SHIFT /1 SET ""OPT=!ARG:~1,1!"" :: /H [Help] IF /I [""!OPT!""] EQU [""H""] ( SET ""OPT="" CALL :USAGE %@exit% -1 ) :: /A [ANSI] IF /I [""!OPT!""] EQU [""A""] ( SET ""OPT="" SET ""SHOW.ANSI=#TRUE#"" SET ""SHOW.UTF8=#TRUE#"" ) :: /R [R1C1] IF /I [""!OPT!""] EQU [""R""] ( SET ""OPT="" SET ""SHOW.R1C1_REFERENCE=#TRUE#"" ) :: /U [UTF-8] IF /I [""!OPT!""] EQU [""U""] ( SET ""OPT="" SET ""SHOW.UTF8=#TRUE#"" ) IF [""!OPT!""] NEQ [""""] ( SET ""MSG=Error: Unknown option: !OPT!"" CALL :USAGE MSG %@exit% 1 ) ) ) :: If there isn't a definition passed on the command-line :: default to using this script as the definition file. IF [%~1] EQU [] ( SET ""DATA_FILE=!SCRIPT!"" ) ELSE ( SET ""DATA_FILE=%~1"" ) :: Verify that the definition file exists and exit with :: error code 1 if it doesn't. IF NOT EXIST !DATA_FILE! ( SET ""MSG=Error: File does not exist: !DATA_FILE!"" CALL :USAGE MSG %@exit% 1 ) %@exit% :: CALL :USAGE MsgVar :: :: When called with a MsgVar, it will prepend the usage :: output message with the custom string message assigned :: to MsgVar. This is used to further explain the error. :: :USAGE SET ""SCRIPT_NAME=%~nx0"" :: The following ECHO intentionally has 80 spaces to clear the :: line any remaining on screen text on call. ECHO. IF [%1] NEQ [] ( ECHO !%1! ECHO. ) ECHO Usage: !SCRIPT_NAME! [flags] [^] ECHO. ECHO This file echoes a bunch of color codes to the terminal to demonstrate ECHO how they will render. The `Data Segment` portion of the file defines the ECHO table layout and allows the user to configure whatever matrix of ANSI ECHO Escape Sequence control characters they wish. This can also be read from ECHO an external definition file using the same structure. ECHO. ECHO Flags: ECHO /H : This message ECHO /A : Display the ANSI Escape Sequence control characters ECHO This requires UTF-8 support and implies the additional /U flag ECHO /R : Show cell R1C1 reference addressing instead of cell text ECHO /U : Enable UTF-8 support ECHO. ECHO The script itself only has one external dependency on CHCP if you want ECHO to show Unicode text. This just sets the Command Prompt codepage to 65001 ECHO and will restore it when the script successfully completes. ECHO. %@exit% %=- End Parse Command Line Arguments -=% :: :: Inspired by Daniel Crisman's BASH script from http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html :: :: #!/bin/bash :: # :: # This file echoes a bunch of color codes to the :: # terminal to demonstrate what's available. Each :: # line is the color code of one forground color, :: # out of 17 (default + 16 escapes), followed by a :: # test use of that color on all nine background :: # colors (default + 8 escapes). :: # :: :: T='gYw' # The test text :: :: echo -e ""\\n 40m 41m 42m 43m\\ :: 44m 45m 46m 47m""; :: :: for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \\ :: '1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \\ :: ' 36m' '1;36m' ' 37m' '1;37m'; :: do FG=${FGs// /} :: echo -en "" $FGs \\033[$FG $T "" :: for BG in 40m 41m 42m 43m 44m 45m 46m 47m; :: do echo -en ""$EINS \\033[$FG\\033[$BG $T \\033[0m""; :: done :: echo; :: done :: echo :: ",16320,True,2729.133762640236,median "@echo off rem rem Copyright by The HDF Group. rem Copyright by the Board of Trustees of the University of Illinois. rem All rights reserved. rem rem This file is part of HDF5. The full HDF5 copyright notice, including rem terms governing use, modification, and redistribution, is contained in rem the files COPYING and Copyright.html. COPYING can be found at the root rem of the source code distribution tree; Copyright.html can be found at the rem root level of an installed copy of the electronic HDF5 document set and rem is linked from the top-level documents page. It can also be found at rem http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have rem access to either file, you may request a copy from help@hdfgroup.org. rem rem Tests for the h5diff tool rem rem Created: Scott Wegner, 8/22/07 rem Modified: Allen Byrne, 2/23/10 rem setlocal enabledelayedexpansion pushd %~dp0 rem ############################################################################ rem test file names rem ############################################################################ set indir=%CD%\\testfiles set srcfile1=h5diff_basic1.h5 set srcfile2=h5diff_basic2.h5 set srcfile3=h5diff_types.h5 set srcfile4=h5diff_dtypes.h5 set srcfile5=h5diff_attr1.h5 set srcfile6=h5diff_attr2.h5 set srcfile7=h5diff_dset1.h5 set srcfile8=h5diff_dset2.h5 set srcfile9=h5diff_hyper1.h5 set srcfile10=h5diff_hyper2.h5 set srcfile11=h5diff_empty.h5 set srcfile12=h5diff_links.h5 set srcfile13=h5diff_softlinks.h5 set srcfile14=h5diff_linked_softlink.h5 set srcfile15=h5diff_extlink_src.h5 set srcfile16=h5diff_extlink_trg.h5 set srcfile17=h5diff_ext2softlink_src.h5 set srcfile18=h5diff_ext2softlink_trg.h5 set srclnkfile1=h5diff_danglelinks1.h5 set srclnkfile2=h5diff_danglelinks2.h5 set src_grp_recurse1=h5diff_grp_recurse1.h5 set src_grp_recurse2=h5diff_grp_recurse2.h5 set src_grp_recurse1_ext=h5diff_grp_recurse_ext1.h5 set src_grp_recurse2_ext1=h5diff_grp_recurse_ext2-1.h5 set src_grp_recurse2_ext2=h5diff_grp_recurse_ext2-2.h5 set src_grp_recurse2_ext3=h5diff_grp_recurse_ext2-3.h5 set srcexclude1_1=h5diff_exclude1-1.h5 set srcexclude1_2=h5diff_exclude1-2.h5 set srcexclude2_1=h5diff_exclude2-1.h5 set srcexclude2_2=h5diff_exclude2-2.h5 set src_comp_vl_strs=h5diff_comp_vl_strs.h5 set src_COMPS_ARRAY_VLEN1=compounds_array_vlen1.h5 set src_COMPS_ARRAY_VLEN2=compounds_array_vlen2.h5 set src_ATTR_VERBOSE_LEVEL_FILE1=h5diff_attr_v_level1.h5 set src_ATTR_VERBOSE_LEVEL_FILE2=h5diff_attr_v_level2.h5 set file1=%indir%\\h5diff_basic1.h5 set file2=%indir%\\h5diff_basic2.h5 set file3=%indir%\\h5diff_types.h5 set file4=%indir%\\h5diff_dtypes.h5 set file5=%indir%\\h5diff_attr1.h5 set file6=%indir%\\h5diff_attr2.h5 set file7=%indir%\\h5diff_dset1.h5 set file8=%indir%\\h5diff_dset2.h5 set file9=%indir%\\h5diff_hyper1.h5 set file10=%indir%\\h5diff_hyper2.h5 set file11=%indir%\\h5diff_empty.h5 set file12=%indir%\\h5diff_links.h5 set file13=%indir%\\h5diff_softlinks.h5 set file14=%indir%\\h5diff_linked_softlink.h5 set file15=%indir%\\h5diff_extlink_src.h5 set file16=%indir%\\h5diff_extlink_trg.h5 set file17=%indir%\\h5diff_ext2softlink_src.h5 set file18=%indir%\\h5diff_ext2softlink_trg.h5 set lnkfile1=%indir%\\h5diff_danglelinks1.h5 set lnkfile2=%indir%\\h5diff_danglelinks2.h5 set grp_recurse1=%indir%\\h5diff_grp_recurse1.h5 set grp_recurse2=%indir%\\h5diff_grp_recurse2.h5 set grp_recurse1_ext=%indir%\\h5diff_grp_recurse_ext1.h5 set grp_recurse2_ext1=%indir%\\h5diff_grp_recurse_ext2-1.h5 set grp_recurse2_ext2=%indir%\\h5diff_grp_recurse_ext2-2.h5 set grp_recurse2_ext3=%indir%\\h5diff_grp_recurse_ext2-3.h5 set exclude1_1=%indir%\\h5diff_exclude1-1.h5 set exclude1_2=%indir%\\h5diff_exclude1-2.h5 set exclude2_1=%indir%\\h5diff_exclude2-1.h5 set exclude2_2=%indir%\\h5diff_exclude2-2.h5 set comp_vl_strs=%indir%\\h5diff_comp_vl_strs.h5 set COMPS_ARRAY_VLEN1=%indir%\\compounds_array_vlen1.h5 set COMPS_ARRAY_VLEN2=%indir%\\compounds_array_vlen2.h5 set ATTR_VERBOSE_LEVEL_FILE1=%indir%\\h5diff_attr_v_level1.h5 set ATTR_VERBOSE_LEVEL_FILE2=%indir%\\h5diff_attr_v_level2.h5 rem The tool name set h5diff=h5diff%2 rem The path of the tool binary set h5diff_bin=%CD%\\..\\%h5diff%\\%1\\%h5diff% set EXIT_SUCCESS=0 set EXIT_FAILURE=1 set /a nerrors=0 set verbose=yes rem default to run h5diff tests set pmode= rem following not needed for windows see #10 ADB 1/22/2009 rem mydomainname=`domainname 2>/dev/null` if not exist .\\testfiles mkdir .\\testfiles rem Parse options rem On Windows, we don't parse, because we only want to worry about rem debug/release and dll --SJW 9/5/07 goto main rem Print a line-line message left justified in a field of 70 characters rem beginning with the word ""Testing"". rem On Windows, simply set up the test_msg variable, so it can be printed later rem with the :results function. This is because Windows doesn't support rem printing without a linefeed. --SJW 6/20/08 rem :testing set test_msg=Testing for %%a in (%*) do ( set test_msg=!test_msg! %%~nxa ) set test_msg=%test_msg% set test_msg=%test_msg:~0,69% exit /b rem Print the testing results. Simply echo the contents of test_msg (set up rem above), along with the passed parameter, generall PASSED, FAILED, or -SKIP- :results echo.%test_msg% %* exit /b rem Function STDOUT_FILTER isn't technically needed on Windows, because this rem script will never run on platforms that require it. However, include empty rem interface for consistency. --SJW 8/22/07 :stdout_filter exit /b rem Function STDERR_FILTER isn't technically needed on Windows, because this rem script will never run on platforms that require it. However, include empty rem interface for consistency. --SJW 8/22/07 :stderr_filter exit /b rem Run a test and print PASS or *FAIL*. If a test fails then increment rem the `nerrors' global variable and (if verbose is set) display the rem difference between the actual output and the expected output. The rem expected output is given as the first argument to this function and rem the actual output file is calculated by replacing the `.ddl' with rem `.out'. The actual output is not removed if HDF5_NOCLEANUP has a rem non-zero value. rem :tooltest set expect=%CD%\\testfiles\\%1 set actual=%CD%\\testfiles\\%~n1.out set actual_err=%CD%\\testfiles\\~n1.err set actual_sav=%actual%-sav set actual_err_sav=%actual_err%-sav rem We define %params% here because Windows `shift` command doesn't affect rem the %* variable. --SJW 8/22/07 set params= for /f ""tokens=2*"" %%a in (""%*"") do ( if ""%%b""=="""" ( set params=%%a ) else ( set params=%%a %%b ) ) rem Parallel mode not actually supported, but included for consistency. if defined pmode ( rem do nothing ) rem Run test. ( pushd testfiles %h5diff_bin% %params% popd ) > %actual% 2> %actual_err% set EXIT_CODE=!errorlevel! rem save actual and actual_err in case they are needed later. copy /y %actual% %actual_sav% > nul call :stdout_filter %actual% copy /y %actual_err% %actual_err_sav% > nul call :stderr_filter %actual_err% type %actual_err% >> %actual% echo EXIT CODE: !EXIT_CODE! >> %actual% if not exist %expect% ( rem Create the expect file if it doesn't yet exist. call :results CREATED copy /y %actual% %expect% > nul ) else ( fc /w %expect% %actual% > nul if !errorlevel! equ 0 ( call :results PASSED ) else ( call :results *FAILED* echo. Expected result ^(%expect%^) differs from actual result ^(%actual%^) set /a nerrors=!nerrors!+1 if ""yes""==""%verbose%"" fc /w %actual% %expect% ) ) rem Clean up output file if not defined hdf5_nocleanup ( del /f %actual% %actual_err% %actual_sav% %actual_err_sav% ) exit /b rem Print a ""SKIP"" message :skip call :testing -SKIP- %h5diff% %* exit /b :main rem ############################################################################ rem The tests rem To avoid the printing of the complete full path of the test file, that hides rem all the other parameters for long paths, the printing of the command line rem is done first in rem TESTING with the name only of the test file $TOOL, not its full path $TESTFILE rem ############################################################################ rem ############################################################################ rem # Common usage rem ############################################################################ rem 1.0 call :testing %h5diff% -h call :tooltest h5diff_10.txt -h rem 1.1 normal mode call :testing %h5diff% %srcfile1% %srcfile2% call :tooltest h5diff_11.txt %file1% %file2% rem 1.2 normal mode with objects call :testing %h5diff% %srcfile1% %srcfile2% g1/dset1 g1/dset2 call :tooltest h5diff_12.txt %file1% %file2% g1/dset1 g1/dset2 rem 1.3 report mode call :testing %h5diff% -r %srcfile1% %srcfile2% call :tooltest h5diff_13.txt -r %file1% %file2% rem 1.4 report mode with objects call :testing %h5diff% -r %srcfile1% %srcfile2% g1/dset1 g1/dset2 call :tooltest h5diff_14.txt -r %file1% %file2% g1/dset1 g1/dset2 rem 1.5 with -d call :testing %h5diff% --report --delta=5 %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_15.txt --report --delta=5 %file1% %file2% g1/dset3 g1/dset4 rem 1.6.1 with -p (int) call :testing %h5diff% -v -p 0.02 %srcfile1% %srcfile1% g1/dset5 g1/dset6 call :tooltest h5diff_16_1.txt -v -p 0.02 %file1% %file1% g1/dset5 g1/dset6 rem 1.6.2 with -p (unsigned long_long) call :testing %h5diff% --verbose --relative=0.02 %srcfile1% %srcfile1% g1/dset7 g1/dset8 call :tooltest h5diff_16_2.txt --verbose --relative=0.02 %file1% %file1% g1/dset7 g1/dset8 rem 1.6.3 with -p (double) call :testing %h5diff% -v -p 0.02 %srcfile1% %srcfile1% g1/dset9 g1/dset10 call :tooltest h5diff_16_3.txt -v -p 0.02 %file1% %file1% g1/dset9 g1/dset10 rem 1.7 verbose mode call :testing %h5diff% -v %srcfile1% %srcfile2% call :tooltest h5diff_17.txt -v %file1% %file2% rem 1.71 test 32-bit INFINITY call :testing %h5diff% -v %srcfile1% %srcfile1% /g1/fp19 /g1/fp19_COPY call :tooltest h5diff_171.txt -v %file1% %file1% /g1/fp19 /g1/fp19_COPY rem 1.72 test 64-bit INFINITY call :testing %h5diff% -v %srcfile1% %srcfile1% /g1/fp20 /g1/fp20_COPY call :tooltest h5diff_172.txt -v %file1% %file1% /g1/fp20 /g1/fp20_COPY rem 1.8 quiet mode call :testing %h5diff% -q %srcfile1% %srcfile2% call :tooltest h5diff_18.txt -q %file1% %file2% rem ######################################################################## rem # not comparable types rem ######################################################################## rem 2.0 call :testing %h5diff% -v %srcfile3% %srcfile3% dset g1 call :tooltest h5diff_20.txt -v %file3% %file3% dset g1 rem 2.1 call :testing %h5diff% -v %srcfile3% %srcfile3% dset l1 call :tooltest h5diff_21.txt -v %file3% %file3% dset l1 rem 2.2 call :testing %h5diff% -v %srcfile3% %srcfile3% dset t1 call :tooltest h5diff_22.txt -v %file3% %file3% dset t1 rem ####################################################################### rem # compare groups, types, links (no differences and differences) rem ####################################################################### rem 2.3 call :testing %h5diff% -v %srcfile3% %srcfile3% g1 g1 call :tooltest h5diff_23.txt -v %file3% %file3% g1 g1 rem 2.4 call :testing %h5diff% -v %srcfile3% %srcfile3% t1 t1 call :tooltest h5diff_24.txt -v %file3% %file3% t1 t1 rem 2.5 call :testing %h5diff% -v %srcfile3% %srcfile3% l1 l1 call :tooltest h5diff_25.txt -v %file3% %file3% l1 l1 rem 2.6 call :testing %h5diff% -v %srcfile3% %srcfile3% g1 g2 call :tooltest h5diff_26.txt -v %file3% %file3% g1 g2 rem 2.7 call :testing %h5diff% -v %srcfile3% %srcfile3% t1 t2 call :tooltest h5diff_27.txt -v %file3% %file3% t1 t2 rem 2.8 call :testing %h5diff% -v %srcfile3% %srcfile3% l1 l2 call :tooltest h5diff_28.txt -v %file3% %file3% l1 l2 rem ######################################################################## rem # Dataset datatypes rem ######################################################################## rem 5.0 call :testing %h5diff% -v %srcfile4% %srcfile4% dset0a dset0b call :tooltest h5diff_50.txt -v %file4% %file4% dset0a dset0b rem 5.1 call :testing %h5diff% -v %srcfile4% %srcfile4% dset1a dset1b call :tooltest h5diff_51.txt -v %file4% %file4% dset1a dset1b rem 5.2 call :testing %h5diff% -v %srcfile4% %srcfile4% dset2a dset2b call :tooltest h5diff_52.txt -v %file4% %file4% dset2a dset2b rem 5.3 call :testing %h5diff% -v %srcfile4% %srcfile4% dset3a dset4b call :tooltest h5diff_53.txt -v %file4% %file4% dset3a dset4b rem 5.4 call :testing %h5diff% -v %srcfile4% %srcfile4% dset4a dset4b call :tooltest h5diff_54.txt -v %file4% %file4% dset4a dset4b rem 5.5 call :testing %h5diff% -v %srcfile4% %srcfile4% dset5a dset5b call :tooltest h5diff_55.txt -v %file4% %file4% dset5a dset5b rem 5.6 call :testing %h5diff% -v %srcfile4% %srcfile4% dset6a dset6b call :tooltest h5diff_56.txt -v %file4% %file4% dset6a dset6b rem 5.7 call :testing %h5diff% -v %srcfile4% %srcfile4% dset7a dset7b call :tooltest h5diff_57.txt -v %file4% %file4% dset7a dset7b rem 5.8 (region reference) call :testing %h5diff% -v %srcfile7% %srcfile8% refreg call :tooltest h5diff_58.txt -v %file7% %file8% refreg rem ######################################################################## rem # Error messages rem ######################################################################## rem 6.0: Check if the command line number of arguments is less than 3 call :testing %h5diff% %srcfile1% call :tooltest h5diff_600.txt %file1% rem 6.1: Check if non-exist object name is specified call :testing %h5diff% %srcfile1% %srcfile1% nono_obj rem SKIP this test as on Wondows legacy specific rem call :tooltest h5diff_601.txt %file1% %file1% nono_obj call :results -SKIP- rem ######################################################################## rem # -d rem ######################################################################## rem 6.3: negative value call :testing %h5diff% -d -4 %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_603.txt -d -4 %file1% %file2% g1/dset3 g1/dset4 rem 6.4: zero call :testing %h5diff% -d 0 %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_604.txt -d 0 %file1% %file2% g1/dset3 g1/dset4 rem 6.5: non number call :testing %h5diff% -d u %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_605.txt -d u %file1% %file2% g1/dset3 g1/dset4 rem 6.6: hexadecimal call :testing %h5diff% -d 0x1 %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_606.txt -d 0x1 %file1% %file2% g1/dset3 g1/dset4 rem 6.7: string call :testing %h5diff% -d ""1"" %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_607.txt -d ""1"" %file1% %file2% g1/dset3 g1/dset4 rem 6.8: repeated option call :testing %h5diff% --use-system-epsilon %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_608.txt --use-system-epsilon %file1% %file2% g1/dset3 g1/dset4 rem 6.9: number larger than biggest difference call :testing %h5diff% -d 200 %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_609.txt -d 200 %file1% %file2% g1/dset3 g1/dset4 rem 6.10: number smaller than smallest difference call :testing %h5diff% -d 1 %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_610.txt -d 1 %file1% %file2% g1/dset3 g1/dset4 rem ######################################################################## rem # -p rem ######################################################################## rem 6.12: negative value call :testing %h5diff% -p -4 %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_612.txt -p -4 %file1% %file2% g1/dset3 g1/dset4 rem 6.13: zero call :testing %h5diff% -p 0 %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_613.txt -p 0 %file1% %file2% g1/dset3 g1/dset4 rem 6.14: non number call :testing %h5diff% -p u %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_614.txt -p u %file1% %file2% g1/dset3 g1/dset4 rem 6.15: hexadecimal call :testing %h5diff% -p 0x1 %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_615.txt -p 0x1 %file1% %file2% g1/dset3 g1/dset4 rem 6.16: string call :testing %h5diff% -p ""0.21"" %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_616.txt -p ""0.21"" %file1% %file2% g1/dset3 g1/dset4 rem 6.17: repeated option call :testing %h5diff% -p 0.21 -p 0.22 %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_617.txt -p 0.21 -p 0.22 %file1% %file2% g1/dset3 g1/dset4 rem 6.18: number larger than biggest difference call :testing %h5diff% -p 2 %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_618.txt -p 2 %file1% %file2% g1/dset3 g1/dset4 rem 6.19: number smaller than smallest difference call :testing %h5diff% -p 0.005 %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_619.txt -p 0.005 %file1% %file2% g1/dset3 g1/dset4 rem ######################################################################## rem # -n rem ######################################################################## rem 6.21: negative value call :testing %h5diff% -n -4 %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_621.txt -n -4 %file1% %file2% g1/dset3 g1/dset4 rem 6.22: zero call :testing %h5diff% -n 0 %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_622.txt -n 0 %file1% %file2% g1/dset3 g1/dset4 rem 6.23: non number call :testing %h5diff% -n u %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_623.txt -n u %file1% %file2% g1/dset3 g1/dset4 rem 6.24: hexadecimal call :testing %h5diff% -n 0x1 %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_624.txt -n 0x1 %file1% %file2% g1/dset3 g1/dset4 rem 6.25: string call :testing %h5diff% -n ""2"" %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_625.txt -n ""2"" %file1% %file2% g1/dset3 g1/dset4 rem 6.26: repeated option call :testing %h5diff% -n 2 -n 3 %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_626.txt -n 2 -n 3 %file1% %file2% g1/dset3 g1/dset4 rem 6.27: number larger than biggest difference call :testing %h5diff% --count=200 %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_627.txt --count=200 %file1% %file2% g1/dset3 g1/dset4 rem 6.28: number smaller than smallest difference call :testing %h5diff% -n 1 %srcfile1% %srcfile2% g1/dset3 g1/dset4 call :tooltest h5diff_628.txt -n 1 %file1% %file2% g1/dset3 g1/dset4 rem This is disabled on *nix platforms rem 6.29 non valid files call :testing %h5diff% file1.h6 file2.h6 call :tooltest h5diff_629.txt file1.h6 file2.h6 rem ###################################################################### rem # NaN rem ###################################################################### rem 6.30: test (NaN == NaN) must be true based on our documentation -- XCAO call :testing %h5diff% -v -d ""0.0001"" %srcfile1% %srcfile1% g1/fp18 g1/fp18_COPY call :tooltest h5diff_630.txt -v -d ""0.0001"" %file1% %file1% g1/fp18 g1/fp18_COPY call :testing %h5diff% -v --use-system-epsilon %srcfile1% %srcfile1% g1/fp18 g1/fp18_COPY call :tooltest h5diff_631.txt -v --use-system-epsilon %file1% %file1% g1/fp18 g1/fp18_COPY rem ######################################################################## rem 7. attributes rem ######################################################################## call :testing %h5diff% -v %srcfile5% %srcfile6% call :tooltest h5diff_70.txt -v %file5% %file6% rem ################################################## rem attrs with verbose option level rem ################################################## call :testing %h5diff% -v1 %srcfile5% %srcfile6% call :tooltest h5diff_700.txt -v1 %file5% %file6% call :testing %h5diff% -v2 %srcfile5% %srcfile6% call :tooltest h5diff_701.txt -v2 %file5% %file6% call :testing %h5diff% --verbose=1 %srcfile5% %srcfile6% call :tooltest h5diff_702.txt --verbose=1 %file5% %file6% call :testing %h5diff% --verbose=2 %srcfile5% %srcfile6% call :tooltest h5diff_703.txt --verbose=2 %file5% %file6% rem same attr number , all same attr name call :testing %h5diff% -v2 %src_ATTR_VERBOSE_LEVEL_FILE1% %src_ATTR_VERBOSE_LEVEL_FILE2% /g call :tooltest h5diff_704.txt -v2 %ATTR_VERBOSE_LEVEL_FILE1% %ATTR_VERBOSE_LEVEL_FILE2% /g rem same attr number , some same attr name call :testing %h5diff% -v2 %src_ATTR_VERBOSE_LEVEL_FILE1% %src_ATTR_VERBOSE_LEVEL_FILE2% /dset call :tooltest h5diff_705.txt -v2 %ATTR_VERBOSE_LEVEL_FILE1% %ATTR_VERBOSE_LEVEL_FILE2% /dset rem same attr number , all different attr name call :testing %h5diff% -v2 %src_ATTR_VERBOSE_LEVEL_FILE1% %src_ATTR_VERBOSE_LEVEL_FILE2% /ntype call :tooltest h5diff_706.txt -v2 %ATTR_VERBOSE_LEVEL_FILE1% %ATTR_VERBOSE_LEVEL_FILE2% /ntype rem different attr number , same attr name (intersected) call :testing %h5diff% -v2 %src_ATTR_VERBOSE_LEVEL_FILE1% %src_ATTR_VERBOSE_LEVEL_FILE2% /g2 call :tooltest h5diff_707.txt -v2 %ATTR_VERBOSE_LEVEL_FILE1% %ATTR_VERBOSE_LEVEL_FILE2% /g2 rem different attr number , all different attr name call :testing %h5diff% -v2 %src_ATTR_VERBOSE_LEVEL_FILE1% %src_ATTR_VERBOSE_LEVEL_FILE2% /g3 call :tooltest h5diff_708.txt -v2 %ATTR_VERBOSE_LEVEL_FILE1% %ATTR_VERBOSE_LEVEL_FILE2% /g3 rem when no attributes exist in both objects call :testing %h5diff% -v2 %src_ATTR_VERBOSE_LEVEL_FILE1% %src_ATTR_VERBOSE_LEVEL_FILE2% /g4 call :tooltest h5diff_709.txt -v2 %ATTR_VERBOSE_LEVEL_FILE1% %ATTR_VERBOSE_LEVEL_FILE2% /g4 rem file vs file call :testing %h5diff% -v2 %src_ATTR_VERBOSE_LEVEL_FILE1% %src_ATTR_VERBOSE_LEVEL_FILE2% call :tooltest h5diff_710.txt -v2 %ATTR_VERBOSE_LEVEL_FILE1% %ATTR_VERBOSE_LEVEL_FILE2% rem ####################################################################### rem 8. all dataset datatypes rem ####################################################################### call :testing %h5diff% -v %srcfile7% %srcfile8% call :tooltest h5diff_80.txt -v %file7% %file8% rem 9. compare a file with itself call :testing %h5diff% -v %srcfile2% %srcfile2% call :tooltest h5diff_90.txt -v %file2% %file2% rem 10. read by hyperslab, print indexes rem ####################################################################### rem Not skipped on windows as this has not been a problem - ADB 1/22/2009 rem if test -n ""$pmode"" -a ""$mydomainname"" = hdfgroup.uiuc.edu; then rem # skip this test which sometimes hangs in some THG machines rem SKIP -v $SRCFILE9 $SRCFILE10 rem else rem ####################################################################### call :testing %h5diff% -v %srcfile9% %srcfile10% call :tooltest h5diff_100.txt -v %file9% %file10% rem fi rem 11. floating point comparison rem Not tested on Windows due to difference in formatting of scientific rem notation (101, 102) --SJW 8/23/07 call :testing %h5diff% -v %srcfile1% %srcfile1% g1/d1 g1/d2 rem call :tooltest h5diff_101.txt -v %file1% %file1% g1/d1 g1/d2 call :results -SKIP- call :testing %h5diff% -v %srcfile1% %srcfile1% g1/fp1 g1/fp2 rem call :tooltest h5diff_102.txt -v %file1% %file1% g1/fp1 g1/fp2 call :results -SKIP- rem Not tested on Windows due to difference in formatting of scientific rem notation with other OS. printf(""%g"") (103, 104) call :testing %h5diff% -v --use-system-epsilon %srcfile1% %srcfile1% g1/d1 g1/d2 rem call :tooltest h5diff_103.txt -v --use-system-epsilon %file1% %file1% g1/d1 g1/d2 call :results -SKIP- call :testing %h5diff% -v --use-system-epsilon %srcfile1% %srcfile1% g1/fp1 g1/fp2 rem call :tooltest h5diff_102.txt -v --use-system-epsilon %file1% %file1% g1/fp1 g1/fp2 call :results -SKIP- rem New option added #1368(E1) - ADB 2/5/2009 rem not compable -c flag call :testing %h5diff% %srcfile2% %srcfile2% g2/dset1 g2/dset2 call :tooltest h5diff_200.txt %file2% %file2% g2/dset1 g2/dset2 call :testing %h5diff% -c %srcfile2% %srcfile2% g2/dset1 g2/dset2 call :tooltest h5diff_201.txt -c %file2% %file2% g2/dset1 g2/dset2 call :testing %h5diff% -c %srcfile2% %srcfile2% g2/dset2 g2/dset3 call :tooltest h5diff_202.txt -c %file2% %file2% g2/dset2 g2/dset3 call :testing %h5diff% -c %srcfile2% %srcfile2% g2/dset3 g2/dset4 call :tooltest h5diff_203.txt -c %file2% %file2% g2/dset3 g2/dset4 call :testing %h5diff% -c %srcfile2% %srcfile2% g2/dset4 g2/dset5 call :tooltest h5diff_204.txt -c %file2% %file2% g2/dset4 g2/dset5 call :testing %h5diff% -c %srcfile2% %srcfile2% g2/dset5 g2/dset6 call :tooltest h5diff_205.txt -c %file2% %file2% g2/dset5 g2/dset6 rem New option added - ADB 2/11/2009 rem # not comparable in compound call :testing %h5diff% -c %srcfile2% %srcfile2% g2/dset7 g2/dset8 call :tooltest h5diff_206.txt -c %file2% %file2% g2/dset7 g2/dset8 call :testing %h5diff% -c %srcfile2% %srcfile2% g2/dset8 g2/dset9 call :tooltest h5diff_207.txt -c %file2% %file2% g2/dset8 g2/dset9 rem ####################################################################### rem # Links compare without --follow-symlinks nor --no-dangling-links rem ####################################################################### rem test for bug1749 call :testing %h5diff% -v %srcfile12% %srcfile12% /link_g1 /link_g2 call :tooltest h5diff_300.txt -v %file12% %file12% /link_g1 /link_g2 rem ####################################################################### rem # Links compare with --follow-symlinks Only rem ####################################################################### rem soft links file to file call :testing %h5diff% --follow-symlinks -v %srcfile13% %srcfile13% call :tooltest h5diff_400.txt --follow-symlinks -v %file13% %file13% rem softlink vs dset"" call :testing %h5diff% --follow-symlinks -v %srcfile13% %srcfile13% /softlink_dset1_1 /target_dset2 call :tooltest h5diff_401.txt --follow-symlinks -v %file13% %file13% /softlink_dset1_1 /target_dset2 rem dset vs softlink"" call :testing %h5diff% --follow-symlinks -v %srcfile13% %srcfile13% /target_dset2 /softlink_dset1_1 call :tooltest h5diff_402.txt --follow-symlinks -v %file13% %file13% /target_dset2 /softlink_dset1_1 rem softlink vs softlink"" call :testing %h5diff% --follow-symlinks -v %srcfile13% %srcfile13% /softlink_dset1_1 /softlink_dset2 call :tooltest h5diff_403.txt --follow-symlinks -v %file13% %file13% /softlink_dset1_1 /softlink_dset2 rem extlink vs extlink (FILE)"" call :testing %h5diff% --follow-symlinks -v %srcfile15% %srcfile15% call :tooltest h5diff_404.txt --follow-symlinks -v %file15% %file15% rem extlink vs dset"" call :testing %h5diff% --follow-symlinks -v %srcfile15% %srcfile16% /ext_link_dset1 /target_group2/x_dset call :tooltest h5diff_405.txt --follow-symlinks -v %file15% %file16% /ext_link_dset1 /target_group2/x_dset rem dset vs extlink"" call :testing %h5diff% --follow-symlinks -v %srcfile16% %srcfile15% /target_group2/x_dset /ext_link_dset1 call :tooltest h5diff_406.txt --follow-symlinks -v %file16% %file15% /target_group2/x_dset /ext_link_dset1 rem extlink vs extlink"" call :testing %h5diff% --follow-symlinks -v %srcfile15% %srcfile15% /ext_link_dset1 /ext_link_dset2 call :tooltest h5diff_407.txt --follow-symlinks -v %file15% %file15% /ext_link_dset1 /ext_link_dset2 rem softlink vs extlink"" call :testing %h5diff% --follow-symlinks -v %srcfile13% %srcfile15% /softlink_dset1_1 /ext_link_dset2 call :tooltest h5diff_408.txt --follow-symlinks -v %file13% %file15% /softlink_dset1_1 /ext_link_dset2 rem extlink vs softlink "" call :testing %h5diff% --follow-symlinks -v %srcfile15% %srcfile13% /ext_link_dset2 /softlink_dset1_1 call :tooltest h5diff_409.txt --follow-symlinks -v %file15% %file13% /ext_link_dset2 /softlink_dset1_1 rem linked_softlink vs linked_softlink (FILE)"" call :testing %h5diff% --follow-symlinks -v %srcfile14% %srcfile14% call :tooltest h5diff_410.txt --follow-symlinks -v %file14% %file14% rem dset2 vs linked_softlink_dset1"" call :testing %h5diff% --follow-symlinks -v %srcfile14% %srcfile14% /target_dset2 /softlink1_to_slink2 call :tooltest h5diff_411.txt --follow-symlinks -v %file14% %file14% /target_dset2 /softlink1_to_slink2 rem rem linked_softlink_dset1 vs dset2"" call :testing %h5diff% --follow-symlinks -v %srcfile14% %srcfile14% /softlink1_to_slink2 /target_dset2 call :tooltest h5diff_412.txt --follow-symlinks -v %file14% %file14% /softlink1_to_slink2 /target_dset2 rem linked_softlink_to_dset1 vs linked_softlink_to_dset2"" call :testing %h5diff% --follow-symlinks -v %srcfile14% %srcfile14% /softlink1_to_slink2 /softlink2_to_slink2 call :tooltest h5diff_413.txt --follow-symlinks -v %file14% %file14% /softlink1_to_slink2 /softlink2_to_slink2 rem group vs linked_softlink_group1"" call :testing %h5diff% --follow-symlinks -v %srcfile14% %srcfile14% /target_group /softlink3_to_slink2 call :tooltest h5diff_414.txt --follow-symlinks -v %file14% %file14% /target_group /softlink3_to_slink2 rem linked_softlink_group1 vs group"" call :testing %h5diff% --follow-symlinks -v %srcfile14% %srcfile14% /softlink3_to_slink2 /target_group call :tooltest h5diff_415.txt --follow-symlinks -v %file14% %file14% /softlink3_to_slink2 /target_group rem linked_softlink_to_group1 vs linked_softlink_to_group2"" call :testing %h5diff% --follow-symlinks -v %srcfile14% %srcfile14% /softlink3_to_slink2 /softlink4_to_slink2 call :tooltest h5diff_416.txt --follow-symlinks -v %file14% %file14% /softlink3_to_slink2 /softlink4_to_slink2 rem non-exist-softlink vs softlink"" call :testing %h5diff% --follow-symlinks -v %srcfile13% %srcfile13% /softlink_noexist /softlink_dset2 call :tooltest h5diff_417.txt --follow-symlinks -v %file13% %file13% /softlink_noexist /softlink_dset2 rem softlink vs non-exist-softlink"" call :testing %h5diff% --follow-symlinks -v %srcfile13% %srcfile13% /softlink_dset2 /softlink_noexist call :tooltest h5diff_418.txt --follow-symlinks -v %file13% %file13% /softlink_dset2 /softlink_noexist rem non-exist-extlink_file vs extlink"" call :testing %h5diff% --follow-symlinks -v %srcfile15% %srcfile15% /ext_link_noexist2 /ext_link_dset2 call :tooltest h5diff_419.txt --follow-symlinks -v %file15% %file15% /ext_link_noexist2 /ext_link_dset2 rem exlink vs non-exist-extlink_file"" call :testing %h5diff% --follow-symlinks -v %srcfile15% %srcfile15% /ext_link_dset2 /ext_link_noexist2 call :tooltest h5diff_420.txt --follow-symlinks -v %file15% %file15% /ext_link_dset2 /ext_link_noexist2 rem extlink vs non-exist-extlink_obj"" call :testing %h5diff% --follow-symlinks -v %srcfile15% %srcfile15% /ext_link_dset2 /ext_link_noexist1 call :tooltest h5diff_421.txt --follow-symlinks -v %file15% %file15% /ext_link_dset2 /ext_link_noexist1 rem non-exist-extlink_obj vs extlink"" call :testing %h5diff% --follow-symlinks -v %srcfile15% %srcfile15% /ext_link_noexist1 /ext_link_dset2 call :tooltest h5diff_422.txt --follow-symlinks -v %file15% %file15% /ext_link_noexist1 /ext_link_dset2 rem extlink_to_softlink_to_dset1 vs dset2"" call :testing %h5diff% --follow-symlinks -v %srcfile17% %srcfile18% /ext_link_to_slink1 /dset2 call :tooltest h5diff_423.txt --follow-symlinks -v %file17% %file18% /ext_link_to_slink1 /dset2 rem dset2 vs extlink_to_softlink_to_dset1"" call :testing %h5diff% --follow-symlinks -v %srcfile18% %srcfile17% /dset2 /ext_link_to_slink1 call :tooltest h5diff_424.txt --follow-symlinks -v %file18% %file17% /dset2 /ext_link_to_slink1 rem extlink_to_softlink_to_dset1 vs extlink_to_softlink_to_dset2"" call :testing %h5diff% --follow-symlinks -v %srcfile17% %srcfile17% /ext_link_to_slink1 /ext_link_to_slink2 call :tooltest h5diff_425.txt --follow-symlinks -v %file17% %file17% /ext_link_to_slink1 /ext_link_to_slink2 rem ####################################################################### rem # Dangling links compare (--follow-symlinks and --no-dangling-links) rem ####################################################################### rem dangling links --follow-symlinks (FILE to FILE) call :testing %h5diff% --follow-symlinks -v %srclnkfile1% %srclnkfile2% call :tooltest h5diff_450.txt --follow-symlinks -v %lnkfile1% %lnkfile2% rem dangling links --follow-symlinks and --no-dangling-links (FILE to FILE) call :testing %h5diff% --follow-symlinks -v --no-dangling-links %srclnkfile1% %srclnkfile2% call :tooltest h5diff_451.txt --follow-symlinks -v --no-dangling-links %lnkfile1% %lnkfile2% rem try --no-dangling-links without --follow-symlinks options call :testing %h5diff% --no-dangling-links %srcfile13% %srcfile13% call :tooltest h5diff_452.txt --no-dangling-links %file13% %file13% rem dangling link found for soft links (FILE to FILE) call :testing %h5diff% --follow-symlinks -v --no-dangling-links %srcfile13% %srcfile13% call :tooltest h5diff_453.txt --follow-symlinks -v --no-dangling-links %file13% %file13% rem dangling link found for soft links (obj to obj) call :testing %h5diff% --follow-symlinks -v --no-dangling-links %srcfile13% %srcfile13% /softlink_dset2 /softlink_noexist call :tooltest h5diff_454.txt --follow-symlinks -v --no-dangling-links %file13% %file13% /softlink_dset2 /softlink_noexist rem dangling link found for soft links (obj to obj) Both dangle links call :testing %h5diff% --follow-symlinks -v --no-dangling-links %srcfile13% %srcfile13% /softlink_noexist /softlink_noexist call :tooltest h5diff_455.txt --follow-symlinks -v --no-dangling-links %file13% %file13% /softlink_noexist /softlink_noexist rem dangling link found for ext links (FILE to FILE) call :testing %h5diff% --follow-symlinks -v --no-dangling-links %srcfile15% %srcfile15% call :tooltest h5diff_456.txt --follow-symlinks -v --no-dangling-links %file15% %file15% rem dangling link found for ext links (obj to obj). target file exist call :testing %h5diff% --follow-symlinks -v --no-dangling-links %srcfile15% %srcfile15% /ext_link_dset1 /ext_link_noexist1 call :tooltest h5diff_457.txt --follow-symlinks -v --no-dangling-links %file15% %file15% /ext_link_dset1 /ext_link_noexist1 rem dangling link found for ext links (obj to obj). target file NOT exist call :testing %h5diff% --follow-symlinks -v --no-dangling-links %srcfile15% %srcfile15% /ext_link_dset1 /ext_link_noexist2 call :tooltest h5diff_458.txt --follow-symlinks -v --no-dangling-links %file15% %file15% /ext_link_dset1 /ext_link_noexist2 rem dangling link found for ext links (obj to obj). Both dangle links call :testing %h5diff% --follow-symlinks -v --no-dangling-links %srcfile15% %srcfile15% /ext_link_noexist1 /ext_link_noexist2 call :tooltest h5diff_459.txt --follow-symlinks -v --no-dangling-links %file15% %file15% /ext_link_noexist1 /ext_link_noexist2 rem ######################################################################## rem # test for group diff recursivly rem ######################################################################## rem root call :testing %h5diff% -v %src_grp_recurse1% %src_grp_recurse2% / / call :tooltest h5diff_500.txt -v %grp_recurse1% %grp_recurse2% / / call :testing %h5diff% -v --follow-symlinks %src_grp_recurse1% %src_grp_recurse2% / / call :tooltest h5diff_501.txt -v --follow-symlinks %grp_recurse1% %grp_recurse2% / / rem root vs group call :testing %h5diff% -v %src_grp_recurse1% %src_grp_recurse2% / /grp1/grp2/grp3 call :tooltest h5diff_502.txt -v %grp_recurse1% %grp_recurse2% / /grp1/grp2/grp3 rem group vs group (same name and structure) call :testing %h5diff% -v %src_grp_recurse1% %src_grp_recurse2% /grp1 /grp1 call :tooltest h5diff_503.txt -v %grp_recurse1% %grp_recurse2% /grp1 /grp1 rem group vs group (different name and structure) call :testing %h5diff% -v %src_grp_recurse1% %src_grp_recurse2% /grp1/grp2 /grp1/grp2/grp3 call :tooltest h5diff_504.txt -v %grp_recurse1% %grp_recurse2% /grp1/grp2 /grp1/grp2/grp3 rem groups vs soft-link call :testing %h5diff% call :tooltest h5diff_505.txt -v %grp_recurse1% %grp_recurse2% /grp1 /slink_grp1 call :testing %h5diff% -v --follow-symlinks %src_grp_recurse1% %src_grp_recurse2% /grp1/grp2 /slink_grp2 call :tooltest h5diff_506.txt -v --follow-symlinks %grp_recurse1% %grp_recurse2% /grp1/grp2 /slink_grp2 rem groups vs ext-link call :testing %h5diff% -v %src_grp_recurse1% %src_grp_recurse2% /grp1 /elink_grp1 call :tooltest h5diff_507.txt -v %grp_recurse1% %grp_recurse2% /grp1 /elink_grp1 call :testing %h5diff% -v --follow-symlinks %src_grp_recurse1% %src_grp_recurse2% /grp1 /elink_grp1 call :tooltest h5diff_508.txt -v --follow-symlinks %grp_recurse1% %grp_recurse2% /grp1 /elink_grp1 rem soft-link vs ext-link call :testing %h5diff% -v %src_grp_recurse1% %src_grp_recurse2% /slink_grp1 /elink_grp1 call :tooltest h5diff_509.txt -v %grp_recurse1% %grp_recurse2% /slink_grp1 /elink_grp1 call :testing %h5diff% -v --follow-symlinks %src_grp_recurse1% %src_grp_recurse2% /slink_grp1 /elink_grp1 call :tooltest h5diff_510.txt -v --follow-symlinks %grp_recurse1% %grp_recurse2% /slink_grp1 /elink_grp1 rem circled ext links call :testing %h5diff% -v %src_grp_recurse1% %src_grp_recurse2% /grp10 /grp11 call :tooltest h5diff_511.txt -v %grp_recurse1% %grp_recurse2% /grp10 /grp11 call :testing %h5diff% -v --follow-symlinks %src_grp_recurse1% %src_grp_recurse2% /grp10 /grp11 call :tooltest h5diff_512.txt -v --follow-symlinks %grp_recurse1% %grp_recurse2% /grp10 /grp11 rem circled soft2ext-link vs soft2ext-link call :testing %h5diff% -v %src_grp_recurse1% %src_grp_recurse2% /slink_grp10 /slink_grp11 call :tooltest h5diff_513.txt -v %grp_recurse1% %grp_recurse2% /slink_grp10 /slink_grp11 call :testing %h5diff% -v --follow-symlinks %src_grp_recurse1% %src_grp_recurse2% /slink_grp10 /slink_grp11 call :tooltest h5diff_514.txt -v --follow-symlinks %grp_recurse1% %grp_recurse2% /slink_grp10 /slink_grp11 rem ###################################################################### rem # Test for group recursive diff via multi-linked external links rem # With follow-symlinks, file $GRP_RECURSE1_EXT and $GRP_RECURSE2_EXT1 rem # should be same with the external links. rem ###################################################################### rem file vs file call :testing %h5diff% -v %src_grp_recurse1_ext% %src_grp_recurse2_ext1% call :tooltest h5diff_515.txt -v %grp_recurse1_ext% %grp_recurse2_ext1% call :testing %h5diff% -v --follow-symlinks %src_grp_recurse1_ext% %src_grp_recurse2_ext1% call :tooltest h5diff_516.txt -v --follow-symlinks %grp_recurse1_ext% %grp_recurse2_ext1% rem group vs group call :testing %h5diff% -v %src_grp_recurse1_ext% %src_grp_recurse2_ext1% /g1 call :tooltest h5diff_517.txt -v %grp_recurse1_ext% %grp_recurse2_ext1% /g1 call :testing %h5diff% -v --follow-symlinks %src_grp_recurse1_ext% %src_grp_recurse2_ext1% /g1 call :tooltest h5diff_518.txt -v --follow-symlinks %grp_recurse1_ext% %grp_recurse2_ext1% /g1 rem ####################################################################### rem # Exclude objects (--exclude-path) rem ####################################################################### rem #------------------------------------------------- rem # Same structure, same names and different value. rem Exclude the object with different value. Expect return - same call :testing %h5diff% -v --exclude-path /group1/dset3 %srcexclude1_1% %srcexclude1_2% call :tooltest h5diff_480.txt -v --exclude-path /group1/dset3 %exclude1_1% %exclude1_2% rem Verify different by not excluding. Expect return - diff call :testing %h5diff% -v %srcexclude1_1% %srcexclude1_2% call :tooltest h5diff_481.txt -v %exclude1_1% %exclude1_2% rem #---------------------------------------- rem # Different structure, different names. rem Exclude all the different objects. Expect return - same call :testing %h5diff% -v --exclude-path ""/group1"" --exclude-path ""/dset1"" %srcexclude2_1% %srcexclude2_2% call :tooltest h5diff_482.txt -v --exclude-path ""/group1"" --exclude-path ""/dset1"" %exclude2_1% %exclude2_2% rem Exclude only some different objects. Expect return - diff call :testing %h5diff% -v --exclude-path ""/group1"" %srcexclude2_1% %srcexclude2_2% call :tooltest h5diff_483.txt -v --exclude-path ""/group1"" %exclude2_1% %exclude2_2% rem Exclude from group compare call :testing %h5diff% -v --exclude-path ""/dset3"" %srcexclude1_1% %srcexclude1_2% /group1 call :tooltest h5diff_484.txt -v --exclude-path ""/dset3"" %exclude1_1% %exclude1_2% /group1 rem ####################################################################### rem # diff various multiple vlen and fixed strings in a compound type dataset rem ####################################################################### call :testing %h5diff% -v %src_comp_vl_strs% %src_comp_vl_strs% /group /group_copy call :tooltest h5diff_530.txt -v %comp_vl_strs% %comp_vl_strs% /group /group_copy rem # ##################################################################### rem # # Test container types (array,vlen) with multiple nested compound types rem # # Complex compound types in dataset and attribute rem # ##################################################################### call :testing %h5diff% -v %src_COMPS_ARRAY_VLEN1% %src_COMPS_ARRAY_VLEN2% call :tooltest h5diff_540.txt -v %COMPS_ARRAY_VLEN1% %COMPS_ARRAY_VLEN2% rem ####################################################################### rem # Test mutually exclusive options rem ####################################################################### rem ------------------------------------------------------ rem Test with -d , -p and --use-system-epsilon. call :testing %h5diff% -v -d 5 -p 0.05 --use-system-epsilon %srcfile1% %srcfile2% /g1/dset3 /g1/dset4 call :tooltest h5diff_640.txt -v -d 5 -p 0.05 --use-system-epsilon %file1% %file2% /g1/dset3 /g1/dset4 call :testing %h5diff% -v -d 5 -p 0.05 %srcfile1% %srcfile2% /g1/dset3 /g1/dset4 call :tooltest h5diff_641.txt -v -d 5 -p 0.05 %file1% %file2% /g1/dset3 /g1/dset4 call :testing %h5diff% -v -p 0.05 -d 5 %srcfile1% %srcfile2% /g1/dset3 /g1/dset4 call :tooltest h5diff_642.txt -v -p 0.05 -d 5 %file1% %file2% /g1/dset3 /g1/dset4 call :testing %h5diff% -v -d 5 --use-system-epsilon %srcfile1% %srcfile2% /g1/dset3 /g1/dset4 call :tooltest h5diff_643.txt -v -d 5 --use-system-epsilon %file1% %file2% /g1/dset3 /g1/dset4 call :testing %h5diff% -v --use-system-epsilon -d 5 %srcfile1% %srcfile2% /g1/dset3 /g1/dset4 call :tooltest h5diff_644.txt -v --use-system-epsilon -d 5 %file1% %file2% /g1/dset3 /g1/dset4 call :testing %h5diff% -v -p 0.05 --use-system-epsilon %srcfile1% %srcfile2% /g1/dset3 /g1/dset4 call :tooltest h5diff_645.txt -v -p 0.05 --use-system-epsilon %file1% %file2% /g1/dset3 /g1/dset4 call :testing %h5diff% -v --use-system-epsilon -p 0.05 %srcfile1% %srcfile2% /g1/dset3 /g1/dset4 call :tooltest h5diff_646.txt -v --use-system-epsilon -p 0.05 %file1% %file2% /g1/dset3 /g1/dset4 rem ####################################################################### rem # END rem ####################################################################### if %nerrors% equ 0 ( echo.All %h5diff% tests passed. ) popd endlocal & exit /b %nerrors% ",16139,True,3716.2372734886844,median "@echo off set VERSION=4.0 set FILETYPE=.bat @REM Adds colours (very pretty) Set _fBlack= Set _bBlack= Set _fRed= Set _bRed= Set _fGreen= Set _bGreen= Set _fYellow= Set _bYellow= Set _fBlue= Set _bBlue= Set _fMag= Set _bMag= Set _fCyan= Set _bCyan= Set _fLGray= Set _bLGray= Set _fDGray= Set _bDGray= Set _fBRed= Set _bBRed= Set _fBGreen= Set _bBGreen= Set _fBYellow= Set _bBYellow= Set _fBBlue= Set _bBBlue= Set _fBMag= Set _bBMag= Set _fBCyan= Set _bBCyan= Set _fBWhite= Set _bBWhite= Set _RESET= @REM Some stuff brought over from chat.bat if ""%1"" NEQ ""1"" goto :FAIL set NAME=%2 set NAME=%NAME:-= % set %h_NAME%=%4 set h_ADMIN=%5 set /a NICKED=0 set /a CHATASED=0 if %3==TRUE ( set ADMIN=TRUE ) ELSE ( set ADMIN=FALSE ) goto :CHATJOIN pause @REM If user did not run chat.bat :FAIL cls title NOT AUTHORIZED color 4 echo %_fRed%%_bRed%////////////////////// echo /%_bBlack% NOT AUTHORIZED %_bRed%/ echo /%_bBlack% RUN ""chat%FILETYPE%"" %_bRed%/ echo //////////////////////%_RESET% echo  echo %DATE% %TIME% ^>^> %USERNAME% Has tried to access type%FILETYPE% without running chat%FILETYPE% >>logs.log timeout /t 5 /nobreak >nul exit @REM Announces that you joined the chat :CHATJOIN echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) Joined the chat >> logs.log echo %_fblue%%DATE% %TIME% %_fRed%^>^> %_fBGreen%%NAME%%_RESET% Joined the chat >> chat.log @REM Main chat :CHAT @REM Checks if you are banned if exist ""users\\%h_NAME%.ban"" goto :BANNED if exist ""users\\%USERNAME%.ban"" goto :BANNED cls @REM Adds title if ""%ADMIN%"" NEQ ""TRUE"" ( title TYPE HERE %NAME% - Type /help to see a list of commands ) if ""%ADMIN%""==""TRUE"" ( title TYPE HERE %NAME% - Type /help to see a list of commands - ADMIN MODE - ) color 7 set /p TEXT=^>^> @REM Another ban check if exist ""users\\%h_NAME%.ban"" goto :BANNED if exist ""users\\%USERNAME%.ban"" goto :BANNED if ""%TEXT%""=="""" goto :CHAT @REM Bad words set ""text=%text:nigger=******%"" set ""text=%text:faggot=******%"" set ""text=%text:bitch=*****%"" set ""text=%text:whore=*****%"" set ""text=%text:homo=****%"" set ""text=%text:fag=***%"" set ""text=%text:cunt=****%"" @REM Commands if ""%TEXT%""==""/help"" goto :help if ""%TEXT%""==""/info"" goto :info if ""%TEXT%""==""/logs"" goto :logs if ""%TEXT%""==""/chatfile"" goto :chatfile if ""%TEXT%""==""/clearchat"" goto :clear if ""%TEXT%""==""/clearlogs"" goto :clearl if ""%TEXT%""==""/logout"" goto :quit if ""%TEXT%""==""/bans"" goto :BANLIST if ""%TEXT%""==""/slogout"" goto :squit if ""%TEXT%""==""/changepassword"" goto :CHANGEPASSWORD if ""%TEXT%""==""/deleteaccount"" goto :deleteaccount @REM if ""%TEXT%""==""/debug"" goto :debug if NOT ""%TEXT%""==""%TEXT:/chatas=%"" goto :chatas if NOT ""%TEXT%""==""%TEXT:/ad=%"" goto :ad if NOT ""%TEXT%""==""%TEXT:/nick=%"" goto :nick if NOT ""%TEXT%""==""%TEXT:/ban=%"" goto :ban if NOT ""%TEXT%""==""%TEXT:/unban=%"" goto :unban if NOT ""%TEXT%""==""%TEXT:/pcban=%"" goto :pcban if NOT ""%TEXT%""==""%TEXT:/unpcban=%"" goto :UNPCBAN if NOT ""%TEXT%""==""%TEXT:/terminate=%"" goto :TERMINATE if NOT ""%TEXT%""==""%TEXT:/promote=%"" goto :PROMOTE if NOT ""%TEXT%""==""%TEXT:/demote=%"" goto :DEMOTE @REM Sends message echo ^<%_fbGreen%%NAME%%_RESET%^> %TEXT% >> chat.log set TEXT= echo %_fBGreen%%_fBGreen%Message sent%_RESET%%_RESET% timeout /t 2 /nobreak >nul goto :CHAT if %CHATASED%==1 goto :CHATASLOOP @REM List of commands :help cls title /help echo %_fBGreen%Commands:%_RESET% echo %_fBBlue%/help %_fRed%- %_RESET%Brings up this menu echo %_fBBlue%/info %_fRed%- %_RESET%Gives you some info echo %_fBBlue%/logout %_fRed%- %_RESET%Go's back the login page echo %_fBBlue%/nick (NCIKNAME) %_fRed%- %_RESET%Set a nickname echo %_fBBlue%/changepassword %_fRed%- %_RESET%Menu to change your password echo %_fBBlue%/deleteaccount %_fRed%- %_RESET%Deletes your account if %NICKED%==1 echo /back %_fRed%- %_RESET%Removes your nickname if ""%ADMIN%""==""TRUE"" echo. if ""%ADMIN%""==""TRUE"" echo %_fBGreen%ADMIN COMMANDS:%_RESET% if ""%ADMIN%""==""TRUE"" echo %_fBBlue%/logs %_fRed%- %_RESET%This will show you the every command a user uses, every time someone logs in or our and more. if ""%ADMIN%""==""TRUE"" echo %_fBBlue%/chatfile %_fRed%- %_RESET%This will open the file where the chat is stored ^(chat.log^). if ""%ADMIN%""==""TRUE"" echo %_fBBlue%/chatas (NAME) %_fRed%- %_RESET%Chat with a set username. if ""%ADMIN%""==""TRUE"" echo %_fBBlue%/ad (TEXT) %_fRed%- %_RESET%Advertise something in chat. if ""%ADMIN%""==""TRUE"" echo %_fBBlue%/clearchat %_fRed%- %_RESET%This will clear the chat. if ""%ADMIN%""==""TRUE"" echo %_fBBlue%/clearlogs %_fRed%- %_RESET%This will clear the logs. if ""%ADMIN%""==""TRUE"" echo %_fBBlue%/slogout %_fRed%- %_RESET%Same as /logout but it does not say it in chat. if ""%ADMIN%""==""TRUE"" echo %_fBBlue%/ban %_fRed%- %_RESET%Bans user account. if ""%ADMIN%""==""TRUE"" echo %_fBBlue%/unban %_fRed%- %_RESET%Unbans user account. if ""%ADMIN%""==""TRUE"" echo %_fBBlue%/pcban %_fRed%- %_RESET%Bans person with matching PC username. if ""%ADMIN%""==""TRUE"" echo %_fBBlue%/unpcban %_fRed%- %_RESET%unbans person with matching PC username. if ""%ADMIN%""==""TRUE"" echo %_fBBlue%/bans %_fRed%- %_RESET%Shows a list off all banned accounts if ""%ADMIN%""==""TRUE"" echo %_fBBlue%/terminate %_fRed%- %_RESET%Deletes an account. @REM if ""%ADMIN%""==""TRUE"" echo %_fBBlue%/debug %_fRed%- %_RESET%Creates or removes debug.bat which when run will log you into an account called test instantly. if ""%ADMIN%""==""TRUE"" echo %_fBBlue%/promote (NAME) %_fRed%- %_RESET%Gives the user admin permissions if ""%ADMIN%""==""TRUE"" echo %_fBBlue%/demote (NAME) %_fRed%- %_RESET%revokes the users admin permissions if ""%ADMIN%""==""TRUE"" echo. if ""%ADMIN%""==""TRUE"" echo In the logs, any name with an * before it means it is the account name, not the computer name. echo. echo %_fBGreen%Press any key to go back%_RESET% pause>nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT @REM Info on the program :info title /info echo %_fGreen%VERSION: %_fRed%%VERSION% echo %_fblue%Made by Immortal Terror echo. echo %_fbgreen%How do I use this?%_RESET% echo Just make an account, login, and start talking! echo. echo %_fbgreen%What commands are there?%_RESET% echo Type ""/help"" to see a list of commands. echo. echo %_fbgreen%Can someone get my accounts password?%_RESET% echo It is practically impossible for someone to get your password as they are hashed with sha256. Only way they could get it is with brute force. echo. echo %_fbgreen%I have found a bug or an issue, what do I do?%_RESET% echo If you find any sort of bug, please open an issue on the github page. I will fix it as fast as I can. echo. echo %_fbgreen%Where can i suggest a feature?%_RESET% echo Anywhere really. But either on Github or Discord would be the best. echo. echo %_fGreen%Press any key to go back%_RESET% pause>nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT @REM quits the type window and says it in chat :quit cls title /logout echo %_fRed%are you sure you want to logout?%_RESET% choice if %ERRORLEVEL%==2 ( if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) echo %_fblue%%DATE% %TIME% %_fRed%^>^> %_fbGreen%%NAME%%_RESET% Logged out >> chat.log echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) Logged out >> logs.log echo. >%TEMP%\\CHATLOGOUT.tmp exit @REM Silent logout. it's called ""squit"" because its a repurposed old command :squit if ""%ADMIN%"" NEQ ""TRUE"" ( echo ^<%_fbgreen%%NAME%%_RESET%^> /slogout >> chat.log cls echo ^>^>/slogout echo %_fBGreen%Message sent%_RESET% timeout /t 2 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls title /logout (SILENT) echo %_fRed%are you sure you want to logout?%_RESET% choice if %ERRORLEVEL%==2 ( if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) Logged out silently >> logs.log echo. >C:\\Users\\%USERNAME%\\AppData\\Local\\Temp\\CHATLOGOUT.tmp exit @REM Brings up the logs from logs.log, admin only :logs if ""%ADMIN%"" NEQ ""TRUE"" ( echo ^<%_fbgreen%%NAME%%_RESET%^> /logs >> chat.log cls echo ^>^>/logs echo %_fBGreen%Message sent%_RESET% timeout /t 2 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls title LOGS :LOGSLOOP cls echo %_fblue%Logs:%_RESET% echo. if exist logs.log type logs.log echo. echo. echo %_fbGreen%Press any key to go back echo Press %_bBWhite%%_fBlack%""r""%_RESET%%_fbGreen% to refresh%_RESET% choice /c r1234567890qwetyuiopasdfghjklzxcvbnm >nul if %ERRORLEVEL%==1 goto :LOGSLOOP if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT @REM Opens the chat file (chat.log), admin only :chatfile if ""%ADMIN%"" NEQ ""TRUE"" ( echo ^<%_fbgreen%%NAME%%_RESET%^> /chatfile >> chat.log cls echo ^>^>/chatfile echo %_fBGreen%Message sent%_RESET% timeout /t 2 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls echo Opened %_fblue%chat.log%_RESET% echo %_fGreen%Close %_fblue%chat.log%_fGreen% to go back%_RESET% echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) opened chat file >>logs.log call chat.log if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT @REM Clears chat.log :clear if ""%ADMIN%"" NEQ ""TRUE"" ( echo ^<%_fbgreen%%NAME%%_RESET%^> /clearchat >> chat.log cls echo ^>^>/clearchat echo %_fBGreen%Message sent%_RESET% timeout /t 2 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls title CHAT CLEAR MENU echo %_fRed%%_bRed%////////////////////////////////////////// echo /%_bBlack% ARE YOU SURE YOU WANT TO CONTINUE? %_bRed%/ echo //////////////////////////////////////////%_RESET% echo  choice if %ERRORLEVEL%==2 ( if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls echo %_fblue%Clearing chat.log...%_RESET% echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) cleared the chat >> logs.log timeout /t 3 /nobreak >nul del /q chat.log color 7 cls echo %_fGreen%Cleared chat.log%_RESET% echo. TIMEOUT /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT @REM Clears logs.log, admin only :clearl if ""%ADMIN%"" NEQ ""TRUE"" ( echo ^<%_fbgreen%%NAME%%_RESET%^> /clearlogs >> chat.log cls echo ^>^>/clearlogs echo %_fBGreen%Message sent%_RESET% timeout /t 2 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls title LOGS CLEAR MENU color 4 echo %_fRed%%_bRed%////////////////////////////////////////// echo /%_bBlack% ARE YOU SURE YOU WANT TO CONTINUE? %_bRed%/ echo //////////////////////////////////////////%_RESET% echo  choice if %ERRORLEVEL%==2 ( if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls echo %_fblue%Clearing logs.log...%_RESET% timeout /t 3 /nobreak >nul del /q logs.log color 7 cls echo %_fGreen%Cleared logs.log%_RESET% echo. TIMEOUT /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT @REM chat with a chosen username, admin only :chatas if ""%ADMIN%"" NEQ ""TRUE"" ( echo ^<%_fbgreen%%NAME%%_RESET%^> %TEXT%% >> chat.log cls echo ^>^>%TEXT% echo %_fBGreen%Message sent%_RESET% timeout /t 2 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls set CHATASN=%TEXT% if ""%CHATASN%""==""/chatas"" ( cls title /chatas color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) set CHATASN=%CHATASN:/chatas =% if ""%CHATASN%""=="""" ( cls title /chatas color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) set CHATAS name to %CHATASN% >>logs.log set /a CHATASED=1 @REM clone of the main chat, but with your CHATAS nickname :CHATASLOOP if exist ""users\\%h_NAME%.ban"" goto :BANNED if exist ""users\\%USERNAME%.ban"" goto :BANNED cls title Chatting as %CHATASN% - Type /back to go back - Type /help to see a list of commands color 7 set /p TEXT=^>^> if exist ""users\\%h_NAME%.ban"" goto :BANNED if exist ""users\\%USERNAME%.ban"" goto :BANNED if ""%TEXT%""=="""" goto :CHATASLOOP @REM Bad words set ""text=%text:nigger=******%"" set ""text=%text:faggot=******%"" set ""text=%text:bitch=*****%"" set ""text=%text:whore=*****%"" set ""text=%text:homo=****%"" set ""text=%text:fag=***%"" set ""text=%text:cunt=****%"" @REM Commands if ""%TEXT%""==""/help"" goto :help if ""%TEXT%""==""/info"" goto :info if ""%TEXT%""==""/logs"" goto :logs if ""%TEXT%""==""/chatfile"" goto :chatfile if ""%TEXT%""==""/clearchat"" goto :clear if ""%TEXT%""==""/clearlogs"" goto :clearl if ""%TEXT%""==""/logout"" goto :quit if ""%TEXT%""==""/bans"" goto :BANLIST if ""%TEXT%""==""/slogout"" goto :squit if ""%TEXT%""==""/changepassword"" goto :CHANGEPASSWORD if ""%TEXT%""==""/deleteaccount"" goto :deleteaccount @REM if ""%TEXT%""==""/debug"" goto :debug if NOT ""%TEXT%""==""%TEXT:/chatas=%"" goto :chatas if NOT ""%TEXT%""==""%TEXT:/ad=%"" goto :ad if NOT ""%TEXT%""==""%TEXT:/nick=%"" goto :nick if NOT ""%TEXT%""==""%TEXT:/ban=%"" goto :ban if NOT ""%TEXT%""==""%TEXT:/unban=%"" goto :unban if NOT ""%TEXT%""==""%TEXT:/pcban=%"" goto :pcban if NOT ""%TEXT%""==""%TEXT:/unpcban=%"" goto :UNPCBAN if NOT ""%TEXT%""==""%TEXT:/terminate=%"" goto :TERMINATE if NOT ""%TEXT%""==""%TEXT:/promote=%"" goto :PROMOTE if NOT ""%TEXT%""==""%TEXT:/demote=%"" goto :DEMOTE if ""%TEXT%""==""/back"" goto :UNCHATAS echo ^<%_fbgreen%%CHATASN%%_RESET%^> %TEXT% >> chat.log echo %_fBGreen%Message sent%_RESET% timeout /t 2 /nobreak >nul goto :CHATASLOOP @REM Removes chatas name :UNCHATAS cls echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) Stopped chatting as %CHATASN% >>logs.log set CHATASN="""" set /a CHATASED=0 if %NICKED%==1 goto :NCHAT goto :CHAT @REM Advertises something, >> looks like this <<, admin only :ad if ""%ADMIN%"" NEQ ""TRUE"" ( echo ^<%_fbgreen%%NAME%%_RESET%^> %TEXT% >> chat.log cls echo ^>^>%TEXT% echo %_fBGreen%Message sent%_RESET% timeout /t 2 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls title ADVERTISE set ADVERT=%TEXT% if ""%ADVERT%""==""/ad"" ( cls color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) set ADVERT=%ADVERT:/ad =% if ""%ADVERT%""=="""" ( cls color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) echo %_fRed%^>^> %_fbgreen%%ADVERT% %_fRed%^<^<%_RESET%>>chat.log echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) advertised ""%ADVERT%"">>logs.log cls echo %_fGreen%Advert sent%_RESET% timeout /t 2 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT @REM Sets your nickname :nick cls title /nick set NICK=%TEXT% if ""%NICK%""==""/nick"" ( cls color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul set /a NICKED=0 goto :CHAT ) set NICK=%NICK:/nick =% if ""%NICK%""=="""" ( cls color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul set /a NICKED=0 goto :CHAT ) set /a NICKED=1 echo %_fblue%%DATE% %TIME% %_fRed%^>^> %_fbgreen%%NAME%%_RESET% has set there nickname to ""%_fGreen%%NICK%%_RESET%"" >> chat.log echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) has set there nickname to ""%NICK%"" >> logs.log cls echo Nickname is now %_fGreen%%NICK%%_RESET% timeout /t 2 /nobreak >nul cls @REM clone of main chat but for nicked users :NCHAT if exist ""users\\%h_NAME%.ban"" goto :BANNED if exist ""users\\%USERNAME%.ban"" goto :BANNED cls if ""%ADMIN%"" NEQ ""TRUE"" title TYPE HERE %NAME% - Nickname: %NICK% - Type /back to go back - Type /help to see a list of commands if ""%ADMIN%""==""TRUE"" title TYPE HERE %NAME% - Nickname: %NICK% - Type /back to go back - Type /help to see a list of commands - ADMIN MODE - color 7 set /p TEXT=^>^> if ""%TEXT%""=="""" goto :NCHAT @REM Bad words set ""text=%text:nigger=******%"" set ""text=%text:faggot=******%"" set ""text=%text:bitch=*****%"" set ""text=%text:whore=*****%"" set ""text=%text:homo=****%"" set ""text=%text:fag=***%"" set ""text=%text:cunt=****%"" if exist ""users\\%h_NAME%.ban"" goto :BANNED if exist ""users\\%USERNAME%.ban"" goto :BANNED @REM Commands if ""%TEXT%""==""/help"" goto :help if ""%TEXT%""==""/info"" goto :info if ""%TEXT%""==""/logs"" goto :logs if ""%TEXT%""==""/chatfile"" goto :chatfile if ""%TEXT%""==""/clearchat"" goto :clear if ""%TEXT%""==""/clearlogs"" goto :clearl if ""%TEXT%""==""/logout"" goto :quit if ""%TEXT%""==""/bans"" goto :BANLIST if ""%TEXT%""==""/slogout"" goto :squit if ""%TEXT%""==""/changepassword"" goto :CHANGEPASSWORD if ""%TEXT%""==""/deleteaccount"" goto :deleteaccount @REM if ""%TEXT%""==""/debug"" goto :debug if NOT ""%TEXT%""==""%TEXT:/chatas=%"" goto :chatas if NOT ""%TEXT%""==""%TEXT:/ad=%"" goto :ad if NOT ""%TEXT%""==""%TEXT:/nick=%"" goto :nick if NOT ""%TEXT%""==""%TEXT:/ban=%"" goto :ban if NOT ""%TEXT%""==""%TEXT:/unban=%"" goto :unban if NOT ""%TEXT%""==""%TEXT:/pcban=%"" goto :pcban if NOT ""%TEXT%""==""%TEXT:/unpcban=%"" goto :UNPCBAN if NOT ""%TEXT%""==""%TEXT:/terminate=%"" goto :TERMINATE if NOT ""%TEXT%""==""%TEXT:/promote=%"" goto :PROMOTE if NOT ""%TEXT%""==""%TEXT:/demote=%"" goto :DEMOTE if ""%TEXT%""==""/back"" goto :UNNICK if ""%TEXT%""==""/dino"" goto :easter_ehg echo ^<%_fGreen%%NICK%%_RESET%^> %TEXT% >> chat.log set TEXT= echo %_fBGreen%Message sent%_RESET% timeout /t 2 /nobreak >nul goto :NCHAT @REM removes nickname :unnick cls title unnick echo %_fRed%Nickname removed%_RESET% echo %_fblue%%DATE% %TIME% %_fRed%^>^> %_fGreen%%NICK%%_RESET% (%_fbgreen%%NAME%%_RESET%) Removed there nickname >>chat.log echo %DATE% %TIME% ^>^> %NICK% (*%NAME% (%USERNAME%)) Removed there nickname >>logs.log set NICK=%NAME% set /a NICKED=0 timeout /t 2 /nobreak >nul goto :CHAT @REM Bans user :ban if ""%ADMIN%"" NEQ ""TRUE"" ( echo ^<%_fbgreen%%NAME%%_RESET%^> %TEXT% >> chat.log cls echo ^>^>%TEXT% echo %_fBGreen%Message sent%_RESET% timeout /t 2 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls color 4 set BAN=%TEXT% if ""%BAN%""==""/ban"" ( cls color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) set BAN=%BAN:/ban =% if ""%BAN%""=="""" ( cls color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls echo %BAN%>%temp%\\hashinput.tmp CertUtil -hashfile %temp%\\hashinput.tmp sha256 | findstr /v ""hash"">%temp%\\hashoutput.tmp set /p h_BAN=<%temp%\\hashoutput.tmp del %temp%\\hashinput.tmp del %temp%\\hashoutput.tmp if NOT EXIST ""users\\%h_BAN%.dll"" goto :ACCNOTEXIST if EXIST ""users\\%h_BAN%.ban"" goto :ALREADYBANNED color 4 title %BAN% has been banned echo %_bRed%%_fRed%/////////////////// echo /%_bBlack% USER BANNED %_bRed%/ echo ///////////////////%_RESET% echo  echo %DATE% %TIME% ^>^> *%BAN:-= % was banned by *%NAME% (%USERNAME%) >> logs.log echo %_fblue%%DATE% %TIME% %_fRed%^>^> %_fbgreen%%BAN:-= %%_RESET% was banned by %_fbgreen%%NAME%%_RESET% >> chat.log set BAN=%BAN% echo %DATE% %TIME% ^>^> %BAN:-= % was banned by *%NAME% (%USERNAME%) >users\\%h_BAN%.ban echo %BAN% - Banned by *%NAME% (%USERNAME%) on %DATE% at %TIME%>>users\\bans.log timeout /t 3 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT @REM Unbans user :unban if ""%ADMIN%"" NEQ ""TRUE"" ( echo ^<%_fbgreen%%NAME%%_RESET%^> %TEXT% >> chat.log cls echo ^>^>%TEXT% echo %_fBGreen%Message sent%_RESET% timeout /t 2 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls color 4 set UNBAN=%TEXT% if ""%UNBAN%""==""/unban"" ( cls color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) set UNBAN=%UNBAN:/unban =% if ""%UNBAN%""=="""" ( cls color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls echo %UNBAN%>%temp%\\hashinput.tmp CertUtil -hashfile %temp%\\hashinput.tmp sha256 | findstr /v ""hash"">%temp%\\hashoutput.tmp set /p h_UNBAN=<%temp%\\hashoutput.tmp del %temp%\\hashinput.tmp del %temp%\\hashoutput.tmp if NOT EXIST ""users\\%h_UNBAN%.dll"" goto :ACCNOTEXIST if NOT EXIST ""users\\%h_UNBAN%.ban"" goto :BANNOTEXIST title %UNBAN% has been unbanned echo %_bRed%%_fRed%///////////////////// echo /%_bBlack% USER UNBANNED %_bRed%/ echo /////////////////////%_RESET% echo  echo %DATE% %TIME% ^>^> *%UNBAN:-= % was unbanned by *%NAME% (%USERNAME%) >> logs.log echo %_fblue%%DATE% %TIME% %_fRed%^>^> %_fbgreen%%UNBAN:-= %%_RESET% was unbanned by %_fbgreen%%NAME%%_RESET% >> chat.log del /q ""users\\%h_UNBAN%.ban"" findstr /V /I /R /C:""^%UNBAN%\\>"" ""users\\bans.log"" > ""users\\new_bans.log"" move /Y ""users\\new_bans.log"" ""users\\bans.log"">nul timeout /t 3 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT @REM Pc bans user (bans windows account) :PCBAN if ""%ADMIN%"" NEQ ""TRUE"" ( echo ^<%_fbgreen%%NAME%%_RESET%^> %TEXT% >> chat.log cls echo ^>^>%TEXT% echo %_fBGreen%Message sent%_RESET% timeout /t 2 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls color 4 set PCBAN=%TEXT% if ""%PCBAN%""==""/pcban"" ( cls color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) set PCBAN=%PCBAN:/pcban =% if ""%PCBAN%""=="""" ( cls color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls if EXIST ""users\\%PCBAN%.ban"" goto :ALREADYBANNED title %PCBAN% has been pc banned echo %_bRed%%_fRed%///////////////////// echo /%_bBlack% USER PCBANNED %_bRed%/ echo /////////////////////%_RESET% echo  echo %DATE% %TIME% ^>^> %PCBAN% was pc banned by *%NAME% (%USERNAME%) >> logs.log echo %_fblue%%DATE% %TIME% %_fRed%^>^> %_fbgreen%%PCBAN%%_RESET% was pc banned by %_fbgreen%%NAME%%_RESET% >> chat.log set PCBAN=%PCBAN: =-% echo %DATE% %TIME% ^>^> %PCBAN% was pc banned by *%NAME% (%USERNAME%) >users\\%PCBAN%.ban timeout /t 3 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT @REM Un pc ban's :UNPCBAN if ""%ADMIN%"" NEQ ""TRUE"" ( echo ^<%_fbgreen%%NAME%%_RESET%^> %TEXT% >> chat.log cls echo ^>^>%TEXT% echo %_fBGreen%Message sent%_RESET% timeout /t 2 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls color 4 set UNPCBAN=%TEXT% if ""%UNPCBAN%""==""/UNPCBAN"" ( cls color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) set UNPCBAN=%UNPCBAN:/UNPCBAN =% if ""%UNPCBAN%""=="""" ( cls color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul @REM Among us?!? if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) if NOT EXIST ""users\\%UNPCBAN%.ban"" goto :BANNOTEXIST cls title %UNPCBAN% Has been unpcbanned echo %_bRed%%_fRed%/////////////////////// echo /%_bBlack% USER UNPCBANNED %_bRed%/ echo ///////////////////////%_RESET% echo  echo %DATE% %TIME% ^>^> %UNPCBAN% was pc unbanned by *%NAME% (%USERNAME%) >> logs.log echo %_fblue%%DATE% %TIME% %_fRed%^>^> %_fbgreen%%UNPCBAN%%_RESET% was pc unbanned by %_fbgreen%%NAME%%_RESET% >> chat.log set UNPCBAN=%UNPCBAN: =-% del /q ""users\\%UNPCBAN%.ban"" timeout /t 3 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT @REM If the account of the user you are trying to (un)ban does not exist :ACCNOTEXIST cls title Account does not exist color 4 echo %_bRed%%_fRed%//////////////////////// echo /%_bBlack% ACCOUNT DOES NOT %_bRed%/ echo /%_bBlack% EXIST %_bRed%/ echo ////////////////////////%_RESET% echo  echo %_fGreen%Please enter an account name that exists.%_RESET% echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) tried to ban or unban an account that does not exist>>logs.log timeout /t 3 /nobreak >nul if %NICKED%==1 goto :NCHAT goto :CHAT if %CHATASED%==1 goto :CHATASLOOP @REM If the user you are trying to unban is not banned :BANNOTEXIST cls title User is not banned color 4 echo %_bRed%%_fRed%/////////////////// echo /%_bBlack% USER IS NOT %_bRed%/ echo /%_bBlack% BANNED %_bRed%/ echo ///////////////////%_RESET% echo  echo %_fGreen%Please enter the name of someone who is banned.%_RESET% echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) tried to unban an account that is not banned>>logs.log timeout /t 3 /nobreak >nul if %NICKED%==1 goto :NCHAT goto :CHAT if %CHATASED%==1 goto :CHATASLOOP @REM If the user you are trying to ban is already banned :ALREADYBANNED cls title User is already banned color 4 echo %_bRed%%_fRed%/////////////////////// echo /%_bBlack% USER IS ALREADY %_bRed%/ echo /%_bBlack% BANNED %_bRed%/ echo ///////////////////////%_RESET% echo  echo %_fGreen%Please enter the name of someone who is not already banned.%_RESET% echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) tried to ban an account that is already banned>>logs.log timeout /t 3 /nobreak >nul if %NICKED%==1 goto :NCHAT goto :CHAT if %CHATASED%==1 goto :CHATASLOOP @REM Message when you are banned :BANNED cls color 4 title BANNED echo %_bRed%%_fRed%//////////////////////////// echo /%_bBlack% YOU HAVE BEEN BANNED %_bRed%/ echo ////////////////////////////%_RESET% echo. echo go away echo  timeout /t 3 /nobreak >nul exit @REM Command to delete other users accounts :TERMINATE if ""%ADMIN%"" NEQ ""TRUE"" ( echo ^<%_fbgreen%%NAME%%_RESET%^> %TEXT% >> chat.log cls echo ^>^>%TEXT% echo %_fBGreen%Message sent%_RESET% timeout /t 2 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls color 4 set TERMINATEACC=%TEXT% if ""%TERMINATEACC%""==""/terminate"" ( cls color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) set TERMINATEACC=%TERMINATEACC:/terminate =% if ""%TERMINATEACC%""=="""" ( cls color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls echo %TERMINATEACC%>%temp%\\hashinput.tmp CertUtil -hashfile %temp%\\hashinput.tmp sha256 | findstr /v ""hash"">%temp%\\hashoutput.tmp set /p h_TERMINATEACC=<%temp%\\hashoutput.tmp del %temp%\\hashinput.tmp del %temp%\\hashoutput.tmp title /terminate color 4 if NOT EXIST ""users\\%h_TERMINATEACC%.dll"" ( cls title %TERMINATEACC%.dll NOT FOUND echo %_bRed%%_fRed%////////////////////////////// echo /%_bBlack% ACCOUNT DOES NOT EXIST %_bRed%/ echo //////////////////////////////%_RESET% echo  echo %DATE% %TIME% ^>^> *%NAME% ^(%USERNAME%^) tried to delete an account that does not exist >> logs.log TIMEOUT /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls title DELETING %TERMINATEACC%.dll echo %_bRed%%_fRed%//////////////////////// echo /%_bBlack% DELETING ACCOUNT %_bRed%/ echo ////////////////////////%_RESET% echo  TIMEOUT /t 2 /nobreak >nul del /q users\\%h_TERMINATEACC%.dll echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) Terminated account ""*%TERMINATEACC%"" >> logs.log title %TERMINATEACC%'s account has been Successfully deleted echo %_fbgreen%%TERMINATEACC%%_RESET% (%_fblue%%h_TERMINATEACC%.dll%_RESET%) has been %_fRed%deleted%_RESET%. TIMEOUT /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT @REM Command to change your password :CHANGEPASSWORD cls color 4 title /changepassword echo %_bRed%%_fRed%///////////////////////////////////// echo /%_bBlack% ARE YOU SURE YOU %_bRed%/ echo /%_bBlack% WANT TO CHANGE YOUR PASSWORD? %_bRed%/ echo /////////////////////////////////////%_RESET% echo  choice if %ERRORLEVEL%==2 ( if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls color 7 echo %_bbGreen%%_fbgreen%///////////////////////////////////// echo /%_RESET% PLEASE ENTER CURRENT PASSWORD %_bbGreen%%_fbgreen%/ echo /////////////////////////////////////%_RESET% echo. set ""psCommand=powershell -Command ""$pword = read-host 'Password' -AsSecureString ; ^ $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^ [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)"""" for /f ""usebackq delims="" %%p in (`%psCommand%`) do set C_PASSWORD=%%p echo %C_PASSWORD%>%temp%\\hashinput.tmp CertUtil -hashfile %temp%\\hashinput.tmp sha256 | findstr /v ""hash"">%temp%\\hashoutput.tmp set /p C_PASSWORD=<%temp%\\hashoutput.tmp del %temp%\\hashinput.tmp del %temp%\\hashoutput.tmp set /p password_file=<\\users%h_NAME%.dll if %C_PASSWORD%==%password_file% goto :CORRECT_PASSWORD :WRONG_PASSWORD cls color 4 title Incorrect password echo %_bRed%%_fRed%////////////////////// echo /%_bBlack% WRONG PASSWORD %_bRed%/ echo //////////////////////%_RESET% echo  echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) entered the current password wrong when trying to change it >>logs.log timeout /t 3 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT :CORRECT_PASSWORD cls title Enter new password echo %_bBGreen%%_fbgreen%////////////////////////// echo /%_RESET% ENTER NEW PASSWORD %_bbGreen%%_fbgreen%/ echo //////////////////////////%_RESET% echo. set ""psCommand=powershell -Command ""$pword = read-host 'New Password' -AsSecureString ; ^ $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^ [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)"""" for /f ""usebackq delims="" %%p in (`%psCommand%`) do set NEW_PASSWORD=%%p set ""psCommand=powershell -Command ""$pword = read-host 'Confirm New Password' -AsSecureString ; ^ $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^ [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)"""" for /f ""usebackq delims="" %%p in (`%psCommand%`) do set CONFIRM_PASS=%%p if ""%NEW_PASSWORD%"" NEQ ""%CONFIRM_PASS%"" ( cls title Passwords do not match color 4 echo %_bRed%%_fRed%///////////////////////////// echo /%_bBlack% PASSWORDS DON'T MATCH %_bRed%/ echo /////////////////////////////%_RESET% echo  timeout /t 3 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) echo %NEW_PASSWORD%>%temp%\\hashinput.tmp CertUtil -hashfile %temp%\\hashinput.tmp sha256 | findstr /v ""hash"">%temp%\\hashoutput.tmp set /p h_NEW_PASSWORD=<%temp%\\hashoutput.tmp del %temp%\\hashinput.tmp del %temp%\\hashoutput.tmp del %h_NAME%.dll echo %h_NEW_PASSWORD%>users\\%h_NAME%.dll echo %h_ADMIN%>>users\\%h_NAME%.dll cls title password changed successfully color 2 echo %_fbgreen%%_bBGreen%//////////////////////// echo /%_RESET% PASSWORD CHANGED %_bbGreen%%_fbgreen%/ echo ////////////////////////%_RESET% echo. echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) Changed there password >>logs.log timeout /t 3 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT @REM Command to delete your account :deleteaccount cls color 4 title /deleteaccount echo %_bRed%%_fRed%/////////////////////////////// echo /%_bBlack% ARE YOU SURE YOU WANT %_bRed%/ echo /%_bBlack% TO DELETE YOUR ACCOUNT? %_bRed%/ echo ///////////////////////////////%_RESET% echo  choice if %ERRORLEVEL%==2 ( if %NICKED%==1 goto :NCHAT goto :CHAT if %CHATASED%==1 goto :CHATASLOOP ) cls echo %_bbGreen%%_fbgreen%////////////////////////////////////////// echo /%_RESET% PLEASE ENTER YOUR CURRENT PASSWORD %_bbGreen%%_fbgreen%/ echo //////////////////////////////////////////%_RESET% echo. set ""psCommand=powershell -Command ""$pword = read-host 'Password' -AsSecureString ; ^ $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^ [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)"""" for /f ""usebackq delims="" %%p in (`%psCommand%`) do set DELCURRENTPASSWORD=%%p set /p DELPASSWORD=%temp%\\hashinput.tmp CertUtil -hashfile %temp%\\hashinput.tmp sha256 | findstr /v ""hash"">%temp%\\hashoutput.tmp set /p DELCURRENTPASSWORD=<%temp%\\hashoutput.tmp del %temp%\\hashinput.tmp del %temp%\\hashoutput.tmp if NOT %DELCURRENTPASSWORD%==%DELPASSWORD% ( cls title Incorrect password echo %_bRed%%_fRed%///////////////////// echo /%_bBlack% WRONG PASWORD %_bRed%/ echo /////////////////////%_RESET% echo  timeout /t 3 /nobreak >nul if %NICKED%==1 goto :NCHAT goto :CHAT if %CHATASED%==1 goto :CHATASLOOP ) cls title deleting account... echo %_bRed%%_fRed%//////////////////////// echo /%_bBlack% DELETING ACCOUNT %_bRed%/ echo ////////////////////////%_RESET% echo. timeout /t 3 /nobreak >nul del /q users\\%h_NAME%.dll echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) deleted there account>>logs.log echo %_fGreen%Account delete. echo %_fblue%It was nice having you around :)%_RESET% title Account deleted timeout /t 2 /nobreak >nul echo. >%TEMP%\\CHATLOGOUT.tmp exit @REM Shows banned users :BANLIST if ""%ADMIN%"" NEQ ""TRUE"" ( echo ^<%_fbgreen%%NAME%%_RESET%^> %TEXT% >> chat.log cls echo ^>^>%TEXT% echo %_fBGreen%Message sent%_RESET% timeout /t 2 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls title banlist echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) Checked the ban list>>logs.log :BANLISTLOOP cls echo %_fGreen%Currently banned accounts:%_RESET% echo. type users\\bans.log echo. echo. echo %_fgreen%Press any key to go back echo Press %_bBWhite%%_fBlack%""r""%_RESET%%_fgreen% to refresh choice /c r1234567890qwetyuiopasdfghjklzxcvbnm >nul if %ERRORLEVEL%==1 goto :BANLISTLOOP if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT @REM Debug mode (Probablt broken so i disabled it) @REM :debug if ""%ADMIN%"" NEQ ""TRUE"" ( echo ^<%_fbgreen%%NAME%%_RESET%^> %TEXT% >> chat.log cls echo ^>^>%TEXT% echo %_fBGreen%Message sent%_RESET% timeout /t 2 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls cd .. if EXIST debug.bat ( color 4 echo %_bbGreen%%_fbgreen%////////////////////// echo /%_RESET% DEBUG MODE OFF %_bbGreen%%_fbgreen%/ echo //////////////////////%_RESET% echo. del debug.bat cd info echo %DATE% %TIME% ^>^> *%NAME% ^(%USERNAME%^) turned OFF debug mode>>logs.log timeout /t 3 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) color 2 echo %_bbGreen%%_fbgreen%///////////////////// echo /%_RESET% DEBUG MODE ON %_bbGreen%%_fbgreen%/ echo /////////////////////%_RESET% echo. echo @echo off>>debug.bat echo echo. ^>debug>>debug.bat echo call Chat%FILETYPE%>>debug.bat cd info echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) turned ON debug mode>>logs.log timeout /t 3 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT @REM Very secret easter egg :easter_ehg start dino.bat exit @REM Promote an account to admin :PROMOTE if ""%ADMIN%"" NEQ ""TRUE"" ( echo ^<%_fbgreen%%NAME%%_RESET%^> %TEXT%% >> chat.log cls echo ^>^>%TEXT% echo %_fBGreen%Message sent%_RESET% timeout /t 2 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls set PROMOTE=%TEXT% if ""%PROMOTE%""==""/promote"" ( cls title /promote color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) set PROMOTE=%PROMOTE:/promote =% if ""%PROMOTE%""=="""" ( cls title /promote color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) echo %PROMOTE%>%temp%\\hashinput.tmp CertUtil -hashfile %temp%\\hashinput.tmp sha256 | findstr /v ""hash"">%temp%\\hashoutput.tmp set /p h_PROMOTE=<%temp%\\hashoutput.tmp del %temp%\\hashinput.tmp del %temp%\\hashoutput.tmp if NOT EXIST ""users\\%h_PROMOTE%.dll"" ( cls color 4 title %PROMOTE%.dll NOT FOUND echo %_bRed%%_fRed%////////////////////////////// echo /%_bBlack% ACCOUNT DOES NOT EXIST %_bRed%/ echo //////////////////////////////%_RESET% echo  echo %DATE% %TIME% ^>^> *%NAME% ^(%USERNAME%^) tried to promote an account that does not exist >> logs.log TIMEOUT /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) FOR /F ""skip=1"" %%c IN (users\\%h_PROMOTE%.dll) DO set f_ADMINCH=%%c set h_ADMINCH=8Fas3%h_PROMOTE%onRG621 echo %h_ADMINCH%>%temp%\\hashinput.tmp CertUtil -hashfile %temp%\\hashinput.tmp sha256 | findstr /v ""hash"">%temp%\\hashoutput.tmp set /p h_ADMINCH=<%temp%\\hashoutput.tmp del %temp%\\hashinput.tmp del %temp%\\hashoutput.tmp if %f_ADMINCH%==%h_ADMINCH% ( set ADMINCH=TRUE ) ELSE ( set ADMINCH=FALSE ) if ""%ADMINCH%""==""TRUE"" ( cls color 4 title %PROMOTE% ALREADY IS AN ADMIN echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% USER ALREADY IS AN ADMIN %_bRed%/ echo ////////////////////////////////%_RESET% echo  echo %DATE% %TIME% ^>^> *%NAME% ^(%USERNAME%^) Tried to promote %PROMOTE% but they where alreday an admin >>logs.log TIMEOUT /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls title /promote %PROMOTE% echo %_bRed%%_fRed%///////////////////////////// echo /%_bBlack% ARE YOU SURE YOU WANT %_bRed%/ echo /%_bBlack% TO PROMOTE THIS USER? %_bRed%/ echo /////////////////////////////%_RESET% echo. echo If you promote %_fbgreen%%PROMOTE%%_RESET% they will have %_fRed%full%_RESET% access to %_fRed%all admin commands%_RESET%. choice if %ERRORLEVEL%==2 ( if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) set /p new_admin_password=users\\%h_PROMOTE%.dll.tmp move /Y ""users\\%h_PROMOTE%.dll.tmp"" ""users\\%h_PROMOTE%.dll"">nul set NEW_ADMIN_STATUS=8Fas3%h_PROMOTE%onRG621 echo %NEW_ADMIN_STATUS%>%temp%\\hashinput.tmp CertUtil -hashfile %temp%\\hashinput.tmp sha256 | findstr /v ""hash"">%temp%\\hashoutput.tmp set /p h_NEW_ADMIN_STATUS=<%temp%\\hashoutput.tmp del %temp%\\hashinput.tmp del %temp%\\hashoutput.tmp echo %h_NEW_ADMIN_STATUS%>>users\\%h_PROMOTE%.dll color 2 cls echo %_bbGreen%%_fbgreen%//////////////////////// echo /%_RESET% ACCOUNT PROMOTED %_bbGreen%%_fbgreen%/ echo ////////////////////////%_RESET% echo. echo The account ""%_fbgreen%%PROMOTE:-= %%_RESET%"" has been granted %_fRed%admin%_RESET% permissions! echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) Promoted %PROMOTE%>>logs.log timeout /t 3 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT @REM Removes an accounts admin permissions :DEMOTE if ""%ADMIN%"" NEQ ""TRUE"" ( echo ^<%_fbgreen%%NAME%%_RESET%^> %TEXT%% >> chat.log cls echo ^>^>%TEXT% echo %_fBGreen%Message sent%_RESET% timeout /t 2 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls set DEMOTE=%TEXT% if ""%DEMOTE%""==""/demote"" ( cls title /demote color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) set DEMOTE=%DEMOTE:/demote =% if ""%DEMOTE%""=="""" ( cls title /demote color 4 echo %_bRed%%_fRed%//////////////////////////////// echo /%_bBlack% YOU MUST ENTER SOMETHING %_bRed%/ echo ////////////////////////////////%_RESET% echo  timeout /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) echo %DEMOTE%>%temp%\\hashinput.tmp CertUtil -hashfile %temp%\\hashinput.tmp sha256 | findstr /v ""hash"">%temp%\\hashoutput.tmp set /p h_DEMOTE=<%temp%\\hashoutput.tmp del %temp%\\hashinput.tmp del %temp%\\hashoutput.tmp if NOT EXIST ""users\\%h_DEMOTE%.dll"" ( cls color 4 title %DEMOTE%.dll NOT FOUND echo %_bRed%%_fRed%////////////////////////////// echo /%_bBlack% ACCOUNT DOES NOT EXIST %_bRed%/ echo //////////////////////////////%_RESET% echo  echo %DATE% %TIME% ^>^> *%NAME% ^(%USERNAME%^) tried to demote an account that does not exist >> logs.log TIMEOUT /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) FOR /F ""skip=1"" %%c IN (users\\%h_DEMOTE%.dll) DO set f_ADMINCH=%%c set h_ADMINCH=8Fas3%h_DEMOTE%onRG621 echo %h_ADMINCH%>%temp%\\hashinput.tmp CertUtil -hashfile %temp%\\hashinput.tmp sha256 | findstr /v ""hash"">%temp%\\hashoutput.tmp set /p h_ADMINCH=<%temp%\\hashoutput.tmp del %temp%\\hashinput.tmp del %temp%\\hashoutput.tmp if %f_ADMINCH%==%h_ADMINCH% ( set ADMINCH=TRUE ) ELSE ( set ADMINCH=FALSE ) if ""%ADMINCH%""==""FALSE"" ( cls color 4 title %DEMOTE% ALREADY IS NOT AN ADMIN echo %_bRed%%_fRed%//////////////////////////// echo /%_bBlack% USER IS NOT AN ADMIN %_bRed%/ echo ////////////////////////////%_RESET% echo  echo %DATE% %TIME% ^>^> *%NAME% ^(%USERNAME%^) Tried to demote %DEMOTE% but they where not an admin >>logs.log TIMEOUT /t 3 >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) cls title /demote %DEMOTE% echo %_bRed%%_fRed%///////////////////////////// echo /%_bBlack% ARE YOU SURE YOU WANT %_bRed%/ echo /%_bBlack% TO DEMOTE THIS USER? %_bRed%/ echo /////////////////////////////%_RESET% echo. echo If you demote %_fbgreen%%DEMOTE%%_RESET% they loose access to %_fRed%all admin commands%_RESET%. choice if %ERRORLEVEL%==2 ( if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT ) set /p new_admin_password=users\\%h_DEMOTE%.dll.tmp move /Y ""users\\%h_DEMOTE%.dll.tmp"" ""users\\%h_DEMOTE%.dll"">nul set NEW_ADMIN_STATUS=73Hs%h_DEMOTE%gGG83A echo %NEW_ADMIN_STATUS%>%temp%\\hashinput.tmp CertUtil -hashfile %temp%\\hashinput.tmp sha256 | findstr /v ""hash"">%temp%\\hashoutput.tmp set /p h_NEW_ADMIN_STATUS=<%temp%\\hashoutput.tmp del %temp%\\hashinput.tmp del %temp%\\hashoutput.tmp echo %h_NEW_ADMIN_STATUS%>>users\\%h_DEMOTE%.dll color 4 cls echo %_bbGreen%%_fbgreen%//////////////////////// echo /%_RESET% ACCOUNT DEMOTED %_bbGreen%%_fbgreen%/ echo ////////////////////////%_RESET% echo. echo The account ""%_fbgreen%%DEMOTE%%_RESET%"" has had their admin permissions %_fRed%revoked%_RESET%! echo %DATE% %TIME% ^>^> *%NAME% (%USERNAME%) Demoted %DEMOTE%>>logs.log timeout /t 3 /nobreak >nul if %CHATASED%==1 goto :CHATASLOOP if %NICKED%==1 goto :NCHAT goto :CHAT",16341,True,3968.022583085235,median "cmd_/root/openvswitch-2.7.2/datapath/linux/conntrack.o := gcc -Wp,-MD,/root/openvswitch-2.7.2/datapath/linux/.conntrack.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I/root/openvswitch-2.7.2/include -I/root/openvswitch-2.7.2/datapath/linux/compat -I/root/openvswitch-2.7.2/datapath/linux/compat/include -I./arch/x86/include -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -std=gnu89 -O2 -m64 -mno-mmx -mno-sse -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -Wframe-larger-than=2048 -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -DVERSION=\\""2.7.2\\"" -I/root/openvswitch-2.7.2/datapath/linux/.. -I/root/openvswitch-2.7.2/datapath/linux/.. -g -include /root/openvswitch-2.7.2/datapath/linux/kcompat.h -DMODULE -D""KBUILD_STR(s)=\\#s"" -D""KBUILD_BASENAME=KBUILD_STR(conntrack)"" -D""KBUILD_MODNAME=KBUILD_STR(openvswitch)"" -c -o /root/openvswitch-2.7.2/datapath/linux/.tmp_conntrack.o /root/openvswitch-2.7.2/datapath/linux/conntrack.c source_/root/openvswitch-2.7.2/datapath/linux/conntrack.o := /root/openvswitch-2.7.2/datapath/linux/conntrack.c deps_/root/openvswitch-2.7.2/datapath/linux/conntrack.o := \\ $(wildcard include/config/nf/conntrack.h) \\ $(wildcard include/config/nf/nat/needed.h) \\ $(wildcard include/config/nf/conntrack/mark.h) \\ $(wildcard include/config/nf/conntrack/zones.h) \\ $(wildcard include/config/nf/conntrack/labels.h) \\ $(wildcard include/config/nf/defrag/ipv6.h) \\ $(wildcard include/config/nf/nat/ipv4.h) \\ $(wildcard include/config/nf/nat/ipv6.h) \\ /root/openvswitch-2.7.2/datapath/linux/kcompat.h \\ include/generated/uapi/linux/version.h \\ include/linux/module.h \\ $(wildcard include/config/sysfs.h) \\ $(wildcard include/config/modules.h) \\ $(wildcard include/config/ftrace/mcount/record.h) \\ $(wildcard include/config/s390.h) \\ $(wildcard include/config/unused/symbols.h) \\ $(wildcard include/config/module/sig.h) \\ $(wildcard include/config/generic/bug.h) \\ $(wildcard include/config/kallsyms.h) \\ $(wildcard include/config/smp.h) \\ $(wildcard include/config/tracepoints.h) \\ $(wildcard include/config/tracing.h) \\ $(wildcard include/config/event/tracing.h) \\ $(wildcard include/config/module/unload.h) \\ $(wildcard include/config/constructors.h) \\ $(wildcard include/config/debug/set/module/ronx.h) \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/list.h \\ include/linux/list.h \\ $(wildcard include/config/debug/list.h) \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/types.h \\ include/linux/types.h \\ $(wildcard include/config/uid16.h) \\ $(wildcard include/config/lbdaf.h) \\ $(wildcard include/config/arch/dma/addr/t/64bit.h) \\ $(wildcard include/config/phys/addr/t/64bit.h) \\ $(wildcard include/config/64bit.h) \\ include/uapi/linux/types.h \\ arch/x86/include/uapi/asm/types.h \\ include/uapi/asm-generic/types.h \\ include/asm-generic/int-ll64.h \\ include/uapi/asm-generic/int-ll64.h \\ arch/x86/include/uapi/asm/bitsperlong.h \\ include/asm-generic/bitsperlong.h \\ include/uapi/asm-generic/bitsperlong.h \\ include/uapi/linux/posix_types.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/stddef.h \\ include/linux/stddef.h \\ include/uapi/linux/stddef.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/compiler.h \\ include/linux/compiler.h \\ $(wildcard include/config/sparse/rcu/pointer.h) \\ $(wildcard include/config/trace/branch/profiling.h) \\ $(wildcard include/config/profile/all/branches.h) \\ $(wildcard include/config/enable/must/check.h) \\ $(wildcard include/config/enable/warn/deprecated.h) \\ $(wildcard include/config/kprobes.h) \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/compiler-gcc.h \\ include/linux/compiler-gcc.h \\ $(wildcard include/config/arch/supports/optimized/inlining.h) \\ $(wildcard include/config/optimize/inlining.h) \\ include/linux/compiler-gcc4.h \\ $(wildcard include/config/arch/use/builtin/bswap.h) \\ arch/x86/include/asm/posix_types.h \\ $(wildcard include/config/x86/32.h) \\ arch/x86/include/uapi/asm/posix_types_64.h \\ include/uapi/asm-generic/posix_types.h \\ include/linux/poison.h \\ $(wildcard include/config/illegal/pointer/value.h) \\ include/uapi/linux/const.h \\ include/linux/stat.h \\ arch/x86/include/uapi/asm/stat.h \\ include/uapi/linux/stat.h \\ include/linux/time.h \\ $(wildcard include/config/arch/uses/gettimeoffset.h) \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/cache.h \\ include/linux/cache.h \\ $(wildcard include/config/arch/has/cache/line/size.h) \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/kernel.h \\ include/linux/kernel.h \\ $(wildcard include/config/preempt/voluntary.h) \\ $(wildcard include/config/debug/atomic/sleep.h) \\ $(wildcard include/config/prove/locking.h) \\ $(wildcard include/config/panic/timeout.h) \\ $(wildcard include/config/ring/buffer.h) \\ /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/stdarg.h \\ include/linux/linkage.h \\ include/linux/stringify.h \\ include/linux/export.h \\ $(wildcard include/config/have/underscore/symbol/prefix.h) \\ $(wildcard include/config/modversions.h) \\ arch/x86/include/asm/linkage.h \\ $(wildcard include/config/x86/64.h) \\ $(wildcard include/config/x86/alignment/16.h) \\ include/linux/bitops.h \\ arch/x86/include/asm/bitops.h \\ $(wildcard include/config/x86/cmov.h) \\ arch/x86/include/asm/alternative.h \\ $(wildcard include/config/paravirt.h) \\ arch/x86/include/asm/asm.h \\ arch/x86/include/asm/ptrace.h \\ $(wildcard include/config/x86/debugctlmsr.h) \\ arch/x86/include/asm/segment.h \\ $(wildcard include/config/cc/stackprotector.h) \\ $(wildcard include/config/x86/32/lazy/gs.h) \\ arch/x86/include/asm/cache.h \\ $(wildcard include/config/x86/l1/cache/shift.h) \\ $(wildcard include/config/x86/internode/cache/shift.h) \\ $(wildcard include/config/x86/vsmp.h) \\ arch/x86/include/asm/page_types.h \\ arch/x86/include/asm/page_64_types.h \\ $(wildcard include/config/physical/start.h) \\ $(wildcard include/config/physical/align.h) \\ arch/x86/include/uapi/asm/ptrace.h \\ arch/x86/include/uapi/asm/ptrace-abi.h \\ arch/x86/include/asm/processor-flags.h \\ $(wildcard include/config/vm86.h) \\ arch/x86/include/uapi/asm/processor-flags.h \\ arch/x86/include/asm/paravirt_types.h \\ $(wildcard include/config/x86/local/apic.h) \\ $(wildcard include/config/x86/pae.h) \\ $(wildcard include/config/paravirt/debug.h) \\ arch/x86/include/asm/desc_defs.h \\ arch/x86/include/asm/kmap_types.h \\ $(wildcard include/config/debug/highmem.h) \\ include/asm-generic/kmap_types.h \\ arch/x86/include/asm/pgtable_types.h \\ $(wildcard include/config/kmemcheck.h) \\ $(wildcard include/config/mem/soft/dirty.h) \\ $(wildcard include/config/compat/vdso.h) \\ $(wildcard include/config/proc/fs.h) \\ arch/x86/include/asm/pgtable_64_types.h \\ arch/x86/include/asm/sparsemem.h \\ $(wildcard include/config/sparsemem.h) \\ include/linux/rh_kabi.h \\ $(wildcard include/config/rh/kabi/size/align/checks.h) \\ arch/x86/include/asm/spinlock_types.h \\ $(wildcard include/config/paravirt/spinlocks.h) \\ $(wildcard include/config/nr/cpus.h) \\ arch/x86/include/asm/rwlock.h \\ include/asm-generic/ptrace.h \\ arch/x86/include/asm/cpufeature.h \\ arch/x86/include/asm/required-features.h \\ $(wildcard include/config/x86/minimum/cpu/family.h) \\ $(wildcard include/config/math/emulation.h) \\ $(wildcard include/config/x86/cmpxchg64.h) \\ $(wildcard include/config/x86/use/3dnow.h) \\ $(wildcard include/config/x86/p6/nop.h) \\ $(wildcard include/config/matom.h) \\ arch/x86/include/asm/disabled-features.h \\ $(wildcard include/config/x86/intel/mpx.h) \\ arch/x86/include/asm/barrier.h \\ $(wildcard include/config/x86/ppro/fence.h) \\ arch/x86/include/asm/nops.h \\ $(wildcard include/config/mk7.h) \\ include/asm-generic/bitops/find.h \\ $(wildcard include/config/generic/find/first/bit.h) \\ include/asm-generic/bitops/sched.h \\ arch/x86/include/asm/arch_hweight.h \\ include/asm-generic/bitops/const_hweight.h \\ include/asm-generic/bitops/le.h \\ arch/x86/include/uapi/asm/byteorder.h \\ include/linux/byteorder/little_endian.h \\ include/uapi/linux/byteorder/little_endian.h \\ include/linux/swab.h \\ include/uapi/linux/swab.h \\ arch/x86/include/uapi/asm/swab.h \\ include/linux/byteorder/generic.h \\ include/asm-generic/bitops/ext2-atomic-setbit.h \\ include/linux/log2.h \\ $(wildcard include/config/arch/has/ilog2/u32.h) \\ $(wildcard include/config/arch/has/ilog2/u64.h) \\ include/linux/typecheck.h \\ include/linux/printk.h \\ $(wildcard include/config/early/printk.h) \\ $(wildcard include/config/printk.h) \\ $(wildcard include/config/dynamic/debug.h) \\ include/linux/init.h \\ $(wildcard include/config/broken/rodata.h) \\ include/linux/kern_levels.h \\ include/linux/dynamic_debug.h \\ include/uapi/linux/kernel.h \\ include/uapi/linux/sysinfo.h \\ include/linux/seqlock.h \\ include/linux/spinlock.h \\ $(wildcard include/config/debug/spinlock.h) \\ $(wildcard include/config/generic/lockbreak.h) \\ $(wildcard include/config/preempt.h) \\ $(wildcard include/config/debug/lock/alloc.h) \\ include/linux/preempt.h \\ $(wildcard include/config/debug/preempt.h) \\ $(wildcard include/config/preempt/tracer.h) \\ $(wildcard include/config/context/tracking.h) \\ $(wildcard include/config/preempt/count.h) \\ $(wildcard include/config/preempt/notifiers.h) \\ include/linux/thread_info.h \\ $(wildcard include/config/compat.h) \\ $(wildcard include/config/debug/stack/usage.h) \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/bug.h \\ include/linux/bug.h \\ arch/x86/include/asm/bug.h \\ $(wildcard include/config/bug.h) \\ $(wildcard include/config/debug/bugverbose.h) \\ include/asm-generic/bug.h \\ $(wildcard include/config/generic/bug/relative/pointers.h) \\ arch/x86/include/asm/thread_info.h \\ $(wildcard include/config/ia32/emulation.h) \\ arch/x86/include/asm/page.h \\ arch/x86/include/asm/page_64.h \\ $(wildcard include/config/debug/virtual.h) \\ $(wildcard include/config/flatmem.h) \\ include/linux/range.h \\ include/asm-generic/memory_model.h \\ $(wildcard include/config/discontigmem.h) \\ $(wildcard include/config/sparsemem/vmemmap.h) \\ include/linux/pfn.h \\ include/asm-generic/getorder.h \\ arch/x86/include/asm/processor.h \\ $(wildcard include/config/m486.h) \\ $(wildcard include/config/xen.h) \\ arch/x86/include/asm/vm86.h \\ arch/x86/include/uapi/asm/vm86.h \\ arch/x86/include/asm/math_emu.h \\ arch/x86/include/asm/sigcontext.h \\ arch/x86/include/uapi/asm/sigcontext.h \\ arch/x86/include/asm/current.h \\ arch/x86/include/asm/percpu.h \\ $(wildcard include/config/x86/64/smp.h) \\ include/asm-generic/percpu.h \\ $(wildcard include/config/have/setup/per/cpu/area.h) \\ include/linux/threads.h \\ $(wildcard include/config/base/small.h) \\ include/linux/percpu-defs.h \\ $(wildcard include/config/debug/force/weak/per/cpu.h) \\ arch/x86/include/asm/msr.h \\ arch/x86/include/asm/msr-index.h \\ $(wildcard include/config/tdp/nominal.h) \\ $(wildcard include/config/tdp/level/1.h) \\ $(wildcard include/config/tdp/level/2.h) \\ $(wildcard include/config/tdp/control.h) \\ $(wildcard include/config/tdp/level1.h) \\ $(wildcard include/config/tdp/level2.h) \\ arch/x86/include/uapi/asm/errno.h \\ include/uapi/asm-generic/errno.h \\ include/uapi/asm-generic/errno-base.h \\ arch/x86/include/asm/cpumask.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/cpumask.h \\ include/linux/cpumask.h \\ $(wildcard include/config/cpumask/offstack.h) \\ $(wildcard include/config/hotplug/cpu.h) \\ $(wildcard include/config/debug/per/cpu/maps.h) \\ $(wildcard include/config/disable/obsolete/cpumask/functions.h) \\ include/linux/bitmap.h \\ include/linux/string.h \\ $(wildcard include/config/binary/printf.h) \\ include/uapi/linux/string.h \\ arch/x86/include/asm/string.h \\ arch/x86/include/asm/string_64.h \\ arch/x86/include/uapi/asm/msr.h \\ include/uapi/linux/ioctl.h \\ arch/x86/include/uapi/asm/ioctl.h \\ include/asm-generic/ioctl.h \\ include/uapi/asm-generic/ioctl.h \\ arch/x86/include/asm/paravirt.h \\ arch/x86/include/asm/frame.h \\ $(wildcard include/config/frame/pointer.h) \\ arch/x86/include/asm/special_insns.h \\ include/linux/personality.h \\ include/uapi/linux/personality.h \\ include/linux/math64.h \\ $(wildcard include/config/arch/supports/int128.h) \\ arch/x86/include/asm/div64.h \\ include/asm-generic/div64.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/err.h \\ include/linux/err.h \\ include/linux/irqflags.h \\ $(wildcard include/config/trace/irqflags.h) \\ $(wildcard include/config/irqsoff/tracer.h) \\ $(wildcard include/config/trace/irqflags/support.h) \\ arch/x86/include/asm/irqflags.h \\ include/linux/atomic.h \\ $(wildcard include/config/arch/has/atomic/or.h) \\ $(wildcard include/config/generic/atomic64.h) \\ arch/x86/include/asm/atomic.h \\ arch/x86/include/asm/cmpxchg.h \\ arch/x86/include/asm/cmpxchg_64.h \\ arch/x86/include/asm/atomic64_64.h \\ include/asm-generic/atomic-long.h \\ include/linux/bottom_half.h \\ include/linux/spinlock_types.h \\ include/linux/lockdep.h \\ $(wildcard include/config/lockdep.h) \\ $(wildcard include/config/lock/stat.h) \\ $(wildcard include/config/prove/rcu.h) \\ include/linux/rwlock_types.h \\ arch/x86/include/asm/spinlock.h \\ include/linux/jump_label.h \\ $(wildcard include/config/jump/label.h) \\ arch/x86/include/asm/jump_label.h \\ include/linux/rwlock.h \\ include/linux/spinlock_api_smp.h \\ $(wildcard include/config/inline/spin/lock.h) \\ $(wildcard include/config/inline/spin/lock/bh.h) \\ $(wildcard include/config/inline/spin/lock/irq.h) \\ $(wildcard include/config/inline/spin/lock/irqsave.h) \\ $(wildcard include/config/inline/spin/trylock.h) \\ $(wildcard include/config/inline/spin/trylock/bh.h) \\ $(wildcard include/config/uninline/spin/unlock.h) \\ $(wildcard include/config/inline/spin/unlock/bh.h) \\ $(wildcard include/config/inline/spin/unlock/irq.h) \\ $(wildcard include/config/inline/spin/unlock/irqrestore.h) \\ include/linux/rwlock_api_smp.h \\ $(wildcard include/config/inline/read/lock.h) \\ $(wildcard include/config/inline/write/lock.h) \\ $(wildcard include/config/inline/read/lock/bh.h) \\ $(wildcard include/config/inline/write/lock/bh.h) \\ $(wildcard include/config/inline/read/lock/irq.h) \\ $(wildcard include/config/inline/write/lock/irq.h) \\ $(wildcard include/config/inline/read/lock/irqsave.h) \\ $(wildcard include/config/inline/write/lock/irqsave.h) \\ $(wildcard include/config/inline/read/trylock.h) \\ $(wildcard include/config/inline/write/trylock.h) \\ $(wildcard include/config/inline/read/unlock.h) \\ $(wildcard include/config/inline/write/unlock.h) \\ $(wildcard include/config/inline/read/unlock/bh.h) \\ $(wildcard include/config/inline/write/unlock/bh.h) \\ $(wildcard include/config/inline/read/unlock/irq.h) \\ $(wildcard include/config/inline/write/unlock/irq.h) \\ $(wildcard include/config/inline/read/unlock/irqrestore.h) \\ $(wildcard include/config/inline/write/unlock/irqrestore.h) \\ include/linux/time64.h \\ include/uapi/linux/time.h \\ include/linux/uidgid.h \\ $(wildcard include/config/uidgid/strict/type/checks.h) \\ $(wildcard include/config/user/ns.h) \\ include/linux/highuid.h \\ include/linux/kmod.h \\ include/linux/gfp.h \\ $(wildcard include/config/numa.h) \\ $(wildcard include/config/highmem.h) \\ $(wildcard include/config/zone/dma.h) \\ $(wildcard include/config/zone/dma32.h) \\ $(wildcard include/config/zone/device.h) \\ $(wildcard include/config/deferred/struct/page/init.h) \\ $(wildcard include/config/pm/sleep.h) \\ $(wildcard include/config/cma.h) \\ include/linux/mmdebug.h \\ $(wildcard include/config/debug/vm.h) \\ include/linux/mmzone.h \\ $(wildcard include/config/force/max/zoneorder.h) \\ $(wildcard include/config/memory/isolation.h) \\ $(wildcard include/config/memcg.h) \\ $(wildcard include/config/compaction.h) \\ $(wildcard include/config/memory/hotplug.h) \\ $(wildcard include/config/have/memblock/node/map.h) \\ $(wildcard include/config/flat/node/mem/map.h) \\ $(wildcard include/config/no/bootmem.h) \\ $(wildcard include/config/numa/balancing.h) \\ $(wildcard include/config/have/memory/present.h) \\ $(wildcard include/config/have/memoryless/nodes.h) \\ $(wildcard include/config/need/node/memmap/size.h) \\ $(wildcard include/config/need/multiple/nodes.h) \\ $(wildcard include/config/have/arch/early/pfn/to/nid.h) \\ $(wildcard include/config/sparsemem/extreme.h) \\ $(wildcard include/config/have/arch/pfn/valid.h) \\ $(wildcard include/config/holes/in/zone.h) \\ $(wildcard include/config/arch/has/holes/memorymodel.h) \\ include/linux/wait.h \\ include/uapi/linux/wait.h \\ include/linux/numa.h \\ $(wildcard include/config/nodes/shift.h) \\ include/linux/nodemask.h \\ $(wildcard include/config/movable/node.h) \\ include/linux/pageblock-flags.h \\ $(wildcard include/config/hugetlb/page.h) \\ $(wildcard include/config/hugetlb/page/size/variable.h) \\ include/linux/page-flags-layout.h \\ include/generated/bounds.h \\ include/linux/memory_hotplug.h \\ $(wildcard include/config/memory/hotremove.h) \\ $(wildcard include/config/have/arch/nodedata/extension.h) \\ $(wildcard include/config/have/bootmem/info/node.h) \\ include/linux/notifier.h \\ include/linux/errno.h \\ include/uapi/linux/errno.h \\ include/linux/mutex.h \\ $(wildcard include/config/debug/mutexes.h) \\ $(wildcard include/config/mutex/spin/on/owner.h) \\ include/linux/rwsem.h \\ $(wildcard include/config/rwsem/generic/spinlock.h) \\ arch/x86/include/asm/rwsem.h \\ include/linux/srcu.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/rcupdate.h \\ include/linux/rcupdate.h \\ $(wildcard include/config/rcu/torture/test.h) \\ $(wildcard include/config/tree/rcu.h) \\ $(wildcard include/config/tree/preempt/rcu.h) \\ $(wildcard include/config/rcu/trace.h) \\ $(wildcard include/config/preempt/rcu.h) \\ $(wildcard include/config/rcu/stall/common.h) \\ $(wildcard include/config/rcu/user/qs.h) \\ $(wildcard include/config/rcu/nocb/cpu.h) \\ $(wildcard include/config/tiny/rcu.h) \\ $(wildcard include/config/tiny/preempt/rcu.h) \\ $(wildcard include/config/debug/objects/rcu/head.h) \\ include/linux/completion.h \\ include/linux/debugobjects.h \\ $(wildcard include/config/debug/objects.h) \\ $(wildcard include/config/debug/objects/free.h) \\ include/linux/rcutree.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/workqueue.h \\ include/linux/workqueue.h \\ $(wildcard include/config/debug/objects/work.h) \\ $(wildcard include/config/freezer.h) \\ $(wildcard include/config/wq/watchdog.h) \\ include/linux/timer.h \\ $(wildcard include/config/timer/stats.h) \\ $(wildcard include/config/debug/objects/timers.h) \\ include/linux/ktime.h \\ $(wildcard include/config/ktime/scalar.h) \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/jiffies.h \\ include/linux/jiffies.h \\ include/linux/timex.h \\ include/uapi/linux/timex.h \\ include/uapi/linux/param.h \\ arch/x86/include/uapi/asm/param.h \\ include/asm-generic/param.h \\ $(wildcard include/config/hz.h) \\ include/uapi/asm-generic/param.h \\ arch/x86/include/asm/timex.h \\ arch/x86/include/asm/tsc.h \\ $(wildcard include/config/x86/tsc.h) \\ include/linux/timekeeping.h \\ arch/x86/include/asm/mmzone.h \\ arch/x86/include/asm/mmzone_64.h \\ arch/x86/include/asm/smp.h \\ $(wildcard include/config/x86/io/apic.h) \\ $(wildcard include/config/x86/32/smp.h) \\ $(wildcard include/config/debug/nmi/selftest.h) \\ arch/x86/include/asm/mpspec.h \\ $(wildcard include/config/x86/numaq.h) \\ $(wildcard include/config/eisa.h) \\ $(wildcard include/config/x86/mpparse.h) \\ arch/x86/include/asm/mpspec_def.h \\ arch/x86/include/asm/x86_init.h \\ arch/x86/include/uapi/asm/bootparam.h \\ include/linux/screen_info.h \\ include/uapi/linux/screen_info.h \\ include/linux/apm_bios.h \\ include/uapi/linux/apm_bios.h \\ include/linux/edd.h \\ include/uapi/linux/edd.h \\ arch/x86/include/asm/e820.h \\ $(wildcard include/config/efi.h) \\ $(wildcard include/config/hibernation.h) \\ $(wildcard include/config/memtest.h) \\ arch/x86/include/uapi/asm/e820.h \\ $(wildcard include/config/x86/pmem/legacy.h) \\ $(wildcard include/config/intel/txt.h) \\ include/linux/ioport.h \\ arch/x86/include/asm/ist.h \\ arch/x86/include/uapi/asm/ist.h \\ include/video/edid.h \\ $(wildcard include/config/x86.h) \\ include/uapi/video/edid.h \\ arch/x86/include/asm/apicdef.h \\ arch/x86/include/asm/apic.h \\ $(wildcard include/config/x86/x2apic.h) \\ include/linux/pm.h \\ $(wildcard include/config/vt/console/sleep.h) \\ $(wildcard include/config/pm.h) \\ $(wildcard include/config/pm/runtime.h) \\ $(wildcard include/config/pm/generic/domains.h) \\ $(wildcard include/config/pm/clk.h) \\ arch/x86/include/asm/fixmap.h \\ $(wildcard include/config/paravirt/clock.h) \\ $(wildcard include/config/provide/ohci1394/dma/init.h) \\ $(wildcard include/config/x86/visws/apic.h) \\ $(wildcard include/config/pci/mmconfig.h) \\ $(wildcard include/config/x86/intel/mid.h) \\ arch/x86/include/asm/acpi.h \\ $(wildcard include/config/acpi.h) \\ $(wildcard include/config/acpi/numa.h) \\ include/acpi/pdc_intel.h \\ arch/x86/include/asm/numa.h \\ $(wildcard include/config/numa/emu.h) \\ arch/x86/include/asm/topology.h \\ $(wildcard include/config/x86/ht.h) \\ include/asm-generic/topology.h \\ arch/x86/include/asm/mmu.h \\ arch/x86/include/asm/realmode.h \\ $(wildcard include/config/acpi/sleep.h) \\ arch/x86/include/asm/io.h \\ $(wildcard include/config/mtrr.h) \\ include/asm-generic/iomap.h \\ $(wildcard include/config/has/ioport.h) \\ $(wildcard include/config/pci.h) \\ $(wildcard include/config/generic/iomap.h) \\ include/asm-generic/pci_iomap.h \\ $(wildcard include/config/no/generic/pci/ioport/map.h) \\ $(wildcard include/config/generic/pci/iomap.h) \\ include/linux/vmalloc.h \\ $(wildcard include/config/mmu.h) \\ include/linux/rbtree.h \\ include/xen/xen.h \\ $(wildcard include/config/xen/dom0.h) \\ arch/x86/include/asm/pvclock.h \\ include/linux/clocksource.h \\ $(wildcard include/config/arch/clocksource/data.h) \\ $(wildcard include/config/clocksource/watchdog.h) \\ $(wildcard include/config/clksrc/of.h) \\ arch/x86/include/asm/clocksource.h \\ arch/x86/include/asm/pvclock-abi.h \\ arch/x86/include/asm/vsyscall.h \\ arch/x86/include/uapi/asm/vsyscall.h \\ arch/x86/include/asm/vvar.h \\ arch/x86/include/asm/idle.h \\ arch/x86/include/asm/io_apic.h \\ arch/x86/include/asm/irq_vectors.h \\ $(wildcard include/config/have/kvm.h) \\ include/linux/topology.h \\ $(wildcard include/config/use/percpu/numa/node/id.h) \\ $(wildcard include/config/sched/smt.h) \\ include/linux/smp.h \\ $(wildcard include/config/use/generic/smp/helpers.h) \\ include/linux/llist.h \\ $(wildcard include/config/arch/have/nmi/safe/cmpxchg.h) \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/percpu.h \\ include/linux/percpu.h \\ $(wildcard include/config/need/per/cpu/embed/first/chunk.h) \\ $(wildcard include/config/need/per/cpu/page/first/chunk.h) \\ include/linux/sysctl.h \\ $(wildcard include/config/sysctl.h) \\ include/uapi/linux/sysctl.h \\ include/linux/elf.h \\ arch/x86/include/asm/elf.h \\ arch/x86/include/asm/user.h \\ arch/x86/include/asm/user_64.h \\ arch/x86/include/uapi/asm/auxvec.h \\ arch/x86/include/asm/vdso.h \\ include/uapi/linux/elf.h \\ include/uapi/linux/elf-em.h \\ include/linux/kobject.h \\ include/linux/sysfs.h \\ include/linux/kobject_ns.h \\ include/linux/kref.h \\ include/linux/moduleparam.h \\ $(wildcard include/config/alpha.h) \\ $(wildcard include/config/ia64.h) \\ $(wildcard include/config/ppc64.h) \\ include/linux/tracepoint.h \\ include/linux/static_key.h \\ arch/x86/include/asm/module.h \\ $(wildcard include/config/m586.h) \\ $(wildcard include/config/m586tsc.h) \\ $(wildcard include/config/m586mmx.h) \\ $(wildcard include/config/mcore2.h) \\ $(wildcard include/config/m686.h) \\ $(wildcard include/config/mpentiumii.h) \\ $(wildcard include/config/mpentiumiii.h) \\ $(wildcard include/config/mpentiumm.h) \\ $(wildcard include/config/mpentium4.h) \\ $(wildcard include/config/mk6.h) \\ $(wildcard include/config/mk8.h) \\ $(wildcard include/config/melan.h) \\ $(wildcard include/config/mcrusoe.h) \\ $(wildcard include/config/mefficeon.h) \\ $(wildcard include/config/mwinchipc6.h) \\ $(wildcard include/config/mwinchip3d.h) \\ $(wildcard include/config/mcyrixiii.h) \\ $(wildcard include/config/mviac3/2.h) \\ $(wildcard include/config/mviac7.h) \\ $(wildcard include/config/mgeodegx1.h) \\ $(wildcard include/config/mgeode/lx.h) \\ include/asm-generic/module.h \\ $(wildcard include/config/have/mod/arch/specific.h) \\ $(wildcard include/config/modules/use/elf/rel.h) \\ $(wildcard include/config/modules/use/elf/rela.h) \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/openvswitch.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/if_ether.h \\ include/linux/if_ether.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/skbuff.h \\ include/linux/skbuff.h \\ $(wildcard include/config/bridge/netfilter.h) \\ $(wildcard include/config/xfrm.h) \\ $(wildcard include/config/net/sched.h) \\ $(wildcard include/config/net/cls/act.h) \\ $(wildcard include/config/ipv6/ndisc/nodetype.h) \\ $(wildcard include/config/net/dma/rh/kabi.h) \\ $(wildcard include/config/net/rx/busy/poll.h) \\ $(wildcard include/config/xps.h) \\ $(wildcard include/config/network/secmark.h) \\ $(wildcard include/config/network/phy/timestamping.h) \\ $(wildcard include/config/netfilter/xt/target/trace.h) \\ include/linux/kmemcheck.h \\ include/linux/mm_types.h \\ $(wildcard include/config/split/ptlock/cpus.h) \\ $(wildcard include/config/arch/enable/split/pmd/ptlock.h) \\ $(wildcard include/config/transparent/hugepage.h) \\ $(wildcard include/config/have/cmpxchg/double.h) \\ $(wildcard include/config/have/aligned/struct/page.h) \\ $(wildcard include/config/want/page/debug/flags.h) \\ $(wildcard include/config/userfaultfd.h) \\ $(wildcard include/config/aio.h) \\ $(wildcard include/config/mm/owner.h) \\ $(wildcard include/config/mmu/notifier.h) \\ $(wildcard include/config/spapr/tce/iommu.h) \\ $(wildcard include/config/hmm.h) \\ include/linux/auxvec.h \\ include/uapi/linux/auxvec.h \\ include/linux/page-debug-flags.h \\ $(wildcard include/config/page/poisoning.h) \\ $(wildcard include/config/page/guard.h) \\ $(wildcard include/config/page/debug/something/else.h) \\ include/linux/uprobes.h \\ $(wildcard include/config/arch/supports/uprobes.h) \\ $(wildcard include/config/uprobes.h) \\ arch/x86/include/asm/uprobes.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/net.h \\ include/linux/net.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/random.h \\ include/linux/random.h \\ $(wildcard include/config/arch/random.h) \\ include/uapi/linux/random.h \\ include/linux/irqnr.h \\ $(wildcard include/config/generic/hardirqs.h) \\ include/uapi/linux/irqnr.h \\ arch/x86/include/asm/archrandom.h \\ include/linux/fcntl.h \\ include/uapi/linux/fcntl.h \\ arch/x86/include/uapi/asm/fcntl.h \\ include/uapi/asm-generic/fcntl.h \\ include/uapi/linux/net.h \\ include/linux/socket.h \\ arch/x86/include/uapi/asm/socket.h \\ include/uapi/asm-generic/socket.h \\ arch/x86/include/uapi/asm/sockios.h \\ include/uapi/asm-generic/sockios.h \\ include/uapi/linux/sockios.h \\ include/linux/uio.h \\ include/uapi/linux/uio.h \\ include/uapi/linux/socket.h \\ include/linux/textsearch.h \\ include/linux/slab.h \\ $(wildcard include/config/slab/debug.h) \\ $(wildcard include/config/failslab.h) \\ $(wildcard include/config/slob.h) \\ $(wildcard include/config/slab.h) \\ $(wildcard include/config/slub.h) \\ $(wildcard include/config/debug/slab.h) \\ include/linux/slub_def.h \\ $(wildcard include/config/slub/stats.h) \\ $(wildcard include/config/memcg/kmem.h) \\ $(wildcard include/config/slub/debug.h) \\ include/linux/kmemleak.h \\ $(wildcard include/config/debug/kmemleak.h) \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/checksum.h \\ include/net/checksum.h \\ arch/x86/include/asm/uaccess.h \\ $(wildcard include/config/x86/intel/usercopy.h) \\ arch/x86/include/asm/smap.h \\ $(wildcard include/config/x86/smap.h) \\ arch/x86/include/asm/uaccess_64.h \\ arch/x86/include/asm/checksum.h \\ arch/x86/include/asm/checksum_64.h \\ include/linux/dmaengine.h \\ $(wildcard include/config/async/tx/enable/channel/switch.h) \\ $(wildcard include/config/rapidio/dma/engine.h) \\ $(wildcard include/config/dma/engine.h) \\ $(wildcard include/config/async/tx/dma.h) \\ include/linux/device.h \\ $(wildcard include/config/debug/devres.h) \\ $(wildcard include/config/dma/cma.h) \\ $(wildcard include/config/pinctrl.h) \\ $(wildcard include/config/of.h) \\ $(wildcard include/config/devtmpfs.h) \\ $(wildcard include/config/sysfs/deprecated.h) \\ include/linux/klist.h \\ include/linux/pinctrl/devinfo.h \\ include/linux/pinctrl/consumer.h \\ $(wildcard include/config/pinconf.h) \\ include/linux/seq_file.h \\ include/linux/pinctrl/pinctrl-state.h \\ include/linux/ratelimit.h \\ arch/x86/include/asm/device.h \\ $(wildcard include/config/x86/dev/dma/ops.h) \\ $(wildcard include/config/intel/iommu.h) \\ $(wildcard include/config/amd/iommu.h) \\ include/linux/pm_wakeup.h \\ include/linux/scatterlist.h \\ $(wildcard include/config/debug/sg.h) \\ include/linux/mm.h \\ $(wildcard include/config/ppc.h) \\ $(wildcard include/config/parisc.h) \\ $(wildcard include/config/metag.h) \\ $(wildcard include/config/stack/growsup.h) \\ $(wildcard include/config/ksm.h) \\ $(wildcard include/config/shmem.h) \\ $(wildcard include/config/debug/vm/rb.h) \\ $(wildcard include/config/debug/pagealloc.h) \\ $(wildcard include/config/hugetlbfs.h) \\ include/linux/debug_locks.h \\ $(wildcard include/config/debug/locking/api/selftests.h) \\ include/linux/percpu-refcount.h \\ include/linux/bit_spinlock.h \\ include/linux/shrinker.h \\ include/linux/resource.h \\ include/uapi/linux/resource.h \\ arch/x86/include/uapi/asm/resource.h \\ include/asm-generic/resource.h \\ include/uapi/asm-generic/resource.h \\ include/linux/page_ref.h \\ include/linux/page-flags.h \\ $(wildcard include/config/pageflags/extended.h) \\ $(wildcard include/config/arch/uses/pg/uncached.h) \\ $(wildcard include/config/memory/failure.h) \\ $(wildcard include/config/swap.h) \\ arch/x86/include/asm/pgtable.h \\ arch/x86/include/asm/pgtable_64.h \\ arch/x86/include/asm/mm_track.h \\ $(wildcard include/config/track/dirty/pages.h) \\ include/asm-generic/pgtable.h \\ $(wildcard include/config/have/arch/soft/dirty.h) \\ $(wildcard include/config/arch/uses/numa/prot/none.h) \\ $(wildcard include/config/have/arch/huge/vmap.h) \\ include/linux/huge_mm.h \\ include/linux/vmstat.h \\ $(wildcard include/config/vm/event/counters.h) \\ include/linux/vm_event_item.h \\ $(wildcard include/config/migration.h) \\ $(wildcard include/config/memory/balloon.h) \\ $(wildcard include/config/balloon/compaction.h) \\ arch/x86/include/asm/scatterlist.h \\ include/asm-generic/scatterlist.h \\ $(wildcard include/config/need/sg/dma/length.h) \\ include/linux/hrtimer.h \\ $(wildcard include/config/high/res/timers.h) \\ $(wildcard include/config/timerfd.h) \\ include/linux/timerqueue.h \\ include/linux/dma-mapping.h \\ $(wildcard include/config/has/dma.h) \\ $(wildcard include/config/arch/has/dma/set/coherent/mask.h) \\ $(wildcard include/config/have/dma/attrs.h) \\ $(wildcard include/config/need/dma/map/state.h) \\ include/linux/dma-attrs.h \\ include/linux/dma-direction.h \\ arch/x86/include/asm/dma-mapping.h \\ $(wildcard include/config/isa.h) \\ $(wildcard include/config/x86/dma/remap.h) \\ include/linux/dma-debug.h \\ $(wildcard include/config/dma/api/debug.h) \\ arch/x86/include/asm/swiotlb.h \\ $(wildcard include/config/swiotlb.h) \\ include/linux/swiotlb.h \\ include/asm-generic/dma-coherent.h \\ $(wildcard include/config/have/generic/dma/coherent.h) \\ include/linux/dma-contiguous.h \\ $(wildcard include/config/cma/areas.h) \\ include/asm-generic/dma-mapping-common.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/netdev_features.h \\ include/linux/netdev_features.h \\ include/linux/sched.h \\ $(wildcard include/config/sched/debug.h) \\ $(wildcard include/config/no/hz/common.h) \\ $(wildcard include/config/lockup/detector.h) \\ $(wildcard include/config/detect/hung/task.h) \\ $(wildcard include/config/core/dump/default/elf/headers.h) \\ $(wildcard include/config/sched/autogroup.h) \\ $(wildcard include/config/virt/cpu/accounting/native.h) \\ $(wildcard include/config/bsd/process/acct.h) \\ $(wildcard include/config/taskstats.h) \\ $(wildcard include/config/audit.h) \\ $(wildcard include/config/cgroups.h) \\ $(wildcard include/config/inotify/user.h) \\ $(wildcard include/config/fanotify.h) \\ $(wildcard include/config/epoll.h) \\ $(wildcard include/config/posix/mqueue.h) \\ $(wildcard include/config/keys.h) \\ $(wildcard include/config/perf/events.h) \\ $(wildcard include/config/sched/info.h) \\ $(wildcard include/config/task/delay/acct.h) \\ $(wildcard include/config/schedstats.h) \\ $(wildcard include/config/sched/mc.h) \\ $(wildcard include/config/fair/group/sched.h) \\ $(wildcard include/config/rt/group/sched.h) \\ $(wildcard include/config/cgroup/sched.h) \\ $(wildcard include/config/blk/dev/io/trace.h) \\ $(wildcard include/config/rcu/boost.h) \\ $(wildcard include/config/compat/brk.h) \\ $(wildcard include/config/virt/cpu/accounting/gen.h) \\ $(wildcard include/config/sysvipc.h) \\ $(wildcard include/config/auditsyscall.h) \\ $(wildcard include/config/rt/mutexes.h) \\ $(wildcard include/config/block.h) \\ $(wildcard include/config/task/xacct.h) \\ $(wildcard include/config/cpusets.h) \\ $(wildcard include/config/futex.h) \\ $(wildcard include/config/fault/injection.h) \\ $(wildcard include/config/latencytop.h) \\ $(wildcard include/config/function/graph/tracer.h) \\ $(wildcard include/config/have/hw/breakpoint.h) \\ $(wildcard include/config/bcache.h) \\ $(wildcard include/config/arch/want/batched/unmap/tlb/flush.h) \\ $(wildcard include/config/have/unstable/sched/clock.h) \\ $(wildcard include/config/irq/time/accounting.h) \\ $(wildcard include/config/no/hz/full.h) \\ include/uapi/linux/sched.h \\ include/linux/capability.h \\ include/uapi/linux/capability.h \\ include/linux/plist.h \\ $(wildcard include/config/debug/pi/list.h) \\ include/linux/cputime.h \\ arch/x86/include/asm/cputime.h \\ include/asm-generic/cputime.h \\ $(wildcard include/config/virt/cpu/accounting.h) \\ include/asm-generic/cputime_nsecs.h \\ include/linux/sem.h \\ include/uapi/linux/sem.h \\ include/linux/ipc.h \\ include/uapi/linux/ipc.h \\ arch/x86/include/uapi/asm/ipcbuf.h \\ include/uapi/asm-generic/ipcbuf.h \\ arch/x86/include/uapi/asm/sembuf.h \\ include/linux/signal.h \\ $(wildcard include/config/old/sigaction.h) \\ include/uapi/linux/signal.h \\ arch/x86/include/asm/signal.h \\ arch/x86/include/uapi/asm/signal.h \\ include/uapi/asm-generic/signal-defs.h \\ arch/x86/include/uapi/asm/siginfo.h \\ include/asm-generic/siginfo.h \\ include/uapi/asm-generic/siginfo.h \\ include/linux/pid.h \\ include/linux/proportions.h \\ include/linux/percpu_counter.h \\ include/linux/seccomp.h \\ $(wildcard include/config/seccomp.h) \\ $(wildcard include/config/seccomp/filter.h) \\ include/uapi/linux/seccomp.h \\ arch/x86/include/asm/seccomp.h \\ arch/x86/include/asm/seccomp_64.h \\ include/uapi/linux/unistd.h \\ arch/x86/include/asm/unistd.h \\ $(wildcard include/config/x86/x32/abi.h) \\ arch/x86/include/uapi/asm/unistd.h \\ arch/x86/include/generated/uapi/asm/unistd_64.h \\ arch/x86/include/generated/asm/unistd_64_x32.h \\ arch/x86/include/asm/ia32_unistd.h \\ arch/x86/include/generated/asm/unistd_32_ia32.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/rculist.h \\ include/linux/rculist.h \\ include/linux/rtmutex.h \\ $(wildcard include/config/debug/rt/mutexes.h) \\ include/linux/task_io_accounting.h \\ $(wildcard include/config/task/io/accounting.h) \\ include/linux/latencytop.h \\ include/linux/cred.h \\ $(wildcard include/config/debug/credentials.h) \\ $(wildcard include/config/security.h) \\ include/linux/key.h \\ include/linux/assoc_array.h \\ $(wildcard include/config/associative/array.h) \\ include/linux/selinux.h \\ $(wildcard include/config/security/selinux.h) \\ include/net/flow_keys.h \\ include/linux/in6.h \\ include/uapi/linux/in6.h \\ include/uapi/linux/libc-compat.h \\ include/linux/jhash.h \\ include/linux/unaligned/packed_struct.h \\ include/uapi/linux/if_ether.h \\ include/linux/tcp.h \\ $(wildcard include/config/tcp/md5sig.h) \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/sock.h \\ include/net/sock.h \\ $(wildcard include/config/net.h) \\ $(wildcard include/config/ipv6.h) \\ $(wildcard include/config/rps.h) \\ $(wildcard include/config/netprio/cgroup.h) \\ $(wildcard include/config/inet.h) \\ include/linux/hardirq.h \\ include/linux/preempt_mask.h \\ arch/x86/include/asm/hardirq.h \\ $(wildcard include/config/x86/thermal/vector.h) \\ $(wildcard include/config/x86/mce/threshold.h) \\ $(wildcard include/config/x86/mce/amd.h) \\ include/linux/irq.h \\ $(wildcard include/config/generic/pending/irq.h) \\ $(wildcard include/config/hardirqs/sw/resend.h) \\ $(wildcard include/config/generic/irq/legacy/alloc/hwirq.h) \\ include/linux/irqreturn.h \\ arch/x86/include/asm/irq.h \\ arch/x86/include/asm/irq_regs.h \\ include/linux/irqdesc.h \\ $(wildcard include/config/irq/preflow/fasteoi.h) \\ $(wildcard include/config/sparse/irq.h) \\ arch/x86/include/asm/hw_irq.h \\ $(wildcard include/config/irq/remap.h) \\ include/linux/profile.h \\ $(wildcard include/config/profiling.h) \\ arch/x86/include/asm/sections.h \\ $(wildcard include/config/debug/rodata.h) \\ include/asm-generic/sections.h \\ include/linux/ftrace_irq.h \\ $(wildcard include/config/ftrace/nmi/enter.h) \\ include/linux/vtime.h \\ include/linux/context_tracking_state.h \\ include/linux/list_nulls.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/netdevice.h \\ include/linux/netdevice.h \\ $(wildcard include/config/dcb.h) \\ $(wildcard include/config/wlan.h) \\ $(wildcard include/config/ax25.h) \\ $(wildcard include/config/mac80211/mesh.h) \\ $(wildcard include/config/net/ipip.h) \\ $(wildcard include/config/net/ipgre.h) \\ $(wildcard include/config/ipv6/sit.h) \\ $(wildcard include/config/ipv6/tunnel.h) \\ $(wildcard include/config/netpoll.h) \\ $(wildcard include/config/bql.h) \\ $(wildcard include/config/rfs/accel.h) \\ $(wildcard include/config/fcoe.h) \\ $(wildcard include/config/net/poll/controller.h) \\ $(wildcard include/config/libfcoe.h) \\ $(wildcard include/config/wireless/ext.h) \\ $(wildcard include/config/vlan/8021q.h) \\ $(wildcard include/config/net/dsa.h) \\ $(wildcard include/config/net/dsa/tag/dsa.h) \\ $(wildcard include/config/net/dsa/tag/trailer.h) \\ $(wildcard include/config/netpoll/trap.h) \\ include/linux/pm_qos.h \\ include/linux/miscdevice.h \\ include/uapi/linux/major.h \\ include/linux/delay.h \\ arch/x86/include/asm/delay.h \\ include/asm-generic/delay.h \\ include/linux/prefetch.h \\ include/linux/dynamic_queue_limits.h \\ include/linux/ethtool.h \\ include/linux/compat.h \\ $(wildcard include/config/compat/old/sigaction.h) \\ $(wildcard include/config/odd/rt/sigaction.h) \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/if.h \\ include/uapi/linux/if.h \\ include/uapi/linux/hdlc/ioctl.h \\ include/linux/fs.h \\ $(wildcard include/config/fs/posix/acl.h) \\ $(wildcard include/config/quota.h) \\ $(wildcard include/config/fsnotify.h) \\ $(wildcard include/config/ima.h) \\ $(wildcard include/config/debug/writecount.h) \\ $(wildcard include/config/file/locking.h) \\ $(wildcard include/config/fs/dax.h) \\ include/linux/kdev_t.h \\ include/uapi/linux/kdev_t.h \\ include/linux/dcache.h \\ include/linux/rculist_bl.h \\ include/linux/list_bl.h \\ include/linux/lockref.h \\ $(wildcard include/config/cmpxchg/lockref.h) \\ include/linux/path.h \\ include/linux/radix-tree.h \\ include/linux/semaphore.h \\ include/uapi/linux/fiemap.h \\ include/linux/migrate_mode.h \\ include/linux/percpu-rwsem.h \\ include/linux/blk_types.h \\ $(wildcard include/config/blk/cgroup.h) \\ $(wildcard include/config/blk/dev/integrity.h) \\ include/uapi/linux/fs.h \\ include/uapi/linux/limits.h \\ include/linux/quota.h \\ $(wildcard include/config/quota/netlink/interface.h) \\ include/uapi/linux/dqblk_xfs.h \\ include/linux/dqblk_v1.h \\ include/linux/dqblk_v2.h \\ include/linux/dqblk_qtree.h \\ include/linux/projid.h \\ include/uapi/linux/quota.h \\ include/linux/nfs_fs_i.h \\ include/uapi/linux/aio_abi.h \\ arch/x86/include/asm/compat.h \\ arch/x86/include/asm/user32.h \\ include/uapi/linux/ethtool.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/net_namespace.h \\ $(wildcard include/config/net/ns.h) \\ include/net/net_namespace.h \\ $(wildcard include/config/ip/sctp.h) \\ $(wildcard include/config/ip/dccp.h) \\ $(wildcard include/config/netfilter.h) \\ $(wildcard include/config/nf/tables.h) \\ $(wildcard include/config/wext/core.h) \\ $(wildcard include/config/ieee802154/6lowpan.h) \\ include/linux/idr.h \\ include/net/netns/core.h \\ include/net/netns/mib.h \\ $(wildcard include/config/xfrm/statistics.h) \\ include/net/snmp.h \\ include/uapi/linux/snmp.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/u64_stats_sync.h \\ include/net/netns/unix.h \\ include/net/netns/packet.h \\ include/net/netns/ipv4.h \\ $(wildcard include/config/ip/multiple/tables.h) \\ $(wildcard include/config/ip/route/classid.h) \\ $(wildcard include/config/ip/mroute.h) \\ $(wildcard include/config/ip/mroute/multiple/tables.h) \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/inet_frag.h \\ include/net/inet_frag.h \\ include/net/netns/ipv6.h \\ $(wildcard include/config/ipv6/multiple/tables.h) \\ $(wildcard include/config/ipv6/mroute.h) \\ $(wildcard include/config/ipv6/mroute/multiple/tables.h) \\ include/net/dst_ops.h \\ include/net/netns/ieee802154_6lowpan.h \\ include/net/netns/sctp.h \\ include/net/netns/dccp.h \\ include/net/netns/netfilter.h \\ include/linux/proc_fs.h \\ include/linux/netfilter.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/in.h \\ include/linux/in.h \\ include/uapi/linux/in.h \\ include/uapi/linux/netfilter.h \\ include/net/flow.h \\ include/linux/netfilter/nf_conntrack_zones_common.h \\ include/uapi/linux/netfilter/nf_conntrack_tuple_common.h \\ include/net/netns/x_tables.h \\ $(wildcard include/config/bridge/nf/ebtables.h) \\ include/net/netns/conntrack.h \\ $(wildcard include/config/nf/conntrack/proc/compat.h) \\ include/linux/netfilter/nf_conntrack_tcp.h \\ include/uapi/linux/netfilter/nf_conntrack_tcp.h \\ include/net/netns/nftables.h \\ include/net/netns/xfrm.h \\ include/uapi/linux/xfrm.h \\ include/net/flowcache.h \\ include/linux/interrupt.h \\ $(wildcard include/config/irq/forced/threading.h) \\ $(wildcard include/config/generic/irq/probe.h) \\ include/linux/seq_file_net.h \\ include/net/dsa.h \\ include/net/dcbnl.h \\ include/uapi/linux/dcbnl.h \\ include/net/netprio_cgroup.h \\ include/linux/cgroup.h \\ $(wildcard include/config/cgroup/pids.h) \\ include/uapi/linux/cgroupstats.h \\ include/uapi/linux/taskstats.h \\ include/linux/prio_heap.h \\ include/linux/xattr.h \\ include/uapi/linux/xattr.h \\ include/linux/cgroup_subsys.h \\ $(wildcard include/config/cgroup/debug.h) \\ $(wildcard include/config/cgroup/cpuacct.h) \\ $(wildcard include/config/cgroup/device.h) \\ $(wildcard include/config/cgroup/freezer.h) \\ $(wildcard include/config/net/cls/cgroup.h) \\ $(wildcard include/config/cgroup/perf.h) \\ $(wildcard include/config/cgroup/hugetlb.h) \\ $(wildcard include/config/cgroup/bcache.h) \\ include/uapi/linux/neighbour.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/netlink.h \\ include/linux/netlink.h \\ include/net/scm.h \\ $(wildcard include/config/security/network.h) \\ include/linux/security.h \\ $(wildcard include/config/security/path.h) \\ $(wildcard include/config/security/network/xfrm.h) \\ $(wildcard include/config/security/securelevel.h) \\ $(wildcard include/config/securelevel.h) \\ $(wildcard include/config/securityfs.h) \\ $(wildcard include/config/security/yama.h) \\ include/linux/nsproxy.h \\ include/uapi/linux/netlink.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/netlink.h \\ $(wildcard include/config/have/efficient/unaligned/access.h) \\ include/net/netlink.h \\ include/linux/in6.h \\ include/uapi/linux/netdevice.h \\ include/uapi/linux/if_packet.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/if_link.h \\ include/linux/if_link.h \\ include/uapi/linux/if_link.h \\ include/uapi/linux/if_bonding.h \\ include/uapi/linux/pkt_cls.h \\ $(wildcard include/config/net/cls/ind.h) \\ include/uapi/linux/pkt_sched.h \\ include/linux/if_bridge.h \\ include/uapi/linux/if_bridge.h \\ include/linux/uaccess.h \\ include/linux/page_counter.h \\ include/linux/memcontrol.h \\ $(wildcard include/config/memcg/swap.h) \\ include/linux/aio.h \\ include/linux/filter.h \\ $(wildcard include/config/bpf/jit.h) \\ include/uapi/linux/filter.h \\ include/linux/rculist_nulls.h \\ include/linux/poll.h \\ include/uapi/linux/poll.h \\ arch/x86/include/uapi/asm/poll.h \\ include/uapi/asm-generic/poll.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/dst.h \\ include/net/dst.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/rtnetlink.h \\ include/linux/rtnetlink.h \\ include/uapi/linux/rtnetlink.h \\ include/uapi/linux/if_addr.h \\ include/net/neighbour.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/rtnetlink.h \\ include/net/rtnetlink.h \\ include/net/tcp_states.h \\ include/net/inet_connection_sock.h \\ include/net/inet_sock.h \\ include/net/request_sock.h \\ include/net/netns/hash.h \\ include/net/inet_timewait_sock.h \\ include/net/timewait_sock.h \\ include/uapi/linux/tcp.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/udp.h \\ include/linux/udp.h \\ include/uapi/linux/udp.h \\ include/linux/ipv6.h \\ $(wildcard include/config/ipv6/router/pref.h) \\ $(wildcard include/config/ipv6/route/info.h) \\ $(wildcard include/config/ipv6/optimistic/dad.h) \\ $(wildcard include/config/ipv6/mip6.h) \\ $(wildcard include/config/ipv6/subtrees.h) \\ include/uapi/linux/ipv6.h \\ include/linux/icmpv6.h \\ include/uapi/linux/icmpv6.h \\ include/linux/sctp.h \\ include/uapi/linux/sctp.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/ip.h \\ include/net/ip.h \\ include/linux/ip.h \\ include/uapi/linux/ip.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/route.h \\ include/net/route.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/inetpeer.h \\ include/net/inetpeer.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/ipv6.h \\ include/net/ipv6.h \\ include/net/if_inet6.h \\ include/net/ndisc.h \\ include/linux/if_arp.h \\ $(wildcard include/config/firewire/net.h) \\ include/uapi/linux/if_arp.h \\ include/linux/hash.h \\ include/uapi/linux/in_route.h \\ include/uapi/linux/route.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/netfilter/nf_conntrack_core.h \\ include/net/netfilter/nf_conntrack_core.h \\ include/net/netfilter/nf_conntrack_l3proto.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/netfilter/nf_conntrack.h \\ include/net/netfilter/nf_conntrack.h \\ $(wildcard include/config/netfilter/debug.h) \\ $(wildcard include/config/nf/conntrack/secmark.h) \\ include/linux/netfilter/nf_conntrack_common.h \\ include/uapi/linux/netfilter/nf_conntrack_common.h \\ include/linux/netfilter/nf_conntrack_dccp.h \\ include/net/netfilter/nf_conntrack_tuple.h \\ include/linux/netfilter/x_tables.h \\ include/uapi/linux/netfilter/x_tables.h \\ include/linux/netfilter_ipv4.h \\ include/uapi/linux/netfilter_ipv4.h \\ include/net/compat.h \\ include/uapi/linux/netfilter/nf_conntrack_tuple_common.h \\ include/uapi/linux/netfilter/nf_conntrack_sctp.h \\ include/linux/netfilter/nf_conntrack_proto_gre.h \\ include/net/netfilter/ipv6/nf_conntrack_icmpv6.h \\ include/net/netfilter/ipv4/nf_conntrack_ipv4.h \\ include/net/netfilter/ipv6/nf_conntrack_ipv6.h \\ include/net/netfilter/nf_conntrack_l4proto.h \\ $(wildcard include/config/nf/ct/netlink/timeout.h) \\ include/net/netns/generic.h \\ include/net/netfilter/nf_conntrack_ecache.h \\ $(wildcard include/config/nf/conntrack/events.h) \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/netfilter/nf_conntrack_expect.h \\ include/net/netfilter/nf_conntrack_expect.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/netfilter/nf_conntrack_zones.h \\ include/net/netfilter/nf_conntrack_zones.h \\ include/net/netfilter/nf_conntrack_extend.h \\ $(wildcard include/config/nf/nat.h) \\ $(wildcard include/config/nf/conntrack/timestamp.h) \\ $(wildcard include/config/nf/conntrack/timeout.h) \\ $(wildcard include/config/netfilter/synproxy.h) \\ include/net/netfilter/nf_conntrack_helper.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/netfilter/nf_conntrack_labels.h \\ include/net/netfilter/nf_conntrack_labels.h \\ include/uapi/linux/netfilter/xt_connlabel.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/netfilter/nf_conntrack_seqadj.h \\ include/net/netfilter/nf_conntrack_seqadj.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/netfilter/ipv6/nf_defrag_ipv6.h \\ include/net/netfilter/ipv6/nf_defrag_ipv6.h \\ include/uapi/linux/netfilter/nf_nat.h \\ include/net/netfilter/nf_nat_core.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/netfilter/nf_nat.h \\ include/net/netfilter/nf_nat.h \\ $(wildcard include/config/nf/nat/pptp.h) \\ $(wildcard include/config/ip/nf/target/masquerade.h) \\ $(wildcard include/config/ip6/nf/target/masquerade.h) \\ include/linux/netfilter/nf_conntrack_pptp.h \\ include/net/netfilter/nf_nat_l3proto.h \\ /root/openvswitch-2.7.2/datapath/linux/../datapath.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/ip_tunnels.h \\ include/net/ip_tunnels.h \\ $(wildcard include/config/dst/cache.h) \\ $(wildcard include/config/ipv6/sit/6rd.h) \\ include/linux/if_tunnel.h \\ include/uapi/linux/if_tunnel.h \\ include/net/dsfield.h \\ include/net/gro_cells.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/inet_ecn.h \\ include/net/inet_ecn.h \\ include/net/lwtunnel.h \\ $(wildcard include/config/lwtunnel.h) \\ include/uapi/linux/lwtunnel.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/dst_cache.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/ip6_fib.h \\ include/net/ip6_fib.h \\ include/linux/ipv6_route.h \\ include/uapi/linux/ipv6_route.h \\ include/net/dst_cache.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/ip6_route.h \\ include/net/ip6_route.h \\ /root/openvswitch-2.7.2/datapath/linux/../compat.h \\ include/net/xfrm.h \\ $(wildcard include/config/xfrm/sub/policy.h) \\ $(wildcard include/config/xfrm/migrate.h) \\ include/uapi/linux/pfkeyv2.h \\ include/uapi/linux/ipsec.h \\ include/linux/audit.h \\ include/linux/ptrace.h \\ include/uapi/linux/ptrace.h \\ include/uapi/linux/audit.h \\ $(wildcard include/config/change.h) \\ arch/x86/include/asm/syscall.h \\ arch/x86/include/asm/asm-offsets.h \\ include/generated/asm-offsets.h \\ /root/openvswitch-2.7.2/datapath/linux/../flow.h \\ include/linux/flex_array.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/linux/reciprocal_div.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/include/net/dst_metadata.h \\ include/net/dst_metadata.h \\ /root/openvswitch-2.7.2/datapath/linux/../flow_table.h \\ /root/openvswitch-2.7.2/datapath/linux/../conntrack.h \\ /root/openvswitch-2.7.2/datapath/linux/../flow.h \\ /root/openvswitch-2.7.2/datapath/linux/../flow_netlink.h \\ /root/openvswitch-2.7.2/datapath/linux/compat/gso.h \\ /root/openvswitch-2.7.2/datapath/linux/conntrack.o: $(deps_/root/openvswitch-2.7.2/datapath/linux/conntrack.o) $(deps_/root/openvswitch-2.7.2/datapath/linux/conntrack.o): ",16330,True,4402.059091300921,median "cmd_/home/zrd/openvswitch-2.5.0/datapath/linux/lisp.o := gcc -Wp,-MD,/home/zrd/openvswitch-2.5.0/datapath/linux/.lisp.o.d -nostdinc -isystem /usr/lib/gcc/i686-linux-gnu/5/include -I/home/zrd/openvswitch-2.5.0/include -I/home/zrd/openvswitch-2.5.0/datapath/linux/compat -I/home/zrd/openvswitch-2.5.0/datapath/linux/compat/include -I./arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m32 -msoft-float -mregparm=3 -freg-struct-return -fno-pic -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -DVERSION=\\""2.5.0\\"" -I/home/zrd/openvswitch-2.5.0/datapath/linux/.. -I/home/zrd/openvswitch-2.5.0/datapath/linux/.. -g -include /home/zrd/openvswitch-2.5.0/datapath/linux/kcompat.h -DMODULE -D""KBUILD_STR(s)=\\#s"" -D""KBUILD_BASENAME=KBUILD_STR(lisp)"" -D""KBUILD_MODNAME=KBUILD_STR(openvswitch)"" -c -o /home/zrd/openvswitch-2.5.0/datapath/linux/.tmp_lisp.o /home/zrd/openvswitch-2.5.0/datapath/linux/lisp.c source_/home/zrd/openvswitch-2.5.0/datapath/linux/lisp.o := /home/zrd/openvswitch-2.5.0/datapath/linux/lisp.c deps_/home/zrd/openvswitch-2.5.0/datapath/linux/lisp.o := \\ /home/zrd/openvswitch-2.5.0/datapath/linux/kcompat.h \\ include/generated/uapi/linux/version.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/in.h \\ include/linux/in.h \\ include/linux/errno.h \\ include/uapi/linux/errno.h \\ arch/x86/include/uapi/asm/errno.h \\ include/uapi/asm-generic/errno.h \\ include/uapi/asm-generic/errno-base.h \\ include/uapi/linux/in.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/types.h \\ include/linux/types.h \\ $(wildcard include/config/uid16.h) \\ $(wildcard include/config/lbdaf.h) \\ $(wildcard include/config/arch/dma/addr/t/64bit.h) \\ $(wildcard include/config/phys/addr/t/64bit.h) \\ $(wildcard include/config/64bit.h) \\ include/uapi/linux/types.h \\ arch/x86/include/uapi/asm/types.h \\ include/uapi/asm-generic/types.h \\ include/asm-generic/int-ll64.h \\ include/uapi/asm-generic/int-ll64.h \\ arch/x86/include/uapi/asm/bitsperlong.h \\ include/asm-generic/bitsperlong.h \\ include/uapi/asm-generic/bitsperlong.h \\ include/uapi/linux/posix_types.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/stddef.h \\ include/linux/stddef.h \\ include/uapi/linux/stddef.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/compiler.h \\ include/linux/compiler.h \\ $(wildcard include/config/sparse/rcu/pointer.h) \\ $(wildcard include/config/trace/branch/profiling.h) \\ $(wildcard include/config/profile/all/branches.h) \\ $(wildcard include/config/enable/must/check.h) \\ $(wildcard include/config/enable/warn/deprecated.h) \\ $(wildcard include/config/kprobes.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/compiler-gcc.h \\ include/linux/compiler-gcc.h \\ $(wildcard include/config/arch/supports/optimized/inlining.h) \\ $(wildcard include/config/optimize/inlining.h) \\ $(wildcard include/config/gcov/kernel.h) \\ $(wildcard include/config/arch/use/builtin/bswap.h) \\ arch/x86/include/asm/posix_types.h \\ $(wildcard include/config/x86/32.h) \\ arch/x86/include/uapi/asm/posix_types_32.h \\ include/uapi/asm-generic/posix_types.h \\ include/uapi/linux/libc-compat.h \\ include/linux/socket.h \\ $(wildcard include/config/proc/fs.h) \\ $(wildcard include/config/compat.h) \\ arch/x86/include/uapi/asm/socket.h \\ include/uapi/asm-generic/socket.h \\ arch/x86/include/uapi/asm/sockios.h \\ include/uapi/asm-generic/sockios.h \\ include/uapi/linux/sockios.h \\ include/linux/uio.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/kernel.h \\ include/linux/kernel.h \\ $(wildcard include/config/preempt/voluntary.h) \\ $(wildcard include/config/debug/atomic/sleep.h) \\ $(wildcard include/config/mmu.h) \\ $(wildcard include/config/prove/locking.h) \\ $(wildcard include/config/panic/timeout.h) \\ $(wildcard include/config/tracing.h) \\ $(wildcard include/config/ftrace/mcount/record.h) \\ /usr/lib/gcc/i686-linux-gnu/5/include/stdarg.h \\ include/linux/linkage.h \\ include/linux/stringify.h \\ include/linux/export.h \\ $(wildcard include/config/have/underscore/symbol/prefix.h) \\ $(wildcard include/config/modules.h) \\ $(wildcard include/config/modversions.h) \\ $(wildcard include/config/unused/symbols.h) \\ arch/x86/include/asm/linkage.h \\ $(wildcard include/config/x86/64.h) \\ $(wildcard include/config/x86/alignment/16.h) \\ include/linux/bitops.h \\ arch/x86/include/asm/bitops.h \\ $(wildcard include/config/x86/cmov.h) \\ arch/x86/include/asm/alternative.h \\ $(wildcard include/config/smp.h) \\ $(wildcard include/config/paravirt.h) \\ arch/x86/include/asm/asm.h \\ arch/x86/include/asm/ptrace.h \\ $(wildcard include/config/x86/debugctlmsr.h) \\ arch/x86/include/asm/segment.h \\ $(wildcard include/config/cc/stackprotector.h) \\ $(wildcard include/config/x86/32/lazy/gs.h) \\ include/uapi/linux/const.h \\ arch/x86/include/asm/page_types.h \\ $(wildcard include/config/physical/start.h) \\ $(wildcard include/config/physical/align.h) \\ arch/x86/include/asm/page_32_types.h \\ $(wildcard include/config/highmem4g.h) \\ $(wildcard include/config/highmem64g.h) \\ $(wildcard include/config/page/offset.h) \\ $(wildcard include/config/x86/pae.h) \\ arch/x86/include/uapi/asm/ptrace.h \\ arch/x86/include/uapi/asm/ptrace-abi.h \\ arch/x86/include/asm/processor-flags.h \\ $(wildcard include/config/vm86.h) \\ arch/x86/include/uapi/asm/processor-flags.h \\ arch/x86/include/asm/paravirt_types.h \\ $(wildcard include/config/x86/local/apic.h) \\ $(wildcard include/config/pgtable/levels.h) \\ $(wildcard include/config/queued/spinlocks.h) \\ $(wildcard include/config/paravirt/debug.h) \\ arch/x86/include/asm/desc_defs.h \\ arch/x86/include/asm/kmap_types.h \\ $(wildcard include/config/debug/highmem.h) \\ include/asm-generic/kmap_types.h \\ arch/x86/include/asm/pgtable_types.h \\ $(wildcard include/config/kmemcheck.h) \\ $(wildcard include/config/mem/soft/dirty.h) \\ arch/x86/include/asm/pgtable_32_types.h \\ $(wildcard include/config/highmem.h) \\ arch/x86/include/asm/pgtable-3level_types.h \\ include/asm-generic/pgtable-nopud.h \\ arch/x86/include/asm/spinlock_types.h \\ $(wildcard include/config/paravirt/spinlocks.h) \\ $(wildcard include/config/nr/cpus.h) \\ include/asm-generic/qspinlock_types.h \\ include/asm-generic/qrwlock_types.h \\ include/asm-generic/ptrace.h \\ arch/x86/include/asm/cpufeature.h \\ $(wildcard include/config/x86/feature/names.h) \\ $(wildcard include/config/x86/debug/static/cpu/has.h) \\ arch/x86/include/asm/required-features.h \\ $(wildcard include/config/x86/minimum/cpu/family.h) \\ $(wildcard include/config/math/emulation.h) \\ $(wildcard include/config/x86/cmpxchg64.h) \\ $(wildcard include/config/x86/use/3dnow.h) \\ $(wildcard include/config/x86/p6/nop.h) \\ $(wildcard include/config/matom.h) \\ arch/x86/include/asm/disabled-features.h \\ $(wildcard include/config/x86/intel/mpx.h) \\ arch/x86/include/asm/rmwcc.h \\ arch/x86/include/asm/barrier.h \\ $(wildcard include/config/x86/ppro/fence.h) \\ arch/x86/include/asm/nops.h \\ $(wildcard include/config/mk7.h) \\ include/asm-generic/bitops/fls64.h \\ include/asm-generic/bitops/find.h \\ $(wildcard include/config/generic/find/first/bit.h) \\ include/asm-generic/bitops/sched.h \\ arch/x86/include/asm/arch_hweight.h \\ include/asm-generic/bitops/const_hweight.h \\ include/asm-generic/bitops/le.h \\ arch/x86/include/uapi/asm/byteorder.h \\ include/linux/byteorder/little_endian.h \\ include/uapi/linux/byteorder/little_endian.h \\ include/linux/swab.h \\ include/uapi/linux/swab.h \\ arch/x86/include/uapi/asm/swab.h \\ include/linux/byteorder/generic.h \\ include/asm-generic/bitops/ext2-atomic-setbit.h \\ include/linux/log2.h \\ $(wildcard include/config/arch/has/ilog2/u32.h) \\ $(wildcard include/config/arch/has/ilog2/u64.h) \\ include/linux/typecheck.h \\ include/linux/printk.h \\ $(wildcard include/config/message/loglevel/default.h) \\ $(wildcard include/config/early/printk.h) \\ $(wildcard include/config/printk.h) \\ $(wildcard include/config/dynamic/debug.h) \\ include/linux/init.h \\ $(wildcard include/config/broken/rodata.h) \\ $(wildcard include/config/lto.h) \\ include/linux/kern_levels.h \\ include/linux/cache.h \\ $(wildcard include/config/arch/has/cache/line/size.h) \\ include/uapi/linux/kernel.h \\ include/uapi/linux/sysinfo.h \\ arch/x86/include/asm/cache.h \\ $(wildcard include/config/x86/l1/cache/shift.h) \\ $(wildcard include/config/x86/internode/cache/shift.h) \\ $(wildcard include/config/x86/vsmp.h) \\ include/linux/dynamic_debug.h \\ arch/x86/include/asm/div64.h \\ include/uapi/linux/uio.h \\ include/uapi/linux/socket.h \\ include/linux/module.h \\ $(wildcard include/config/sysfs.h) \\ $(wildcard include/config/module/sig.h) \\ $(wildcard include/config/modules/tree/lookup.h) \\ $(wildcard include/config/generic/bug.h) \\ $(wildcard include/config/kallsyms.h) \\ $(wildcard include/config/tracepoints.h) \\ $(wildcard include/config/event/tracing.h) \\ $(wildcard include/config/livepatch.h) \\ $(wildcard include/config/module/unload.h) \\ $(wildcard include/config/constructors.h) \\ $(wildcard include/config/debug/set/module/ronx.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/list.h \\ include/linux/list.h \\ $(wildcard include/config/debug/list.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/poison.h \\ include/linux/poison.h \\ $(wildcard include/config/illegal/pointer/value.h) \\ include/linux/stat.h \\ arch/x86/include/uapi/asm/stat.h \\ include/uapi/linux/stat.h \\ include/linux/time.h \\ $(wildcard include/config/arch/uses/gettimeoffset.h) \\ include/linux/seqlock.h \\ $(wildcard include/config/debug/lock/alloc.h) \\ include/linux/spinlock.h \\ $(wildcard include/config/debug/spinlock.h) \\ $(wildcard include/config/generic/lockbreak.h) \\ $(wildcard include/config/preempt.h) \\ include/linux/preempt.h \\ $(wildcard include/config/preempt/count.h) \\ $(wildcard include/config/debug/preempt.h) \\ $(wildcard include/config/preempt/tracer.h) \\ $(wildcard include/config/preempt/notifiers.h) \\ arch/x86/include/asm/preempt.h \\ arch/x86/include/asm/percpu.h \\ $(wildcard include/config/x86/64/smp.h) \\ include/asm-generic/percpu.h \\ $(wildcard include/config/have/setup/per/cpu/area.h) \\ include/linux/threads.h \\ $(wildcard include/config/base/small.h) \\ include/linux/percpu-defs.h \\ $(wildcard include/config/debug/force/weak/per/cpu.h) \\ include/linux/thread_info.h \\ $(wildcard include/config/debug/stack/usage.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/bug.h \\ include/linux/bug.h \\ arch/x86/include/asm/bug.h \\ $(wildcard include/config/debug/bugverbose.h) \\ include/asm-generic/bug.h \\ $(wildcard include/config/bug.h) \\ $(wildcard include/config/generic/bug/relative/pointers.h) \\ arch/x86/include/asm/thread_info.h \\ $(wildcard include/config/ia32/emulation.h) \\ arch/x86/include/asm/page.h \\ arch/x86/include/asm/page_32.h \\ $(wildcard include/config/debug/virtual.h) \\ $(wildcard include/config/flatmem.h) \\ $(wildcard include/config/x86/3dnow.h) \\ include/linux/string.h \\ $(wildcard include/config/binary/printf.h) \\ include/uapi/linux/string.h \\ arch/x86/include/asm/string.h \\ arch/x86/include/asm/string_32.h \\ include/linux/range.h \\ include/asm-generic/memory_model.h \\ $(wildcard include/config/discontigmem.h) \\ $(wildcard include/config/sparsemem/vmemmap.h) \\ $(wildcard include/config/sparsemem.h) \\ include/asm-generic/getorder.h \\ arch/x86/include/asm/processor.h \\ $(wildcard include/config/m486.h) \\ $(wildcard include/config/xen.h) \\ arch/x86/include/asm/math_emu.h \\ arch/x86/include/asm/sigcontext.h \\ arch/x86/include/uapi/asm/sigcontext.h \\ arch/x86/include/asm/current.h \\ arch/x86/include/asm/msr.h \\ arch/x86/include/asm/msr-index.h \\ arch/x86/include/asm/cpumask.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/cpumask.h \\ include/linux/cpumask.h \\ $(wildcard include/config/cpumask/offstack.h) \\ $(wildcard include/config/hotplug/cpu.h) \\ $(wildcard include/config/debug/per/cpu/maps.h) \\ include/linux/bitmap.h \\ arch/x86/include/uapi/asm/msr.h \\ include/uapi/linux/ioctl.h \\ arch/x86/include/uapi/asm/ioctl.h \\ include/asm-generic/ioctl.h \\ include/uapi/asm-generic/ioctl.h \\ arch/x86/include/asm/paravirt.h \\ arch/x86/include/asm/special_insns.h \\ arch/x86/include/asm/fpu/types.h \\ include/linux/personality.h \\ include/uapi/linux/personality.h \\ include/linux/math64.h \\ $(wildcard include/config/arch/supports/int128.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/err.h \\ include/linux/err.h \\ include/linux/irqflags.h \\ $(wildcard include/config/trace/irqflags.h) \\ $(wildcard include/config/irqsoff/tracer.h) \\ $(wildcard include/config/trace/irqflags/support.h) \\ arch/x86/include/asm/irqflags.h \\ include/linux/atomic.h \\ $(wildcard include/config/arch/has/atomic/or.h) \\ $(wildcard include/config/generic/atomic64.h) \\ arch/x86/include/asm/atomic.h \\ arch/x86/include/asm/cmpxchg.h \\ arch/x86/include/asm/cmpxchg_32.h \\ arch/x86/include/asm/atomic64_32.h \\ include/asm-generic/atomic-long.h \\ include/linux/bottom_half.h \\ include/linux/spinlock_types.h \\ include/linux/lockdep.h \\ $(wildcard include/config/lockdep.h) \\ $(wildcard include/config/lock/stat.h) \\ include/linux/rwlock_types.h \\ arch/x86/include/asm/spinlock.h \\ include/linux/jump_label.h \\ $(wildcard include/config/jump/label.h) \\ arch/x86/include/asm/jump_label.h \\ arch/x86/include/asm/qspinlock.h \\ include/asm-generic/qspinlock.h \\ arch/x86/include/asm/qrwlock.h \\ include/asm-generic/qrwlock.h \\ include/linux/rwlock.h \\ include/linux/spinlock_api_smp.h \\ $(wildcard include/config/inline/spin/lock.h) \\ $(wildcard include/config/inline/spin/lock/bh.h) \\ $(wildcard include/config/inline/spin/lock/irq.h) \\ $(wildcard include/config/inline/spin/lock/irqsave.h) \\ $(wildcard include/config/inline/spin/trylock.h) \\ $(wildcard include/config/inline/spin/trylock/bh.h) \\ $(wildcard include/config/uninline/spin/unlock.h) \\ $(wildcard include/config/inline/spin/unlock/bh.h) \\ $(wildcard include/config/inline/spin/unlock/irq.h) \\ $(wildcard include/config/inline/spin/unlock/irqrestore.h) \\ include/linux/rwlock_api_smp.h \\ $(wildcard include/config/inline/read/lock.h) \\ $(wildcard include/config/inline/write/lock.h) \\ $(wildcard include/config/inline/read/lock/bh.h) \\ $(wildcard include/config/inline/write/lock/bh.h) \\ $(wildcard include/config/inline/read/lock/irq.h) \\ $(wildcard include/config/inline/write/lock/irq.h) \\ $(wildcard include/config/inline/read/lock/irqsave.h) \\ $(wildcard include/config/inline/write/lock/irqsave.h) \\ $(wildcard include/config/inline/read/trylock.h) \\ $(wildcard include/config/inline/write/trylock.h) \\ $(wildcard include/config/inline/read/unlock.h) \\ $(wildcard include/config/inline/write/unlock.h) \\ $(wildcard include/config/inline/read/unlock/bh.h) \\ $(wildcard include/config/inline/write/unlock/bh.h) \\ $(wildcard include/config/inline/read/unlock/irq.h) \\ $(wildcard include/config/inline/write/unlock/irq.h) \\ $(wildcard include/config/inline/read/unlock/irqrestore.h) \\ $(wildcard include/config/inline/write/unlock/irqrestore.h) \\ include/linux/time64.h \\ include/uapi/linux/time.h \\ include/linux/uidgid.h \\ $(wildcard include/config/multiuser.h) \\ $(wildcard include/config/user/ns.h) \\ include/linux/highuid.h \\ include/linux/kmod.h \\ include/linux/gfp.h \\ $(wildcard include/config/zone/dma.h) \\ $(wildcard include/config/zone/dma32.h) \\ $(wildcard include/config/numa.h) \\ $(wildcard include/config/deferred/struct/page/init.h) \\ $(wildcard include/config/pm/sleep.h) \\ $(wildcard include/config/cma.h) \\ include/linux/mmdebug.h \\ $(wildcard include/config/debug/vm.h) \\ include/linux/mmzone.h \\ $(wildcard include/config/force/max/zoneorder.h) \\ $(wildcard include/config/memory/isolation.h) \\ $(wildcard include/config/memcg.h) \\ $(wildcard include/config/memory/hotplug.h) \\ $(wildcard include/config/compaction.h) \\ $(wildcard include/config/have/memblock/node/map.h) \\ $(wildcard include/config/flat/node/mem/map.h) \\ $(wildcard include/config/page/extension.h) \\ $(wildcard include/config/no/bootmem.h) \\ $(wildcard include/config/numa/balancing.h) \\ $(wildcard include/config/have/memory/present.h) \\ $(wildcard include/config/have/memoryless/nodes.h) \\ $(wildcard include/config/need/node/memmap/size.h) \\ $(wildcard include/config/need/multiple/nodes.h) \\ $(wildcard include/config/have/arch/early/pfn/to/nid.h) \\ $(wildcard include/config/sparsemem/extreme.h) \\ $(wildcard include/config/have/arch/pfn/valid.h) \\ $(wildcard include/config/holes/in/zone.h) \\ $(wildcard include/config/arch/has/holes/memorymodel.h) \\ include/linux/wait.h \\ include/uapi/linux/wait.h \\ include/linux/numa.h \\ $(wildcard include/config/nodes/shift.h) \\ include/linux/nodemask.h \\ $(wildcard include/config/movable/node.h) \\ include/linux/pageblock-flags.h \\ $(wildcard include/config/hugetlb/page.h) \\ $(wildcard include/config/hugetlb/page/size/variable.h) \\ include/linux/page-flags-layout.h \\ include/generated/bounds.h \\ arch/x86/include/asm/sparsemem.h \\ include/linux/memory_hotplug.h \\ $(wildcard include/config/memory/hotremove.h) \\ $(wildcard include/config/have/arch/nodedata/extension.h) \\ $(wildcard include/config/have/bootmem/info/node.h) \\ include/linux/notifier.h \\ include/linux/mutex.h \\ $(wildcard include/config/debug/mutexes.h) \\ $(wildcard include/config/mutex/spin/on/owner.h) \\ include/linux/osq_lock.h \\ include/linux/rwsem.h \\ $(wildcard include/config/rwsem/spin/on/owner.h) \\ $(wildcard include/config/rwsem/generic/spinlock.h) \\ arch/x86/include/asm/rwsem.h \\ include/linux/srcu.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/rcupdate.h \\ include/linux/rcupdate.h \\ $(wildcard include/config/tiny/rcu.h) \\ $(wildcard include/config/tree/rcu.h) \\ $(wildcard include/config/preempt/rcu.h) \\ $(wildcard include/config/rcu/trace.h) \\ $(wildcard include/config/rcu/stall/common.h) \\ $(wildcard include/config/rcu/user/qs.h) \\ $(wildcard include/config/rcu/nocb/cpu.h) \\ $(wildcard include/config/tasks/rcu.h) \\ $(wildcard include/config/debug/objects/rcu/head.h) \\ $(wildcard include/config/prove/rcu.h) \\ $(wildcard include/config/rcu/boost.h) \\ $(wildcard include/config/rcu/nocb/cpu/all.h) \\ $(wildcard include/config/no/hz/full/sysidle.h) \\ include/linux/completion.h \\ include/linux/debugobjects.h \\ $(wildcard include/config/debug/objects.h) \\ $(wildcard include/config/debug/objects/free.h) \\ include/linux/ktime.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/jiffies.h \\ include/linux/jiffies.h \\ include/linux/timex.h \\ include/uapi/linux/timex.h \\ include/uapi/linux/param.h \\ arch/x86/include/uapi/asm/param.h \\ include/asm-generic/param.h \\ $(wildcard include/config/hz.h) \\ include/uapi/asm-generic/param.h \\ arch/x86/include/asm/timex.h \\ arch/x86/include/asm/tsc.h \\ $(wildcard include/config/x86/tsc.h) \\ include/generated/timeconst.h \\ include/linux/timekeeping.h \\ include/linux/rcutree.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/workqueue.h \\ include/linux/workqueue.h \\ $(wildcard include/config/debug/objects/work.h) \\ $(wildcard include/config/freezer.h) \\ include/linux/timer.h \\ $(wildcard include/config/timer/stats.h) \\ $(wildcard include/config/debug/objects/timers.h) \\ $(wildcard include/config/no/hz/common.h) \\ include/linux/sysctl.h \\ $(wildcard include/config/sysctl.h) \\ include/linux/rbtree.h \\ include/uapi/linux/sysctl.h \\ include/linux/topology.h \\ $(wildcard include/config/use/percpu/numa/node/id.h) \\ $(wildcard include/config/sched/smt.h) \\ include/linux/smp.h \\ $(wildcard include/config/up/late/init.h) \\ include/linux/llist.h \\ $(wildcard include/config/arch/have/nmi/safe/cmpxchg.h) \\ arch/x86/include/asm/smp.h \\ $(wildcard include/config/x86/io/apic.h) \\ $(wildcard include/config/x86/32/smp.h) \\ $(wildcard include/config/debug/nmi/selftest.h) \\ arch/x86/include/asm/mpspec.h \\ $(wildcard include/config/eisa.h) \\ $(wildcard include/config/x86/mpparse.h) \\ arch/x86/include/asm/mpspec_def.h \\ arch/x86/include/asm/x86_init.h \\ arch/x86/include/uapi/asm/bootparam.h \\ include/linux/screen_info.h \\ include/uapi/linux/screen_info.h \\ include/linux/apm_bios.h \\ include/uapi/linux/apm_bios.h \\ include/linux/edd.h \\ include/uapi/linux/edd.h \\ arch/x86/include/asm/e820.h \\ $(wildcard include/config/efi.h) \\ $(wildcard include/config/hibernation.h) \\ arch/x86/include/uapi/asm/e820.h \\ $(wildcard include/config/x86/pmem/legacy.h) \\ $(wildcard include/config/intel/txt.h) \\ include/linux/ioport.h \\ arch/x86/include/asm/ist.h \\ arch/x86/include/uapi/asm/ist.h \\ include/video/edid.h \\ $(wildcard include/config/x86.h) \\ include/uapi/video/edid.h \\ arch/x86/include/asm/apicdef.h \\ arch/x86/include/asm/apic.h \\ $(wildcard include/config/x86/x2apic.h) \\ include/linux/pm.h \\ $(wildcard include/config/vt/console/sleep.h) \\ $(wildcard include/config/pm.h) \\ $(wildcard include/config/pm/clk.h) \\ $(wildcard include/config/pm/generic/domains.h) \\ arch/x86/include/asm/fixmap.h \\ $(wildcard include/config/x86/vsyscall/emulation.h) \\ $(wildcard include/config/paravirt/clock.h) \\ $(wildcard include/config/provide/ohci1394/dma/init.h) \\ $(wildcard include/config/pci/mmconfig.h) \\ $(wildcard include/config/x86/intel/mid.h) \\ arch/x86/include/asm/acpi.h \\ $(wildcard include/config/acpi.h) \\ $(wildcard include/config/acpi/numa.h) \\ include/acpi/pdc_intel.h \\ arch/x86/include/asm/numa.h \\ $(wildcard include/config/numa/emu.h) \\ arch/x86/include/asm/topology.h \\ include/asm-generic/topology.h \\ arch/x86/include/asm/numa_32.h \\ arch/x86/include/asm/mmu.h \\ $(wildcard include/config/modify/ldt/syscall.h) \\ arch/x86/include/asm/realmode.h \\ $(wildcard include/config/acpi/sleep.h) \\ arch/x86/include/asm/io.h \\ $(wildcard include/config/mtrr.h) \\ arch/x86/include/generated/asm/early_ioremap.h \\ include/asm-generic/early_ioremap.h \\ $(wildcard include/config/generic/early/ioremap.h) \\ include/asm-generic/iomap.h \\ $(wildcard include/config/has/ioport/map.h) \\ $(wildcard include/config/pci.h) \\ $(wildcard include/config/generic/iomap.h) \\ include/asm-generic/pci_iomap.h \\ $(wildcard include/config/no/generic/pci/ioport/map.h) \\ $(wildcard include/config/generic/pci/iomap.h) \\ include/xen/xen.h \\ $(wildcard include/config/xen/dom0.h) \\ $(wildcard include/config/xen/pvh.h) \\ include/xen/interface/xen.h \\ arch/x86/include/asm/xen/interface.h \\ arch/x86/include/asm/xen/interface_32.h \\ arch/x86/include/asm/pvclock-abi.h \\ arch/x86/include/asm/xen/hypervisor.h \\ arch/x86/include/asm/pvclock.h \\ include/linux/clocksource.h \\ $(wildcard include/config/arch/clocksource/data.h) \\ $(wildcard include/config/clocksource/watchdog.h) \\ $(wildcard include/config/clksrc/of.h) \\ arch/x86/include/asm/clocksource.h \\ include/asm-generic/fixmap.h \\ arch/x86/include/asm/idle.h \\ arch/x86/include/asm/io_apic.h \\ arch/x86/include/asm/irq_vectors.h \\ $(wildcard include/config/have/kvm.h) \\ $(wildcard include/config/pci/msi.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/percpu.h \\ include/linux/percpu.h \\ $(wildcard include/config/need/per/cpu/embed/first/chunk.h) \\ $(wildcard include/config/need/per/cpu/page/first/chunk.h) \\ include/linux/pfn.h \\ include/linux/elf.h \\ arch/x86/include/asm/elf.h \\ $(wildcard include/config/x86/x32/abi.h) \\ arch/x86/include/asm/user.h \\ arch/x86/include/asm/user_32.h \\ arch/x86/include/uapi/asm/auxvec.h \\ arch/x86/include/asm/vdso.h \\ $(wildcard include/config/x86/x32.h) \\ include/linux/mm_types.h \\ $(wildcard include/config/split/ptlock/cpus.h) \\ $(wildcard include/config/arch/enable/split/pmd/ptlock.h) \\ $(wildcard include/config/have/cmpxchg/double.h) \\ $(wildcard include/config/have/aligned/struct/page.h) \\ $(wildcard include/config/transparent/hugepage.h) \\ $(wildcard include/config/aio.h) \\ $(wildcard include/config/mmu/notifier.h) \\ include/linux/auxvec.h \\ include/uapi/linux/auxvec.h \\ include/linux/uprobes.h \\ $(wildcard include/config/uprobes.h) \\ arch/x86/include/asm/uprobes.h \\ arch/x86/include/asm/desc.h \\ arch/x86/include/uapi/asm/ldt.h \\ include/uapi/linux/elf.h \\ include/uapi/linux/elf-em.h \\ include/linux/kobject.h \\ $(wildcard include/config/uevent/helper.h) \\ $(wildcard include/config/debug/kobject/release.h) \\ include/linux/sysfs.h \\ include/linux/kernfs.h \\ $(wildcard include/config/kernfs.h) \\ include/linux/idr.h \\ include/linux/kobject_ns.h \\ include/linux/kref.h \\ include/linux/moduleparam.h \\ $(wildcard include/config/alpha.h) \\ $(wildcard include/config/ia64.h) \\ $(wildcard include/config/ppc64.h) \\ include/linux/rbtree_latch.h \\ arch/x86/include/asm/module.h \\ $(wildcard include/config/m586.h) \\ $(wildcard include/config/m586tsc.h) \\ $(wildcard include/config/m586mmx.h) \\ $(wildcard include/config/mcore2.h) \\ $(wildcard include/config/m686.h) \\ $(wildcard include/config/mpentiumii.h) \\ $(wildcard include/config/mpentiumiii.h) \\ $(wildcard include/config/mpentiumm.h) \\ $(wildcard include/config/mpentium4.h) \\ $(wildcard include/config/mk6.h) \\ $(wildcard include/config/mk8.h) \\ $(wildcard include/config/melan.h) \\ $(wildcard include/config/mcrusoe.h) \\ $(wildcard include/config/mefficeon.h) \\ $(wildcard include/config/mwinchipc6.h) \\ $(wildcard include/config/mwinchip3d.h) \\ $(wildcard include/config/mcyrixiii.h) \\ $(wildcard include/config/mviac3/2.h) \\ $(wildcard include/config/mviac7.h) \\ $(wildcard include/config/mgeodegx1.h) \\ $(wildcard include/config/mgeode/lx.h) \\ include/asm-generic/module.h \\ $(wildcard include/config/have/mod/arch/specific.h) \\ $(wildcard include/config/modules/use/elf/rel.h) \\ $(wildcard include/config/modules/use/elf/rela.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/ip.h \\ include/linux/ip.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/skbuff.h \\ include/linux/skbuff.h \\ $(wildcard include/config/nf/conntrack.h) \\ $(wildcard include/config/bridge/netfilter.h) \\ $(wildcard include/config/xfrm.h) \\ $(wildcard include/config/ipv6/ndisc/nodetype.h) \\ $(wildcard include/config/net/sched.h) \\ $(wildcard include/config/net/cls/act.h) \\ $(wildcard include/config/net/rx/busy/poll.h) \\ $(wildcard include/config/xps.h) \\ $(wildcard include/config/network/secmark.h) \\ $(wildcard include/config/network/phy/timestamping.h) \\ $(wildcard include/config/netfilter/xt/target/trace.h) \\ $(wildcard include/config/nf/tables.h) \\ include/linux/kmemcheck.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/net.h \\ include/linux/net.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/random.h \\ include/linux/random.h \\ $(wildcard include/config/arch/random.h) \\ include/uapi/linux/random.h \\ include/linux/irqnr.h \\ include/uapi/linux/irqnr.h \\ arch/x86/include/asm/archrandom.h \\ include/linux/fcntl.h \\ include/uapi/linux/fcntl.h \\ arch/x86/include/uapi/asm/fcntl.h \\ include/uapi/asm-generic/fcntl.h \\ include/uapi/linux/net.h \\ include/linux/textsearch.h \\ include/linux/slab.h \\ $(wildcard include/config/debug/slab.h) \\ $(wildcard include/config/failslab.h) \\ $(wildcard include/config/slab.h) \\ $(wildcard include/config/slub.h) \\ $(wildcard include/config/slob.h) \\ include/linux/kmemleak.h \\ $(wildcard include/config/debug/kmemleak.h) \\ include/linux/kasan.h \\ $(wildcard include/config/kasan.h) \\ $(wildcard include/config/kasan/shadow/offset.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/checksum.h \\ include/net/checksum.h \\ arch/x86/include/asm/uaccess.h \\ $(wildcard include/config/x86/intel/usercopy.h) \\ $(wildcard include/config/debug/strict/user/copy/checks.h) \\ arch/x86/include/asm/smap.h \\ $(wildcard include/config/x86/smap.h) \\ arch/x86/include/asm/uaccess_32.h \\ arch/x86/include/asm/checksum.h \\ arch/x86/include/asm/checksum_32.h \\ include/linux/in6.h \\ include/uapi/linux/in6.h \\ include/linux/hrtimer.h \\ $(wildcard include/config/high/res/timers.h) \\ $(wildcard include/config/timerfd.h) \\ include/linux/timerqueue.h \\ include/linux/dma-mapping.h \\ $(wildcard include/config/has/dma.h) \\ $(wildcard include/config/arch/has/dma/set/coherent/mask.h) \\ $(wildcard include/config/have/dma/attrs.h) \\ $(wildcard include/config/need/dma/map/state.h) \\ include/linux/device.h \\ $(wildcard include/config/debug/devres.h) \\ $(wildcard include/config/pinctrl.h) \\ $(wildcard include/config/dma/cma.h) \\ $(wildcard include/config/of.h) \\ $(wildcard include/config/devtmpfs.h) \\ $(wildcard include/config/sysfs/deprecated.h) \\ include/linux/klist.h \\ include/linux/pinctrl/devinfo.h \\ include/linux/pinctrl/consumer.h \\ include/linux/seq_file.h \\ include/linux/pinctrl/pinctrl-state.h \\ include/linux/ratelimit.h \\ arch/x86/include/asm/device.h \\ $(wildcard include/config/x86/dev/dma/ops.h) \\ $(wildcard include/config/intel/iommu.h) \\ $(wildcard include/config/amd/iommu.h) \\ include/linux/pm_wakeup.h \\ include/linux/dma-attrs.h \\ include/linux/dma-direction.h \\ include/linux/scatterlist.h \\ $(wildcard include/config/debug/sg.h) \\ $(wildcard include/config/need/sg/dma/length.h) \\ $(wildcard include/config/arch/has/sg/chain.h) \\ include/linux/mm.h \\ $(wildcard include/config/ppc.h) \\ $(wildcard include/config/parisc.h) \\ $(wildcard include/config/metag.h) \\ $(wildcard include/config/stack/growsup.h) \\ $(wildcard include/config/shmem.h) \\ $(wildcard include/config/debug/vm/rb.h) \\ $(wildcard include/config/debug/pagealloc.h) \\ $(wildcard include/config/hugetlbfs.h) \\ include/linux/debug_locks.h \\ $(wildcard include/config/debug/locking/api/selftests.h) \\ include/linux/bit_spinlock.h \\ include/linux/shrinker.h \\ include/linux/resource.h \\ include/uapi/linux/resource.h \\ arch/x86/include/uapi/asm/resource.h \\ include/asm-generic/resource.h \\ include/uapi/asm-generic/resource.h \\ include/linux/page_ext.h \\ $(wildcard include/config/page/owner.h) \\ include/linux/stacktrace.h \\ $(wildcard include/config/stacktrace.h) \\ $(wildcard include/config/user/stacktrace/support.h) \\ arch/x86/include/asm/pgtable.h \\ $(wildcard include/config/have/arch/soft/dirty.h) \\ arch/x86/include/asm/pgtable_32.h \\ $(wildcard include/config/highpte.h) \\ arch/x86/include/asm/pgtable-3level.h \\ include/asm-generic/pgtable.h \\ $(wildcard include/config/have/arch/huge/vmap.h) \\ include/linux/page-flags.h \\ $(wildcard include/config/pageflags/extended.h) \\ $(wildcard include/config/arch/uses/pg/uncached.h) \\ $(wildcard include/config/memory/failure.h) \\ $(wildcard include/config/swap.h) \\ $(wildcard include/config/ksm.h) \\ include/linux/huge_mm.h \\ include/linux/vmstat.h \\ $(wildcard include/config/vm/event/counters.h) \\ $(wildcard include/config/debug/tlbflush.h) \\ $(wildcard include/config/debug/vm/vmacache.h) \\ include/linux/vm_event_item.h \\ $(wildcard include/config/migration.h) \\ $(wildcard include/config/memory/balloon.h) \\ $(wildcard include/config/balloon/compaction.h) \\ arch/x86/include/asm/dma-mapping.h \\ $(wildcard include/config/isa.h) \\ $(wildcard include/config/x86/dma/remap.h) \\ include/linux/dma-debug.h \\ $(wildcard include/config/dma/api/debug.h) \\ arch/x86/include/asm/swiotlb.h \\ $(wildcard include/config/swiotlb.h) \\ include/linux/swiotlb.h \\ include/asm-generic/dma-coherent.h \\ $(wildcard include/config/have/generic/dma/coherent.h) \\ include/linux/dma-contiguous.h \\ include/asm-generic/dma-mapping-common.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/netdev_features.h \\ include/linux/netdev_features.h \\ include/linux/sched.h \\ $(wildcard include/config/sched/debug.h) \\ $(wildcard include/config/lockup/detector.h) \\ $(wildcard include/config/detect/hung/task.h) \\ $(wildcard include/config/core/dump/default/elf/headers.h) \\ $(wildcard include/config/sched/autogroup.h) \\ $(wildcard include/config/virt/cpu/accounting/native.h) \\ $(wildcard include/config/bsd/process/acct.h) \\ $(wildcard include/config/taskstats.h) \\ $(wildcard include/config/audit.h) \\ $(wildcard include/config/inotify/user.h) \\ $(wildcard include/config/fanotify.h) \\ $(wildcard include/config/epoll.h) \\ $(wildcard include/config/posix/mqueue.h) \\ $(wildcard include/config/keys.h) \\ $(wildcard include/config/perf/events.h) \\ $(wildcard include/config/sched/info.h) \\ $(wildcard include/config/task/delay/acct.h) \\ $(wildcard include/config/schedstats.h) \\ $(wildcard include/config/sched/mc.h) \\ $(wildcard include/config/fair/group/sched.h) \\ $(wildcard include/config/rt/group/sched.h) \\ $(wildcard include/config/cgroup/sched.h) \\ $(wildcard include/config/blk/dev/io/trace.h) \\ $(wildcard include/config/memcg/kmem.h) \\ $(wildcard include/config/compat/brk.h) \\ $(wildcard include/config/virt/cpu/accounting/gen.h) \\ $(wildcard include/config/sysvipc.h) \\ $(wildcard include/config/auditsyscall.h) \\ $(wildcard include/config/rt/mutexes.h) \\ $(wildcard include/config/block.h) \\ $(wildcard include/config/task/xacct.h) \\ $(wildcard include/config/cpusets.h) \\ $(wildcard include/config/cgroups.h) \\ $(wildcard include/config/futex.h) \\ $(wildcard include/config/fault/injection.h) \\ $(wildcard include/config/latencytop.h) \\ $(wildcard include/config/function/graph/tracer.h) \\ $(wildcard include/config/bcache.h) \\ $(wildcard include/config/arch/wants/dynamic/task/struct.h) \\ $(wildcard include/config/have/unstable/sched/clock.h) \\ $(wildcard include/config/irq/time/accounting.h) \\ $(wildcard include/config/no/hz/full.h) \\ $(wildcard include/config/have/copy/thread/tls.h) \\ include/uapi/linux/sched.h \\ include/linux/sched/prio.h \\ include/linux/capability.h \\ include/uapi/linux/capability.h \\ include/linux/plist.h \\ $(wildcard include/config/debug/pi/list.h) \\ include/linux/cputime.h \\ arch/x86/include/generated/asm/cputime.h \\ include/asm-generic/cputime.h \\ $(wildcard include/config/virt/cpu/accounting.h) \\ include/asm-generic/cputime_jiffies.h \\ include/linux/sem.h \\ include/uapi/linux/sem.h \\ include/linux/ipc.h \\ include/uapi/linux/ipc.h \\ arch/x86/include/uapi/asm/ipcbuf.h \\ include/uapi/asm-generic/ipcbuf.h \\ arch/x86/include/uapi/asm/sembuf.h \\ include/linux/shm.h \\ include/uapi/linux/shm.h \\ arch/x86/include/uapi/asm/shmbuf.h \\ include/uapi/asm-generic/shmbuf.h \\ arch/x86/include/asm/shmparam.h \\ include/linux/signal.h \\ $(wildcard include/config/old/sigaction.h) \\ include/uapi/linux/signal.h \\ arch/x86/include/asm/signal.h \\ arch/x86/include/uapi/asm/signal.h \\ include/uapi/asm-generic/signal-defs.h \\ arch/x86/include/uapi/asm/siginfo.h \\ include/asm-generic/siginfo.h \\ include/uapi/asm-generic/siginfo.h \\ include/linux/pid.h \\ include/linux/proportions.h \\ include/linux/percpu_counter.h \\ include/linux/seccomp.h \\ $(wildcard include/config/seccomp.h) \\ $(wildcard include/config/have/arch/seccomp/filter.h) \\ $(wildcard include/config/seccomp/filter.h) \\ include/uapi/linux/seccomp.h \\ arch/x86/include/asm/seccomp.h \\ arch/x86/include/asm/unistd.h \\ arch/x86/include/uapi/asm/unistd.h \\ arch/x86/include/generated/uapi/asm/unistd_32.h \\ include/asm-generic/seccomp.h \\ include/uapi/linux/unistd.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/rculist.h \\ include/linux/rculist.h \\ include/linux/rtmutex.h \\ $(wildcard include/config/debug/rt/mutexes.h) \\ include/linux/task_io_accounting.h \\ $(wildcard include/config/task/io/accounting.h) \\ include/linux/latencytop.h \\ include/linux/cred.h \\ $(wildcard include/config/debug/credentials.h) \\ $(wildcard include/config/security.h) \\ include/linux/key.h \\ include/linux/assoc_array.h \\ $(wildcard include/config/associative/array.h) \\ include/linux/selinux.h \\ $(wildcard include/config/security/selinux.h) \\ include/uapi/linux/magic.h \\ include/linux/cgroup-defs.h \\ include/uapi/linux/limits.h \\ include/linux/percpu-refcount.h \\ include/linux/percpu-rwsem.h \\ include/linux/cgroup_subsys.h \\ $(wildcard include/config/cgroup/cpuacct.h) \\ $(wildcard include/config/blk/cgroup.h) \\ $(wildcard include/config/cgroup/device.h) \\ $(wildcard include/config/cgroup/freezer.h) \\ $(wildcard include/config/cgroup/net/classid.h) \\ $(wildcard include/config/cgroup/perf.h) \\ $(wildcard include/config/cgroup/net/prio.h) \\ $(wildcard include/config/cgroup/hugetlb.h) \\ $(wildcard include/config/cgroup/debug.h) \\ include/net/flow_dissector.h \\ include/uapi/linux/if_ether.h \\ include/linux/splice.h \\ include/linux/pipe_fs_i.h \\ include/linux/jhash.h \\ include/linux/unaligned/packed_struct.h \\ include/uapi/linux/ip.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/udp.h \\ include/linux/udp.h \\ include/net/inet_sock.h \\ $(wildcard include/config/ipv6.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/netdevice.h \\ include/linux/netdevice.h \\ $(wildcard include/config/dcb.h) \\ $(wildcard include/config/wlan.h) \\ $(wildcard include/config/ax25.h) \\ $(wildcard include/config/mac80211/mesh.h) \\ $(wildcard include/config/net/ipip.h) \\ $(wildcard include/config/net/ipgre.h) \\ $(wildcard include/config/ipv6/sit.h) \\ $(wildcard include/config/ipv6/tunnel.h) \\ $(wildcard include/config/rps.h) \\ $(wildcard include/config/netpoll.h) \\ $(wildcard include/config/bql.h) \\ $(wildcard include/config/rfs/accel.h) \\ $(wildcard include/config/fcoe.h) \\ $(wildcard include/config/net/poll/controller.h) \\ $(wildcard include/config/libfcoe.h) \\ $(wildcard include/config/wireless/ext.h) \\ $(wildcard include/config/net/switchdev.h) \\ $(wildcard include/config/vlan/8021q.h) \\ $(wildcard include/config/net/dsa.h) \\ $(wildcard include/config/tipc.h) \\ $(wildcard include/config/mpls/routing.h) \\ $(wildcard include/config/netfilter/ingress.h) \\ $(wildcard include/config/net/flow/limit.h) \\ include/linux/delay.h \\ arch/x86/include/asm/delay.h \\ include/asm-generic/delay.h \\ include/linux/prefetch.h \\ include/linux/dmaengine.h \\ $(wildcard include/config/async/tx/enable/channel/switch.h) \\ $(wildcard include/config/dma/engine.h) \\ $(wildcard include/config/rapidio/dma/engine.h) \\ $(wildcard include/config/async/tx/dma.h) \\ include/linux/dynamic_queue_limits.h \\ include/linux/ethtool.h \\ include/linux/compat.h \\ $(wildcard include/config/compat/old/sigaction.h) \\ $(wildcard include/config/odd/rt/sigaction.h) \\ include/uapi/linux/ethtool.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/if_ether.h \\ include/linux/if_ether.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/net_namespace.h \\ $(wildcard include/config/net/ns.h) \\ include/net/net_namespace.h \\ $(wildcard include/config/ieee802154/6lowpan.h) \\ $(wildcard include/config/ip/sctp.h) \\ $(wildcard include/config/ip/dccp.h) \\ $(wildcard include/config/netfilter.h) \\ $(wildcard include/config/nf/defrag/ipv6.h) \\ $(wildcard include/config/wext/core.h) \\ $(wildcard include/config/ip/vs.h) \\ $(wildcard include/config/mpls.h) \\ include/net/flow.h \\ include/net/netns/core.h \\ include/net/netns/mib.h \\ $(wildcard include/config/xfrm/statistics.h) \\ include/net/snmp.h \\ include/uapi/linux/snmp.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/u64_stats_sync.h \\ include/linux/u64_stats_sync.h \\ include/net/netns/unix.h \\ include/net/netns/packet.h \\ include/net/netns/ipv4.h \\ $(wildcard include/config/ip/multiple/tables.h) \\ $(wildcard include/config/ip/route/classid.h) \\ $(wildcard include/config/ip/mroute.h) \\ $(wildcard include/config/ip/mroute/multiple/tables.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/inet_frag.h \\ include/net/inet_frag.h \\ include/net/netns/ipv6.h \\ $(wildcard include/config/ipv6/multiple/tables.h) \\ $(wildcard include/config/ipv6/mroute.h) \\ $(wildcard include/config/ipv6/mroute/multiple/tables.h) \\ include/net/dst_ops.h \\ include/net/netns/ieee802154_6lowpan.h \\ include/net/netns/sctp.h \\ include/net/netns/dccp.h \\ include/net/netns/netfilter.h \\ include/linux/netfilter_defs.h \\ include/uapi/linux/netfilter.h \\ include/net/netns/x_tables.h \\ $(wildcard include/config/bridge/nf/ebtables.h) \\ include/net/netns/conntrack.h \\ $(wildcard include/config/nf/conntrack/proc/compat.h) \\ $(wildcard include/config/nf/conntrack/events.h) \\ $(wildcard include/config/nf/conntrack/labels.h) \\ $(wildcard include/config/nf/nat/needed.h) \\ include/linux/list_nulls.h \\ include/linux/netfilter/nf_conntrack_tcp.h \\ include/uapi/linux/netfilter/nf_conntrack_tcp.h \\ include/net/netns/nftables.h \\ include/net/netns/xfrm.h \\ include/uapi/linux/xfrm.h \\ include/net/flowcache.h \\ include/linux/interrupt.h \\ $(wildcard include/config/irq/forced/threading.h) \\ $(wildcard include/config/generic/irq/probe.h) \\ include/linux/irqreturn.h \\ include/linux/hardirq.h \\ include/linux/ftrace_irq.h \\ $(wildcard include/config/ftrace/nmi/enter.h) \\ include/linux/vtime.h \\ include/linux/context_tracking_state.h \\ $(wildcard include/config/context/tracking.h) \\ include/linux/static_key.h \\ arch/x86/include/asm/hardirq.h \\ $(wildcard include/config/x86/thermal/vector.h) \\ $(wildcard include/config/x86/mce/threshold.h) \\ $(wildcard include/config/x86/mce/amd.h) \\ $(wildcard include/config/hyperv.h) \\ include/linux/irq.h \\ $(wildcard include/config/irq/domain/hierarchy.h) \\ $(wildcard include/config/generic/pending/irq.h) \\ $(wildcard include/config/hardirqs/sw/resend.h) \\ $(wildcard include/config/generic/irq/legacy/alloc/hwirq.h) \\ $(wildcard include/config/generic/irq/legacy.h) \\ include/linux/irqhandler.h \\ include/linux/io.h \\ arch/x86/include/asm/irq.h \\ arch/x86/include/asm/irq_regs.h \\ include/linux/irqdesc.h \\ $(wildcard include/config/irq/preflow/fasteoi.h) \\ $(wildcard include/config/sparse/irq.h) \\ $(wildcard include/config/handle/domain/irq.h) \\ arch/x86/include/asm/hw_irq.h \\ $(wildcard include/config/hpet/timer.h) \\ $(wildcard include/config/dmar/table.h) \\ $(wildcard include/config/ht/irq.h) \\ $(wildcard include/config/x86/uv.h) \\ include/linux/profile.h \\ $(wildcard include/config/profiling.h) \\ arch/x86/include/asm/sections.h \\ $(wildcard include/config/debug/rodata.h) \\ include/asm-generic/sections.h \\ include/net/netns/mpls.h \\ include/linux/ns_common.h \\ include/linux/seq_file_net.h \\ include/net/dsa.h \\ $(wildcard include/config/net/dsa/hwmon.h) \\ include/linux/of.h \\ $(wildcard include/config/sparc.h) \\ $(wildcard include/config/of/dynamic.h) \\ $(wildcard include/config/attach/node.h) \\ $(wildcard include/config/detach/node.h) \\ $(wildcard include/config/add/property.h) \\ $(wildcard include/config/remove/property.h) \\ $(wildcard include/config/update/property.h) \\ $(wildcard include/config/no/change.h) \\ $(wildcard include/config/change/add.h) \\ $(wildcard include/config/change/remove.h) \\ $(wildcard include/config/of/resolve.h) \\ $(wildcard include/config/of/overlay.h) \\ include/linux/mod_devicetable.h \\ include/linux/uuid.h \\ include/uapi/linux/uuid.h \\ include/linux/property.h \\ include/linux/fwnode.h \\ include/linux/phy.h \\ include/linux/mii.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/if.h \\ include/uapi/linux/if.h \\ include/uapi/linux/hdlc/ioctl.h \\ include/uapi/linux/mii.h \\ include/linux/phy_fixed.h \\ $(wildcard include/config/fixed/phy.h) \\ include/net/dcbnl.h \\ include/uapi/linux/dcbnl.h \\ include/net/netprio_cgroup.h \\ include/linux/cgroup.h \\ include/uapi/linux/cgroupstats.h \\ include/uapi/linux/taskstats.h \\ include/linux/fs.h \\ $(wildcard include/config/fs/posix/acl.h) \\ $(wildcard include/config/cgroup/writeback.h) \\ $(wildcard include/config/ima.h) \\ $(wildcard include/config/fsnotify.h) \\ $(wildcard include/config/file/locking.h) \\ $(wildcard include/config/quota.h) \\ $(wildcard include/config/blk/dev/loop.h) \\ $(wildcard include/config/fs/dax.h) \\ include/linux/kdev_t.h \\ include/uapi/linux/kdev_t.h \\ include/linux/dcache.h \\ include/linux/rculist_bl.h \\ include/linux/list_bl.h \\ include/linux/lockref.h \\ $(wildcard include/config/arch/use/cmpxchg/lockref.h) \\ include/linux/path.h \\ include/linux/list_lru.h \\ include/linux/radix-tree.h \\ include/linux/semaphore.h \\ include/uapi/linux/fiemap.h \\ include/linux/migrate_mode.h \\ include/linux/blk_types.h \\ $(wildcard include/config/blk/dev/integrity.h) \\ include/uapi/linux/fs.h \\ include/linux/quota.h \\ $(wildcard include/config/quota/netlink/interface.h) \\ include/uapi/linux/dqblk_xfs.h \\ include/linux/dqblk_v1.h \\ include/linux/dqblk_v2.h \\ include/linux/dqblk_qtree.h \\ include/linux/projid.h \\ include/uapi/linux/quota.h \\ include/linux/nfs_fs_i.h \\ include/uapi/linux/neighbour.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/netlink.h \\ include/linux/netlink.h \\ include/net/scm.h \\ $(wildcard include/config/security/network.h) \\ include/linux/security.h \\ $(wildcard include/config/security/network/xfrm.h) \\ $(wildcard include/config/security/path.h) \\ $(wildcard include/config/securityfs.h) \\ include/linux/nsproxy.h \\ include/uapi/linux/netlink.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/netlink.h \\ include/net/netlink.h \\ include/linux/in6.h \\ include/uapi/linux/netdevice.h \\ include/uapi/linux/if_packet.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/if_link.h \\ include/linux/if_link.h \\ include/uapi/linux/if_link.h \\ include/uapi/linux/if_bonding.h \\ include/linux/if_bridge.h \\ $(wildcard include/config/bridge.h) \\ $(wildcard include/config/bridge/igmp/snooping.h) \\ include/uapi/linux/if_bridge.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/sock.h \\ include/net/sock.h \\ $(wildcard include/config/net.h) \\ $(wildcard include/config/inet.h) \\ include/linux/uaccess.h \\ include/linux/page_counter.h \\ include/linux/memcontrol.h \\ $(wildcard include/config/memcg/swap.h) \\ include/linux/filter.h \\ $(wildcard include/config/bpf/jit.h) \\ arch/x86/include/asm/cacheflush.h \\ $(wildcard include/config/debug/rodata/test.h) \\ include/asm-generic/cacheflush.h \\ include/uapi/linux/filter.h \\ include/uapi/linux/bpf_common.h \\ include/uapi/linux/bpf.h \\ include/linux/rculist_nulls.h \\ include/linux/poll.h \\ include/uapi/linux/poll.h \\ arch/x86/include/uapi/asm/poll.h \\ include/uapi/asm-generic/poll.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/dst.h \\ include/net/dst.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/rtnetlink.h \\ include/linux/rtnetlink.h \\ $(wildcard include/config/net/ingress.h) \\ include/uapi/linux/rtnetlink.h \\ include/uapi/linux/if_addr.h \\ include/net/neighbour.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/rtnetlink.h \\ include/net/rtnetlink.h \\ include/net/tcp_states.h \\ include/uapi/linux/net_tstamp.h \\ include/net/request_sock.h \\ include/net/netns/hash.h \\ include/uapi/linux/udp.h \\ include/net/icmp.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/icmp.h \\ include/linux/icmp.h \\ include/uapi/linux/icmp.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/ip.h \\ include/net/ip.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/route.h \\ include/net/route.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/inetpeer.h \\ include/net/inetpeer.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/ipv6.h \\ $(wildcard include/config/have/efficient/unaligned/access.h) \\ include/net/ipv6.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/ipv6.h \\ include/linux/ipv6.h \\ $(wildcard include/config/ipv6/router/pref.h) \\ $(wildcard include/config/ipv6/route/info.h) \\ $(wildcard include/config/ipv6/optimistic/dad.h) \\ $(wildcard include/config/ipv6/mip6.h) \\ $(wildcard include/config/ipv6/subtrees.h) \\ include/uapi/linux/ipv6.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/icmpv6.h \\ include/linux/icmpv6.h \\ include/uapi/linux/icmpv6.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/tcp.h \\ include/linux/tcp.h \\ $(wildcard include/config/tcp/md5sig.h) \\ include/net/inet_connection_sock.h \\ include/net/inet_timewait_sock.h \\ include/net/timewait_sock.h \\ include/uapi/linux/tcp.h \\ include/net/if_inet6.h \\ include/net/ndisc.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/if_arp.h \\ include/linux/if_arp.h \\ $(wildcard include/config/firewire/net.h) \\ include/uapi/linux/if_arp.h \\ include/linux/hash.h \\ $(wildcard include/config/arch/has/fast/multiplier.h) \\ include/uapi/linux/in_route.h \\ include/uapi/linux/route.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/lisp.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/udp_tunnel.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/dst_metadata.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/ip_tunnels.h \\ include/linux/if_tunnel.h \\ include/uapi/linux/if_tunnel.h \\ include/net/dsfield.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/inet_ecn.h \\ include/net/inet_ecn.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/udp.h \\ include/net/udp.h \\ include/net/netns/generic.h \\ include/net/xfrm.h \\ $(wildcard include/config/xfrm/sub/policy.h) \\ $(wildcard include/config/xfrm/migrate.h) \\ include/uapi/linux/pfkeyv2.h \\ include/uapi/linux/ipsec.h \\ include/linux/audit.h \\ $(wildcard include/config/audit/compat/generic.h) \\ include/linux/ptrace.h \\ include/linux/pid_namespace.h \\ $(wildcard include/config/pid/ns.h) \\ include/uapi/linux/ptrace.h \\ include/uapi/linux/audit.h \\ $(wildcard include/config/change.h) \\ arch/x86/include/asm/syscall.h \\ arch/x86/include/asm/asm-offsets.h \\ include/generated/asm-offsets.h \\ include/net/ip6_fib.h \\ include/linux/ipv6_route.h \\ include/uapi/linux/ipv6_route.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../datapath.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../compat.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/netfilter/ipv6/nf_defrag_ipv6.h \\ include/net/netfilter/ipv6/nf_defrag_ipv6.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../flow.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/openvswitch.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/flex_array.h \\ include/linux/flex_array.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/reciprocal_div.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../flow_table.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../vlan.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/if_vlan.h \\ include/linux/if_vlan.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/etherdevice.h \\ include/linux/etherdevice.h \\ arch/x86/include/asm/unaligned.h \\ include/linux/unaligned/access_ok.h \\ include/linux/unaligned/generic.h \\ include/uapi/linux/if_vlan.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/gso.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../vport.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../datapath.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../vport-netdev.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../vport.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/lisp.o: $(deps_/home/zrd/openvswitch-2.5.0/datapath/linux/lisp.o) $(deps_/home/zrd/openvswitch-2.5.0/datapath/linux/lisp.o): ",16373,True,4386.764600173616,median "/* Gauge.ino >>> Before compiling: Please remove comment from the constructor of the >>> connected graphics display (see below). Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2017, Giuseppe Bellomo All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ""AS IS"" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /*Gauges 0.1 25 JAN 17 * Giuseppe Bellomo bellomo.giuseppeATgmail.com * Draws simple gauge based on a value passed to the function. * USAGE * Drawgauge(x,y,r,p,v,minVal,maxVal,t ) * Draws a gauge with center in x,y (x is an int since u8g2lib supports screen with a width of more than 255, y is a byte to keep variable footprint as low as possible); * with radius r; * needle lenght is p percent of radius; * representing value v(must be an int); * minVal and maxVal are the min and max values of v (integer); * t is gauge type: * 0 for quarter left, * 1 for quarter right, anticlockwise * 2 for upper half semicricle * 3 for 3/4 starting at -180 * 4 for 3/4 starting at -90 * very easy to add other versions */ #include #include #ifdef U8X8_HAVE_HW_SPI #include #endif #ifdef U8X8_HAVE_HW_I2C #include #endif // Please UNCOMMENT one of the contructor lines below // U8g2 Contructor List (Picture Loop Page Buffer) // The complete list is available here: https://github.com/olikraus/u8g2/wiki/u8g2setupcpp // Please update the pin numbers according to your setup. Use U8X8_PIN_NONE if the reset pin is not connected //U8G2_NULL u8g2(U8G2_R0); // null device, a 8x8 pixel display which does nothing //U8G2_SSD1306_128X64_NONAME_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1306_128X64_NONAME_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 12, /* dc=*/ 4, /* reset=*/ 6); // Arduboy (Production, Kickstarter Edition) //U8G2_SSD1306_128X64_NONAME_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1306_128X64_NONAME_1_3W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* reset=*/ 8); //U8G2_SSD1306_128X64_NONAME_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); //U8G2_SSD1306_128X64_ALT0_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); // same as the NONAME variant, but may solve the ""every 2nd line skipped"" problem //U8G2_SSD1306_128X64_NONAME_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* reset=*/ 8); //U8G2_SSD1306_128X64_NONAME_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); // All Boards without Reset of the Display //U8G2_SSD1306_128X64_NONAME_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ 16, /* data=*/ 17, /* reset=*/ U8X8_PIN_NONE); // ESP32 Thing, pure SW emulated I2C //U8G2_SSD1306_128X64_NONAME_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE, /* clock=*/ 16, /* data=*/ 17); // ESP32 Thing, HW I2C with pin remapping //U8G2_SSD1306_128X64_NONAME_1_6800 u8g2(U8G2_R0, 13, 11, 2, 3, 4, 5, 6, A4, /*enable=*/ 7, /*cs=*/ 10, /*dc=*/ 9, /*reset=*/ 8); //U8G2_SSD1306_128X64_NONAME_1_8080 u8g2(U8G2_R0, 13, 11, 2, 3, 4, 5, 6, A4, /*enable=*/ 7, /*cs=*/ 10, /*dc=*/ 9, /*reset=*/ 8); //U8G2_SSD1306_128X64_VCOMH0_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // same as the NONAME variant, but maximizes setContrast() range //U8G2_SSD1306_128X64_ALT0_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // same as the NONAME variant, but may solve the ""every 2nd line skipped"" problem //U8G2_SH1106_128X64_NONAME_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SH1106_128X64_NONAME_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); //U8G2_SH1106_128X64_VCOMH0_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // same as the NONAME variant, but maximizes setContrast() range //U8G2_SH1106_128X64_WINSTAR_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // same as the NONAME variant, but uses updated SH1106 init sequence //U8G2_SH1106_72X40_WISE_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SH1107_64X128_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SH1107_128X128_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SH1107_128X128_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ 8); //U8G2_SH1107_SEEED_96X96_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SH1122_256X64_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Enable U8G2_16BIT in u8g2.h //U8G2_SSD1306_128X32_UNIVISION_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ 21, /* data=*/ 20, /* reset=*/ U8X8_PIN_NONE); // Adafruit Feather M0 Basic Proto + FeatherWing OLED //U8G2_SSD1306_128X32_UNIVISION_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); // Adafruit Feather ESP8266/32u4 Boards + FeatherWing OLED //U8G2_SSD1306_128X32_UNIVISION_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); // Adafruit ESP8266/32u4/ARM Boards + FeatherWing OLED //U8G2_SSD1306_128X32_UNIVISION_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE, /* clock=*/ SCL, /* data=*/ SDA); // pin remapping with ESP8266 HW I2C //U8G2_SSD1306_64X48_ER_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); // EastRising 0.66"" OLED breakout board, Uno: A4=SDA, A5=SCL, 5V powered //U8G2_SSD1306_48X64_WINSTAR_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); //U8G2_SSD1306_64X32_NONAME_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); //U8G2_SSD1306_64X32_1F_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); //U8G2_SSD1306_96X16_ER_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); // EastRising 0.69"" OLED //U8G2_SSD1322_NHD_256X64_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Enable U8G2_16BIT in u8g2.h //U8G2_SSD1322_NHD_256X64_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Enable U8G2_16BIT in u8g2.h //U8G2_SSD1322_NHD_128X64_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1322_NHD_128X64_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1325_NHD_128X64_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1325_NHD_128X64_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1326_ER_256X32_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // experimental driver for ER-OLED018-1 //U8G2_SSD1327_SEEED_96X96_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); // Seeedstudio Grove OLED 96x96 //U8G2_SSD1327_SEEED_96X96_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); // Seeedstudio Grove OLED 96x96 //U8G2_SSD1327_MIDAS_128X128_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1327_MIDAS_128X128_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1329_128X96_NONAME_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1329_128X96_NONAME_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1305_128X32_NONAME_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1305_128X32_NONAME_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1305_128X64_ADAFRUIT_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1305_128X64_ADAFRUIT_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1309_128X64_NONAME0_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1309_128X64_NONAME0_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1309_128X64_NONAME2_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_SSD1309_128X64_NONAME2_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_LD7032_60X32_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 11, /* data=*/ 12, /* cs=*/ 9, /* dc=*/ 10, /* reset=*/ 8); // SW SPI Nano Board //U8G2_LD7032_60X32_1_4W_SW_I2C u8g2(U8G2_R0, /* clock=*/ 11, /* data=*/ 12, /* reset=*/ U8X8_PIN_NONE); // NOT TESTED! //U8G2_UC1701_EA_DOGS102_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_UC1701_EA_DOGS102_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_PCD8544_84X48_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Nokia 5110 Display //U8G2_PCD8544_84X48_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Nokia 5110 Display //U8G2_PCF8812_96X65_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Could be also PCF8814 //U8G2_PCF8812_96X65_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Could be also PCF8814 //U8G2_HX1230_96X68_1_3W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* reset=*/ 8); //U8G2_HX1230_96X68_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_KS0108_128X64_1 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*dc=*/ 17, /*cs0=*/ 14, /*cs1=*/ 15, /*cs2=*/ U8X8_PIN_NONE, /* reset=*/ U8X8_PIN_NONE); // Set R/W to low! //U8G2_KS0108_ERM19264_1 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*dc=*/ 17, /*cs0=*/ 14, /*cs1=*/ 15, /*cs2=*/ 16, /* reset=*/ U8X8_PIN_NONE); // Set R/W to low! //U8G2_ST7920_192X32_1_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*cs=*/ U8X8_PIN_NONE, /*dc=*/ 17, /*reset=*/ U8X8_PIN_NONE); //U8G2_ST7920_192X32_1_SW_SPI u8g2(U8G2_R0, /* clock=*/ 18 /* A4 */ , /* data=*/ 16 /* A2 */, /* CS=*/ 17 /* A3 */, /* reset=*/ U8X8_PIN_NONE); //U8G2_ST7920_128X64_1_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18 /* A4 */, /*cs=*/ U8X8_PIN_NONE, /*dc/rs=*/ 17 /* A3 */, /*reset=*/ 15 /* A1 */); // Remember to set R/W to 0 //U8G2_ST7920_128X64_1_SW_SPI u8g2(U8G2_R0, /* clock=*/ 18 /* A4 */ , /* data=*/ 16 /* A2 */, /* CS=*/ 17 /* A3 */, /* reset=*/ U8X8_PIN_NONE); //U8G2_ST7920_128X64_1_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* CS=*/ 10, /* reset=*/ 8); //U8G2_ST7920_128X64_1_HW_SPI u8g2(U8G2_R0, /* CS=*/ 10, /* reset=*/ 8); //U8G2_ST7565_EA_DOGM128_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_EA_DOGM128_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_64128N_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_64128N_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_EA_DOGM132_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); // DOGM132 Shield //U8G2_ST7565_EA_DOGM132_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); // DOGM132 Shield //U8G2_ST7565_ZOLEN_128X64_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_ZOLEN_128X64_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_LM6059_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Adafruit ST7565 GLCD //U8G2_ST7565_LM6059_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Adafruit ST7565 GLCD //U8G2_ST7565_LX12864_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_LX12864_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_ERC12864_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_ERC12864_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_NHD_C12832_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_NHD_C12832_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_NHD_C12864_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_NHD_C12864_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_JLX12864_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7565_JLX12864_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7567_PI_132X64_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); // Pax Instruments Shield, LCD_BL=6 //U8G2_ST7567_PI_132X64_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); // Pax Instruments Shield, LCD_BL=6 //U8G2_ST7567_JLX12864_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7567_JLX12864_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST75256_JLX172104_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST75256_JLX172104_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST75256_JLX256128_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Uno, Enable U8g2 16 bit mode for this display //U8G2_ST75256_JLX256128_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Uno, Enable U8g2 16 bit mode for this display //U8G2_ST75256_JLX256128_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 9, /* data=*/ 8, /* cs=*/ 7, /* dc=*/ 6, /* reset=*/ 5); // MKR Zero, Enable U8g2 16 bit mode for this display //U8G2_ST75256_JLX256128_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 7, /* dc=*/ 6, /* reset=*/ 5); // MKR Zero, Enable U8g2 16 bit mode for this display //U8G2_ST75256_JLX256160_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Uno, Enable U8g2 16 bit mode for this display //U8G2_ST75256_JLX256160_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Uno, Enable U8g2 16 bit mode for this display //U8G2_ST75256_JLX240160_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST75256_JLX240160_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST75256_JLX25664_1_2ND_HW_I2C u8g2(U8G2_R0, /* reset=*/ 8); // Due, 2nd I2C, enable U8g2 16 bit mode for this display //U8G2_NT7534_TG12864R_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_NT7534_TG12864R_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_ST7588_JLX12864_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ 5); //U8G2_ST7588_JLX12864_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ 5); //U8G2_IST3020_ERC19264_1_6800 u8g2(U8G2_R0, 44, 43, 42, 41, 40, 39, 38, 37, /*enable=*/ 28, /*cs=*/ 32, /*dc=*/ 30, /*reset=*/ 31); // Connect WR pin with GND //U8G2_IST3020_ERC19264_1_8080 u8g2(U8G2_R0, 44, 43, 42, 41, 40, 39, 38, 37, /*enable=*/ 29, /*cs=*/ 32, /*dc=*/ 30, /*reset=*/ 31); // Connect RD pin with 3.3V //U8G2_IST3020_ERC19264_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_LC7981_160X80_1_6800 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect RW with GND //U8G2_LC7981_160X160_1_6800 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect RW with GND //U8G2_LC7981_240X128_1_6800 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect RW with GND //U8G2_SED1520_122X32_1 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*dc=*/ A0, /*e1=*/ A3, /*e2=*/ A2, /* reset=*/ A4); // Set R/W to low! //U8G2_T6963_240X128_1_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 17, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect RD with +5V, FS0 and FS1 with GND //U8G2_T6963_256X64_1_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 17, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect RD with +5V, FS0 and FS1 with GND //U8G2_SED1330_240X128_1_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 17, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect /RD = E with +5V, enable is /WR = RW, FG with GND, 14=Uno Pin A0 //U8G2_SED1330_240X128_1_6800 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 17, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // A0 is dc pin, /WR = RW = GND, enable is /RD = E //U8G2_RA8835_NHD_240X128_1_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 17, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect /RD = E with +5V, enable is /WR = RW, FG with GND, 14=Uno Pin A0 //U8G2_RA8835_NHD_240X128_1_6800 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 17, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // A0 is dc pin, /WR = RW = GND, enable is /RD = E //U8G2_UC1601_128X32_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_UC1601_128X32_1_3W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* reset=*/ 8); //U8G2_UC1604_JLX19264_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_UC1604_JLX19264_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_UC1608_ERC24064_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // SW SPI, Due ERC24064-1 Test Setup //U8G2_UC1608_ERC240120_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8G2_UC1608_240X128_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // SW SPI, Due ERC24064-1 Test Setup //U8G2_UC1610_EA_DOGXL160_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); //U8G2_UC1610_EA_DOGXL160_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); //U8G2_UC1611_EA_DOGM240_1_2ND_HW_I2C u8g2(U8G2_R0, /* reset=*/ 8); // Due, 2nd I2C, DOGM240 Test Board //U8G2_UC1611_EA_DOGM240_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // SW SPI, Due DOGXL240 Test Board //U8G2_UC1611_EA_DOGXL240_1_2ND_HW_I2C u8g2(U8G2_R0, /* reset=*/ 8); // Due, 2nd I2C, DOGXL240 Test Board //U8G2_UC1611_EA_DOGXL240_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // SW SPI, Due DOGXL240 Test Board //U8G2_UC1611_EW50850_1_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*cs=*/ 3, /*dc=*/ 16, /*reset=*/ 16); // 240x160, Connect RD/WR1 pin with 3.3V, CS is aktive high //U8G2_UC1638_160X128_1_4W_HW_SPI u8g2(U8G2_R2, /* cs=*/ 2, /* dc=*/ 3, /* reset=*/ 4); // Not tested //U8G2_SSD1606_172X72_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // eInk/ePaper Display //U8G2_SSD1607_200X200_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // eInk/ePaper Display, original LUT from embedded artists //U8G2_SSD1607_GD_200X200_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Good Display //U8G2_IL3820_296X128_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // WaveShare 2.9 inch eInk/ePaper Display, enable 16 bit mode for this display! //U8G2_IL3820_V2_296X128_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // ePaper Display, lesser flickering and faster speed, enable 16 bit mode for this display! // End of constructor list float gs_rad; //stores angle from where to start in radinats float ge_rad; //stores angle where to stop in radinats //example values for testing, use the values you wish to pass as argument while calling the function byte cx=50; //x center byte cy=20; //y center byte radius=20; //radius byte percent=80; //needle percent void Drawgauge(int x, byte y, byte r, byte p, int v, int minVal, int maxVal, byte t ) { int n=(r/100.00)*p; // calculate needle percent lenght u8g2.firstPage(); do { switch (t){ case 0: { //left quarter float gs_rad=-1.572; //-90 degrees in radiant float ge_rad=0; float i=((v-minVal)*(ge_rad-gs_rad)/(maxVal-minVal)+gs_rad); int xp = x+(sin(i) * n); int yp = y-(cos(i) * n); u8g2.drawCircle(x,y,r, U8G2_DRAW_UPPER_LEFT ); u8g2.drawLine(x,y,xp,yp); } break; case 1: { //right quarter, needle anticlockwise float gs_rad=0; float ge_rad=1.572; //90 degrees in radiant float i=((v-minVal)*(ge_rad-gs_rad)/(maxVal-minVal)+gs_rad); int xp = x+(cos(i) * n); int yp = y-(sin(i) * n); u8g2.drawCircle(x,y,r, U8G2_DRAW_UPPER_RIGHT ); u8g2.drawLine(x,y,xp,yp); } break; case 2: { //upper half float gs_rad=-1.572; float ge_rad=1.572; float i=((v-minVal)*(ge_rad-gs_rad)/(maxVal-minVal)+gs_rad); int xp = x+(sin(i) * n); int yp = y-(cos(i) * n); u8g2.drawCircle(x,y,r, U8G2_DRAW_UPPER_LEFT|U8G2_DRAW_UPPER_RIGHT ); u8g2.drawLine(x,y,xp,yp); } break; case 3: { //three quarter starting at -180 float gs_rad=-3.142; float ge_rad=1.572; float i=((v-minVal)*(ge_rad-gs_rad)/(maxVal-minVal)+gs_rad); int xp = x+(sin(i) * n); int yp = y-(cos(i) * n); u8g2.drawCircle(x,y,r, U8G2_DRAW_UPPER_LEFT|U8G2_DRAW_UPPER_RIGHT|U8G2_DRAW_LOWER_LEFT ); u8g2.drawLine(x,y,xp,yp); } break; case 4: { //three quarter starting at -90 float gs_rad=-1.572; float ge_rad=3.141; float i=((v-minVal)*(ge_rad-gs_rad)/(maxVal-minVal)+gs_rad); int xp = x+(sin(i) * n); int yp = y-(cos(i) * n); u8g2.drawCircle(x,y,r, U8G2_DRAW_UPPER_LEFT|U8G2_DRAW_UPPER_RIGHT|U8G2_DRAW_LOWER_RIGHT ); u8g2.drawLine(x,y,xp,yp); } break; } } while ( u8g2.nextPage() ); } void setup() { u8g2.begin(); } void loop() { //this loop is for testing gauges mode for (byte t=0; t <=4; t++){ for (int c=0; c <= 100; c++) { //this loop is for testing needle movement Drawgauge(cx,cy,radius,percent,c,0,100,t); } } } ",12108,True,3286.8560282556405,median "#ifdef ARDUINO_M5Stick_C_Plus #include #else // !ARDUINO_M5Stick_C_Plus #ifdef ARDUINO_M5Stick_C #include #else // !ARDUINO_M5Stick_C #ifdef ARDUINO_M5STACK_Core2 #include #else // !ARDUINO_M5STACK_Core2 #include // Graphics and font library for ST7735 driver chip #ifndef TTGO // custom ESP32 const int cds = 39; // VP=36, VN=39 static bool backlight_is_on = true; #define CUSTOM_ESP32_TFT // for later compile switch #define ESP32_DEFAULT_ROTATION 0 #define BUTTON1 0 // GPIO0 #else // TTGO #define ESP32_DEFAULT_ROTATION 1 #define BUTTON1 35 // GPIO35, not sure this works or not #define BUTTON2 0 // GPIO0 #ifdef TFT_BL #undef TFT_BL #endif #endif // TTGO #endif // !ARDUINO_M5STACK_Core2 #endif // !ARDUINO_M5Stick_C #endif // !ARDUINO_M5Stick_C_Plus // #include #include #define ARDUINOJSON_USE_LONG_LONG 1 #include #include #include #include #include ""Free_Fonts.h"" #include ""auth.h"" const char* bitbank_root_ca= \\ ""-----BEGIN CERTIFICATE-----\\n"" \\ ""MIIEDzCCAvegAwIBAgIBADANBgkqhkiG9w0BAQUFADBoMQswCQYDVQQGEwJVUzEl\\n"" \\ ""MCMGA1UEChMcU3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAGA1UECxMp\\n"" \\ ""U3RhcmZpZWxkIENsYXNzIDIgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDQw\\n"" \\ ""NjI5MTczOTE2WhcNMzQwNjI5MTczOTE2WjBoMQswCQYDVQQGEwJVUzElMCMGA1UE\\n"" \\ ""ChMcU3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAGA1UECxMpU3RhcmZp\\n"" \\ ""ZWxkIENsYXNzIDIgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggEgMA0GCSqGSIb3\\n"" \\ ""DQEBAQUAA4IBDQAwggEIAoIBAQC3Msj+6XGmBIWtDBFk385N78gDGIc/oav7PKaf\\n"" \\ ""8MOh2tTYbitTkPskpD6E8J7oX+zlJ0T1KKY/e97gKvDIr1MvnsoFAZMej2YcOadN\\n"" \\ ""+lq2cwQlZut3f+dZxkqZJRRU6ybH838Z1TBwj6+wRir/resp7defqgSHo9T5iaU0\\n"" \\ ""X9tDkYI22WY8sbi5gv2cOj4QyDvvBmVmepsZGD3/cVE8MC5fvj13c7JdBmzDI1aa\\n"" \\ ""K4UmkhynArPkPw2vCHmCuDY96pzTNbO8acr1zJ3o/WSNF4Azbl5KXZnJHoe0nRrA\\n"" \\ ""1W4TNSNe35tfPe/W93bC6j67eA0cQmdrBNj41tpvi/JEoAGrAgEDo4HFMIHCMB0G\\n"" \\ ""A1UdDgQWBBS/X7fRzt0fhvRbVazc1xDCDqmI5zCBkgYDVR0jBIGKMIGHgBS/X7fR\\n"" \\ ""zt0fhvRbVazc1xDCDqmI56FspGowaDELMAkGA1UEBhMCVVMxJTAjBgNVBAoTHFN0\\n"" \\ ""YXJmaWVsZCBUZWNobm9sb2dpZXMsIEluYy4xMjAwBgNVBAsTKVN0YXJmaWVsZCBD\\n"" \\ ""bGFzcyAyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5ggEAMAwGA1UdEwQFMAMBAf8w\\n"" \\ ""DQYJKoZIhvcNAQEFBQADggEBAAWdP4id0ckaVaGsafPzWdqbAYcaT1epoXkJKtv3\\n"" \\ ""L7IezMdeatiDh6GX70k1PncGQVhiv45YuApnP+yz3SFmH8lU+nLMPUxA2IGvd56D\\n"" \\ ""eruix/U0F47ZEUD0/CwqTRV/p2JdLiXTAAsgGh1o+Re49L2L7ShZ3U0WixeDyLJl\\n"" \\ ""xy16paq8U4Zt3VekyvggQQto8PT7dL5WXXp59fkdheMtlb71cZBDzI0fmgAKhynp\\n"" \\ ""VSJYACPq4xJDKVtHCN2MQWplBqjlIapBtJUhlbl90TSrE9atvNziPTnNvT51cKEY\\n"" \\ ""WQPJIrSPnNVeKtelttQKbfi3QBFGmh95DmK/D5fs4C8fF5Q=\\n"" \\ ""-----END CERTIFICATE-----\\n""; #define MAX_HORIZONTAL_RESOLUTION 321 TFT_eSPI tft = TFT_eSPI(); // Invoke library, pins defined in User_Setup.h #if defined(ARDUINO_M5Stick_C) || defined(ARDUINO_M5Stick_C_Plus) || defined(ARDUINO_M5STACK_Core2) #define LCD M5.Lcd #else #undef LCD #define LCD tft #endif WiFiClientSecure client; SimpleTimer timer; #define SERVER ""public.bitbank.cc"" /* function to convert unsigned integer to comma separated numerical string */ void itocsa(char *buf, unsigned bufsiz, unsigned n) { char *p = buf; unsigned len, i; for (i = 1 ; i < n ; i *= 1000); if (1 < i) { i /= 1000; snprintf(p, bufsiz, ""%d"", n / i); n = n % i; len = strlen(p); p += len; bufsiz -= len; i /= 1000; while (0 < i) { snprintf(p, bufsiz, "",%03d"", n / i); n = n % i; p += 4; bufsiz -= 4; i /= 1000; } } else { snprintf(p, bufsiz, ""%d"", n); } } #define CANDLESTICK_WIDTH ""5min"" #define CANDLESTICK_WIDTH_MIN 5 #define STICK_WIDTH 3 // width of a candle stick #define NUM_STICKS (MAX_HORIZONTAL_RESOLUTION / STICK_WIDTH) class Currency { public: const char* name; const char* pair; int priceline; unsigned another = 0; struct { unsigned startPrice, endPrice, lowestPrice, highestPrice; float relative; unsigned long timeStamp; } candlesticks[NUM_STICKS]; unsigned todayshigh = 0; unsigned todayslow = 0; unsigned prevPrice = 0, price = 0; unsigned lowest, highest; unsigned long prevTimeStamp = 0; float relative = 0.0, prevRelative = 0.0; float highestRelative, lowestRelative; int pricePixel; Currency (const char *na, const char *pa, unsigned pl) { name = na; pair = pa; priceline = pl; } unsigned obtainLastPrice(unsigned long *t); void obtainSticks(unsigned n, unsigned long t); void obtainSticks(unsigned n, unsigned long t, unsigned long lastTimeStamp); void sendRequest(unsigned long t); unsigned readHeader(); void calcRelative(); void ShowChart(int yoff); void ShowCurrentPrice(bool forceReloadSticks); void SwitchCurrency(); void ShowCurrencyName(const char *buf, int yoff); void ShowUpdating(int yoff); void setAlert(class alert a); } currencies[2] = {{""ETH"", ""eth_jpy"", 5000}, {""BTC"", ""btc_jpy"", 100000}}; static unsigned cIndex = 0; // ETH by default. unsigned numScreens = 1; unsigned tftHeight = 0; unsigned tftWidth = 0; unsigned tftHalfHeight = 0; unsigned dedicatedPriceAreaHeight = 0; unsigned PriceFontHeight = 0; unsigned numSticks = 1; #define TIMEZONE (9 * 60 * 60) #define MINIMUM_SPLITTABLE_HEIGHT 239 // for splitting screen into dual one #define MINIMUM_SEPARATABLE_HEIGHT 150 // for price and chart seperation #define MINIMUM_WIDTH 199 // allowed minimum width used in rotation void Currency::sendRequest(unsigned long t) { client.print(""GET https://"" SERVER ""/""); client.print(pair); client.print(""/candlestick/"" CANDLESTICK_WIDTH ""/""); #ifdef SHOW_HTTPHEADERS Serial.print(""GET https://"" SERVER ""/""); Serial.print(pair); Serial.print(""/candlestick/"" CANDLESTICK_WIDTH ""/""); #endif { char yyyymmdd[9]; // 9 for ""yyyymmdd"" sprintf(yyyymmdd, ""%04d%02d%02d"", year(t), month(t), day(t)); client.print(yyyymmdd); client.println("" HTTP/1.0""); #ifdef SHOW_HTTPHEADERS Serial.print(yyyymmdd); Serial.println("" HTTP/1.0""); #endif } client.println(""Host: "" SERVER); client.println(""Connection: close""); client.println(); #ifdef SHOW_HTTPHEADERS Serial.println(""Host: "" SERVER); Serial.println(""Connection: close""); Serial.println(); #endif } unsigned Currency::readHeader() { #define ERRTHRESHOLD 30 unsigned errcounter = 0; while (client.connected() && errcounter < ERRTHRESHOLD) { String line = client.readStringUntil('\\n'); // timeout in 1000msec if (line) { #ifdef SHOW_HTTPHEADERS Serial.println(line); // echo response headers #endif if (line == ""\\r"") { // Serial.println(""headers received""); break; } } else { errcounter++; } } return errcounter; } void Currency::obtainSticks(unsigned n, unsigned long t, unsigned long lastTimeStamp) { unsigned errcounter = 0; // Serial.println(""\\nobtainSticks called.""); while (0 < n) { if (client.connect(SERVER, 443)) { Serial.println(""\\nConnected to http server for sticks.""); // #define SHOW_HTTPHEADERS // HTTP request: sendRequest(t); errcounter = readHeader(); if (errcounter < ERRTHRESHOLD) { DynamicJsonDocument doc(50000); DeserializationError error = deserializeJson(doc, client); client.stop(); if (!error) { int success = doc[""success""]; // 1 if (success) { JsonArray ohlcv = doc[""data""][""candlestick""][0][""ohlcv""]; unsigned nSticks = ohlcv.size(); // Serial.print(""Success = ""); // Serial.println(success); if (0 < lastTimeStamp) { // skip newer candlestick if any. for (int i = nSticks - 1 ; 0 < i ; i--) { // this may just remove one data at most if ((unsigned long)(ohlcv[i][5].as() / 1000) <= lastTimeStamp) { nSticks = i + 1; break; } } } Serial.print(""Number of sticks = ""); Serial.print(nSticks); unsigned stickOffset, ohlcvOffset, nloops; if (n <= nSticks) { // enough sticks obtained Serial.println("" (enough)""); stickOffset = 0; ohlcvOffset = nSticks - n; nloops = n; } else { Serial.println("" (not enough)""); stickOffset = n - nSticks; ohlcvOffset = 0; nloops = nSticks; } for (unsigned i = 0 ; i < nloops ; i++) { unsigned stickIndex = i + stickOffset; unsigned ohlcvIndex = i + ohlcvOffset; // copy the last n data from JSON candlesticks[stickIndex].startPrice = ohlcv[ohlcvIndex][0].as(); candlesticks[stickIndex].highestPrice = ohlcv[ohlcvIndex][1].as(); candlesticks[stickIndex].lowestPrice = ohlcv[ohlcvIndex][2].as(); candlesticks[stickIndex].endPrice = ohlcv[ohlcvIndex][3].as(); candlesticks[stickIndex].timeStamp = (unsigned long)(ohlcv[ohlcvIndex][5].as() / 1000); } if (n <= nSticks) { n = 0; if (todayshigh == 0) { // if 'todayshigh' is not set // set 'todayshigh' based on candlestick information // actual 'todayshigh' should be set using last price, out of this routine unsigned today = day(candlesticks[numSticks - 1].timeStamp + TIMEZONE); if (day(candlesticks[0].timeStamp + TIMEZONE) == today) { unsigned long ts; bool needMoreSticks = false; // have to check the data before the first item in candlesticks[] // This is in order to obtain the real ""today's high"" and ""low"". // Note that this does not work in the case that 9:00am is out of holizontal range // This should be fixed in the future version. ts = (unsigned long)(ohlcv[0][5].as() / 1000); if (day(ts + TIMEZONE) == today) { // Not enough data to obtain today's high and low // This should be programmed in the future needMoreSticks = true; } for (unsigned i = 0 ; i < nSticks - n ; i++) { unsigned h, l; // get necessary data from JSON h = ohlcv[i][1].as(); l = ohlcv[i][2].as(); ts = (unsigned long)(ohlcv[i][5].as() / 1000); if (day(ts + TIMEZONE) == today) { if (todayshigh == 0) { todayshigh = h; todayslow = l; } else if (todayshigh < h) { todayshigh = h; } else if (l < todayslow) { todayslow = l; } } } if (needMoreSticks) { // Should be programmed here in the future } } for (unsigned i = 0 ; i < numSticks ; i++) { if (day(candlesticks[i].timeStamp + TIMEZONE) == today) { if (todayshigh == 0) { todayshigh = candlesticks[i].highestPrice; todayslow = candlesticks[i].lowestPrice; } else if (todayshigh < candlesticks[i].highestPrice) { todayshigh = candlesticks[i].highestPrice; } else if (candlesticks[i].lowestPrice < todayslow) { todayslow = candlesticks[i].lowestPrice; } } } } } else { n -= nSticks; // to fill remaining slots t -= 24 * 60 * 60; // for data one day before } } else { // not success Serial.println(F(""deserializeJson() succeded w/ false 'success' flag."")); return; } } else { Serial.print(F(""deserializeJson() failed: "")); Serial.println(error.f_str()); return; } } else { Serial.println(F(""http read timedout."")); return; } } else { Serial.println(""\\nConnection failed!""); return; } } // obtaining chart's high and low lowest = candlesticks[0].lowestPrice; // chart's low highest = candlesticks[0].highestPrice; // chart's high for (unsigned i = 1 ; i < numSticks ; i++) { if (candlesticks[i].lowestPrice < lowest) { lowest = candlesticks[i].lowestPrice; } if (highest < candlesticks[i].highestPrice) { highest = candlesticks[i].highestPrice; } } Serial.print(""\\ntoday = ""); Serial.print(todayslow); Serial.print("" - ""); Serial.println(todayshigh); Serial.print(""chart = ""); Serial.print(lowest); Serial.print("" - ""); Serial.println(highest); if (todayslow < lowest) { lowest = todayslow; } if (highest < todayshigh) { highest = todayshigh; } } void Currency::obtainSticks(unsigned n, unsigned long t) { obtainSticks(n, t, 0); } // Output timestamp to serial terminal void SerialPrintTimestamp(unsigned t, unsigned tz) { Serial.print(""timestamp = ""); Serial.print(t); t += tz; Serial.print("" = ""); Serial.print(year(t)); Serial.print(""/""); Serial.print(month(t)); Serial.print(""/""); Serial.print(day(t)); Serial.print("" ""); Serial.print(hour(t)); Serial.print("":""); if (minute(t) < 10) { Serial.print(""0""); } Serial.print(minute(t)); Serial.print("":""); if (second(t) < 10) { Serial.print(""0""); } Serial.print(second(t)); Serial.println("" JST""); } unsigned Currency::obtainLastPrice(unsigned long *t) { if (!client.connect(SERVER, 443)) { Serial.println(""Connection failed!""); } else { Serial.println(""Connected to http server for price.""); // Make a HTTP request: client.print(""GET https://"" SERVER ""/""); client.print(pair); client.println(""/ticker HTTP/1.0""); client.println(""Host: "" SERVER); client.println(""Connection: close""); client.println(); unsigned errcounter = 0; while (client.connected() && errcounter < ERRTHRESHOLD) { String line = client.readStringUntil('\\n'); // timeout in 1000msec if (line) { #ifdef SHOW_HTTPHEADERS Serial.println(line); // echo response headers #endif if (line == ""\\r"") { // Serial.println(""headers received""); break; } } else { errcounter++; } } // Allocate the JSON document // Use arduinojson.org/v6/assistant to compute the capacity. StaticJsonDocument<512> doc; // Parse JSON object DeserializationError error = deserializeJson(doc, client); if (error) { Serial.print(F(""deserializeJson() failed: "")); Serial.println(error.f_str()); } else { // Extract values if (doc[""success""]) { unsigned long timestamp; // Obtaining time stamp of ticker response and use it as the current time, // instead of obtaining current time by NTP. timestamp = (unsigned long)(doc[""data""][""timestamp""].as() / 1000); if (day(timestamp + TIMEZONE) != day(prevTimeStamp + TIMEZONE)) { todayshigh = 0; } prevTimeStamp = timestamp; SerialPrintTimestamp(timestamp, TIMEZONE); prevPrice = price; price = (unsigned)doc[""data""][""last""].as(); } } client.stop(); } if (t) { *t = prevTimeStamp; } return price; } #define ALERT_INTERVAL 500 // msec #define ALERT_DURATION (30 /* sec */ * (1000 / ALERT_INTERVAL)) // times ALERT_INTERVAL static unsigned alertDuration = 0; static unsigned long prevCandlestickTimestamp = 0; static bool changeTriggered = false; static bool rotationTriggered = false; static bool currencyRotationTriggered = false; #define PRICEBUFSIZE 24 #define PRICE_MIN_X 5 #define PRICE_PAD_X 3 #define PRICE_PAD_Y 10 #define BORDER_WIDTH 2 #if defined(ARDUINO_M5Stick_C) && !defined(ARDUINO_M5Stick_C_Plus) #define PRICEFONT 4 #define OTHER_CURRENCY_BASE_VALUE_FONT 2 #define PRICE_FONT_HEIGHT_ADJUSTMENT 2 #define CONNECTINGFONT 4 #define BASE_DIFF 0 // base difference between relative price font and its unit font #else #define PRICE_FONT FF44 // 20, 24, (36,) 44 are candidates for a price font #define PRICEFONT GFXFF #define OTHER_CURRENCY_BASE_VALUE_FONT 4 #define PRICE_FONT_HEIGHT_ADJUSTMENT 10 #define CONNECTINGFONT 4 #define BASE_DIFF 4 // base difference between relative price font and its unit font #endif #define TFT_DOWNRED 0xC000 /* 127, 0, 0 */ #define TFT_UPGREEN 0x0600 /* 0, 128, 0 */ // #define TFT_RED 0xF800 /* 255, 0, 0 */ // #define TFT_GREEN 0x07E0 /* 0, 255, 0 */ #define ONEMINUTE_THRESHOLD 1 // per cent #define FIVEMINUTES_THRESHOLD 1 // per cent #define PADX 5 #define PADY 5 #define MESGSIZE 64 #define ALERT_BLACK_DURATION 200 // msec void DrawStringWithShade(const char *buf, int x, int y, unsigned font, int color, int shade) { LCD.setTextColor(TFT_BLACK); LCD.drawString(buf, x - shade, y - shade, font); LCD.drawString(buf, x + shade, y + shade, font); LCD.setTextColor(color); LCD.drawString(buf, x, y, font); } #define BAT_POS_TOPRIGHT 1 #define BAT_POS_TOPLEFT 2 #define BAT_POS_BOTTOMLEFT 3 #if defined(ARDUINO_M5Stick_C) || defined(ARDUINO_M5Stick_C_Plus) || defined(ARDUINO_M5STACK_Core2) #define MIN_VOLTAGE 3.0 #define MAX_VOLTAGE 4.2 #define TOP_OFFSET 1 // per 10 #define HEIGHT_RANGE 8 // per 10 void ShowBatteryStatus(unsigned position) { double vbat = M5.Axp.GetBatVoltage(); int charging = M5.Axp.GetBatCurrent(); unsigned batstat = (unsigned)((vbat - MIN_VOLTAGE) * 100 / (MAX_VOLTAGE - MIN_VOLTAGE)); char buf[6]; sprintf(buf, ""%d%%"", batstat); unsigned fHeight = LCD.fontHeight(2); unsigned batxoff = 1; unsigned batyoff = ((fHeight - 2) * TOP_OFFSET / 10) + 1; unsigned batheight = (fHeight - 2) * HEIGHT_RANGE / 10; unsigned batwidth = (batheight - 2) * 2 - 2; unsigned pluslen = batheight / 3; unsigned top, bottom, left, right; switch (position) { case BAT_POS_TOPLEFT: top = batyoff; left = batxoff; break; case BAT_POS_BOTTOMLEFT: top = LCD.height() - fHeight + batyoff; left = batxoff; break; case BAT_POS_TOPRIGHT: default: top = batyoff; left = LCD.width() - batwidth - LCD.textWidth(""100%"", 2); break; } bottom = top + batheight; right = left + batwidth; LCD.fillRect(left - 1, top - 1, right - left + 3, bottom - top + 2, TFT_BLACK); LCD.drawLine(left + 1, top, right - 3, top, TFT_LIGHTGREY); LCD.drawLine(left + 1, bottom, right - 3, bottom, TFT_LIGHTGREY); LCD.drawLine(left, top + 1, left, bottom - 1, TFT_LIGHTGREY); LCD.drawLine(right - 2, top + 1, right - 2, bottom - 1, TFT_LIGHTGREY); LCD.fillRect(right, top + (bottom - top - pluslen) / 2, 2, pluslen, TFT_LIGHTGREY); LCD.fillRect(left + 2, top + 2, (right - left - 4) * batstat / 100, bottom - top - 3, 0 < charging ? TFT_GREEN : TFT_WHITE); DrawStringWithShade(buf, right + 5, top - batyoff, 2, TFT_WHITE, 1); } #else void ShowBatteryStatus(unsigned position) {} #endif void ShowLastPrice(char *buf, int lastPricePixel, unsigned priceColor, int yoff) { int textY; if (dedicatedPriceAreaHeight) { textY = 0; if (yoff == 0) { ShowBatteryStatus(BAT_POS_TOPRIGHT); } } else { textY = lastPricePixel - (PriceFontHeight / 2); if (textY < 0) { textY = 0; } else if (tftHeight - PriceFontHeight + PRICE_PAD_Y < textY) { textY = tftHeight - PriceFontHeight + PRICE_PAD_Y; } textY += yoff; if (yoff == 0) { ShowBatteryStatus(LCD.fontHeight(2) < textY ? BAT_POS_TOPLEFT : BAT_POS_BOTTOMLEFT); } } DrawStringWithShade(buf, 0, textY, PRICEFONT, priceColor, BORDER_WIDTH); } void ShowRelativePrice(char *buf, const char *name, int lastPricePixel, unsigned priceColor, int yoff) { int textY; if (dedicatedPriceAreaHeight) { textY = PriceFontHeight; } else { textY = lastPricePixel - (PriceFontHeight / 2); if (textY < 0) { textY = 0; } else if (tftHeight - PriceFontHeight + PRICE_PAD_Y < textY) { textY = tftHeight - PriceFontHeight + PRICE_PAD_Y; } if (lastPricePixel < tftHalfHeight) { textY += PriceFontHeight; } else { textY -= LCD.fontHeight(OTHER_CURRENCY_BASE_VALUE_FONT); } } DrawStringWithShade(buf, PADX, textY + yoff, OTHER_CURRENCY_BASE_VALUE_FONT, priceColor, BORDER_WIDTH); DrawStringWithShade(name, PADX + LCD.textWidth(buf, OTHER_CURRENCY_BASE_VALUE_FONT), textY + yoff + LCD.fontHeight(OTHER_CURRENCY_BASE_VALUE_FONT) - LCD.fontHeight(2) - BASE_DIFF, 2, priceColor, BORDER_WIDTH); } void Currency::ShowCurrencyName(const char *buf, int yoff) { int textY; if (pricePixel < tftHalfHeight) { textY = tftHeight - LCD.fontHeight(2) * 2; } else { textY = LCD.fontHeight(2); } LCD.setTextColor(TFT_WHITE); LCD.drawString(buf, tftWidth - LCD.textWidth(buf, 2) - 1, textY + yoff, 2); } static const char *updating = ""Updating...""; void Currency::ShowUpdating(int yoff) { int textY; if (pricePixel < tftHalfHeight) { textY = tftHeight - LCD.fontHeight(2) * 2 + yoff; } else { textY = LCD.fontHeight(2); } LCD.setTextColor(TFT_WHITE, TFT_BLUE); LCD.drawString(updating, tftWidth - LCD.textWidth(updating, 2) - 1, textY + dedicatedPriceAreaHeight, 2); } class alert { public: void setBackColor(unsigned color) { alertbgcolor = color; } char mesgbuf[MESGSIZE]; int alertId; void setMesg1(const char *s) { alertmesg1 = s; } void setMesg2(const char *s) { alertmesg2 = s; } void setLastPrice(unsigned p) { lastPrice = p; } void beginAlert() { //LCD.fillScreen(alertbgcolor); LCD.fillRect(0, 1 < numScreens ? tftHeight : 0 + dedicatedPriceAreaHeight, tftWidth, tftHeight, alertbgcolor); LCD.setTextColor(TFT_WHITE); itocsa(buf, PRICEBUFSIZE, lastPrice); textColor = TFT_WHITE; showAlert(); } void flashAlert() { textColor = (textColor == TFT_WHITE) ? TFT_BLACK : TFT_WHITE; LCD.setTextColor(textColor); showAlert(); } private: void showAlert() { unsigned yoff = 1 < numScreens ? tftHeight : 0 + dedicatedPriceAreaHeight; LCD.drawString(alertmesg1, PADX, PADY + yoff, 4); LCD.drawString(alertmesg2, PADX, LCD.fontHeight(4) + PADY + yoff, 4); LCD.drawString(buf, tftWidth / 2 - LCD.textWidth(buf, PRICEFONT) / 2, tftHeight - PriceFontHeight + yoff, PRICEFONT); } char buf[PRICEBUFSIZE]; const char *alertmesg1; const char *alertmesg2; unsigned textColor = TFT_WHITE; unsigned alertbgcolor = TFT_DOWNRED; // alert color by default unsigned lastPrice; } Alert; int floatmap(float val, float l, float h, int a, int b) { double res = (val - l) / (h - l); int height = b - a; return (int)(res * height) + a; } void Currency::ShowChart(int yoff) { char buf[PRICEBUFSIZE], buf2[PRICEBUFSIZE]; unsigned stickColor = TFT_DOWNRED, priceColor = TFT_GREEN; // show the chart #define TFT_DARKBLUE 0x000F /* 0, 0, 127 */ yoff += dedicatedPriceAreaHeight; if (highest < price) { highest = price; } else if (price < lowest) { lowest = price; } if (lowest == highest) { return; } // draw horizontal price lines if (price < prevPrice) { priceColor = TFT_RED; } for (int i = lowest / priceline + 1 ; i * priceline < highest ; i++) { int y = map(i * priceline, lowest, highest, tftHeight, 0); LCD.drawFastHLine(0, y + yoff, tftWidth, TFT_DARKBLUE); } // get the position to draw last price pricePixel = map(price, lowest, highest, tftHeight, 0); // get initial position for relative price unsigned prevRel = floatmap(candlesticks[0].relative, lowestRelative, highestRelative, tftHeight, 0); unsigned prevHour = hour(candlesticks[0].timeStamp + TIMEZONE); itocsa(buf, PRICEBUFSIZE, highest); // draw candlesticks for (unsigned i = 0 ; i < numSticks ; i++) { // draw vertical hour line unsigned curHour = hour(candlesticks[i].timeStamp + TIMEZONE); if (curHour != prevHour) { prevHour = curHour; LCD.drawFastVLine(i * 3 + 1, yoff, tftHeight, TFT_DARKBLUE); if (curHour % 3 == 0) { char bufHour[4]; snprintf(bufHour, sizeof(bufHour) - 1, ""%d"", curHour); int offset = LCD.textWidth(bufHour, 2) / 2; if (i * 3 < tftWidth - LCD.textWidth(buf, 2) - offset - PADX) { // if we have enough space around vertical line, draw the time unsigned textY = 0; if (pricePixel < tftHalfHeight) { textY = tftHeight - LCD.fontHeight(2); } LCD.setTextColor(TFT_CYAN); LCD.drawNumber(curHour, i * 3 - offset, textY + yoff, 2); } } } if (0 < i) { // draw graph for relative prices unsigned curRel = floatmap(candlesticks[i].relative, lowestRelative, highestRelative, tftHeight- 1, 2); // note that the lowest pixel is 2, instead of 0 to prevent collision in // dual screen mode LCD.drawLine(i * 3 - 2, prevRel + yoff, i * 3 + 1, curRel + yoff, TFT_ORANGE); prevRel = curRel; } // draw candlesticks int lowestPixel, highestPixel, lowPixel, pixelHeight; lowestPixel = map(candlesticks[i].lowestPrice, lowest, highest, tftHeight, 0); highestPixel = map(candlesticks[i].highestPrice, lowest, highest, tftHeight, 0); if (candlesticks[i].startPrice < candlesticks[i].endPrice) { lowPixel = map(candlesticks[i].endPrice, lowest, highest, tftHeight, 0); pixelHeight = map(candlesticks[i].startPrice, lowest, highest, tftHeight, 0) - lowPixel; stickColor = TFT_UPGREEN; } else { lowPixel = map(candlesticks[i].startPrice, lowest, highest, tftHeight, 0); pixelHeight = map(candlesticks[i].endPrice, lowest, highest, tftHeight, 0) - lowPixel; stickColor = TFT_DOWNRED; } LCD.drawFastVLine(i * 3 + 1, highestPixel + yoff, lowestPixel - highestPixel, TFT_LIGHTGREY); LCD.fillRect(i * 3, highestPixel + yoff, 3, pixelHeight, stickColor); } // draw price horizontal line LCD.drawFastHLine(0, pricePixel + yoff, tftWidth, priceColor); // draw highest and lowest price in the chart itocsa(buf, PRICEBUFSIZE, highest); DrawStringWithShade(buf, tftWidth - LCD.textWidth(buf, 2) - 1, yoff, 2, TFT_WHITE, 1); itocsa(buf, PRICEBUFSIZE, lowest); DrawStringWithShade(buf, tftWidth - LCD.textWidth(buf, 2) - 1, tftHeight + yoff - LCD.fontHeight(2), 2, TFT_WHITE, 1); // show currency name ShowCurrencyName(name, yoff); // draw last price itocsa(buf, PRICEBUFSIZE, price); // show the current cryptocurrency price on TTGO-T-display yoff -= dedicatedPriceAreaHeight; ShowLastPrice(buf, pricePixel, priceColor, yoff); snprintf(buf2, PRICEBUFSIZE, ""%.5f"", relative); ShowRelativePrice(buf2, currencies[another].name, pricePixel, relative < prevRelative ? TFT_RED: TFT_GREEN, yoff); } void Currency::calcRelative() { highestRelative = lowestRelative = candlesticks[0].relative = (float)candlesticks[0].endPrice / (float)currencies[another].candlesticks[0].endPrice; // Do the same for another currency currencies[another].highestRelative = currencies[another].lowestRelative = currencies[another].candlesticks[0].relative = (float)currencies[another].candlesticks[0].endPrice / (float)candlesticks[0].endPrice; for (unsigned i = 1 ; i < numSticks ; i++) { float re = 0.0; if (0 < currencies[another].candlesticks[i].endPrice) { re = (float)candlesticks[i].endPrice / (float)currencies[another].candlesticks[i].endPrice; } candlesticks[i].relative = re; if (re < lowestRelative) { lowestRelative = re; } if (highestRelative < re) { highestRelative = re; } // Do the same for another currency if (0 < candlesticks[i].endPrice) { re = (float)currencies[another].candlesticks[i].endPrice / (float)candlesticks[i].endPrice; } currencies[another].candlesticks[i].relative = re; if (re < currencies[another].lowestRelative) { currencies[another].lowestRelative = re; } if (currencies[another].highestRelative < re) { currencies[another].highestRelative = re; } } } void Currency::setAlert(class alert a) { // today's high or low if (price < todayslow) { todayslow = price; snprintf(Alert.mesgbuf, MESGSIZE, ""%s hit"", name); Alert.setMesg1(Alert.mesgbuf); Alert.setMesg2(""today's low""); Alert.setBackColor(TFT_DOWNRED); Alert.setLastPrice(price); alertDuration = ALERT_DURATION; } else if (todayshigh < price) { todayshigh = price; snprintf(Alert.mesgbuf, MESGSIZE, ""%s hit"", name); Alert.setMesg1(Alert.mesgbuf); Alert.setMesg2(""today's high""); Alert.setBackColor(TFT_UPGREEN); Alert.setLastPrice(price); alertDuration = ALERT_DURATION; } // not event but set today's high and low properly if (todayshigh < candlesticks[numSticks - 1].highestPrice) { todayshigh = candlesticks[numSticks - 1].highestPrice; } if (candlesticks[numSticks - 1].lowestPrice < todayslow) { todayslow = candlesticks[numSticks - 1].lowestPrice; } // five minutes significant price change if (prevCandlestickTimestamp != candlesticks[numSticks - 1].timeStamp && FIVEMINUTES_THRESHOLD <= abs((long)candlesticks[numSticks -1].startPrice - (long)candlesticks[numSticks -1].endPrice) * 100 / (long)candlesticks[numSticks - 1].startPrice) { prevCandlestickTimestamp = candlesticks[numSticks - 1].timeStamp; if (candlesticks[numSticks - 1].startPrice < candlesticks[numSticks - 1].endPrice) { Alert.setBackColor(TFT_UPGREEN); snprintf(Alert.mesgbuf, MESGSIZE, ""%s %.1f%% up within"", name, (float)(candlesticks[numSticks -1 ].endPrice - candlesticks[numSticks - 1].startPrice) * 100.0 / (float)candlesticks[numSticks - 1].startPrice); } else { Alert.setBackColor(TFT_DOWNRED); snprintf(Alert.mesgbuf, MESGSIZE, ""%s %.1f%% down within"", name, (float)(candlesticks[numSticks -1 ].startPrice - candlesticks[numSticks - 1].endPrice) * 100.0 / (float)candlesticks[numSticks - 1].startPrice); } Alert.setMesg1(Alert.mesgbuf); Alert.setMesg2(""5 minutes.""); Alert.setLastPrice(candlesticks[numSticks - 1].endPrice); alertDuration = ALERT_DURATION; } // in a minute significant price change if (0 < prevPrice && ONEMINUTE_THRESHOLD <= abs((long)price - (long)prevPrice) * 100 / (long)prevPrice) { if (prevPrice < price) { snprintf(Alert.mesgbuf, MESGSIZE, ""%.1f%% up within"", (float)(price - prevPrice) * 100.0 / (float)prevPrice); Alert.setBackColor(TFT_UPGREEN); } else { snprintf(Alert.mesgbuf, MESGSIZE, ""%.1f%% down within"", (float)(prevPrice - price) * 100.0 / (float)prevPrice); Alert.setBackColor(TFT_DOWNRED); } Alert.setMesg1(Alert.mesgbuf); Alert.setMesg2(""a minute.""); Alert.setLastPrice(price); alertDuration = ALERT_DURATION; } } void redrawChart(unsigned ind) { LCD.fillScreen(TFT_BLACK); currencies[ind].ShowChart(0); if (1 < numScreens) { currencies[1 - ind].ShowChart(tftHeight); } } void alertProc() { if (0 < alertDuration) { Alert.flashAlert(); alertDuration--; } if (alertDuration == 0) { timer.deleteTimer(Alert.alertId); redrawChart(cIndex); } } void Currency::ShowCurrentPrice(bool forceReloadSticks) { unsigned long t; // for current time unsigned long prevTime; char buf[PRICEBUFSIZE]; if (0 < alertDuration) { return; } client.setCACert(bitbank_root_ca); Serial.println(""\\n==== Starting connection to server...""); ShowUpdating(1 < numScreens ? tftHeight : 0); prevTime = prevTimeStamp; obtainLastPrice(&t); unsigned lastPriceOfOtherCurrency = currencies[another].obtainLastPrice(&t); prevRelative = relative; relative = (float)price / (float)lastPriceOfOtherCurrency; currencies[another].prevRelative = currencies[another].relative; currencies[another].relative = (float)lastPriceOfOtherCurrency / (float)price; itocsa(buf, PRICEBUFSIZE, price); Serial.print(""last price = ""); Serial.println(buf); // obtaining today's low and today's high if (forceReloadSticks || /* (0 < price && */ (0 == prevTime || (minute(prevTimeStamp) % CANDLESTICK_WIDTH_MIN) < (minute(prevTime) % CANDLESTICK_WIDTH_MIN))) { // I forgot what '0 < price' means // Meaning of '(minute(prevTimeStamp) % CANDLESTICK_WIDTH_MIN) < (minute(prevTime) % CANDLESTICK_WIDTH_MIN)' // is that time exceeds specified CANDLESTICK_WIDTH_MIN, so that, it is necessary to obtain candlesticks. obtainSticks(numSticks, t); // get data for another currency currencies[another].obtainSticks(numSticks, t, candlesticks[numSticks - 1].timeStamp); calcRelative(); // currencies[another].calcRelative(); } SerialPrintTimestamp(candlesticks[numSticks - 1].timeStamp, TIMEZONE); // check events... // last event has the highest priority currencies[another].setAlert(Alert); setAlert(Alert); if (0 < alertDuration) { // Alert.setLastPrice(price); if (1 < numScreens || 0 < dedicatedPriceAreaHeight) { LCD.fillScreen(TFT_BLACK); ShowChart(0); } Alert.beginAlert(); Alert.alertId = timer.setTimer(ALERT_INTERVAL, alertProc, ALERT_DURATION * (1000 / ALERT_INTERVAL) + 1); } else { // show the chart LCD.fillScreen(TFT_BLACK); ShowChart(0); if (1 < numScreens) { currencies[another].ShowChart(tftHeight); } } } void Currency::SwitchCurrency() { Serial.println(""Change triggered.""); if (cIndex == 1 && MINIMUM_SPLITTABLE_HEIGHT < LCD.height()) { numScreens = 3 - numScreens; // (numScreens == 2) ? 1 : 2, numScreen = {1, 2} tftHeight = LCD.height() / numScreens; unsigned priceHeight = PriceFontHeight + LCD.fontHeight(OTHER_CURRENCY_BASE_VALUE_FONT); if (MINIMUM_SEPARATABLE_HEIGHT < tftHeight - priceHeight) { dedicatedPriceAreaHeight = priceHeight; tftHeight -= priceHeight; } else { dedicatedPriceAreaHeight = 0; } tftHalfHeight = tftHeight / 2; } cIndex = 1 - cIndex; // (cIndex == 1) ? 0 : 1 redrawChart(cIndex); } void _ShowCurrentPrice() { if (WiFi.status() == WL_CONNECTED) { currencies[cIndex].ShowCurrentPrice(false); } } #define WIFI_ATTEMPT_LIMIT 30 // seconds for WiFi connection trial static bool WiFiConnected = false; void SecProc() { static unsigned nWiFiTrial = 0; #if defined(TFT_BL) && 0 < TFT_BL // control LED Backlight unsigned br = analogRead(cds); if (br < 1 && backlight_is_on) { digitalWrite(TFT_BL, LOW); backlight_is_on = false; Serial.println(""Back light turned off""); } else if (0 < br && !backlight_is_on) { digitalWrite(TFT_BL, TFT_BACKLIGHT_ON); backlight_is_on = true; Serial.print(""Back light turned on. CdS = ""); Serial.println(br); } #endif if (WiFi.status() == WL_CONNECTED) { if (!WiFiConnected) { WiFiConnected = true; Serial.println("" Connected""); _ShowCurrentPrice(); } if (changeTriggered) { changeTriggered = false; currencies[cIndex].SwitchCurrency(); } if (rotationTriggered) { static const unsigned rotation_w[4] = {2, 3, 1, 0}; // for wide LCD static const unsigned rotation_n[4] = {1, 3, 1, 1}; // for narrow LCD rotationTriggered = false; unsigned r = LCD.getRotation(); if (MINIMUM_WIDTH < LCD.height()) { r = rotation_w[r]; } else { r = rotation_n[r]; } unsigned prevNumSticks = numSticks; LCD.setRotation(r); tftHeight = LCD.height() / numScreens; tftWidth = LCD.width(); tftHalfHeight = tftHeight / 2; numSticks = (tftWidth < MAX_HORIZONTAL_RESOLUTION) ? tftWidth / STICK_WIDTH : NUM_STICKS; if (numSticks != prevNumSticks) { currencies[cIndex].ShowCurrentPrice(true); } else { redrawChart(cIndex); } } if (currencyRotationTriggered) { // currency and screen rotation change triggered currencyRotationTriggered = false; #ifdef TTGO static const unsigned cur_rot[4] = {1, 2, 3, 0}; unsigned r = (LCD.getRotation() & 2); // 1 to 0, 3 to 1. no choice for 2 and 4 unsigned cr = r + cIndex; cr = cur_rot[cr]; if (r != cr / 2 + 1) { LCD.setRotation((cr & 2) + 1); } if (cIndex != cr % 2) { currencies[cIndex].SwitchCurrency(); } #else currencies[cIndex].SwitchCurrency(); #endif } } else { // if FiFi.status() != WL_CONNECTED WiFiConnected = false; if (nWiFiTrial++ == 0) { if (0 < currencies[cIndex].price) { // connected before but lost // Grey out the price display #define CONNECTION_LOST ""Reconnecting ..."" // WiFi.begin(WIFIAP, WIFIPW); WiFi.reconnect(); Serial.print(""WiFi connection was lost.\\nAttempting to reconnect to WiFi ""); LCD.setTextColor(TFT_WHITE, TFT_BLUE); LCD.drawString(CONNECTION_LOST, tftWidth / 2 - LCD.textWidth(CONNECTION_LOST, CONNECTINGFONT) / 2, LCD.height() / 2 - LCD.fontHeight(CONNECTINGFONT) / 2, CONNECTINGFONT); } else { // not connected so far WiFi.begin(WIFIAP, WIFIPW); LCD.fillScreen(TFT_BLACK); delay(100); LCD.fillScreen(TFT_BLUE); LCD.setTextColor(TFT_WHITE); LCD.drawString(""Connecting ..."", PADX, LCD.height() / 2 - LCD.fontHeight(CONNECTINGFONT) / 2, CONNECTINGFONT); } } if (WIFI_ATTEMPT_LIMIT < nWiFiTrial) { Serial.println("" Failed to coonect""); WiFi.disconnect(); nWiFiTrial = 0; } else { Serial.print("".""); } } } #if !defined(ARDUINO_M5Stick_C) && !defined(ARDUINO_M5Stick_C_Plus) && !defined(ARDUINO_M5STACK_Core2) void buttonEventProc() { if (0 < alertDuration) { alertDuration = 0; } else { currencyRotationTriggered = true; } } #endif void setup() { #if defined(ARDUINO_M5Stick_C) || defined(ARDUINO_M5Stick_C_Plus) || defined(ARDUINO_M5STACK_Core2) // initialize the M5StickC object M5.begin(); // M5.Axp.begin(); delay(500); #else // initialize TFT screen tft.init(); // equivalent to tft.begin(); Serial.begin(115200); #endif Serial.println(""""); Serial.println(""CryptoCurrency candlestick chart display terminal started.""); #if defined(TFT_BL) && 0 < TFT_BL pinMode(cds, INPUT); pinMode(TFT_BL, OUTPUT); digitalWrite(TFT_BL, TFT_BACKLIGHT_ON); backlight_is_on = true; #endif #if defined(ARDUINO_M5Stick_C) || defined(ARDUINO_M5Stick_C_Plus) || defined(ARDUINO_M5STACK_Core2) #ifdef ARDUINO_M5STACK_Core2 M5.Lcd.setRotation(1); // set it to 1 or 3 for landscape resolution #else M5.Lcd.setRotation(1); // set it to 1 or 3 for landscape resolution #endif tftHeight = M5.Lcd.height() / numScreens; tftWidth = M5.Lcd.width(); M5.Lcd.fillScreen(BLACK); #else tft.setRotation(ESP32_DEFAULT_ROTATION); // set it to 1 or 3 for landscape resolution tftHeight = tft.height() / numScreens; tftWidth = tft.width(); #endif tftHalfHeight = tftHeight / 2; numSticks = (tftWidth < MAX_HORIZONTAL_RESOLUTION) ? tftWidth / STICK_WIDTH : NUM_STICKS; currencies[0].another = 1; LCD.setTextPadding(PADX); // seems no effect by this line. LCD.setTextSize(1); #if !(defined(ARDUINO_M5Stick_C) && !defined(ARDUINO_M5Stick_C_Plus)) LCD.setFreeFont(PRICE_FONT); // Select a font for last price display #endif PriceFontHeight = LCD.fontHeight(PRICEFONT) - PRICE_FONT_HEIGHT_ADJUSTMENT; unsigned priceHeight = PriceFontHeight + LCD.fontHeight(OTHER_CURRENCY_BASE_VALUE_FONT); if (MINIMUM_SEPARATABLE_HEIGHT < tftHeight - priceHeight) { dedicatedPriceAreaHeight = priceHeight; tftHeight -= priceHeight; } Serial.print(""Attempting to connect to WiFi (""); Serial.print(WIFIAP); Serial.print("") ""); WiFi.begin(WIFIAP, WIFIPW); LCD.fillScreen(TFT_BLUE); LCD.setTextColor(TFT_WHITE); LCD.drawString(""Connecting ..."", PADX, LCD.height() / 2 - LCD.fontHeight(CONNECTINGFONT) / 2, CONNECTINGFONT); #ifdef BUTTON1 attachInterrupt(digitalPinToInterrupt(BUTTON1), buttonEventProc, FALLING); #endif #ifdef BUTTON2 attachInterrupt(digitalPinToInterrupt(BUTTON2), buttonEventProc, FALLING); #endif timer.setInterval(1000, SecProc); timer.setInterval(60000, _ShowCurrentPrice); } void loop() { #if defined(ARDUINO_M5Stick_C) || defined(ARDUINO_M5Stick_C_Plus) || defined(ARDUINO_M5STACK_Core2) M5.update(); if (M5.BtnA.wasPressed()) { if (0 < alertDuration) { alertDuration = 0; } else { changeTriggered = true; } } if (M5.BtnB.wasPressed()) { if (0 < alertDuration) { alertDuration = 0; } else { rotationTriggered = true; } } #endif timer.run(); } ",12364,False,2096.2506183224514,median "#include #include #include #include #include #include #include #include #include #include ""version.h"" #define emptyString String() ////////////////////// Change Paramter to your choosing ///////////////////////// /////////////// Do not change any parameters above this line //////////////////// #define HOSTNAME ""UpdateESP8266"" // AP name will be HOSTNAME-XXXXXX, where XXXXXX are CHIP_ID #define HTTP_USER """" // Set any username for update authentication, default empty #define HTTP_PASSWORD """" // Set any password for update authentication, default empty IPAddress apIP(192, 168, 4, 1); // AP IP: http://192.168.4.1/update bool SERIAL_OUTPUT = true; // If Serial output is desired //Enter values for SSID and corresponing password String WIFI_SSID = """"; //Enter SSID String WIFI_PASS = """"; //Enter SSID /////////////// Do not change any parameters below this line //////////////////// ///////////////////////////////////////////////////////////////////////////////// #define HTTP_PORT 80 #define HTTP_UPDATE_PATH ""/update"" const byte DNS_PORT = 53; bool authenticated = false; String updaterError; String username = HTTP_USER; String password = HTTP_PASSWORD; /* //uncompressed size: 3879 static const char update_htm[] PROGMEM = R""=====(
)=====""; */ //gz size: 1721 #define update_htm_gz_len 1738 static const char update_htm_gz[] PROGMEM = { 0x1f, 0x8b, 0x08, 0x08, 0xba, 0x80, 0x3d, 0x5c, 0x04, 0x00, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x6d, 0x69, 0x6e, 0x2e, 0x68, 0x74, 0x6d, 0x00, 0x95, 0x57, 0x59, 0x13, 0x93, 0x30, 0x10, 0xfe, 0x2b, 0x11, 0xc7, 0x99, 0x76, 0x04, 0xca, 0x51, 0x6a, 0x0b, 0x56, 0xc7, 0x73, 0x74, 0xc6, 0x6b, 0x46, 0x7d, 0x70, 0x1c, 0x1f, 0x52, 0x58, 0x4a, 0x94, 0x12, 0x1a, 0x42, 0x6b, 0xad, 0xfd, 0xef, 0xee, 0x42, 0x0f, 0x50, 0xeb, 0xf1, 0x50, 0x48, 0xc2, 0xee, 0xb7, 0x9b, 0xdd, 0x6f, 0x37, 0xe9, 0xdd, 0x1b, 0x8f, 0x5f, 0x3f, 0x7a, 0xf7, 0xe1, 0xcd, 0x13, 0x96, 0xe9, 0x55, 0x7e, 0xef, 0x6e, 0xfb, 0x5c, 0x81, 0xe6, 0xb8, 0xa0, 0x4b, 0x0b, 0xd6, 0xb5, 0xd8, 0xcc, 0x8d, 0x47, 0xb2, 0xd0, 0x50, 0x68, 0xeb, 0xdd, 0xae, 0x04, 0x83, 0xc5, 0xed, 0x6c, 0x6e, 0x68, 0xf8, 0xaa, 0x47, 0xa4, 0x12, 0xb1, 0x38, 0xe3, 0xaa, 0x02, 0x3d, 0xaf, 0x75, 0x6a, 0x4d, 0x8d, 0x23, 0x44, 0xc1, 0x57, 0x30, 0x37, 0x36, 0x02, 0xb6, 0xa5, 0x54, 0xba, 0xa3, 0xb8, 0x15, 0x89, 0xce, 0xe6, 0x09, 0x6c, 0x44, 0x0c, 0x56, 0x33, 0x31, 0x45, 0x21, 0xb4, 0xe0, 0xb9, 0x55, 0xc5, 0x3c, 0x87, 0xb9, 0x63, 0x07, 0x08, 0x92, 0x01, 0x4f, 0xee, 0xdd, 0xad, 0xf4, 0x2e, 0x87, 0x7b, 0x37, 0x53, 0x91, 0xc3, 0x0b, 0xbe, 0x80, 0xfc, 0x1d, 0x5a, 0x35, 0x6f, 0xd6, 0x65, 0x2e, 0x79, 0xf2, 0x56, 0x73, 0x5d, 0x57, 0xfb, 0x14, 0x81, 0xad, 0x94, 0xaf, 0x44, 0xbe, 0x0b, 0x1f, 0x28, 0x84, 0x31, 0x9f, 0x41, 0xbe, 0x01, 0x2d, 0x62, 0x6e, 0x56, 0xbc, 0xa8, 0xac, 0x0a, 0x94, 0x48, 0x0f, 0x0b, 0x99, 0xec, 0xf6, 0x2b, 0xae, 0x96, 0xa2, 0x08, 0x9d, 0x28, 0x03, 0xb1, 0xcc, 0x74, 0xe8, 0x3a, 0xce, 0x26, 0x8b, 0x12, 0x51, 0x95, 0x39, 0xdf, 0x85, 0x69, 0x0e, 0x5f, 0x23, 0x7a, 0x58, 0x89, 0x50, 0x10, 0x6b, 0x21, 0x8b, 0x30, 0x96, 0x79, 0xbd, 0x2a, 0xa2, 0xcf, 0x75, 0xa5, 0x45, 0xba, 0xb3, 0x8e, 0xbb, 0x08, 0x63, 0xc0, 0xb7, 0x8a, 0x16, 0x3c, 0xfe, 0xb2, 0x54, 0xb2, 0x2e, 0x12, 0xfc, 0x92, 0x4b, 0x15, 0xde, 0x9c, 0x05, 0x0b, 0x77, 0x16, 0x1c, 0x6e, 0x26, 0x4a, 0x96, 0x4f, 0xd1, 0xeb, 0xa7, 0x52, 0xad, 0x4e, 0x66, 0x79, 0xad, 0x25, 0x43, 0x93, 0xe5, 0xd7, 0x88, 0xa2, 0x67, 0xf1, 0x5c, 0x2c, 0x8b, 0x33, 0x94, 0x54, 0x09, 0x28, 0x4b, 0xf1, 0x44, 0xd4, 0x55, 0x38, 0x45, 0x19, 0xb9, 0x01, 0x95, 0xe6, 0x72, 0x1b, 0x66, 0x22, 0x49, 0xa0, 0x88, 0xb4, 0xc2, 0xdd, 0x88, 0xc6, 0x2b, 0x3b, 0xa8, 0xfa, 0x26, 0xd8, 0x25, 0x44, 0xfb, 0x5f, 0x9c, 0x52, 0xcb, 0x05, 0x1f, 0x38, 0xa6, 0x17, 0x04, 0xa6, 0x63, 0xda, 0xc1, 0xf0, 0xbc, 0xe1, 0x45, 0x2e, 0xe3, 0x2f, 0x51, 0xc9, 0x93, 0x44, 0x14, 0xcb, 0xd0, 0x1b, 0xa3, 0xd1, 0x52, 0x1e, 0x4d, 0x28, 0xc8, 0xb9, 0x16, 0x1b, 0x88, 0xe2, 0x5a, 0x55, 0x08, 0x52, 0x4a, 0x41, 0x7e, 0xfe, 0xce, 0xec, 0xf3, 0xa2, 0xac, 0xf5, 0xfe, 0x04, 0x5a, 0xc8, 0x02, 0xae, 0x3a, 0x17, 0xf2, 0x14, 0x41, 0xcc, 0xab, 0x9f, 0x17, 0x90, 0x4a, 0x05, 0xfb, 0xb3, 0x17, 0x7c, 0x51, 0x61, 0x02, 0x34, 0x44, 0xa7, 0xc0, 0x1b, 0x46, 0xa4, 0x65, 0x19, 0x3a, 0x18, 0x2f, 0xad, 0xe5, 0x0a, 0x07, 0x39, 0xa4, 0x1a, 0x5f, 0xaa, 0x49, 0xa8, 0xf3, 0x9b, 0x94, 0xa4, 0x69, 0x1a, 0x7d, 0xb3, 0x44, 0x91, 0xc0, 0xd7, 0xd0, 0xf2, 0x7e, 0x0d, 0x34, 0xa3, 0x9f, 0xc3, 0x9c, 0xc3, 0xdf, 0xbc, 0x3a, 0x83, 0xb8, 0x1d, 0x2b, 0x18, 0xa8, 0x12, 0xb8, 0xc6, 0x00, 0x5a, 0xb9, 0x28, 0x80, 0x2b, 0x6b, 0x49, 0xd0, 0xe8, 0xeb, 0x60, 0x1c, 0x24, 0xb0, 0x34, 0x9b, 0xb4, 0x95, 0x5c, 0xe1, 0x4a, 0x77, 0xcc, 0x82, 0x5b, 0xe6, 0x4d, 0xc7, 0x71, 0xce, 0x6f, 0xd7, 0xb9, 0x35, 0x8c, 0x64, 0xc9, 0x63, 0xa1, 0x77, 0xa1, 0xf3, 0xc7, 0x6c, 0xdb, 0xe4, 0xda, 0x33, 0xe2, 0xc7, 0x6f, 0xbc, 0x3c, 0x41, 0xd8, 0x5e, 0xf0, 0xd3, 0x8e, 0xec, 0xb6, 0x6e, 0x1e, 0xd6, 0x18, 0xb9, 0x62, 0xdf, 0xc6, 0x01, 0x2d, 0xc9, 0x5a, 0x93, 0xe7, 0x38, 0x6a, 0xaa, 0x91, 0x8a, 0xe2, 0xd6, 0x89, 0x14, 0x0d, 0x11, 0x9b, 0x0a, 0xab, 0xc4, 0x37, 0x08, 0x03, 0xe2, 0xee, 0xaf, 0x11, 0xf6, 0xbd, 0x38, 0xf1, 0xbd, 0xe8, 0x12, 0xef, 0x3f, 0x92, 0xe6, 0xe2, 0x3d, 0xfa, 0xf0, 0xd5, 0xaa, 0x32, 0x9e, 0x20, 0xc9, 0x1d, 0x86, 0x21, 0x98, 0x60, 0x26, 0x8e, 0x68, 0x87, 0x7e, 0xd1, 0xef, 0x5b, 0x70, 0x8a, 0x54, 0xc7, 0x9f, 0x31, 0xfa, 0x73, 0xe8, 0xb5, 0x83, 0x93, 0xdc, 0x1d, 0x14, 0xec, 0x89, 0xfa, 0x24, 0x7a, 0x77, 0xd4, 0x36, 0x94, 0xbb, 0xa3, 0xb6, 0xbd, 0x50, 0x53, 0xb8, 0x77, 0x37, 0xa5, 0xe0, 0x88, 0x64, 0x6e, 0x74, 0xbd, 0x34, 0x18, 0x6f, 0x3a, 0xc0, 0xdc, 0x18, 0xd5, 0x65, 0xc2, 0x35, 0xf6, 0x3e, 0xec, 0x6b, 0x99, 0x44, 0x31, 0x64, 0x27, 0x36, 0x34, 0x59, 0x54, 0xf5, 0x62, 0x25, 0xb0, 0xa3, 0xb5, 0xf6, 0x49, 0xb1, 0x1a, 0xc0, 0x06, 0x73, 0x3b, 0xc4, 0xfe, 0x25, 0xa8, 0x28, 0x98, 0xde, 0x95, 0xd8, 0x05, 0x69, 0x27, 0x06, 0x75, 0xc4, 0xe3, 0xb8, 0xfa, 0xf8, 0xc9, 0x68, 0x0c, 0x9e, 0xaa, 0xa7, 0x81, 0xc3, 0x36, 0x5a, 0x2c, 0x51, 0x82, 0x27, 0x3d, 0x2c, 0x72, 0x24, 0x86, 0x12, 0xed, 0xd8, 0x0b, 0x51, 0x20, 0x72, 0x4e, 0x31, 0x61, 0xe8, 0x74, 0x47, 0xbf, 0x85, 0x3b, 0x47, 0x8c, 0xe0, 0x12, 0xc5, 0x97, 0x18, 0x64, 0x94, 0xa2, 0xa7, 0x12, 0x09, 0x3c, 0x86, 0x94, 0xd7, 0xb9, 0x3e, 0xe2, 0x9a, 0xe7, 0x34, 0x0c, 0x86, 0x27, 0x79, 0x5c, 0xff, 0x3f, 0x85, 0x1c, 0xf8, 0x06, 0xfe, 0xae, 0xf0, 0xa4, 0x48, 0x4e, 0x3a, 0xb2, 0xfc, 0x47, 0x71, 0xf3, 0xe7, 0x38, 0xe0, 0x69, 0xb0, 0x59, 0xb2, 0xf6, 0xf8, 0x30, 0xfc, 0xc0, 0x31, 0x58, 0xdb, 0xc5, 0x8f, 0x13, 0x3a, 0x6a, 0x1e, 0xca, 0xaf, 0x73, 0x83, 0x98, 0xe4, 0x39, 0xe3, 0x29, 0x73, 0xef, 0xcc, 0x3c, 0x83, 0x7d, 0x5d, 0xe5, 0x45, 0x35, 0x37, 0xe8, 0x48, 0x0b, 0x47, 0xa3, 0xed, 0x76, 0x6b, 0x6f, 0x7d, 0x5b, 0xaa, 0xe5, 0xc8, 0x43, 0x82, 0x8c, 0x10, 0x12, 0x81, 0x4b, 0xae, 0x33, 0x86, 0x01, 0x7c, 0xe9, 0xfa, 0xe3, 0x31, 0x9b, 0x4e, 0xc6, 0x6b, 0xc7, 0x72, 0xc7, 0xd6, 0xcc, 0xf2, 0xfc, 0xdc, 0xf2, 0x03, 0x8f, 0x7e, 0x6b, 0x9c, 0xd2, 0x82, 0x35, 0xd3, 0xf8, 0x64, 0x33, 0xfa, 0xe0, 0x32, 0xfc, 0xad, 0x2d, 0x17, 0xa9, 0xeb, 0xd1, 0xd3, 0x1b, 0x13, 0x8b, 0xc7, 0x6c, 0xc6, 0x3c, 0x5f, 0x93, 0x50, 0xe6, 0x79, 0xe3, 0x0d, 0x29, 0xe3, 0x32, 0x4e, 0xed, 0x80, 0x79, 0x9e, 0x1d, 0x68, 0x7a, 0xd0, 0x2c, 0x73, 0x67, 0xde, 0x1a, 0x3f, 0x38, 0xcd, 0xb2, 0x35, 0xc3, 0x4f, 0xf8, 0xb3, 0x68, 0xb2, 0x21, 0x9b, 0xa4, 0x7e, 0xe5, 0xfb, 0xb7, 0xd5, 0x64, 0x8c, 0xcb, 0xd3, 0x29, 0x41, 0x07, 0x33, 0xcb, 0x75, 0x3d, 0x42, 0xbf, 0xe3, 0xa2, 0x8c, 0xd5, 0xbc, 0x58, 0xb3, 0x94, 0xa1, 0x5f, 0x28, 0x64, 0xb9, 0xd3, 0x80, 0x39, 0x96, 0xef, 0x4e, 0x50, 0xdf, 0xf5, 0x49, 0xaa, 0x7d, 0xb5, 0x4b, 0xb4, 0x5f, 0xdf, 0x61, 0x77, 0x1c, 0xcb, 0x1b, 0x3b, 0xda, 0x9d, 0x4e, 0x2d, 0x77, 0x12, 0xac, 0x2d, 0xdc, 0xb8, 0x83, 0x8f, 0xb1, 0xcf, 0xf0, 0xe5, 0x7a, 0x68, 0x08, 0x21, 0x26, 0x9e, 0xc6, 0x9f, 0x85, 0xe3, 0xb5, 0x1b, 0x4c, 0x18, 0x39, 0x11, 0xa0, 0xb5, 0xe9, 0x1d, 0xd2, 0x23, 0x1f, 0x7c, 0x77, 0x7d, 0xc7, 0xb5, 0x26, 0x28, 0x3e, 0x99, 0x34, 0x2f, 0x87, 0xa4, 0xdc, 0xa9, 0xcb, 0xee, 0x04, 0xfa, 0x4e, 0x40, 0xa3, 0x35, 0xda, 0x9a, 0x58, 0x63, 0x17, 0xa3, 0x32, 0x65, 0x64, 0xd9, 0x77, 0x99, 0xe7, 0xfa, 0xe4, 0xb4, 0x8f, 0x60, 0x7a, 0xea, 0x37, 0x40, 0x08, 0xf7, 0xcd, 0x18, 0xdd, 0xbb, 0x4b, 0x69, 0xc2, 0x6a, 0x55, 0x48, 0x81, 0x92, 0x17, 0x27, 0xae, 0x5f, 0xba, 0x83, 0x71, 0xef, 0x51, 0x26, 0x65, 0x05, 0x2c, 0x15, 0x6a, 0xb5, 0xc5, 0xfe, 0x4a, 0xa5, 0xc2, 0xa4, 0x62, 0xc4, 0x51, 0x26, 0x34, 0x32, 0x45, 0x01, 0xa2, 0xa0, 0xf2, 0x4f, 0x30, 0xdd, 0xde, 0x61, 0xdc, 0x3b, 0x89, 0x8c, 0x9a, 0x1a, 0xeb, 0x17, 0x71, 0x5b, 0xed, 0xc8, 0x33, 0x9e, 0xd7, 0x38, 0x7d, 0xdf, 0x34, 0x05, 0xf6, 0xb4, 0x35, 0x48, 0x37, 0xa3, 0x9c, 0x57, 0xc8, 0xb3, 0x6e, 0x8f, 0x25, 0x40, 0x6a, 0x2e, 0x68, 0x2f, 0x56, 0xa2, 0xd4, 0xf7, 0xd2, 0xba, 0x68, 0x9a, 0x0a, 0xfb, 0xa5, 0x02, 0x86, 0x7b, 0xb0, 0x4b, 0xd5, 0x30, 0xfd, 0xb4, 0x36, 0x34, 0xc1, 0xae, 0xf0, 0xb0, 0x7b, 0x83, 0x35, 0xc3, 0x97, 0x9c, 0xf4, 0x06, 0xc3, 0xc3, 0x19, 0xa2, 0x53, 0x8d, 0xfb, 0x5e, 0x7b, 0x6d, 0x1c, 0x79, 0x21, 0x2a, 0x6d, 0x63, 0x05, 0x0d, 0x8c, 0xb3, 0x9c, 0xd1, 0x53, 0xbe, 0x94, 0xda, 0x75, 0x7d, 0x05, 0x2b, 0x94, 0xb9, 0x02, 0x71, 0x29, 0xcf, 0x56, 0xbf, 0x84, 0x76, 0x3e, 0x07, 0x5b, 0xe3, 0x7d, 0x07, 0xb4, 0xdd, 0xb4, 0xba, 0xef, 0xdf, 0xc1, 0xc6, 0x48, 0xf1, 0x77, 0x74, 0x9e, 0xa5, 0xa0, 0xda, 0x55, 0xb3, 0xca, 0xe4, 0xb6, 0x55, 0xef, 0xea, 0x76, 0xe0, 0x49, 0xe0, 0x8c, 0x6f, 0x50, 0xe7, 0xbb, 0x31, 0x87, 0x8f, 0xce, 0x27, 0x9b, 0xda, 0xa8, 0x8d, 0x57, 0x0d, 0xa1, 0x07, 0x86, 0x6d, 0x0c, 0xed, 0x52, 0x96, 0x83, 0xe1, 0xfd, 0x41, 0x8f, 0x0f, 0xb6, 0x28, 0x0a, 0x50, 0x34, 0x9a, 0x1b, 0x6f, 0xdf, 0xbd, 0x7e, 0x13, 0xb2, 0xd7, 0x45, 0xbe, 0x63, 0x71, 0x4b, 0x92, 0x86, 0x1c, 0x24, 0xcf, 0x6e, 0xdc, 0xb8, 0x61, 0x98, 0x78, 0xe7, 0x54, 0x7a, 0xf0, 0x57, 0xb9, 0xa1, 0x79, 0xee, 0xb6, 0xf6, 0x91, 0x03, 0x86, 0xd9, 0x0b, 0x9c, 0x82, 0x0a, 0x30, 0x6d, 0xc3, 0xf0, 0x8a, 0x2f, 0x17, 0xff, 0x2f, 0xdb, 0x6c, 0xe9, 0x72, 0xde, 0xa8, 0x48, 0x07, 0xbf, 0xe1, 0x81, 0x33, 0x9f, 0x9f, 0x6c, 0x1f, 0xa3, 0x6a, 0xe7, 0x50, 0x2c, 0x75, 0x36, 0xbc, 0xbe, 0x6b, 0xc8, 0xf1, 0x06, 0xcb, 0xb8, 0x66, 0xd8, 0xa2, 0x2b, 0xcd, 0xdc, 0x66, 0x23, 0x37, 0x8c, 0x08, 0xf2, 0x0a, 0xf6, 0xed, 0x51, 0xd3, 0xb2, 0x7e, 0x60, 0xbc, 0x27, 0x1f, 0xe8, 0xb4, 0xb7, 0x6d, 0x0c, 0x68, 0xb4, 0xe1, 0x8a, 0xe9, 0x79, 0x01, 0x5b, 0x46, 0xbb, 0x7a, 0x8c, 0xb9, 0x8b, 0x90, 0x4a, 0x98, 0x23, 0xa4, 0xca, 0xd9, 0x8d, 0x66, 0x1b, 0x66, 0x37, 0x77, 0xb8, 0xb7, 0x9f, 0xe7, 0x8d, 0x10, 0xc6, 0x0d, 0x74, 0x9c, 0x0d, 0x7a, 0xa1, 0x6a, 0xcf, 0x56, 0x73, 0xdf, 0x1e, 0xa9, 0x61, 0xef, 0x5b, 0xbb, 0x66, 0xd2, 0xd9, 0x1c, 0xea, 0xc3, 0xd0, 0xd6, 0x19, 0x14, 0x83, 0x53, 0xc0, 0xce, 0x41, 0x92, 0x5f, 0x86, 0x0a, 0x74, 0xad, 0x0a, 0x86, 0x7c, 0xc3, 0x2d, 0x0f, 0x86, 0x91, 0xce, 0x94, 0xdc, 0x32, 0x72, 0xfc, 0x89, 0x52, 0x52, 0x0d, 0x8c, 0x57, 0xa0, 0xb7, 0x52, 0x7d, 0x61, 0x98, 0x98, 0x52, 0x16, 0x98, 0xd1, 0x2d, 0xaf, 0x58, 0x21, 0x35, 0x93, 0x5f, 0x70, 0xa3, 0xbf, 0x81, 0xee, 0x07, 0x06, 0x6e, 0x1b, 0x26, 0xea, 0x52, 0x70, 0x18, 0x32, 0xc1, 0x77, 0x2a, 0x62, 0x41, 0x8c, 0x48, 0x32, 0x07, 0x3b, 0x97, 0x4b, 0xd4, 0x30, 0x31, 0xe5, 0xef, 0xc4, 0x0a, 0xf0, 0x12, 0x75, 0x01, 0x1a, 0xee, 0xf1, 0x62, 0xdd, 0x14, 0xac, 0xdd, 0xaa, 0x63, 0xdd, 0x9a, 0x3e, 0x8c, 0xc9, 0x24, 0xae, 0xc7, 0xd9, 0x75, 0x9b, 0x46, 0xe3, 0x7a, 0xc8, 0x8c, 0xdb, 0x80, 0x81, 0xa8, 0x2a, 0x3c, 0x93, 0x7b, 0x26, 0x2f, 0x02, 0xe6, 0x49, 0xe0, 0x7f, 0x9c, 0x08, 0xc0, 0x47, 0x27, 0x0e, 0x17, 0xfe, 0x75, 0x8d, 0x93, 0x33, 0xdd, 0x7e, 0xd8, 0x65, 0xee, 0x81, 0x58, 0xd1, 0x4d, 0xd3, 0x3c, 0x91, 0x71, 0xbd, 0x42, 0x9a, 0xda, 0x58, 0xea, 0x4f, 0x72, 0xa0, 0xe1, 0xc3, 0xdd, 0x73, 0x6c, 0x38, 0x5d, 0x29, 0x8c, 0x57, 0x8f, 0xa2, 0xd7, 0xb5, 0x7a, 0x62, 0xa8, 0xd6, 0x75, 0xe4, 0xba, 0x56, 0x57, 0xaa, 0x5b, 0xa1, 0xd7, 0x35, 0x2e, 0x57, 0xa6, 0x61, 0x8f, 0xae, 0x77, 0x47, 0xc7, 0x1e, 0x7d, 0x77, 0xd4, 0xde, 0x0a, 0x47, 0xcd, 0xff, 0xe1, 0x1f, 0x78, 0x62, 0xe0, 0x81, 0x25, 0x0f, 0x00, 0x00 }; ESP8266WebServer server(HTTP_PORT); DNSServer dns; void setUpdaterError() { if (SERIAL_OUTPUT) Update.printError(Serial); StreamString str; Update.printError(str); updaterError = str.c_str(); } void handleRedirect() { server.sendHeader(""Location"", ""/update"", true); server.send(302, ""text/plain"", """"); } void setup(void) { char NameChipId[64] = {0}; snprintf(NameChipId, sizeof(NameChipId), ""%s-%06x"", HOSTNAME, ESP.getChipId()); if (SERIAL_OUTPUT) { Serial.begin(115200); Serial.println(); Serial.println(""Booting Sketch...""); } WiFi.hostname(NameChipId); if (!WIFI_SSID.length()){ WiFi.mode(WIFI_AP); }else{ WiFi.mode(WIFI_AP_STA); WiFi.begin(WIFI_SSID.c_str(), WIFI_PASS.c_str()); if (SERIAL_OUTPUT) Serial.printf(""Connecting to %s "", WIFI_SSID.c_str()); while (WiFi.status() != WL_CONNECTED) { if (SERIAL_OUTPUT) Serial.print("".""); delay(1000); } if (SERIAL_OUTPUT){ Serial.println("" connected!""); Serial.print(""Router IP: ""); Serial.println(WiFi.localIP()); } } WiFi.softAPConfig(apIP, apIP, IPAddress(255, 255, 255, 0)); WiFi.softAP(NameChipId); if (SERIAL_OUTPUT) { Serial.print(""HotSpt IP: ""); Serial.println(WiFi.softAPIP()); } dns.start(DNS_PORT, ""*"", WiFi.softAPIP()); server.on(""/"", handleRedirect); server.on(""/version"", []() { server.send(200, ""text/plain"", SKETCH_VERSION); }); // handler for the /update form page server.on(HTTP_UPDATE_PATH, HTTP_GET, [&]() { if (username != emptyString && password != emptyString && !server.authenticate(username.c_str(), password.c_str())) return server.requestAuthentication(); // server.send_P(200, PSTR(""text/html""), update_htm); server.sendHeader(""Content-Encoding"", ""gzip"", true); server.send_P(200, PSTR(""text/html""), update_htm_gz, update_htm_gz_len); }); // handler for the /update form POST (once file upload finishes) server.on(HTTP_UPDATE_PATH, HTTP_POST, [&]() { if(!authenticated) return server.requestAuthentication(); if (Update.hasError()) { server.send(200, F(""text/plain""), String(F(""Update error: "")) + updaterError); } else { server.client().setNoDelay(true); server.send(200, PSTR(""text/plain""), String(F(""Update OK""))); delay(100); server.client().stop(); ESP.restart(); } }, [&]() { // handler for the file upload, get's the sketch bytes, and writes // them through the Update object HTTPUpload& upload = server.upload(); if(upload.status == UPLOAD_FILE_START){ updaterError = String(); if (SERIAL_OUTPUT) Serial.setDebugOutput(true); authenticated = (username == emptyString || password == emptyString || server.authenticate(username.c_str(), password.c_str())); if(!authenticated){ if (SERIAL_OUTPUT) Serial.printf(""Unauthenticated Update\\n""); return; } WiFiUDP::stopAll(); if (SERIAL_OUTPUT) Serial.printf(""Update: %s\\n"", upload.filename.c_str()); uint32_t maxSketchSpace = (ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000; if(!Update.begin(maxSketchSpace)){//start with max available size setUpdaterError(); } } else if(authenticated && upload.status == UPLOAD_FILE_WRITE && !updaterError.length()){ if (SERIAL_OUTPUT) Serial.printf("".""); if(Update.write(upload.buf, upload.currentSize) != upload.currentSize){ setUpdaterError(); } } else if(authenticated && upload.status == UPLOAD_FILE_END && !updaterError.length()){ if(Update.end(true)){ //true to set the size to the current progress if (SERIAL_OUTPUT) Serial.printf(""\\nUpdate Success: %u\\nRebooting...\\n"", upload.totalSize); } else { setUpdaterError(); } if (SERIAL_OUTPUT) Serial.setDebugOutput(false); } else if(authenticated && upload.status == UPLOAD_FILE_ABORTED){ Update.end(); if (SERIAL_OUTPUT) Serial.println(""Update was aborted""); } delay(0); }); server.onNotFound(handleRedirect); server.begin(); } void loop(void) { server.handleClient(); dns.processNextRequest(); }",12491,True,3865.120426369898,median "/* OpenVent-Bristol version V2.0 with aim of meeting design specification: https://www.gov.uk/government/publications/coronavirus-covid-19-ventilator-supply-specification/rapidly-manufactured-ventilator-system-specification Relevant requirements from MHRA UK spec document: - Default: ""default settings of 90-100% oxygen, 400ml/s tidal volume and / or inspiratory plateau pressure 35 cmH2O, 15 cmH2O PEEP, rate 20 breaths min-1 ."" - Display: ""Must show the current settings of tidal volume, frequency, PEEP, FiO2, ventilation mode"" - Display: ""Must show the actual current airway pressure"" Note: for user to work out FiO2 based on the exiting exygen flow rate gauge, the ventilator will need to display average flow rate - Alarm on: - Gas or electricity supply failure - Machine switched off while in mandatory ventilation mode - Inspiratory airway pressure exceeded - Inspiratory and PEEP pressure not achieved (equivalent to disconnection alarm) - Tidal volume not achieved or exceeded. Ristrictions of this test rig: 1. Can't reliabily measure low flow rates less than 200ml/s. Which limits us to the following mim settings: a Min flow rate of 200ml/s b at 400ml tidal volume min 10 BPM with I:E ratio of 1:2 c at 400ml tidal volume with I:E ratio of 1:1, minimum BPM is restricted to 15 */ #include #include #include #include ""ArduinoMotorShieldR3.h"" ArduinoMotorShieldR3 md; #include // select the pins used on the Velleman LCD button Arduino shield LiquidCrystal lcd(8, 9, 4, 5, 6, 7); #define buttonsLCDpin A3 // Analogue input for buttons on LCD shield #define btnRIGHT 0 #define btnUP 1 #define btnDOWN 2 #define btnLEFT 3 #define btnSELECT 4 #define btnNONE 5 // Status for UI #define inhale 0 #define exhale 1 int breathStatus = exhale; int exhalePeriod = 0; int inhalePeriod = 0; #define minPressure 10 // 10 is set higher than the lowest PEEP for failsafe #define maxPressure 40 // system can't deliver more than this #define pressureSensePin A5 #define flowSensePin A4 #define buzzerPin 2 // for PID loop #define PIN_INPUT 1 #define PIN_OUTPUT 3 //Define Variables for PID double Setpoint, Input, Output; //Specify the links and initial tuning parameters //double Kp=2, Ki=5, Kd=1; //double Kp = 7, Ki = 18, Kd = 0; // values for window motor double Kp = 5, Ki = 11, Kd = 1; PID myPID(&Input, &Output, &Setpoint, Kp, Ki, Kd, DIRECT); // motor pins int DIR_A = 12; int PWM_A = 3; int current = getCurrentM1(); unsigned long pauseTimer = millis(); // stop watch for pauses unsigned long accelTime = millis(); int mSpeed = 0; int revTimeSetting = 450; // time it takes to reverse in ms int revSpeed = 400; // max speed of reverse stroke int maxFwdSpeed = -400; // max speed of motor/acceloration limit //int currentLimit = 4000; // current limit int IEval = 2; // 1:IEval int postInhaleDwell = 0; //unsigned long postExhaleDwell = 0; unsigned long breathTime = 0; int target_BPM = 20; // defult 20 BPM int breathPeriod = (60 / target_BPM) * 1000; int breathVolumemls = 0; // volume accumulator int target_cmH2O = 20; // defult 35cmH2O int target_tidalMax = 450; int target_tidalMin = 150; // alarm states bool alarmCurrent = 0; byte up[8] = { // create arrows 0b00100, 0b01110, 0b11111, 0b00100, 0b00100, 0b00100, 0b00100, 0b00100 }; byte down[8] = { 0b00100, 0b00100, 0b00100, 0b00100, 0b11111, 0b01110, 0b00100, 0b00000 }; byte rect[8] = { 0b11111, 0b11111, 0b11111, 0b11111, 0b11111, 0b11111, 0b11111, 0b00000 }; void setup() { md.init(); //Wire.begin(); Serial.begin(9600); pinMode(buzzerPin, OUTPUT); // setup buzzer pin as output delay(500); // let serial console settle // initialize the SFM3300 //measflow.init(); //Serial.println(""Sensor initialized!""); // set up motor pins pinMode(DIR_A, OUTPUT); pinMode(PWM_A, OUTPUT); //initialize the variables PID is linked to Input = getFlowRate(); Setpoint = target_tidalMax; // flowrate target //turn the PID on myPID.SetMode(AUTOMATIC); myPID.SetOutputLimits(0, 255); myPID.SetSampleTime(5); getFlowRate(); // // while (getCurrent() < 600) // { // setMotor1Speed(150); // reset motor position // Serial.println(getCurrent()); // } // setMotor1Speed(0); // LCD display setup lcd.begin(16, 2); lcd.setCursor(0, 0); lcd.print(""OpenVent-Bristol""); // headings to LCD lcd.setCursor(0, 1); lcd.print(""Alert system""); digitalWrite(buzzerPin, HIGH); // test buzzer delay(50); digitalWrite(buzzerPin, LOW); delay(1000); lcd.setCursor(0, 0); lcd.print(""Scroll using ""); // headings to LCD lcd.setCursor(0, 1); lcd.print(""lft & rgt keys ""); delay(500); lcd.createChar(0, down); // create new characters lcd.createChar(1, up); lcd.createChar(2, rect); // start up screen while (read_LCD_buttons() != btnLEFT) // run starting screen { lcd.setCursor(0, 0); // display messages lcd.print(""<-start ""); lcd.write(byte(1)); lcd.print("" M up""); lcd.setCursor(0, 1); lcd.print("" ""); lcd.write(byte(0)); lcd.print("" M down""); if (read_LCD_buttons() == btnUP) setMotor1Speed(80); // move motor controls else if (read_LCD_buttons() == btnDOWN) setMotor1Speed(-80); else setMotor1Speed(0); } setDisplayHeadings(); //for (;;) //{ setMotor1Speed(0); //} } void loop() { static unsigned long inhaleCounter = millis(); static unsigned long exhaleCounter = millis(); breathPeriod = (60 / target_BPM) * 1000; Setpoint = target_tidalMax; // flowrate target //for (int i = 0; i < 10 ; i++) // debug only //{ breathTime = millis(); // used to start and end inhale and exhale exhalePeriod = millis() - exhaleCounter; // store exhale time duration inhaleCounter = millis(); // start inhale time counter //while (millis() - breathTime < breathPeriod / (IEval + 1)) // dwell according to I:E ratio while (breathVolumemls < Setpoint - 5) { doInhale(); // not blocking function } inhalePeriod = millis() - inhaleCounter; // store inhale time duration //if (getIEratio() > IEval) Setpoint = Setpoint - 10; //THINK ABOUT THIS. all it did was increase the flow rate but did not affect the ratio //if (getIEratio() < IEval) Setpoint = Setpoint + 10; exhaleCounter = millis(); // start exhale time counter doExhale(); // blocking function while (millis() - breathTime < breathPeriod) // for remainder of exhale period { postExhalePause(); // not blocking function } //for (;;) // for debug purposes //{ // setMotor1Speed(0); //} } // ********** Resets the display ******* int setDisplayHeadings () { // Breath frequency (FR), peak pressure (PP), tidal volume (VOL), inhale:exhale ratio (I:E), ventilation mode (Mode) //lcd.noCursor(); lcd.setCursor(0, 0); lcd.print(""FR PP VOL SP Vmax Vmin I:E ""); // headings to LCD lcd.setCursor(0, 1); lcd.print("" ""); // clear number display lcd.setCursor(23, 1); lcd.print(""1:""); // print the static part of the I:E ratio } // *********** Inhale *********** int doInhale () // ADD CURRENT LIMIT { breathStatus = inhale; static int maxFwdSpeed = 0; int newFlowVal = getFlowRate(); if (newFlowVal > 3000) newFlowVal = 0; //int flowDifference = targetFlow - newFlowVal; // the difference in pressure that needs making up Input = newFlowVal; myPID.Compute(); maxFwdSpeed = map(Output, 0, 255, -80, -400); // set motor speed proportionally to pressure difference //if (flowDifference < -50) maxFwdSpeed = 0; maxFwdSpeed = constrain(maxFwdSpeed, -400, 0); setMotor1Speed(maxFwdSpeed); //Serial.println(getCurrentM1()); //Serial.println(md.getM1CurrentMilliamps()); updateLCD(); getButtonInputs(); getPressure(); getBPM(); getIEratio(); //Serial.println(md.getM1CurrentMilliamps()); // Serial.print(breathVolumemls); // Serial.print("" ""); // Serial.println(getVolumePerBreath()); // // // Serial.print("" ""); // // // Serial.print(400); // Serial.print("" ""); // Serial.println(""uT""); } // *********** exhale *********** int doExhale () { breathStatus = exhale; unsigned long revTimer = millis(); // log time in ms revTimeSetting = map(getVolumePerBreath(), 200, 600, 380, 500); accelTime = millis(); // log time in ms for acceloration int revAccelSpeed = 0; // clear motor speed variable //while (millis() - revTimer < revTimeSetting && getCurrent() < 600) // reverse back until end stop sensed or for a set time while (millis() - revTimer < revTimeSetting) // reverse back for a set time { Serial.print("" ""); Serial.println(millis() - revTimer); if (revAccelSpeed < revSpeed) // acceloration { if (millis() - accelTime > 10) // accelorate the motor by 2 every 3ms { revAccelSpeed = revAccelSpeed + 20; // - is forward direction accelTime = millis(); } } //revAccelSpeed = 400; setMotor1Speed(revAccelSpeed); updateLCD(); /*Serial.print(millis() - revTimer); Serial.print("" ""); Serial.print(revAccelSpeed); Serial.print("" ""); Serial.print(current); Serial.print("" ""); Serial.println(""uT"");*/ Serial.print(getCurrentM1()); Serial.println("" , exhale""); } } // *********** post exhale pause *********** int postExhalePause () { breathStatus = exhale; setMotor1Speed(0); updateLCD(); getButtonInputs(); Serial.println("" paused ""); //Serial.println(millis() - breathTime); } // *********** read current at regular intervals *********** int getCurrent () { static unsigned long currentTimer = millis(); // log time in ms for adding to current accumulator if (millis() - currentTimer > 20) // add to current accumulator regularly { current = getCurrentM1(); currentTimer = millis(); } return current; } // ****** drive motors ****** int setMotor1Speed(int M1speed) { if (M1speed < 0) { M1speed = -M1speed; // Make speed a positive quantity digitalWrite(DIR_A, LOW); } else { digitalWrite(DIR_A, HIGH); } if (M1speed > 400) M1speed = 400; // Max PWM dutycycle //M1speed = 0; // debug only stops motor if (getCurrentM1() > 2500) { M1speed = 0; alarmCurrent = 1; } else { alarmCurrent = 0; } analogWrite(PWM_A, M1speed * 51 / 80); // default to using analogWrite, mapping 400 to 255 } int updateLCD () { const int BPM_cell = 0; // LCD cell positions const int cmH2O_cell = 3; const int vol_cell = 6; const int setPressure_cell = 10; const int Vmax_cell = 13; const int Vmin_cell = 18; const int IE_cell = 25; static int cursorPos; // position variable of select cursor static unsigned long buttonTimer; // lof time for how long the button has been pressed for for debounce static int buttonState; static int lastButtonState; const int debounceTime = 150; // time period for debouncing the buttons static int screenLatPos; static int screenLatPosTarget; int cmH2Oreading = getMaxPressure(); // actual value variables int volumeReading = getVolumePerBreath(); int BPMreading = getBPM(); float IEratioReading = getIEratio(); // target settings variables //static int target_BPM = 20; // defult 20 BPM now global // static int target_cmH2O = 20; // defult 35cmH2O // static int target_tidalMax = 400; // static int target_tidalMin = 150; static int target_IE = 2; // defult I:E 1:2 // read the buttons int lcd_key = read_LCD_buttons(); if (lastButtonState != lcd_key) buttonTimer = millis(); // reset the debouncing timer if state change if (millis() - buttonTimer > debounceTime) // if button pressed for longer than delay { if (lcd_key != buttonState) buttonState = lcd_key; // if there is a new button reading switch (buttonState) // { case btnRIGHT: // change cursor position { if (cursorPos == BPM_cell) cursorPos = setPressure_cell; else if (cursorPos == setPressure_cell) cursorPos = Vmax_cell; else if (cursorPos == Vmax_cell) cursorPos = Vmin_cell; else if (cursorPos == Vmin_cell) cursorPos = IE_cell; cursorPos = constrain(cursorPos, 0, IE_cell); break; } case btnLEFT: // change cursor position { if (cursorPos == IE_cell) cursorPos = Vmin_cell; else if (cursorPos == Vmin_cell) cursorPos = Vmax_cell; else if (cursorPos == Vmax_cell) cursorPos = setPressure_cell; else if (cursorPos == setPressure_cell) cursorPos = BPM_cell; cursorPos = constrain(cursorPos, 0, IE_cell); break; } case btnUP: // change target value { if (cursorPos == BPM_cell) target_BPM = target_BPM + 2; // NHS spec asked for increments of 2 else if (cursorPos == setPressure_cell) target_cmH2O++; // 'SP' on LCD for set pressure else if (cursorPos == Vmax_cell) target_tidalMax = target_tidalMax + 10; else if (cursorPos == Vmin_cell) target_tidalMin = target_tidalMin + 10; // I:E optionally needed in future break; } case btnDOWN: // change target value { if (cursorPos == BPM_cell) target_BPM = target_BPM - 2; // NHS spec asked for increments of 2 else if (cursorPos == setPressure_cell) target_cmH2O--; // 'SP' on LCD for set pressure else if (cursorPos == Vmax_cell) target_tidalMax = target_tidalMax - 10; else if (cursorPos == Vmin_cell) target_tidalMin = target_tidalMin - 10; // I:E optionally needed in future break; } } buttonTimer = millis(); // to make sure it doesn't register multiple presses from one finger press // constrain targets target_BPM = constrain(target_BPM, 10, 30); // as of requirements target_cmH2O = constrain(target_cmH2O, minPressure, maxPressure); target_tidalMax = constrain(target_tidalMax, 300, 800); target_tidalMin = constrain(target_tidalMin, 50, 300); target_IE = constrain(target_IE, 1, 3); // as of requirements } lastButtonState = lcd_key; screenLatPosTarget = cursorPos / 2; if (screenLatPos != screenLatPosTarget) // shift characters along if needed { screenLatPosTarget = constrain(screenLatPosTarget, 0, 12); if (screenLatPosTarget > screenLatPos) { lcd.scrollDisplayLeft(); screenLatPos++; } if (screenLatPosTarget < screenLatPos) { lcd.scrollDisplayRight(); screenLatPos--; } } // display outputs static bool firstInhale = 1; // identify the 1st run of the inhale static int LCDupdateTimer = millis(); if (millis() - LCDupdateTimer > 100) // update only every 50ms to speed up code and { if (breathStatus == inhale) { if (firstInhale == 1) // if 1st inhale run { setDisplayHeadings(); firstInhale = 0; // reset identifier } } else { firstInhale = 1; // reset identifier } if (alarmCurrent == 1) { lcd.setCursor(0, 0); // format (cell, line) lcd.print(""Over current""); lcd.setCursor(0, 1); // format (cell, line) lcd.print(""Motor stopped""); digitalWrite(2, HIGH); } else { digitalWrite(2, LOW); static unsigned long blinkTimer = millis(); static const int blinkPeriod = 1000; // ""FR PP VOL SP Vmax Vmin I:E "" lcd.setCursor(BPM_cell, 1); // format (cell, line) lcd.print(target_BPM); lcd.setCursor(cmH2O_cell, 1); // format (cell, line) lcd.print(cmH2Oreading); lcd.setCursor(vol_cell, 1); // format (cell, line) lcd.print(volumeReading); lcd.setCursor(setPressure_cell, 1); // format (cell, line) lcd.print(target_cmH2O); lcd.setCursor(Vmax_cell, 1); // format (cell, line) lcd.print(target_tidalMax); lcd.setCursor(Vmin_cell, 1); // format (cell, line) lcd.print(target_tidalMin); lcd.setCursor(IE_cell, 1); // format (cell, line) lcd.print(IEratioReading); if (millis() - blinkTimer < 300) // flash the number to change { lcd.setCursor(cursorPos, 1); lcd.print("" ""); } else if (millis() - blinkTimer > 1000) blinkTimer = millis(); } LCDupdateTimer = millis(); } } int getButtonInputs () { //static int cursorPos = 0; // position variable of select cursor //cursorPos = constrain(cursorPos, 0, 14); //lcd.setCursor(0, 1); // format (cell, line) //lcd.blink(); // blink in current cusor position //lcd.cursor(); // show cursor underline } int getVolumePerBreath () { int newFlowRate = getFilteredFlowRate(); // in ml/s static byte integratePeriod = 10; // in miliseconds static unsigned long integratePeriodCounter = millis(); // to keep track of the current integration time static unsigned long breathVolumeOutput = 0; // final volume to 'return' from function static unsigned long breathVolume = 0; // volume accumulator // add to integrated flow rate accumulator every Xms if (breathStatus == inhale) // if during inhale { // add to integrated flow rate accumulator with volume recorded over the integratePeriod if (millis() - integratePeriodCounter >= integratePeriod) { breathVolume = breathVolume + (newFlowRate * (millis() - integratePeriodCounter)); // convert to volume in ml/ms over integratePeriod //Serial.println(millis() - integratePeriodCounter); // code run time breathVolumemls = breathVolume / 1000; // store volume rise for motor drive inhale integratePeriodCounter = millis(); } } else // if exhale { breathVolumemls = 0; // reset volume rise variable if (breathVolume > 0) // if volume hasn't been recorded already for last breath { breathVolumeOutput = round(breathVolume * 0.001); // set output volume breathVolume = 0; // reset accumulator } integratePeriodCounter = millis(); // reset } return breathVolumeOutput; } // WHY IS THIS WRONG? float getIEratio () // to calculate the 'E' of the Inhale : Exhale ratio { static float IEratio = 0; if (inhalePeriod > 0 && exhalePeriod > 0) IEratio = (float)exhalePeriod / (float)inhalePeriod; // DO THIS: display to 1 decimal place & remove the rounding static float returnIEratio = 0; if (IEratio > (float)0.5 && IEratio < 4) returnIEratio = IEratio; // remove odd readings returnIEratio = round(returnIEratio * 10); returnIEratio = returnIEratio / 10; // round to 1 decimel place return returnIEratio; } int getBPM () // breaths per minute DO THIS: it seems to display a 3 digit number, fix it { //float BPM = round(60 / (float)((inhalePeriod + exhalePeriod) * 0.001)); // calc number for breath per minute float BPM = round(60 / (float)((inhalePeriod + exhalePeriod) * 0.001)); // calc number for breath per minute static float returnBPM = 0; if (BPM > 1 && BPM < 100) returnBPM = BPM; return returnBPM; } // ***** read MPX5010GP pressure sensor ***** int getPressure () { const float ADC_mV = 4.8828125; // convesion multiplier from Arduino ADC value to voltage in mV const float SensorOffsetGP = 40; // in mV taken from datasheet const float sensitivity = 4.413; // in mV/mmH2O taken from datasheet const float mmh2O_cmH2O = 10; // divide by this figure to convert mmH2O to cmH2O const float mmh2O_kpa = 0.00981; // convesion multiplier from mmH2O to kPa const float mmh2O_pa = 9.80665; // convesion multiplier from mmH2O to Pa float rawValueMP = analogRead(pressureSensePin); // max pressure sensor reading // ((sensorValue in mV -sensorOffset)/sensitivity in mV/mmH2O)*kPa conversion constant float sensorValueMP = (((rawValueMP - SensorOffsetGP) * ADC_mV) / sensitivity / mmh2O_cmH2O); // result in cmH2O return sensorValueMP; } // ********* used for UI display only *********** int getMaxPressure () { int newP = getPressure(); // read current pressure static int maxP = 0; // variable for max pressure static unsigned long maxPressureHoldTimer = millis(); // for timing duration that maxPressure is shown on display if (breathStatus == inhale) { if (newP > maxP) maxP = newP; // record max pressure during inhale maxPressureHoldTimer = millis(); } else { if (millis() - breathTime > breathPeriod - 800) maxP = 0; } return maxP; } // ***** check home made orifice flow sensor ***** int getFlowRate () { // ADC count, flow (ml/s) lookup table // NOTE: This table is not suitable for tidal volumes greater than 400ml at high BPMs or IE ratios static int flowArray[197] = { // full array 645 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 97 // new values , 141 // , 174 // , 189 , 200 , 211 , 221 , 231 , 240 , 249 , 257 , 266 , 274 , 282 , 289 , 297 , 304 , 311 , 317 , 324 , 331 , 337 , 343 , 349 , 355 , 361 , 367 , 373 , 379 , 384 , 389 , 395 , 400 , 405 , 410 , 416 , 420 , 425 , 430 , 435 , 440 , 444 , 449 , 453 , 458 , 463 , 467 , 472 , 476 , 480 , 484 , 489 , 493 , 497 , 501 , 505 , 509 , 513 , 517 , 521 , 525 , 529 , 533 , 536 , 540 , 544 , 548 , 552 , 555 , 559 , 562 , 566 , 570 , 573 , 577 , 580 , 584 , 587 , 591 , 594 , 597 , 601 , 604 , 607 , 611 , 614 , 617 , 621 , 624 , 627 , 630 , 633 , 637 , 640 , 643 , 646 , 649 , 652 , 655 , 658 , 661 , 664 , 667 , 670 , 673 , 676 , 679 , 682 , 685 , 688 , 691 , 694 , 697 , 699 , 702 , 705 , 708 , 711 , 713 , 716 , 719 , 722 , 725 , 727 , 730 , 733 , 735 , 738 , 741 , 744 , 746 , 749 , 751 , 754 , 757 , 759 , 762 , 764 , 767 , 769 , 772 , 775 , 777 , 780 , 782 , 785 , 787 , 790 , 792 , 795 , 797 , 799 // , 802 // , 804 // , 807 // , 809 // , 812 // , 814 // , 816 // , 819 // , 821 // , 824 // , 826 // , 828 // , 831 // , 833 // , 835 // , 838 // , 840 // , 842 // , 845 // , 847 // , 849 // , 852 // , 854 // , 856 // , 858 // , 861 // , 863 // , 865 // , 867 // , 870 // , 872 // , 874 // , 876 // , 878 // , 881 // , 883 // , 885 // , 887 // , 889 // , 891 // , 894 // , 896 // , 898 // , 900 // , 902 // , 904 // , 906 // , 909 // , 911 // , 913 // , 915 // , 917 // , 919 // , 921 // , 923 // , 925 // , 927 // , 930 // , 931 // , 934 // , 936 // , 938 // , 940 // , 942 // , 944 // , 946 // , 948 // , 950 // , 952 // , 954 // , 956 // , 958 // , 960 // , 962 // , 964 // , 966 // , 968 // , 970 // , 972 // , 974 // , 976 // , 978 // , 980 // , 981 // , 983 // , 985 // , 987 // , 989 // , 991 // , 993 // , 995 // , 997 // , 999 // , 1001 // , 1002 // , 1004 // , 1006 // , 1008 // , 1010 // , 1012 // , 1014 // , 1016 // , 1017 // , 1019 // , 1021 // , 1023 // , 1025 // , 1027 // , 1028 // , 1030 // , 1032 // , 1034 // , 1036 // , 1038 // , 1039 // , 1041 // , 1043 // , 1045 // , 1046 // , 1048 // , 1050 // , 1052 // , 1054 // , 1056 // , 1057 // , 1059 // , 1061 // , 1063 // , 1064 // , 1066 // , 1068 // , 1070 // , 1071 // , 1073 // , 1075 // , 1077 // , 1078 // , 1080 // , 1082 // , 1083 // , 1085 // , 1087 // , 1089 // , 1090 // , 1092 // , 1094 // , 1095 // , 1097 // , 1099 // , 1100 // , 1102 // , 1104 // , 1105 // , 1107 // , 1109 // , 1111 // , 1112 // , 1114 // , 1115 // , 1117 // , 1119 // , 1120 // , 1122 // , 1124 // , 1125 // , 1127 // , 1129 // , 1130 // , 1132 // , 1134 // , 1135 // , 1137 // , 1138 // , 1140 // , 1142 // , 1143 // , 1145 // , 1147 // , 1148 // , 1150 // , 1151 // , 1153 // , 1155 // , 1156 // , 1158 // , 1159 // , 1161 // , 1162 // , 1164 // , 1166 // , 1167 // , 1169 // , 1170 // , 1172 // , 1173 // , 1175 // , 1177 // , 1178 // , 1180 // , 1181 // , 1183 // , 1184 // , 1186 // , 1187 // , 1189 // , 1190 // , 1192 // , 1193 // , 1195 // , 1197 // , 1198 // , 1200 // , 1201 // , 1203 // , 1204 // , 1206 // , 1207 // , 1209 // , 1210 // , 1212 // , 1213 // , 1215 // , 1216 // , 1218 // , 1219 // , 1220 // , 1222 // , 1223 // , 1225 // , 1226 // , 1228 // , 1229 // , 1231 // , 1232 // , 1234 // , 1235 // , 1237 // , 1238 // , 1240 // , 1241 // , 1242 // , 1244 // , 1245 // , 1247 // , 1248 // , 1250 // , 1251 // , 1253 // , 1254 // , 1256 // , 1257 // , 1258 // , 1260 // , 1261 // , 1263 // , 1264 // , 1265 // , 1267 // , 1268 // , 1270 // , 1271 // , 1272 // , 1274 // , 1275 // , 1277 // , 1278 // , 1279 // , 1281 // , 1282 // , 1284 // , 1285 // , 1287 // , 1288 // , 1289 // , 1291 // , 1292 // , 1293 // , 1295 // , 1296 // , 1297 // , 1299 // , 1300 // , 1302 // , 1303 // , 1304 // , 1306 // , 1307 // , 1308 // , 1310 // , 1311 // , 1313 // , 1314 // , 1315 // , 1316 // , 1318 // , 1319 // , 1321 // , 1322 // , 1323 // , 1325 // , 1326 // , 1327 // , 1329 // , 1330 // , 1331 // , 1333 // , 1334 // , 1335 // , 1336 // , 1338 // , 1339 // , 1340 // , 1342 // , 1343 // , 1344 // , 1346 // , 1347 // , 1348 // , 1350 // , 1351 // , 1352 // , 1353 // , 1355 // , 1356 // , 1357 // , 1359 // , 1360 // , 1361 // , 1363 // , 1364 // , 1365 // , 1366 // , 1368 // , 1369 // , 1370 // , 1371 // , 1373 // , 1374 // , 1375 // , 1377 // , 1378 // , 1379 // , 1380 // , 1382 // , 1383 // , 1384 // , 1385 // , 1387 // , 1388 // , 1389 // , 1390 // , 1392 // , 1393 // , 1394 // , 1395 // , 1397 // , 1398 // , 1399 // , 1400 // , 1402 // , 1403 // , 1404 // , 1405 // , 1407 // , 1408 // , 1409 // , 1410 // , 1411 // , 1413 // , 1414 // , 1415 // , 1416 // , 1418 // , 1419 // , 1420 // , 1421 // , 1422 // , 1424 // , 1425 // , 1426 // , 1427 // , 1428 // , 1430 // , 1431 // , 1432 // , 1433 // , 1434 // , 1436 // , 1437 // , 1438 // , 1439 // , 1441 // , 1442 // , 1443 // , 1444 // , 1445 // , 1446 // , 1448 // , 1449 // , 1450 // , 1451 // , 1452 // , 1454 // , 1455 // , 1456 // , 1457 // , 1458 // , 1459 // , 1461 // , 1462 // , 1463 // , 1464 // , 1465 // , 1466 // , 1468 // , 1469 // , 1470 // , 1471 // , 1472 // , 1473 // , 1474 // , 1476 // , 1477 // , 1478 // , 1479 // , 1480 // , 1481 // , 1483 // , 1484 // , 1485 // , 1486 // , 1487 // , 1488 // , 1489 // , 1491 // , 1492 // , 1493 // , 1494 // , 1495 // , 1496 // , 1497 // , 1498 // , 1500 // , 1501 // , 1502 // , 1503 // , 1504 // , 1505 // , 1506 // , 1507 }; // read flow rate from lookup table based on calculated values in excel table int flowRate = flowArray[analogRead(flowSensePin)]; // ml/s return flowRate; // return ml/s } // ********* LPF on flow to remove freak readings ******** int getFilteredFlowRate () { int returnFlow = getFilteredFlow(getFlowRate()); // low pass filter on flow readings. Not used if (returnFlow < 80) returnFlow = 0; return returnFlow; // return ml/s } // read the buttons int read_LCD_buttons() // debounce these { int adc_key_in = analogRead(buttonsLCDpin); // read the value from the sensor // buttons are centered at these values: 0, 102, 258, 412, 641 (example code vals: 0, 144, 329, 504, 741) if (adc_key_in > 1000) return btnNONE; // We make this the 1st option for speed reasons since it will be the most likely result // For V1.1 us this threshold if (adc_key_in < 50) return btnRIGHT; if (adc_key_in < 175) return btnUP; if (adc_key_in < 350) return btnDOWN; if (adc_key_in < 525) return btnLEFT; if (adc_key_in < 900) return btnSELECT; return btnNONE; // when all others fail, return this // IMPORTANT: Calibration routine needed to account for resistors out of tollerance } ",12403,True,2592.1775598072204,median "/* DebounceU8x8.ino Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ""AS IS"" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include #include #include /* Preconditions: Uno with DOGS102 Shield */ // Please UNCOMMENT one of the contructor lines below // U8x8 Contructor List // The complete list is available here: https://github.com/olikraus/u8g2/wiki/u8x8setupcpp // Please update the pin numbers according to your setup. Use U8X8_PIN_NONE if the reset pin is not connected //U8X8_NULL u8x8; // null device, a 8x8 pixel display which does nothing //U8X8_SSD1306_128X64_NONAME_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1306_128X64_NONAME_4W_HW_SPI u8x8(/* cs=*/ 6, /* dc=*/ 4, /* reset=*/ 12); // Arduboy (DevKit) //U8X8_SSD1306_128X64_NONAME_4W_HW_SPI u8x8(/* cs=*/ 12, /* dc=*/ 4, /* reset=*/ 6); // Arduboy 10 (Production, Kickstarter Edition) //U8X8_SSD1306_128X64_NONAME_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1306_128X64_NONAME_3W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* reset=*/ 8); //U8X8_SSD1306_128X64_NONAME_3W_HW_SPI u8x8(/* cs=*/ 10, /* reset=*/ 8); //U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); //U8X8_SSD1306_128X64_ALT0_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); // same as the NONAME variant, but may solve the ""every 2nd line skipped"" problem //U8X8_SSD1306_128X64_NONAME_SW_I2C u8x8(/* clock=*/ 2, /* data=*/ 0, /* reset=*/ U8X8_PIN_NONE); // Digispark ATTiny85 //U8X8_SSD1306_128X64_NONAME_SW_I2C u8x8(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); // OLEDs without Reset of the Display //U8X8_SSD1306_128X64_VCOMH0_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // same as the NONAME variant, but maximizes setContrast() range //U8X8_SSD1306_128X64_ALT0_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // same as the NONAME variant, but may solve the ""every 2nd line skipped"" problem //U8X8_SSD1306_102X64_EA_OLEDS102_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // same as the NONAME variant, but may solve the ""every 2nd line skipped"" problem //U8X8_SH1106_128X64_NONAME_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SH1106_128X64_NONAME_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); //U8X8_SH1106_128X64_VCOMH0_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // same as the NONAME variant, but maximizes setContrast() range //U8X8_SH1106_128X64_WINSTAR_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // same as the NONAME variant, but uses updated SH1106 init sequence //U8X8_SH1106_128X32_VISIONOX_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); //U8X8_SH1106_128X32_VISIONOX_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SH1106_72X40_WISE_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SH1107_64X128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SH1107_128X128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SH1107_128X128_HW_I2C u8x8(/* reset=*/ 8); //U8X8_SH1107_128X80_HW_I2C u8x8(/* reset=*/ 8); //U8X8_SH1107_PIMORONI_128X128_HW_I2C u8x8(/* reset=*/ 8); //U8X8_SH1107_SEEED_128X128_SW_I2C u8x8(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); //U8X8_SH1107_SEEED_128X128_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); //U8X8_SH1107_SEEED_96X96_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SH1108_160X160_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1306_128X32_UNIVISION_SW_I2C u8x8(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); // Adafruit Feather ESP8266/32u4 Boards + FeatherWing OLED //U8X8_SSD1306_128X32_UNIVISION_SW_I2C u8x8(/* clock=*/ 21, /* data=*/ 20, /* reset=*/ U8X8_PIN_NONE); // Adafruit Feather M0 Basic Proto + FeatherWing OLED //U8X8_SSD1306_128X32_UNIVISION_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); // Adafruit ESP8266/32u4/ARM Boards + FeatherWing OLED //U8X8_SSD1306_128X32_UNIVISION_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE, /* clock=*/ SCL, /* data=*/ SDA); // pin remapping with ESP8266 HW I2C //U8X8_SSD1306_128X32_WINSTAR_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE, /* clock=*/ SCL, /* data=*/ SDA); // pin remapping with ESP8266 HW I2C //U8X8_SSD1306_64X48_ER_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); // EastRising 0.66"" OLED breakout board, Uno: A4=SDA, A5=SCL, 5V powered //U8X8_SSD1306_48X64_WINSTAR_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); //U8X8_SSD1306_64X32_NONAME_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); //U8X8_SSD1306_64X32_1F_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); //U8X8_SSD1306_96X16_ER_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); // EastRising 0.69"" //U8X8_SSD1306_72X40_ER_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); // EastRising 0.42"" //U8X8_SSD1306_128X64_NONAME_6800 u8x8(13, 11, 2, 3, 4, 5, 6, A4, /*enable=*/ 7, /*cs=*/ 10, /*dc=*/ 9, /*reset=*/ 8); //U8X8_SSD1306_128X64_NONAME_8080 u8x8(13, 11, 2, 3, 4, 5, 6, A4, /*enable=*/ 7, /*cs=*/ 10, /*dc=*/ 9, /*reset=*/ 8); //U8X8_SSD1309_128X64_NONAME0_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1309_128X64_NONAME0_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1309_128X64_NONAME2_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1309_128X64_NONAME2_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1316_128X32_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1316_128X32_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1317_96X96_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // not tested, not confirmed //U8X8_SSD1317_96X96_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // not tested, not confirmed //U8X8_SSD1318_128X96_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1318_128X96_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1320_160X132_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1320_160X132_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1322_NHD_256X64_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1322_NHD_256X64_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1322_NHD_128X64_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1322_NHD_128X64_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1325_NHD_128X64_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1325_NHD_128X64_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD0323_OS128064_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD0323_OS128064_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1326_ER_256X32_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // experimental driver for ER-OLED018-1 //U8X8_SSD1327_SEEED_96X96_SW_I2C u8x8(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); // Seeedstudio Grove OLED 96x96 //U8X8_SSD1327_SEEED_96X96_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); // Seeedstudio Grove OLED 96x96 //U8X8_SSD1327_EA_W128128_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1327_EA_W128128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1327_MIDAS_128X128_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1327_MIDAS_128X128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1327_WS_128X128_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1327_WS_128X128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1327_VISIONOX_128X96_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1327_VISIONOX_128X96_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1329_128X96_NONAME_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1329_128X96_NONAME_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1329_96X96_NONAME_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1329_96X96_NONAME_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1329_96X96_NONAME_4W_HW_SPI u8x8(/* cs=*/ A4, /* dc=*/ A2, /* reset=*/ U8X8_PIN_NONE); // Adafruit Feather 32u4 Basic Proto //U8X8_SSD1305_128X32_NONAME_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1305_128X32_NONAME_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1305_128X32_ADAFRUIT_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1305_128X32_ADAFRUIT_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1305_128X64_ADAFRUIT_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1305_128X64_ADAFRUIT_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1305_128X64_RAYSTAR_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1305_128X64_RAYSTAR_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_KS0108_128X64 u8x8(8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*dc=*/ 17, /*cs0=*/ 14, /*cs1=*/ 15, /*cs2=*/ U8X8_PIN_NONE, /* reset=*/ U8X8_PIN_NONE); // Set R/W to low! //U8X8_KS0108_ERM19264 u8x8(8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*dc=*/ 17, /*cs0=*/ 14, /*cs1=*/ 15, /*cs2=*/ 16, /* reset=*/ U8X8_PIN_NONE); // Set R/W to low! //U8X8_HD44102_100X64 u8x8(4, 5, 6, 7, 8, 9, 10, 11, /*enable=*/ 2, /*dc=*/ 3, /*cs0=*/ A0, /*cs1=*/ A1, /*cs2=*/ A2, /* reset=*/ U8X8_PIN_NONE); // Set R/W to low! //U8X8_T7932_150X32 u8x8(4, 5, 6, 7, 8, 9, 10, 11, /*enable=*/ 2, /*dc=*/ 3, /*cs0=*/ A0, /*cs1=*/ A1, /*cs2=*/ A2, /* reset=*/ U8X8_PIN_NONE); // Set R/W to low! //U8X8_UC1701_EA_DOGS102_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1701_EA_DOGS102_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_PCD8544_84X48_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Nokia 5110 Display //U8X8_PCD8544_84X48_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Nokia 5110 Display //U8X8_PCF8812_96X65_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Could be also PCF8814 //U8X8_PCF8812_96X65_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Could be also PCF8814 //U8X8_HX1230_96X68_3W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* reset=*/ 8); //U8X8_HX1230_96X68_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7528_ERC16064_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7528_ERC16064_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_EA_DOGM128_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_EA_DOGM128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_64128N_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_64128N_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_EA_DOGM132_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); // DOGM132 Shield //U8X8_ST7565_EA_DOGM132_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); // DOGM132 Shield //U8X8_ST7565_ZOLEN_128X64_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_ZOLEN_128X64_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_LM6059_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Adafruit ST7565 GLCD //U8X8_ST7565_LM6059_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Adafruit ST7565 GLCD //U8X8_ST7565_KS0713_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // KS0713 controller //U8X8_ST7565_KS0713_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // KS0713 controller //U8X8_ST7565_LX12864_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_LX12864_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_ERC12864_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_ERC12864_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_ERC12864_ALT_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // contrast improved version for ERC12864 //U8X8_ST7565_ERC12864_ALT_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // contrast improved version for ERC12864 //U8X8_ST7565_NHD_C12832_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_NHD_C12832_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_NHD_C12864_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_NHD_C12864_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_JLX12864_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_JLX12864_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7567_PI_132X64_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); // Pax Instruments Shield, LCD_BL=6 //U8X8_ST7567_PI_132X64_4W_HW_SPI u8x8(/* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); // Pax Instruments Shield, LCD_BL=6 //U8X8_ST7567_JLX12864_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7567_JLX12864_4W_HW_SPI u8x8(/* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7567_OS12864_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7567_OS12864_4W_HW_SPI u8x8(/* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7567_ENH_DG128064_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7567_ENH_DG128064_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7567_ENH_DG128064I_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7567_ENH_DG128064I_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7567_64X32_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); //U8X8_ST7567_HEM6432_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); //U8X8_ST7571_128X128_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7571_128X128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7571_128X96_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7571_128X96_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX172104_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX172104_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX19296_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX19296_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX256128_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX256128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_WO256X128_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_WO256X128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX256160_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX256160_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX256160M_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX256160M_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX256160_ALT_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX256160_ALT_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX240160_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX240160_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX25664_2ND_HW_I2C u8x8(/* reset=*/ 8); // Due, 2nd I2C //U8X8_ST75320_JLX320240_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75320_JLX320240_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_NT7534_TG12864R_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_NT7534_TG12864R_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7588_JLX12864_SW_I2C u8x8(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ 5); //U8X8_ST7588_JLX12864_HW_I2C u8x8(/* reset=*/ 5); //U8X8_IST3020_ERC19264_6800 u8x8(44, 43, 42, 41, 40, 39, 38, 37, /*enable=*/ 28, /*cs=*/ 32, /*dc=*/ 30, /*reset=*/ 31); // Connect WR pin with GND //U8X8_IST3020_ERC19264_8080 u8x8(44, 43, 42, 41, 40, 39, 38, 37, /*enable=*/ 29, /*cs=*/ 32, /*dc=*/ 30, /*reset=*/ 31); // Connect RD pin with 3.3V //U8X8_IST3020_ERC19264_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_IST7920_128X128_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Round display //U8X8_IST7920_128X128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Round display //U8X8_UC1601_128X32_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1601_128X32_3W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* reset=*/ 8); //U8X8_UC1601_128X64_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1604_JLX19264_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1604_JLX19264_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1609_SLG19264_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1609_SLG19264_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1608_ERC24064_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Due, SW SPI, ERC24064-1 Test Board //U8X8_UC1608_DEM240064_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Due, SW SPI, ERC24064-1 Test Board //U8X8_UC1608_ERC240120_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1608_240X128_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1610_EA_DOGXL160_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); //U8X8_UC1610_EA_DOGXL160_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); //U8X8_UC1611_EA_DOGM240_2ND_HW_I2C u8x8(/* reset=*/ 8); // Due, 2nd I2C, DOGM240 Test Board //U8X8_UC1611_EA_DOGM240_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // SW SPI, Due DOGXL240 Test Board //U8X8_UC1611_EA_DOGXL240_2ND_HW_I2C u8x8(/* reset=*/ 8); // Due, 2nd I2C, DOGXL240 Test Board //U8X8_UC1611_EA_DOGXL240_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // SW SPI, Due DOGXL240 Test Board //U8X8_UC1611_IDS4073_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1611_IDS4073_4W_HW_SPI u8x8( /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1611_EW50850_8080 u8x8(8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*cs=*/ 3, /*dc=*/ 16, /*reset=*/ 17); // 240x160, Connect RD/WR1 pin with 3.3V, CS is aktive high //U8X8_UC1611_CG160160_8080 u8x8(8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*cs=*/ 3, /*dc=*/ 16, /*reset=*/ 17); // Connect WR1 and CD1 pin with 3.3V, connect CS0 with cs, WR0 with enable, CD with dc //U8X8_UC1617_JLX128128_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1617_JLX128128_4W_HW_SPI u8x8( /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1638_192X96_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1638_192X96_4W_HW_SPI u8x8( /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1638_192X96_SW_I2C u8x8(/* clock=*/ 13, /* data=*/ 11, /* reset=*/ 8); // u8g2 test board: I2C clock/data is same as SPI, I2C default address is 0x78 //U8X8_SSD1606_172X72_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // eInk/ePaper Display //U8X8_SSD1607_200X200_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // eInk/ePaper Display, original LUT from embedded artists //U8X8_SSD1607_GS_200X200_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Good Display //U8X8_SSD1607_WS_200X200_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Waveshare //U8X8_IL3820_296X128_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // eInk/ePaper Display, original LUT //U8X8_IL3820_V2_296X128_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // eInk/ePaper Display, optimized (lesser screen flicker) //U8X8_ST7511_AVD_320X240_8080 u8x8(13, 11, 2, 3, 4, 5, 6, A4, /*enable/WR=*/ 7, /*cs=*/ 10, /*dc=*/ 9, /*reset=*/ 8); // Connect RD pin with 3.3V/5V //U8X8_S1D15721_240X64_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_S1D15721_240X64_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_GU800_128X64_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_GU800_128X64_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); ",12395,True,3883.395896462128,median "cmd_drivers/mtd/chips/gen_probe.o := aarch64-xilinx-linux-gcc -fuse-ld=bfd -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0=/usr/src/debug/linux-xlnx/4.19-xilinx-v2019.1+git999-r0 -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot= -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work-shared/ultra96-zynqmp/kernel-source=/usr/src/kernel --sysroot=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot -Wp,-MD,drivers/mtd/chips/.gen_probe.o.d -nostdinc -isystem /home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../lib/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/8.2.0/include -I/home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include -I./arch/arm64/include/generated -I/home/zw/share/ultra96/mipitest/linux-xlnx/include -I./include -I/home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi -I./arch/arm64/include/generated/uapi -I/home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi -I./include/generated/uapi -include /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kconfig.h -include /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler_types.h -I/home/zw/share/ultra96/mipitest/linux-xlnx/drivers/mtd/chips -Idrivers/mtd/chips -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -mgeneral-regs-only -DCONFIG_AS_LSE=1 -fno-asynchronous-unwind-tables -mabi=lp64 -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=/home/zw/share/ultra96/mipitest/linux-xlnx/= -Wno-packed-not-aligned -DKBUILD_BASENAME='""gen_probe""' -DKBUILD_MODNAME='""gen_probe""' -c -o drivers/mtd/chips/gen_probe.o /home/zw/share/ultra96/mipitest/linux-xlnx/drivers/mtd/chips/gen_probe.c source_drivers/mtd/chips/gen_probe.o := /home/zw/share/ultra96/mipitest/linux-xlnx/drivers/mtd/chips/gen_probe.c deps_drivers/mtd/chips/gen_probe.o := \\ $(wildcard include/config/modules.h) \\ $(wildcard include/config/mtd/cfi/intelext.h) \\ $(wildcard include/config/mtd/cfi/amdstd.h) \\ $(wildcard include/config/mtd/cfi/staa.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kconfig.h \\ $(wildcard include/config/cpu/big/endian.h) \\ $(wildcard include/config/booger.h) \\ $(wildcard include/config/foo.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler_types.h \\ $(wildcard include/config/have/arch/compiler/h.h) \\ $(wildcard include/config/enable/must/check.h) \\ $(wildcard include/config/arch/supports/optimized/inlining.h) \\ $(wildcard include/config/optimize/inlining.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler-gcc.h \\ $(wildcard include/config/arch/use/builtin/bswap.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kernel.h \\ $(wildcard include/config/lbdaf.h) \\ $(wildcard include/config/preempt/voluntary.h) \\ $(wildcard include/config/debug/atomic/sleep.h) \\ $(wildcard include/config/mmu.h) \\ $(wildcard include/config/prove/locking.h) \\ $(wildcard include/config/arch/has/refcount.h) \\ $(wildcard include/config/panic/timeout.h) \\ $(wildcard include/config/tracing.h) \\ $(wildcard include/config/ftrace/mcount/record.h) \\ /home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot-native/usr/lib/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/8.2.0/include/stdarg.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/linkage.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stringify.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/export.h \\ $(wildcard include/config/modversions.h) \\ $(wildcard include/config/module/rel/crcs.h) \\ $(wildcard include/config/have/arch/prel32/relocations.h) \\ $(wildcard include/config/trim/unused/ksyms.h) \\ $(wildcard include/config/unused/symbols.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler.h \\ $(wildcard include/config/trace/branch/profiling.h) \\ $(wildcard include/config/profile/all/branches.h) \\ $(wildcard include/config/stack/validation.h) \\ $(wildcard include/config/kasan.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/types.h \\ arch/arm64/include/generated/uapi/asm/types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/int-ll64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/int-ll64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/bitsperlong.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitsperlong.h \\ $(wildcard include/config/64bit.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/bitsperlong.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/posix_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stddef.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/stddef.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/posix_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/posix_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/barrier.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/barrier.h \\ $(wildcard include/config/smp.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kasan-checks.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/linkage.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/types.h \\ $(wildcard include/config/have/uid16.h) \\ $(wildcard include/config/uid16.h) \\ $(wildcard include/config/arch/dma/addr/t/64bit.h) \\ $(wildcard include/config/phys/addr/t/64bit.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bitops.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bits.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/bitops.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-__ffs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-ffs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-__fls.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-fls.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/ffz.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/fls64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/find.h \\ $(wildcard include/config/generic/find/first/bit.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/sched.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/hweight.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/arch_hweight.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/const_hweight.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/atomic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/atomic.h \\ $(wildcard include/config/generic/atomic64.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/atomic.h \\ $(wildcard include/config/arm64/lse/atomics.h) \\ $(wildcard include/config/as/lse.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/lse.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/alternative.h \\ $(wildcard include/config/arm64/uao.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cpucaps.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/insn.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/init.h \\ $(wildcard include/config/strict/kernel/rwx.h) \\ $(wildcard include/config/strict/module/rwx.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/atomic_lse.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cmpxchg.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/build_bug.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/atomic-long.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/lock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/non-atomic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/le.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/byteorder.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/byteorder/little_endian.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/byteorder/little_endian.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/swab.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/swab.h \\ arch/arm64/include/generated/uapi/asm/swab.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/swab.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/byteorder/generic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/ext2-atomic-setbit.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/log2.h \\ $(wildcard include/config/arch/has/ilog2/u32.h) \\ $(wildcard include/config/arch/has/ilog2/u64.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/typecheck.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/printk.h \\ $(wildcard include/config/message/loglevel/default.h) \\ $(wildcard include/config/console/loglevel/default.h) \\ $(wildcard include/config/console/loglevel/quiet.h) \\ $(wildcard include/config/early/printk.h) \\ $(wildcard include/config/printk/nmi.h) \\ $(wildcard include/config/printk.h) \\ $(wildcard include/config/dynamic/debug.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kern_levels.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/cache.h \\ $(wildcard include/config/arch/has/cache/line/size.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/kernel.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sysinfo.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cache.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cputype.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/sysreg.h \\ $(wildcard include/config/broken/gas/inst.h) \\ $(wildcard include/config/arm64/pa/bits/52.h) \\ $(wildcard include/config/arm64/4k/pages.h) \\ $(wildcard include/config/arm64/16k/pages.h) \\ $(wildcard include/config/arm64/64k/pages.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/compiler.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/slab.h \\ $(wildcard include/config/debug/slab.h) \\ $(wildcard include/config/debug/objects.h) \\ $(wildcard include/config/failslab.h) \\ $(wildcard include/config/memcg/kmem.h) \\ $(wildcard include/config/have/hardened/usercopy/allocator.h) \\ $(wildcard include/config/slab.h) \\ $(wildcard include/config/slub.h) \\ $(wildcard include/config/slob.h) \\ $(wildcard include/config/zone/dma.h) \\ $(wildcard include/config/numa.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/gfp.h \\ $(wildcard include/config/lockdep.h) \\ $(wildcard include/config/highmem.h) \\ $(wildcard include/config/zone/dma32.h) \\ $(wildcard include/config/zone/device.h) \\ $(wildcard include/config/pm/sleep.h) \\ $(wildcard include/config/memory/isolation.h) \\ $(wildcard include/config/compaction.h) \\ $(wildcard include/config/cma.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mmdebug.h \\ $(wildcard include/config/debug/vm.h) \\ $(wildcard include/config/debug/virtual.h) \\ $(wildcard include/config/debug/vm/pgflags.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bug.h \\ $(wildcard include/config/generic/bug.h) \\ $(wildcard include/config/bug/on/data/corruption.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/bug.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/asm-bug.h \\ $(wildcard include/config/debug/bugverbose.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/brk-imm.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bug.h \\ $(wildcard include/config/bug.h) \\ $(wildcard include/config/generic/bug/relative/pointers.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mmzone.h \\ $(wildcard include/config/force/max/zoneorder.h) \\ $(wildcard include/config/zsmalloc.h) \\ $(wildcard include/config/memcg.h) \\ $(wildcard include/config/sparsemem.h) \\ $(wildcard include/config/memory/hotplug.h) \\ $(wildcard include/config/discontigmem.h) \\ $(wildcard include/config/flat/node/mem/map.h) \\ $(wildcard include/config/page/extension.h) \\ $(wildcard include/config/no/bootmem.h) \\ $(wildcard include/config/deferred/struct/page/init.h) \\ $(wildcard include/config/transparent/hugepage.h) \\ $(wildcard include/config/have/memory/present.h) \\ $(wildcard include/config/have/memoryless/nodes.h) \\ $(wildcard include/config/have/memblock/node/map.h) \\ $(wildcard include/config/need/multiple/nodes.h) \\ $(wildcard include/config/have/arch/early/pfn/to/nid.h) \\ $(wildcard include/config/flatmem.h) \\ $(wildcard include/config/sparsemem/extreme.h) \\ $(wildcard include/config/memory/hotremove.h) \\ $(wildcard include/config/have/arch/pfn/valid.h) \\ $(wildcard include/config/holes/in/zone.h) \\ $(wildcard include/config/arch/has/holes/memorymodel.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/spinlock.h \\ $(wildcard include/config/debug/spinlock.h) \\ $(wildcard include/config/preempt.h) \\ $(wildcard include/config/debug/lock/alloc.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/preempt.h \\ $(wildcard include/config/preempt/count.h) \\ $(wildcard include/config/debug/preempt.h) \\ $(wildcard include/config/trace/preempt/toggle.h) \\ $(wildcard include/config/preempt/notifiers.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/list.h \\ $(wildcard include/config/debug/list.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/poison.h \\ $(wildcard include/config/illegal/pointer/value.h) \\ $(wildcard include/config/page/poisoning/zero.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/const.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/const.h \\ arch/arm64/include/generated/asm/preempt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/preempt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/thread_info.h \\ $(wildcard include/config/thread/info/in/task.h) \\ $(wildcard include/config/have/arch/within/stack/frames.h) \\ $(wildcard include/config/hardened/usercopy.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/restart_block.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/time64.h \\ $(wildcard include/config/64bit/time.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/math64.h \\ $(wildcard include/config/arch/supports/int128.h) \\ arch/arm64/include/generated/asm/div64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/div64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/time.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/current.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/thread_info.h \\ $(wildcard include/config/arm64/sw/ttbr0/pan.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/memory.h \\ $(wildcard include/config/arm64/va/bits.h) \\ $(wildcard include/config/vmap/stack.h) \\ $(wildcard include/config/debug/align/rodata.h) \\ $(wildcard include/config/blk/dev/initrd.h) \\ $(wildcard include/config/sparsemem/vmemmap.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/page-def.h \\ $(wildcard include/config/arm64/page/shift.h) \\ $(wildcard include/config/arm64/cont/shift.h) \\ arch/arm64/include/generated/asm/sizes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/sizes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sizes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/memory_model.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pfn.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/stack_pointer.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/irqflags.h \\ $(wildcard include/config/trace/irqflags.h) \\ $(wildcard include/config/irqsoff/tracer.h) \\ $(wildcard include/config/preempt/tracer.h) \\ $(wildcard include/config/trace/irqflags/support.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/irqflags.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/ptrace.h \\ $(wildcard include/config/compat.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/ptrace.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/hwcap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/hwcap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/sigcontext.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/prctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/ptrace.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bottom_half.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/spinlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/spinlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qspinlock_types.h \\ $(wildcard include/config/paravirt.h) \\ $(wildcard include/config/nr/cpus.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qrwlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/lockdep.h \\ $(wildcard include/config/lock/stat.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/spinlock.h \\ arch/arm64/include/generated/asm/qrwlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qrwlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/processor.h \\ $(wildcard include/config/have/hw/breakpoint.h) \\ $(wildcard include/config/gcc/plugin/stackleak.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/string.h \\ $(wildcard include/config/binary/printf.h) \\ $(wildcard include/config/fortify/source.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/string.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/string.h \\ $(wildcard include/config/arch/has/uaccess/flushcache.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cpufeature.h \\ $(wildcard include/config/arm64/sve.h) \\ $(wildcard include/config/arm64/ssbd.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/jump_label.h \\ $(wildcard include/config/jump/label.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/hw_breakpoint.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/virt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/sections.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/sections.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable-hwdef.h \\ $(wildcard include/config/pgtable/levels.h) \\ $(wildcard include/config/arm64/pa/bits.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/fpsimd.h \\ arch/arm64/include/generated/uapi/asm/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/errno-base.h \\ arch/arm64/include/generated/asm/qspinlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qspinlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/spinlock_api_smp.h \\ $(wildcard include/config/inline/spin/lock.h) \\ $(wildcard include/config/inline/spin/lock/bh.h) \\ $(wildcard include/config/inline/spin/lock/irq.h) \\ $(wildcard include/config/inline/spin/lock/irqsave.h) \\ $(wildcard include/config/inline/spin/trylock.h) \\ $(wildcard include/config/inline/spin/trylock/bh.h) \\ $(wildcard include/config/uninline/spin/unlock.h) \\ $(wildcard include/config/inline/spin/unlock/bh.h) \\ $(wildcard include/config/inline/spin/unlock/irq.h) \\ $(wildcard include/config/inline/spin/unlock/irqrestore.h) \\ $(wildcard include/config/generic/lockbreak.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwlock_api_smp.h \\ $(wildcard include/config/inline/read/lock.h) \\ $(wildcard include/config/inline/write/lock.h) \\ $(wildcard include/config/inline/read/lock/bh.h) \\ $(wildcard include/config/inline/write/lock/bh.h) \\ $(wildcard include/config/inline/read/lock/irq.h) \\ $(wildcard include/config/inline/write/lock/irq.h) \\ $(wildcard include/config/inline/read/lock/irqsave.h) \\ $(wildcard include/config/inline/write/lock/irqsave.h) \\ $(wildcard include/config/inline/read/trylock.h) \\ $(wildcard include/config/inline/write/trylock.h) \\ $(wildcard include/config/inline/read/unlock.h) \\ $(wildcard include/config/inline/write/unlock.h) \\ $(wildcard include/config/inline/read/unlock/bh.h) \\ $(wildcard include/config/inline/write/unlock/bh.h) \\ $(wildcard include/config/inline/read/unlock/irq.h) \\ $(wildcard include/config/inline/write/unlock/irq.h) \\ $(wildcard include/config/inline/read/unlock/irqrestore.h) \\ $(wildcard include/config/inline/write/unlock/irqrestore.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/wait.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/wait.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/threads.h \\ $(wildcard include/config/base/small.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/numa.h \\ $(wildcard include/config/nodes/shift.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/seqlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/nodemask.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bitmap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pageblock-flags.h \\ $(wildcard include/config/hugetlb/page.h) \\ $(wildcard include/config/hugetlb/page/size/variable.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/page-flags-layout.h \\ $(wildcard include/config/numa/balancing.h) \\ include/generated/bounds.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/sparsemem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/page.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/personality.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/personality.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable-types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/pgtable-nopud.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/pgtable-nop4d-hack.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/5level-fixup.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/getorder.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/memory_hotplug.h \\ $(wildcard include/config/arch/has/add/pages.h) \\ $(wildcard include/config/have/arch/nodedata/extension.h) \\ $(wildcard include/config/have/bootmem/info/node.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/notifier.h \\ $(wildcard include/config/tree/srcu.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mutex.h \\ $(wildcard include/config/mutex/spin/on/owner.h) \\ $(wildcard include/config/debug/mutexes.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/osq_lock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/debug_locks.h \\ $(wildcard include/config/debug/locking/api/selftests.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwsem.h \\ $(wildcard include/config/rwsem/spin/on/owner.h) \\ $(wildcard include/config/rwsem/generic/spinlock.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/err.h \\ arch/arm64/include/generated/asm/rwsem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/rwsem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/srcu.h \\ $(wildcard include/config/tiny/srcu.h) \\ $(wildcard include/config/srcu.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcupdate.h \\ $(wildcard include/config/preempt/rcu.h) \\ $(wildcard include/config/rcu/stall/common.h) \\ $(wildcard include/config/no/hz/full.h) \\ $(wildcard include/config/rcu/nocb/cpu.h) \\ $(wildcard include/config/tasks/rcu.h) \\ $(wildcard include/config/tree/rcu.h) \\ $(wildcard include/config/tiny/rcu.h) \\ $(wildcard include/config/debug/objects/rcu/head.h) \\ $(wildcard include/config/hotplug/cpu.h) \\ $(wildcard include/config/prove/rcu.h) \\ $(wildcard include/config/rcu/boost.h) \\ $(wildcard include/config/arch/weak/release/acquire.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/cpumask.h \\ $(wildcard include/config/cpumask/offstack.h) \\ $(wildcard include/config/debug/per/cpu/maps.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcutree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/workqueue.h \\ $(wildcard include/config/debug/objects/work.h) \\ $(wildcard include/config/freezer.h) \\ $(wildcard include/config/sysfs.h) \\ $(wildcard include/config/wq/watchdog.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timer.h \\ $(wildcard include/config/debug/objects/timers.h) \\ $(wildcard include/config/no/hz/common.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ktime.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/time.h \\ $(wildcard include/config/arch/uses/gettimeoffset.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/time32.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/jiffies.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timex.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/timex.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/param.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/param.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/param.h \\ $(wildcard include/config/hz.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/param.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/timex.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/arch_timer.h \\ $(wildcard include/config/arm/arch/timer/ool/workaround.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/smp.h \\ $(wildcard include/config/up/late/init.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/llist.h \\ $(wildcard include/config/arch/have/nmi/safe/cmpxchg.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/smp.h \\ $(wildcard include/config/arm64/acpi/parking/protocol.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/percpu.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/percpu.h \\ $(wildcard include/config/have/setup/per/cpu/area.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu-defs.h \\ $(wildcard include/config/debug/force/weak/per/cpu.h) \\ $(wildcard include/config/virtualization.h) \\ $(wildcard include/config/amd/mem/encrypt.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/clocksource/arm_arch_timer.h \\ $(wildcard include/config/arm/arch/timer.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timecounter.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/timex.h \\ include/generated/timeconst.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timekeeping.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timekeeping32.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/debugobjects.h \\ $(wildcard include/config/debug/objects/free.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcu_segcblist.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/srcutree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcu_node_tree.h \\ $(wildcard include/config/rcu/fanout.h) \\ $(wildcard include/config/rcu/fanout/leaf.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/completion.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/topology.h \\ $(wildcard include/config/use/percpu/numa/node/id.h) \\ $(wildcard include/config/sched/smt.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu.h \\ $(wildcard include/config/need/per/cpu/embed/first/chunk.h) \\ $(wildcard include/config/need/per/cpu/page/first/chunk.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/topology.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/arch_topology.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/topology.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/overflow.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kasan.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/module.h \\ $(wildcard include/config/modules/tree/lookup.h) \\ $(wildcard include/config/livepatch.h) \\ $(wildcard include/config/module/sig.h) \\ $(wildcard include/config/kallsyms.h) \\ $(wildcard include/config/tracepoints.h) \\ $(wildcard include/config/event/tracing.h) \\ $(wildcard include/config/module/unload.h) \\ $(wildcard include/config/constructors.h) \\ $(wildcard include/config/function/error/injection.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compat_time.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/compat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched.h \\ $(wildcard include/config/virt/cpu/accounting/native.h) \\ $(wildcard include/config/sched/info.h) \\ $(wildcard include/config/schedstats.h) \\ $(wildcard include/config/fair/group/sched.h) \\ $(wildcard include/config/rt/group/sched.h) \\ $(wildcard include/config/cgroup/sched.h) \\ $(wildcard include/config/blk/dev/io/trace.h) \\ $(wildcard include/config/compat/brk.h) \\ $(wildcard include/config/cgroups.h) \\ $(wildcard include/config/blk/cgroup.h) \\ $(wildcard include/config/stackprotector.h) \\ $(wildcard include/config/arch/has/scaled/cputime.h) \\ $(wildcard include/config/virt/cpu/accounting/gen.h) \\ $(wildcard include/config/posix/timers.h) \\ $(wildcard include/config/sysvipc.h) \\ $(wildcard include/config/detect/hung/task.h) \\ $(wildcard include/config/auditsyscall.h) \\ $(wildcard include/config/rt/mutexes.h) \\ $(wildcard include/config/ubsan.h) \\ $(wildcard include/config/block.h) \\ $(wildcard include/config/task/xacct.h) \\ $(wildcard include/config/cpusets.h) \\ $(wildcard include/config/intel/rdt.h) \\ $(wildcard include/config/futex.h) \\ $(wildcard include/config/perf/events.h) \\ $(wildcard include/config/rseq.h) \\ $(wildcard include/config/task/delay/acct.h) \\ $(wildcard include/config/fault/injection.h) \\ $(wildcard include/config/latencytop.h) \\ $(wildcard include/config/function/graph/tracer.h) \\ $(wildcard include/config/kcov.h) \\ $(wildcard include/config/uprobes.h) \\ $(wildcard include/config/bcache.h) \\ $(wildcard include/config/security.h) \\ $(wildcard include/config/arch/task/struct/on/stack.h) \\ $(wildcard include/config/debug/rseq.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sched.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rculist.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ipc.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uidgid.h \\ $(wildcard include/config/multiuser.h) \\ $(wildcard include/config/user/ns.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/highuid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rhashtable-types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/ipc.h \\ arch/arm64/include/generated/uapi/asm/ipcbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/ipcbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/refcount.h \\ $(wildcard include/config/refcount/full.h) \\ arch/arm64/include/generated/uapi/asm/sembuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/sembuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/shm.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/shm.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/hugetlb_encode.h \\ arch/arm64/include/generated/uapi/asm/shmbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/shmbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/shmparam.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/shmparam.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kcov.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/kcov.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/plist.h \\ $(wildcard include/config/debug/pi/list.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/hrtimer.h \\ $(wildcard include/config/high/res/timers.h) \\ $(wildcard include/config/time/low/res.h) \\ $(wildcard include/config/timerfd.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rbtree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timerqueue.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/seccomp.h \\ $(wildcard include/config/seccomp.h) \\ $(wildcard include/config/have/arch/seccomp/filter.h) \\ $(wildcard include/config/seccomp/filter.h) \\ $(wildcard include/config/checkpoint/restore.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/seccomp.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/resource.h \\ arch/arm64/include/generated/uapi/asm/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/latencytop.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/prio.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/signal_types.h \\ $(wildcard include/config/old/sigaction.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/signal-defs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/siginfo.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/siginfo.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mm_types_task.h \\ $(wildcard include/config/arch/want/batched/unmap/tlb/flush.h) \\ $(wildcard include/config/split/ptlock/cpus.h) \\ $(wildcard include/config/arch/enable/split/pmd/ptlock.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/task_io_accounting.h \\ $(wildcard include/config/task/io/accounting.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/rseq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/task_stack.h \\ $(wildcard include/config/stack/growsup.h) \\ $(wildcard include/config/debug/stack/usage.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/magic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kmod.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/umh.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sysctl.h \\ $(wildcard include/config/sysctl.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sysctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/elf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/elf.h \\ arch/arm64/include/generated/asm/user.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/user.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/elf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/elf-em.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kobject.h \\ $(wildcard include/config/uevent/helper.h) \\ $(wildcard include/config/debug/kobject/release.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sysfs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kernfs.h \\ $(wildcard include/config/kernfs.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/idr.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/radix-tree.h \\ $(wildcard include/config/radix/tree/multiorder.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kobject_ns.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kref.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/moduleparam.h \\ $(wildcard include/config/alpha.h) \\ $(wildcard include/config/ia64.h) \\ $(wildcard include/config/ppc64.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rbtree_latch.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/error-injection.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/error-injection.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/tracepoint-defs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/static_key.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/module.h \\ $(wildcard include/config/arm64/module/plts.h) \\ $(wildcard include/config/dynamic/ftrace.h) \\ $(wildcard include/config/randomize/base.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/module.h \\ $(wildcard include/config/have/mod/arch/specific.h) \\ $(wildcard include/config/modules/use/elf/rel.h) \\ $(wildcard include/config/modules/use/elf/rela.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mtd/mtd.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uio.h \\ $(wildcard include/config/arch/has/uaccess/mcsafe.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/uio.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/device.h \\ $(wildcard include/config/debug/devres.h) \\ $(wildcard include/config/generic/msi/irq/domain.h) \\ $(wildcard include/config/pinctrl.h) \\ $(wildcard include/config/generic/msi/irq.h) \\ $(wildcard include/config/dma/cma.h) \\ $(wildcard include/config/of.h) \\ $(wildcard include/config/devtmpfs.h) \\ $(wildcard include/config/sysfs/deprecated.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ioport.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/klist.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pm.h \\ $(wildcard include/config/vt/console/sleep.h) \\ $(wildcard include/config/pm.h) \\ $(wildcard include/config/pm/clk.h) \\ $(wildcard include/config/pm/generic/domains.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ratelimit.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/device.h \\ $(wildcard include/config/iommu/api.h) \\ $(wildcard include/config/xen.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pm_wakeup.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/of.h \\ $(wildcard include/config/of/dynamic.h) \\ $(wildcard include/config/sparc.h) \\ $(wildcard include/config/of/promtree.h) \\ $(wildcard include/config/of/kobj.h) \\ $(wildcard include/config/of/numa.h) \\ $(wildcard include/config/of/resolve.h) \\ $(wildcard include/config/of/overlay.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mod_devicetable.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uuid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/uuid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/property.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/fwnode.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/mtd/mtd-abi.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mtd/map.h \\ $(wildcard include/config/mtd/map/bank/width/1.h) \\ $(wildcard include/config/mtd/map/bank/width/2.h) \\ $(wildcard include/config/mtd/map/bank/width/4.h) \\ $(wildcard include/config/mtd/map/bank/width/8.h) \\ $(wildcard include/config/mtd/map/bank/width/16.h) \\ $(wildcard include/config/mtd/map/bank/width/32.h) \\ $(wildcard include/config/mtd.h) \\ $(wildcard include/config/mtd/map/bank/width/xx.h) \\ $(wildcard include/config/mtd/complex/mappings.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/io.h \\ $(wildcard include/config/have/arch/huge/vmap.h) \\ $(wildcard include/config/has/ioport/map.h) \\ $(wildcard include/config/pci.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/io.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/proc-fns.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable-prot.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/fixmap.h \\ $(wildcard include/config/acpi/apei/ghes.h) \\ $(wildcard include/config/unmap/kernel/at/el0.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/boot.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/fixmap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mm_types.h \\ $(wildcard include/config/have/aligned/struct/page.h) \\ $(wildcard include/config/userfaultfd.h) \\ $(wildcard include/config/have/arch/compat/mmap/bases.h) \\ $(wildcard include/config/membarrier.h) \\ $(wildcard include/config/aio.h) \\ $(wildcard include/config/mmu/notifier.h) \\ $(wildcard include/config/hmm.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/auxvec.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/auxvec.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/auxvec.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uprobes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/mmu.h \\ $(wildcard include/config/harden/branch/predictor.h) \\ $(wildcard include/config/harden/el2/vectors.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/pgtable.h \\ $(wildcard include/config/have/arch/transparent/hugepage/pud.h) \\ $(wildcard include/config/have/arch/soft/dirty.h) \\ $(wildcard include/config/arch/enable/thp/migration.h) \\ $(wildcard include/config/x86/espfix64.h) \\ arch/arm64/include/generated/asm/early_ioremap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/early_ioremap.h \\ $(wildcard include/config/generic/early/ioremap.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/xen/xen.h \\ $(wildcard include/config/xen/pvh.h) \\ $(wildcard include/config/xen/dom0.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/io.h \\ $(wildcard include/config/generic/iomap.h) \\ $(wildcard include/config/virt/to/bus.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/pci_iomap.h \\ $(wildcard include/config/no/generic/pci/ioport/map.h) \\ $(wildcard include/config/generic/pci/iomap.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/logic_pio.h \\ $(wildcard include/config/indirect/pio.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/vmalloc.h \\ arch/arm64/include/generated/asm/unaligned.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/unaligned.h \\ $(wildcard include/config/have/efficient/unaligned/access.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/unaligned/access_ok.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/unaligned/generic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mtd/cfi.h \\ $(wildcard include/config/mtd/cfi/i1.h) \\ $(wildcard include/config/mtd/cfi/i2.h) \\ $(wildcard include/config/mtd/cfi/i4.h) \\ $(wildcard include/config/mtd/cfi/i8.h) \\ $(wildcard include/config/mtd/cfi/ix.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/delay.h \\ arch/arm64/include/generated/asm/delay.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/delay.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/interrupt.h \\ $(wildcard include/config/irq/forced/threading.h) \\ $(wildcard include/config/generic/irq/probe.h) \\ $(wildcard include/config/proc/fs.h) \\ $(wildcard include/config/irq/timings.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/irqreturn.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/irqnr.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/irqnr.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/hardirq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ftrace_irq.h \\ $(wildcard include/config/ftrace/nmi/enter.h) \\ $(wildcard include/config/hwlat/tracer.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/vtime.h \\ $(wildcard include/config/virt/cpu/accounting.h) \\ $(wildcard include/config/irq/time/accounting.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/context_tracking_state.h \\ $(wildcard include/config/context/tracking.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/hardirq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/irq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/irq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/irq_cpustat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mtd/flashchip.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mtd/cfi_endian.h \\ $(wildcard include/config/mtd/cfi/adv/options.h) \\ $(wildcard include/config/mtd/cfi/noswap.h) \\ $(wildcard include/config/mtd/cfi/le/byte/swap.h) \\ $(wildcard include/config/mtd/cfi/be/byte/swap.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mtd/xip.h \\ $(wildcard include/config/mtd/xip.h) \\ $(wildcard include/config/xip/kernel.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mtd/gen_probe.h \\ drivers/mtd/chips/gen_probe.o: $(deps_drivers/mtd/chips/gen_probe.o) $(deps_drivers/mtd/chips/gen_probe.o): ",16151,True,5227.325141728438,median "cmd_crypto/asymmetric_keys/x509_public_key.o := aarch64-xilinx-linux-gcc -fuse-ld=bfd -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0=/usr/src/debug/linux-xlnx/4.19-xilinx-v2019.1+git999-r0 -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot= -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/zw/share/ultra96/mipitest/build/tmp/work-shared/ultra96-zynqmp/kernel-source=/usr/src/kernel --sysroot=/home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot -Wp,-MD,crypto/asymmetric_keys/.x509_public_key.o.d -nostdinc -isystem /home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../lib/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/8.2.0/include -I/home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include -I./arch/arm64/include/generated -I/home/zw/share/ultra96/mipitest/linux-xlnx/include -I./include -I/home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi -I./arch/arm64/include/generated/uapi -I/home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi -I./include/generated/uapi -include /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kconfig.h -include /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler_types.h -I/home/zw/share/ultra96/mipitest/linux-xlnx/crypto/asymmetric_keys -Icrypto/asymmetric_keys -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -mgeneral-regs-only -DCONFIG_AS_LSE=1 -fno-asynchronous-unwind-tables -mabi=lp64 -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=/home/zw/share/ultra96/mipitest/linux-xlnx/= -Wno-packed-not-aligned -DKBUILD_BASENAME='""x509_public_key""' -DKBUILD_MODNAME='""x509_key_parser""' -c -o crypto/asymmetric_keys/x509_public_key.o /home/zw/share/ultra96/mipitest/linux-xlnx/crypto/asymmetric_keys/x509_public_key.c source_crypto/asymmetric_keys/x509_public_key.o := /home/zw/share/ultra96/mipitest/linux-xlnx/crypto/asymmetric_keys/x509_public_key.c deps_crypto/asymmetric_keys/x509_public_key.o := \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kconfig.h \\ $(wildcard include/config/cpu/big/endian.h) \\ $(wildcard include/config/booger.h) \\ $(wildcard include/config/foo.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler_types.h \\ $(wildcard include/config/have/arch/compiler/h.h) \\ $(wildcard include/config/enable/must/check.h) \\ $(wildcard include/config/arch/supports/optimized/inlining.h) \\ $(wildcard include/config/optimize/inlining.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler-gcc.h \\ $(wildcard include/config/arch/use/builtin/bswap.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/module.h \\ $(wildcard include/config/modules.h) \\ $(wildcard include/config/sysfs.h) \\ $(wildcard include/config/modules/tree/lookup.h) \\ $(wildcard include/config/livepatch.h) \\ $(wildcard include/config/unused/symbols.h) \\ $(wildcard include/config/module/sig.h) \\ $(wildcard include/config/generic/bug.h) \\ $(wildcard include/config/kallsyms.h) \\ $(wildcard include/config/smp.h) \\ $(wildcard include/config/tracepoints.h) \\ $(wildcard include/config/tracing.h) \\ $(wildcard include/config/event/tracing.h) \\ $(wildcard include/config/ftrace/mcount/record.h) \\ $(wildcard include/config/module/unload.h) \\ $(wildcard include/config/constructors.h) \\ $(wildcard include/config/function/error/injection.h) \\ $(wildcard include/config/strict/module/rwx.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/list.h \\ $(wildcard include/config/debug/list.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/types.h \\ $(wildcard include/config/have/uid16.h) \\ $(wildcard include/config/uid16.h) \\ $(wildcard include/config/lbdaf.h) \\ $(wildcard include/config/arch/dma/addr/t/64bit.h) \\ $(wildcard include/config/phys/addr/t/64bit.h) \\ $(wildcard include/config/64bit.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/types.h \\ arch/arm64/include/generated/uapi/asm/types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/int-ll64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/int-ll64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/bitsperlong.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitsperlong.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/bitsperlong.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/posix_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stddef.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/stddef.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/posix_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/posix_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/poison.h \\ $(wildcard include/config/illegal/pointer/value.h) \\ $(wildcard include/config/page/poisoning/zero.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/const.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/const.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kernel.h \\ $(wildcard include/config/preempt/voluntary.h) \\ $(wildcard include/config/debug/atomic/sleep.h) \\ $(wildcard include/config/mmu.h) \\ $(wildcard include/config/prove/locking.h) \\ $(wildcard include/config/arch/has/refcount.h) \\ $(wildcard include/config/panic/timeout.h) \\ /home/zw/share/ultra96/mipitest/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot-native/usr/lib/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/8.2.0/include/stdarg.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/linkage.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stringify.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/export.h \\ $(wildcard include/config/modversions.h) \\ $(wildcard include/config/module/rel/crcs.h) \\ $(wildcard include/config/have/arch/prel32/relocations.h) \\ $(wildcard include/config/trim/unused/ksyms.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compiler.h \\ $(wildcard include/config/trace/branch/profiling.h) \\ $(wildcard include/config/profile/all/branches.h) \\ $(wildcard include/config/stack/validation.h) \\ $(wildcard include/config/kasan.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/barrier.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/barrier.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kasan-checks.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/linkage.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bitops.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bits.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/bitops.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-__ffs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-ffs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-__fls.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/builtin-fls.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/ffz.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/fls64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/find.h \\ $(wildcard include/config/generic/find/first/bit.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/sched.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/hweight.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/arch_hweight.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/const_hweight.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/atomic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/atomic.h \\ $(wildcard include/config/generic/atomic64.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/atomic.h \\ $(wildcard include/config/arm64/lse/atomics.h) \\ $(wildcard include/config/as/lse.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/lse.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/alternative.h \\ $(wildcard include/config/arm64/uao.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cpucaps.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/insn.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/init.h \\ $(wildcard include/config/strict/kernel/rwx.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/atomic_lse.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cmpxchg.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/build_bug.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/atomic-long.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/lock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/non-atomic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/le.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/byteorder.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/byteorder/little_endian.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/byteorder/little_endian.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/swab.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/swab.h \\ arch/arm64/include/generated/uapi/asm/swab.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/swab.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/byteorder/generic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bitops/ext2-atomic-setbit.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/log2.h \\ $(wildcard include/config/arch/has/ilog2/u32.h) \\ $(wildcard include/config/arch/has/ilog2/u64.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/typecheck.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/printk.h \\ $(wildcard include/config/message/loglevel/default.h) \\ $(wildcard include/config/console/loglevel/default.h) \\ $(wildcard include/config/console/loglevel/quiet.h) \\ $(wildcard include/config/early/printk.h) \\ $(wildcard include/config/printk/nmi.h) \\ $(wildcard include/config/printk.h) \\ $(wildcard include/config/dynamic/debug.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kern_levels.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/cache.h \\ $(wildcard include/config/arch/has/cache/line/size.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/kernel.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sysinfo.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cache.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cputype.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/sysreg.h \\ $(wildcard include/config/broken/gas/inst.h) \\ $(wildcard include/config/arm64/pa/bits/52.h) \\ $(wildcard include/config/arm64/4k/pages.h) \\ $(wildcard include/config/arm64/16k/pages.h) \\ $(wildcard include/config/arm64/64k/pages.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/compiler.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/stat.h \\ $(wildcard include/config/compat.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/compat_time.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/time64.h \\ $(wildcard include/config/64bit/time.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/math64.h \\ $(wildcard include/config/arch/supports/int128.h) \\ arch/arm64/include/generated/asm/div64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/div64.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/time.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/compat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched.h \\ $(wildcard include/config/virt/cpu/accounting/native.h) \\ $(wildcard include/config/sched/info.h) \\ $(wildcard include/config/schedstats.h) \\ $(wildcard include/config/fair/group/sched.h) \\ $(wildcard include/config/rt/group/sched.h) \\ $(wildcard include/config/thread/info/in/task.h) \\ $(wildcard include/config/cgroup/sched.h) \\ $(wildcard include/config/preempt/notifiers.h) \\ $(wildcard include/config/blk/dev/io/trace.h) \\ $(wildcard include/config/preempt/rcu.h) \\ $(wildcard include/config/tasks/rcu.h) \\ $(wildcard include/config/memcg.h) \\ $(wildcard include/config/memcg/kmem.h) \\ $(wildcard include/config/compat/brk.h) \\ $(wildcard include/config/cgroups.h) \\ $(wildcard include/config/blk/cgroup.h) \\ $(wildcard include/config/stackprotector.h) \\ $(wildcard include/config/arch/has/scaled/cputime.h) \\ $(wildcard include/config/virt/cpu/accounting/gen.h) \\ $(wildcard include/config/no/hz/full.h) \\ $(wildcard include/config/posix/timers.h) \\ $(wildcard include/config/sysvipc.h) \\ $(wildcard include/config/detect/hung/task.h) \\ $(wildcard include/config/auditsyscall.h) \\ $(wildcard include/config/rt/mutexes.h) \\ $(wildcard include/config/debug/mutexes.h) \\ $(wildcard include/config/trace/irqflags.h) \\ $(wildcard include/config/lockdep.h) \\ $(wildcard include/config/ubsan.h) \\ $(wildcard include/config/block.h) \\ $(wildcard include/config/task/xacct.h) \\ $(wildcard include/config/cpusets.h) \\ $(wildcard include/config/intel/rdt.h) \\ $(wildcard include/config/futex.h) \\ $(wildcard include/config/perf/events.h) \\ $(wildcard include/config/debug/preempt.h) \\ $(wildcard include/config/numa.h) \\ $(wildcard include/config/numa/balancing.h) \\ $(wildcard include/config/rseq.h) \\ $(wildcard include/config/task/delay/acct.h) \\ $(wildcard include/config/fault/injection.h) \\ $(wildcard include/config/latencytop.h) \\ $(wildcard include/config/function/graph/tracer.h) \\ $(wildcard include/config/kcov.h) \\ $(wildcard include/config/uprobes.h) \\ $(wildcard include/config/bcache.h) \\ $(wildcard include/config/vmap/stack.h) \\ $(wildcard include/config/security.h) \\ $(wildcard include/config/arch/task/struct/on/stack.h) \\ $(wildcard include/config/preempt.h) \\ $(wildcard include/config/debug/rseq.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sched.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/current.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rculist.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcupdate.h \\ $(wildcard include/config/preempt/count.h) \\ $(wildcard include/config/rcu/stall/common.h) \\ $(wildcard include/config/rcu/nocb/cpu.h) \\ $(wildcard include/config/tree/rcu.h) \\ $(wildcard include/config/tiny/rcu.h) \\ $(wildcard include/config/debug/objects/rcu/head.h) \\ $(wildcard include/config/hotplug/cpu.h) \\ $(wildcard include/config/prove/rcu.h) \\ $(wildcard include/config/debug/lock/alloc.h) \\ $(wildcard include/config/rcu/boost.h) \\ $(wildcard include/config/arch/weak/release/acquire.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/irqflags.h \\ $(wildcard include/config/irqsoff/tracer.h) \\ $(wildcard include/config/preempt/tracer.h) \\ $(wildcard include/config/trace/irqflags/support.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/irqflags.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/ptrace.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/ptrace.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/hwcap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/hwcap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/sigcontext.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/prctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bug.h \\ $(wildcard include/config/bug/on/data/corruption.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/bug.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/asm-bug.h \\ $(wildcard include/config/debug/bugverbose.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/brk-imm.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/bug.h \\ $(wildcard include/config/bug.h) \\ $(wildcard include/config/generic/bug/relative/pointers.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/ptrace.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/preempt.h \\ $(wildcard include/config/trace/preempt/toggle.h) \\ arch/arm64/include/generated/asm/preempt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/preempt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/thread_info.h \\ $(wildcard include/config/have/arch/within/stack/frames.h) \\ $(wildcard include/config/hardened/usercopy.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/restart_block.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/thread_info.h \\ $(wildcard include/config/arm64/sw/ttbr0/pan.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/memory.h \\ $(wildcard include/config/arm64/va/bits.h) \\ $(wildcard include/config/debug/align/rodata.h) \\ $(wildcard include/config/blk/dev/initrd.h) \\ $(wildcard include/config/debug/virtual.h) \\ $(wildcard include/config/sparsemem/vmemmap.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/page-def.h \\ $(wildcard include/config/arm64/page/shift.h) \\ $(wildcard include/config/arm64/cont/shift.h) \\ arch/arm64/include/generated/asm/sizes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/sizes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sizes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mmdebug.h \\ $(wildcard include/config/debug/vm.h) \\ $(wildcard include/config/debug/vm/pgflags.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/memory_model.h \\ $(wildcard include/config/flatmem.h) \\ $(wildcard include/config/discontigmem.h) \\ $(wildcard include/config/sparsemem.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pfn.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/stack_pointer.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bottom_half.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/lockdep.h \\ $(wildcard include/config/lock/stat.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/processor.h \\ $(wildcard include/config/have/hw/breakpoint.h) \\ $(wildcard include/config/gcc/plugin/stackleak.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/string.h \\ $(wildcard include/config/binary/printf.h) \\ $(wildcard include/config/fortify/source.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/string.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/string.h \\ $(wildcard include/config/arch/has/uaccess/flushcache.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/cpufeature.h \\ $(wildcard include/config/arm64/sve.h) \\ $(wildcard include/config/arm64/ssbd.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/jump_label.h \\ $(wildcard include/config/jump/label.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/hw_breakpoint.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/virt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/sections.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/sections.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable-hwdef.h \\ $(wildcard include/config/pgtable/levels.h) \\ $(wildcard include/config/arm64/pa/bits.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/fpsimd.h \\ arch/arm64/include/generated/uapi/asm/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/errno-base.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/cpumask.h \\ $(wildcard include/config/cpumask/offstack.h) \\ $(wildcard include/config/debug/per/cpu/maps.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/threads.h \\ $(wildcard include/config/nr/cpus.h) \\ $(wildcard include/config/base/small.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bitmap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcutree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ipc.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/spinlock.h \\ $(wildcard include/config/debug/spinlock.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/spinlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/spinlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qspinlock_types.h \\ $(wildcard include/config/paravirt.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qrwlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwlock_types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/spinlock.h \\ arch/arm64/include/generated/asm/qrwlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qrwlock.h \\ arch/arm64/include/generated/asm/qspinlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/qspinlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/spinlock_api_smp.h \\ $(wildcard include/config/inline/spin/lock.h) \\ $(wildcard include/config/inline/spin/lock/bh.h) \\ $(wildcard include/config/inline/spin/lock/irq.h) \\ $(wildcard include/config/inline/spin/lock/irqsave.h) \\ $(wildcard include/config/inline/spin/trylock.h) \\ $(wildcard include/config/inline/spin/trylock/bh.h) \\ $(wildcard include/config/uninline/spin/unlock.h) \\ $(wildcard include/config/inline/spin/unlock/bh.h) \\ $(wildcard include/config/inline/spin/unlock/irq.h) \\ $(wildcard include/config/inline/spin/unlock/irqrestore.h) \\ $(wildcard include/config/generic/lockbreak.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwlock_api_smp.h \\ $(wildcard include/config/inline/read/lock.h) \\ $(wildcard include/config/inline/write/lock.h) \\ $(wildcard include/config/inline/read/lock/bh.h) \\ $(wildcard include/config/inline/write/lock/bh.h) \\ $(wildcard include/config/inline/read/lock/irq.h) \\ $(wildcard include/config/inline/write/lock/irq.h) \\ $(wildcard include/config/inline/read/lock/irqsave.h) \\ $(wildcard include/config/inline/write/lock/irqsave.h) \\ $(wildcard include/config/inline/read/trylock.h) \\ $(wildcard include/config/inline/write/trylock.h) \\ $(wildcard include/config/inline/read/unlock.h) \\ $(wildcard include/config/inline/write/unlock.h) \\ $(wildcard include/config/inline/read/unlock/bh.h) \\ $(wildcard include/config/inline/write/unlock/bh.h) \\ $(wildcard include/config/inline/read/unlock/irq.h) \\ $(wildcard include/config/inline/write/unlock/irq.h) \\ $(wildcard include/config/inline/read/unlock/irqrestore.h) \\ $(wildcard include/config/inline/write/unlock/irqrestore.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uidgid.h \\ $(wildcard include/config/multiuser.h) \\ $(wildcard include/config/user/ns.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/highuid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rhashtable-types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mutex.h \\ $(wildcard include/config/mutex/spin/on/owner.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/osq_lock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/debug_locks.h \\ $(wildcard include/config/debug/locking/api/selftests.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/workqueue.h \\ $(wildcard include/config/debug/objects/work.h) \\ $(wildcard include/config/freezer.h) \\ $(wildcard include/config/wq/watchdog.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timer.h \\ $(wildcard include/config/debug/objects/timers.h) \\ $(wildcard include/config/no/hz/common.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ktime.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/time.h \\ $(wildcard include/config/arch/uses/gettimeoffset.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/seqlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/time32.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/jiffies.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timex.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/timex.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/param.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/param.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/param.h \\ $(wildcard include/config/hz.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/param.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/timex.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/arch_timer.h \\ $(wildcard include/config/arm/arch/timer/ool/workaround.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/smp.h \\ $(wildcard include/config/up/late/init.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/errno.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/llist.h \\ $(wildcard include/config/arch/have/nmi/safe/cmpxchg.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/smp.h \\ $(wildcard include/config/arm64/acpi/parking/protocol.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/percpu.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/percpu.h \\ $(wildcard include/config/have/setup/per/cpu/area.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu-defs.h \\ $(wildcard include/config/debug/force/weak/per/cpu.h) \\ $(wildcard include/config/virtualization.h) \\ $(wildcard include/config/amd/mem/encrypt.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/clocksource/arm_arch_timer.h \\ $(wildcard include/config/arm/arch/timer.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timecounter.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/timex.h \\ include/generated/timeconst.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timekeeping.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timekeeping32.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/debugobjects.h \\ $(wildcard include/config/debug/objects.h) \\ $(wildcard include/config/debug/objects/free.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/ipc.h \\ arch/arm64/include/generated/uapi/asm/ipcbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/ipcbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/refcount.h \\ $(wildcard include/config/refcount/full.h) \\ arch/arm64/include/generated/uapi/asm/sembuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/sembuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/shm.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/page.h \\ $(wildcard include/config/have/arch/pfn/valid.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/personality.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/personality.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable-types.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/pgtable-nopud.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/pgtable-nop4d-hack.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/5level-fixup.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/getorder.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/shm.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/hugetlb_encode.h \\ arch/arm64/include/generated/uapi/asm/shmbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/shmbuf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/shmparam.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/shmparam.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kcov.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/kcov.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/plist.h \\ $(wildcard include/config/debug/pi/list.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/hrtimer.h \\ $(wildcard include/config/high/res/timers.h) \\ $(wildcard include/config/time/low/res.h) \\ $(wildcard include/config/timerfd.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rbtree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu.h \\ $(wildcard include/config/need/per/cpu/embed/first/chunk.h) \\ $(wildcard include/config/need/per/cpu/page/first/chunk.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/timerqueue.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/seccomp.h \\ $(wildcard include/config/seccomp.h) \\ $(wildcard include/config/have/arch/seccomp/filter.h) \\ $(wildcard include/config/seccomp/filter.h) \\ $(wildcard include/config/checkpoint/restore.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/seccomp.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/nodemask.h \\ $(wildcard include/config/highmem.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/numa.h \\ $(wildcard include/config/nodes/shift.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/resource.h \\ arch/arm64/include/generated/uapi/asm/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/resource.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/latencytop.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/prio.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/signal_types.h \\ $(wildcard include/config/old/sigaction.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/signal.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/signal-defs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/siginfo.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/siginfo.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mm_types_task.h \\ $(wildcard include/config/arch/want/batched/unmap/tlb/flush.h) \\ $(wildcard include/config/split/ptlock/cpus.h) \\ $(wildcard include/config/arch/enable/split/pmd/ptlock.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/task_io_accounting.h \\ $(wildcard include/config/task/io/accounting.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/rseq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/task_stack.h \\ $(wildcard include/config/stack/growsup.h) \\ $(wildcard include/config/debug/stack/usage.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/magic.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/stat.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kmod.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/umh.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/gfp.h \\ $(wildcard include/config/zone/dma.h) \\ $(wildcard include/config/zone/dma32.h) \\ $(wildcard include/config/zone/device.h) \\ $(wildcard include/config/pm/sleep.h) \\ $(wildcard include/config/memory/isolation.h) \\ $(wildcard include/config/compaction.h) \\ $(wildcard include/config/cma.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mmzone.h \\ $(wildcard include/config/force/max/zoneorder.h) \\ $(wildcard include/config/zsmalloc.h) \\ $(wildcard include/config/memory/hotplug.h) \\ $(wildcard include/config/flat/node/mem/map.h) \\ $(wildcard include/config/page/extension.h) \\ $(wildcard include/config/no/bootmem.h) \\ $(wildcard include/config/deferred/struct/page/init.h) \\ $(wildcard include/config/transparent/hugepage.h) \\ $(wildcard include/config/have/memory/present.h) \\ $(wildcard include/config/have/memoryless/nodes.h) \\ $(wildcard include/config/have/memblock/node/map.h) \\ $(wildcard include/config/need/multiple/nodes.h) \\ $(wildcard include/config/have/arch/early/pfn/to/nid.h) \\ $(wildcard include/config/sparsemem/extreme.h) \\ $(wildcard include/config/memory/hotremove.h) \\ $(wildcard include/config/holes/in/zone.h) \\ $(wildcard include/config/arch/has/holes/memorymodel.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/wait.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/wait.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/pageblock-flags.h \\ $(wildcard include/config/hugetlb/page.h) \\ $(wildcard include/config/hugetlb/page/size/variable.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/page-flags-layout.h \\ include/generated/bounds.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/sparsemem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/memory_hotplug.h \\ $(wildcard include/config/arch/has/add/pages.h) \\ $(wildcard include/config/have/arch/nodedata/extension.h) \\ $(wildcard include/config/have/bootmem/info/node.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/notifier.h \\ $(wildcard include/config/tree/srcu.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rwsem.h \\ $(wildcard include/config/rwsem/spin/on/owner.h) \\ $(wildcard include/config/rwsem/generic/spinlock.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/err.h \\ arch/arm64/include/generated/asm/rwsem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/rwsem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/srcu.h \\ $(wildcard include/config/tiny/srcu.h) \\ $(wildcard include/config/srcu.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcu_segcblist.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/srcutree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcu_node_tree.h \\ $(wildcard include/config/rcu/fanout.h) \\ $(wildcard include/config/rcu/fanout/leaf.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/completion.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/topology.h \\ $(wildcard include/config/use/percpu/numa/node/id.h) \\ $(wildcard include/config/sched/smt.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/topology.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/arch_topology.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/topology.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sysctl.h \\ $(wildcard include/config/sysctl.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/sysctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/elf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/elf.h \\ arch/arm64/include/generated/asm/user.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/user.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/elf.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/elf-em.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kobject.h \\ $(wildcard include/config/uevent/helper.h) \\ $(wildcard include/config/debug/kobject/release.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sysfs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kernfs.h \\ $(wildcard include/config/kernfs.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/idr.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/radix-tree.h \\ $(wildcard include/config/radix/tree/multiorder.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kobject_ns.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kref.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/moduleparam.h \\ $(wildcard include/config/alpha.h) \\ $(wildcard include/config/ia64.h) \\ $(wildcard include/config/ppc64.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rbtree_latch.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/error-injection.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/error-injection.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/tracepoint-defs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/static_key.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/module.h \\ $(wildcard include/config/arm64/module/plts.h) \\ $(wildcard include/config/dynamic/ftrace.h) \\ $(wildcard include/config/randomize/base.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/module.h \\ $(wildcard include/config/have/mod/arch/specific.h) \\ $(wildcard include/config/modules/use/elf/rel.h) \\ $(wildcard include/config/modules/use/elf/rela.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/slab.h \\ $(wildcard include/config/debug/slab.h) \\ $(wildcard include/config/failslab.h) \\ $(wildcard include/config/have/hardened/usercopy/allocator.h) \\ $(wildcard include/config/slab.h) \\ $(wildcard include/config/slub.h) \\ $(wildcard include/config/slob.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/overflow.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kasan.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/keys/asymmetric-subtype.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/seq_file.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/fs.h \\ $(wildcard include/config/fs/posix/acl.h) \\ $(wildcard include/config/cgroup/writeback.h) \\ $(wildcard include/config/ima.h) \\ $(wildcard include/config/fsnotify.h) \\ $(wildcard include/config/fs/encryption.h) \\ $(wildcard include/config/epoll.h) \\ $(wildcard include/config/file/locking.h) \\ $(wildcard include/config/quota.h) \\ $(wildcard include/config/fs/dax.h) \\ $(wildcard include/config/mandatory/file/locking.h) \\ $(wildcard include/config/migration.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/wait_bit.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/kdev_t.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/kdev_t.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dcache.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rculist_bl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/list_bl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/bit_spinlock.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/lockref.h \\ $(wildcard include/config/arch/use/cmpxchg/lockref.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/stringhash.h \\ $(wildcard include/config/dcache/word/access.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/hash.h \\ $(wildcard include/config/have/arch/hash.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/path.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/list_lru.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/shrinker.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/xarray.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/mm_types.h \\ $(wildcard include/config/have/aligned/struct/page.h) \\ $(wildcard include/config/userfaultfd.h) \\ $(wildcard include/config/have/arch/compat/mmap/bases.h) \\ $(wildcard include/config/membarrier.h) \\ $(wildcard include/config/aio.h) \\ $(wildcard include/config/mmu/notifier.h) \\ $(wildcard include/config/hmm.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/auxvec.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/auxvec.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/auxvec.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uprobes.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/mmu.h \\ $(wildcard include/config/unmap/kernel/at/el0.h) \\ $(wildcard include/config/harden/branch/predictor.h) \\ $(wildcard include/config/harden/el2/vectors.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/capability.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/capability.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/semaphore.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/uapi/asm/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/fcntl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/fiemap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/migrate_mode.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu-rwsem.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcuwait.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/rcu_sync.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/delayed_call.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uuid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/uuid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/errseq.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ioprio.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/rt.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/iocontext.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/fs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/limits.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/ioctl.h \\ arch/arm64/include/generated/uapi/asm/ioctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/ioctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/asm-generic/ioctl.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/quota.h \\ $(wildcard include/config/quota/netlink/interface.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/percpu_counter.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/dqblk_xfs.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dqblk_v1.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dqblk_v2.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/dqblk_qtree.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/projid.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/uapi/linux/quota.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/nfs_fs_i.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/cred.h \\ $(wildcard include/config/debug/credentials.h) \\ $(wildcard include/config/keys.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/key.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/assoc_array.h \\ $(wildcard include/config/associative/array.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/selinux.h \\ $(wildcard include/config/security/selinux.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/sched/user.h \\ $(wildcard include/config/fanotify.h) \\ $(wildcard include/config/posix/mqueue.h) \\ $(wildcard include/config/bpf/syscall.h) \\ $(wildcard include/config/net.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/ratelimit.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/keys/asymmetric-type.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/key-type.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/verification.h \\ $(wildcard include/config/system/data/verification.h) \\ $(wildcard include/config/signed/pe/file/verification.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/keys/asymmetric-parser.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/keys/system_keyring.h \\ $(wildcard include/config/system/trusted/keyring.h) \\ $(wildcard include/config/secondary/trusted/keyring.h) \\ $(wildcard include/config/system/blacklist/keyring.h) \\ $(wildcard include/config/ima/blacklist/keyring.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/crypto/hash.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/crypto.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/linux/uaccess.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/uaccess.h \\ $(wildcard include/config/arm64/pan.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/kernel-pgtable.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/proc-fns.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/pgtable-prot.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/fixmap.h \\ $(wildcard include/config/acpi/apei/ghes.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/boot.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/fixmap.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/asm-generic/pgtable.h \\ $(wildcard include/config/have/arch/transparent/hugepage/pud.h) \\ $(wildcard include/config/have/arch/soft/dirty.h) \\ $(wildcard include/config/arch/enable/thp/migration.h) \\ $(wildcard include/config/have/arch/huge/vmap.h) \\ $(wildcard include/config/x86/espfix64.h) \\ /home/zw/share/ultra96/mipitest/linux-xlnx/arch/arm64/include/asm/extable.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/crypto/asymmetric_keys/asymmetric_keys.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/crypto/asymmetric_keys/x509_parser.h \\ /home/zw/share/ultra96/mipitest/linux-xlnx/include/crypto/public_key.h \\ crypto/asymmetric_keys/x509_public_key.o: $(deps_crypto/asymmetric_keys/x509_public_key.o) $(deps_crypto/asymmetric_keys/x509_public_key.o): ",16167,True,5228.142985567088,median "#include #include //The function: Adafruit_DotStar(NUMPIXELS, DATAPIN, CLOCKPIN, DOTSTAR_BRG); //use internal data and clock definitions (INTERNAL_DS_DATA, INTERNAL_DS_CLK) Adafruit_DotStar pixel = Adafruit_DotStar(1, INTERNAL_DS_DATA, INTERNAL_DS_CLK, DOTSTAR_BGR); unsigned long milli = 0UL; unsigned long lastMillis; const int loopLength = 1024; int currentLoc; int currentStep; int currentVal; int color; int targetSpeed = 1000; // length of the cycle, so bigger number is slower float randomAmount; //Potentiometer Top Right Rate Random A0 /* Creating the object for reading the value from a potentiometer. */ AnalogIn potentiometerA0(A0, BIT8); //Potentiometer Top Left Depth Random A1 /* Creating the object for reading the value from a potentiometer. */ AnalogIn potentiometerA1(A1, BIT8); //Potentiometer Bottom Right Rate A2 /* Creating the object for reading the value from a potentiometer. */ AnalogIn potentiometerA2(A2, BIT8); unsigned short valuePotentiometerA0 = 0; unsigned short valuePotentiometerA1 = 0; unsigned short valuePotentiometerA2 = 0; PROGMEM const int sine256[] = { 127,130,133,136,139,143,146,149,152,155,158,161,164,167,170,173,176,178,181,184,187,190,192,195,198,200,203,205,208,210,212,215,217,219,221,223,225,227,229,231,233,234,236,238,239,240, 242,243,244,245,247,248,249,249,250,251,252,252,253,253,253,254,254,254,254,254,254,254,253,253,253,252,252,251,250,249,249,248,247,245,244,243,242,240,239,238,236,234,233,231,229,227,225,223, 221,219,217,215,212,210,208,205,203,200,198,195,192,190,187,184,181,178,176,173,170,167,164,161,158,155,152,149,146,143,139,136,133,130,127,124,121,118,115,111,108,105,102,99,96,93,90,87,84,81,78, 76,73,70,67,64,62,59,56,54,51,49,46,44,42,39,37,35,33,31,29,27,25,23,21,20,18,16,15,14,12,11,10,9,7,6,5,5,4,3,2,2,1,1,1,0,0,0,0,0,0,0,1,1,1,2,2,3,4,5,5,6,7,9,10,11,12,14,15,16,18,20,21,23,25,27,29,31, 33,35,37,39,42,44,46,49,51,54,56,59,62,64,67,70,73,76,78,81,84,87,90,93,96,99,102,105,108,111,115,118,121,124 }; PROGMEM const int sine1024[] = { 128,128,129,130,131,131,132,133, 134,135,135,136,137,138,138,139,140,141,142,142,143,144,145,145,146,147,148,149,149,150,151,152,152,153,154,155,155,156,157,158,159,159,160,161,162,162,163,164,165,165,166,167,168,168,169,170,170,171,172,173,173,174,175,176,176,177,178,178,179,180,181,181,182,183,183,184,185,186,186,187,188,188,189,190,190,191,192,192, 193,194,194,195,196,196,197,198,198,199,200,200,201,202,202,203,204,204,205,205,206,207,207,208,208,209,210,210,211,211,212,213,213,214,214,215,215,216,217,217,218,218,219,219,220,220,221,222,222,223,223,224,224,225,225,226,226,227,227,228,228,229,229,230,230,230,231,231,232,232,233,233,234,234,234,235,235,236,236,237,237,237,238,238,239,239,239,240,240,240,241,241,241,242,242,242,243,243,243,244,244,244,245,245,245,246,246,246,247,247,247,247,248,248,248,248,249,249,249,249,250,250,250,250,250,251,251,251,251,251,252,252,252,252,252,252,253,253,253,253,253,253,253,254,254,254,254,254,254,254,254,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,254,254,254,254,254,254,254,253,253,253,253,253,253,253,253,252,252,252,252,252,251,251,251,251,251,251,250,250,250,250,249,249,249,249,248,248,248,248, 247,247,247,247,246,246,246,245,245,245,245,244,244,244,243,243,243,242,242,242,241,241,241,240,240,239,239,239,238,238,238,237,237,236,236,235,235,235,234,234,233,233,232,232,232,231,231,230,230,229,229,228,228,227,227,226,226,225,225,224,224,223,223,222,222,221,221,220,220,219,219,218, 217,217,216,216,215,215,214,213,213,212,212,211,211,210,209,209,208,208,207,206,206,205,204,204,203,203,202,201,201,200,199,199,198,197,197,196,195,195,194,193,193,192,191,191,190,189,189,188,187,187,186,185,185,184,183,182,182,181,180,180,179,178,177,177,176,175,175,174,173,172,172,171,170,169,169,168,167,166,166,165, 164,163,163,162,161,160,160,159,158,157,157,156,155,154,154,153,152,151,150,150,149,148,147,147,146,145,144,144,143,142,141,140,140,139,138,137,136,136,135,134,133,133,132,131,130,129,129,128,127,126,126,125,124,123,122,122,121,120,119,119,118,117,116,115,115,114,113,112,111,111,110,109,108,108,107,106,105,105,104,103,102,101,101,100,99,98,98,97, 96,95,95,94,93,92,92,91,90,89,89,88,87,86,86,85,84,83,83,82,81,80,80,79,78,78,77,76,75,75,74,73,73,72,71,70,70,69,68,68,67,66,66,65,64,64,63,62,62,61,60,60,59,58,58,57,56,56,55,54,54,53,52,52, 51,51,50,49,49,48,47,47,46,46,45,44,44,43,43,42,42,41,40,40,39,39,38,38,37,36,36,35,35,34,34,33,33,32,32,31,31,30,30,29,29,28,28,27,27,26,26,25,25,24,24,23,23,23,22,22,21,21,20,20,20,19,19,18,18,17,17,17,16,16,16,15,15,14,14,14,13,13,13,12,12,12,11,11,11,10,10,10,10,9,9,9,8,8,8,8,7,7,7,7,6,6,6,6,5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,10,10,10,11,11,11,12,12,12,13,13,13,14,14,14,15,15,15,16,16,16,17,17,18,18,18,19,19,20,20,21,21,21,22,22,23,23,24,24,25,25,25,26,26,27,27,28,28,29,29,30,30,31,31,32,32,33,33,34,35,35,36,36,37,37,38,38,39,40,40,41,41,42,42,43,44,44,45,45,46,47,47,48,48,49,50,50,51,51,52,53,53,54,55,55,56,57,57,58,59,59,60,61,61,62,63,63,64,65,65,66,67,67,68,69,69,70,71,72,72,73,74,74,75,76,77,77,78,79,79,80,81,82,82,83,84,85,85,86,87,87,88,89,90,90,91,92,93,93,94,95,96,96,97,98,99,100,100,101,102,103,103,104,105,106,106,107,108,109,110,110,111,112,113,113,114,115,116,117,117,118,119,120,120,121,122,123,124,124,125,126,127,128 }; PROGMEM const int sine2056[] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2, 2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,10,10,10,10,10,10,11,11,11,11,11,11,11,12,12,12,12,12,12,13,13,13,13,13,14,14,14,14,14,14, 15,15,15,15,15,15,16,16,16,16,16,17,17,17,17,17,18,18,18,18,18,19,19,19,19,19,20,20,20,20,20,21,21,21,21,22,22,22,22,22,23,23,23,23,24,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,37,37,37,37, 38,38,38,38,39,39,39,40,40,40,40,41,41,41,42,42,42,42,43,43,43,44,44,44,44,45,45,45,46,46,46,47,47,47,47,48,48,48,49,49,49,50,50,50,51,51,51,51,52,52,52,53,53,53,54,54,54,55,55,55,56,56,56,57,57,57,58,58,58,59,59,59,60,60,60,61,61,61,62,62,62,63,63,63,64,64,64,65,65,65,66,66,66,67,67,67,68,68,68,69, 69,69,70,70,70,71,71,71,72,72,72,73,73,74,74,74,75,75,75,76,76,76,77,77,77,78,78,79,79,79,80,80,80,81,81,81,82,82,83,83,83,84,84,84,85,85,85,86,86,87,87,87,88,88,88,89,89,90,90,90,91,91,91,92,92,92,93,93,94,94,94,95,95,96,96,96,97,97,97,98,98,99,99,99,100,100,100,101,101,102,102,102,103,103,103,104,104,105,105,105, 106,106,107,107,107,108,108,108,109,109,110,110,110,111,111,112,112,112,113,113,114,114,114,115,115,115,116,116,117,117,117,118,118,119,119,119,120,120,120,121,121,122,122,122,123,123,124,124,124,125,125,126,126,126,127,127,128,128,128,128,129,129,129,130,130,131,131,131,132,132,133,133,133,134,134,135,135,135,136,136,136,137,137,138,138,138,139,139,140,140,140,141,141,141,142,142,143,143,143,144,144,145,145,145,146,146,147,147,147,148,148,148,149,149,150,150,150,151,151,152,152,152,153,153,153,154,154,155,155,155,156,156,156,157,157,158,158,158,159,159,159,160,160,161,161,161,162,162,163,163,163,164,164,164,165,165,165, 166,166,167,167,167,168,168,168,169,169,170,170,170,171,171,171,172,172,172,173,173,174,174,174,175,175,175,176,176,176,177,177,178,178,178,179,179,179,180,180,180,181,181,181,182,182,183,183,183,184,184,184,185,185,185,186,186,186,187,187,187,188,188,188,189,189,189,190,190,190,191,191,191,192,192,192,193,193,193,194,194,194,195,195,195,196,196,196,197,197,197,198,198,198,199,199,199,200,200,200, 201,201,201,202,202,202,203,203,203,204,204,204,204,205,205,205,206,206,206,207,207,207,208,208,208,208,209,209,209,210,210,210,211,211,211,211,212,212,212,213,213,213,213,214,214,214,215,215,215,215,216,216,216,217,217,217,217,218,218,218,218,219,219,219,220,220,220,220,221,221,221,221,222,222,222,222,223,223,223,224,224,224,224,225,225,225,225,226,226,226,226,227,227,227,227,227,228,228,228,228, 229,229,229,229,230,230,230,230,231,231,231,231,231,232,232,232,232,233,233,233,233,233,234,234,234,234,235,235,235,235,235,236,236,236,236,236,237,237,237,237,237,238,238,238,238,238,239,239,239,239,239,240,240,240,240,240,240,241,241,241,241,241,241,242,242,242,242,242,243,243,243,243,243,243,244,244,244,244,244,244,244,245,245,245,245,245,245,246,246,246,246,246,246,246,247,247,247,247,247,247, 247,247,248,248,248,248,248,248,248,248,249,249,249,249,249,249,249,249,250,250,250,250,250,250,250,250,250,251,251,251,251,251,251,251,251,251,251,251,252,252,252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253,253,253,253,253,253,253,253,253,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,253,253,253,253,253,253,253,253,253,253,253,253,253,253,252,252,252,252,252,252,252,252,252,252,252,252,251,251,251,251,251,251,251,251,251, 251,251,250,250,250,250,250,250,250,250,250,249,249,249,249,249,249,249,249,248,248,248,248,248,248,248,248,247,247,247,247,247,247,247,247,246,246,246,246,246,246,246,245,245,245,245,245,245,244,244,244,244,244,244,244,243,243,243,243,243,243,242,242,242,242,242,241,241,241,241,241,241,240,240,240,240,240,240,239,239,239,239,239,238,238,238,238,238,237,237,237,237,237,236,236,236,236,236,235,235, 235,235,235,234,234,234,234,233,233,233,233,233,232,232,232,232,231,231,231,231,231,230,230,230,230,229,229,229,229,228,228,228,228,227,227,227,227,227,226,226,226,226,225,225,225,225,224,224,224,224,223,223,223,222,222,222,222,221,221,221,221,220,220,220,220,219,219,219,218,218,218,218,217,217,217,217,216,216,216,215,215,215,215,214,214,214,213,213,213,213,212,212,212,211,211,211,211,210,210,210, 209,209,209,208,208,208,208,207,207,207,206,206,206,205,205,205,204,204,204,204,203,203,203,202,202,202,201,201,201,200,200,200,199,199,199,198,198,198,197,197,197,196,196,196,195,195,195,194,194,194,193,193,193,192,192,192,191,191,191,190,190,190,189,189,189,188,188,188,187,187,187,186,186,186,185,185,185,184,184,184,183,183,183,182,182,181,181,181,180,180,180,179,179,179,178,178,178,177,177,176, 176,176,175,175,175,174,174,174,173,173,172,172,172,171,171,171,170,170,170,169,169,168,168,168,167,167,167,166,166,165,165,165,164,164,164,163,163,163,162,162,161,161,161,160,160,159,159,159,158,158,158,157,157,156,156,156,155,155,155,154,154,153,153,153,152,152,152,151,151,150,150,150,149,149,148,148,148,147,147,147,146,146,145,145,145,144,144,143,143,143,142,142,141,141,141,140,140,140,139,139, 138,138,138,137,137,136,136,136,135,135,135,134,134,133,133,133,132,132,131,131,131,130,130,129,129,129,128,128,128,127,127,126,126,126,125,125,124,124,124,123,123,122,122,122,121,121,120,120,120,119,119,119,118,118,117,117,117,116,116,115,115,115,114,114,114,113,113,112,112,112,111,111,110,110,110,109,109,108,108,108,107,107,107,106,106,105,105,105,104,104,103,103,103,102,102,102,101,101,100,100, 100,99,99,99,98,98,97,97,97,96,96,96,95,95,94,94,94,93,93,92,92,92,91,91,91,90,90,90,89,89,88,88,88,87,87,87,86,86,85,85,85,84,84,84,83,83,83,82,82,81,81,81,80,80,80,79,79,79,78,78,77,77,77,76,76,76,75,75,75,74,74,74,73,73,72,72,72,71,71,71,70,70,70,69,69,69,68,68,68,67,67,67,66,66,66,65,65,65,64,64, 64,63,63,63,62,62,62,61,61,61,60,60,60,59,59,59,58,58,58,57,57,57,56,56,56,55,55,55,54,54,54,53,53,53,52,52,52,51,51,51,51,50,50,50,49,49,49,48,48,48,47,47,47,47,46,46,46,45,45,45,44,44,44,44,43,43,43,42,42,42,42,41,41,41,40,40,40,40,39,39,39,38,38,38,38,37,37,37,37,36,36,36,35,35,35,35,34,34,34,34, 33,33,33,33,32,32,32,31,31,31,31,30,30,30,30,29,29,29,29,28,28,28,28,28,27,27,27,27,26,26,26,26,25,25,25,25,24,24,24,24,24,23,23,23,23,22,22,22,22,22,21,21,21,21,20,20,20,20,20,19,19,19,19,19,18,18,18,18,18,17,17,17,17,17,16,16,16,16,16,15,15,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,12,12,12,12, 12,12,11,11,11,11,11,11,11,10,10,10,10,10,10,9,9,9,9,9,9,9,8,8,8,8,8,8,8,8,7,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }; const int randomDensity = 8; int randomCore[randomDensity]; int random1024[loopLength]; int sum1024[loopLength]; void setup() { pixel.begin(); setRandoms(); color = random(3); } void setRandoms() { for (int j = 0; j < randomDensity; j++) { randomCore[j] = (random(512)-256); // fill a random array of size=randomDensity //Serial.println(randomCore[j]); for (int i = 0; i < (loopLength/randomDensity); i++) { random1024[i+((loopLength/randomDensity)*j)] = randomCore[j]; // apply those randomDensity values evenly and sequentially into an array of 1024 values } } } void loop() { //Potentiometer Top Right Rate Random A0 valuePotentiometerA0 = potentiometerA0.read(); //Serial.println(""potentiometerA0: ""); //Serial.println(valuePotentiometerA0); //Potentiometer Top Left Depth Random A1 valuePotentiometerA1 = potentiometerA1.read(); //Serial.println(""potentiometerA1: ""); //Serial.println(valuePotentiometerA1); //Potentiometer Bottom Right Rate A2 valuePotentiometerA2 = potentiometerA2.read(); //Serial.println(""potentiometerA2: ""); //Serial.println(valuePotentiometerA2); randomAmount = .3; for (int i = 0; i < loopLength; i++) { int randomDepth = int(random1024[i] * randomAmount); // sum1024[i] = int(sine1024[i]+((random1024[i]-128)*randomMultiplier)); sum1024[i] = constrain(sine1024[i]+randomDepth, 0, 255); } milli = millis(); currentLoc = milli%targetSpeed; if (millis() - lastMillis >= targetSpeed) { lastMillis = millis(); //get ready for the next iteration setRandoms(); //Serial.println(""re-random""); } currentStep = int(map(currentLoc,0,targetSpeed,0,loopLength)); currentVal = sum1024[currentStep]; //Serial.println(currentVal); if (color==0) { pixel.setPixelColor(0, currentVal, 0, 0); } if (color==1) { pixel.setPixelColor(0, 0, currentVal, 0); } if (color==2) { pixel.setPixelColor(0, 0, 0, currentVal); } pixel.show(); // pixel.setPixelColor(pixel number, R, G, B); // pixel.setPixelColor(0, 64, 0, 0); pixel.show(); delay(1000); //red brightness value 0-255 } ",12526,True,4131.1409928012245,median "@rem = ' @goto endofperl '; # # Launching script from AT scheduler. # #at 23:37 /interactive /every:M,T,W,Th,F,S,Su cmd /c ""c:\\perl\\bin\\perl.exe c:\\test.pl"" # use Getopt::Long; use Time::Local; use Win32::EventLog; ### use Win32::API; use Win32; use Win32::PerfLib; use Win32::Registry; # use Text::Wrap qw(wrap $columns $huge); $columns = 80; $huge = 'wrap'; $initial_tab = """"; $subsequent_tab = """"; @REG_DT_NAME = ( ""REG_NONE"", # No value type ""REG_SZ"", # Unicode nul terminated string ""REG_EXPAND_SZ"", # Unicode nul terminated string # (with environment variable references) ""REG_BINARY"", # Free form binary ""REG_DWORD"", # 32-bit number ""REG_DWORD_BIG_ENDIAN"", # 32-bit number ""REG_LINK"", # Symbolic Link (unicode) ""REG_MULTI_SZ"", # Multiple Unicode strings ""REG_RESOURCE_LIST"", # Resource list in the resource map ""REG_FULL_RESOURCE_DESCRIPTOR"", # Resource list in the hardware description ""REG_RESOURCE_REQUIREMENTS_LIST"", ""REG_QWORD"" # 64-bit number ); # # The following table maps the FRS event code to the Symbolic Name # %FRS_EL_TABLE = ( 13500 => ""FRS_ERROR"", 13501 => ""STARTING"", 13502 => ""STOPPING"", 13503 => ""STOPPED"", 13504 => ""STOPPED_FORCE"", 13505 => ""STOPPED_ASSERT"", 13506 => ""ASSERT"", 13507 => ""VOLUME_NOT_SUPPORTED"", 13508 => ""LONG_JOIN"", 13509 => ""LONG_JOIN_DONE"", 13510 => ""CANNOT_COMMUNICATE"", 13511 => ""DATABASE_SPACE"", 13512 => ""DISK_WRITE_CACHE_ENABLED"", 13513 => ""JET_1414"", 13514 => ""SYSVOL_NOT_READY"", 13515 => ""SYSVOL_NOT_READY_PRIMARY"", 13516 => ""SYSVOL_READY"", 13517 => ""ACCESS_CHECKS_DISABLED"", 13518 => ""ACCESS_CHECKS_FAILED_USER"", 13519 => ""ACCESS_CHECKS_FAILED_UNKNOWN"", 13520 => ""MOVED_PREEXISTING"", 13521 => ""CANNOT_START_BACKUP_RESTORE_IN_PROGRESS"", 13522 => ""STAGING_AREA_FULL"", 13523 => ""HUGE_FILE"", 13524 => ""CANNOT_CREATE_UUID"", 13525 => ""NO_DNS_ATTRIBUTE"", 13526 => ""NO_SID"", 13527 => ""NTFRSPRF_OPEN_RPC_BINDING_ERROR_SET"", 13528 => ""NTFRSPRF_OPEN_RPC_BINDING_ERROR_CONN"", 13529 => ""NTFRSPRF_OPEN_RPC_CALL_ERROR_SET"", 13530 => ""NTFRSPRF_OPEN_RPC_CALL_ERROR_CONN"", 13531 => ""NTFRSPRF_COLLECT_RPC_BINDING_ERROR_SET"", 13532 => ""NTFRSPRF_COLLECT_RPC_BINDING_ERROR_CONN"", 13533 => ""NTFRSPRF_COLLECT_RPC_CALL_ERROR_SET"", 13534 => ""NTFRSPRF_COLLECT_RPC_CALL_ERROR_CONN"", 13535 => ""NTFRSPRF_VIRTUALALLOC_ERROR_SET"", 13536 => ""NTFRSPRF_VIRTUALALLOC_ERROR_CONN"", 13537 => ""NTFRSPRF_REGISTRY_ERROR_SET"", 13538 => ""NTFRSPRF_REGISTRY_ERROR_CONN"", 13539 => ""ROOT_NOT_VALID"", 13540 => ""STAGE_NOT_VALID"", 13541 => ""OVERLAPS_LOGGING"", 13542 => ""OVERLAPS_WORKING"", 13543 => ""OVERLAPS_STAGE"", 13544 => ""OVERLAPS_ROOT"", 13545 => ""OVERLAPS_OTHER_STAGE"", 13546 => ""PREPARE_ROOT_FAILED"", 13547 => ""BAD_REG_DATA"", 13548 => ""JOIN_FAIL_TIME_SKEW"", 13549 => ""RMTCO_TIME_SKEW"", 13550 => ""CANT_OPEN_STAGE"", 13551 => ""CANT_OPEN_PREINSTALL"", 13552 => ""REPLICA_SET_CREATE_FAIL"", 13553 => ""REPLICA_SET_CREATE_OK"", 13554 => ""REPLICA_SET_CXTIONS"", 13555 => ""IN_ERROR_STATE"", 13556 => ""REPLICA_NO_ROOT_CHANGE"", 13557 => ""DUPLICATE_IN_CXTION_SYSVOL"", 13558 => ""DUPLICATE_IN_CXTION"", 13559 => ""ROOT_HAS_MOVED"", 13560 => ""ERROR_REPLICA_SET_DELETED"", 13561 => ""REPLICA_IN_JRNL_WRAP_ERROR"", 13562 => ""DS_POLL_ERROR_SUMMARY"", 13563 => ""FRS_STAGE_HAS_CHANGED"", 13564 => ""FRS_LOG_SPACE"" ); # # The following table maps the perfmon counter types to a printable name # %PERFMON_TYPE_TABLE = ( PERF_COUNTER_COUNTER => ""CNTR"", PERF_COUNTER_TIMER => ""TIMER"", PERF_COUNTER_QUEUELEN_TYPE => ""QLEN_TYPE"", PERF_COUNTER_LARGE_QUEUELEN_TYPE => ""LARGE_QLEN"", PERF_COUNTER_100NS_QUEUELEN_TYPE => ""100NS_QLEN"", PERF_COUNTER_OBJ_TIME_QUEUELEN_TYPE => ""OBJ_TIME_QLEN"", PERF_COUNTER_BULK_COUNT => ""BULK_CNT"", PERF_COUNTER_TEXT => ""TEXT"", PERF_COUNTER_RAWCOUNT => ""RAWCOUNT"", PERF_COUNTER_LARGE_RAWCOUNT => ""LARGE_RAWCNT"", PERF_COUNTER_RAWCOUNT_HEX => ""RAWCOUNTX"", PERF_COUNTER_LARGE_RAWCOUNT_HEX => ""LARGE_RAWCNTX"", PERF_SAMPLE_FRACTION => ""SAMPLE_FRAC"", PERF_SAMPLE_COUNTER => ""SAMPLE_CNTR"", PERF_COUNTER_NODATA => ""CNTR_NODATA"", PERF_COUNTER_TIMER_INV => ""CNTR_TIMER_INV"", PERF_SAMPLE_BASE => ""SAMPLE_BASE"", PERF_AVERAGE_TIMER => ""AVG_TIMER"", PERF_AVERAGE_BASE => ""AVG_BASE"", PERF_AVERAGE_BULK => ""AVG_BULK"", PERF_OBJ_TIME_TIMER => ""OBJ_TIME_TIM"", PERF_100NSEC_TIMER => ""100NS_TIMER"", PERF_100NSEC_TIMER_INV => ""100NS_TIMER_INV"", PERF_COUNTER_MULTI_TIMER => ""CNTR_MULTI_TIM"", PERF_COUNTER_MULTI_TIMER_INV => ""CNTR_MULTI_TIM_INV"", PERF_COUNTER_MULTI_BASE => ""CNTR_MULTI_BASE"", PERF_100NSEC_MULTI_TIMER => ""100NS_MULTI_TIM"", PERF_100NSEC_MULTI_TIMER_INV => ""100NS_MULTI_TIM_INV"", PERF_RAW_FRACTION => ""RAW_FRACTION"", PERF_LARGE_RAW_FRACTION => ""LARGE_RAW_FRAC"", PERF_RAW_BASE => ""RAW_BASE"", PERF_LARGE_RAW_BASE => ""LARGE_RAW_BASE"", PERF_ELAPSED_TIME => ""ELAPSED_TIME"", PERF_COUNTER_HISTOGRAM_TYPE => ""CNTR_HISTO_TYPE"", PERF_COUNTER_DELTA => ""CNTR_DELTA"", PERF_COUNTER_LARGE_DELTA => ""CNTR_LARGE_DELTA"", PERF_PRECISION_SYSTEM_TIMER => ""PREC_SYSTEM_TIM"", PERF_PRECISION_100NS_TIMER => ""PREC_100NS_TIM"", PERF_PRECISION_OBJECT_TIMER => ""PREC_OBJECT_TIM"", PERF_PRECISION_TIMESTAMP => ""PREC_TIMESTAMP"", ); # Success=0x0 :STATUS_SEVERITY_SUCCESS # Informational=0x1 :STATUS_SEVERITY_INFORMATIONAL # Warning=0x2 :STATUS_SEVERITY_WARNING # Error=0x3 :STATUS_SEVERITY_ERROR @EventSev = qw(Success Info Warning Error); $elogname{""frs""} = ""ntfrs""; $elogname{""sys""} = ""System""; $elogname{""app""} = ""Application""; $elogname{""sec""} = ""Security""; $elogname{""dns""} = ""DNS Server""; $elogname{""ds""} = ""Directory Service""; $USAGE = "" Usage: $0 EventLogType [-computer=ComputerName | -file=eventlogfile] [-numrec=n] [-after=date] [-timezone=n] Print the most recent n eventlog records from ComputerName or EventLogFile. If -after is supplied print only those records after the given date. EventLogType can be one of (abbrev): ntfrs (frs) System (sys) Application (app) Security (sec) \\""DNS Server\\"" (dns) \\""Directory Service\\"" (ds) ComputerName : name of computer to access on-line eventlog, default=local computer EventLogFile : name of file containing saved event log. (overrides Computer option) NumRec : Number of event log records to read, default=200. After : Print records after the given date in the format, \\""Jan 1,2000\\"". TimeZone : The time zone offset in seconds to apply to the eventlog record times. : zero is GMT. default is to use local timezone. ""; $argcomputer = $ENV{ComputerName}; $argelfile = """"; $argnumrec = 200; $argafter=""jan 1,1990""; $argtimezone = 1000000; &GetOptions(""computer=s"" => \\$argcomputer, ""file=s"" => \\$argelfile, ""timezone=i"" => \\$argtimezone, ""after=s"" => \\$argafter, ""numrec=s"" => \\$argnumrec); die $USAGE unless @ARGV; if ($HKEY_LOCAL_MACHINE->Open(""system\\\\currentcontrolset\\\\services\\\\NtFrs"", $regkey)) { if ($regkey->QueryKey($myclass, $numkeys, $numvalues)) { print ""\\nntfrs keyname contains $numkeys subkeys and $numvalues values\\n\\n""; } ProcessKey($regkey, 4); $regkey->Close(); print ""\\n""; } goto EVENT_LOG; ### #### DWORD WINAPI GetTempPathA( DWORD nBufferLength, LPSTR lpBuffer ); ### #### I: value is an integer #### N: value is a number (long) #### P: value is a pointer (to a string, structure, etc...) ### ### ###$GetTempPath = new Win32::API(""kernel32"", ""GetTempPath"", [N, P], N); ###$lpBuffer = "" "" x 80; ### ###$return = $GetTempPath->Call(80, $lpBuffer); ###$TempPath1 = substr($lpBuffer, 0, $return); # ignore left over bytes in buffer. ###$TempPath2 = (split(/\\0/, $lpBuffer))[0]; ### ###print ""$TempPath1 \\n""; ###print ""$TempPath2 \\n""; ### # Routines available in core: printf ""%s\\n"", Win32::FormatMessage(Win32::GetLastError()); printf ""%s\\n"", Win32::LoginName(); printf ""%s\\n"", Win32::NodeName(); printf ""%s\\n"", Win32::DomainName(); printf ""%s\\n"", Win32::FsType(); printf ""%s\\n"", Win32::GetCwd(); ($osstring, $osmajor, $osminor, $osbuild, $osid) = Win32::GetOSVersion(); @os = qw(Win32s, Win95, WinNT); print ""$os[$osid] $osmajor\\.$osminor $osstring (Build $osbuild)\\n"" ; # Win32::Spawn COMMAND, ARGS, PID printf ""%s\\n"", Win32::GetTickCount(); printf ""%s\\n"", Win32::IsWinNT(); printf ""%s %s\\n"", $ENV{PROCESSOR_ARCHITECTURE}; print ""perl version - $Win32::VERSION \\n""; # # # Perfmon calls. # my $server = ""sudarctest1""; Win32::PerfLib::GetCounterNames($server, \\%counter); %r_counter = map { $counter{$_} => $_ } keys %counter; # retrieve the id for process object #$process_obj = $r_counter{Process}; # retrieve the id for the process ID counter #$process_id = $r_counter{'ID Process'}; $process_obj = $r_counter{Process}; $process_id = $r_counter{'ID Process'}; $process_handles = $r_counter{'Handle Count'}; $process_pctproc = $r_counter{'% Processor Time'}; $process_pctuser = $r_counter{'% User Time'}; $process_pctpriv = $r_counter{'% Privileged Time'}; $process_thrdcnt = $r_counter{'Thread Count'}; $process_virtmem = $r_counter{'Virtual Bytes'}; $disk_obj = $r_counter{PhysicalDisk}; $disk_rdpersec = $r_counter{'Disk Reads/sec'}; # create connection to $server $perflib = new Win32::PerfLib($server); $proc_ref = {}; $phys_disk_ref = {}; # get the performance data for the process object $perflib->GetObjectList($process_obj, $proc_ref); $perflib->GetObjectList($disk_obj, $phys_disk_ref); $processor_ref = {}; $perflib->GetObjectList($r_counter{Processor}, $processor_ref); # $system_ref = {}; $perflib->GetObjectList($r_counter{System}, $system_ref); # #$tcp_ref = {}; #$perflib->GetObjectList($r_counter{TCP}, $tcp_ref); # $net_ref = {}; $perflib->GetObjectList($r_counter{'Network Interface'}, $net_ref); # $memory_ref = {}; $perflib->GetObjectList($r_counter{'Memory'}, $memory_ref); # $logical_disk_ref = {}; $perflib->GetObjectList($r_counter{'LogicalDisk'}, $logical_disk_ref); # $frs_conn_ref = {}; $perflib->GetObjectList($r_counter{'FileReplicaConn'}, $frs_conn_ref); # $frs_set_ref = {}; $perflib->GetObjectList($r_counter{'FileReplicaSet'}, $frs_set_ref); # $perflib->Close(); print ""\\n\\n""; printf(""NumObjectTypes %d\\n"", $proc_ref->{NumObjectTypes}); printf(""SystemName %s\\n"", $proc_ref->{SystemName}); printf(""SystemTime %x\\n"", $proc_ref->{SystemTime}); printf(""PerfFreq %d\\n"", $proc_ref->{PerfFreq}); printf(""PerfTime %x\\n"", $proc_ref->{PerfTime}); printf(""PerfTime100nSec %x\\n"", $proc_ref->{PerfTime100nSec}); print ""\\n\\n""; printf(""NumObjectTypes %d\\n"", $phys_disk_ref->{NumObjectTypes}); printf(""SystemName %s\\n"", $phys_disk_ref->{SystemName}); printf(""SystemTime %x\\n"", $phys_disk_ref->{SystemTime}); printf(""PerfFreq %d\\n"", $phys_disk_ref->{PerfFreq}); printf(""PerfTime %x\\n"", $phys_disk_ref->{PerfTime}); printf(""PerfTime100nSec %x\\n"", $phys_disk_ref->{PerfTime100nSec}); print ""\\n\\n""; $obj_ref = $phys_disk_ref->{Objects}->{$disk_obj}; printf(""DetailLevel %d\\n"", $obj_ref->{DetailLevel}); printf(""NumCounters %d\\n"", $obj_ref->{NumCounters}); printf(""NumInstances %d\\n"", $obj_ref->{NumInstances}); printf(""ObjectHelpTitleIndex %d\\n"", $obj_ref->{ObjectHelpTitleIndex}); printf(""ObjectNameTitleIndex %d\\n"", $obj_ref->{ObjectNameTitleIndex}); printf(""ObjectNameTitle %d\\n"", $counter{$obj_ref->{ObjectNameTitleIndex}}); printf(""PerfFreq %d\\n"", $obj_ref->{PerfFreq}); printf(""PerfTime %d\\n"", $obj_ref->{PerfTime}); print ""----------- \\n\\n""; # # Select the replica set object perfmon keys with the desired data. # InitRSkeys(); CollectReplicaSetObject($frs_set_ref); ## DumpPerfmonObject($frs_set_ref); InitConnkeys(); CollectReplicaConnObject($frs_conn_ref); ## DumpPerfmonObject($frs_conn_ref); InitPhysDiskkeys(); CollectPhysDiskObject($phys_disk_ref); ## DumpPerfmonObject($phys_disk_ref); @DumpInstances = ( 'ntfrs', 'lsass' ); InitProcesskeys(); CollectProcessObject($proc_ref); DumpPerfmonObject($proc_ref); undef @DumpInstances; DumpPerfmonObject($logical_disk_ref); # also seems to include physical disk DumpPerfmonObject($memory_ref); DumpPerfmonObject($net_ref); # ## DumpPerfmonObject($tcp_ref); Data seems same as 'Network Interface' ??? # DumpPerfmonObject($system_ref); DumpPerfmonObject($processor_ref); $instance_ref = $phys_disk_ref->{Objects}->{$disk_obj}->{Instances}; foreach $p (sort keys %{$instance_ref}) { $counter_ref = $instance_ref->{$p}->{Counters}; foreach $i (sort keys %{$counter_ref}) { if ($counter_ref->{$i}->{CounterNameTitleIndex} == $disk_rdpersec) { $rdpersec = $counter_ref->{$i}->{Counter}; } } printf(""%-20s rd/sec %6d \\n"", $instance_ref->{$p}->{Name}, $rdpersec); } $instance_ref = $proc_ref->{Objects}->{$process_obj}->{Instances}; foreach $p (sort keys %{$instance_ref}) { $counter_ref = $instance_ref->{$p}->{Counters}; foreach $i (sort keys %{$counter_ref}) { if ($counter_ref->{$i}->{CounterNameTitleIndex} == $process_id) { $pid = $counter_ref->{$i}->{Counter}; } if ($counter_ref->{$i}->{CounterNameTitleIndex} == $process_handles) { $handles = $counter_ref->{$i}->{Counter}; } if ($counter_ref->{$i}->{CounterNameTitleIndex} == $process_thrdcnt) { $thrdcnt = $counter_ref->{$i}->{Counter}; } if ($counter_ref->{$i}->{CounterNameTitleIndex} == $process_virtmem) { # type/size: 10100/8 for vm size #define PERF_SIZE_LARGE 0x00000100 #define PERF_TYPE_NUMBER 0x00000000 // a number (not a counter) #define PERF_NUMBER_DECIMAL 0x00010000 // display as a decimal integer $vmsize = $counter_ref->{$i}->{Counter}/1024; $typeproc = $counter_ref->{$i}->{CounterType}; $sizeproc = $counter_ref->{$i}->{CounterSize}; } if ($counter_ref->{$i}->{CounterNameTitleIndex} == $process_pctproc) { # type/size: 20510500/8 for cpu pct counters. see \\nt\\public\\sdk\\inc\\winperf.h #define PERF_SIZE_LARGE 0x00000100 #define PERF_TYPE_COUNTER 0x00000400 // an increasing numeric value #define PERF_COUNTER_RATE 0x00010000 // divide ctr / delta time #define PERF_TIMER_100NS 0x00100000 // use 100 NS timer time base units #define PERF_DELTA_COUNTER 0x00400000 // compute difference first #define PERF_DISPLAY_PERCENT 0x20000000 // ""%"" $pctproc = $counter_ref->{$i}->{Counter}; } if ($counter_ref->{$i}->{CounterNameTitleIndex} == $process_pctuser) { $pctuser = $counter_ref->{$i}->{Counter}; } if ($counter_ref->{$i}->{CounterNameTitleIndex} == $process_pctpriv) { $pctpriv = $counter_ref->{$i}->{Counter}; } } printf(""%-20s pid %6d handles %6d type/size: %x/%d thrd: %d vm: %d proc/user/priv: %s/%s/%s\\n"", $instance_ref->{$p}->{Name}, $pid, $handles, $typeproc, $sizeproc, $thrdcnt, $vmsize, $pctproc, $pctuser, $pctpriv); } EVENT_LOG: # $argsort = ""name""; # &GetOptions(""sort=s"" => \\$argsort); # $argsort = lc($argsort); # if (!($argsort =~ m/send|clean|name|lmt|lastjointime|lastvvjoin/)) { # print ""Error: Invalid -sort param: $argsort using name\\n""; # $argsort = ""name""; # } # # Translate log type abbreviation if found otherwise use ARGV[0} as given. # $EventLogType = $elogname{$ARGV[0]}; $EventLogType = ($EventLogType ne """") ? $EventLogType : $ARGV[0]; $EventLogTypeOrFile = $EventLogType; # # -file overrides any ARGV[0]. # if ($argelfile ne """") { $EventLogTypeOrFile = ($argelfile =~ m/\\\\/) ? $argelfile : "".\\\\$argelfile""; } # # -after # ($mon, $day, $year) = lc($argafter) =~ m/(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\\s*(\\d*).*(\\d\\d\\d\\d)/; die $USAGE unless ($mon && $day && $year); $mon = index(""janfebmaraprmayjunjulaugsepoctnovdec"", $mon) / 3; print ""mon: $mon day: $day year: $year \\n""; $aftergmt = timegm(0, 0, 0, $day, $mon, $year-1900); print ""aftergmt : "", scalar gmtime($aftergmt), scalar localtime($aftergmt), ""\\n""; $lcltimezonediff = timegm(0, 0, 0, 1, 1, 99) - timelocal(0, 0, 0, 1, 1, 99); print ""local tz: $lcltimezonediff \\n""; # if ($argtimezone eq 1000000) {$argtimezone = $lcltimezonediff}; $afteradjustedtime = $aftergmt + $argtimezone; print ""afteradjustedtime : "", scalar gmtime($afteradjustedtime), ""\\n""; # # remove any leading backslashes. # $computer = ($argcomputer =~ m/\\\\*(.*)/); die $USAGE unless $computer; # # Open the event log on the target computer or the file. # $handle=Win32::EventLog->new($EventLogTypeOrFile, $argcomputer) or die ""Can't open $EventLogType EventLog on computer $argcomputer\\n""; $handle->GetNumber($recs) or die ""Can't get number of EventLog records\\n""; $handle->GetOldest($base) or die ""Can't get number of oldest EventLog record\\n""; # # The parameters and return codes defined by the eventlog package. # # EVENTLOG_AUDIT_FAILURE EVENTLOG_PAIRED_EVENT_ACTIVE # EVENTLOG_AUDIT_SUCCESS EVENTLOG_PAIRED_EVENT_INACTIVE # EVENTLOG_BACKWARDS_READ EVENTLOG_SEEK_READ # EVENTLOG_END_ALL_PAIRED_EVENTS EVENTLOG_SEQUENTIAL_READ # EVENTLOG_END_PAIRED_EVENT EVENTLOG_START_PAIRED_EVENT # EVENTLOG_ERROR_TYPE EVENTLOG_SUCCESS # EVENTLOG_FORWARDS_READ EVENTLOG_WARNING_TYPE # EVENTLOG_INFORMATION_TYPE # # item EVENTLOG_ERROR_TYPE # item EVENTLOG_WARNING_TYPE # item EVENTLOG_INFORMATION_TYPE # item EVENTLOG_AUDIT_SUCCESS # item EVENTLOG_AUDIT_FAILURE # # ERROR_EVENTLOG_CANT_START # ERROR_EVENTLOG_FILE_CHANGED # ERROR_EVENTLOG_FILE_CORRUPT # $x = ($recs >= $argnumrec ) ? $recs - $argnumrec : $base; while ($x < $recs) { $handle->Read(EVENTLOG_FORWARDS_READ|EVENTLOG_SEEK_READ, $base+$x, $hashRef) or die ""Can't read EventLog entry #$x\\n""; $x++; if ($first-- <= 0) { print ""\\f\\n""; print ""EventLog : "", $EventLogType, ""\\n""; print ""LogFileName : "", $argelfile, ""\\n"" if ($argelfile ne """"); print ""LocalTimeZoneOffset : "", $lcltimezonediff/60, "" min\\n""; print ""AppliedTimeZoneOffset : "", $argtimezone/60, "" min\\n""; print ""Computer : "", $hashRef->{Computer}, ""\\n\\n""; printf("" Record Time Source Category Sev EventID NumStr Strings\\n\\n""); # 1938 Sat Nov 4 20:07:02 2000 NtFrs 0 Warning LONG_JOIN 3 NTDSDC9 | NTDEV-DC-03 | f:\\w $first = 50; } # # Apply the time filter. # #printf ""hr: %d\\n"", ($hashRef->{TimeGenerated}+$argtimezone); #printf ""af: %d\\n"", $afteradjustedtime; #printf ""df: %d\\n"", ($hashRef->{TimeGenerated}+$argtimezone) - $afteradjustedtime; next if (($hashRef->{TimeGenerated}+$argtimezone) <= $afteradjustedtime); # print ""Data : "", $hashRef->{Data}, ""\\n""; # $hashRef->{User} appears to be a SID. Don't know how to display it. # $hashRef->{Category} appears to be an index into a string resource in a dll specified in the registry. # # Count the number of null terminated insertion strings. # Replace the nulls with | and the CR and LF with dots. # $numstrings = ($hashRef->{Strings}=~tr/\\0/\\0/); $hashRef->{Strings}=~s/\\0/ \\| /gs; $hashRef->{Strings}=~tr/\\x0D\\x0A/../; $eventid = $hashRef->{EventID} & 0x0FFFFFFF; $eventsym = $eventid; if (lc($hashRef->{Source}) eq ""ntfrs"") { $eventsym = $FRS_EL_TABLE{$eventid}; if ($eventsym eq """") {$eventsym = $eventid;} } printf(""%8d %25s %-16s %5d %-7s %-26s %4d %s\\n"", $hashRef->{RecordNumber}, scalar (gmtime($hashRef->{TimeGenerated}+$argtimezone)), substr($hashRef->{Source}, 0, 16), $hashRef->{Category}, $EventSev[$hashRef->{EventID} >> 30], $eventsym, $numstrings , $hashRef->{Strings}); # # The below can be used to the message text and print it. It only # appears to work if you are running on the local computer and reading # the on-line event log. # #Win32::EventLog::GetMessageText($hashRef); #print ""$hashRef->{Message}\\n""; #print Text::Wrap::wrap($initial_tab, $subsequent_tab, $hashRef->{Message}), ""\\n""; #print Text::Wrap::fill($initial_tab, $subsequent_tab, $hashRef->{Message}), ""\\n\\n""; } sub ProcessKey { my ($key, $indent); my ($subkeyname, $subkey, @keylist); my ($value, %valuelist); my ($Ctype); $key = $_[0]; $indent = $_[1]; $key->GetValues( \\%valuelist ); foreach $value (sort( keys(%valuelist))) { $regtype = $REG_DT_NAME[$valuelist{$value}[1]]; printf(""%s%s = %s "", "" ""x$indent, $value, $regtype); if ($regtype eq ""REG_BINARY"") { printf(""\\n""); } else { printf(""%s\\n"", $valuelist{$value}[2]); } } $key->GetKeys(\\@keylist); foreach $subkeyname (sort(@keylist)) { if ($key->Open ($subkeyname, $subkey)) { print "" "" x $indent, $subkeyname, ""\\n""; ProcessKey($subkey, $indent+4); $subkey->Close(); } } } sub DumpPerfmonObject { my ($arg_ref, $p_ref, $q_ref, $r_ref); my ($p, $px, $q, $qx, $r, $rx); my ($i, $display); $arg_ref = $_[0]; $p_ref = $arg_ref->{Objects}; foreach $p (sort keys %{$p_ref} ) { $px = $arg_ref->{Objects}->{$p}; printf(""DetailLevel %d\\n"", $px->{DetailLevel}); printf(""NumCounters %d\\n"", $px->{NumCounters}); printf(""NumInstances %d\\n"", $px->{NumInstances}); printf(""PerfFreq %d\\n"", $px->{PerfFreq}); printf(""PerfTime %d\\n"", $px->{PerfTime}); printf(""ObjectHelpTitleIndex %d\\n"", $px->{ObjectHelpTitleIndex}); printf(""ObjectNameTitleIndex %d\\n"", $px->{ObjectNameTitleIndex}); printf(""ObjectNameTitle %s\\n"", $counter{$px->{ObjectNameTitleIndex}}); print ""\\n""; $q_ref = $arg_ref->{Objects}->{$p}->{Counters}; foreach $q (sort keys %{$q_ref} ) { $qx = $arg_ref->{Objects}->{$p}->{Counters}->{$q}; $Ctype = $qx->{CounterType}; printf("" %-12d %-6s %2d %-13s %s\\n"", $qx->{Counter}, $qx->{Display}, $qx->{CounterSize}, $PERFMON_TYPE_TABLE{Win32::PerfLib::GetCounterType($Ctype)}, $counter{$qx->{CounterNameTitleIndex}}); #printf("" Display %s\\n"", $qx->{Display}); #printf("" Counter %d\\n"", $qx->{Counter}); #printf("" CounterSize %d\\n"", $qx->{CounterSize}); #printf("" CounterType %x\\n"", $qx->{CounterType}); #printf("" CounterTypeStr %s\\n"", Win32::PerfLib::GetCounterType($qx->{CounterType})); #printf("" DefaultScale %d\\n"", $qx->{DefaultScale}); #printf("" DetailLevel %d\\n"", $qx->{DetailLevel}); #printf("" CounterHelpTitleIndex %d\\n"", $qx->{CounterHelpTitleIndex}); #printf("" CounterNameTitleIndex %d\\n"", $qx->{CounterNameTitleIndex}); #printf("" CounterNameTitle %s\\n"", $counter{$qx->{CounterNameTitleIndex}}); #print ""\\n""; } print ""\\n""; $q_ref = $arg_ref->{Objects}->{$p}->{Instances}; foreach $q (sort keys %{$q_ref} ) { $qx = $arg_ref->{Objects}->{$p}->{Instances}->{$q}; $display = !defined @DumpInstances; foreach $i (0 .. $#{ @DumpInstances }) { if ( index(lc($qx->{Name}), lc($DumpInstances[$i])) == 0 ) { $display = 1; last; } } if ($display) { print ""\\n""; printf("" Name %s\\n"", $qx->{Name}); printf("" ParentObjectInstance %d\\n"", $qx->{ParentObjectInstance}); printf("" ParentObjectTitleIndex %d\\n"", $qx->{ParentObjectTitleIndex}); printf("" ParentObjectTitle %s\\n"", $counter{$qx->{ParentObjectTitleIndex}}); print ""\\n""; $r_ref = $arg_ref->{Objects}->{$p}->{Instances}->{$q}->{Counters}; foreach $r (sort keys %{$r_ref} ) { $rx = $arg_ref->{Objects}->{$p}->{Instances}->{$q}->{Counters}->{$r}; $Ctype = $rx->{CounterType}; printf("" %-12d %-6s %2d %-13s %s\\n"", $rx->{Counter}, $rx->{Display}, $rx->{CounterSize}, $PERFMON_TYPE_TABLE{Win32::PerfLib::GetCounterType($Ctype)}, $counter{$rx->{CounterNameTitleIndex}}); #printf("" Display %s\\n"", $rx->{Display}); #printf("" Counter %d\\n"", $rx->{Counter}); #printf("" CounterSize %d\\n"", $rx->{CounterSize}); #printf("" CounterType %x\\n"", $rx->{CounterType}); #printf("" CounterTypeStr %s\\n"", substr(Win32::PerfLib::GetCounterType($rx->{CounterType}),13)); #printf("" DefaultScale %d\\n"", $rx->{DefaultScale}); #printf("" DetailLevel %d\\n"", $rx->{DetailLevel}); #printf("" CounterHelpTitleIndex %d\\n"", $rx->{CounterHelpTitleIndex}); #printf("" CounterNameTitleIndex %d\\n"", $rx->{CounterNameTitleIndex}); #printf("" CounterNameTitle %s\\n"", $counter{$rx->{CounterNameTitleIndex}}); #print ""\\n""; } } } } print ""-------------------------- \\n""; print ""-------------------------- \\n""; print ""-------------------------- \\n""; print ""-------------------------- \\n""; print ""-------------------------- \\n""; print ""-------------------------- \\n\\n""; } sub CollectProcessObject { my ($arg_ref, $p_ref, $q_ref, $r_ref); my ($p, $px, $q, $qx, $r, $rx); my ($NumInstances, $i); my ($display); my ($Ctype, $Ctypename, $Cname); $arg_ref = $_[0]; $p_ref = $arg_ref->{Objects}; foreach $p (sort keys %{$p_ref} ) { $px = $arg_ref->{Objects}->{$p}; printf(""DetailLevel %d\\n"", $px->{DetailLevel}); printf(""NumCounters %d\\n"", $px->{NumCounters}); printf(""NumInstances %d\\n"", $px->{NumInstances}); printf(""PerfFreq %d\\n"", $px->{PerfFreq}); printf(""PerfTime %d\\n"", $px->{PerfTime}); printf(""ObjectHelpTitleIndex %d\\n"", $px->{ObjectHelpTitleIndex}); printf(""ObjectNameTitleIndex %d\\n"", $px->{ObjectNameTitleIndex}); printf(""ObjectNameTitle %s\\n"", $counter{$px->{ObjectNameTitleIndex}}); print ""\\n""; $NumInstances = $px->{NumInstances}; $q_ref = $arg_ref->{Objects}->{$p}->{Instances}; foreach $q (sort keys %{$q_ref} ) { $qx = $arg_ref->{Objects}->{$p}->{Instances}->{$q}; $display = !defined @DumpInstances; foreach $i (0 .. $#{ @DumpInstances }) { if ( index(lc($qx->{Name}), lc($DumpInstances[$i])) == 0 ) { $display = 1; last; } } if ($display) { # # Save the instance name. # ntfrs_780 # push @processinstance, $qx->{Name}; #print ""\\n""; #printf("" Name %s\\n"", $qx->{Name}); #printf("" ParentObjectInstance %d\\n"", $qx->{ParentObjectInstance}); #printf("" ParentObjectTitleIndex %d\\n"", $qx->{ParentObjectTitleIndex}); #printf("" ParentObjectTitle %s\\n"", $counter{$qx->{ParentObjectTitleIndex}}); #print ""\\n""; # # Get the counters for each instance. # $r_ref = $arg_ref->{Objects}->{$p}->{Instances}->{$q}->{Counters}; foreach $r (sort keys %{$r_ref} ) { $rx = $arg_ref->{Objects}->{$p}->{Instances}->{$q}->{Counters}->{$r}; $Ctype = $rx->{CounterType}; $Ctypename = $PERFMON_TYPE_TABLE{Win32::PerfLib::GetCounterType($Ctype)}; $Cname = $counter{$rx->{CounterNameTitleIndex}}; if (exists($processcountertable{$Cname})) { if (!exists($processvaluetable{$Cname})) { $processvaluetable{$Cname} = [ $rx->{Counter} ]; $processsizetable{$Cname} = $rx->{CounterSize}; $processdisplaytable{$Cname} = $rx->{Display}; $processtypetable{$Cname} = $rx->{CounterType}; $processtypenametable{$Cname} = $Ctypename; } else { push @{ $processvaluetable{$Cname} }, $rx->{Counter}; } } #printf("" %-12d %-6s %2d %-13s %s\\n"", # $rx->{Counter}, $rx->{Display}, $rx->{CounterSize}, # $Ctypename, $Cname); } } } } # # print header. # print "" ""; foreach $i (0 .. $#{ @processinstance }) { printf(""%-20s"", $processinstance[$i]); } print ""\\n\\n""; # # Print in order of hash value. # foreach $r (sort { $processcountertable{$a} <=> $processcountertable{$b} } keys %processcountertable) { printf(""%-40s %8s %2d %08x %-15s"", $r, $processdisplaytable{$r}, $processsizetable{$r}, $processtypetable{$r}, $processtypenametable{$r}); foreach $i (0 .. $#{ $processvaluetable{$r} }) { printf(""%-12d"", $processvaluetable{$r}[$i]); } print ""\\n""; } print ""\\n\\n\\n""; } sub InitProcesskeys { my $i = 1; $processcountertable{'% Processor Time'} = $i++; $processcountertable{'% User Time'} = $i++; $processcountertable{'Private Bytes'} = $i++; $processcountertable{'Thread Count'} = $i++; $processcountertable{'Priority Base'} = $i++; $processcountertable{'Elapsed Time'} = $i++; $processcountertable{'ID Process'} = $i++; $processcountertable{'Creating Process ID'} = $i++; $processcountertable{'Pool Paged Bytes'} = $i++; $processcountertable{'Pool Nonpaged Bytes'} = $i++; $processcountertable{'Handle Count'} = $i++; $processcountertable{'IO Read Operations/sec'} = $i++; $processcountertable{'% Privileged Time'} = $i++; $processcountertable{'IO Write Operations/sec'} = $i++; $processcountertable{'IO Data Operations/sec'} = $i++; $processcountertable{'IO Other Operations/sec'} = $i++; $processcountertable{'IO Read Bytes/sec'} = $i++; $processcountertable{'IO Write Bytes/sec'} = $i++; $processcountertable{'IO Data Bytes/sec'} = $i++; $processcountertable{'IO Other Bytes/sec'} = $i++; $processcountertable{'Virtual Bytes Peak'} = $i++; $processcountertable{'Virtual Bytes'} = $i++; $processcountertable{'Page Faults/sec'} = $i++; $processcountertable{'Working Set Peak'} = $i++; $processcountertable{'Working Set'} = $i++; $processcountertable{'Page File Bytes Peak'} = $i++; $processcountertable{'Page File Bytes'} = $i++; } sub CollectPhysDiskObject { my ($arg_ref, $p_ref, $q_ref, $r_ref); my ($p, $px, $q, $qx, $r, $rx); my ($NumInstances, $i); my ($Ctype, $Ctypename, $Cname); my (@ratio, $npairs, $denom, $scale); $arg_ref = $_[0]; $p_ref = $arg_ref->{Objects}; foreach $p (sort keys %{$p_ref} ) { $px = $arg_ref->{Objects}->{$p}; printf(""DetailLevel %d\\n"", $px->{DetailLevel}); printf(""NumCounters %d\\n"", $px->{NumCounters}); printf(""NumInstances %d\\n"", $px->{NumInstances}); printf(""PerfFreq %d\\n"", $px->{PerfFreq}); printf(""PerfTime %d\\n"", $px->{PerfTime}); printf(""ObjectHelpTitleIndex %d\\n"", $px->{ObjectHelpTitleIndex}); printf(""ObjectNameTitleIndex %d\\n"", $px->{ObjectNameTitleIndex}); printf(""ObjectNameTitle %s\\n"", $counter{$px->{ObjectNameTitleIndex}}); print ""\\n""; # # No counters at this level for Replica Set Object. # # $q_ref = $arg_ref->{Objects}->{$p}->{Counters}; # foreach $q (sort keys %{$q_ref} ) { # # $qx = $arg_ref->{Objects}->{$p}->{Counters}->{$q}; # # printf("" %-12d %-6s %2d %-20s %s\\n"", # $qx->{Counter}, $qx->{Display}, $qx->{CounterSize}, # substr(Win32::PerfLib::GetCounterType($qx->{CounterType}),13), # $counter{$qx->{CounterNameTitleIndex}}); # # } # # print ""\\n""; $NumInstances = $px->{NumInstances}; $q_ref = $arg_ref->{Objects}->{$p}->{Instances}; foreach $q (sort keys %{$q_ref} ) { $qx = $arg_ref->{Objects}->{$p}->{Instances}->{$q}; # # Save the instance name. # 0 C: D: # push @physdiskinstance, $qx->{Name}; #print ""\\n""; #printf("" Name %s\\n"", $qx->{Name}); #printf("" ParentObjectInstance %d\\n"", $qx->{ParentObjectInstance}); #printf("" ParentObjectTitleIndex %d\\n"", $qx->{ParentObjectTitleIndex}); #printf("" ParentObjectTitle %s\\n"", $counter{$qx->{ParentObjectTitleIndex}}); #print ""\\n""; # # Get the counters for each instance. # $r_ref = $arg_ref->{Objects}->{$p}->{Instances}->{$q}->{Counters}; foreach $r (sort keys %{$r_ref} ) { $rx = $arg_ref->{Objects}->{$p}->{Instances}->{$q}->{Counters}->{$r}; $Ctype = $rx->{CounterType}; $Ctypename = $PERFMON_TYPE_TABLE{Win32::PerfLib::GetCounterType($Ctype)}; $Cname = $counter{$rx->{CounterNameTitleIndex}}; if (exists($physdiskcountertable{$Cname})) { if (!exists($physdiskvaluetable{$Cname})) { $physdiskvaluetable{$Cname} = [ $rx->{Counter} ]; $physdisksizetable{$Cname} = $rx->{CounterSize}; $physdiskdisplaytable{$Cname} = $rx->{Display}; $physdisktypetable{$Cname} = $rx->{CounterType}; $physdisktypenametable{$Cname} = $Ctypename; } else { push @{ $physdiskvaluetable{$Cname} }, $rx->{Counter}; } } #printf("" %-12d %-6s %2d %-13s %s\\n"", # $rx->{Counter}, $rx->{Display}, $rx->{CounterSize}, # $Ctypename, $Cname); } } } # # print header. # print "" ""; foreach $i (0 .. $#{ @physdiskinstance }) { printf(""%-20s"", $physdiskinstance[$i]); } print ""\\n\\n""; # # Print in order of hash value. # foreach $r (sort { $physdiskcountertable{$a} <=> $physdiskcountertable{$b} } keys %physdiskcountertable) { if (exists($physdiskratiotable{$r})) { $scale = ($physdiskdisplaytable{$r} eq '%') ? 100.0 : 1.0; $npairs = ($#{ $physdiskvaluetable{$r} }+1) / 2; undef @ratio; while ($npairs > 0) { $denom = $physdiskvaluetable{$r}[1]; if ($denom != 0) { push @ratio, sprintf(""%.2f"", $scale * $physdiskvaluetable{$r}[0] / $denom) ; } else { push @ratio, 0; } $npairs--; splice @{$physdiskvaluetable{$r}}, 0, 2; } @ {$physdiskvaluetable{$r}} = @ratio; } printf(""%-40s %8s %2d %08x %-15s"", $r, $physdiskdisplaytable{$r}, $physdisksizetable{$r}, $physdisktypetable{$r}, $physdisktypenametable{$r}); foreach $i (0 .. $#{ $physdiskvaluetable{$r} }) { printf(""%-12s"", $physdiskvaluetable{$r}[$i]); } print ""\\n""; } print ""\\n\\n\\n""; } sub InitPhysDiskkeys { my $i = 1; $physdiskcountertable{'Current Disk Queue Length'} = $i++; $physdiskcountertable{'% Disk Time'} = $i++; $physdiskcountertable{'Avg. Disk sec/Transfer'} = $i++; #AVG_TIMER / AVG_BASE $physdiskcountertable{'Avg. Disk sec/Read'} = $i++; #AVG_TIMER / AVG_BASE $physdiskcountertable{'Avg. Disk sec/Write'} = $i++; #AVG_TIMER / AVG_BASE $physdiskcountertable{'Disk Transfers/sec'} = $i++; $physdiskcountertable{'Disk Reads/sec'} = $i++; $physdiskcountertable{'Disk Writes/sec'} = $i++; $physdiskcountertable{'Disk Bytes/sec'} = $i++; $physdiskcountertable{'% Disk Time'} = $i++; $physdiskcountertable{'Disk Read Bytes/sec'} = $i++; $physdiskcountertable{'Disk Write Bytes/sec'} = $i++; $physdiskcountertable{'Avg. Disk Bytes/Transfer'} = $i++; #AVG_BULK / AVG_BASE $physdiskcountertable{'Avg. Disk Bytes/Read'} = $i++; #AVG_BULK / AVG_BASE $physdiskcountertable{'Avg. Disk Bytes/Write'} = $i++; #AVG_BULK / AVG_BASE $physdiskcountertable{'% Idle Time'} = $i++; $physdiskcountertable{'Avg. Disk Queue Length'} = $i++; $physdiskcountertable{'Split IO/Sec'} = $i++; $physdiskcountertable{'% Disk Read Time'} = $i++; $physdiskcountertable{'Avg. Disk Read Queue Length'} = $i++; $physdiskcountertable{'% Disk Write Time'} = $i++; $physdiskcountertable{'Avg. Disk Write Queue Length'} = $i++; $physdiskratiotable{'Avg. Disk sec/Transfer'} = 1; $physdiskratiotable{'Avg. Disk sec/Read'} = 1; $physdiskratiotable{'Avg. Disk sec/Write'} = 1; $physdiskratiotable{'Avg. Disk Bytes/Transfer'} = 1; $physdiskratiotable{'Avg. Disk Bytes/Read'} = 1; $physdiskratiotable{'Avg. Disk Bytes/Write'} = 1; $physdiskratiotable{'% Disk Time'} = 1; $physdiskratiotable{'% Idle Time'} = 1; $physdiskratiotable{'% Disk Read Time'} = 1; $physdiskratiotable{'% Disk Write Time'} = 1; } sub CollectReplicaConnObject { my ($arg_ref, $p_ref, $q_ref, $r_ref); my ($p, $px, $q, $qx, $r, $rx); my ($NumInstances, $i); my ($Ctype, $Ctypename, $Cname); my ($rootpath, $inout, $server, $domain); $arg_ref = $_[0]; $p_ref = $arg_ref->{Objects}; foreach $p (sort keys %{$p_ref} ) { $px = $arg_ref->{Objects}->{$p}; printf(""DetailLevel %d\\n"", $px->{DetailLevel}); printf(""NumCounters %d\\n"", $px->{NumCounters}); printf(""NumInstances %d\\n"", $px->{NumInstances}); printf(""PerfFreq %d\\n"", $px->{PerfFreq}); printf(""PerfTime %d\\n"", $px->{PerfTime}); printf(""ObjectHelpTitleIndex %d\\n"", $px->{ObjectHelpTitleIndex}); printf(""ObjectNameTitleIndex %d\\n"", $px->{ObjectNameTitleIndex}); printf(""ObjectNameTitle %s\\n"", $counter{$px->{ObjectNameTitleIndex}}); print ""\\n""; # # No counters at this level for Replica Set Object. # # $q_ref = $arg_ref->{Objects}->{$p}->{Counters}; # foreach $q (sort keys %{$q_ref} ) { # # $qx = $arg_ref->{Objects}->{$p}->{Counters}->{$q}; # # printf("" %-12d %-6s %2d %-20s %s\\n"", # $qx->{Counter}, $qx->{Display}, $qx->{CounterSize}, # substr(Win32::PerfLib::GetCounterType($qx->{CounterType}),13), # $counter{$qx->{CounterNameTitleIndex}}); # # } # # print ""\\n""; $NumInstances = $px->{NumInstances}; $q_ref = $arg_ref->{Objects}->{$p}->{Instances}; foreach $q (sort keys %{$q_ref} ) { $qx = $arg_ref->{Objects}->{$p}->{Instances}->{$q}; # # Save the instance name. # d:\\replica1::FROM:FRS0614\\SUDARCTEST2$ # push @conninstance, $qx->{Name}; ($rootpath, $inout, $domain, $server) = $qx->{Name} =~ m/(.*)::(FROM|TO):(.*)\\\\(.*)/; push @connroot, $rootpath; push @conninout, $inout; push @connserver, $server; push @conndomain, $domain; #print ""\\n""; #printf("" Name %s\\n"", $qx->{Name}); #printf("" ParentObjectInstance %d\\n"", $qx->{ParentObjectInstance}); #printf("" ParentObjectTitleIndex %d\\n"", $qx->{ParentObjectTitleIndex}); #printf("" ParentObjectTitle %s\\n"", $counter{$qx->{ParentObjectTitleIndex}}); #print ""\\n""; # # Get the counters for each instance. # $r_ref = $arg_ref->{Objects}->{$p}->{Instances}->{$q}->{Counters}; foreach $r (sort keys %{$r_ref} ) { $rx = $arg_ref->{Objects}->{$p}->{Instances}->{$q}->{Counters}->{$r}; $Ctype = $rx->{CounterType}; $Ctypename = $PERFMON_TYPE_TABLE{Win32::PerfLib::GetCounterType($Ctype)}; $Cname = $counter{$rx->{CounterNameTitleIndex}}; if (exists($conncountertable{$Cname})) { if (!exists($connvaluetable{$Cname})) { $connvaluetable{$Cname} = [ $rx->{Counter} ]; $connsizetable{$Cname} = $rx->{CounterSize}; $conndisplaytable{$Cname} = $rx->{Display}; $conntypetable{$Cname} = $rx->{CounterType}; $conntypenametable{$Cname} = $Ctypename; } else { push @{ $connvaluetable{$Cname} }, $rx->{Counter}; } } #printf("" %-12d %-6s %2d %-13s %s\\n"", # $rx->{Counter}, $rx->{Display}, $rx->{CounterSize}, # $Ctypename, $Cname); } } } # # print header. # print ""Domain ""; foreach $i (0 .. $#{ @conndomain }) { printf(""%-20s"", $conndomain[$i]); } print ""\\n""; print ""Server ""; foreach $i (0 .. $#{ @connserver }) { printf(""%-20s"", $connserver[$i]); } print ""\\n""; print ""Root ""; foreach $i (0 .. $#{ @connroot }) { printf(""%-20s"", $connroot[$i]); } print ""\\n""; print ""In/out ""; foreach $i (0 .. $#{ @conninout }) { printf(""%-20s"", $conninout[$i] eq 'FROM' ? 'In' : 'Out'); } print ""\\n\\n""; # # Print in order of hash value. # foreach $r (sort { $conncountertable{$a} <=> $conncountertable{$b} } keys %conncountertable) { printf(""%-40s %8s %2d %08x %-15s"", $r, $conndisplaytable{$r}, $connsizetable{$r}, $conntypetable{$r}, $conntypenametable{$r}); foreach $i (0 .. $#{ $connvaluetable{$r} }) { printf(""%-12d"", $connvaluetable{$r}[$i]); } print ""\\n""; } print ""\\n\\n\\n""; } sub InitConnkeys { my $i = 1; $conncountertable{'Packets Sent in Bytes'} = $i++; $conncountertable{'Fetch Blocks Sent in Bytes'} = $i++; $conncountertable{'Packets Sent in Error'} = $i++; $conncountertable{'Communication Timeouts'} = $i++; $conncountertable{'Fetch Requests Sent'} = $i++; $conncountertable{'Fetch Requests Received'} = $i++; $conncountertable{'Fetch Blocks Sent'} = $i++; $conncountertable{'Fetch Blocks Received'} = $i++; $conncountertable{'Join Notifications Sent'} = $i++; $conncountertable{'Join Notifications Received'} = $i++; $conncountertable{'Joins'} = $i++; $conncountertable{'Unjoins'} = $i++; $conncountertable{'Fetch Blocks Received in Bytes'} = $i++; $conncountertable{'Bindings'} = $i++; $conncountertable{'Bindings in Error'} = $i++; $conncountertable{'Authentications'} = $i++; $conncountertable{'Authentications in Error'} = $i++; $conncountertable{'Local Change Orders Sent'} = $i++; $conncountertable{'Local Change Orders Sent At Join'} = $i++; $conncountertable{'Remote Change Orders Sent'} = $i++; $conncountertable{'Remote Change Orders Received'} = $i++; $conncountertable{'Inbound Change Orders Dampened'} = $i++; $conncountertable{'Outbound Change Orders Dampened'} = $i++; $conncountertable{'Packets Sent'} = $i++; } sub CollectReplicaSetObject { my ($arg_ref, $p_ref, $q_ref, $r_ref); my ($p, $px, $q, $qx, $r, $rx); my ($NumInstances, $i); $arg_ref = $_[0]; $p_ref = $arg_ref->{Objects}; foreach $p (sort keys %{$p_ref} ) { $px = $arg_ref->{Objects}->{$p}; printf(""DetailLevel %d\\n"", $px->{DetailLevel}); printf(""NumCounters %d\\n"", $px->{NumCounters}); printf(""NumInstances %d\\n"", $px->{NumInstances}); printf(""PerfFreq %d\\n"", $px->{PerfFreq}); printf(""PerfTime %d\\n"", $px->{PerfTime}); printf(""ObjectHelpTitleIndex %d\\n"", $px->{ObjectHelpTitleIndex}); printf(""ObjectNameTitleIndex %d\\n"", $px->{ObjectNameTitleIndex}); printf(""ObjectNameTitle %s\\n"", $counter{$px->{ObjectNameTitleIndex}}); print ""\\n""; # # No counters at this level for Replica Set Object. # # $q_ref = $arg_ref->{Objects}->{$p}->{Counters}; # foreach $q (sort keys %{$q_ref} ) { # # $qx = $arg_ref->{Objects}->{$p}->{Counters}->{$q}; # # printf("" %-12d %-6s %2d %-20s %s\\n"", # $qx->{Counter}, $qx->{Display}, $qx->{CounterSize}, # substr(Win32::PerfLib::GetCounterType($qx->{CounterType}),13), # $counter{$qx->{CounterNameTitleIndex}}); # # } # # print ""\\n""; $NumInstances = $px->{NumInstances}; $q_ref = $arg_ref->{Objects}->{$p}->{Instances}; foreach $q (sort keys %{$q_ref} ) { $qx = $arg_ref->{Objects}->{$p}->{Instances}->{$q}; # # Save the instance name. # push @rsinstance, $qx->{Name}; #print ""\\n""; #printf("" Name %s\\n"", $qx->{Name}); #printf("" ParentObjectInstance %d\\n"", $qx->{ParentObjectInstance}); #printf("" ParentObjectTitleIndex %d\\n"", $qx->{ParentObjectTitleIndex}); #printf("" ParentObjectTitle %s\\n"", $counter{$qx->{ParentObjectTitleIndex}}); #print ""\\n""; # # Get the counters for each instance. # $r_ref = $arg_ref->{Objects}->{$p}->{Instances}->{$q}->{Counters}; foreach $r (sort keys %{$r_ref} ) { $rx = $arg_ref->{Objects}->{$p}->{Instances}->{$q}->{Counters}->{$r}; $Ctype = $rx->{CounterType}; $Ctypename = $PERFMON_TYPE_TABLE{Win32::PerfLib::GetCounterType($Ctype)}; $Cname = $counter{$rx->{CounterNameTitleIndex}}; if (exists($rscountertable{$Cname})) { if (!exists($rsvaluetable{$Cname})) { $rsvaluetable{$Cname} = [ $rx->{Counter} ]; $rssizetable{$Cname} = $rx->{CounterSize}; $rsdisplaytable{$Cname} = $rx->{Display}; $rstypetable{$Cname} = $rx->{CounterType}; $rstypenametable{$Cname} = $Ctypename; } else { push @{ $rsvaluetable{$Cname} }, $rx->{Counter}; } } #printf("" %-12d %-6s %2d %-13s %s\\n"", # $rx->{Counter}, $rx->{Display}, $rx->{CounterSize}, # $Ctypename, $Cname); } } } # # print header. # print "" ""; foreach $i (0 .. $#{ @rsinstance }) { printf(""%-25s"", $rsinstance[$i]); } print ""\\n\\n""; # # Print in order of hash value. # foreach $r (sort { $rscountertable{$a} <=> $rscountertable{$b} } keys %rscountertable) { printf(""%-40s %8s %2d %08x %-15s"", $r, $rsdisplaytable{$r}, $rssizetable{$r}, $rstypetable{$r}, $rstypenametable{$r}); foreach $i (0 .. $#{ $rsvaluetable{$r} }) { printf(""%-12d"", $rsvaluetable{$r}[$i]); } print ""\\n""; } print ""\\n\\n\\n""; } sub InitRSkeys { my $i = 1; $rscountertable{'Bytes of Staging Generated'} = $i++; $rscountertable{'Bytes of Staging Fetched'} = $i++; $rscountertable{'Staging Files Generated'} = $i++; $rscountertable{'Staging Files Generated with Error'} = $i++; $rscountertable{'Staging Files Fetched'} = $i++; $rscountertable{'Staging Files Regenerated'} = $i++; $rscountertable{'Files Installed'} = $i++; $rscountertable{'Files Installed with Error'} = $i++; $rscountertable{'Change Orders Issued'} = $i++; $rscountertable{'Change Orders Retired'} = $i++; $rscountertable{'Change Orders Aborted'} = $i++; $rscountertable{'Change Orders Retried'} = $i++; $rscountertable{'Bytes of Staging Regenerated'} = $i++; $rscountertable{'Change Orders Retried at Generate'} = $i++; $rscountertable{'Change Orders Retried at Fetch'} = $i++; $rscountertable{'Change Orders Retried at Install'} = $i++; $rscountertable{'Change Orders Retried at Rename'} = $i++; $rscountertable{'Change Orders Morphed'} = $i++; $rscountertable{'Change Orders Propagated'} = $i++; $rscountertable{'Change Orders Received'} = $i++; $rscountertable{'Change Orders Sent'} = $i++; $rscountertable{'Change Orders Evaporated'} = $i++; $rscountertable{'Local Change Orders Issued'} = $i++; $rscountertable{'Bytes of Files Installed'} = $i++; $rscountertable{'Local Change Orders Retired'} = $i++; $rscountertable{'Local Change Orders Aborted'} = $i++; $rscountertable{'Local Change Orders Retried'} = $i++; $rscountertable{'Local Change Orders Retried at Generate'} = $i++; $rscountertable{'Local Change Orders Retried at Fetch'} = $i++; $rscountertable{'Local Change Orders Retried at Install'} = $i++; $rscountertable{'Local Change Orders Retried at Rename'} = $i++; $rscountertable{'Local Change Orders Morphed'} = $i++; $rscountertable{'Local Change Orders Propagated'} = $i++; $rscountertable{'Local Change Orders Sent'} = $i++; $rscountertable{'KB of Staging Space In Use'} = $i++; $rscountertable{'Local Change Orders Sent At Join'} = $i++; $rscountertable{'Remote Change Orders Issued'} = $i++; $rscountertable{'Remote Change Orders Retired'} = $i++; $rscountertable{'Remote Change Orders Aborted'} = $i++; $rscountertable{'Remote Change Orders Retried'} = $i++; $rscountertable{'Remote Change Orders Retried at Generate'} = $i++; $rscountertable{'Remote Change Orders Retried at Fetch'} = $i++; $rscountertable{'Remote Change Orders Retried at Install'} = $i++; $rscountertable{'Remote Change Orders Retried at Rename'} = $i++; $rscountertable{'Remote Change Orders Morphed'} = $i++; $rscountertable{'KB of Staging Space Free'} = $i++; $rscountertable{'Remote Change Orders Propagated'} = $i++; $rscountertable{'Remote Change Orders Sent'} = $i++; $rscountertable{'Remote Change Orders Received'} = $i++; $rscountertable{'Inbound Change Orders Dampened'} = $i++; $rscountertable{'Outbound Change Orders Dampened'} = $i++; $rscountertable{'Usn Reads'} = $i++; $rscountertable{'Usn Records Examined'} = $i++; $rscountertable{'Usn Records Accepted'} = $i++; $rscountertable{'Usn Records Rejected'} = $i++; $rscountertable{'Packets Received'} = $i++; $rscountertable{'Packets Received in Bytes'} = $i++; $rscountertable{'Packets Received in Error'} = $i++; $rscountertable{'Packets Sent'} = $i++; $rscountertable{'Packets Sent in Error'} = $i++; $rscountertable{'Communication Timeouts'} = $i++; $rscountertable{'Fetch Requests Sent'} = $i++; $rscountertable{'Fetch Requests Received'} = $i++; $rscountertable{'Fetch Blocks Sent'} = $i++; $rscountertable{'Fetch Blocks Received'} = $i++; $rscountertable{'Join Notifications Sent'} = $i++; $rscountertable{'Join Notifications Received'} = $i++; $rscountertable{'Packets Sent in Bytes'} = $i++; $rscountertable{'Joins'} = $i++; $rscountertable{'Unjoins'} = $i++; $rscountertable{'Bindings'} = $i++; $rscountertable{'Bindings in Error'} = $i++; $rscountertable{'Authentications'} = $i++; $rscountertable{'Authentications in Error'} = $i++; $rscountertable{'DS Polls'} = $i++; $rscountertable{'DS Polls without Changes'} = $i++; $rscountertable{'DS Polls with Changes'} = $i++; $rscountertable{'DS Searches'} = $i++; $rscountertable{'Fetch Blocks Sent in Bytes'} = $i++; $rscountertable{'DS Searches in Error'} = $i++; $rscountertable{'DS Objects'} = $i++; $rscountertable{'DS Objects in Error'} = $i++; $rscountertable{'DS Bindings'} = $i++; $rscountertable{'DS Bindings in Error'} = $i++; $rscountertable{'Replica Sets Created'} = $i++; $rscountertable{'Replica Sets Deleted'} = $i++; $rscountertable{'Replica Sets Removed'} = $i++; $rscountertable{'Replica Sets Started'} = $i++; $rscountertable{'Threads started'} = $i++; $rscountertable{'Fetch Blocks Received in Bytes'} = $i++; $rscountertable{'Threads exited'} = $i++; } __END__ :endofperl @perl %~dpn0.cmd %* ",16171,True,2836.3198858126375,median "cmd_/home/zrd/openvswitch-2.5.0/datapath/linux/flow_table.o := gcc -Wp,-MD,/home/zrd/openvswitch-2.5.0/datapath/linux/.flow_table.o.d -nostdinc -isystem /usr/lib/gcc/i686-linux-gnu/5/include -I/home/zrd/openvswitch-2.5.0/include -I/home/zrd/openvswitch-2.5.0/datapath/linux/compat -I/home/zrd/openvswitch-2.5.0/datapath/linux/compat/include -I./arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m32 -msoft-float -mregparm=3 -freg-struct-return -fno-pic -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -DVERSION=\\""2.5.0\\"" -I/home/zrd/openvswitch-2.5.0/datapath/linux/.. -I/home/zrd/openvswitch-2.5.0/datapath/linux/.. -g -include /home/zrd/openvswitch-2.5.0/datapath/linux/kcompat.h -DMODULE -D""KBUILD_STR(s)=\\#s"" -D""KBUILD_BASENAME=KBUILD_STR(flow_table)"" -D""KBUILD_MODNAME=KBUILD_STR(openvswitch)"" -c -o /home/zrd/openvswitch-2.5.0/datapath/linux/.tmp_flow_table.o /home/zrd/openvswitch-2.5.0/datapath/linux/flow_table.c source_/home/zrd/openvswitch-2.5.0/datapath/linux/flow_table.o := /home/zrd/openvswitch-2.5.0/datapath/linux/flow_table.c deps_/home/zrd/openvswitch-2.5.0/datapath/linux/flow_table.o := \\ /home/zrd/openvswitch-2.5.0/datapath/linux/kcompat.h \\ include/generated/uapi/linux/version.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../flow.h \\ include/linux/cache.h \\ $(wildcard include/config/smp.h) \\ $(wildcard include/config/arch/has/cache/line/size.h) \\ include/uapi/linux/kernel.h \\ include/uapi/linux/sysinfo.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/types.h \\ include/linux/types.h \\ $(wildcard include/config/uid16.h) \\ $(wildcard include/config/lbdaf.h) \\ $(wildcard include/config/arch/dma/addr/t/64bit.h) \\ $(wildcard include/config/phys/addr/t/64bit.h) \\ $(wildcard include/config/64bit.h) \\ include/uapi/linux/types.h \\ arch/x86/include/uapi/asm/types.h \\ include/uapi/asm-generic/types.h \\ include/asm-generic/int-ll64.h \\ include/uapi/asm-generic/int-ll64.h \\ arch/x86/include/uapi/asm/bitsperlong.h \\ include/asm-generic/bitsperlong.h \\ include/uapi/asm-generic/bitsperlong.h \\ include/uapi/linux/posix_types.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/stddef.h \\ include/linux/stddef.h \\ include/uapi/linux/stddef.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/compiler.h \\ include/linux/compiler.h \\ $(wildcard include/config/sparse/rcu/pointer.h) \\ $(wildcard include/config/trace/branch/profiling.h) \\ $(wildcard include/config/profile/all/branches.h) \\ $(wildcard include/config/enable/must/check.h) \\ $(wildcard include/config/enable/warn/deprecated.h) \\ $(wildcard include/config/kprobes.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/compiler-gcc.h \\ include/linux/compiler-gcc.h \\ $(wildcard include/config/arch/supports/optimized/inlining.h) \\ $(wildcard include/config/optimize/inlining.h) \\ $(wildcard include/config/gcov/kernel.h) \\ $(wildcard include/config/arch/use/builtin/bswap.h) \\ arch/x86/include/asm/posix_types.h \\ $(wildcard include/config/x86/32.h) \\ arch/x86/include/uapi/asm/posix_types_32.h \\ include/uapi/asm-generic/posix_types.h \\ arch/x86/include/asm/cache.h \\ $(wildcard include/config/x86/l1/cache/shift.h) \\ $(wildcard include/config/x86/internode/cache/shift.h) \\ $(wildcard include/config/x86/vsmp.h) \\ include/linux/linkage.h \\ include/linux/stringify.h \\ include/linux/export.h \\ $(wildcard include/config/have/underscore/symbol/prefix.h) \\ $(wildcard include/config/modules.h) \\ $(wildcard include/config/modversions.h) \\ $(wildcard include/config/unused/symbols.h) \\ arch/x86/include/asm/linkage.h \\ $(wildcard include/config/x86/64.h) \\ $(wildcard include/config/x86/alignment/16.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/kernel.h \\ include/linux/kernel.h \\ $(wildcard include/config/preempt/voluntary.h) \\ $(wildcard include/config/debug/atomic/sleep.h) \\ $(wildcard include/config/mmu.h) \\ $(wildcard include/config/prove/locking.h) \\ $(wildcard include/config/panic/timeout.h) \\ $(wildcard include/config/tracing.h) \\ $(wildcard include/config/ftrace/mcount/record.h) \\ /usr/lib/gcc/i686-linux-gnu/5/include/stdarg.h \\ include/linux/bitops.h \\ arch/x86/include/asm/bitops.h \\ $(wildcard include/config/x86/cmov.h) \\ arch/x86/include/asm/alternative.h \\ $(wildcard include/config/paravirt.h) \\ arch/x86/include/asm/asm.h \\ arch/x86/include/asm/ptrace.h \\ $(wildcard include/config/x86/debugctlmsr.h) \\ arch/x86/include/asm/segment.h \\ $(wildcard include/config/cc/stackprotector.h) \\ $(wildcard include/config/x86/32/lazy/gs.h) \\ include/uapi/linux/const.h \\ arch/x86/include/asm/page_types.h \\ $(wildcard include/config/physical/start.h) \\ $(wildcard include/config/physical/align.h) \\ arch/x86/include/asm/page_32_types.h \\ $(wildcard include/config/highmem4g.h) \\ $(wildcard include/config/highmem64g.h) \\ $(wildcard include/config/page/offset.h) \\ $(wildcard include/config/x86/pae.h) \\ arch/x86/include/uapi/asm/ptrace.h \\ arch/x86/include/uapi/asm/ptrace-abi.h \\ arch/x86/include/asm/processor-flags.h \\ $(wildcard include/config/vm86.h) \\ arch/x86/include/uapi/asm/processor-flags.h \\ arch/x86/include/asm/paravirt_types.h \\ $(wildcard include/config/x86/local/apic.h) \\ $(wildcard include/config/pgtable/levels.h) \\ $(wildcard include/config/queued/spinlocks.h) \\ $(wildcard include/config/paravirt/debug.h) \\ arch/x86/include/asm/desc_defs.h \\ arch/x86/include/asm/kmap_types.h \\ $(wildcard include/config/debug/highmem.h) \\ include/asm-generic/kmap_types.h \\ arch/x86/include/asm/pgtable_types.h \\ $(wildcard include/config/kmemcheck.h) \\ $(wildcard include/config/mem/soft/dirty.h) \\ $(wildcard include/config/proc/fs.h) \\ arch/x86/include/asm/pgtable_32_types.h \\ $(wildcard include/config/highmem.h) \\ arch/x86/include/asm/pgtable-3level_types.h \\ include/asm-generic/pgtable-nopud.h \\ arch/x86/include/asm/spinlock_types.h \\ $(wildcard include/config/paravirt/spinlocks.h) \\ $(wildcard include/config/nr/cpus.h) \\ include/asm-generic/qspinlock_types.h \\ include/asm-generic/qrwlock_types.h \\ include/asm-generic/ptrace.h \\ arch/x86/include/asm/cpufeature.h \\ $(wildcard include/config/x86/feature/names.h) \\ $(wildcard include/config/x86/debug/static/cpu/has.h) \\ arch/x86/include/asm/required-features.h \\ $(wildcard include/config/x86/minimum/cpu/family.h) \\ $(wildcard include/config/math/emulation.h) \\ $(wildcard include/config/x86/cmpxchg64.h) \\ $(wildcard include/config/x86/use/3dnow.h) \\ $(wildcard include/config/x86/p6/nop.h) \\ $(wildcard include/config/matom.h) \\ arch/x86/include/asm/disabled-features.h \\ $(wildcard include/config/x86/intel/mpx.h) \\ arch/x86/include/asm/rmwcc.h \\ arch/x86/include/asm/barrier.h \\ $(wildcard include/config/x86/ppro/fence.h) \\ arch/x86/include/asm/nops.h \\ $(wildcard include/config/mk7.h) \\ include/asm-generic/bitops/fls64.h \\ include/asm-generic/bitops/find.h \\ $(wildcard include/config/generic/find/first/bit.h) \\ include/asm-generic/bitops/sched.h \\ arch/x86/include/asm/arch_hweight.h \\ include/asm-generic/bitops/const_hweight.h \\ include/asm-generic/bitops/le.h \\ arch/x86/include/uapi/asm/byteorder.h \\ include/linux/byteorder/little_endian.h \\ include/uapi/linux/byteorder/little_endian.h \\ include/linux/swab.h \\ include/uapi/linux/swab.h \\ arch/x86/include/uapi/asm/swab.h \\ include/linux/byteorder/generic.h \\ include/asm-generic/bitops/ext2-atomic-setbit.h \\ include/linux/log2.h \\ $(wildcard include/config/arch/has/ilog2/u32.h) \\ $(wildcard include/config/arch/has/ilog2/u64.h) \\ include/linux/typecheck.h \\ include/linux/printk.h \\ $(wildcard include/config/message/loglevel/default.h) \\ $(wildcard include/config/early/printk.h) \\ $(wildcard include/config/printk.h) \\ $(wildcard include/config/dynamic/debug.h) \\ include/linux/init.h \\ $(wildcard include/config/broken/rodata.h) \\ $(wildcard include/config/lto.h) \\ include/linux/kern_levels.h \\ include/linux/dynamic_debug.h \\ arch/x86/include/asm/div64.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/netlink.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/skbuff.h \\ include/linux/skbuff.h \\ $(wildcard include/config/nf/conntrack.h) \\ $(wildcard include/config/bridge/netfilter.h) \\ $(wildcard include/config/xfrm.h) \\ $(wildcard include/config/ipv6/ndisc/nodetype.h) \\ $(wildcard include/config/net/sched.h) \\ $(wildcard include/config/net/cls/act.h) \\ $(wildcard include/config/net/rx/busy/poll.h) \\ $(wildcard include/config/xps.h) \\ $(wildcard include/config/network/secmark.h) \\ $(wildcard include/config/network/phy/timestamping.h) \\ $(wildcard include/config/netfilter/xt/target/trace.h) \\ $(wildcard include/config/nf/tables.h) \\ include/linux/kmemcheck.h \\ include/linux/mm_types.h \\ $(wildcard include/config/split/ptlock/cpus.h) \\ $(wildcard include/config/arch/enable/split/pmd/ptlock.h) \\ $(wildcard include/config/have/cmpxchg/double.h) \\ $(wildcard include/config/have/aligned/struct/page.h) \\ $(wildcard include/config/transparent/hugepage.h) \\ $(wildcard include/config/memcg.h) \\ $(wildcard include/config/numa.h) \\ $(wildcard include/config/aio.h) \\ $(wildcard include/config/mmu/notifier.h) \\ $(wildcard include/config/cpumask/offstack.h) \\ $(wildcard include/config/numa/balancing.h) \\ $(wildcard include/config/compaction.h) \\ include/linux/auxvec.h \\ include/uapi/linux/auxvec.h \\ arch/x86/include/uapi/asm/auxvec.h \\ $(wildcard include/config/ia32/emulation.h) \\ include/linux/threads.h \\ $(wildcard include/config/base/small.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/list.h \\ include/linux/list.h \\ $(wildcard include/config/debug/list.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/poison.h \\ include/linux/poison.h \\ $(wildcard include/config/illegal/pointer/value.h) \\ include/linux/spinlock.h \\ $(wildcard include/config/debug/spinlock.h) \\ $(wildcard include/config/generic/lockbreak.h) \\ $(wildcard include/config/preempt.h) \\ $(wildcard include/config/debug/lock/alloc.h) \\ include/linux/preempt.h \\ $(wildcard include/config/preempt/count.h) \\ $(wildcard include/config/debug/preempt.h) \\ $(wildcard include/config/preempt/tracer.h) \\ $(wildcard include/config/preempt/notifiers.h) \\ arch/x86/include/asm/preempt.h \\ arch/x86/include/asm/percpu.h \\ $(wildcard include/config/x86/64/smp.h) \\ include/asm-generic/percpu.h \\ $(wildcard include/config/have/setup/per/cpu/area.h) \\ include/linux/percpu-defs.h \\ $(wildcard include/config/debug/force/weak/per/cpu.h) \\ include/linux/thread_info.h \\ $(wildcard include/config/compat.h) \\ $(wildcard include/config/debug/stack/usage.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/bug.h \\ include/linux/bug.h \\ $(wildcard include/config/generic/bug.h) \\ arch/x86/include/asm/bug.h \\ $(wildcard include/config/debug/bugverbose.h) \\ include/asm-generic/bug.h \\ $(wildcard include/config/bug.h) \\ $(wildcard include/config/generic/bug/relative/pointers.h) \\ arch/x86/include/asm/thread_info.h \\ arch/x86/include/asm/page.h \\ arch/x86/include/asm/page_32.h \\ $(wildcard include/config/debug/virtual.h) \\ $(wildcard include/config/flatmem.h) \\ $(wildcard include/config/x86/3dnow.h) \\ include/linux/string.h \\ $(wildcard include/config/binary/printf.h) \\ include/uapi/linux/string.h \\ arch/x86/include/asm/string.h \\ arch/x86/include/asm/string_32.h \\ include/linux/range.h \\ include/asm-generic/memory_model.h \\ $(wildcard include/config/discontigmem.h) \\ $(wildcard include/config/sparsemem/vmemmap.h) \\ $(wildcard include/config/sparsemem.h) \\ include/asm-generic/getorder.h \\ arch/x86/include/asm/processor.h \\ $(wildcard include/config/m486.h) \\ $(wildcard include/config/xen.h) \\ arch/x86/include/asm/math_emu.h \\ arch/x86/include/asm/sigcontext.h \\ arch/x86/include/uapi/asm/sigcontext.h \\ arch/x86/include/asm/current.h \\ arch/x86/include/asm/msr.h \\ arch/x86/include/asm/msr-index.h \\ arch/x86/include/uapi/asm/errno.h \\ include/uapi/asm-generic/errno.h \\ include/uapi/asm-generic/errno-base.h \\ arch/x86/include/asm/cpumask.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/cpumask.h \\ include/linux/cpumask.h \\ $(wildcard include/config/hotplug/cpu.h) \\ $(wildcard include/config/debug/per/cpu/maps.h) \\ include/linux/bitmap.h \\ arch/x86/include/uapi/asm/msr.h \\ include/uapi/linux/ioctl.h \\ arch/x86/include/uapi/asm/ioctl.h \\ include/asm-generic/ioctl.h \\ include/uapi/asm-generic/ioctl.h \\ arch/x86/include/asm/paravirt.h \\ arch/x86/include/asm/special_insns.h \\ arch/x86/include/asm/fpu/types.h \\ include/linux/personality.h \\ include/uapi/linux/personality.h \\ include/linux/math64.h \\ $(wildcard include/config/arch/supports/int128.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/err.h \\ include/linux/err.h \\ include/linux/irqflags.h \\ $(wildcard include/config/trace/irqflags.h) \\ $(wildcard include/config/irqsoff/tracer.h) \\ $(wildcard include/config/trace/irqflags/support.h) \\ arch/x86/include/asm/irqflags.h \\ include/linux/atomic.h \\ $(wildcard include/config/arch/has/atomic/or.h) \\ $(wildcard include/config/generic/atomic64.h) \\ arch/x86/include/asm/atomic.h \\ arch/x86/include/asm/cmpxchg.h \\ arch/x86/include/asm/cmpxchg_32.h \\ arch/x86/include/asm/atomic64_32.h \\ include/asm-generic/atomic-long.h \\ include/linux/bottom_half.h \\ include/linux/spinlock_types.h \\ include/linux/lockdep.h \\ $(wildcard include/config/lockdep.h) \\ $(wildcard include/config/lock/stat.h) \\ include/linux/rwlock_types.h \\ arch/x86/include/asm/spinlock.h \\ include/linux/jump_label.h \\ $(wildcard include/config/jump/label.h) \\ arch/x86/include/asm/jump_label.h \\ arch/x86/include/asm/qspinlock.h \\ include/asm-generic/qspinlock.h \\ arch/x86/include/asm/qrwlock.h \\ include/asm-generic/qrwlock.h \\ include/linux/rwlock.h \\ include/linux/spinlock_api_smp.h \\ $(wildcard include/config/inline/spin/lock.h) \\ $(wildcard include/config/inline/spin/lock/bh.h) \\ $(wildcard include/config/inline/spin/lock/irq.h) \\ $(wildcard include/config/inline/spin/lock/irqsave.h) \\ $(wildcard include/config/inline/spin/trylock.h) \\ $(wildcard include/config/inline/spin/trylock/bh.h) \\ $(wildcard include/config/uninline/spin/unlock.h) \\ $(wildcard include/config/inline/spin/unlock/bh.h) \\ $(wildcard include/config/inline/spin/unlock/irq.h) \\ $(wildcard include/config/inline/spin/unlock/irqrestore.h) \\ include/linux/rwlock_api_smp.h \\ $(wildcard include/config/inline/read/lock.h) \\ $(wildcard include/config/inline/write/lock.h) \\ $(wildcard include/config/inline/read/lock/bh.h) \\ $(wildcard include/config/inline/write/lock/bh.h) \\ $(wildcard include/config/inline/read/lock/irq.h) \\ $(wildcard include/config/inline/write/lock/irq.h) \\ $(wildcard include/config/inline/read/lock/irqsave.h) \\ $(wildcard include/config/inline/write/lock/irqsave.h) \\ $(wildcard include/config/inline/read/trylock.h) \\ $(wildcard include/config/inline/write/trylock.h) \\ $(wildcard include/config/inline/read/unlock.h) \\ $(wildcard include/config/inline/write/unlock.h) \\ $(wildcard include/config/inline/read/unlock/bh.h) \\ $(wildcard include/config/inline/write/unlock/bh.h) \\ $(wildcard include/config/inline/read/unlock/irq.h) \\ $(wildcard include/config/inline/write/unlock/irq.h) \\ $(wildcard include/config/inline/read/unlock/irqrestore.h) \\ $(wildcard include/config/inline/write/unlock/irqrestore.h) \\ include/linux/rbtree.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/rcupdate.h \\ include/linux/rcupdate.h \\ $(wildcard include/config/tiny/rcu.h) \\ $(wildcard include/config/tree/rcu.h) \\ $(wildcard include/config/preempt/rcu.h) \\ $(wildcard include/config/rcu/trace.h) \\ $(wildcard include/config/rcu/stall/common.h) \\ $(wildcard include/config/rcu/user/qs.h) \\ $(wildcard include/config/rcu/nocb/cpu.h) \\ $(wildcard include/config/tasks/rcu.h) \\ $(wildcard include/config/debug/objects/rcu/head.h) \\ $(wildcard include/config/prove/rcu.h) \\ $(wildcard include/config/rcu/boost.h) \\ $(wildcard include/config/rcu/nocb/cpu/all.h) \\ $(wildcard include/config/no/hz/full/sysidle.h) \\ include/linux/seqlock.h \\ include/linux/completion.h \\ include/linux/wait.h \\ include/uapi/linux/wait.h \\ include/linux/debugobjects.h \\ $(wildcard include/config/debug/objects.h) \\ $(wildcard include/config/debug/objects/free.h) \\ include/linux/ktime.h \\ include/linux/time.h \\ $(wildcard include/config/arch/uses/gettimeoffset.h) \\ include/linux/time64.h \\ include/uapi/linux/time.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/jiffies.h \\ include/linux/jiffies.h \\ include/linux/timex.h \\ include/uapi/linux/timex.h \\ include/uapi/linux/param.h \\ arch/x86/include/uapi/asm/param.h \\ include/asm-generic/param.h \\ $(wildcard include/config/hz.h) \\ include/uapi/asm-generic/param.h \\ arch/x86/include/asm/timex.h \\ arch/x86/include/asm/tsc.h \\ $(wildcard include/config/x86/tsc.h) \\ include/generated/timeconst.h \\ include/linux/timekeeping.h \\ include/linux/rcutree.h \\ include/linux/rwsem.h \\ $(wildcard include/config/rwsem/spin/on/owner.h) \\ $(wildcard include/config/rwsem/generic/spinlock.h) \\ include/linux/osq_lock.h \\ arch/x86/include/asm/rwsem.h \\ include/linux/uprobes.h \\ $(wildcard include/config/uprobes.h) \\ include/linux/errno.h \\ include/uapi/linux/errno.h \\ arch/x86/include/asm/uprobes.h \\ include/linux/notifier.h \\ include/linux/mutex.h \\ $(wildcard include/config/debug/mutexes.h) \\ $(wildcard include/config/mutex/spin/on/owner.h) \\ include/linux/srcu.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/workqueue.h \\ include/linux/workqueue.h \\ $(wildcard include/config/debug/objects/work.h) \\ $(wildcard include/config/freezer.h) \\ $(wildcard include/config/sysfs.h) \\ include/linux/timer.h \\ $(wildcard include/config/timer/stats.h) \\ $(wildcard include/config/debug/objects/timers.h) \\ $(wildcard include/config/no/hz/common.h) \\ include/linux/sysctl.h \\ $(wildcard include/config/sysctl.h) \\ include/uapi/linux/sysctl.h \\ include/linux/page-flags-layout.h \\ include/linux/numa.h \\ $(wildcard include/config/nodes/shift.h) \\ include/generated/bounds.h \\ arch/x86/include/asm/sparsemem.h \\ arch/x86/include/asm/mmu.h \\ $(wildcard include/config/modify/ldt/syscall.h) \\ include/linux/socket.h \\ arch/x86/include/uapi/asm/socket.h \\ include/uapi/asm-generic/socket.h \\ arch/x86/include/uapi/asm/sockios.h \\ include/uapi/asm-generic/sockios.h \\ include/uapi/linux/sockios.h \\ include/linux/uio.h \\ include/uapi/linux/uio.h \\ include/uapi/linux/socket.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/net.h \\ include/linux/net.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/random.h \\ include/linux/random.h \\ $(wildcard include/config/arch/random.h) \\ include/uapi/linux/random.h \\ include/linux/irqnr.h \\ include/uapi/linux/irqnr.h \\ arch/x86/include/asm/archrandom.h \\ include/linux/fcntl.h \\ include/uapi/linux/fcntl.h \\ arch/x86/include/uapi/asm/fcntl.h \\ include/uapi/asm-generic/fcntl.h \\ include/uapi/linux/net.h \\ include/linux/textsearch.h \\ include/linux/slab.h \\ $(wildcard include/config/debug/slab.h) \\ $(wildcard include/config/failslab.h) \\ $(wildcard include/config/slab.h) \\ $(wildcard include/config/slub.h) \\ $(wildcard include/config/slob.h) \\ $(wildcard include/config/zone/dma.h) \\ include/linux/gfp.h \\ $(wildcard include/config/zone/dma32.h) \\ $(wildcard include/config/deferred/struct/page/init.h) \\ $(wildcard include/config/pm/sleep.h) \\ $(wildcard include/config/cma.h) \\ include/linux/mmdebug.h \\ $(wildcard include/config/debug/vm.h) \\ include/linux/mmzone.h \\ $(wildcard include/config/force/max/zoneorder.h) \\ $(wildcard include/config/memory/isolation.h) \\ $(wildcard include/config/memory/hotplug.h) \\ $(wildcard include/config/have/memblock/node/map.h) \\ $(wildcard include/config/flat/node/mem/map.h) \\ $(wildcard include/config/page/extension.h) \\ $(wildcard include/config/no/bootmem.h) \\ $(wildcard include/config/have/memory/present.h) \\ $(wildcard include/config/have/memoryless/nodes.h) \\ $(wildcard include/config/need/node/memmap/size.h) \\ $(wildcard include/config/need/multiple/nodes.h) \\ $(wildcard include/config/have/arch/early/pfn/to/nid.h) \\ $(wildcard include/config/sparsemem/extreme.h) \\ $(wildcard include/config/have/arch/pfn/valid.h) \\ $(wildcard include/config/holes/in/zone.h) \\ $(wildcard include/config/arch/has/holes/memorymodel.h) \\ include/linux/nodemask.h \\ $(wildcard include/config/movable/node.h) \\ include/linux/pageblock-flags.h \\ $(wildcard include/config/hugetlb/page.h) \\ $(wildcard include/config/hugetlb/page/size/variable.h) \\ include/linux/memory_hotplug.h \\ $(wildcard include/config/memory/hotremove.h) \\ $(wildcard include/config/have/arch/nodedata/extension.h) \\ $(wildcard include/config/have/bootmem/info/node.h) \\ include/linux/topology.h \\ $(wildcard include/config/use/percpu/numa/node/id.h) \\ $(wildcard include/config/sched/smt.h) \\ include/linux/smp.h \\ $(wildcard include/config/up/late/init.h) \\ include/linux/llist.h \\ $(wildcard include/config/arch/have/nmi/safe/cmpxchg.h) \\ arch/x86/include/asm/smp.h \\ $(wildcard include/config/x86/io/apic.h) \\ $(wildcard include/config/x86/32/smp.h) \\ $(wildcard include/config/debug/nmi/selftest.h) \\ arch/x86/include/asm/mpspec.h \\ $(wildcard include/config/eisa.h) \\ $(wildcard include/config/x86/mpparse.h) \\ arch/x86/include/asm/mpspec_def.h \\ arch/x86/include/asm/x86_init.h \\ arch/x86/include/uapi/asm/bootparam.h \\ include/linux/screen_info.h \\ include/uapi/linux/screen_info.h \\ include/linux/apm_bios.h \\ include/uapi/linux/apm_bios.h \\ include/linux/edd.h \\ include/uapi/linux/edd.h \\ arch/x86/include/asm/e820.h \\ $(wildcard include/config/efi.h) \\ $(wildcard include/config/hibernation.h) \\ arch/x86/include/uapi/asm/e820.h \\ $(wildcard include/config/x86/pmem/legacy.h) \\ $(wildcard include/config/intel/txt.h) \\ include/linux/ioport.h \\ arch/x86/include/asm/ist.h \\ arch/x86/include/uapi/asm/ist.h \\ include/video/edid.h \\ $(wildcard include/config/x86.h) \\ include/uapi/video/edid.h \\ arch/x86/include/asm/apicdef.h \\ arch/x86/include/asm/apic.h \\ $(wildcard include/config/x86/x2apic.h) \\ include/linux/pm.h \\ $(wildcard include/config/vt/console/sleep.h) \\ $(wildcard include/config/pm.h) \\ $(wildcard include/config/pm/clk.h) \\ $(wildcard include/config/pm/generic/domains.h) \\ arch/x86/include/asm/fixmap.h \\ $(wildcard include/config/x86/vsyscall/emulation.h) \\ $(wildcard include/config/paravirt/clock.h) \\ $(wildcard include/config/provide/ohci1394/dma/init.h) \\ $(wildcard include/config/pci/mmconfig.h) \\ $(wildcard include/config/x86/intel/mid.h) \\ arch/x86/include/asm/acpi.h \\ $(wildcard include/config/acpi.h) \\ $(wildcard include/config/acpi/numa.h) \\ include/acpi/pdc_intel.h \\ arch/x86/include/asm/numa.h \\ $(wildcard include/config/numa/emu.h) \\ arch/x86/include/asm/topology.h \\ include/asm-generic/topology.h \\ arch/x86/include/asm/numa_32.h \\ arch/x86/include/asm/realmode.h \\ $(wildcard include/config/acpi/sleep.h) \\ arch/x86/include/asm/io.h \\ $(wildcard include/config/mtrr.h) \\ arch/x86/include/generated/asm/early_ioremap.h \\ include/asm-generic/early_ioremap.h \\ $(wildcard include/config/generic/early/ioremap.h) \\ include/asm-generic/iomap.h \\ $(wildcard include/config/has/ioport/map.h) \\ $(wildcard include/config/pci.h) \\ $(wildcard include/config/generic/iomap.h) \\ include/asm-generic/pci_iomap.h \\ $(wildcard include/config/no/generic/pci/ioport/map.h) \\ $(wildcard include/config/generic/pci/iomap.h) \\ include/xen/xen.h \\ $(wildcard include/config/xen/dom0.h) \\ $(wildcard include/config/xen/pvh.h) \\ include/xen/interface/xen.h \\ arch/x86/include/asm/xen/interface.h \\ arch/x86/include/asm/xen/interface_32.h \\ arch/x86/include/asm/pvclock-abi.h \\ arch/x86/include/asm/xen/hypervisor.h \\ arch/x86/include/asm/pvclock.h \\ include/linux/clocksource.h \\ $(wildcard include/config/arch/clocksource/data.h) \\ $(wildcard include/config/clocksource/watchdog.h) \\ $(wildcard include/config/clksrc/of.h) \\ arch/x86/include/asm/clocksource.h \\ include/asm-generic/fixmap.h \\ arch/x86/include/asm/idle.h \\ arch/x86/include/asm/io_apic.h \\ arch/x86/include/asm/irq_vectors.h \\ $(wildcard include/config/have/kvm.h) \\ $(wildcard include/config/pci/msi.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/percpu.h \\ include/linux/percpu.h \\ $(wildcard include/config/need/per/cpu/embed/first/chunk.h) \\ $(wildcard include/config/need/per/cpu/page/first/chunk.h) \\ include/linux/pfn.h \\ include/linux/kmemleak.h \\ $(wildcard include/config/debug/kmemleak.h) \\ include/linux/kasan.h \\ $(wildcard include/config/kasan.h) \\ $(wildcard include/config/kasan/shadow/offset.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/checksum.h \\ include/net/checksum.h \\ arch/x86/include/asm/uaccess.h \\ $(wildcard include/config/x86/intel/usercopy.h) \\ $(wildcard include/config/debug/strict/user/copy/checks.h) \\ arch/x86/include/asm/smap.h \\ $(wildcard include/config/x86/smap.h) \\ arch/x86/include/asm/uaccess_32.h \\ arch/x86/include/asm/checksum.h \\ arch/x86/include/asm/checksum_32.h \\ include/linux/in6.h \\ include/uapi/linux/in6.h \\ include/uapi/linux/libc-compat.h \\ include/linux/hrtimer.h \\ $(wildcard include/config/high/res/timers.h) \\ $(wildcard include/config/timerfd.h) \\ include/linux/timerqueue.h \\ include/linux/dma-mapping.h \\ $(wildcard include/config/has/dma.h) \\ $(wildcard include/config/arch/has/dma/set/coherent/mask.h) \\ $(wildcard include/config/have/dma/attrs.h) \\ $(wildcard include/config/need/dma/map/state.h) \\ include/linux/device.h \\ $(wildcard include/config/debug/devres.h) \\ $(wildcard include/config/pinctrl.h) \\ $(wildcard include/config/dma/cma.h) \\ $(wildcard include/config/of.h) \\ $(wildcard include/config/devtmpfs.h) \\ $(wildcard include/config/sysfs/deprecated.h) \\ include/linux/kobject.h \\ $(wildcard include/config/uevent/helper.h) \\ $(wildcard include/config/debug/kobject/release.h) \\ include/linux/sysfs.h \\ include/linux/kernfs.h \\ $(wildcard include/config/kernfs.h) \\ include/linux/idr.h \\ include/linux/kobject_ns.h \\ include/linux/stat.h \\ arch/x86/include/uapi/asm/stat.h \\ include/uapi/linux/stat.h \\ include/linux/uidgid.h \\ $(wildcard include/config/multiuser.h) \\ $(wildcard include/config/user/ns.h) \\ include/linux/highuid.h \\ include/linux/kref.h \\ include/linux/klist.h \\ include/linux/pinctrl/devinfo.h \\ include/linux/pinctrl/consumer.h \\ include/linux/seq_file.h \\ include/linux/pinctrl/pinctrl-state.h \\ include/linux/ratelimit.h \\ arch/x86/include/asm/device.h \\ $(wildcard include/config/x86/dev/dma/ops.h) \\ $(wildcard include/config/intel/iommu.h) \\ $(wildcard include/config/amd/iommu.h) \\ include/linux/pm_wakeup.h \\ include/linux/dma-attrs.h \\ include/linux/dma-direction.h \\ include/linux/scatterlist.h \\ $(wildcard include/config/debug/sg.h) \\ $(wildcard include/config/need/sg/dma/length.h) \\ $(wildcard include/config/arch/has/sg/chain.h) \\ include/linux/mm.h \\ $(wildcard include/config/ppc.h) \\ $(wildcard include/config/parisc.h) \\ $(wildcard include/config/metag.h) \\ $(wildcard include/config/ia64.h) \\ $(wildcard include/config/stack/growsup.h) \\ $(wildcard include/config/shmem.h) \\ $(wildcard include/config/debug/vm/rb.h) \\ $(wildcard include/config/debug/pagealloc.h) \\ $(wildcard include/config/hugetlbfs.h) \\ include/linux/debug_locks.h \\ $(wildcard include/config/debug/locking/api/selftests.h) \\ include/linux/bit_spinlock.h \\ include/linux/shrinker.h \\ include/linux/resource.h \\ include/uapi/linux/resource.h \\ arch/x86/include/uapi/asm/resource.h \\ include/asm-generic/resource.h \\ include/uapi/asm-generic/resource.h \\ include/linux/page_ext.h \\ $(wildcard include/config/page/owner.h) \\ include/linux/stacktrace.h \\ $(wildcard include/config/stacktrace.h) \\ $(wildcard include/config/user/stacktrace/support.h) \\ arch/x86/include/asm/pgtable.h \\ $(wildcard include/config/have/arch/soft/dirty.h) \\ arch/x86/include/asm/pgtable_32.h \\ $(wildcard include/config/highpte.h) \\ arch/x86/include/asm/pgtable-3level.h \\ include/asm-generic/pgtable.h \\ $(wildcard include/config/have/arch/huge/vmap.h) \\ include/linux/page-flags.h \\ $(wildcard include/config/pageflags/extended.h) \\ $(wildcard include/config/arch/uses/pg/uncached.h) \\ $(wildcard include/config/memory/failure.h) \\ $(wildcard include/config/swap.h) \\ $(wildcard include/config/ksm.h) \\ include/linux/huge_mm.h \\ include/linux/vmstat.h \\ $(wildcard include/config/vm/event/counters.h) \\ $(wildcard include/config/debug/tlbflush.h) \\ $(wildcard include/config/debug/vm/vmacache.h) \\ include/linux/vm_event_item.h \\ $(wildcard include/config/migration.h) \\ $(wildcard include/config/memory/balloon.h) \\ $(wildcard include/config/balloon/compaction.h) \\ arch/x86/include/asm/dma-mapping.h \\ $(wildcard include/config/isa.h) \\ $(wildcard include/config/x86/dma/remap.h) \\ include/linux/dma-debug.h \\ $(wildcard include/config/dma/api/debug.h) \\ arch/x86/include/asm/swiotlb.h \\ $(wildcard include/config/swiotlb.h) \\ include/linux/swiotlb.h \\ include/asm-generic/dma-coherent.h \\ $(wildcard include/config/have/generic/dma/coherent.h) \\ include/linux/dma-contiguous.h \\ include/asm-generic/dma-mapping-common.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/netdev_features.h \\ include/linux/netdev_features.h \\ include/linux/sched.h \\ $(wildcard include/config/sched/debug.h) \\ $(wildcard include/config/lockup/detector.h) \\ $(wildcard include/config/detect/hung/task.h) \\ $(wildcard include/config/core/dump/default/elf/headers.h) \\ $(wildcard include/config/sched/autogroup.h) \\ $(wildcard include/config/virt/cpu/accounting/native.h) \\ $(wildcard include/config/bsd/process/acct.h) \\ $(wildcard include/config/taskstats.h) \\ $(wildcard include/config/audit.h) \\ $(wildcard include/config/inotify/user.h) \\ $(wildcard include/config/fanotify.h) \\ $(wildcard include/config/epoll.h) \\ $(wildcard include/config/posix/mqueue.h) \\ $(wildcard include/config/keys.h) \\ $(wildcard include/config/perf/events.h) \\ $(wildcard include/config/sched/info.h) \\ $(wildcard include/config/task/delay/acct.h) \\ $(wildcard include/config/schedstats.h) \\ $(wildcard include/config/sched/mc.h) \\ $(wildcard include/config/fair/group/sched.h) \\ $(wildcard include/config/rt/group/sched.h) \\ $(wildcard include/config/cgroup/sched.h) \\ $(wildcard include/config/blk/dev/io/trace.h) \\ $(wildcard include/config/memcg/kmem.h) \\ $(wildcard include/config/compat/brk.h) \\ $(wildcard include/config/virt/cpu/accounting/gen.h) \\ $(wildcard include/config/sysvipc.h) \\ $(wildcard include/config/auditsyscall.h) \\ $(wildcard include/config/rt/mutexes.h) \\ $(wildcard include/config/block.h) \\ $(wildcard include/config/task/xacct.h) \\ $(wildcard include/config/cpusets.h) \\ $(wildcard include/config/cgroups.h) \\ $(wildcard include/config/futex.h) \\ $(wildcard include/config/fault/injection.h) \\ $(wildcard include/config/latencytop.h) \\ $(wildcard include/config/function/graph/tracer.h) \\ $(wildcard include/config/bcache.h) \\ $(wildcard include/config/arch/wants/dynamic/task/struct.h) \\ $(wildcard include/config/have/unstable/sched/clock.h) \\ $(wildcard include/config/irq/time/accounting.h) \\ $(wildcard include/config/no/hz/full.h) \\ $(wildcard include/config/have/copy/thread/tls.h) \\ include/uapi/linux/sched.h \\ include/linux/sched/prio.h \\ include/linux/capability.h \\ include/uapi/linux/capability.h \\ include/linux/plist.h \\ $(wildcard include/config/debug/pi/list.h) \\ include/linux/cputime.h \\ arch/x86/include/generated/asm/cputime.h \\ include/asm-generic/cputime.h \\ $(wildcard include/config/virt/cpu/accounting.h) \\ include/asm-generic/cputime_jiffies.h \\ include/linux/sem.h \\ include/uapi/linux/sem.h \\ include/linux/ipc.h \\ include/uapi/linux/ipc.h \\ arch/x86/include/uapi/asm/ipcbuf.h \\ include/uapi/asm-generic/ipcbuf.h \\ arch/x86/include/uapi/asm/sembuf.h \\ include/linux/shm.h \\ include/uapi/linux/shm.h \\ arch/x86/include/uapi/asm/shmbuf.h \\ include/uapi/asm-generic/shmbuf.h \\ arch/x86/include/asm/shmparam.h \\ include/linux/signal.h \\ $(wildcard include/config/old/sigaction.h) \\ include/uapi/linux/signal.h \\ arch/x86/include/asm/signal.h \\ arch/x86/include/uapi/asm/signal.h \\ include/uapi/asm-generic/signal-defs.h \\ arch/x86/include/uapi/asm/siginfo.h \\ include/asm-generic/siginfo.h \\ include/uapi/asm-generic/siginfo.h \\ include/linux/pid.h \\ include/linux/proportions.h \\ include/linux/percpu_counter.h \\ include/linux/seccomp.h \\ $(wildcard include/config/seccomp.h) \\ $(wildcard include/config/have/arch/seccomp/filter.h) \\ $(wildcard include/config/seccomp/filter.h) \\ include/uapi/linux/seccomp.h \\ arch/x86/include/asm/seccomp.h \\ arch/x86/include/asm/unistd.h \\ $(wildcard include/config/x86/x32/abi.h) \\ arch/x86/include/uapi/asm/unistd.h \\ arch/x86/include/generated/uapi/asm/unistd_32.h \\ include/asm-generic/seccomp.h \\ include/uapi/linux/unistd.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/rculist.h \\ include/linux/rculist.h \\ include/linux/rtmutex.h \\ $(wildcard include/config/debug/rt/mutexes.h) \\ include/linux/task_io_accounting.h \\ $(wildcard include/config/task/io/accounting.h) \\ include/linux/latencytop.h \\ include/linux/cred.h \\ $(wildcard include/config/debug/credentials.h) \\ $(wildcard include/config/security.h) \\ include/linux/key.h \\ include/linux/assoc_array.h \\ $(wildcard include/config/associative/array.h) \\ include/linux/selinux.h \\ $(wildcard include/config/security/selinux.h) \\ include/uapi/linux/magic.h \\ include/linux/cgroup-defs.h \\ include/uapi/linux/limits.h \\ include/linux/percpu-refcount.h \\ include/linux/percpu-rwsem.h \\ include/linux/cgroup_subsys.h \\ $(wildcard include/config/cgroup/cpuacct.h) \\ $(wildcard include/config/blk/cgroup.h) \\ $(wildcard include/config/cgroup/device.h) \\ $(wildcard include/config/cgroup/freezer.h) \\ $(wildcard include/config/cgroup/net/classid.h) \\ $(wildcard include/config/cgroup/perf.h) \\ $(wildcard include/config/cgroup/net/prio.h) \\ $(wildcard include/config/cgroup/hugetlb.h) \\ $(wildcard include/config/cgroup/debug.h) \\ include/net/flow_dissector.h \\ include/uapi/linux/if_ether.h \\ include/linux/splice.h \\ include/linux/pipe_fs_i.h \\ include/linux/jhash.h \\ include/linux/unaligned/packed_struct.h \\ include/linux/netlink.h \\ include/net/scm.h \\ $(wildcard include/config/security/network.h) \\ include/linux/security.h \\ $(wildcard include/config/security/network/xfrm.h) \\ $(wildcard include/config/security/path.h) \\ $(wildcard include/config/securityfs.h) \\ include/linux/nsproxy.h \\ include/uapi/linux/netlink.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/netlink.h \\ include/net/netlink.h \\ include/linux/in6.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/openvswitch.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/if_ether.h \\ include/linux/if_ether.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/flex_array.h \\ include/linux/flex_array.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/reciprocal_div.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/inet_ecn.h \\ include/net/inet_ecn.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/ip.h \\ include/linux/ip.h \\ include/uapi/linux/ip.h \\ include/net/inet_sock.h \\ $(wildcard include/config/ipv6.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/netdevice.h \\ include/linux/netdevice.h \\ $(wildcard include/config/dcb.h) \\ $(wildcard include/config/wlan.h) \\ $(wildcard include/config/ax25.h) \\ $(wildcard include/config/mac80211/mesh.h) \\ $(wildcard include/config/net/ipip.h) \\ $(wildcard include/config/net/ipgre.h) \\ $(wildcard include/config/ipv6/sit.h) \\ $(wildcard include/config/ipv6/tunnel.h) \\ $(wildcard include/config/rps.h) \\ $(wildcard include/config/netpoll.h) \\ $(wildcard include/config/bql.h) \\ $(wildcard include/config/rfs/accel.h) \\ $(wildcard include/config/fcoe.h) \\ $(wildcard include/config/net/poll/controller.h) \\ $(wildcard include/config/libfcoe.h) \\ $(wildcard include/config/wireless/ext.h) \\ $(wildcard include/config/net/switchdev.h) \\ $(wildcard include/config/vlan/8021q.h) \\ $(wildcard include/config/net/dsa.h) \\ $(wildcard include/config/tipc.h) \\ $(wildcard include/config/mpls/routing.h) \\ $(wildcard include/config/netfilter/ingress.h) \\ $(wildcard include/config/net/flow/limit.h) \\ include/linux/delay.h \\ arch/x86/include/asm/delay.h \\ include/asm-generic/delay.h \\ include/linux/prefetch.h \\ include/linux/dmaengine.h \\ $(wildcard include/config/async/tx/enable/channel/switch.h) \\ $(wildcard include/config/dma/engine.h) \\ $(wildcard include/config/rapidio/dma/engine.h) \\ $(wildcard include/config/async/tx/dma.h) \\ include/linux/dynamic_queue_limits.h \\ include/linux/ethtool.h \\ include/linux/compat.h \\ $(wildcard include/config/compat/old/sigaction.h) \\ $(wildcard include/config/odd/rt/sigaction.h) \\ include/uapi/linux/ethtool.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/net_namespace.h \\ $(wildcard include/config/net/ns.h) \\ include/net/net_namespace.h \\ $(wildcard include/config/ieee802154/6lowpan.h) \\ $(wildcard include/config/ip/sctp.h) \\ $(wildcard include/config/ip/dccp.h) \\ $(wildcard include/config/netfilter.h) \\ $(wildcard include/config/nf/defrag/ipv6.h) \\ $(wildcard include/config/wext/core.h) \\ $(wildcard include/config/ip/vs.h) \\ $(wildcard include/config/mpls.h) \\ include/net/flow.h \\ include/net/netns/core.h \\ include/net/netns/mib.h \\ $(wildcard include/config/xfrm/statistics.h) \\ include/net/snmp.h \\ include/uapi/linux/snmp.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/u64_stats_sync.h \\ include/linux/u64_stats_sync.h \\ include/net/netns/unix.h \\ include/net/netns/packet.h \\ include/net/netns/ipv4.h \\ $(wildcard include/config/ip/multiple/tables.h) \\ $(wildcard include/config/ip/route/classid.h) \\ $(wildcard include/config/ip/mroute.h) \\ $(wildcard include/config/ip/mroute/multiple/tables.h) \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/inet_frag.h \\ include/net/inet_frag.h \\ include/net/netns/ipv6.h \\ $(wildcard include/config/ipv6/multiple/tables.h) \\ $(wildcard include/config/ipv6/mroute.h) \\ $(wildcard include/config/ipv6/mroute/multiple/tables.h) \\ include/net/dst_ops.h \\ include/net/netns/ieee802154_6lowpan.h \\ include/net/netns/sctp.h \\ include/net/netns/dccp.h \\ include/net/netns/netfilter.h \\ include/linux/netfilter_defs.h \\ include/uapi/linux/netfilter.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/in.h \\ include/linux/in.h \\ include/uapi/linux/in.h \\ include/linux/module.h \\ $(wildcard include/config/module/sig.h) \\ $(wildcard include/config/modules/tree/lookup.h) \\ $(wildcard include/config/kallsyms.h) \\ $(wildcard include/config/tracepoints.h) \\ $(wildcard include/config/event/tracing.h) \\ $(wildcard include/config/livepatch.h) \\ $(wildcard include/config/module/unload.h) \\ $(wildcard include/config/constructors.h) \\ $(wildcard include/config/debug/set/module/ronx.h) \\ include/linux/kmod.h \\ include/linux/elf.h \\ arch/x86/include/asm/elf.h \\ arch/x86/include/asm/user.h \\ arch/x86/include/asm/user_32.h \\ arch/x86/include/asm/vdso.h \\ $(wildcard include/config/x86/x32.h) \\ arch/x86/include/asm/desc.h \\ arch/x86/include/uapi/asm/ldt.h \\ include/uapi/linux/elf.h \\ include/uapi/linux/elf-em.h \\ include/linux/moduleparam.h \\ $(wildcard include/config/alpha.h) \\ $(wildcard include/config/ppc64.h) \\ include/linux/rbtree_latch.h \\ arch/x86/include/asm/module.h \\ $(wildcard include/config/m586.h) \\ $(wildcard include/config/m586tsc.h) \\ $(wildcard include/config/m586mmx.h) \\ $(wildcard include/config/mcore2.h) \\ $(wildcard include/config/m686.h) \\ $(wildcard include/config/mpentiumii.h) \\ $(wildcard include/config/mpentiumiii.h) \\ $(wildcard include/config/mpentiumm.h) \\ $(wildcard include/config/mpentium4.h) \\ $(wildcard include/config/mk6.h) \\ $(wildcard include/config/mk8.h) \\ $(wildcard include/config/melan.h) \\ $(wildcard include/config/mcrusoe.h) \\ $(wildcard include/config/mefficeon.h) \\ $(wildcard include/config/mwinchipc6.h) \\ $(wildcard include/config/mwinchip3d.h) \\ $(wildcard include/config/mcyrixiii.h) \\ $(wildcard include/config/mviac3/2.h) \\ $(wildcard include/config/mviac7.h) \\ $(wildcard include/config/mgeodegx1.h) \\ $(wildcard include/config/mgeode/lx.h) \\ include/asm-generic/module.h \\ $(wildcard include/config/have/mod/arch/specific.h) \\ $(wildcard include/config/modules/use/elf/rel.h) \\ $(wildcard include/config/modules/use/elf/rela.h) \\ include/net/netns/x_tables.h \\ $(wildcard include/config/bridge/nf/ebtables.h) \\ include/net/netns/conntrack.h \\ $(wildcard include/config/nf/conntrack/proc/compat.h) \\ $(wildcard include/config/nf/conntrack/events.h) \\ $(wildcard include/config/nf/conntrack/labels.h) \\ $(wildcard include/config/nf/nat/needed.h) \\ include/linux/list_nulls.h \\ include/linux/netfilter/nf_conntrack_tcp.h \\ include/uapi/linux/netfilter/nf_conntrack_tcp.h \\ include/net/netns/nftables.h \\ include/net/netns/xfrm.h \\ include/uapi/linux/xfrm.h \\ include/net/flowcache.h \\ include/linux/interrupt.h \\ $(wildcard include/config/irq/forced/threading.h) \\ $(wildcard include/config/generic/irq/probe.h) \\ include/linux/irqreturn.h \\ include/linux/hardirq.h \\ include/linux/ftrace_irq.h \\ $(wildcard include/config/ftrace/nmi/enter.h) \\ include/linux/vtime.h \\ include/linux/context_tracking_state.h \\ $(wildcard include/config/context/tracking.h) \\ include/linux/static_key.h \\ arch/x86/include/asm/hardirq.h \\ $(wildcard include/config/x86/thermal/vector.h) \\ $(wildcard include/config/x86/mce/threshold.h) \\ $(wildcard include/config/x86/mce/amd.h) \\ $(wildcard include/config/hyperv.h) \\ include/linux/irq.h \\ $(wildcard include/config/irq/domain/hierarchy.h) \\ $(wildcard include/config/generic/pending/irq.h) \\ $(wildcard include/config/hardirqs/sw/resend.h) \\ $(wildcard include/config/generic/irq/legacy/alloc/hwirq.h) \\ $(wildcard include/config/generic/irq/legacy.h) \\ include/linux/irqhandler.h \\ include/linux/io.h \\ arch/x86/include/asm/irq.h \\ arch/x86/include/asm/irq_regs.h \\ include/linux/irqdesc.h \\ $(wildcard include/config/irq/preflow/fasteoi.h) \\ $(wildcard include/config/sparse/irq.h) \\ $(wildcard include/config/handle/domain/irq.h) \\ arch/x86/include/asm/hw_irq.h \\ $(wildcard include/config/hpet/timer.h) \\ $(wildcard include/config/dmar/table.h) \\ $(wildcard include/config/ht/irq.h) \\ $(wildcard include/config/x86/uv.h) \\ include/linux/profile.h \\ $(wildcard include/config/profiling.h) \\ arch/x86/include/asm/sections.h \\ $(wildcard include/config/debug/rodata.h) \\ include/asm-generic/sections.h \\ include/net/netns/mpls.h \\ include/linux/ns_common.h \\ include/linux/seq_file_net.h \\ include/net/dsa.h \\ $(wildcard include/config/net/dsa/hwmon.h) \\ include/linux/of.h \\ $(wildcard include/config/sparc.h) \\ $(wildcard include/config/of/dynamic.h) \\ $(wildcard include/config/attach/node.h) \\ $(wildcard include/config/detach/node.h) \\ $(wildcard include/config/add/property.h) \\ $(wildcard include/config/remove/property.h) \\ $(wildcard include/config/update/property.h) \\ $(wildcard include/config/no/change.h) \\ $(wildcard include/config/change/add.h) \\ $(wildcard include/config/change/remove.h) \\ $(wildcard include/config/of/resolve.h) \\ $(wildcard include/config/of/overlay.h) \\ include/linux/mod_devicetable.h \\ include/linux/uuid.h \\ include/uapi/linux/uuid.h \\ include/linux/property.h \\ include/linux/fwnode.h \\ include/linux/phy.h \\ include/linux/mii.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/if.h \\ include/uapi/linux/if.h \\ include/uapi/linux/hdlc/ioctl.h \\ include/uapi/linux/mii.h \\ include/linux/phy_fixed.h \\ $(wildcard include/config/fixed/phy.h) \\ include/net/dcbnl.h \\ include/uapi/linux/dcbnl.h \\ include/net/netprio_cgroup.h \\ include/linux/cgroup.h \\ include/uapi/linux/cgroupstats.h \\ include/uapi/linux/taskstats.h \\ include/linux/fs.h \\ $(wildcard include/config/fs/posix/acl.h) \\ $(wildcard include/config/cgroup/writeback.h) \\ $(wildcard include/config/ima.h) \\ $(wildcard include/config/fsnotify.h) \\ $(wildcard include/config/file/locking.h) \\ $(wildcard include/config/quota.h) \\ $(wildcard include/config/blk/dev/loop.h) \\ $(wildcard include/config/fs/dax.h) \\ include/linux/kdev_t.h \\ include/uapi/linux/kdev_t.h \\ include/linux/dcache.h \\ include/linux/rculist_bl.h \\ include/linux/list_bl.h \\ include/linux/lockref.h \\ $(wildcard include/config/arch/use/cmpxchg/lockref.h) \\ include/linux/path.h \\ include/linux/list_lru.h \\ include/linux/radix-tree.h \\ include/linux/semaphore.h \\ include/uapi/linux/fiemap.h \\ include/linux/migrate_mode.h \\ include/linux/blk_types.h \\ $(wildcard include/config/blk/dev/integrity.h) \\ include/uapi/linux/fs.h \\ include/linux/quota.h \\ $(wildcard include/config/quota/netlink/interface.h) \\ include/uapi/linux/dqblk_xfs.h \\ include/linux/dqblk_v1.h \\ include/linux/dqblk_v2.h \\ include/linux/dqblk_qtree.h \\ include/linux/projid.h \\ include/uapi/linux/quota.h \\ include/linux/nfs_fs_i.h \\ include/uapi/linux/neighbour.h \\ include/uapi/linux/netdevice.h \\ include/uapi/linux/if_packet.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/if_link.h \\ include/linux/if_link.h \\ include/uapi/linux/if_link.h \\ include/uapi/linux/if_bonding.h \\ include/linux/if_bridge.h \\ $(wildcard include/config/bridge.h) \\ $(wildcard include/config/bridge/igmp/snooping.h) \\ include/uapi/linux/if_bridge.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/sock.h \\ include/net/sock.h \\ $(wildcard include/config/net.h) \\ $(wildcard include/config/inet.h) \\ include/linux/uaccess.h \\ include/linux/page_counter.h \\ include/linux/memcontrol.h \\ $(wildcard include/config/memcg/swap.h) \\ include/linux/filter.h \\ $(wildcard include/config/bpf/jit.h) \\ arch/x86/include/asm/cacheflush.h \\ $(wildcard include/config/debug/rodata/test.h) \\ include/asm-generic/cacheflush.h \\ include/uapi/linux/filter.h \\ include/uapi/linux/bpf_common.h \\ include/uapi/linux/bpf.h \\ include/linux/rculist_nulls.h \\ include/linux/poll.h \\ include/uapi/linux/poll.h \\ arch/x86/include/uapi/asm/poll.h \\ include/uapi/asm-generic/poll.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/dst.h \\ include/net/dst.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/rtnetlink.h \\ include/linux/rtnetlink.h \\ $(wildcard include/config/net/ingress.h) \\ include/uapi/linux/rtnetlink.h \\ include/uapi/linux/if_addr.h \\ include/net/neighbour.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/rtnetlink.h \\ include/net/rtnetlink.h \\ include/net/tcp_states.h \\ include/uapi/linux/net_tstamp.h \\ include/net/request_sock.h \\ include/net/netns/hash.h \\ include/net/dsfield.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/ipv6.h \\ include/linux/ipv6.h \\ $(wildcard include/config/ipv6/router/pref.h) \\ $(wildcard include/config/ipv6/route/info.h) \\ $(wildcard include/config/ipv6/optimistic/dad.h) \\ $(wildcard include/config/ipv6/mip6.h) \\ $(wildcard include/config/ipv6/subtrees.h) \\ include/uapi/linux/ipv6.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/icmpv6.h \\ include/linux/icmpv6.h \\ include/uapi/linux/icmpv6.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/tcp.h \\ include/linux/tcp.h \\ $(wildcard include/config/tcp/md5sig.h) \\ include/net/inet_connection_sock.h \\ include/net/inet_timewait_sock.h \\ include/net/timewait_sock.h \\ include/uapi/linux/tcp.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/udp.h \\ include/linux/udp.h \\ include/uapi/linux/udp.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/ip_tunnels.h \\ include/linux/if_tunnel.h \\ include/uapi/linux/if_tunnel.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/ip.h \\ include/net/ip.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/route.h \\ include/net/route.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/inetpeer.h \\ include/net/inetpeer.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/ipv6.h \\ $(wildcard include/config/have/efficient/unaligned/access.h) \\ include/net/ipv6.h \\ include/net/if_inet6.h \\ include/net/ndisc.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/if_arp.h \\ include/linux/if_arp.h \\ $(wildcard include/config/firewire/net.h) \\ include/uapi/linux/if_arp.h \\ include/linux/hash.h \\ $(wildcard include/config/arch/has/fast/multiplier.h) \\ include/uapi/linux/in_route.h \\ include/uapi/linux/route.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/dst_metadata.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../datapath.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../compat.h \\ include/net/xfrm.h \\ $(wildcard include/config/xfrm/sub/policy.h) \\ $(wildcard include/config/xfrm/migrate.h) \\ include/uapi/linux/pfkeyv2.h \\ include/uapi/linux/ipsec.h \\ include/linux/audit.h \\ $(wildcard include/config/audit/compat/generic.h) \\ include/linux/ptrace.h \\ include/linux/pid_namespace.h \\ $(wildcard include/config/pid/ns.h) \\ include/uapi/linux/ptrace.h \\ include/uapi/linux/audit.h \\ $(wildcard include/config/change.h) \\ arch/x86/include/asm/syscall.h \\ arch/x86/include/asm/asm-offsets.h \\ include/generated/asm-offsets.h \\ include/net/ip6_fib.h \\ include/linux/ipv6_route.h \\ include/uapi/linux/ipv6_route.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/net/netfilter/ipv6/nf_defrag_ipv6.h \\ include/net/netfilter/ipv6/nf_defrag_ipv6.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../flow.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../flow_table.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../vlan.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/if_vlan.h \\ include/linux/if_vlan.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/etherdevice.h \\ include/linux/etherdevice.h \\ arch/x86/include/asm/unaligned.h \\ include/linux/unaligned/access_ok.h \\ include/linux/unaligned/generic.h \\ include/uapi/linux/if_vlan.h \\ include/net/llc_pdu.h \\ include/linux/llc.h \\ include/uapi/linux/llc.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/sctp.h \\ include/linux/sctp.h \\ include/uapi/linux/sctp.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/compat/include/linux/icmp.h \\ include/linux/icmp.h \\ include/uapi/linux/icmp.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../vlan.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/../flow_netlink.h \\ /home/zrd/openvswitch-2.5.0/datapath/linux/flow_table.o: $(deps_/home/zrd/openvswitch-2.5.0/datapath/linux/flow_table.o) $(deps_/home/zrd/openvswitch-2.5.0/datapath/linux/flow_table.o): ",16298,True,4487.732020668811,median "# Copyright (c) 2019-2020 LG Electronics, Inc. DESCRIPTION = ""All non-test packages for the target from files/crystal/cache.yaml"" LICENSE = ""MIT"" # ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_* variables are MACHINE specific PACKAGE_ARCH = ""${MACHINE_ARCH}"" inherit packagegroup inherit ros_distro_melodic PACKAGES = ""${PN}"" RDEPENDS_${PN} = ""${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES}"" # Requires Python 3; it is not used by any other ROS 1 package. RDEPENDS_${PN}_remove = ""catkin-virtualenv"" # Depends on blacklisted catkin-virtualenv RDEPENDS_${PN}_remove = ""haros-catkin"" # Contains only dev, dbg and staticdev files, so PN is empty and not created RDEPENDS_${PN}_remove = ""sophus"" # Contains only dev, dbg and staticdev files, so PN is empty and not created RDEPENDS_${PN}_remove = ""cloudwatch-metrics-common"" # Contains only dev, dbg and staticdev files, so PN is empty and not created RDEPENDS_${PN}_remove = ""lex-common"" # Contains only dev files, so PN is empty and not created RDEPENDS_${PN}_remove = ""qpmad"" # It is a fork of https://github.com/google/flatbuffers that's not used by any other ROS 1 package. RDEPENDS_${PN}_remove = ""flatbuffers"" # It is a ""catkin-ized"" edition of the upstream version that is not used by any other ROS 1 package. RDEPENDS_${PN}_remove = ""grpc"" # It is a ""catkin-ized"" edition of the upstream version that is not used by any other ROS 1 package. RDEPENDS_${PN}_remove = ""nanomsg"" # It has dependencies on Qt4 packages; it is not used by any other ROS 1 package. RDEPENDS_${PN}_remove = ""octovis"" # Expects jderobot header files in wrong directory (/opt/jderobot/include/jderobot/types/image.h) and not compatible with opencv version we're using RDEPENDS_${PN}_remove = ""jderobot-camviz"" # Generation of ROS package documentation will never be done on the target. RDEPENDS_${PN}_remove = ""rosdoc-lite"" # Depends on blacklisted rosdoc-lite RDEPENDS_${PN}_remove = ""jackal-tutorials"" RDEPENDS_${PN}_remove = ""odom-frame-publisher"" # Fetches depot_tools during do_configure and then tries to use vpython which isn't in dependencies RDEPENDS_${PN}_remove = ""webrtc"" RDEPENDS_${PN}_remove = ""webrtc-ros"" # Not compatible with newer libftdi included in meta-oe: https://github.com/kobuki-base/kobuki_ftdi/issues/3 RDEPENDS_${PN}_remove = ""kobuki-ftdi"" # ERROR: Nothing PROVIDES 'UNRESOLVED-python-requests-oauthlib' (but generated-recipes/jsk-3rdparty/rostwitter_2.1.13-1.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""rostwitter"" # ERROR: Nothing PROVIDES 'UNRESOLVED-python-mechanize' (but generated-recipes/wifi-ddwrt/wifi-ddwrt_0.2.0.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""wifi-ddwrt"" # ERROR: Nothing PROVIDES 'UNRESOLVED-python-docker' (but generated-recipes/dockeros/dockeros_1.1.0-1.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""dockeros"" # ERROR: Nothing PROVIDES 'python-twisted-core' (but generated-recipes/linux-networking/multi-interface-roam_1.0.16-1.bb DEPENDS on or otherwise requires it). Close matches: RDEPENDS_${PN}_remove = ""multi-interface-roam"" RDEPENDS_${PN}_remove = ""linux-networking"" # ERROR: Nothing PROVIDES 'UNRESOLVED-python-omniorb' (but generated-recipes/rtctree/rtctree_3.0.1.bb, generated-recipes/rtsprofile/rtsprofile_2.0.0-1.bb, generated-recipes/rtshell/rtshell_3.0.1-2.bb, generated-recipes/openrtm-aist-python/openrtm-aist-python_1.1.0.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""rtctree"" RDEPENDS_${PN}_remove = ""rtsprofile"" RDEPENDS_${PN}_remove = ""rtshell"" RDEPENDS_${PN}_remove = ""openrtm-aist-python"" # ERROR: Nothing PROVIDES 'UNRESOLVED-libxmlrpc-c++"" RDEPENDS_${PN}_remove = ""ifm3d"" RDEPENDS_${PN}_remove = ""ifm3d-core"" # ERROR: Nothing PROVIDES 'UNRESOLVED-python-libpgm-pip' (but generated-recipes/jsk-3rdparty/pgm-learner_2.1.13-1.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""pgm-learner"" ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_LIBREFLEXXESTYPE2_x86_64 = """" ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_LIBREFLEXXESTYPE2 = ""\\ libreflexxestype2 \\ ros-reflexxes \\ ipr-extern \\ "" ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_LIBNTCAN_x86 = """" ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_LIBNTCAN_x86_64 = """" ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_LIBNTCAN = ""\\ libntcan \\ cob-base-drive-chain \\ cob-canopen-motor \\ cob-extern \\ cob-generic-can \\ schunk-libm5api \\ schunk-modular-robotics \\ schunk-powercube-chain \\ schunk-sdh \\ schunk-simulated-tactile-sensors \\ "" ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_PROSILICA_GIGE_SDK_x86 = """" ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_PROSILICA_GIGE_SDK_x86_64 = """" ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_PROSILICA_GIGE_SDK_armv7a = ""${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'prosilica-gige-sdk prosilica-camera', '', d)}"" ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_PROSILICA_GIGE_SDK_armv7ve = ""${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'prosilica-gige-sdk prosilica-camera', '', d)}"" ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_PROSILICA_GIGE_SDK_ppc = """" ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_PROSILICA_GIGE_SDK = ""\\ prosilica-camera \\ prosilica-gige-sdk \\ "" ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_RC_GENICAM_API_x86 = """" ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_RC_GENICAM_API_x86_64 = """" ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_RC_GENICAM_API_armv7a = ""${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'rc-genicam-api', '', d)}"" ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_RC_GENICAM_API_armv7ve = ""${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'rc-genicam-api', '', d)}"" ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_RC_GENICAM_API_aarch64 = """" ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_RC_GENICAM_API = ""\\ rc-genicam-api \\ "" ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC = "" \\ ${ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_PROSILICA_GIGE_SDK} \\ ${ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_RC_GENICAM_API} \\ ${ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_LIBREFLEXXESTYPE2} \\ ${ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC_LIBNTCAN} \\ "" RDEPENDS_${PN}_remove = ""${ROS_SUPERFLORE_GENERATED_ARCH_SPECIFIC}"" # There is recipe for glfw in meta-oe in dunfell: # http://cgit.openembedded.org/meta-openembedded/commit/meta-oe/recipes-core/glfw/glfw_3.3.bb?id=a7464eaa69a7ee4734001aab2e232102e7135772 # but we don't have a backports layer from dunfell yet, lets skip it for now RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'glfw', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_GLFW}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_GLFW = "" \\ librealsense2 \\ realsense2-camera \\ "" # recipes depending on various unavailable python modules # ERROR: Nothing PROVIDES 'UNRESOLVED-python-cairosvg' (but generated-recipes/fiducials/aruco-detect_0.11.0-1.bb DEPENDS on or otherwise requires it) # ERROR: Nothing PROVIDES 'UNRESOLVED-python-joblib' (but generated-recipes/fiducials/aruco-detect_0.11.0-1.bb DEPENDS on or otherwise requires it) # ERROR: Nothing PROVIDES 'UNRESOLVED-python-urlgrabber' (but generated-recipes/jsk-visualization/jsk-rqt-plugins_2.1.5.bb DEPENDS on or otherwise requires it) # ERROR: Nothing PROVIDES 'UNRESOLVED-python-sklearn' (but generated-recipes/jsk-visualization/jsk-rqt-plugins_2.1.5.bb DEPENDS on or otherwise requires it) # ERROR: Nothing PROVIDES 'UNRESOLVED-python-cairo' (but generated-recipes/rqt-bag/rqt-bag-plugins_0.4.12.bb DEPENDS on or otherwise requires it) # ERROR: Nothing PROVIDES 'UNRESOLVED-python-opengl' (but generated-recipes/rqt-pose-view/rqt-pose-view_0.5.8.bb DEPENDS on or otherwise requires it) # ERROR: Nothing RPROVIDES 'UNRESOLVED-python-termcolor' (but generated-recipes/criutils/criutils_0.1.3-2.bb RDEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'python-deps', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_PYTHON_DEPS}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_PYTHON_DEPS = "" \\ aruco-detect \\ criutils \\ desktop \\ fiducials \\ handeye \\ jsk-rqt-plugins \\ rqt-bag-plugins \\ rqt-common-plugins \\ rqt-pose-view \\ rqt-py-trees \\ rqt-robot-plugins \\ viz \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'pyqt5', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_PYQT5}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_PYQT5 = "" \\ adi-driver \\ cob-command-tools \\ cob-dashboard \\ dataspeed-pds-rqt \\ fmi-adapter-examples \\ gl-dependency \\ gundam-rx78-control \\ jderobot-drones \\ pilz-status-indicator-rqt \\ python-qt-binding \\ qt-gui \\ qt-gui-app \\ qt-gui-core \\ qt-gui-cpp \\ ros-controllers \\ rosmon \\ rqt \\ rqt-action \\ rqt-bag \\ rqt-console \\ rqt-controller-manager \\ rqt-dep \\ rqt-drone-teleop \\ rqt-ez-publisher \\ rqt-graph \\ rqt-ground-robot-teleop \\ rqt-gui \\ rqt-gui-cpp \\ rqt-gui-py \\ rqt-image-view \\ rqt-joint-trajectory-controller \\ rqt-joint-trajectory-plot \\ rqt-launch \\ rqt-launchtree \\ rqt-logger-level \\ rqt-moveit \\ rqt-msg \\ rqt-multiplot \\ rqt-nav-view \\ rqt-plot \\ rqt-publisher \\ rqt-py-common \\ rqt-py-console \\ rqt-reconfigure \\ rqt-robot-dashboard \\ rqt-robot-monitor \\ rqt-robot-steering \\ rqt-rosmon \\ rqt-rotors \\ rqt-runtime-monitor \\ rqt-rviz \\ rqt-service-caller \\ rqt-shell \\ rqt-srv \\ rqt-tf-tree \\ rqt-top \\ rqt-topic \\ rqt-web \\ sick-safetyscanners \\ visualstates \\ webkit-dependency \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'vtk-qt', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_VTK_QT}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_VTK_QT = "" \\ ira-laser-tools \\ lvr2 \\ rc-cloud-accumulator \\ rtabmap \\ rtabmap-ros \\ simple-grasping \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'x11', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_X11}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_X11 = "" \\ cob-collision-monitor \\ cob-obstacle-distance-moveit \\ exotica-aico-solver \\ exotica-cartpole-dynamics-solver \\ exotica-collision-scene-fcl \\ exotica-collision-scene-fcl-latest \\ exotica-core-task-maps \\ exotica-core \\ exotica-ddp-solver \\ exotica-double-integrator-dynamics-solver \\ exotica-dynamics-solvers \\ exotica-examples \\ exotica-ik-solver \\ exotica-ilqg-solver \\ exotica-ilqr-solver \\ exotica-levenberg-marquardt-solver \\ exotica-ompl-control-solver \\ exotica-ompl-solver \\ exotica-pendulum-dynamics-solver \\ exotica-pinocchio-dynamics-solver \\ exotica-python \\ exotica-quadrotor-dynamics-solver \\ exotica-scipy-solver \\ exotica-time-indexed-rrt-connect-solver \\ fsrobo-r-trajectory-filters \\ image-pipeline \\ image-view \\ image-view2 \\ industrial-core \\ industrial-trajectory-filters \\ mapviz \\ mapviz-plugins \\ moveit-commander \\ moveit-fake-controller-manager \\ moveit-planners \\ moveit-planners-ompl \\ moveit-plugins \\ moveit-pr2 \\ moveit-ros-benchmarks \\ moveit-ros-manipulation \\ moveit-ros-move-group \\ moveit-ros-perception \\ moveit-ros-planning \\ moveit-ros-planning-interface \\ moveit-ros-robot-interaction \\ moveit-ros-warehouse \\ moveit-runtime \\ moveit-sim-controller \\ mpc-local-planner-examples \\ multires-image \\ navigation-stage \\ navigation-tutorials \\ open-manipulator-controller \\ open-manipulator-with-tb3-tools \\ perception \\ pilz-industrial-motion-testutils \\ pilz-industrial-motion \\ pilz-robot-programming \\ pilz-trajectory-generation \\ pr2-moveit-config \\ rc-roi-manager-gui \\ rc-visard \\ robot-body-filter \\ roomba-stage \\ safe-teleop-stage \\ stage \\ stage-ros \\ teb-local-planner-tutorials \\ tile-map \\ tuw-checkerboard \\ tuw-marker-detection \\ uwsim-bullet \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'mongodb', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_MONGODB}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_MONGODB = "" \\ mongodb-log \\ mongodb-store \\ warehouse-ros-mongo \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'mongodb-legacy-cxx-driver', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_MONGODB_LEGACY_CXX_DRIVER}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_MONGODB_LEGACY_CXX_DRIVER = "" \\ mongodb-log \\ mongodb-store \\ warehouse-ros-mongo \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'vlc', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_VLC}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_VLC = "" \\ cob-android \\ cob-android-script-server \\ cob-cartesian-controller \\ cob-command-gui \\ cob-control \\ cob-default-robot-behavior \\ cob-driver \\ cob-helper-tools \\ cob-mimic \\ cob-monitoring \\ cob-moveit-interface \\ cob-script-server \\ cob-sound \\ cob-teleop \\ cob-twist-controller \\ "" # ERROR: Nothing PROVIDES 'UNRESOLVED-python-pyusb-pip' (but generated-recipes/jsk-3rdparty/respeaker-ros_2.1.13-1.bb DEPENDS on or otherwise requires it) # ERROR: Nothing PROVIDES 'UNRESOLVED-python-speechrecognition-pip' (but generated-recipes/jsk-3rdparty/respeaker-ros_2.1.13-1.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""respeaker-ros"" # ERROR: Nothing PROVIDES 'UNRESOLVED-python-catkin-tools' (but generated-recipes/jsk-3rdparty/collada-urdf-jsk-patch_2.1.13-1.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""collada-urdf-jsk-patch"" # ERROR: Nothing PROVIDES 'UNRESOLVED-python-avahi' (but generated-recipes/multimaster-fkie/master-discovery-fkie_0.8.12.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""master-discovery-fkie"" # ERROR: Nothing PROVIDES 'master-discovery-fkie' (but generated-recipes/multimaster-fkie/master-sync-fkie_0.8.12.bb DEPENDS on or otherwise requires it) # ERROR: Nothing RPROVIDES 'master-discovery-fkie' (but generated-recipes/multimaster-fkie/master-sync-fkie_0.8.12.bb, generated-recipes/cpr-multimaster-tools/multimaster-launch_0.0.2-1.bb RDEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""master-sync-fkie"" RDEPENDS_${PN}_remove = ""node-manager-fkie"" RDEPENDS_${PN}_remove = ""multimaster-fkie"" # ERROR: Nothing RPROVIDES 'master-discovery-fkie' (but generated-recipes/multimaster-fkie/master-sync-fkie_0.8.12.bb, generated-recipes/cpr-multimaster-tools/multimaster-launch_0.0.2-1.bb RDEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""multimaster-launch"" # ERROR: Nothing PROVIDES 'multimaster-launch' (but generated-recipes/husky/husky-control_0.4.2-1.bb DEPENDS on or otherwise requires it) # ERROR: Nothing RPROVIDES 'multimaster-launch' (but generated-recipes/husky/husky-control_0.4.2-1.bb, generated-recipes/cpr-multimaster-tools/cpr-multimaster-tools_0.0.2-1.bb RDEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""husky-control"" # ERROR: Nothing RPROVIDES 'multimaster-launch' (but generated-recipes/husky/husky-control_0.4.2-1.bb, generated-recipes/cpr-multimaster-tools/cpr-multimaster-tools_0.0.2-1.bb RDEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""cpr-multimaster-tools"" # ERROR: Nothing PROVIDES 'husky-control' (but generated-recipes/husky/husky-base_0.4.2-1.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""husky-base"" # ERROR: Nothing PROVIDES 'UNRESOLVED-python-cwiid' (but generated-recipes/joystick-drivers/wiimote_1.13.0-1.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""wiimote"" # ERROR: Nothing RPROVIDES 'wiimote' (but generated-recipes/joystick-drivers/joystick-drivers_1.13.0-1.bb RDEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""joystick-drivers"" # ERROR: Nothing PROVIDES 'UNRESOLVED-libopenvdb' (but generated-recipes/spatio-temporal-voxel-layer/spatio-temporal-voxel-layer_1.3.5-2.bb DEPENDS on or otherwise requires it) # ERROR: Nothing PROVIDES 'UNRESOLVED-libopenexr-dev' (but generated-recipes/spatio-temporal-voxel-layer/spatio-temporal-voxel-layer_1.3.5-2.bb DEPENDS on or otherwise requires it) # ERROR: Nothing PROVIDES 'UNRESOLVED-libopenvdb-dev' (but generated-recipes/spatio-temporal-voxel-layer/spatio-temporal-voxel-layer_1.3.5-2.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""spatio-temporal-voxel-layer"" # ERROR: Nothing PROVIDES 'UNRESOLVED-gfortran' (but generated-recipes/optpp-catkin/optpp-catkin_2.4.0-1.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""optpp-catkin"" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'openni', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_OPENNI}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_OPENNI = "" \\ openni-camera \\ openni-launch \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'openni2', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_OPENNI2}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_OPENNI2 = "" \\ fetch-bringup \\ openni2-camera \\ openni2-launch \\ "" # ERROR: Nothing PROVIDES 'UNRESOLVED-gforth' (but generated-recipes/wge100-driver/wge100-camera-firmware_1.8.2-1.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""wge100-camera-firmware"" # ERROR: Nothing PROVIDES 'UNRESOLVED-arduino-core' (but generated-recipes/rosserial/rosserial-arduino_0.8.0.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""rosserial-arduino"" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'coinor-libipopt', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_COINOR_LIBIPOPT}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_COINOR_LIBIPOPT = "" \\ control-box-rst \\ ifopt \\ mpc-local-planner-examples \\ mpc-local-planner \\ towr-ros \\ towr \\ "" # ERROR: Nothing PROVIDES 'UNRESOLVED-npm-native' (but generated-recipes/vapor-master/vapor-master_0.3.0.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""vapor-master"" # ERROR: Nothing PROVIDES 'UNRESOLVED-libopenscenegraph' (but generated-recipes/visualization-osg/osg-utils_1.0.2-2.bb, generated-recipes/visualization-osg/osg-interactive-markers_1.0.2-2.bb, generated-recipes/visualization-osg/osg-markers_1.0.2-2.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'osg', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_OSG}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_OSG = "" \\ osg-interactive-markers \\ osg-markers \\ osg-utils \\ uwsim \\ uwsim-osgbullet \\ uwsim-osgocean \\ uwsim-osgworks \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'muparser', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_MUPARSER}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_MUPARSER = "" \\ canopen-motor-node \\ pilz-robots \\ prbt-grippers \\ prbt-moveit-config \\ prbt-pg70-support \\ prbt-support \\ ros-canopen \\ "" # ERROR: Nothing PROVIDES 'UNRESOLVED-java' (but generated-recipes/nao-meshes/nao-meshes_0.1.12-2.bb, generated-recipes/pepper-meshes/pepper-meshes_0.2.4-3.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""nao-meshes"" RDEPENDS_${PN}_remove = ""pepper-meshes"" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'clang-tidy', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_CLANG_TIDY}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_CLANG_TIDY = "" \\ pilz-control \\ pilz-robots \\ pilz-status-indicator-rqt \\ pilz-utils \\ prbt-hardware-support \\ prbt-moveit-config \\ "" # ERROR: Nothing PROVIDES 'UNRESOLVED-libspnav-dev' (but generated-recipes/joystick-drivers/spacenav-node_1.13.0-1.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""spacenav-node"" # ERROR: Nothing PROVIDES 'UNRESOLVED-omniorb' (but generated-recipes/openrtm-aist/openrtm-aist_1.1.2-3.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""openrtm-aist"" # ERROR: Nothing PROVIDES 'ifopt' (but generated-recipes/towr/towr_1.4.1.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""towr"" # ERROR: Nothing PROVIDES 'pilz-utils' (but generated-recipes/pilz-robots/prbt-hardware-support_0.5.13-1.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""prbt-hardware-support"" # ERROR: Nothing PROVIDES 'osg-markers' (but generated-recipes/visualization-osg/visualization-osg_1.0.2-2.bb DEPENDS on or otherwise requires it) # ERROR: Nothing PROVIDES 'osg-utils' (but generated-recipes/visualization-osg/visualization-osg_1.0.2-2.bb DEPENDS on or otherwise requires it) # ERROR: Nothing PROVIDES 'osg-interactive-markers' (but generated-recipes/visualization-osg/visualization-osg_1.0.2-2.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""visualization-osg"" # ERROR: Nothing PROVIDES 'wge100-camera-firmware' (but generated-recipes/wge100-driver/wge100-driver_1.8.2-1.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""wge100-driver"" # ERROR: Nothing RPROVIDES 'canopen-motor-node' (but generated-recipes/pilz-robots/prbt-support_0.5.13-1.bb, generated-recipes/ros-canopen/ros-canopen_0.8.2-1.bb RDEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""prbt-support"" RDEPENDS_${PN}_remove = ""ros-canopen"" # ERROR: Nothing RPROVIDES 'UNRESOLVED-python-pandas' (but generated-recipes/rosbag-pandas/rosbag-pandas_0.5.3.bb RDEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""rosbag-pandas"" # ERROR: Nothing RPROVIDES 'UNRESOLVED-python-termcolor' (but generated-recipes/py-trees-ros/py-trees-ros_0.5.18.bb RDEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""py-trees-ros"" # ERROR: Nothing RPROVIDES 'UNRESOLVED-python-msgpack' (but generated-recipes/json-transport/json-transport_0.0.3.bb RDEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""json-transport"" # ERROR: Nothing RPROVIDES 'UNRESOLVED-python-catkin-lint' (but generated-recipes/fetch-tools/fetch-tools_0.2.1.bb RDEPENDS on or otherwise requires it) # ERROR: Nothing RPROVIDES 'UNRESOLVED-python-argcomplete' (but generated-recipes/fetch-tools/fetch-tools_0.2.1.bb RDEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""fetch-tools"" # Conflicts with platform fcl, causing # ERROR: moveit-core-1.0.2-1-r0 do_package: moveit-core: Multiple shlib providers for libfcl.so.0.6: fcl, fcl-catkin (used by files: /jenkins/home/workspace/jansa/webos-melodic-dunfell/webos-melodic-dunfell/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/moveit-core/1.0.2-1-r0/packages-split/moveit-core/usr/opt/ros/melodic/lib/libmoveit_collision_detection_fcl.so.1.0.2) RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'fcl-catkin', 'fcl-catkin', '', d)}"" # ERROR: Nothing RPROVIDES 'UNRESOLVED-network-manager' (but generated-recipes/network-autoconfig/network-autoconfig_0.1.1-2.bb RDEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""network-autoconfig"" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'python-scipy', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_PYTHON_SCIPY}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_PYTHON_SCIPY = "" \\ calibration \\ calibration-estimation \\ eca-a9-control \\ exotica-examples \\ exotica-scipy-solver \\ husky-bringup \\ husky-robot \\ pgm-learner \\ uuv-control-utils \\ uuv-trajectory-control \\ "" # ERROR: Nothing PROVIDES 'UNRESOLVED-libnlopt-dev' (but generated-recipes/trac-ik/trac-ik-lib_1.5.1-1.bb DEPENDS on or otherwise requires it) # ERROR: Nothing PROVIDES 'UNRESOLVED-libnlopt0' (but generated-recipes/trac-ik/trac-ik-lib_1.5.1-1.bb DEPENDS on or otherwise requires it) RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'trac-ik', 'trac-ik trac-ik-examples trac-ik-kinematics-plugin trac-ik-lib trac-ik-python', '', d)}"" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'ogre', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_OGRE}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_OGRE = "" \\ abb \\ abb-irb2400-moveit-config \\ abb-irb2400-support \\ abb-irb4400-support \\ abb-irb5400-support \\ abb-irb6600-support \\ abb-irb6640-moveit-config \\ abb-irb6640-support \\ adi-driver \\ agni-tf-tools \\ ainstein-radar-rviz-plugins \\ cartographer-rviz \\ cob-interactive-teleop \\ cob-manipulation \\ cob-mapping-slam \\ cob-moveit-bringup \\ cob-navigation \\ cob-navigation-global \\ cob-navigation-local \\ cob-navigation-slam \\ cob-obstacle-distance \\ distance-map \\ distance-map-rviz \\ exotica-examples \\ fake-joint \\ fake-joint-launch \\ fetch-moveit-config \\ fetch-ros \\ fkie-potree-rviz-plugin \\ franka-example-controllers \\ franka-ros \\ grid-map \\ grid-map-demos \\ grid-map-rviz-plugin \\ gundam-rx78-description \\ husky-desktop \\ husky-viz \\ imu-tools \\ jackal-desktop \\ jackal-viz \\ kvh-geo-fog-3d \\ kvh-geo-fog-3d-rviz \\ leuze-bringup \\ leuze-description \\ leuze-ros-drivers \\ librviz-tutorial \\ moveit \\ moveit-ros \\ moveit-ros-visualization \\ moveit-setup-assistant \\ moveit-visual-tools \\ neonavigation \\ neonavigation-launch \\ neonavigation-rviz-plugins \\ octomap-rviz-plugins \\ open-manipulator \\ open-manipulator-moveit \\ open-manipulator-with-tb3 \\ open-manipulator-with-tb3-waffle-moveit \\ open-manipulator-with-tb3-waffle-pi-moveit \\ panda-moveit-config \\ psen-scan \\ ridgeback-desktop \\ ridgeback-viz \\ rqt-rviz \\ rviz \\ rviz-imu-plugin \\ rviz-python-tutorial \\ rviz-plugin-tutorials \\ rviz-visual-tools \\ seed-r7-bringup \\ seed-r7-moveit-config \\ seed-r7-typef-moveit-config \\ slam-toolbox \\ trajectory-tracker-rviz-plugins \\ turtlebot3-automatic-parking-vision \\ urdf-tutorial \\ vision-visp \\ visp \\ visp-auto-tracker \\ visp-bridge \\ visp-camera-calibration \\ visp-hand2eye-calibration \\ visp-tracker \\ visualization-tutorials \\ warthog-desktop \\ warthog-viz \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'qt5', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_META_QT5}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_META_QT5 = "" \\ adi-driver \\ agni-tf-tools \\ ainstein-radar \\ ainstein-radar-rviz-plugins \\ asmach-tutorials \\ cartographer-rviz \\ cis-camera \\ cob-command-tools \\ cob-dashboard \\ cob-manipulation \\ common-tutorials \\ dataspeed-pds-rqt \\ desktop \\ desktop-full \\ distance-map \\ distance-map-rviz \\ dynamixel-workbench \\ dynamixel-workbench-single-manager-gui \\ fetch-bringup \\ fetch-gazebo-demo \\ fetch-ros \\ fetch-simulation \\ find-object-2d \\ fkie-potree-rviz-plugin \\ fmi-adapter-examples \\ franka-example-controllers \\ franka-ros \\ fsrobo-r \\ fsrobo-r-bringup \\ fsrobo-r-moveit-config \\ geometry-tutorials \\ gl-dependency \\ grid-map \\ grid-map-demos \\ grid-map-rviz-plugin \\ gundam-robot \\ gundam-rx78-control \\ husky-desktop \\ husky-viz \\ imagesift \\ imu-tools \\ jackal-desktop \\ jackal-viz \\ jderobot-drones \\ jsk-common \\ jsk-data \\ jsk-interactive \\ jsk-interactive-marker \\ jsk-interactive-test \\ jsk-pcl-ros \\ jsk-pcl-ros-utils \\ jsk-perception \\ jsk-recognition \\ jsk-recognition-utils \\ jsk-rqt-plugins \\ jsk-rviz-plugins \\ jsk-tools \\ jsk-visualization \\ kvh-geo-fog-3d \\ kvh-geo-fog-3d-rviz \\ libqt-concurrent \\ libqt-core \\ libqt-gui \\ libqt-opengl \\ libqt-opengl-rosdev \\ libqt-rosdev \\ libqt-svg-rosdev \\ libqt-network \\ libqt-widgets \\ librviz-tutorial \\ linux-networking \\ lvr2 \\ mapviz \\ mapviz-plugins \\ mir-gazebo \\ mir-robot \\ moveit \\ moveit-ros \\ moveit-ros-visualization \\ moveit-setup-assistant \\ mrpt-bridge \\ multi-map-server \\ multimaster-fkie \\ multires-image \\ neonavigation \\ neonavigation-launch \\ neonavigation-rviz-plugins \\ node-manager-fkie \\ octomap-rviz-plugins \\ open-manipulator \\ open-manipulator-control-gui \\ open-manipulator-with-tb3 \\ panda-moveit-config \\ pilz-robots \\ pilz-status-indicator-rqt \\ plotjuggler \\ pr2eus-tutorials \\ prbt-gazebo \\ prbt-grippers \\ prbt-moveit-config \\ prbt-pg70-support \\ python-qt-binding \\ qt-dotgraph \\ qt-gui \\ qt-gui-app \\ qt-gui-core \\ qt-gui-cpp \\ qt-gui-py-common \\ qt-qmake \\ rc-cloud-accumulator \\ ridgeback-desktop \\ ridgeback-viz \\ ros-controllers \\ ros-tutorials \\ rosbag-editor \\ rosmon \\ rqt \\ rqt-action \\ rqt-bag \\ rqt-bag-plugins \\ rqt-common-plugins \\ rqt-console \\ rqt-controller-manager \\ rqt-dep \\ rqt-drone-teleop \\ rqt-ez-publisher \\ rqt-graph \\ rqt-ground-robot-teleop \\ rqt-gui \\ rqt-gui-cpp \\ rqt-gui-py \\ rqt-image-view \\ rqt-joint-trajectory-controller \\ rqt-joint-trajectory-plot \\ rqt-launch \\ rqt-launchtree \\ rqt-logger-level \\ rqt-moveit \\ rqt-msg \\ rqt-multiplot \\ rqt-nav-view \\ rqt-plot \\ rqt-pose-view \\ rqt-publisher \\ rqt-py-common \\ rqt-py-console \\ rqt-py-trees \\ rqt-reconfigure \\ rqt-robot-dashboard \\ rqt-robot-monitor \\ rqt-robot-plugins \\ rqt-robot-steering \\ rqt-rosmon \\ rqt-rotors \\ rqt-runtime-monitor \\ rqt-rviz \\ rqt-service-caller \\ rqt-shell \\ rqt-srv \\ rqt-tf-tree \\ rqt-top \\ rqt-topic \\ rqt-web \\ rtabmap-ros \\ rviz \\ rviz-imu-plugin \\ rviz-plugin-tutorials \\ rviz-python-tutorial \\ rviz-visual-tools \\ seed-r7-bringup \\ seed-r7-moveit-config \\ seed-r7-ros-pkg \\ seed-r7-samples \\ seed-r7-typef-moveit-config \\ sick-safetyscanners \\ simple-grasping \\ slam-toolbox \\ swri-console \\ swri-profiler-tools \\ tile-map \\ towr-ros \\ trajectory-tracker-rviz-plugins \\ turtle-actionlib \\ turtle-tf \\ turtle-tf2 \\ turtlesim \\ turtlesim-dash-tutorial \\ urdf-sim-tutorial \\ urdf-tutorial \\ visualization-tutorials \\ visualstates \\ viz \\ warthog-desktop \\ warthog-viz \\ webkit-dependency \\ "" # OE won't let us build ffmpeg unless LICENSE_FLAGS_WHITELIST contains ""commercial"". RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'ffmpeg', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_FFMPEG}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_FFMPEG = "" \\ codec-image-transport \\ h264-encoder-core \\ h264-video-encoder \\ movie-publisher \\ mrpt1 \\ mrpt-bridge \\ mrpt-ekf-slam-2d \\ mrpt-ekf-slam-3d \\ mrpt-graphslam-2d \\ mrpt-icp-slam-2d \\ mrpt-local-obstacles \\ mrpt-localization \\ mrpt-map \\ mrpt-navigation \\ mrpt-rawlog \\ mrpt-rbpf-slam \\ mrpt-reactivenav2d \\ mrpt-slam \\ mvsim \\ parrot-arsdk \\ pose-cov-ops \\ rospilot \\ usb-cam \\ web-video-server \\ "" # Recipes which need widgets enabled in qtbase PACKAGECONFIG which webOS OSE explicitly disables: # meta-webos/recipes-qt/qt5/qtbase_git.bbappend:PACKAGECONFIG_remove = ""widgets"" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'qt5-widgets', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_QT5_WIDGETS}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_QT5_WIDGETS = "" \\ asmach-tutorials \\ common-tutorials \\ dynamixel-workbench \\ dynamixel-workbench-single-manager-gui \\ find-object-2d \\ geometry-tutorials \\ open-manipulator-control-gui \\ plotjuggler \\ ros-tutorials \\ swri-console \\ swri-profiler-tools \\ turtle-actionlib \\ turtle-tf \\ turtle-tf2 \\ turtlesim \\ turtlesim-dash-tutorial \\ "" # OE won't let us build gstreamer1.0-plugins-ugly unless LICENSE_FLAGS_WHITELIST contains ""commercial"". RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'gst-ugly', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_GSTREAMER1.0_PLUGINS_UGLY}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_GSTREAMER1.0_PLUGINS_UGLY = "" \\ audio-capture \\ audio-common \\ audio-play \\ cis-camera \\ imagesift \\ jsk-3rdparty \\ jsk-common \\ jsk-data \\ jsk-interactive \\ jsk-interactive-marker \\ jsk-interactive-test \\ jsk-pcl-ros-utils \\ jsk-pcl-ros \\ jsk-perception \\ jsk-pr2eus \\ jsk-recognition \\ jsk-recognition-utils \\ jsk-rviz-plugins \\ jsk-tools \\ jsk-topic-tools \\ jsk-visualization \\ julius-ros \\ multi-map-server \\ pr2eus \\ pr2eus-moveit \\ pr2eus-tutorials \\ resized-image-transport \\ ros-speech-recognition \\ sound-play \\ tts \\ voice-text \\ "" # NB. gazebo-msgs is a dependency of non-Gazebo packages, so it doesn't appear here. RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'gazebo', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_GAZEBO}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_GAZEBO = "" \\ ainstein-radar \\ ainstein-radar-gazebo-plugins \\ ati-force-torque \\ audibot \\ audibot-gazebo \\ blender-gazebo \\ cob-common \\ cob-description \\ cob-gazebo-objects \\ cob-gazebo-plugins \\ cob-gazebo-ros-control \\ cob-gazebo-worlds \\ cob-grasp-generation \\ cob-hardware-config \\ cob-manipulation \\ cob-moveit-bringup \\ desistek-saga-control \\ desistek-saga-description \\ desistek-saga-gazebo \\ desktop-full \\ drone-wrapper \\ eca-a9-description \\ eca-a9-gazebo \\ eusurdf \\ fetch-gazebo \\ fetch-gazebo-demo \\ fetch-simulation \\ fetchit-challenge \\ fsrobo-r \\ fsrobo-r-bringup \\ fsrobo-r-description \\ fsrobo-r-moveit-config \\ gazebo-plugins \\ gazebo-ros \\ gazebo-ros-control \\ gazebo-ros-pkgs \\ gazebo-rosdev \\ gundam-robot \\ gundam-rx78-gazebo \\ hector-gazebo \\ hector-gazebo-plugins \\ hector-gazebo-thermal-camera \\ hector-gazebo-worlds \\ hector-sensors-gazebo \\ husky-gazebo \\ husky-simulator \\ igvc-self-drive-description \\ igvc-self-drive-gazebo \\ igvc-self-drive-gazebo-plugins \\ igvc-self-drive-sim \\ jackal-gazebo \\ jackal-simulator \\ jderobot-assets \\ jderobot-drones \\ ksql-airport \\ lauv-control \\ lauv-description \\ lauv-gazebo \\ mcmillan-airfield \\ mecanum-gazebo-plugin \\ mir-description \\ mir-driver \\ mir-gazebo \\ mir-navigation \\ mir-robot \\ nmea-gps-plugin \\ open-manipulator-gazebo \\ open-manipulator-simulations \\ open-manipulator-with-tb3-gazebo \\ open-manipulator-with-tb3-simulations \\ pr2-controller-configuration-gazebo \\ pr2-gazebo \\ pr2-gazebo-plugins \\ pr2-simulator \\ prbt-gazebo \\ raw-description \\ rexrov2-control \\ rexrov2-description \\ rexrov2-gazebo \\ ridgeback-gazebo \\ ridgeback-gazebo-plugins \\ ridgeback-simulator \\ rotors-gazebo \\ rotors-gazebo-plugins \\ rotors-simulator \\ sand-island \\ simulators \\ turtlebot3-gazebo \\ turtlebot3-simulations \\ urdf-sim-tutorial \\ usv-gazebo-plugins \\ uuv-descriptions \\ uuv-gazebo-plugins \\ uuv-gazebo-ros-plugins \\ uuv-gazebo-worlds \\ uuv-sensor-ros-plugins \\ uuv-simulator \\ uuv-world-plugins \\ uuv-world-ros-plugins \\ velodyne-gazebo-plugins \\ velodyne-simulator \\ vrx-gazebo \\ wamv-gazebo \\ warthog-gazebo \\ warthog-simulator \\ wave-gazebo \\ wave-gazebo-plugins \\ yosemite-valley \\ "" # Depends on libqt4-dev from https://git.yoctoproject.org/cgit/cgit.cgi/meta-qt4 RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'qt4', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_META_QT4}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_META_QT4 = "" \\ hector-geotiff \\ hector-geotiff-plugins \\ hector-slam \\ hector-slam-launch \\ qt-ros \\ qt-tutorials \\ "" # Depends on vlc from meta-multimedia RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'multimedia', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_META_MULTIMEDIA}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_META_MULTIMEDIA = "" \\ cob-android \\ cob-android-script-server \\ cob-cartesian-controller \\ cob-command-gui \\ cob-command-tools \\ cob-control \\ cob-default-robot-behavior \\ cob-driver \\ cob-helper-tools \\ cob-mimic \\ cob-monitoring \\ cob-moveit-interface \\ cob-script-server \\ cob-sound \\ cob-teleop \\ cob-twist-controller \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'wxpython', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_WXPYTHON}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_WXPYTHON = "" \\ executive-smach-visualization \\ seed-r7-ros-pkg \\ seed-r7-samples \\ smach-viewer \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'lisp', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_LISP}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_LISP = "" \\ actionlib-lisp \\ cl-tf \\ cl-tf2 \\ cl-transforms \\ cl-transforms-stamped \\ cl-urdf \\ cl-utils \\ eus-assimp \\ euslisp \\ geneus \\ genlisp \\ jskeus \\ jsk-model-tools \\ jsk-roseus \\ ros-emacs-utils \\ rosemacs \\ roseus \\ roseus-mongo \\ roseus-smach \\ roseus-tutorials \\ roslisp \\ roslisp-common \\ roslisp-repl \\ roslisp-utilities \\ slime-ros \\ slime-wrapper \\ "" # Depends on mesa or libglu which requires opengl or vulkan DISTRO_FEATURE RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'opengl', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_OPENGL}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_OPENGL = "" \\ abb \\ abb-irb2400-moveit-config \\ abb-irb6640-moveit-config \\ cob-collision-monitor \\ cob-obstacle-distance-moveit \\ cob-moveit-bringup \\ cob-moveit-interface \\ desktop-full \\ exotica \\ exotica-aico-solver \\ exotica-cartpole-dynamics-solver \\ exotica-collision-scene-fcl \\ exotica-collision-scene-fcl-latest \\ exotica-core \\ exotica-core-task-maps \\ exotica-ddp-solver \\ exotica-double-integrator-dynamics-solver \\ exotica-dynamics-solvers \\ exotica-examples \\ exotica-ik-solver \\ exotica-ilqg-solver \\ exotica-ilqr-solver \\ exotica-levenberg-marquardt-solver \\ exotica-ompl-solver \\ exotica-ompl-control-solver \\ exotica-pendulum-dynamics-solver \\ exotica-pinocchio-dynamics-solver \\ exotica-python \\ exotica-quadrotor-dynamics-solver \\ exotica-scipy-solver \\ exotica-time-indexed-rrt-connect-solver \\ fetch-bringup \\ fetch-moveit-config \\ fetch-ros \\ fsrobo-r-trajectory-filters \\ industrial-core \\ industrial-trajectory-filters \\ libg2o \\ librealsense2 \\ moveit-commander \\ moveit-fake-controller-manager \\ moveit-planners \\ moveit-planners-ompl \\ moveit-plugins \\ moveit-pr2 \\ moveit-ros-benchmarks \\ moveit-ros-manipulation \\ moveit-ros-move-group \\ moveit-ros-perception \\ moveit-ros-planning \\ moveit-ros-planning-interface \\ moveit-ros-robot-interaction \\ moveit-ros-warehouse \\ moveit-runtime \\ moveit-sim-controller \\ moveit-visual-tools \\ mpc-local-planner-examples \\ navigation-stage \\ navigation-tutorials \\ open-manipulator-controller \\ open-manipulator-moveit \\ open-manipulator-with-tb3-tools \\ open-manipulator-with-tb3-waffle-moveit \\ open-manipulator-with-tb3-waffle-pi-moveit \\ pilz-industrial-motion-testutils \\ pilz-industrial-motion \\ pilz-robot-programming \\ pilz-trajectory-generation \\ pr2-moveit-config \\ realsense2-camera \\ rc-visard \\ robot-body-filter \\ roomba-stage \\ rtabmap \\ rtabmap-ros \\ safe-teleop-stage \\ seed-r7-navigation \\ simulators \\ stage \\ stage-ros \\ teb-local-planner \\ teb-local-planner-tutorials \\ uwsim \\ uwsim-bullet \\ uwsim-osgbullet \\ uwsim-osgocean \\ uwsim-osgworks \\ wxwidgets \\ rc-roi-manager-gui \\ rqt-pose-view \\ "" # do_configure failures RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'dccomms-ros', 'dccomms-ros' , '', d)}"" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'pyros-utils', 'pyros-utils' , '', d)}"" # do_compile failures RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'qt-gui-cpp', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_QT_GUI_CPP}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_QT_GUI_CPP = "" \\ mapviz-plugins \\ mapviz \\ multires-image \\ qt-gui-core \\ qt-gui-cpp \\ rosmon \\ rqt-gui-cpp \\ rqt-image-view \\ rqt-multiplot \\ rqt-rosmon \\ rqt-rviz \\ rqt \\ tile-map \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'assimp-devel', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_ASSIMP_DEVEL}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_ASSIMP_DEVEL = "" \\ assimp-devel \\ euscollada \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'bayesian-belief-networks', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_BAYESIAN_BELIEF_NETWORKS}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_BAYESIAN_BELIEF_NETWORKS = "" \\ bayesian-belief-networks \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'canopen-master', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_CANOPEN_MASTER}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_CANOPEN_MASTER = "" \\ canopen-402 \\ canopen-chain-node \\ canopen-master \\ cob-elmo-homing \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'cob-generic-can', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_COB_GENERIC_CAN}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_COB_GENERIC_CAN = "" \\ cob-base-drive-chain \\ cob-canopen-motor \\ cob-generic-can \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'cob-obstacle-distance-moveit', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_COB_OBSTACLE_DISTANCE_MOVEIT}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_COB_OBSTACLE_DISTANCE_MOVEIT = "" \\ cob-obstacle-distance-moveit \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'downward', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_DOWNWARD}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_DOWNWARD = "" \\ downward \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'exotica-collision-scene-fcl', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_EXOTICA_COLLISION_SCENE_FCL}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_EXOTICA_COLLISION_SCENE_FCL = "" \\ exotica \\ exotica-examples \\ exotica-collision-scene-fcl \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'fetch-drivers', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_FETCH_DRIVERS}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_FETCH_DRIVERS = "" \\ fetch-drivers \\ freight-bringup \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'ff', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_FF}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_FF = "" \\ ff \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'ffha', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_FFHA}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_FFHA = "" \\ ffha \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'fmi-adapter', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_FMI_ADAPTER}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_FMI_ADAPTER = "" \\ fmi-adapter \\ fmi-adapter-examples \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'hpp-fcl', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_HPP_FCL}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_HPP_FCL = "" \\ hpp-fcl \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'julius', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_JULIUS}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_JULIUS = "" \\ julius \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'libg2o', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_LIBG2O}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_LIBG2O = "" \\ libg2o \\ seed-r7-navigation \\ teb-local-planner \\ teb-local-planner-tutorials \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'libphidget21', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_LIBPHIDGET21}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_LIBPHIDGET21 = "" \\ libphidget21 \\ phidgets-api \\ phidgets-drivers \\ phidgets-high-speed-encoder \\ phidgets-ik \\ phidgets-imu \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'libphidgets', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_LIBPHIDGETS}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_LIBPHIDGETS = "" \\ cob-extern \\ cob-phidget-em-state \\ cob-phidget-power-state \\ cob-phidgets \\ cob-voltage-control \\ libphidgets \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'libsiftfast', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_LIBSIFTFAST}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_LIBSIFTFAST = "" \\ libsiftfast \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'libuvc-camera', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_LIBUVC_CAMERA}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_LIBUVC_CAMERA = "" \\ libuvc-camera \\ libuvc-ros \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'map-merge-3d', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_MAP_MERGE_3D}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_MAP_MERGE_3D = "" \\ map-merge-3d \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'multisense-ros', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_MULTISENSE_ROS}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_MULTISENSE_ROS = "" \\ multisense \\ multisense-bringup \\ multisense-cal-check \\ multisense-ros \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'naoqi-libqi', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_NAOQI_LIBQI}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_NAOQI_LIBQI = "" \\ naoqi-driver \\ naoqi-libqi \\ naoqi-libqicore \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'nerian-stereo', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_NERIAN_STEREO}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_NERIAN_STEREO = "" \\ nerian-stereo \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'nlopt', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_NLOPT}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_NLOPT = "" \\ nlopt \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'obj-to-pointcloud', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_OBJ_TO_POINTCLOUD}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_OBJ_TO_POINTCLOUD = "" \\ obj-to-pointcloud \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'odva-ethernetip', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_ODVA_ETHERNETIP}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_ODVA_ETHERNETIP = "" \\ odva-ethernetip \\ omron-os32c-driver \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'p2os-urdf', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_P2OS_URDF}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_P2OS_URDF = "" \\ p2os-launch \\ p2os-urdf \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'pr2-description', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_PR2_DESCRIPTION}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_PR2_DESCRIPTION = "" \\ moveit-pr2 \\ pr2-apps \\ pr2-calibration-controllers \\ pr2-common \\ pr2-controller-manager \\ pr2-controllers \\ pr2-description \\ pr2-gripper-action \\ pr2-mannequin-mode \\ pr2-mechanism \\ pr2-mechanism-controllers \\ pr2-moveit-config \\ pr2-teleop-general \\ robot-mechanism-controllers \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'rail-mesh-icp', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_RAIL_MESH_ICP}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_RAIL_MESH_ICP = "" \\ rail-mesh-icp \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'rc-dynamics-api', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_RC_DYNAMICS_API}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_RC_DYNAMICS_API = "" \\ rc-dynamics-api \\ rc-visard \\ rc-visard-driver \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'robot-body-filter', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_ROBOT_BODY_FILTER}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_ROBOT_BODY_FILTER = "" \\ robot-body-filter \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'ros-reflexxes', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_ROS_REFLEXXES}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_ROS_REFLEXXES = "" \\ ipr-extern \\ ros-reflexxes \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'rosbag-editor', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_ROSBAG_EDITOR}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_ROSBAG_EDITOR = "" \\ rosbag-editor \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'rosmon-core', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_ROSMON_CORE}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_ROSMON_CORE = "" \\ rosmon-core \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'sainsmart-relay-usb', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_SAINSMART_RELAY_USB}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_SAINSMART_RELAY_USB = "" \\ sainsmart-relay-usb \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'sbpl-lattice-planner', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_SBPL_LATTICE_PLANNER}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_SBPL_LATTICE_PLANNER = "" \\ navigation-experimental \\ sbpl-lattice-planner \\ sbpl-recovery \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'schunk-libm5api', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_SCHUNK_LIBM5API}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_SCHUNK_LIBM5API = "" \\ schunk-libm5api \\ schunk-modular-robotics \\ schunk-powercube-chain \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'schunk-sdh', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_SCHUNK_SDH}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_SCHUNK_SDH = "" \\ schunk-modular-robotics \\ schunk-sdh \\ schunk-simulated-tactile-sensors \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'soem', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_SOEM}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_SOEM = "" \\ soem \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'stage-ros', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_STAGE_ROS}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_STAGE_ROS = "" \\ navigation-stage \\ navigation-tutorials \\ roomba-stage \\ stage-ros \\ teb-local-planner-tutorials \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'usb-cam-controllers', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_USB_CAM_CONTROLLERS}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_USB_CAM_CONTROLLERS = "" \\ usb-cam-controllers \\ "" RDEPENDS_${PN}_remove = ""${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'wamv-description', '${ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_WAMV_DESCRIPTION}', '', d)}"" ROS_SUPERFLORE_GENERATED_WORLD_PACKAGES_DEPENDING_ON_WAMV_DESCRIPTION = "" \\ wamv-description \\ "" ",16291,True,3912.2783244498905,median "M:time F:G$SYSCLK_Init$0$0({2}DF,SV:S),C,0,0,0,0,0 F:G$UART0_Init$0$0({2}DF,SV:S),C,0,0,0,0,0 F:G$Sys_Init$0$0({2}DF,SV:S),C,0,0,0,0,0 F:G$putchar$0$0({2}DF,SV:S),C,0,0,0,0,0 F:G$getchar$0$0({2}DF,SC:U),C,0,0,0,0,0 F:G$getchar_nw$0$0({2}DF,SC:U),C,0,0,0,0,0 F:G$main$0$0({2}DF,SV:S),C,0,0,0,0,0 T:Ftime$tm[({0}S:S$tm_sec$0$0({1}SC:U),Z,0,0)({1}S:S$tm_min$0$0({1}SC:U),Z,0,0)({2}S:S$tm_hour$0$0({1}SC:U),Z,0,0)({3}S:S$tm_mday$0$0({1}SC:U),Z,0,0)({4}S:S$tm_mon$0$0({1}SC:U),Z,0,0)({5}S:S$tm_year$0$0({2}SI:S),Z,0,0)({7}S:S$tm_wday$0$0({1}SC:U),Z,0,0)({8}S:S$tm_yday$0$0({2}SI:S),Z,0,0)({10}S:S$tm_isdst$0$0({1}SC:U),Z,0,0)({11}S:S$tm_hundredth$0$0({1}SC:U),Z,0,0)] S:Ltime.getchar$c$1$10({1}SC:U),R,0,0,[] S:Ltime.getchar_nw$c$1$12({1}SC:U),R,0,0,[] S:Ltime.aligned_alloc$size$1$39({2}SI:U),E,0,0 S:Ltime.aligned_alloc$alignment$1$39({2}SI:U),E,0,0 S:G$P0$0$0({1}SC:U),I,0,0 S:G$SP$0$0({1}SC:U),I,0,0 S:G$DPL$0$0({1}SC:U),I,0,0 S:G$DPH$0$0({1}SC:U),I,0,0 S:G$P4$0$0({1}SC:U),I,0,0 S:G$P5$0$0({1}SC:U),I,0,0 S:G$P6$0$0({1}SC:U),I,0,0 S:G$PCON$0$0({1}SC:U),I,0,0 S:G$TCON$0$0({1}SC:U),I,0,0 S:G$TMOD$0$0({1}SC:U),I,0,0 S:G$TL0$0$0({1}SC:U),I,0,0 S:G$TL1$0$0({1}SC:U),I,0,0 S:G$TH0$0$0({1}SC:U),I,0,0 S:G$TH1$0$0({1}SC:U),I,0,0 S:G$CKCON$0$0({1}SC:U),I,0,0 S:G$PSCTL$0$0({1}SC:U),I,0,0 S:G$P1$0$0({1}SC:U),I,0,0 S:G$TMR3CN$0$0({1}SC:U),I,0,0 S:G$TMR3RLL$0$0({1}SC:U),I,0,0 S:G$TMR3RLH$0$0({1}SC:U),I,0,0 S:G$TMR3L$0$0({1}SC:U),I,0,0 S:G$TMR3H$0$0({1}SC:U),I,0,0 S:G$P7$0$0({1}SC:U),I,0,0 S:G$SCON$0$0({1}SC:U),I,0,0 S:G$SCON0$0$0({1}SC:U),I,0,0 S:G$SBUF$0$0({1}SC:U),I,0,0 S:G$SBUF0$0$0({1}SC:U),I,0,0 S:G$SPI0CFG$0$0({1}SC:U),I,0,0 S:G$SPI0DAT$0$0({1}SC:U),I,0,0 S:G$ADC1$0$0({1}SC:U),I,0,0 S:G$SPI0CKR$0$0({1}SC:U),I,0,0 S:G$CPT0CN$0$0({1}SC:U),I,0,0 S:G$CPT1CN$0$0({1}SC:U),I,0,0 S:G$P2$0$0({1}SC:U),I,0,0 S:G$EMI0TC$0$0({1}SC:U),I,0,0 S:G$EMI0CF$0$0({1}SC:U),I,0,0 S:G$PRT0CF$0$0({1}SC:U),I,0,0 S:G$P0MDOUT$0$0({1}SC:U),I,0,0 S:G$PRT1CF$0$0({1}SC:U),I,0,0 S:G$P1MDOUT$0$0({1}SC:U),I,0,0 S:G$PRT2CF$0$0({1}SC:U),I,0,0 S:G$P2MDOUT$0$0({1}SC:U),I,0,0 S:G$PRT3CF$0$0({1}SC:U),I,0,0 S:G$P3MDOUT$0$0({1}SC:U),I,0,0 S:G$IE$0$0({1}SC:U),I,0,0 S:G$SADDR0$0$0({1}SC:U),I,0,0 S:G$ADC1CN$0$0({1}SC:U),I,0,0 S:G$ADC1CF$0$0({1}SC:U),I,0,0 S:G$AMX1SL$0$0({1}SC:U),I,0,0 S:G$P3IF$0$0({1}SC:U),I,0,0 S:G$SADEN1$0$0({1}SC:U),I,0,0 S:G$EMI0CN$0$0({1}SC:U),I,0,0 S:G$_XPAGE$0$0({1}SC:U),I,0,0 S:G$P3$0$0({1}SC:U),I,0,0 S:G$OSCXCN$0$0({1}SC:U),I,0,0 S:G$OSCICN$0$0({1}SC:U),I,0,0 S:G$P74OUT$0$0({1}SC:U),I,0,0 S:G$FLSCL$0$0({1}SC:U),I,0,0 S:G$FLACL$0$0({1}SC:U),I,0,0 S:G$IP$0$0({1}SC:U),I,0,0 S:G$SADEN0$0$0({1}SC:U),I,0,0 S:G$AMX0CF$0$0({1}SC:U),I,0,0 S:G$AMX0SL$0$0({1}SC:U),I,0,0 S:G$ADC0CF$0$0({1}SC:U),I,0,0 S:G$P1MDIN$0$0({1}SC:U),I,0,0 S:G$ADC0L$0$0({1}SC:U),I,0,0 S:G$ADC0H$0$0({1}SC:U),I,0,0 S:G$SMB0CN$0$0({1}SC:U),I,0,0 S:G$SMB0STA$0$0({1}SC:U),I,0,0 S:G$SMB0DAT$0$0({1}SC:U),I,0,0 S:G$SMB0ADR$0$0({1}SC:U),I,0,0 S:G$ADC0GTL$0$0({1}SC:U),I,0,0 S:G$ADC0GTH$0$0({1}SC:U),I,0,0 S:G$ADC0LTL$0$0({1}SC:U),I,0,0 S:G$ADC0LTH$0$0({1}SC:U),I,0,0 S:G$T2CON$0$0({1}SC:U),I,0,0 S:G$T4CON$0$0({1}SC:U),I,0,0 S:G$RCAP2L$0$0({1}SC:U),I,0,0 S:G$RCAP2H$0$0({1}SC:U),I,0,0 S:G$TL2$0$0({1}SC:U),I,0,0 S:G$TH2$0$0({1}SC:U),I,0,0 S:G$SMB0CR$0$0({1}SC:U),I,0,0 S:G$PSW$0$0({1}SC:U),I,0,0 S:G$REF0CN$0$0({1}SC:U),I,0,0 S:G$DAC0L$0$0({1}SC:U),I,0,0 S:G$DAC0H$0$0({1}SC:U),I,0,0 S:G$DAC0CN$0$0({1}SC:U),I,0,0 S:G$DAC1L$0$0({1}SC:U),I,0,0 S:G$DAC1H$0$0({1}SC:U),I,0,0 S:G$DAC1CN$0$0({1}SC:U),I,0,0 S:G$PCA0CN$0$0({1}SC:U),I,0,0 S:G$PCA0MD$0$0({1}SC:U),I,0,0 S:G$PCA0CPM0$0$0({1}SC:U),I,0,0 S:G$PCA0CPM1$0$0({1}SC:U),I,0,0 S:G$PCA0CPM2$0$0({1}SC:U),I,0,0 S:G$PCA0CPM3$0$0({1}SC:U),I,0,0 S:G$PCA0CPM4$0$0({1}SC:U),I,0,0 S:G$ACC$0$0({1}SC:U),I,0,0 S:G$XBR0$0$0({1}SC:U),I,0,0 S:G$XBR1$0$0({1}SC:U),I,0,0 S:G$XBR2$0$0({1}SC:U),I,0,0 S:G$RCAP4L$0$0({1}SC:U),I,0,0 S:G$RCAP4H$0$0({1}SC:U),I,0,0 S:G$EIE1$0$0({1}SC:U),I,0,0 S:G$EIE2$0$0({1}SC:U),I,0,0 S:G$ADC0CN$0$0({1}SC:U),I,0,0 S:G$PCA0L$0$0({1}SC:U),I,0,0 S:G$PCA0CPL0$0$0({1}SC:U),I,0,0 S:G$PCA0CPL1$0$0({1}SC:U),I,0,0 S:G$PCA0CPL2$0$0({1}SC:U),I,0,0 S:G$PCA0CPL3$0$0({1}SC:U),I,0,0 S:G$PCA0CPL4$0$0({1}SC:U),I,0,0 S:G$RSTSRC$0$0({1}SC:U),I,0,0 S:G$B$0$0({1}SC:U),I,0,0 S:G$SCON1$0$0({1}SC:U),I,0,0 S:G$SBUF1$0$0({1}SC:U),I,0,0 S:G$SADDR1$0$0({1}SC:U),I,0,0 S:G$TL4$0$0({1}SC:U),I,0,0 S:G$TH4$0$0({1}SC:U),I,0,0 S:G$EIP1$0$0({1}SC:U),I,0,0 S:G$EIP2$0$0({1}SC:U),I,0,0 S:G$SPI0CN$0$0({1}SC:U),I,0,0 S:G$PCA0H$0$0({1}SC:U),I,0,0 S:G$PCA0CPH0$0$0({1}SC:U),I,0,0 S:G$PCA0CPH1$0$0({1}SC:U),I,0,0 S:G$PCA0CPH2$0$0({1}SC:U),I,0,0 S:G$PCA0CPH3$0$0({1}SC:U),I,0,0 S:G$PCA0CPH4$0$0({1}SC:U),I,0,0 S:G$WDTCN$0$0({1}SC:U),I,0,0 S:G$TMR0$0$0({2}SI:U),I,0,0 S:G$TMR1$0$0({2}SI:U),I,0,0 S:G$TMR2$0$0({2}SI:U),I,0,0 S:G$RCAP2$0$0({2}SI:U),I,0,0 S:G$TMR3$0$0({2}SI:U),I,0,0 S:G$TMR3RL$0$0({2}SI:U),I,0,0 S:G$TMR4$0$0({2}SI:U),I,0,0 S:G$RCAP4$0$0({2}SI:U),I,0,0 S:G$ADC0$0$0({2}SI:U),I,0,0 S:G$ADC0GT$0$0({2}SI:U),I,0,0 S:G$ADC0LT$0$0({2}SI:U),I,0,0 S:G$DAC0$0$0({2}SI:U),I,0,0 S:G$DAC1$0$0({2}SI:U),I,0,0 S:G$PCA0$0$0({2}SI:U),I,0,0 S:G$PCA0CP0$0$0({2}SI:U),I,0,0 S:G$PCA0CP1$0$0({2}SI:U),I,0,0 S:G$PCA0CP2$0$0({2}SI:U),I,0,0 S:G$PCA0CP3$0$0({2}SI:U),I,0,0 S:G$PCA0CP4$0$0({2}SI:U),I,0,0 S:G$P0_0$0$0({1}SX:U),J,0,0 S:G$P0_1$0$0({1}SX:U),J,0,0 S:G$P0_2$0$0({1}SX:U),J,0,0 S:G$P0_3$0$0({1}SX:U),J,0,0 S:G$P0_4$0$0({1}SX:U),J,0,0 S:G$P0_5$0$0({1}SX:U),J,0,0 S:G$P0_6$0$0({1}SX:U),J,0,0 S:G$P0_7$0$0({1}SX:U),J,0,0 S:G$IT0$0$0({1}SX:U),J,0,0 S:G$IE0$0$0({1}SX:U),J,0,0 S:G$IT1$0$0({1}SX:U),J,0,0 S:G$IE1$0$0({1}SX:U),J,0,0 S:G$TR0$0$0({1}SX:U),J,0,0 S:G$TF0$0$0({1}SX:U),J,0,0 S:G$TR1$0$0({1}SX:U),J,0,0 S:G$TF1$0$0({1}SX:U),J,0,0 S:G$P1_0$0$0({1}SX:U),J,0,0 S:G$P1_1$0$0({1}SX:U),J,0,0 S:G$P1_2$0$0({1}SX:U),J,0,0 S:G$P1_3$0$0({1}SX:U),J,0,0 S:G$P1_4$0$0({1}SX:U),J,0,0 S:G$P1_5$0$0({1}SX:U),J,0,0 S:G$P1_6$0$0({1}SX:U),J,0,0 S:G$P1_7$0$0({1}SX:U),J,0,0 S:G$RI$0$0({1}SX:U),J,0,0 S:G$RI0$0$0({1}SX:U),J,0,0 S:G$TI$0$0({1}SX:U),J,0,0 S:G$TI0$0$0({1}SX:U),J,0,0 S:G$RB8$0$0({1}SX:U),J,0,0 S:G$RB80$0$0({1}SX:U),J,0,0 S:G$TB8$0$0({1}SX:U),J,0,0 S:G$TB80$0$0({1}SX:U),J,0,0 S:G$REN$0$0({1}SX:U),J,0,0 S:G$REN0$0$0({1}SX:U),J,0,0 S:G$SM2$0$0({1}SX:U),J,0,0 S:G$SM20$0$0({1}SX:U),J,0,0 S:G$MCE0$0$0({1}SX:U),J,0,0 S:G$SM1$0$0({1}SX:U),J,0,0 S:G$SM10$0$0({1}SX:U),J,0,0 S:G$SM0$0$0({1}SX:U),J,0,0 S:G$SM00$0$0({1}SX:U),J,0,0 S:G$S0MODE$0$0({1}SX:U),J,0,0 S:G$P2_0$0$0({1}SX:U),J,0,0 S:G$P2_1$0$0({1}SX:U),J,0,0 S:G$P2_2$0$0({1}SX:U),J,0,0 S:G$P2_3$0$0({1}SX:U),J,0,0 S:G$P2_4$0$0({1}SX:U),J,0,0 S:G$P2_5$0$0({1}SX:U),J,0,0 S:G$P2_6$0$0({1}SX:U),J,0,0 S:G$P2_7$0$0({1}SX:U),J,0,0 S:G$EX0$0$0({1}SX:U),J,0,0 S:G$ET0$0$0({1}SX:U),J,0,0 S:G$EX1$0$0({1}SX:U),J,0,0 S:G$ET1$0$0({1}SX:U),J,0,0 S:G$ES0$0$0({1}SX:U),J,0,0 S:G$ES$0$0({1}SX:U),J,0,0 S:G$ET2$0$0({1}SX:U),J,0,0 S:G$EA$0$0({1}SX:U),J,0,0 S:G$P3_0$0$0({1}SX:U),J,0,0 S:G$P3_1$0$0({1}SX:U),J,0,0 S:G$P3_2$0$0({1}SX:U),J,0,0 S:G$P3_3$0$0({1}SX:U),J,0,0 S:G$P3_4$0$0({1}SX:U),J,0,0 S:G$P3_5$0$0({1}SX:U),J,0,0 S:G$P3_6$0$0({1}SX:U),J,0,0 S:G$P3_7$0$0({1}SX:U),J,0,0 S:G$PX0$0$0({1}SX:U),J,0,0 S:G$PT0$0$0({1}SX:U),J,0,0 S:G$PX1$0$0({1}SX:U),J,0,0 S:G$PT1$0$0({1}SX:U),J,0,0 S:G$PS0$0$0({1}SX:U),J,0,0 S:G$PS$0$0({1}SX:U),J,0,0 S:G$PT2$0$0({1}SX:U),J,0,0 S:G$SMBTOE$0$0({1}SX:U),J,0,0 S:G$SMBFTE$0$0({1}SX:U),J,0,0 S:G$AA$0$0({1}SX:U),J,0,0 S:G$SI$0$0({1}SX:U),J,0,0 S:G$STO$0$0({1}SX:U),J,0,0 S:G$STA$0$0({1}SX:U),J,0,0 S:G$ENSMB$0$0({1}SX:U),J,0,0 S:G$BUSY$0$0({1}SX:U),J,0,0 S:G$CPRL2$0$0({1}SX:U),J,0,0 S:G$CT2$0$0({1}SX:U),J,0,0 S:G$TR2$0$0({1}SX:U),J,0,0 S:G$EXEN2$0$0({1}SX:U),J,0,0 S:G$TCLK$0$0({1}SX:U),J,0,0 S:G$RCLK$0$0({1}SX:U),J,0,0 S:G$EXF2$0$0({1}SX:U),J,0,0 S:G$TF2$0$0({1}SX:U),J,0,0 S:G$P$0$0({1}SX:U),J,0,0 S:G$F1$0$0({1}SX:U),J,0,0 S:G$OV$0$0({1}SX:U),J,0,0 S:G$RS0$0$0({1}SX:U),J,0,0 S:G$RS1$0$0({1}SX:U),J,0,0 S:G$F0$0$0({1}SX:U),J,0,0 S:G$AC$0$0({1}SX:U),J,0,0 S:G$CY$0$0({1}SX:U),J,0,0 S:G$CCF0$0$0({1}SX:U),J,0,0 S:G$CCF1$0$0({1}SX:U),J,0,0 S:G$CCF2$0$0({1}SX:U),J,0,0 S:G$CCF3$0$0({1}SX:U),J,0,0 S:G$CCF4$0$0({1}SX:U),J,0,0 S:G$CR$0$0({1}SX:U),J,0,0 S:G$CF$0$0({1}SX:U),J,0,0 S:G$ADLJST$0$0({1}SX:U),J,0,0 S:G$AD0LJST$0$0({1}SX:U),J,0,0 S:G$ADWINT$0$0({1}SX:U),J,0,0 S:G$AD0WINT$0$0({1}SX:U),J,0,0 S:G$ADSTM0$0$0({1}SX:U),J,0,0 S:G$AD0CM0$0$0({1}SX:U),J,0,0 S:G$ADSTM1$0$0({1}SX:U),J,0,0 S:G$AD0CM1$0$0({1}SX:U),J,0,0 S:G$ADBUSY$0$0({1}SX:U),J,0,0 S:G$AD0BUSY$0$0({1}SX:U),J,0,0 S:G$ADCINT$0$0({1}SX:U),J,0,0 S:G$AD0INT$0$0({1}SX:U),J,0,0 S:G$ADCTM$0$0({1}SX:U),J,0,0 S:G$AD0TM$0$0({1}SX:U),J,0,0 S:G$ADCEN$0$0({1}SX:U),J,0,0 S:G$AD0EN$0$0({1}SX:U),J,0,0 S:G$SPIEN$0$0({1}SX:U),J,0,0 S:G$MSTEN$0$0({1}SX:U),J,0,0 S:G$SLVSEL$0$0({1}SX:U),J,0,0 S:G$TXBSY$0$0({1}SX:U),J,0,0 S:G$RXOVRN$0$0({1}SX:U),J,0,0 S:G$MODF$0$0({1}SX:U),J,0,0 S:G$WCOL$0$0({1}SX:U),J,0,0 S:G$SPIF$0$0({1}SX:U),J,0,0 S:G$SYSCLK_Init$0$0({2}DF,SV:S),C,0,0 S:G$UART0_Init$0$0({2}DF,SV:S),C,0,0 S:G$Sys_Init$0$0({2}DF,SV:S),C,0,0 S:G$getchar_nw$0$0({2}DF,SC:U),C,0,0 S:G$_print_format$0$0({2}DF,SI:S),C,0,0 S:G$printf_small$0$0({2}DF,SV:S),C,0,0 S:G$printf$0$0({2}DF,SI:S),C,0,0 S:G$vprintf$0$0({2}DF,SI:S),C,0,0 S:G$sprintf$0$0({2}DF,SI:S),C,0,0 S:G$vsprintf$0$0({2}DF,SI:S),C,0,0 S:G$puts$0$0({2}DF,SI:S),C,0,0 S:G$getchar$0$0({2}DF,SC:U),C,0,0 S:G$putchar$0$0({2}DF,SV:S),C,0,0 S:G$printf_fast$0$0({2}DF,SV:S),C,0,0 S:G$printf_fast_f$0$0({2}DF,SV:S),C,0,0 S:G$printf_tiny$0$0({2}DF,SV:S),C,0,0 S:G$atof$0$0({2}DF,SF:S),C,0,0 S:G$atoi$0$0({2}DF,SI:S),C,0,0 S:G$atol$0$0({2}DF,SL:S),C,0,0 S:G$_uitoa$0$0({2}DF,SV:S),C,0,0 S:G$_itoa$0$0({2}DF,SV:S),C,0,0 S:G$_ultoa$0$0({2}DF,SV:S),C,0,0 S:G$_ltoa$0$0({2}DF,SV:S),C,0,0 S:G$rand$0$0({2}DF,SI:S),C,0,0 S:G$srand$0$0({2}DF,SV:S),C,0,0 S:G$calloc$0$0({2}DF,DX,SV:S),C,0,0 S:G$malloc$0$0({2}DF,DX,SV:S),C,0,0 S:G$realloc$0$0({2}DF,DX,SV:S),C,0,0 S:G$aligned_alloc$0$0({2}DF,DG,SV:S),C,0,0 S:G$free$0$0({2}DF,SV:S),C,0,0 S:G$abs$0$0({2}DF,SI:S),C,0,0 S:G$labs$0$0({2}DF,SL:S),C,0,0 S:G$mblen$0$0({2}DF,SI:S),C,0,0 S:G$mbtowc$0$0({2}DF,SI:S),C,0,0 S:G$wctomb$0$0({2}DF,SI:S),C,0,0 S:G$time$0$0({2}DF,SL:U),C,0,0 S:G$gmtime$0$0({2}DF,DG,STtm:S),C,0,0 S:G$localtime$0$0({2}DF,DG,STtm:S),C,0,0 S:G$mktime$0$0({2}DF,SL:U),C,0,0 S:G$asctime$0$0({2}DF,DG,SC:U),C,0,0 S:G$ctime$0$0({2}DF,DG,SC:U),C,0,0 S:G$main$0$0({2}DF,SV:S),C,0,0 ",8228,True,2522.0541706121876,median "' Copyright (c) 2013-2016 Bruce A Henderson ' ' Based on the public domain Monkey ""trans"" by Mark Sibly ' ' This software is provided 'as-is', without any express or implied ' warranty. In no event will the authors be held liable for any damages ' arising from the use of this software. ' ' Permission is granted to anyone to use this software for any purpose, ' including commercial applications, and to alter it and redistribute it ' freely, subject to the following restrictions: ' ' 1. The origin of this software must not be misrepresented; you must not ' claim that you wrote the original software. If you use this software ' in a product, an acknowledgment in the product documentation would be ' appreciated but is not required. ' ' 2. Altered source versions must be plainly marked as such, and must not be ' misrepresented as being the original software. ' ' 3. This notice may not be removed or altered from any source ' distribution. ' SuperStrict Import ""config.bmx"" Include ""translator.bmx"" Include ""decl.bmx"" Include ""expr.bmx"" Include ""stmt.bmx"" Type TType Method ActualType:TType() Return Self End Method Method EqualsType:Int( ty:TType ) Return False End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) Return EqualsType( ty ) End Method Method WidensToType:Int( ty:TType ) Return False End Method Method DistanceToType:Int(ty:TType) Return T_MAX_DISTANCE End Method Method Semant:TType(option:Int = False) Return Self End Method Method GetClass:TClassDecl() Return Null End Method Method ToString$() Return ""??Type??"" End Method Method GetSize:Int() Return WORD_SIZE End Method Method ArrayOf:TArrayType() If Not _arrayOf Then _arrayOf=New TArrayType.Create( Self ) End If Return _arrayOf End Method Method OnCopy:TType() Abstract Global voidType:TVoidType=New TVoidType Global emptyArrayType:TArrayType=New TArrayType.Create( voidType ) Global objectType:TIdentType=New TIdentType.Create( ""brl.classes.object"" ) Global nullObjectType:TNullType=New TNullType Global stringType:TStringType=New TStringType Rem bbdoc: map to a pointer type End Rem Function MapToPointerType:TType(ty:TType) If ty = stringType Then ty = ty.Copy() End If Local flag:Int = T_POINTER & ty._flags If flag & T_PTR Then ty._flags :~ T_PTR ty._flags :| T_PTRPTR Return ty End If If flag & T_PTRPTR Then ty._flags :~ T_PTRPTR ty._flags :| T_PTRPTRPTR Return ty End If ty._flags :| T_PTR Return ty End Function Function MapToVarType:TType(ty:TType) If ty = stringType Then ty = ty.Copy() End If If Not (ty._flags & T_VAR) Then ty._flags :| T_VAR Return ty End If ' TODO : error if already mapped? Return ty End Function Rem bbdoc: map to a var pointer type End Rem Function MapToVarPointerType:TType(ty:TType) If ty = stringType Then ty = ty.Copy() End If If Not (ty._flags & T_VARPTR) Then ty._flags :| T_VARPTR Return ty End If Return Null End Function Rem bbdoc: map a var pointer to it's pointer equivalent (strip out var) End Rem Function MapVarPointerToPointerType:TType(ty:TType) If ty = stringType Then ty = ty.Copy() End If If (ty._flags & T_VARPTR) Then ty._flags :~ T_VARPTR Return MapToPointerType(ty) End If Return ty End Function Function MapPointerToPrim:TType(ty:TNumericType) Local nty:TType = ty.Copy() If ty._flags & T_PTRPTRPTR Then nty._flags :~ T_PTRPTRPTR nty._flags :| T_PTRPTR Else If ty._flags & T_PTRPTR Then nty._flags :~ T_PTRPTR nty._flags :| T_PTR Else If ty._flags & T_PTR Then nty._flags :~ T_PTR End If Return nty End Function Field _arrayOf:TArrayType ' one or more of ' T_VAR, T_VARPTR, T_PTR, T_PTRPTR, T_PTRPTRPTR Field _flags:Int Const T_VAR:Int = $01 Const T_VARPTR:Int = $02 Const T_PTR:Int = $04 Const T_PTRPTR:Int = $08 Const T_PTRPTRPTR:Int = $10 ' for strings Const T_CHAR_PTR:Int = $1000 Const T_SHORT_PTR:Int = $2000 Const T_POINTER:Int = T_PTR | T_PTRPTR | T_PTRPTRPTR Const T_BYTE:Int = $001 Const T_SHORT:Int = $002 Const T_INT:Int = $004 Const T_LONG:Int = $008 Const T_FLOAT:Int = $010 Const T_DOUBLE:Int = $020 Const T_STRING:Int = $040 Const T_ARRAY:Int = $080 Const T_FUNCTIONPTR:Int = $100 Const T_SIZET:Int = $200 Const T_UINT:Int = $400 Const T_ULONG:Int = $800 Const T_FLOAT64:Int = $1000 Const T_INT128:Int = $2000 Const T_FLOAT128:Int = $4000 Const T_DOUBLE128:Int = $8000 Const T_LPARAM:Int =$10000 Const T_WPARAM:Int =$20000 Const T_MAX_DISTANCE:Int = $FFFF Method Copy:TType() Local ty:TType = OnCopy() ty._flags = _flags ty._arrayOf = _arrayOf Return ty End Method Method ToStringParts:String() Local s:String If _flags & T_PTR Then s:+ "" Ptr"" Else If _flags & T_PTRPTR Then s:+ "" Ptr Ptr"" Else If _flags & T_PTRPTRPTR Then s:+ "" Ptr Ptr Ptr"" End If If _flags & T_VAR Then s:+ "" Var"" End If Return s End Method End Type Function NewType:TType(kind:Int = 0) Local ty:TType Select kind Case TType.T_BYTE ty = New TByteType Case TType.T_SHORT ty = New TShortType Case TType.T_INT ty = New TIntType Case TType.T_UINT ty = New TUIntType Case TType.T_LONG ty = New TLongType Case TType.T_ULONG ty = New TULongType Case TType.T_SIZET ty = New TSizeTType Case TType.T_INT128 ty = New TInt128Type Case TType.T_FLOAT ty = New TFloatType Case TType.T_DOUBLE ty = New TDoubleType Case TType.T_FLOAT64 ty = New TFloat64Type Case TType.T_FLOAT128 ty = New TFloat128Type Case TType.T_DOUBLE128 ty = New TDouble128Type Case TType.T_STRING ty = New TStringType Case TType.T_ARRAY ty = New TArrayType Case TType.T_FUNCTIONPTR ty = New TFunctionPtrType Default Err ""Don't have a pointer type for "" + kind End Select Return ty End Function Function NewPointerType:TType(kind:Int = 0) Local ty:TType = NewType(kind) Return TType.MapToPointerType(ty) End Function Function IsPointerType:Int(ty:TType, kind:Int = 0, pType:Int = TType.T_PTR) ' TODO : If kind Then If IsType(ty, kind) Then Return ty._flags & pType Else Return False End If Else Return ty._flags & pType End If End Function Function IsNumericType:Int(ty:TType) Return (TNumericType(ty) <> Null) And Not IsPointerType(ty, 0, TType.T_POINTER) End Function Function IsType:Int(ty:TType, kind:Int) Select kind Case TType.T_BYTE Return TByteType(ty) <> Null Case TType.T_SHORT Return TShortType(ty) <> Null Case TType.T_INT Return TIntType(ty) <> Null Case TType.T_UINT Return TUIntType(ty) <> Null Case TType.T_LONG Return TLongType(ty) <> Null Case TType.T_ULONG Return TULongType(ty) <> Null Case TType.T_SIZET Return TSizeTType(ty) <> Null Case TType.T_INT128 Return TInt128Type(ty) <> Null Case TType.T_FLOAT Return TFloatType(ty) <> Null Case TType.T_DOUBLE Return TDoubleType(ty) <> Null Case TType.T_FLOAT64 Return TFloat64Type(ty) <> Null Case TType.T_FLOAT128 Return TFloat128Type(ty) <> Null Case TType.T_DOUBLE128 Return TDouble128Type(ty) <> Null Case TType.T_STRING Return TStringType(ty) <> Null Case TType.T_ARRAY Return TArrayType(ty) <> Null Case TType.T_FUNCTIONPTR Return TFunctionPtrType(ty) <> Null End Select Return False End Function Type TVoidType Extends TType Method EqualsType:Int( ty:TType ) If opt_issuperstrict Then Return TVoidType( ty )<>Null Else Return TVoidType( ty )<>Null Or TIntType( ty) <> Null End If End Method Method ToString$() Return ""Void"" End Method Method OnCopy:TType() Return New TVoidType End Method End Type Type TNullType Extends TType Method EqualsType:Int( ty:TType ) Return False End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) Return True End Method Method ToString$() Return ""NULL"" End Method Method OnCopy:TType() Return New TNullType End Method End Type Type TBoolType Extends TType Method EqualsType:Int( ty:TType ) Return TBoolType( ty )<>Null End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or TBoolType( ty )<>Null Or (Not noExtendString And TStringType( ty )<>Null) End Method Method WidensToType:Int( ty:TType ) Return IsNumericType(ty) End Method Method ToString$() Return ""Bool"" End Method Method GetSize:Int() Return 4 End Method Method OnCopy:TType() Return New TBoolType End Method End Type Type TNumericType Extends TType Method ToPointer:TType() Local ty:TType = Copy() Return MapToPointerType(ty) End Method End Type Type TIntegralType Extends TNumericType End Type Type TIntType Extends TIntegralType Method EqualsType:Int( ty:TType ) Return TIntType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True,,,,SCOPE_CLASS_HEIRARCHY ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TIntType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) Or (WORD_SIZE=4 And TLParamType(ty)<>Null) End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TIntType(ty)<>Null And (ty._flags & T_VAR)) Or TLongType(ty)<>Null Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or (WORD_SIZE=8 And TLParamType(ty)<>Null) End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TIntType(ty)<>Null Then Return 0 End If If WORD_SIZE = 4 And TLParamType(ty)<>Null Then Return 0 End If If TLongType(ty)<>Null Then Return 2 End If If WORD_SIZE = 8 And TLParamType(ty)<>Null Then Return 2 End If If TFloatType(ty)<>Null Then Return 4 End If If TDoubleType(ty)<>Null Then Return 6 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TIntType End Method Method ToString$() Return ""Int"" + ToStringParts() End Method Method GetSize:Int() Return 4 End Method End Type Type TUIntType Extends TIntegralType Method EqualsType:Int( ty:TType ) Return TUIntType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TUIntType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) Or (WORD_SIZE=4 And (TSizeTType(ty)<>Null Or TWParamType(ty)<>Null)) End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TUIntType(ty)<>Null And (ty._flags & T_VAR)) Or TIntType(ty)<> Null Or TLongType(ty)<>Null Or TULongType(ty)<>Null Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or (WORD_SIZE=8 And TWParamType(ty)<>Null) End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If WORD_SIZE = 4 And (TSizeTType(ty)<>Null Or TWParamType(ty)<>Null) Then Return 0 End If If TUIntType(ty)<>Null Then Return 0 End If If TIntType(ty)<>Null Then Return 1 End If If WORD_SIZE = 8 And (TSizeTType(ty)<>Null Or TWParamType(ty)<>Null) Then Return 2 End If If TULongType(ty)<>Null Then Return 2 End If If TLongType(ty)<>Null Then Return 3 End If If TFloatType(ty)<>Null Then Return 4 End If If TDoubleType(ty)<>Null Then Return 6 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TUIntType End Method Method ToString$() Return ""UInt"" + ToStringParts() End Method Method GetSize:Int() Return 4 End Method End Type Type TSizeTType Extends TIntegralType Method EqualsType:Int( ty:TType ) Return TSizeTType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TSizeTType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) Or (WORD_SIZE=4 And TUIntType(ty)<>Null) Or (WORD_SIZE=8 And TULongType(ty)<>Null) End Method Method WidensToType:Int( ty:TType ) If WORD_SIZE = 4 Then Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or ((TSizeTType(ty)<>Null Or TUIntType(ty)<>Null) And (ty._flags & T_VAR)) Or TIntType(ty)<>Null Or TUIntType(ty)<>Null Or TLongType(ty)<>Null Or TULongType(ty)<>Null Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or TWParamType(ty)<>Null Or TLParamType(ty)<>Null Else Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or ((TSizeTType(ty)<>Null Or TULongType(ty)<>Null) And (ty._flags & T_VAR)) Or TLongType(ty)<>Null Or TULongType(ty)<>Null Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or TFloat64Type(ty)<>Null Or TWParamType(ty)<>Null Or TLParamType(ty)<>Null End If End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TSizeTType(ty)<>Null Then Return 0 End If If TWParamType(ty)<>Null Then Return 0 End If If WORD_SIZE = 4 Then If TUIntType(ty)<>Null Then Return 0 End If If TIntType(ty)<>Null Then Return 2 End If If TLParamType(ty)<>Null Then Return 2 End If If TULongType(ty)<>Null Then Return 3 End If If TLongType(ty)<>Null Then Return 4 End If If TFloatType(ty)<>Null Then Return 5 End If If TDoubleType(ty)<>Null Then Return 6 End If Else If TULongType(ty)<>Null Then Return 0 End If If TLongType(ty)<>Null Then Return 2 End If If TLParamType(ty)<>Null Then Return 2 End If If TFloatType(ty)<>Null Then Return 4 End If If TDoubleType(ty)<>Null Then Return 6 End If If TFloat64Type(ty)<>Null Then Return 8 End If End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TSizeTType End Method Method ToString$() Return ""size_t"" + ToStringParts() End Method Method GetSize:Int() Return WORD_SIZE End Method End Type Type TByteType Extends TIntegralType Method EqualsType:Int( ty:TType ) Return TByteType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If (_flags & T_VARPTR) And (TByteType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TByteVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TByteType(ty)<>Null And (ty._flags & T_VAR)) Or TShortType(ty)<>Null Or TIntType(ty)<>Null Or TUIntType(ty)<>Null Or TLongType(ty)<>Null Or TULongType(ty)<>Null Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or TWParamType(ty)<>Null Or TLParamType(ty)<>Null End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TByteType(ty)<>Null Then Return 0 End If If TShortType(ty)<>Null Then Return 2 End If If WORD_SIZE = 4 And (TSizeTType(ty)<>Null Or TWParamType(ty)<>Null) Then Return 4 End If If TUIntType(ty)<>Null Then Return 4 End If If TIntType(ty)<>Null Then Return 5 End If If WORD_SIZE = 4 And TLParamType(ty)<>Null Then Return 5 End If If WORD_SIZE = 8 And (TSizeTType(ty)<>Null Or TWParamType(ty)<>Null) Then Return 6 End If If TULongType(ty)<>Null Then Return 6 End If If TLongType(ty)<>Null Then Return 7 End If If WORD_SIZE = 8 And TLParamType(ty)<>Null Then Return 7 End If If TFloatType(ty)<>Null Then Return 8 End If If TDoubleType(ty)<>Null Then Return 10 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TByteType End Method Method ToString$() Return ""Byte"" + ToStringParts() End Method Method GetSize:Int() Return 1 End Method End Type Type TShortType Extends TIntegralType Method EqualsType:Int( ty:TType ) Return TShortType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TShortType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TShortVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TShortType(ty)<>Null And (ty._flags & T_VAR)) Or TIntType(ty)<>Null Or TUIntType(ty)<>Null Or TLongType(ty)<>Null Or TULongType(ty)<>Null Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or TWParamType(ty)<>Null Or TLParamType(ty)<>Null End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TShortType(ty)<>Null Then Return 0 End If If WORD_SIZE = 4 And (TSizeTType(ty)<>Null Or TWParamType(ty)<>Null) Then Return 2 End If If TUIntType(ty)<>Null Then Return 2 End If If TIntType(ty)<>Null Then Return 3 End If If WORD_SIZE = 4 And TLParamType(ty)<>Null Then Return 3 End If If WORD_SIZE = 8 And (TSizeTType(ty)<>Null Or TWParamType(ty)<>Null) Then Return 4 End If If TULongType(ty)<>Null Then Return 4 End If If TLongType(ty)<>Null Then Return 5 End If If WORD_SIZE = 8 And TLParamType(ty)<>Null Then Return 5 End If If TFloatType(ty)<>Null Then Return 6 End If If TDoubleType(ty)<>Null Then Return 8 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TShortType End Method Method ToString$() Return ""Short"" + ToStringParts() End Method Method GetSize:Int() Return 2 End Method End Type Type TLongType Extends TIntegralType ' BaH Long Method EqualsType:Int( ty:TType ) Return TLongType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TLongType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TLongVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TLongType(ty)<>Null And (ty._flags & T_VAR)) Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or TFloat64Type(ty)<>Null End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TLongType(ty)<>Null Then Return 0 End If If WORD_SIZE = 8 And TLParamType(ty)<>Null Then Return 0 End If If TFloatType(ty)<>Null Then Return 2 End If If TDoubleType(ty)<>Null Then Return 4 End If If TFloat64Type(ty)<>Null Then Return 6 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TLongType End Method Method ToString$() Return ""Long"" + ToStringParts() End Method End Type Type TULongType Extends TIntegralType Method EqualsType:Int( ty:TType ) Return TULongType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TULongType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TLongVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TULongType(ty)<>Null And (ty._flags & T_VAR)) Or TDoubleType(ty)<>Null Or TFloat64Type(ty)<>Null End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TULongType(ty)<>Null Then Return 0 End If If WORD_SIZE = 8 And (TSizeTType(ty)<>Null Or TWParamType(ty)<>Null) Then Return 0 End If If TLongType(ty)<>Null Then Return 1 End If If TFloatType(ty)<>Null Then Return 2 End If If TDoubleType(ty)<>Null Then Return 4 End If If TFloat64Type(ty)<>Null Then Return 6 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TULongType End Method Method ToString$() Return ""ULong"" + ToStringParts() End Method End Type Type TDecimalType Extends TNumericType End Type Type TFloatType Extends TDecimalType Method EqualsType:Int( ty:TType ) Return TFloatType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TFloatType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TFloatVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TFloatType(ty)<>Null And (ty._flags & T_VAR)) Or TDoubleType(ty)<>Null End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TFloatType(ty)<>Null Then Return 0 End If If TDoubleType(ty)<>Null Then Return 2 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TFloatType End Method Method ToString$() Return ""Float"" + ToStringParts() End Method Method GetSize:Int() Return 4 End Method End Type Type TDoubleType Extends TDecimalType Method EqualsType:Int( ty:TType ) Return TDoubleType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TDoubleType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TDoubleVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TDoubleType(ty)<>Null And (ty._flags & T_VAR)) End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TDoubleType(ty)<>Null Then Return 0 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TDoubleType End Method Method ToString$() Return ""Double"" + ToStringParts() End Method End Type Type TIntrinsicType Extends TNumericType End Type Type TInt128Type Extends TIntrinsicType Method EqualsType:Int( ty:TType ) Return TInt128Type( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TLongType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TLongVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TInt128Type(ty)<>Null And (ty._flags & T_VAR)) Or TFloat128Type(ty)<>Null Or TDouble128Type(ty)<>Null End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TInt128Type(ty)<>Null Then Return 0 End If If TFloat128Type(ty)<>Null Then Return 2 End If If TDouble128Type(ty)<>Null Then Return 4 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TInt128Type End Method Method ToString$() Return ""Int128"" + ToStringParts() End Method End Type Type TFloat64Type Extends TIntrinsicType Method EqualsType:Int( ty:TType ) Return TFloat64Type( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TFloat64Type(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TDoubleVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TFloat64Type(ty)<>Null And (ty._flags & T_VAR)) End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TFloat64Type(ty)<>Null Then Return 0 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TFloat64Type End Method Method ToString$() Return ""Float64"" + ToStringParts() End Method End Type Type TFloat128Type Extends TIntrinsicType Method EqualsType:Int( ty:TType ) Return TFloat128Type( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TFloat128Type(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TDoubleVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TFloat128Type(ty)<>Null And (ty._flags & T_VAR)) Or TInt128Type(ty)<>Null Or TDouble128Type(ty)<>Null End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TFloat128Type(ty)<>Null Then Return 0 End If If TDouble128Type(ty)<>Null Then Return 2 End If If TInt128Type(ty)<>Null Then Return 4 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TFloat128Type End Method Method ToString$() Return ""Float128"" + ToStringParts() End Method End Type Type TDouble128Type Extends TIntrinsicType Method EqualsType:Int( ty:TType ) Return TDouble128Type( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TDouble128Type(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TDoubleVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TDouble128Type(ty)<>Null And (ty._flags & T_VAR)) Or TInt128Type(ty)<>Null Or TFloat128Type(ty)<>Null End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TDouble128Type(ty)<>Null Then Return 0 End If If TFloat128Type(ty)<>Null Then Return 2 End If If TInt128Type(ty)<>Null Then Return 4 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TDouble128Type End Method Method ToString$() Return ""Double128"" + ToStringParts() End Method End Type Type TStringType Extends TType Field cdecl:TClassDecl Method EqualsType:Int( ty:TType ) Return TStringType( ty )<>Null And (_flags = ty._flags Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) Return EqualsType( ty ) Or (TObjectType( ty ) And TObjectType( ty ).classDecl.ident=""Object"") Or (TStringType(ty) And (_flags & T_VAR)) .. Or (TStringType(ty) And (ty._flags & T_VAR)) Or (TStringType(ty) And (ty._flags & T_CHAR_PTR)) Or (TStringType(ty) And (ty._flags & T_SHORT_PTR)) .. Or IsPointerType(ty) Or (TStringType(ty) And (_flags & T_CHAR_PTR)) Or (TStringType(ty) And (_flags & T_SHORT_PTR)) End Method Method GetClass:TClassDecl() If cdecl Return cdecl Local modid$=""brl.classes"" Local mdecl:TModuleDecl=_env.FindModuleDecl( modid ) If Not mdecl Err ""Module '""+modid+""' not found"" 'clsid=ident[i+1..] ' BaH 'DebugStop cdecl=TClassDecl(mdecl.FindDecl( ""string"" )) 'Return _env.FindClassDecl( ""brl.classes.string"" ) Return cdecl End Method Method Semant:TType(option:Int = 0) GetClass() Return Self End Method Method OnCopy:TType() Local ty:TStringType = New TStringType ty.cdecl = cdecl If _flags & T_CHAR_PTR Then ty._flags :| T_CHAR_PTR End If If _flags & T_SHORT_PTR Then ty._flags :| T_SHORT_PTR End If Return ty End Method Method ToString$() Return ""String"" + ToStringParts() End Method End Type Type TArrayType Extends TType Field elemType:TType Field dims:Int Method Create:TArrayType( elemType:TType, dims:Int = 1 ) Self.elemType=elemType Self.dims = dims Return Self End Method Method ActualType:TType() Local ty:TType=elemType.ActualType() If ty=elemType Return Self Return New TArrayType.Create( ty ) End Method Method EqualsType:Int( ty:TType ) Local arrayType:TArrayType=TArrayType( ty ) Return arrayType And elemType.EqualsType( arrayType.elemType ) And dims = arrayType.dims End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) Local arrayType:TArrayType=TArrayType( ty ) Return (arrayType And ( TVoidType( elemType ) Or elemType.EqualsType( arrayType.elemType ) Or elemType.ExtendsType( arrayType.elemType ) )) Or IsPointerType(ty, 0, TType.T_POINTER) <> Null Or (TObjectType( ty ) And TObjectType( ty ).classDecl.ident=""Object"") End Method Method Semant:TType(option:Int = False) Local ty:TType=elemType.Semant() If ty<>elemType Return New TArrayType.Create( ty, dims ) Return Self End Method Method GetClass:TClassDecl() 'Return _env.FindClassDecl( ""array"" ) Return TClassDecl( _env.FindDecl( ""___array"" ) ) End Method Method OnCopy:TType() Local ty:TArrayType = New TArrayType ty.elemType = elemType ty.dims = dims Return ty End Method Method ToString$() Return elemType.ToString()+"" Array"" End Method End Type Type TObjectType Extends TType Field classDecl:TClassDecl Field instance:Int Method Create:TObjectType( classDecl:TClassDecl ) Self.classDecl=classDecl Return Self End Method Method ActualType:TType() If classDecl.actual=classDecl Return Self Return New TObjectType.Create( TClassDecl(classDecl.actual) ) End Method Method EqualsType:Int( ty:TType ) Local objty:TObjectType=TObjectType( ty ) Return TNullDecl(classDecl) <> Null Or (objty And (classDecl=objty.classDecl))' Or classDecl.ExtendsClass( objty.classDecl ))) 'Or TObjectVarPtrType(ty) <> Null End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) If classDecl.IsStruct() Return False Local objty:TObjectType=TObjectType( ty ) If objty Return classDecl.ExtendsClass( objty.classDecl ) If IsPointerType( ty, T_BYTE ) Return True End Method Method GetClass:TClassDecl() Return classDecl End Method Method ToString$() Return classDecl.ToTypeString() End Method Method OnCopy:TType() Local ty:TObjectType = New TObjectType ty.classDecl = classDecl ty.instance = instance Return ty End Method End Type Type TClassType Extends TType Field classDecl:TClassDecl Field instance:Int Method Create:TClassType( classDecl:TClassDecl ) Self.classDecl=classDecl Return Self End Method Method GetClass:TClassDecl() Return classDecl End Method Method OnCopy:TType() Local ty:TClassType = New TClassType ty.classDecl = classDecl ty.instance = instance Return ty End Method Method ToString:String() Return ""Type"" End Method End Type Type TIdentType Extends TType Field ident$ Field args:TType[] Method Create:TIdentType( ident$,args:TType[] = Null ) Self.ident=ident If args = Null Then Self.args = New TType[0] Else Self.args=args End If Return Self End Method Method CopyToDest:TIdentType(dst:TIdentType) dst.ident = ident dst.args = args Return dst End Method Method CopyToPointer:TIdentType(dst:TIdentType) dst = TIdentType(MapToPointerType(dst)) dst.ident = ident dst.args = args Return dst End Method Method ActualType:TType() InternalErr End Method Method EqualsType:Int( ty:TType ) InternalErr End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) InternalErr End Method 'Method Semant:TType() ' If ident Return New TObjectType.Create( FindClass() ) ' Return New TObjectType.Create( TClassDecl.nullObjectClass ) 'End Method Method Semant:TType(ignoreNotFoundError:Int = 0) 'If ident=""obj"" DebugStop If Not ident Return TType.nullObjectType Local targs:TType[args.Length] For Local i:Int=0 Until args.Length targs[i]=args[i].Semant() Next Local tyid$,ty:TType Local i:Int=ident.FindLast( ""."" ) If i=-1 tyid=ident.ToLower() If tyid = ""self"" Then ' find owning class Local scope:TClassDecl = _env.ClassScope() If scope Then tyid = scope.ident ty = New TClassType.Create(scope) ' test for method scope - self is already an instance Local funcScope:TFuncDecl = _env.FuncScope() If funcScope.IsAnyMethod() Then TClassType(ty).instance = True End If Else Err ""'Self' can only be used within methods."" End If End If If Not ty Then ty=_env.FindType( tyid,targs ) End If ' finally scan all modules for it If Not ty Then For Local mdecl:TModuleDecl = EachIn _appInstance.globalImports.Values() ty=mdecl.FindType( tyid,targs ) If ty Exit Next End If Else Local id:String = ident.ToLower() i = id.Find( ""."" ) ' try scope search first tyid=id[..i] If tyid = ""self"" Then ' find owning class Local scope:TClassDecl = _env.ClassScope() If scope Then tyid = scope.ident ty = New TClassType.Create(scope) ' test for method scope - self is already an instance Local funcScope:TFuncDecl = _env.FuncScope() If funcScope.IsAnyMethod() Then TClassType(ty).instance = True End If Else Err ""'Self' can only be used within methods."" End If End If If Not ty Then ty=_env.FindType( tyid,targs ) End If If Not ty Then i = id.FindLast( ""."" ) ' try scope search first tyid=id[..i] ty=_env.FindType( tyid,targs ) If Not ty Then ' no? now try module search Local modid$=id[..i] Local mdecl:TModuleDecl=_env.FindModuleDecl( modid ) If Not mdecl Err ""Module '""+modid+""' not found"" tyid=id[i+1..] ty=mdecl.FindType( tyid,targs ) End If End If EndIf If Not ty Then If ignoreNotFoundError Then Return Null End If Err ""Type '""+tyid+""' not found"" End If If (_flags & T_VAR) And TObjectType(ty) Then ty = New TObjectType.Create(TObjectType(ty).classDecl) ty._flags :| T_VAR End If If (_flags & T_POINTER) And TObjectType(ty) Then ' FIXME #200 'If Not TObjectType(ty).classDecl.IsExtern() Then ' Err ""Invalid Pointer type."" 'End If ty = New TObjectType.Create(TObjectType(ty).classDecl) ty._flags :| (_flags & T_POINTER) End If Return ty End Method Method SemantClass:TClassDecl() Local ty:TObjectType=TObjectType( Semant() ) If Not ty Err ""Type is not a class"" Return ty.classDecl End Method Method ToString$() Local t$ For Local arg:TIdentType=EachIn args If t t:+"","" t:+arg.ToString() Next If t Return ""$""+ident+""<""+t.Replace(""$"","""")+"">"" Return ""$""+ident End Method Method OnCopy:TType() Local ty:TIdentType = New TIdentType ty.ident = ident ty.args = args Return ty End Method End Type Type TExternObjectType Extends TType Field classDecl:TClassDecl Method Create:TExternObjectType( classDecl:TClassDecl ) Self.classDecl=classDecl Return Self End Method Method ActualType:TType() If classDecl.actual=classDecl Return Self Return New TExternObjectType.Create( TClassDecl(classDecl.actual) ) End Method Method EqualsType:Int( ty:TType ) Local objty:TObjectType=TObjectType( ty ) Return TNullDecl(classDecl) <> Null Or (objty And (classDecl=objty.classDecl Or classDecl.ExtendsClass( objty.classDecl ))) Or TObjectType(ty) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) Local objty:TObjectType=TObjectType( ty ) If objty Return classDecl.ExtendsClass( objty.classDecl ) If IsPointerType( ty, T_BYTE ) Return True Local op$ If TBoolType( ty ) op=""ToBool"" Else If TIntType( ty ) op=""ToInt"" Else If TFloatType( ty ) op=""ToFloat"" Else If TStringType( ty ) op=""ToString"" Else If TLongType( ty ) ' BaH Long op=""ToLong"" Else Return False EndIf Local fdecl:TFuncDecl=GetClass().FindFuncDecl( op,Null,True,,,,SCOPE_CLASS_HEIRARCHY ) Return fdecl And fdecl.IsMethod() And fdecl.retType.EqualsType( ty ) End Method Method GetClass:TClassDecl() Return classDecl End Method Method ToString$() Return classDecl.ToTypeString() End Method Method OnCopy:TType() Local ty:TExternObjectType = New TExternObjectType ty.classDecl = classDecl Return ty End Method End Type Type TFunctionPtrType Extends TType Field func:TFuncDecl Method Create:TFunctionPtrType(func:TFuncDecl) Self.func = func Return Self End Method Method EqualsType:Int( ty:TType ) ' TODO : compare function decl Return TFunctionPtrType( ty )<>Null End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) If TObjectType( ty ) Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True,,,,SCOPE_CLASS_HEIRARCHY ) Return ctor And ctor.IsCtor() EndIf Return IsPointerType( ty, 0, T_POINTER )<>Null End Method Method equalsDecl:Int(fdecl:TFuncDecl) func.Semant fdecl.Semant ' same number of args? If func.argDecls.length <> fdecl.argDecls.length Then Return False End If ' same arg types? For Local i:Int = 0 Until func.argDecls.length If Not func.argDecls[i].ty.equalsType(fdecl.argDecls[i].ty) Return False Next ' same return type? If Not func.retType.equalsType(fdecl.retType) Then ' if function pointer specifies Int return type, our function can specify void... If TIntType(func.retType) And TVoidType(fdecl.retType) Then Return True End If Return False End If Return True End Method Method ToString$() Return func.ToTypeString() End Method Method OnCopy:TType() Local ty:TFunctionPtrType = New TFunctionPtrType ty.func = func Return ty End Method Method Semant:TType(option:Int = False) func.Semant() Return Self End Method End Type ' a holder during parsing which becomes the ""real"" var ptr type during semanting Type TVarPtrType Extends TType Method OnCopy:TType() Return New TVarPtrType End Method End Type Type TParamType Extends TIntegralType End Type Type TWParamType Extends TParamType Method EqualsType:Int( ty:TType ) Return TWParamType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) If _flags & T_VARPTR And (TWParamType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TIntVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) If WORD_SIZE = 4 Then Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or ((TWParamType(ty)<>Null Or TSizeTType(ty)<>Null Or TUIntType(ty)<>Null) And (ty._flags & T_VAR)) Or TIntType(ty)<>Null Or TUIntType(ty)<>Null Or TLongType(ty)<>Null Or TULongType(ty)<>Null Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Else Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or ((TWParamType(ty)<>Null Or TSizeTType(ty)<>Null Or TULongType(ty)<>Null) And (ty._flags & T_VAR)) Or TLongType(ty)<>Null Or TULongType(ty)<>Null Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or TFloat64Type(ty)<>Null End If End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TWParamType(ty)<>Null Then Return 0 End If If TSizeTType(ty)<>Null Then Return 0 End If If WORD_SIZE = 4 Then If TUIntType(ty)<>Null Then Return 0 End If If TIntType(ty)<>Null Then Return 2 End If If TULongType(ty)<>Null Then Return 3 End If If TLongType(ty)<>Null Then Return 4 End If If TFloatType(ty)<>Null Then Return 5 End If If TDoubleType(ty)<>Null Then Return 6 End If Else If TULongType(ty)<>Null Then Return 0 End If If TLongType(ty)<>Null Then Return 2 End If If TFloatType(ty)<>Null Then Return 4 End If If TDoubleType(ty)<>Null Then Return 6 End If If TFloat64Type(ty)<>Null Then Return 8 End If End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TWParamType End Method Method ToString$() Return ""WPARAM"" + ToStringParts() End Method Method GetSize:Int() Return WORD_SIZE End Method End Type Type TLParamType Extends TParamType Method EqualsType:Int( ty:TType ) Return TLParamType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) If _flags & T_VARPTR And (TLParamType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TIntVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) If WORD_SIZE = 4 Then Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or ((TIntType(ty)<>Null Or TLParamType(ty)<>Null) And (ty._flags & T_VAR)) Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or TFloat64Type(ty)<>Null Else Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or ((TLongType(ty)<>Null Or TLParamType(ty)<>Null) And (ty._flags & T_VAR)) Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or TFloat64Type(ty)<>Null End If End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TLParamType(ty)<>Null Then Return 0 End If If WORD_SIZE = 4 Then If TIntType(ty)<>Null Then Return 0 End If If TLongType(ty)<>Null Then Return 2 End If If TFloatType(ty)<>Null Then Return 4 End If If TDoubleType(ty)<>Null Then Return 6 End If Else If TLongType(ty)<>Null Then Return 0 End If If TFloatType(ty)<>Null Then Return 2 End If If TDoubleType(ty)<>Null Then Return 4 End If If TFloat64Type(ty)<>Null Then Return 6 End If End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TLParamType End Method Method ToString$() Return ""LPARAM"" + ToStringParts() End Method Method GetSize:Int() Return WORD_SIZE End Method End Type ",16237,True,4182.640216160658,median "*&---------------------------------------------------------------------* *& Report ZANGRY_BIRDS *& Just for fun *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT zangry_birds. DATA: lo_excel TYPE REF TO zcl_excel, lo_excel_writer TYPE REF TO zif_excel_writer, lo_worksheet TYPE REF TO zcl_excel_worksheet, lo_border_light TYPE REF TO zcl_excel_style_border, lo_style_color0 TYPE REF TO zcl_excel_style, lo_style_color1 TYPE REF TO zcl_excel_style, lo_style_color2 TYPE REF TO zcl_excel_style, lo_style_color3 TYPE REF TO zcl_excel_style, lo_style_color4 TYPE REF TO zcl_excel_style, lo_style_color5 TYPE REF TO zcl_excel_style, lo_style_color6 TYPE REF TO zcl_excel_style, lo_style_color7 TYPE REF TO zcl_excel_style, lo_style_credit TYPE REF TO zcl_excel_style, lo_style_link TYPE REF TO zcl_excel_style, lo_column TYPE REF TO zcl_excel_column, lo_row TYPE REF TO zcl_excel_row, lo_hyperlink TYPE REF TO zcl_excel_hyperlink. DATA: lv_style_color0_guid TYPE zexcel_cell_style, lv_style_color1_guid TYPE zexcel_cell_style, lv_style_color2_guid TYPE zexcel_cell_style, lv_style_color3_guid TYPE zexcel_cell_style, lv_style_color4_guid TYPE zexcel_cell_style, lv_style_color5_guid TYPE zexcel_cell_style, lv_style_color6_guid TYPE zexcel_cell_style, lv_style_color7_guid TYPE zexcel_cell_style, lv_style_credit_guid TYPE zexcel_cell_style, lv_style_link_guid TYPE zexcel_cell_style. DATA: lv_col_str TYPE zexcel_cell_column_alpha, lv_row TYPE i, lv_col TYPE i, lt_mapper TYPE TABLE OF zexcel_cell_style, ls_mapper TYPE zexcel_cell_style. DATA: lv_file TYPE xstring, lv_bytecount TYPE i, lt_file_tab TYPE solix_tab. DATA: lv_full_path TYPE string, lv_workdir TYPE string, lv_file_separator TYPE c. CONSTANTS: lv_default_file_name TYPE string VALUE 'angry_birds.xlsx'. PARAMETERS: p_path TYPE zexcel_export_dir. AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path. lv_workdir = p_path. cl_gui_frontend_services=>directory_browse( EXPORTING initial_folder = lv_workdir CHANGING selected_folder = lv_workdir ). p_path = lv_workdir. INITIALIZATION. cl_gui_frontend_services=>get_sapgui_workdir( CHANGING sapworkdir = lv_workdir ). cl_gui_cfw=>flush( ). p_path = lv_workdir. START-OF-SELECTION. IF p_path IS INITIAL. p_path = lv_workdir. ENDIF. cl_gui_frontend_services=>get_file_separator( CHANGING file_separator = lv_file_separator ). CONCATENATE p_path lv_file_separator lv_default_file_name INTO lv_full_path. "" Creates active sheet CREATE OBJECT lo_excel. CREATE OBJECT lo_border_light. lo_border_light->border_color-rgb = zcl_excel_style_color=>c_white. lo_border_light->border_style = zcl_excel_style_border=>c_border_thin. "" Create color white lo_style_color0 = lo_excel->add_new_style( ). lo_style_color0->fill->filltype = zcl_excel_style_fill=>c_fill_solid. lo_style_color0->fill->fgcolor-rgb = 'FFFFFFFF'. lo_style_color0->borders->allborders = lo_border_light. lv_style_color0_guid = lo_style_color0->get_guid( ). "" Create color black lo_style_color1 = lo_excel->add_new_style( ). lo_style_color1->fill->filltype = zcl_excel_style_fill=>c_fill_solid. lo_style_color1->fill->fgcolor-rgb = 'FF252525'. lo_style_color1->borders->allborders = lo_border_light. lv_style_color1_guid = lo_style_color1->get_guid( ). "" Create color dark green lo_style_color2 = lo_excel->add_new_style( ). lo_style_color2->fill->filltype = zcl_excel_style_fill=>c_fill_solid. lo_style_color2->fill->fgcolor-rgb = 'FF75913A'. lo_style_color2->borders->allborders = lo_border_light. lv_style_color2_guid = lo_style_color2->get_guid( ). "" Create color light green lo_style_color3 = lo_excel->add_new_style( ). lo_style_color3->fill->filltype = zcl_excel_style_fill=>c_fill_solid. lo_style_color3->fill->fgcolor-rgb = 'FF9DFB73'. lo_style_color3->borders->allborders = lo_border_light. lv_style_color3_guid = lo_style_color3->get_guid( ). "" Create color green lo_style_color4 = lo_excel->add_new_style( ). lo_style_color4->fill->filltype = zcl_excel_style_fill=>c_fill_solid. lo_style_color4->fill->fgcolor-rgb = 'FF92CF56'. lo_style_color4->borders->allborders = lo_border_light. lv_style_color4_guid = lo_style_color4->get_guid( ). "" Create color 2dark green lo_style_color5 = lo_excel->add_new_style( ). lo_style_color5->fill->filltype = zcl_excel_style_fill=>c_fill_solid. lo_style_color5->fill->fgcolor-rgb = 'FF506228'. lo_style_color5->borders->allborders = lo_border_light. lv_style_color5_guid = lo_style_color5->get_guid( ). "" Create color yellow lo_style_color6 = lo_excel->add_new_style( ). lo_style_color6->fill->filltype = zcl_excel_style_fill=>c_fill_solid. lo_style_color6->fill->fgcolor-rgb = 'FFC3E224'. lo_style_color6->borders->allborders = lo_border_light. lv_style_color6_guid = lo_style_color6->get_guid( ). "" Create color yellow lo_style_color7 = lo_excel->add_new_style( ). lo_style_color7->fill->filltype = zcl_excel_style_fill=>c_fill_solid. lo_style_color7->fill->fgcolor-rgb = 'FFB3C14F'. lo_style_color7->borders->allborders = lo_border_light. lv_style_color7_guid = lo_style_color7->get_guid( ). "" Credits lo_style_credit = lo_excel->add_new_style( ). lo_style_credit->alignment->horizontal = zcl_excel_style_alignment=>c_horizontal_center. lo_style_credit->alignment->vertical = zcl_excel_style_alignment=>c_vertical_center. lo_style_credit->font->size = 20. lv_style_credit_guid = lo_style_credit->get_guid( ). "" Link lo_style_link = lo_excel->add_new_style( ). lo_style_link->alignment->horizontal = zcl_excel_style_alignment=>c_horizontal_center. lo_style_link->alignment->vertical = zcl_excel_style_alignment=>c_vertical_center. * lo_style_link->font->size = 20. lv_style_link_guid = lo_style_link->get_guid( ). "" Create image map "" line 2 DO 30 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 3 DO 28 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 5 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 4 DO 27 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 5 DO 9 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 15 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 6 DO 7 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 13 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 7 DO 6 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 5 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 11 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 5 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 8 DO 5 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 9 DO 5 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 10 DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 11 DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 7 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 12 DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 13 DO 5 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 8 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 14 DO 5 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 12 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 15 DO 6 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 8 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 16 DO 7 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 7 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 5 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 17 DO 8 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 13 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 18 DO 6 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 23 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 19 DO 5 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 27 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 20 DO 5 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 23 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 21 DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 19 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 22 DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 17 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 23 DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 17 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 8 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 24 DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 10 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 25 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 8 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 26 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color6_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 27 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color6_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 28 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color6_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 29 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 5 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 30 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 31 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color4_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 32 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 8 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color5_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 33 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 34 DO 3 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 10 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 35 DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 11 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 36 DO 4 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 10 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 11 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 37 DO 5 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 10 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color7_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 11 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 38 DO 6 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 10 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 11 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 39 DO 7 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 22 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 1 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 40 DO 7 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 17 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 41 DO 8 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 3 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 15 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 42 DO 9 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 5 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 9 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 2 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 43 DO 11 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 5 TIMES. APPEND lv_style_color3_guid TO lt_mapper. ENDDO. DO 7 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 44 DO 13 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 6 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. DO 4 TIMES. APPEND lv_style_color2_guid TO lt_mapper. ENDDO. DO 8 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 45 DO 16 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 13 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" line 46 DO 18 TIMES. APPEND lv_style_color0_guid TO lt_mapper. ENDDO. DO 8 TIMES. APPEND lv_style_color1_guid TO lt_mapper. ENDDO. APPEND INITIAL LINE TO lt_mapper. "" escape "" Get active sheet lo_worksheet = lo_excel->get_active_worksheet( ). lo_worksheet->set_title( ip_title = 'Angry Birds' ). lv_row = 1. lv_col = 1. LOOP AT lt_mapper INTO ls_mapper. lv_col_str = zcl_excel_common=>convert_column2alpha( lv_col ). IF ls_mapper IS INITIAL. lo_row = lo_worksheet->get_row( ip_row = lv_row ). lo_row->set_row_height( ip_row_height = 8 ). lv_col = 1. lv_row = lv_row + 1. CONTINUE. ENDIF. lo_worksheet->set_cell( ip_column = lv_col_str ip_row = lv_row ip_value = space ip_style = ls_mapper ). lv_col = lv_col + 1. lo_column = lo_worksheet->get_column( ip_column = lv_col_str ). lo_column->set_width( ip_width = 2 ). ENDLOOP. lo_worksheet->set_show_gridlines( i_show_gridlines = abap_false ). lo_worksheet->set_cell( ip_column = 'AP' ip_row = 15 ip_value = 'Created with abap2xlsx' ip_style = lv_style_credit_guid ). lo_hyperlink = zcl_excel_hyperlink=>create_external_link( iv_url = 'https://sapmentors.github.io/abap2xlsx' ). lo_worksheet->set_cell( ip_column = 'AP' ip_row = 24 ip_value = 'https://sapmentors.github.io/abap2xlsx' ip_style = lv_style_link_guid ip_hyperlink = lo_hyperlink ). lo_column = lo_worksheet->get_column( ip_column = 'AP' ). lo_column->set_auto_size( ip_auto_size = abap_true ). lo_worksheet->set_merge( ip_row = 15 ip_column_start = 'AP' ip_row_to = 22 ip_column_end = 'AR' ). lo_worksheet->set_merge( ip_row = 24 ip_column_start = 'AP' ip_row_to = 26 ip_column_end = 'AR' ). CREATE OBJECT lo_excel_writer TYPE zcl_excel_writer_2007. lv_file = lo_excel_writer->write_file( lo_excel ). "" Convert to binary CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING buffer = lv_file IMPORTING output_length = lv_bytecount TABLES binary_tab = lt_file_tab. * "" This method is only available on AS ABAP > 6.40 * lt_file_tab = cl_bcs_convert=>xstring_to_solix( iv_xstring = lv_file ). * lv_bytecount = xstrlen( lv_file ). "" Save the file cl_gui_frontend_services=>gui_download( EXPORTING bin_filesize = lv_bytecount filename = lv_full_path filetype = 'BIN' CHANGING data_tab = lt_file_tab ). ",13072,True,4568.957626971659,median "#define IS_RAINBOWDUINO 0 #define IS_NEOPIXELS 1 #define IS_SINGLE_LED 0 #define IS_MULTI 0 #define IS_SERIAL 1 #define IS_HTTP 0 #define IS_UDP 0 /*! * ArduCor * Sample Sketch * * DESCRIPTION_PLACEHOLDER * * COM_PLACEHOLDER * * Version 3.3.0 * Date: May 27, 2018 * Github repository: http://www.github.com/timsee/ArduCor * License: MIT-License, LICENSE provided in root of git repo */ #include #if IS_NEOPIXELS #include #endif #if IS_RAINBOWDUINO #include #endif #if IS_HTTP #include #include #endif #if IS_UDP #include #endif #if IS_MULTI #include #include #endif //================================================================================ // Settings //================================================================================ #if IS_NEOPIXELS const byte CONTROL_PIN = 6; // pin used by NeoPixels library const int LED_COUNT = 64; #endif #if IS_RAINBOWDUINO const int LED_COUNT = 64; #endif #if IS_SINGLE_LED const byte R_PIN = 6; const byte G_PIN = 5; const byte B_PIN = 4; const int LED_COUNT = 1; const byte IS_COMMON_ANODE = 1; // 0 if common cathode, 1 if common anode #endif #if IS_MULTI const byte CONTROL_PIN = 5; const int LED_COUNT = 120; #endif const byte BAR_SIZE = 4; // default length of a bar for bar routines const byte GLIMMER_PERCENT = 10; // percent of ""glimmering"" LEDs in glimmer routines: range: 0 - 100 #if IS_SERIAL const byte DELAY_VALUE = 10; // amount of sleep time between loops #endif #if IS_UDP const byte DELAY_VALUE = 10; // amount of sleep time between loops #endif #if IS_HTTP const byte DELAY_VALUE = 50; // amount of sleep time between loops #endif const int DEFAULT_SPEED = 100; // default delay for LEDs update, suggested range: 0 (paused) - 200 (fast). const int MAX_SPEED_VALUE = 200; // max speed value allowed to be sent const int DEFAULT_TIMEOUT = 120; // number of minutes without packets until the arduino times out. const int DEFAULT_HW_INDEX = 1; // index for this particular microcontroller #if IS_NEOPIXELS const int DEVICE_COUNT = 1; // number of LED devices connected, 1 for every sample except the multi sample #endif #if IS_RAINBOWDUINO const int DEVICE_COUNT = 1; // number of LED devices connected, 1 for every sample except the multi sample #endif #if IS_SINGLE_LED const int DEVICE_COUNT = 1; // number of LED devices connected, 1 for every sample except the multi sample #endif #if IS_MULTI const int DEVICE_COUNT = 2; // multi sample gives access to 2 different LED devices #endif #if IS_SERIAL const bool USE_CRC = true; // true uses CRC, false ignores it. #endif #if IS_UDP const bool USE_CRC = true; // true uses CRC, false ignores it. #endif #if IS_HTTP const bool USE_CRC = false; // true uses CRC, false ignores it. #endif #if IS_SERIAL const bool USE_NEWLINE = false; // true adds newline to serial packets, false skips it. #endif //======================= // Hardware Name //======================= // rename this whatever you want, but keep it under 16 characters char name_buffer[] = ""MyLights""; #if IS_MULTI char name_buffer_2[] = ""MyLights 2""; #endif //======================= // Hardware Type //======================= // enum for types of hardware that can be controlled. enum ELightType { eSingleLED, eCube, e2DArray, eLightStrip, eRing }; /*! * Modify these to reflect the type of light hardware that is in use * by your sample. This does not affect the sample's functionality. Instead, * it is sent out during discovery packets to applications such as Corluma * and affects how the lights are displayed in those applications. */ #if IS_NEOPIXELS ELightType light_type = e2DArray; #endif #if IS_RAINBOWDUINO ELightType light_type = eCube; #endif #if IS_SINGLE_LED ELightType light_type = eSingleLED; #endif #if IS_MULTI ELightType light_type = eLightStrip; ELightType light_type_2 = eLightStrip; #endif //======================= // Product Type //======================= // enum for types of lighting products (NeoPixel, Rainbowduino, etc.) enum EProductType { eRainbowduino, eNeoPixels, eLED }; #if IS_NEOPIXELS EProductType product_type = eNeoPixels; #endif #if IS_RAINBOWDUINO EProductType product_type = eRainbowduino; #endif #if IS_SINGLE_LED EProductType product_type = eLED; #endif #if IS_MULTI EProductType product_type = eNeoPixels; EProductType product_type_2 = eNeoPixels; #endif //======================= // API level //======================= // The API level defines the messaging protocol. Major levels are incremented // when the API breaks and significant features are added that cannot be // supported in the old API. Minor levels are incremented when the API has // new functions added that do not significantly break the existing // messaging protocol. const uint8_t API_LEVEL_MAJOR = 3; const uint8_t API_LEVEL_MINOR = 3; //======================= // Stored Values and States //======================= ERoutine current_routine = eSingleGlimmer; #if IS_MULTI ERoutine current_routine_2 = eSingleGlimmer; #endif EPalette current_palette = eCustom; #if IS_MULTI EPalette current_palette_2 = eCustom; #endif // set this to turn off echoing all together bool skip_echo = false; // the sample sets this when it receives a valid packet bool should_echo = false; // used in sketches with multiple hardware connected to one arduino. uint8_t received_hardware_index; uint8_t hardware_index = DEFAULT_HW_INDEX; // value determines how quickly the LEDs udpate. Lower values lead to faster updates int update_speed = DEFAULT_SPEED; bool should_update_no_speed = false; #if IS_MULTI int update_speed_2 = DEFAULT_SPEED; bool should_update_2_no_speed = false; #endif // timeout variables unsigned long idle_timeout = (unsigned long)DEFAULT_TIMEOUT * 60 * 1000; // convert to milliseconds #if IS_MULTI unsigned long idle_timeout_2 = (unsigned long)DEFAULT_TIMEOUT * 60 * 1000; // convert to milliseconds #endif unsigned long last_message_time = 0; // counts each loop and uses it to determine // when to update the LEDs. unsigned long loop_counter = 0; //======================= // String Parsing //======================= // flag ued by parsing system. if TRUE, continue parsing, if FALSE, // packet is either illegal or empty and parsing can be skipped. bool packetReceived = false; // ints used for determining how much memory to use #if IS_NEOPIXELS const int max_packet_size = 200; #endif #if IS_RAINBOWDUINO const int max_packet_size = 200; #endif #if IS_SINGLE_LED const int max_packet_size = 200; #endif #if IS_MULTI const int max_packet_size = 75; #endif // buffers for receiving messages char current_packet[max_packet_size]; char echo_message [max_packet_size]; char temp_packet [max_packet_size]; // buffers for converting ASCII to an int array const int max_number_of_ints = 15; int packet_int_array[max_number_of_ints]; // used to manipulate the buffers for receiving messages and // converting them to int arrays. int multi_packet_size = 0; int current_multi_packet = 0; int int_array_size = 0; // buffers for char arrays char state_update_packet[110]; #if IS_NEOPIXELS char discovery_packet[54]; #endif #if IS_RAINBOWDUINO char discovery_packet[54]; #endif #if IS_SINGLE_LED char discovery_packet[54]; #endif #if IS_MULTI char discovery_packet[74]; #endif // used for string manipulations char num_buf[16]; const char value_delimiter[] = "",""; const char message_delimiter[] = ""&""; const char crc_delimiter[] = ""#""; const char packet_delimiter[] = "";""; const char names_delimiter[] = ""@""; const char new_line[] = ""\\\\n""; int single_glimmer_param = GLIMMER_PERCENT; int multi_glimmer_param = GLIMMER_PERCENT; bool sawtooth_param = false; bool fade_param = false; int multi_bars_param = BAR_SIZE; #if IS_MULTI int single_glimmer_param_2 = GLIMMER_PERCENT; int multi_glimmer_param_2 = GLIMMER_PERCENT; bool sawtooth_param_2 = false; bool fade_param_2 = false; int multi_bars_param_2 = BAR_SIZE; #endif bool reset_counter = false; #if IS_UDP //======================= // Yun Setup //======================= // used for communication over the Bridge Library const char packet_read_string[] = ""packet_read""; #endif #if IS_HTTP //======================= // Yun Setup //======================= BridgeClient client; BridgeServer server; #endif #if IS_RAINBOWDUINO //======================= // ArduCor Setup //======================= // Library used to generate the RGB LED routines. ArduCor routines = ArduCor(LED_COUNT); #endif #if IS_NEOPIXELS //======================= // ArduCor Setup //======================= // Library used to generate the RGB LED routines. ArduCor routines = ArduCor(LED_COUNT); #endif #if IS_SINGLE_LED //======================= // ArduCor Setup //======================= // Library used to generate the RGB LED routines. ArduCor routines = ArduCor(LED_COUNT); #endif #if IS_NEOPIXELS //======================= // Hardware Setup //======================= //NOTE: you may need to change the NEO_GRB or NEO_KHZ2800 for this sample to work with your lights. Adafruit_NeoPixel pixels = Adafruit_NeoPixel(LED_COUNT, CONTROL_PIN, NEO_GRB + NEO_KHZ800); #endif #if IS_MULTI //======================= // Hardware Setup //======================= /* * This demo sketch shows routines that use these indices for their light groups: * 1 (routines) : first half of a 2 meter neopixel strip * 2 (routines_2) : second half of 2 meter neopixel strip */ // NeoPixels controller object Adafruit_NeoPixel pixels = Adafruit_NeoPixel(LED_COUNT, CONTROL_PIN, NEO_GRB + NEO_KHZ800); uint8_t routines_2_index = DEFAULT_HW_INDEX + 1; ArduCor routines = ArduCor(LED_COUNT / 2); ArduCor routines_2 = ArduCor(LED_COUNT / 2); #endif //======================= // CRC-32 //======================= // Based on this guide http://excamera.com/sphinx/article-crc.html // 8-bit CRC is too little, 32-bit is a bit overkill but this method // is really elegant and uses very little PROGMEM const PROGMEM uint32_t crcTable[16] = { 0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac, 0x76dc4190, 0x6b6b51f4, 0x4db26158, 0x5005713c, 0xedb88320, 0xf00f9344, 0xd6d6a3e8, 0xcb61b38c, 0x9b64c2b0, 0x86d3d2d4, 0xa00ae278, 0xbdbdf21c }; unsigned long crcUpdate(unsigned long crc, byte data) { byte tableIndex; tableIndex = crc ^ (data >> (0 * 4)); crc = pgm_read_dword_near(crcTable + (tableIndex & 0x0f)) ^ (crc >> 4); tableIndex = crc ^ (data >> (1 * 4)); crc = pgm_read_dword_near(crcTable + (tableIndex & 0x0f)) ^ (crc >> 4); return crc; } unsigned long crcCalculator(const char* packet) { unsigned long crc = ~0L; uint16_t i = 0; while (packet[i] != 0) { crc = crcUpdate(crc, packet[i]); ++i; } crc = ~crc; return crc; } //================================================================================ // Setup and Loop //================================================================================ void setup() { #if IS_RAINBOWDUINO Rb.init(); #endif #if IS_NEOPIXELS pixels.begin(); #endif #if IS_SINGLE_LED pinMode(R_PIN, OUTPUT); pinMode(G_PIN, OUTPUT); pinMode(B_PIN, OUTPUT); #endif #if IS_MULTI pixels.begin(); #endif #if IS_HTTP Bridge.begin(); server.listenOnLocalhost(); server.begin(); #endif #if IS_UDP Bridge.begin(); Bridge.put(F(""major_api""), itoa(API_LEVEL_MAJOR, num_buf, 10)); Bridge.put(F(""minor_api""), itoa(API_LEVEL_MINOR, num_buf, 10)); Bridge.put(F(""using_crc""), itoa(USE_CRC, num_buf, 10)); Bridge.put(F(""hardware_count""), itoa(DEVICE_COUNT, num_buf, 10)); Bridge.put(F(""hardware_name""), name_buffer); Bridge.put(F(""hardware_type""), itoa(light_type, num_buf, 10)); Bridge.put(F(""product_type""), itoa(product_type, num_buf, 10)); Bridge.put(F(""max_packet_size""), itoa(max_packet_size, num_buf, 10)); buildStateUpdatePacket(); Bridge.put(F(""state_update""), state_update_packet); buildCustomArrayUpdatePacket(); Bridge.put(F(""custom_array_update""),state_update_packet); #endif // choose the default color for the single // color routines. This can be changed at any time. // and its set it to green in sample routines. // If its not set, it defaults to a faint orange. routines.setMainColor(0, 127, 0); #if IS_MULTI routines_2.setMainColor(0, 127, 0); #endif #if IS_SERIAL // put your setup code here, to run once: Serial.begin(9600); #endif buildDiscoveryPacket(); } void loop() { packetReceived = false; #if IS_SERIAL memset(current_packet, 0, sizeof(current_packet)); if (Serial.available()) { Serial.readBytesUntil(';',current_packet, sizeof(current_packet)); } if (current_packet[0] == 'D') { char* pch = strstr (current_packet,""DISCOVERY_PACKET""); if (strcmp(pch, ""DISCOVERY_PACKET"") == 0) { Serial.write(discovery_packet); } } else if (current_packet[0] != 0) { packetReceived = true; } #endif #if IS_HTTP memset(current_packet, 0, sizeof(current_packet)); client = server.accept(); if (client) { client.readBytesUntil('/',current_packet, sizeof(current_packet)); if (current_packet[0] == 'D') { char* pch = strstr (current_packet,""DISCOVERY_PACKET""); // strip newline pch = strtok(pch, ""\\\\r""); pch = strtok(pch, ""\\\\n""); if (strcmp(pch, ""DISCOVERY_PACKET"") == 0) { client.print(discovery_packet); } } else { packetReceived = true; } } #endif #if IS_UDP Bridge.get(""udp"", current_packet, sizeof(current_packet)); if (strcmp(current_packet, packet_read_string) != 0) { Bridge.put(F(""udp""), packet_read_string); packetReceived = true; } #endif if (packetReceived) { memset(echo_message, 0, sizeof(echo_message)); #if IS_HTTP /// make a pointer we can manipulate during packet parsing char* packetPtr = current_packet; // strip newline packetPtr = strtok(packetPtr, ""\\\\r""); packetPtr = strtok(packetPtr, ""\\\\n""); bool messageIsValid = checkIfPacketIsValid(packetPtr); #endif #if IS_UDP bool messageIsValid = checkIfPacketIsValid(current_packet); #endif #if IS_SERIAL bool messageIsValid = checkIfPacketIsValid(current_packet); #endif skip_echo = false; should_echo = false; should_update_no_speed = false; #if IS_MULTI should_update_2_no_speed = false; #endif if (messageIsValid) { // go through each message packet #if IS_HTTP char* messagePtr = strtok(packetPtr, ""&""); #endif #if IS_UDP char* messagePtr = strtok(current_packet, ""&""); #endif #if IS_SERIAL char* messagePtr = strtok(current_packet, ""&""); #endif while (messagePtr != 0) { if (!skip_echo) { strcpy(temp_packet, messagePtr); // Copy for parsing a destructive way strcpy(echo_message, messagePtr); // save for echoing } // Find the next substring delimited by a ""&"" messagePtr = strtok(0, ""&""); // convert from a array of chars into an int array delimitedStringToIntArray(temp_packet); // parse a paceket only if its header is is in the correct range if ((int_array_size > 0) && (packet_int_array[0] < ePacketHeader_MAX)) { // message is valid and the first int can be interpeted as a header // attempt to parse the whole packet if (parsePacket(packet_int_array[0])) { // if packet parsing is sucessful, echo the packet last_message_time = millis(); if (!skip_echo) { strcat(echo_message, message_delimiter); should_echo = true; } } } } if (!skip_echo && should_echo) { echoPacket(); } } } if (update_speed == 0) { if (should_update_no_speed) { changeRoutine(current_routine); routines.applyBrightness(); #if IS_RAINBOWDUINO updateLEDs(); #endif #if IS_NEOPIXELS updateLEDs(); #endif #if IS_SINGLE_LED updateLEDs(); #endif } } else if (!(loop_counter % ((MAX_SPEED_VALUE + 5) - update_speed))) { changeRoutine(current_routine); routines.applyBrightness(); #if IS_RAINBOWDUINO updateLEDs(); #endif #if IS_NEOPIXELS updateLEDs(); #endif #if IS_SINGLE_LED updateLEDs(); #endif } #if IS_MULTI if (update_speed_2 == 0) { if (should_update_2_no_speed) { changeRoutine_2(current_routine_2); routines_2.applyBrightness(); } } else if (!(loop_counter % ((MAX_SPEED_VALUE + 5) - update_speed_2))) { changeRoutine_2(current_routine_2); routines_2.applyBrightness(); } // update happens here for edge case handling if (!(loop_counter % update_speed_2) || !(loop_counter % update_speed)) { updateLEDs(); } #endif // Timeout the LEDs. if ((idle_timeout != 0) && (last_message_time + idle_timeout < millis())) { routines.turnOff(); } #if IS_MULTI if ((idle_timeout_2 != 0) && (last_message_time + idle_timeout_2 < millis())) { routines_2.turnOff(); } #endif loop_counter++; delay(DELAY_VALUE); #if IS_HTTP client.stop(); #endif } #if IS_RAINBOWDUINO void updateLEDs() { int index = 0; for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { Rb.setPixelXY(x, y, routines.red(index), routines.green(index), routines.blue(index)); index++; } } } #endif #if IS_NEOPIXELS void updateLEDs() { for (int x = 0; x < LED_COUNT; x++) { pixels.setPixelColor(x, pixels.Color(routines.red(x), routines.green(x), routines.blue(x))); } pixels.show(); } #endif #if IS_SINGLE_LED void updateLEDs() { if (IS_COMMON_ANODE) { analogWrite(R_PIN, 255 - routines.red(0)); analogWrite(G_PIN, 255 - routines.green(0)); analogWrite(B_PIN, 255 - routines.blue(0)); } else { analogWrite(R_PIN, routines.red(0)); analogWrite(G_PIN, routines.green(0)); analogWrite(B_PIN, routines.blue(0)); } } #endif #if IS_MULTI void updateLEDs() { for (int x = 0; x < LED_COUNT / 2; x++) { pixels.setPixelColor(x, pixels.Color(routines.red(x), routines.green(x), routines.blue(x))); } int y = 0; for (int x = LED_COUNT / 2; x < LED_COUNT; x++) { pixels.setPixelColor(x, pixels.Color(routines_2.red(y), routines_2.green(y), routines_2.blue(y))); y++; } // Neopixels use the show function to update the pixels pixels.show(); } #endif //================================================================================ // Mode Management //================================================================================ /*! * @brief changeRoutine Function that runs every loop iteration * and determines how to light up the LEDs. * * @param currentMode the current mode of the program */ void changeRoutine(ERoutine currentMode) { switch (currentMode) { case eSingleSolid: routines.singleSolid(routines.mainColor().red, routines.mainColor().green, routines.mainColor().blue); break; case eSingleBlink: routines.singleBlink(routines.mainColor().red, routines.mainColor().green, routines.mainColor().blue); break; case eSingleWave: routines.singleWave(routines.mainColor().red, routines.mainColor().green, routines.mainColor().blue); break; case eSingleGlimmer: routines.singleGlimmer(routines.mainColor().red, routines.mainColor().green, routines.mainColor().blue, single_glimmer_param); break; case eSingleFade: routines.singleFade(routines.mainColor().red, routines.mainColor().green, routines.mainColor().blue, fade_param); break; case eSingleSawtoothFade: routines.singleSawtoothFade(routines.mainColor().red, routines.mainColor().green, routines.mainColor().blue, sawtooth_param); break; case eMultiGlimmer: routines.multiGlimmer(current_palette, multi_glimmer_param); break; case eMultiFade: routines.multiFade(current_palette); break; case eMultiRandomSolid: routines.multiRandomSolid(current_palette); break; case eMultiRandomIndividual: routines.multiRandomIndividual(current_palette); break; case eMultiBars: routines.multiBars(current_palette, multi_bars_param); break; default: break; } } #if IS_MULTI void changeRoutine_2(ERoutine currentMode) { switch (currentMode) { case eSingleSolid: routines_2.singleSolid(routines_2.mainColor().red, routines_2.mainColor().green, routines_2.mainColor().blue); break; case eSingleBlink: routines_2.singleBlink(routines_2.mainColor().red, routines_2.mainColor().green, routines_2.mainColor().blue); break; case eSingleWave: routines_2.singleWave(routines_2.mainColor().red, routines_2.mainColor().green, routines_2.mainColor().blue); break; case eSingleGlimmer: routines_2.singleGlimmer(routines_2.mainColor().red, routines_2.mainColor().green, routines_2.mainColor().blue, single_glimmer_param_2); break; case eSingleFade: routines_2.singleFade(routines_2.mainColor().red, routines_2.mainColor().green, routines_2.mainColor().blue, fade_param_2); break; case eSingleSawtoothFade: routines_2.singleSawtoothFade(routines.mainColor().red, routines.mainColor().green, routines.mainColor().blue, sawtooth_param_2); break; case eMultiGlimmer: routines_2.multiGlimmer(current_palette_2, multi_glimmer_param_2); break; case eMultiFade: routines_2.multiFade(current_palette_2); break; case eMultiRandomSolid: routines_2.multiRandomSolid(current_palette_2); break; case eMultiRandomIndividual: routines_2.multiRandomIndividual(current_palette_2); break; case eMultiBars: routines_2.multiBars(current_palette_2, multi_bars_param_2); break; default: break; } } #endif //================================================================================ // Packet Parsing //================================================================================ /*! * @brief parsePacket This parser looks at the header of a control packet and from that determines * which parameters to use and what settings to change. * * @param header the int representation of the packet's first value. */ bool parsePacket(int header) { // In each case, theres a final check that the packet was properly // formatted by making sure its getting the right number of values. boolean success = false; switch (header) { case eOnOffChange: if (int_array_size == 3) { success = true; received_hardware_index = packet_int_array[1]; if ((received_hardware_index == hardware_index) || (received_hardware_index == 0)) { if (packet_int_array[2] == 0) { routines.turnOff(); } else if (packet_int_array[2] == 1) { loop_counter = 0; routines.turnOn(); } } #if IS_MULTI if ((received_hardware_index == routines_2_index) || (received_hardware_index == 0)) { if (packet_int_array[2] == 0) { routines_2.turnOff(); } else if (packet_int_array[2] == 1) { loop_counter = 0; routines_2.turnOn(); } } #endif } break; case eModeChange: success = routineParser(success); break; case eCustomArrayColorChange: if (int_array_size == 6) { int color_index = packet_int_array[2]; if (color_index >= 0 && color_index < eRoutine_MAX) { success = true; // only tell the routines to reset themselves if a custom routine is used. if ((current_routine > eSingleSawtoothFade) && (current_palette == eCustom)) { // Reset LEDS loop_counter = 0; } received_hardware_index = packet_int_array[1]; if ((received_hardware_index == hardware_index) || (received_hardware_index == 0)) { routines.setColor(color_index, packet_int_array[3], packet_int_array[4], packet_int_array[5]); } #if IS_MULTI if ((received_hardware_index == routines_2_index) || (received_hardware_index == 0)) { routines_2.setColor(color_index, packet_int_array[3], packet_int_array[4], packet_int_array[5]); } #endif } } break; case eBrightnessChange: { if (int_array_size == 3) { success = true; int param = constrain(packet_int_array[2], 0, 100); received_hardware_index = packet_int_array[1]; // update brightness level if ((received_hardware_index == hardware_index) || (received_hardware_index == 0)) { if (param != routines.brightness()) { should_update_no_speed = true; routines.brightness(param); } } #if IS_MULTI if ((received_hardware_index == routines_2_index) || (received_hardware_index == 0)) { if (param != routines.brightness()) { should_update_2_no_speed = true; routines_2.brightness(param); } } #endif } break; } case eIdleTimeoutChange: if (int_array_size == 3) { success = true; received_hardware_index = packet_int_array[1]; if ((received_hardware_index == hardware_index) || (received_hardware_index == 0)) { unsigned long new_timeout = (unsigned long)packet_int_array[2]; idle_timeout = new_timeout * 60 * 1000; } #if IS_MULTI if ((received_hardware_index == routines_2_index) || (received_hardware_index == 0)) { unsigned long new_timeout = (unsigned long)packet_int_array[2]; idle_timeout_2 = new_timeout * 60 * 1000; } #endif } break; case eCustomColorCountChange: if (int_array_size == 3) { if (packet_int_array[2] > 1) { success = true; received_hardware_index = packet_int_array[1]; if ((received_hardware_index == hardware_index) || (received_hardware_index == 0)) { routines.setCustomColorCount(packet_int_array[2]); } #if IS_MULTI if ((received_hardware_index == routines_2_index) || (received_hardware_index == 0)) { routines_2.setCustomColorCount(packet_int_array[2]); } #endif } } break; case eStateUpdateRequest: if (int_array_size == 1) { skip_echo = true; // Send back update buildStateUpdatePacket(); #if IS_SERIAL Serial.write(state_update_packet); #endif #if IS_HTTP client.print(state_update_packet); #endif #if IS_UDP Bridge.put(F(""state_update""), state_update_packet); #endif } break; case eCustomArrayUpdateRequest: if (int_array_size == 1) { skip_echo = true; // Send back update buildCustomArrayUpdatePacket(); #if IS_SERIAL Serial.write(state_update_packet); #endif #if IS_HTTP client.print(state_update_packet); #endif #if IS_UDP Bridge.put(F(""custom_array_update""), state_update_packet); #endif #if IS_MULTI buildCustomArrayUpdatePacket_2(); Serial.write(state_update_packet); #endif } break; default: break; } return success; } /*! * @brief routineParser Parses a routine packet, checking that the received packets are the proper * size and that their values fall into the proper ranges. If they do, this function sets * the values in memory. * * @param currentSuccess the current success status of the packet parsing. This will only ever * set the success packet to true */ bool routineParser(bool currentSuccess) { bool success = currentSuccess; // check theres at least enough information to get a routine and hardware index // and check if routine is in a valid range if (int_array_size > 2) { if ((packet_int_array[2] < (int)eRoutine_MAX) && (packet_int_array[1] <= (DEFAULT_HW_INDEX + DEVICE_COUNT - 1))) { // required values received_hardware_index = packet_int_array[1]; ERoutine routine = (ERoutine)packet_int_array[2]; bool isValid = false; reset_counter = false; // routine specific values EPalette palette = ePalette_MAX; int speedValue = 0; // check that packets are the correct size and fill in parameters // check if loop counter should reset switch (routine) { case eSingleSolid: { if (int_array_size == 6) { isValid = parseColor(packet_int_array[3], packet_int_array[4], packet_int_array[5]); } break; } case eSingleBlink: case eSingleWave: { if (int_array_size == 7) { speedValue = packet_int_array[6]; if (speedValue >= 0 && speedValue <= MAX_SPEED_VALUE) { isValid = parseColor(packet_int_array[3], packet_int_array[4], packet_int_array[5]); } // check if reset counter if (routine != current_routine) { reset_counter = true; } } break; } case eSingleFade: case eSingleSawtoothFade: case eSingleGlimmer: { if (int_array_size == 8) { speedValue = packet_int_array[6]; // handle the optional parameters if (routine == eSingleFade) { if (speedValue >= 0 && speedValue <= MAX_SPEED_VALUE && packet_int_array[7] <= 1) { isValid = parseColor(packet_int_array[3], packet_int_array[4], packet_int_array[5]); if (packet_int_array[7] != fade_param) { fade_param = packet_int_array[7]; reset_counter = true; } } } else if (routine == eSingleSawtoothFade) { if (speedValue >= 0 && speedValue <= MAX_SPEED_VALUE && packet_int_array[7] <= 1) { isValid = parseColor(packet_int_array[3], packet_int_array[4], packet_int_array[5]); if (packet_int_array[7] != sawtooth_param) { sawtooth_param = packet_int_array[7]; reset_counter = true; } } } else if (routine == eSingleGlimmer) { if (speedValue >= 0 && speedValue <= MAX_SPEED_VALUE && packet_int_array[7] <= 100) { isValid = parseColor(packet_int_array[3], packet_int_array[4], packet_int_array[5]); if (packet_int_array[7] != single_glimmer_param) { single_glimmer_param = packet_int_array[7]; reset_counter = true; } } } // check if reset counter if (routine != current_routine) { reset_counter = true; } } break; } case eMultiGlimmer: case eMultiBars: { if (int_array_size == 6) { palette = (EPalette)packet_int_array[3]; speedValue = packet_int_array[4]; isValid = true; if (routine == eMultiGlimmer) { if (speedValue >= 0 && speedValue <= MAX_SPEED_VALUE && packet_int_array[5] <= 100) { isValid = true; if (packet_int_array[5] != multi_glimmer_param) { multi_glimmer_param = packet_int_array[5]; reset_counter = true; } } } else if (routine == eMultiBars) { if (speedValue >= 0 && speedValue <= MAX_SPEED_VALUE && packet_int_array[5] <= 10) { isValid = true; if (packet_int_array[5] != multi_bars_param) { multi_bars_param = packet_int_array[5]; reset_counter = true; } } } if (speedValue >= 0 && speedValue <= MAX_SPEED_VALUE) { isValid = true; // check if reset counter if (palette != current_palette || routine != current_routine) { reset_counter = true; } } } break; } case eMultiFade: case eMultiRandomSolid: case eMultiRandomIndividual: { if (int_array_size == 5) { palette = (EPalette)packet_int_array[3]; speedValue = packet_int_array[4]; if (speedValue >= 0 && speedValue <= MAX_SPEED_VALUE) { isValid = true; // check if reset counter if (palette != current_palette || routine != current_routine) { reset_counter = true; } } } break; } default: break; } // if the packet was valid, do some final checks if (isValid) { // update stored values if ((received_hardware_index == hardware_index) || (received_hardware_index == 0)) { if (routine == eSingleSolid) { // check reset counter if (routine != current_routine) { reset_counter = true; } current_routine = routine; } else if ((speedValue >= 0 && speedValue <= MAX_SPEED_VALUE)) { update_speed = speedValue; current_routine = routine; if (routine > eSingleSawtoothFade) { current_palette = palette; } } } #if IS_MULTI if ((received_hardware_index == routines_2_index) || (received_hardware_index == 0)) { if (routine == eSingleSolid) { // check reset counter if (routine != current_routine_2) { reset_counter = true; } current_routine_2 = routine; } else if ((speedValue >= 0 && speedValue <= MAX_SPEED_VALUE)) { update_speed_2 = speedValue; current_routine_2 = routine; if (routine > eSingleSawtoothFade) { current_palette_2 = palette; } } } #endif if (reset_counter) { // Reset to 0 to draw to screen right away loop_counter = 0; if ((received_hardware_index == hardware_index) || (received_hardware_index == 0)) { should_update_no_speed = true; } #if IS_MULTI if ((received_hardware_index == routines_2_index) || (received_hardware_index == 0)) { should_update_2_no_speed = true; } #endif } success = true; } } } return success; } bool parseColor(int red, int green, int blue) { bool success = false; // first check if the values are in a valid range if (red >= 0 && red <= 255 || green >= 0 && green <= 255 || blue >= 0 && blue <= 255) { if ((received_hardware_index == hardware_index) || (received_hardware_index == 0)) { if (red != routines.mainColor().red || green != routines.mainColor().green || blue != routines.mainColor().blue) { reset_counter = true; routines.setMainColor(red, green, blue); } } #if IS_MULTI if ((received_hardware_index == routines_2_index) || (received_hardware_index == 0)) { if (red != routines_2.mainColor().red || green != routines_2.mainColor().green || blue != routines_2.mainColor().blue) { reset_counter = true; routines_2.setMainColor(red, green, blue); } } #endif success = true; } return success; } //================================================================================ // State Update //================================================================================ void buildStateUpdatePacket() { memset(state_update_packet, 0, sizeof(state_update_packet)); strcat(state_update_packet, itoa((uint8_t)eStateUpdateRequest, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa((uint8_t)hardware_index, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa((uint8_t)routines.isOn(), num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(1, num_buf, 10)); // isReachable strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(routines.mainColor().red, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(routines.mainColor().green, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(routines.mainColor().blue, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa((uint8_t)current_routine, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa((uint8_t)current_palette, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(routines.brightness(), num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(update_speed, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(idle_timeout / 60000, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(calculateMinutesUntilTimeout(last_message_time, idle_timeout), num_buf, 10)); strcat(state_update_packet, message_delimiter); #if IS_MULTI strcat(state_update_packet, itoa((uint8_t)eStateUpdateRequest, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa((uint8_t)routines_2_index, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa((uint8_t)routines_2.isOn(), num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(1, num_buf, 10)); // isReachable strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(routines_2.mainColor().red, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(routines_2.mainColor().green, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(routines_2.mainColor().blue, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa((uint8_t)current_routine_2, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa((uint8_t)current_palette_2, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(routines_2.brightness(), num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(update_speed_2, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(idle_timeout_2 / 60000, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(calculateMinutesUntilTimeout(last_message_time, idle_timeout_2), num_buf, 10)); strcat(state_update_packet, message_delimiter); #endif // add the crc if (USE_CRC) { unsigned long crc = crcCalculator(state_update_packet); strcat(state_update_packet, crc_delimiter); strcat(state_update_packet, ultoa(crc, num_buf, 10)); strcat(state_update_packet, message_delimiter); } #if IS_SERIAL strcat(state_update_packet, packet_delimiter); // add the newline if (USE_NEWLINE) { strcat(state_update_packet, new_line); } #endif } void buildCustomArrayUpdatePacket() { memset(state_update_packet, 0, sizeof(state_update_packet)); strcat(state_update_packet, itoa((uint8_t)eCustomArrayUpdateRequest, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa((uint8_t)hardware_index, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa((uint8_t)routines.customColorCount(), num_buf, 10)); for (int i = 0; i < routines.customColorCount(); ++i) { strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(routines.color(i).red, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(routines.color(i).green, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(routines.color(i).blue, num_buf, 10)); } strcat(state_update_packet, message_delimiter); // add the crc if (USE_CRC) { unsigned long crc = crcCalculator(state_update_packet); strcat(state_update_packet, crc_delimiter); strcat(state_update_packet, ultoa(crc, num_buf, 10)); strcat(state_update_packet, message_delimiter); } #if IS_SERIAL strcat(state_update_packet, packet_delimiter); // add the newline if (USE_NEWLINE) { strcat(state_update_packet, new_line); } #endif } #if IS_MULTI void buildCustomArrayUpdatePacket_2() { memset(state_update_packet, 0, sizeof(state_update_packet)); strcat(state_update_packet, itoa((uint8_t)eCustomArrayUpdateRequest, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa((uint8_t)routines_2_index, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa((uint8_t)routines_2.customColorCount(), num_buf, 10)); for (int i = 0; i < routines.customColorCount(); ++i) { strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(routines_2.color(i).red, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(routines_2.color(i).green, num_buf, 10)); strcat(state_update_packet, value_delimiter); strcat(state_update_packet, itoa(routines_2.color(i).blue, num_buf, 10)); } strcat(state_update_packet, message_delimiter); // add the crc if (USE_CRC) { unsigned long crc = crcCalculator(state_update_packet); strcat(state_update_packet, crc_delimiter); strcat(state_update_packet, ultoa(crc, num_buf, 10)); strcat(state_update_packet, message_delimiter); } strcat(state_update_packet, packet_delimiter); // add the newline if (USE_NEWLINE) { strcat(state_update_packet, new_line); } } #endif void buildDiscoveryPacket() { strcat(discovery_packet, ""DISCOVERY_PACKET""); strcat(discovery_packet, value_delimiter); strcat(discovery_packet, itoa((uint8_t)API_LEVEL_MAJOR, num_buf, 10)); strcat(discovery_packet, value_delimiter); strcat(discovery_packet, itoa((uint8_t)API_LEVEL_MINOR, num_buf, 10)); strcat(discovery_packet, value_delimiter); strcat(discovery_packet, itoa((uint8_t)USE_CRC, num_buf, 10)); strcat(discovery_packet, value_delimiter); strcat(discovery_packet, itoa((uint8_t)0, num_buf, 10)); // Hardware Capabilities flag (0 for arduino, 1 for raspberry pi) strcat(discovery_packet, value_delimiter); strcat(discovery_packet, itoa((uint8_t)max_packet_size, num_buf, 10)); strcat(discovery_packet, value_delimiter); strcat(discovery_packet, itoa((uint8_t)DEVICE_COUNT, num_buf, 10)); strcat(discovery_packet, names_delimiter); strcat(discovery_packet, name_buffer); strcat(discovery_packet, value_delimiter); strcat(discovery_packet, itoa((uint8_t)light_type, num_buf, 10)); strcat(discovery_packet, value_delimiter); strcat(discovery_packet, itoa((uint8_t)product_type, num_buf, 10)); #if IS_MULTI strcat(discovery_packet, value_delimiter); strcat(discovery_packet, name_buffer_2); strcat(discovery_packet, value_delimiter); strcat(discovery_packet, itoa((uint8_t)light_type_2, num_buf, 10)); strcat(discovery_packet, value_delimiter); strcat(discovery_packet, itoa((uint8_t)product_type_2, num_buf, 10)); #endif strcat(discovery_packet, message_delimiter); #if IS_SERIAL strcat(discovery_packet, packet_delimiter); // add the newline if (USE_NEWLINE) { strcat(discovery_packet, new_line); } #endif } void echoPacket() { // add the crc if (USE_CRC) { unsigned long crc = crcCalculator(echo_message); strcat(echo_message, crc_delimiter); strcat(echo_message, ultoa(crc, num_buf, 10)); strcat(echo_message, message_delimiter); } #if IS_SERIAL strcat(echo_message, packet_delimiter); // add the newline if (USE_NEWLINE) { strcat(echo_message, new_line); } Serial.write(echo_message); #endif #if IS_HTTP client.print(echo_message); #endif } unsigned long calculateMinutesUntilTimeout(unsigned long last_message, unsigned long timeout_max) { if (timeout_max == 0) { // will never timeout as this is disabled, jsut return 1. return 1; } else if (last_message + timeout_max < millis()) { // already timed out. return 0; } else { // we truncate the value so a +1 is added so that when theres less than a minute its not treated as already timed out. return ((timeout_max + last_message - millis()) / 60000) + 1; } } //================================================================================ // String Parsing //================================================================================ /*! * @brief checkIfPacketIsValid takes a char array as input and determines if * it contains the proper characters. If CRC is enabled, it also runs the * CRC check. This function does not modify the char array in any way. * * @param message the input char array. * * @return true if the string was parseable and passes CRC, false otherwise. */ bool checkIfPacketIsValid(char* message) { bool isValid = true; //----- // Validity check //----- // check if it contains only valid characters int hashCount = 0; int i = 0; while(message[i] != 0) { if (!(isdigit(message[i]) || message[i] == ',' || message[i] == '&' || message[i] == '#' || message[i] == '-')) { isValid = false; } // # is only used in CRCs, and a valid message // can only have one. if (message[i] == '#') { if (USE_CRC) { // count number of # hashCount++; } else { // This should not be valid as its used for CRC only isValid = false; } } ++i; } //----- // Early failures check //----- // exit early if packet is not valid. if ((USE_CRC && (hashCount != 1)) // CRC packets must have one # || (isValid == false)) { return false; } //----- // CRC check //----- if (USE_CRC) { // get a char array of the payload char* payload = strtok(message, ""#""); // get a char array of the CRC char* crcASCII = strtok(0, ""&""); // compute the CRC of the full packet unsigned long computedCRC = crcCalculator(message); // grab the unsigned long value of the crc unsigned long givenCRC = strtoul(crcASCII, NULL, 0); if (computedCRC == givenCRC) { // using CRC, computed CRC matches given return true; } else { // using CRC, computed CRC matches given return false; } } else { // valid but not using CRC, return true return true; } } /*! * @brief delimitedStringToIntArray takes a char array and fills the packet_int_array * variable with the integer representation of these packets. By this point in message parsing, * it is already confirmed that the messages contain only digits and "","" characters, as the char * array has passed its CRC check and has been converted into a single message and has had its ""&"" * stripped away. This is a destructive operation and the char array cannot be used after it. * * @param message the input string. * */ void delimitedStringToIntArray(char* message) { int_array_size = 0; // Get the frist substring delimited by a "","" char* valuePtr = strtok(message, "",""); while (valuePtr != 0) { // convert chars to int and story in int array. packet_int_array[int_array_size] = atoi(valuePtr); int_array_size++; // Find the next substring delimited by a "","" valuePtr = strtok(0, "",""); } } ",12271,False,2138.985813366491,median "/****************************************************************************************** COPYRIGHT (c) 2019 HIGO MELO * * O SOFTWARE É FORNECIDO GRATUITAMENTE, SEM GARANTIA DE QUALQUER TIPO, EXPRESSA OU IMPLÍCITA, DE GARANTIA, RESSALVADAS ÀS GARANTIAS DE COMERCIALIZAÇÃO E NÃO VIOLAÇÃO DOS DIREIOTS AUTORAIS. EM NENHUMA CIRCUNSTÂNCIA, O TITULAR DOS DIREITOS AUTORAIS PODE SER RESPONSABILIZADO POR QUAISQUER DANOS OU UTILIZAÇÃO INDEVIDA DESTE. * * Este sketch é destinado ao nodeMCU v1.0 com display LCD monocromático (sem tons de cinza) conhecido como ""Nokia 5110"" com controlador Adafruit_PCD8544, utilizando ainda protocolo SPI para comunicação, através de 5 pinos, porém dá para eliminar um e usar apenas os 4 pinos da SPI. Não é reomendado a alteração do tipo de variaveis acima sob pena de erro compilando para a placa ESP8266U em função da biblioteca adafruit_PCD8544, então siga o esquema de* ligação abaixo para o LCD 5110 (cor vermelha): * PINAGEM LCD ESP-12E * Pino 1 -----> RST -----> D2 (GPIO4) - Saída do ESP para redefinir a exibição * Pino 2 -----> CE -----> D5 (GPIO11) - Saída do ESP para selecionar chip / ativar exibição Pino 3 -----> DC -----> D6 (GPIO12) (MISO) - Saída dos dados de exibição / comando para ESP Pino 4 -----> DIN -----> D7 (GPIO13) (MOSI) - DIN do ESP SPI MOSI para exibir entrada de dados Pino 5 -----> CLK -----> D8(GPIO14) - saídas CLK do relógio ESP SPI Pino 6 -----> VCC -----> 3.3V - Alimentação do LCD para ligar o LCD Pino 7 -----> LIGHT -----> GND Pino 8 -----> GND -----> GND* * * A resolução é de 84×48 pixels. *****************************************************************************************/ /* A biblioteca Adafruit_GFX deve antecede a biblioteca Adafruit_PCD8544 sob pena de erro na compilação do programa. Inspirado no modelo disponível em https://github.com/michielvanhoorn/thingspeak-nodemcu-with-nokia-5110-LCD/blob/master/thingspeak.ino */ #include #include #include //Cria uma instancia da classe Adafruit_PCD8544 para enviar dados ao LCD Adafruit_PCD8544 display = Adafruit_PCD8544(D8, D7, D6, D5, D2); /******************************************(CLK, DIN, DC, CE, RST)*/ const unsigned char Arduino_Logo[] PROGMEM = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 192, 0, 0, 3, 128, 0, 0, 0, 56, 0, 9, 64, 0, 0, 255, 255, 0, 0, 15, 255, 224, 0, 0, 0, 7, 255, 255, 224, 0, 127, 255, 252, 0, 0, 0, 31, 248, 31, 248, 3, 255, 129, 255, 0, 0, 0, 63, 128, 1, 254, 7, 248, 0, 63, 192, 0, 0, 126, 0, 0, 127, 31, 192, 0, 15, 224, 0, 0, 252, 0, 0, 31, 255, 128, 0, 3, 240, 0, 1, 248, 0, 0, 15, 254, 0, 48, 1, 240, 0, 1, 240, 0, 0, 7, 252, 0, 48, 1, 248, 0, 1, 240, 31, 248, 1, 248, 3, 255, 1, 248, 0, 1, 240, 0, 0, 3, 248, 0, 48, 1, 248, 0, 1, 248, 0, 0, 7, 254, 0, 48, 1, 240, 0, 1, 248, 0, 0, 15, 255, 0, 0, 3, 240, 0, 0, 252, 0, 0, 63, 191, 128, 0, 7, 224, 0, 0, 127, 0, 0, 255, 15, 224, 0, 15, 192, 0, 0, 63, 192, 7, 252, 7, 252, 0, 127, 128, 0, 0, 15, 255, 255, 240, 1, 255, 255, 254, 0, 0, 0, 3, 255, 255, 192, 0, 63, 255, 248, 0, 0, 0, 0, 63, 252, 0, 0, 3, 255, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 31, 7, 131, 8, 254, 49, 131, 0, 0, 0, 30, 24, 196, 115, 8, 24, 57, 140, 192, 0, 0, 54, 24, 196, 51, 8, 16, 45, 152, 96, 0, 0, 51, 31, 132, 51, 8, 16, 39, 152, 96, 0, 0, 99, 25, 132, 99, 24, 24, 35, 140, 192, 0, 0, 65, 24, 193, 0, 224, 198, 32, 131, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; const unsigned char smiley_1[] PROGMEM = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 255, 255, 240, 0, 0, 0, 0, 0, 0, 0, 63, 255, 255, 255, 0, 0, 0, 0, 0, 0, 1, 255, 255, 255, 255, 240, 0, 0, 0, 0, 0, 15, 254, 0, 0, 15, 254, 0, 0, 0, 0, 0, 63, 224, 0, 0, 0, 255, 128, 0, 0, 0, 0, 254, 0, 0, 0, 0, 31, 224, 0, 0, 0, 3, 248, 0, 0, 0, 0, 3, 248, 0, 0, 0, 15, 224, 0, 0, 0, 0, 0, 252, 0, 0, 0, 31, 128, 0, 0, 0, 0, 0, 63, 0, 0, 0, 63, 0, 0, 0, 0, 0, 0, 31, 128, 0, 0, 124, 0, 0, 0, 0, 0, 0, 7, 192, 0, 0, 248, 0, 0, 0, 0, 0, 0, 3, 224, 0, 1, 240, 0, 0, 0, 0, 0, 0, 1, 240, 0, 3, 224, 0, 0, 0, 0, 0, 0, 0, 248, 0, 3, 224, 0, 63, 0, 0, 31, 128, 0, 248, 0, 7, 192, 0, 127, 128, 0, 63, 192, 0, 124, 0, 7, 128, 0, 127, 192, 0, 63, 224, 0, 124, 0, 15, 128, 0, 63, 128, 0, 63, 192, 0, 60, 0, 15, 128, 0, 30, 0, 0, 15, 0, 0, 62, 0, 15, 128, 0, 0, 0, 0, 0, 0, 0, 62, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 62, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 62, 0, 15, 128, 0, 0, 0, 0, 0, 0, 0, 62, 0, 15, 128, 0, 0, 0, 0, 0, 0, 0, 62, 0, 15, 128, 0, 0, 0, 0, 0, 0, 0, 60, 0, 7, 128, 0, 192, 0, 0, 0, 64, 0, 124, 0, 7, 192, 3, 224, 0, 0, 0, 248, 0, 124, 0, 3, 192, 1, 248, 0, 0, 3, 240, 0, 248, 0, 3, 224, 0, 254, 0, 0, 31, 224, 0, 248, 0, 1, 240, 0, 63, 224, 0, 255, 128, 1, 240, 0, 0, 248, 0, 15, 255, 255, 254, 0, 3, 224, 0, 0, 124, 0, 1, 255, 255, 240, 0, 7, 192, 0, 0, 63, 0, 0, 15, 254, 0, 0, 31, 128, 0, 0, 31, 128, 0, 0, 0, 0, 0, 63, 0, 0, 0, 15, 224, 0, 0, 0, 0, 0, 252, 0, 0, 0, 3, 248, 0, 0, 0, 0, 3, 248, 0, 0, 0, 0, 254, 0, 0, 0, 0, 31, 224, 0, 0, 0, 0, 63, 224, 0, 0, 0, 255, 128, 0, 0, 0, 0, 15, 254, 0, 0, 15, 254, 0, 0, 0, 0, 0, 1, 255, 255, 255, 255, 240, 0, 0, 0, 0, 0, 0, 63, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 1, 255, 255, 240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; const unsigned char smiley_feliz [] PROGMEM = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 254, 0, 0, 0, 0, 0, 0, 0, 0, 3, 255, 255, 252, 0, 0, 0, 0, 0, 0, 0, 63, 255, 255, 255, 192, 0, 0, 0, 0, 0, 1, 255, 224, 0, 127, 248, 0, 0, 0, 0, 0, 7, 252, 0, 0, 3, 255, 0, 0, 0, 0, 0, 63, 192, 0, 0, 0, 63, 192, 0, 0, 0, 0, 127, 0, 0, 0, 0, 15, 224, 0, 0, 0, 1, 248, 0, 0, 0, 0, 1, 248, 0, 0, 0, 3, 240, 0, 0, 0, 0, 0, 124, 0, 0, 0, 15, 192, 0, 0, 0, 0, 0, 63, 0, 0, 0, 31, 128, 0, 0, 0, 0, 0, 15, 128, 0, 0, 62, 0, 0, 0, 0, 0, 0, 7, 192, 0, 0, 124, 0, 0, 0, 0, 0, 0, 3, 224, 0, 0, 124, 0, 0, 0, 0, 0, 0, 1, 224, 0, 0, 248, 0, 63, 128, 0, 31, 192, 1, 240, 0, 0, 240, 0, 255, 240, 0, 255, 240, 0, 248, 0, 1, 240, 1, 255, 248, 1, 255, 248, 0, 248, 0, 1, 224, 3, 224, 120, 1, 224, 124, 0, 120, 0, 1, 224, 3, 192, 124, 3, 224, 60, 0, 124, 0, 3, 224, 0, 0, 0, 0, 0, 0, 0, 124, 0, 3, 224, 0, 0, 0, 0, 0, 0, 0, 124, 0, 3, 224, 0, 0, 0, 0, 0, 0, 0, 60, 0, 3, 224, 0, 0, 0, 0, 0, 0, 0, 124, 0, 3, 224, 0, 0, 0, 0, 0, 0, 0, 124, 0, 1, 224, 0, 0, 0, 0, 0, 0, 0, 120, 0, 1, 240, 0, 32, 0, 0, 0, 64, 0, 120, 0, 1, 240, 0, 240, 0, 0, 0, 248, 0, 248, 0, 0, 248, 0, 252, 0, 0, 3, 240, 0, 240, 0, 0, 120, 0, 63, 0, 0, 15, 224, 1, 240, 0, 0, 124, 0, 31, 240, 0, 255, 128, 3, 224, 0, 0, 62, 0, 7, 255, 255, 254, 0, 7, 192, 0, 0, 31, 0, 0, 255, 255, 240, 0, 15, 128, 0, 0, 15, 192, 0, 3, 254, 0, 0, 31, 0, 0, 0, 7, 224, 0, 0, 0, 0, 0, 126, 0, 0, 0, 1, 248, 0, 0, 0, 0, 1, 252, 0, 0, 0, 0, 254, 0, 0, 0, 0, 7, 240, 0, 0, 0, 0, 63, 128, 0, 0, 0, 31, 192, 0, 0, 0, 0, 15, 240, 0, 0, 0, 255, 0, 0, 0, 0, 0, 3, 255, 128, 0, 31, 252, 0, 0, 0, 0, 0, 0, 127, 255, 255, 255, 224, 0, 0, 0, 0, 0, 0, 7, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 63, 255, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; const unsigned char smiley_sorridente [] PROGMEM = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 255, 128, 0, 0, 0, 0, 0, 0, 0, 7, 255, 255, 254, 0, 0, 0, 0, 0, 0, 0, 127, 255, 255, 255, 224, 0, 0, 0, 0, 0, 3, 255, 192, 0, 63, 252, 0, 0, 0, 0, 0, 15, 248, 0, 0, 1, 255, 0, 0, 0, 0, 0, 127, 128, 0, 0, 0, 31, 224, 0, 0, 0, 0, 254, 0, 0, 0, 0, 7, 240, 0, 0, 0, 3, 248, 0, 0, 0, 0, 1, 252, 0, 0, 0, 7, 224, 0, 0, 0, 0, 0, 126, 0, 0, 0, 31, 128, 0, 0, 0, 0, 0, 31, 128, 0, 0, 63, 0, 0, 0, 0, 0, 0, 15, 192, 0, 0, 126, 0, 0, 0, 0, 0, 0, 7, 224, 0, 0, 248, 0, 0, 0, 0, 0, 0, 3, 240, 0, 0, 248, 0, 0, 0, 0, 0, 0, 1, 240, 0, 1, 240, 0, 6, 0, 0, 6, 0, 0, 248, 0, 3, 224, 0, 63, 128, 0, 31, 192, 0, 124, 0, 3, 224, 0, 63, 192, 0, 63, 192, 0, 124, 0, 3, 192, 0, 63, 192, 0, 63, 192, 0, 60, 0, 7, 192, 0, 63, 128, 0, 31, 192, 0, 62, 0, 7, 192, 56, 0, 0, 0, 0, 3, 192, 62, 0, 7, 128, 63, 0, 0, 0, 0, 15, 192, 62, 0, 7, 128, 63, 128, 0, 0, 0, 31, 192, 30, 0, 7, 192, 7, 192, 0, 0, 0, 62, 0, 30, 0, 7, 192, 3, 224, 0, 0, 0, 124, 0, 62, 0, 7, 192, 7, 248, 0, 0, 1, 252, 0, 62, 0, 3, 192, 15, 255, 0, 0, 15, 255, 0, 60, 0, 3, 224, 63, 191, 248, 1, 255, 223, 192, 124, 0, 3, 224, 62, 15, 255, 255, 255, 7, 192, 124, 0, 1, 240, 32, 0, 255, 255, 240, 0, 64, 248, 0, 0, 248, 0, 0, 3, 252, 0, 0, 1, 240, 0, 0, 252, 0, 0, 0, 0, 0, 0, 1, 240, 0, 0, 126, 0, 0, 0, 0, 0, 0, 7, 224, 0, 0, 63, 0, 0, 0, 0, 0, 0, 15, 192, 0, 0, 31, 128, 0, 0, 0, 0, 0, 31, 128, 0, 0, 7, 224, 0, 0, 0, 0, 0, 126, 0, 0, 0, 3, 248, 0, 0, 0, 0, 1, 252, 0, 0, 0, 0, 254, 0, 0, 0, 0, 7, 240, 0, 0, 0, 0, 127, 128, 0, 0, 0, 31, 224, 0, 0, 0, 0, 15, 248, 0, 0, 1, 255, 0, 0, 0, 0, 0, 3, 255, 192, 0, 63, 252, 0, 0, 0, 0, 0, 0, 127, 255, 255, 255, 224, 0, 0, 0, 0, 0, 0, 7, 255, 255, 254, 0, 0, 0, 0, 0, 0, 0, 0, 63, 255, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; const unsigned char smiley_lingua [] PROGMEM = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 224, 0, 0, 0, 0, 0, 0, 0, 31, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 255, 254, 15, 255, 224, 0, 0, 0, 0, 0, 7, 254, 0, 0, 15, 252, 0, 0, 0, 0, 0, 31, 224, 0, 0, 0, 255, 0, 0, 0, 0, 0, 127, 0, 0, 0, 0, 31, 192, 0, 0, 0, 1, 252, 0, 0, 0, 0, 7, 240, 0, 0, 0, 3, 240, 0, 0, 0, 0, 1, 248, 0, 0, 0, 7, 192, 0, 0, 0, 0, 0, 124, 0, 0, 0, 31, 128, 0, 0, 0, 0, 0, 63, 0, 0, 0, 62, 0, 0, 0, 0, 0, 0, 31, 128, 0, 0, 60, 0, 0, 0, 0, 0, 0, 7, 128, 0, 0, 124, 0, 0, 0, 0, 0, 0, 7, 192, 0, 0, 248, 0, 0, 0, 0, 0, 0, 3, 224, 0, 1, 240, 0, 31, 128, 0, 63, 0, 1, 224, 0, 1, 224, 0, 63, 192, 0, 127, 128, 1, 240, 0, 3, 224, 0, 63, 192, 0, 127, 128, 0, 240, 0, 3, 224, 0, 63, 128, 0, 63, 128, 0, 248, 0, 3, 192, 0, 4, 0, 0, 4, 0, 0, 120, 0, 3, 192, 0, 0, 0, 0, 0, 0, 0, 120, 0, 3, 192, 0, 0, 0, 0, 0, 0, 0, 120, 0, 3, 192, 0, 96, 0, 0, 0, 192, 0, 120, 0, 3, 192, 1, 240, 0, 0, 1, 240, 0, 120, 0, 3, 224, 0, 252, 0, 0, 7, 224, 0, 248, 0, 3, 224, 0, 127, 0, 0, 31, 192, 0, 240, 0, 1, 224, 0, 31, 240, 1, 255, 0, 0, 240, 0, 1, 240, 0, 7, 255, 255, 252, 0, 1, 240, 0, 0, 240, 0, 0, 255, 255, 224, 0, 3, 224, 0, 0, 248, 0, 0, 127, 255, 128, 0, 3, 192, 0, 0, 124, 0, 0, 124, 7, 192, 0, 7, 192, 0, 0, 62, 0, 0, 124, 7, 192, 0, 15, 128, 0, 0, 31, 0, 0, 124, 7, 128, 0, 31, 0, 0, 0, 15, 192, 0, 63, 31, 128, 0, 126, 0, 0, 0, 7, 224, 0, 31, 255, 0, 0, 252, 0, 0, 0, 1, 248, 0, 7, 252, 0, 3, 240, 0, 0, 0, 0, 254, 0, 0, 64, 0, 15, 224, 0, 0, 0, 0, 63, 192, 0, 0, 0, 127, 128, 0, 0, 0, 0, 15, 248, 0, 0, 3, 254, 0, 0, 0, 0, 0, 1, 255, 224, 0, 255, 240, 0, 0, 0, 0, 0, 0, 63, 255, 255, 255, 128, 0, 0, 0, 0, 0, 0, 3, 255, 255, 248, 0, 0, 0, 0, 0, 0, 0, 0, 7, 252, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // biblioteca com funções para o WiFi do ESP6288 #include #include #include #include //Cria uma instancia da classe ESP8266WiFiMulti para conectar as redes WiFi ESP8266WiFiMulti wifiMulti; WiFiUDP udp; int16_t utc = -3; //UTC -3:00 Brazil uint32_t tempoAtual = 0; uint32_t horaCerta = 0; NTPClient ntp(udp, ""a.st1.ntp.br"", utc * 3600, 60000); // biblioteca com funções para o sensor DHT11 #include // Pinagem do sensor DHT11 no ESP8266 #define DHTPIN D3 // Indicação do modelo de sensor, no caso DHT 11 #define DHTTYPE DHT11 //Cria uma instancia da classe WifiUDP para enviar e receber dados DHT dht(DHTPIN, DHT11); unsigned long tempo; String umidade, celsius, fahrenheit, hora, rssi; void setup() { // Inicialização do LCD display.begin(); display.setContrast(60); // Adjust for your display display.clearDisplay(); display.setCursor(13, 5); display.setTextColor(BLACK); display.setTextSize(1); display.println(""HIGO""); /* Text to be displayed */ display.setCursor(28, 15); display.println(""RICARDO""); display.display(); delay(2000); /* Draw rectangle with round edges. Parameters (x_co-ord,y-co-ord,width,height,color) */ display.drawRoundRect(5, 25, 25, 13, 1, BLACK); /* Draw circle. Parameters (x_co-ord of origin,y-co-ord of origin,radius,color) */ display.drawCircle(45, 34, 10, BLACK); /* Draw triangle. Parameters (x0,y0,x1,y1,x2,y2,width,color). (x0,y0), (x1,y1) and (x2,y2) are the co-ord of vertices of the triangle */ display.drawTriangle(60, 38, 70, 25, 80, 38, BLACK); display.display(); delay(2000); display.clearDisplay(); display.drawBitmap(0, 0, Arduino_Logo, 84, 48, 1); display.display(); delay(2000); display.clearDisplay(); //Inicialização da conexão WiFi startWiFi(); ntp.begin(); ntp.update(); // Inicialização do sensor DHT11 dht.begin(); } void clockUpdate() { ntp.forceUpdate(); horaCerta = millis();//Tempo atual em ms //Lógica de verificação do tempo if (horaCerta - tempoAtual > 500) { tempoAtual = horaCerta; // Salva o tempo atual } String hora = ""HORA: ""; hora += String (ntp.getFormattedTime()); display.println(hora); display.setCursor(0, 20); String rssi = ""WiFi:"" ; rssi += String (WiFi.RSSI()); rssi += ""dBm""; display.println(rssi); display.display(); delay(3000); display.clearDisplay(); } void dht11() { /* Teste de funcionalidade do DHT11 if (isnan(umidade) || isnan(celsius) || isnan(fahrenheit) ) { Serial.println(F(""Falhou a leitura do sensor DHT!"")); display.println(""Falhou a leitura do sensor DHT!""); display.display(); delay(3000); display.clearDisplay(); return } */ display.setTextSize(1); //Exibição dos dados colhidos pelo DHT11 String celsius = ""TEMPERATURA: "" ; celsius += String (dht.readTemperature()); celsius += char (247); celsius += ""C"" ; display.println (celsius); display.println (); String umidade = ""UMIDADE: "" ; umidade += String (dht.readHumidity()); umidade += ""%"" ; display.println (umidade); display.display(); delay(5000); display.clearDisplay(); /****************************************************** Exibição de dados do sensor DHT11 no monitor serial Serial.print(F(""UMIDADE: "")); Serial.print(umidade); Serial.println(F(""%"")); Serial.println (""""); Serial.print (""TEMPERATURA: ""); Serial.print(celsius); Serial.println(F(""°C "")); Serial.println (""""); Serial.print(fahrenheit); Serial.println(F(""°F "")); delay(5000); Serial.println (""""); ********************************************************/ } void loop() { display.clearDisplay(); display.drawBitmap(0, 0, smiley_1, 84, 48, 1); display.display(); delay(325); display.clearDisplay(); display.drawBitmap(0, 0, smiley_feliz, 84, 48, 1); display.display(); delay(325); display.clearDisplay(); //display.drawBitmap(0, 0, smiley_sorridente, 84, 48, 1); //display.display(); //delay(325); //display.clearDisplay(); display.drawBitmap(0, 0, smiley_lingua, 84, 48, 1); display.display(); delay(1000); display.clearDisplay(); clockUpdate(); delay(500); dht11(); /**************************************************************************************** Signal strength (RSSI) is the usable strength of the radio waves, expressed in decibels (db) between 0db (strongest) and -120db (weakest). The closer it is to zero, the stronger/cleaner the signal is. For WiFi, the normal range is -45db to -87db. Anything below -85db is generally unusable, and over -50db can be considered perfect. RSSI Quality > -50db Fantastic ~= -50db Great ~= -75db Average ~= -85db Poor ~= -95db *******************************************************************************************/ } void startWiFi() { display.println(); display.print(""Conectando...""); display.display(); delay(2000); display.clearDisplay(); //Coloque aqui as redes wifi necessarias wifiMulti.addAP("")o,0("", ""riko1234""); wifiMulti.addAP(""NOME_DA_REDE_WIFI_2"", ""SENHA_DA_REDE_WIFI_2""); wifiMulti.addAP(""NOME_DA_REDE_WIFI_3"", ""SENHA_DA_REDE_WIFI_3""); while (wifiMulti.run() != WL_CONNECTED) { //Aguarda a conexao da rede wifi delay(250); Serial.print('.'); display.clearDisplay(); display.setCursor(0, 5); display.println("".""); display.display(); delay(500); } display.println(""Connected:\\t""); display.print(WiFi.SSID()); display.println(); display.print(WiFi.localIP()); display.display(); delay(3000); display.clearDisplay(); } /* https://www.arduinoecia.com.br/2018/04/relogio-nodemcu-esp8266-display-oled-ntp.html https://www.youtube.com/watch?v=9Ew3R8Qgv5w http://www.squids.com.br/arduino/index.php/projetos-arduino/projetos-squids/basico/191-projeto-51-temperatura-e-relogio-digital-com-modulo-rtc-ds3231-para-arduino Acessado em 21/04/2019 */ ",12142,True,2948.711605549214,median "' Copyright (c) 2013-2016 Bruce A Henderson ' ' Based on the public domain Monkey ""trans"" by Mark Sibly ' ' This software is provided 'as-is', without any express or implied ' warranty. In no event will the authors be held liable for any damages ' arising from the use of this software. ' ' Permission is granted to anyone to use this software for any purpose, ' including commercial applications, and to alter it and redistribute it ' freely, subject to the following restrictions: ' ' 1. The origin of this software must not be misrepresented; you must not ' claim that you wrote the original software. If you use this software ' in a product, an acknowledgment in the product documentation would be ' appreciated but is not required. ' ' 2. Altered source versions must be plainly marked as such, and must not be ' misrepresented as being the original software. ' ' 3. This notice may not be removed or altered from any source ' distribution. ' SuperStrict Import ""config.bmx"" Include ""translator.bmx"" Include ""decl.bmx"" Include ""expr.bmx"" Include ""stmt.bmx"" Type TType Method ActualType:TType() Return Self End Method Method EqualsType:Int( ty:TType ) Return False End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) Return EqualsType( ty ) End Method Method WidensToType:Int( ty:TType ) Return False End Method Method DistanceToType:Int(ty:TType) Return T_MAX_DISTANCE End Method Method Semant:TType(option:Int = False) Return Self End Method Method GetClass:TClassDecl() Return Null End Method Method ToString$() Return ""??Type??"" End Method Method GetSize:Int() Return WORD_SIZE End Method Method ArrayOf:TArrayType() If Not _arrayOf Then _arrayOf=New TArrayType.Create( Self ) End If Return _arrayOf End Method Method OnCopy:TType() Abstract Global voidType:TVoidType=New TVoidType Global emptyArrayType:TArrayType=New TArrayType.Create( voidType ) Global objectType:TIdentType=New TIdentType.Create( ""brl.classes.object"" ) Global nullObjectType:TNullType=New TNullType Global stringType:TStringType=New TStringType Rem bbdoc: map to a pointer type End Rem Function MapToPointerType:TType(ty:TType) If ty = stringType Then ty = ty.Copy() End If Local flag:Int = T_POINTER & ty._flags If flag & T_PTR Then ty._flags :~ T_PTR ty._flags :| T_PTRPTR Return ty End If If flag & T_PTRPTR Then ty._flags :~ T_PTRPTR ty._flags :| T_PTRPTRPTR Return ty End If ty._flags :| T_PTR Return ty End Function Function MapToVarType:TType(ty:TType) If ty = stringType Then ty = ty.Copy() End If If Not (ty._flags & T_VAR) Then ty._flags :| T_VAR Return ty End If ' TODO : error if already mapped? Return ty End Function Rem bbdoc: map to a var pointer type End Rem Function MapToVarPointerType:TType(ty:TType) If ty = stringType Then ty = ty.Copy() End If If Not (ty._flags & T_VARPTR) Then ty._flags :| T_VARPTR Return ty End If Return Null End Function Rem bbdoc: map a var pointer to it's pointer equivalent (strip out var) End Rem Function MapVarPointerToPointerType:TType(ty:TType) If ty = stringType Then ty = ty.Copy() End If If (ty._flags & T_VARPTR) Then ty._flags :~ T_VARPTR Return MapToPointerType(ty) End If Return ty End Function Function MapPointerToPrim:TType(ty:TNumericType) Local nty:TType = ty.Copy() If ty._flags & T_PTRPTRPTR Then nty._flags :~ T_PTRPTRPTR nty._flags :| T_PTRPTR Else If ty._flags & T_PTRPTR Then nty._flags :~ T_PTRPTR nty._flags :| T_PTR Else If ty._flags & T_PTR Then nty._flags :~ T_PTR End If Return nty End Function Field _arrayOf:TArrayType ' one or more of ' T_VAR, T_VARPTR, T_PTR, T_PTRPTR, T_PTRPTRPTR Field _flags:Int Const T_VAR:Int = $01 Const T_VARPTR:Int = $02 Const T_PTR:Int = $04 Const T_PTRPTR:Int = $08 Const T_PTRPTRPTR:Int = $10 ' for strings Const T_CHAR_PTR:Int = $1000 Const T_SHORT_PTR:Int = $2000 Const T_POINTER:Int = T_PTR | T_PTRPTR | T_PTRPTRPTR Const T_BYTE:Int = $001 Const T_SHORT:Int = $002 Const T_INT:Int = $004 Const T_LONG:Int = $008 Const T_FLOAT:Int = $010 Const T_DOUBLE:Int = $020 Const T_STRING:Int = $040 Const T_ARRAY:Int = $080 Const T_FUNCTIONPTR:Int = $100 Const T_SIZET:Int = $200 Const T_UINT:Int = $400 Const T_ULONG:Int = $800 Const T_FLOAT64:Int = $1000 Const T_INT128:Int = $2000 Const T_FLOAT128:Int = $4000 Const T_DOUBLE128:Int = $8000 Const T_LPARAM:Int =$10000 Const T_WPARAM:Int =$20000 Const T_MAX_DISTANCE:Int = $FFFF Method Copy:TType() Local ty:TType = OnCopy() ty._flags = _flags ty._arrayOf = _arrayOf Return ty End Method Method ToStringParts:String() Local s:String If _flags & T_PTR Then s:+ "" Ptr"" Else If _flags & T_PTRPTR Then s:+ "" Ptr Ptr"" Else If _flags & T_PTRPTRPTR Then s:+ "" Ptr Ptr Ptr"" End If If _flags & T_VAR Then s:+ "" Var"" End If Return s End Method End Type Function NewType:TType(kind:Int = 0) Local ty:TType Select kind Case TType.T_BYTE ty = New TByteType Case TType.T_SHORT ty = New TShortType Case TType.T_INT ty = New TIntType Case TType.T_UINT ty = New TUIntType Case TType.T_LONG ty = New TLongType Case TType.T_ULONG ty = New TULongType Case TType.T_SIZET ty = New TSizeTType Case TType.T_INT128 ty = New TInt128Type Case TType.T_FLOAT ty = New TFloatType Case TType.T_DOUBLE ty = New TDoubleType Case TType.T_FLOAT64 ty = New TFloat64Type Case TType.T_FLOAT128 ty = New TFloat128Type Case TType.T_DOUBLE128 ty = New TDouble128Type Case TType.T_STRING ty = New TStringType Case TType.T_ARRAY ty = New TArrayType Case TType.T_FUNCTIONPTR ty = New TFunctionPtrType Default Err ""Don't have a pointer type for "" + kind End Select Return ty End Function Function NewPointerType:TType(kind:Int = 0) Local ty:TType = NewType(kind) Return TType.MapToPointerType(ty) End Function Function IsPointerType:Int(ty:TType, kind:Int = 0, pType:Int = TType.T_PTR) ' TODO : If kind Then If IsType(ty, kind) Then Return ty._flags & pType Else Return False End If Else Return ty._flags & pType End If End Function Function IsNumericType:Int(ty:TType) Return (TNumericType(ty) <> Null) And Not IsPointerType(ty, 0, TType.T_POINTER) End Function Function IsType:Int(ty:TType, kind:Int) Select kind Case TType.T_BYTE Return TByteType(ty) <> Null Case TType.T_SHORT Return TShortType(ty) <> Null Case TType.T_INT Return TIntType(ty) <> Null Case TType.T_UINT Return TUIntType(ty) <> Null Case TType.T_LONG Return TLongType(ty) <> Null Case TType.T_ULONG Return TULongType(ty) <> Null Case TType.T_SIZET Return TSizeTType(ty) <> Null Case TType.T_INT128 Return TInt128Type(ty) <> Null Case TType.T_FLOAT Return TFloatType(ty) <> Null Case TType.T_DOUBLE Return TDoubleType(ty) <> Null Case TType.T_FLOAT64 Return TFloat64Type(ty) <> Null Case TType.T_FLOAT128 Return TFloat128Type(ty) <> Null Case TType.T_DOUBLE128 Return TDouble128Type(ty) <> Null Case TType.T_STRING Return TStringType(ty) <> Null Case TType.T_ARRAY Return TArrayType(ty) <> Null Case TType.T_FUNCTIONPTR Return TFunctionPtrType(ty) <> Null End Select Return False End Function Type TVoidType Extends TType Method EqualsType:Int( ty:TType ) If opt_issuperstrict Then Return TVoidType( ty )<>Null Else Return TVoidType( ty )<>Null Or TIntType( ty) <> Null End If End Method Method ToString$() Return ""Void"" End Method Method OnCopy:TType() Return New TVoidType End Method End Type Type TNullType Extends TType Method EqualsType:Int( ty:TType ) Return False End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) Return True End Method Method ToString$() Return ""NULL"" End Method Method OnCopy:TType() Return New TNullType End Method End Type Type TBoolType Extends TType Method EqualsType:Int( ty:TType ) Return TBoolType( ty )<>Null End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or TBoolType( ty )<>Null Or (Not noExtendString And TStringType( ty )<>Null) End Method Method WidensToType:Int( ty:TType ) Return IsNumericType(ty) End Method Method ToString$() Return ""Bool"" End Method Method GetSize:Int() Return 4 End Method Method OnCopy:TType() Return New TBoolType End Method End Type Type TNumericType Extends TType Method ToPointer:TType() Local ty:TType = Copy() Return MapToPointerType(ty) End Method End Type Type TIntegralType Extends TNumericType End Type Type TIntType Extends TIntegralType Method EqualsType:Int( ty:TType ) Return TIntType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True,,,,SCOPE_CLASS_HEIRARCHY ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TIntType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) Or (WORD_SIZE=4 And TLParamType(ty)<>Null) End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TIntType(ty)<>Null And (ty._flags & T_VAR)) Or TLongType(ty)<>Null Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or (WORD_SIZE=8 And TLParamType(ty)<>Null) End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TIntType(ty)<>Null Then Return 0 End If If WORD_SIZE = 4 And TLParamType(ty)<>Null Then Return 0 End If If TLongType(ty)<>Null Then Return 2 End If If WORD_SIZE = 8 And TLParamType(ty)<>Null Then Return 2 End If If TFloatType(ty)<>Null Then Return 4 End If If TDoubleType(ty)<>Null Then Return 6 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TIntType End Method Method ToString$() Return ""Int"" + ToStringParts() End Method Method GetSize:Int() Return 4 End Method End Type Type TUIntType Extends TIntegralType Method EqualsType:Int( ty:TType ) Return TUIntType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TUIntType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) Or (WORD_SIZE=4 And (TSizeTType(ty)<>Null Or TWParamType(ty)<>Null)) End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TUIntType(ty)<>Null And (ty._flags & T_VAR)) Or TIntType(ty)<> Null Or TLongType(ty)<>Null Or TULongType(ty)<>Null Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or (WORD_SIZE=8 And TWParamType(ty)<>Null) End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If WORD_SIZE = 4 And (TSizeTType(ty)<>Null Or TWParamType(ty)<>Null) Then Return 0 End If If TUIntType(ty)<>Null Then Return 0 End If If TIntType(ty)<>Null Then Return 1 End If If WORD_SIZE = 8 And (TSizeTType(ty)<>Null Or TWParamType(ty)<>Null) Then Return 2 End If If TULongType(ty)<>Null Then Return 2 End If If TLongType(ty)<>Null Then Return 3 End If If TFloatType(ty)<>Null Then Return 4 End If If TDoubleType(ty)<>Null Then Return 6 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TUIntType End Method Method ToString$() Return ""UInt"" + ToStringParts() End Method Method GetSize:Int() Return 4 End Method End Type Type TSizeTType Extends TIntegralType Method EqualsType:Int( ty:TType ) Return TSizeTType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TSizeTType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) Or (WORD_SIZE=4 And TUIntType(ty)<>Null) Or (WORD_SIZE=8 And TULongType(ty)<>Null) End Method Method WidensToType:Int( ty:TType ) If WORD_SIZE = 4 Then Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or ((TSizeTType(ty)<>Null Or TUIntType(ty)<>Null) And (ty._flags & T_VAR)) Or TIntType(ty)<>Null Or TUIntType(ty)<>Null Or TLongType(ty)<>Null Or TULongType(ty)<>Null Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or TWParamType(ty)<>Null Or TLParamType(ty)<>Null Else Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or ((TSizeTType(ty)<>Null Or TULongType(ty)<>Null) And (ty._flags & T_VAR)) Or TLongType(ty)<>Null Or TULongType(ty)<>Null Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or TFloat64Type(ty)<>Null Or TWParamType(ty)<>Null Or TLParamType(ty)<>Null End If End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TSizeTType(ty)<>Null Then Return 0 End If If TWParamType(ty)<>Null Then Return 0 End If If WORD_SIZE = 4 Then If TUIntType(ty)<>Null Then Return 0 End If If TIntType(ty)<>Null Then Return 2 End If If TLParamType(ty)<>Null Then Return 2 End If If TULongType(ty)<>Null Then Return 3 End If If TLongType(ty)<>Null Then Return 4 End If If TFloatType(ty)<>Null Then Return 5 End If If TDoubleType(ty)<>Null Then Return 6 End If Else If TULongType(ty)<>Null Then Return 0 End If If TLongType(ty)<>Null Then Return 2 End If If TLParamType(ty)<>Null Then Return 2 End If If TFloatType(ty)<>Null Then Return 4 End If If TDoubleType(ty)<>Null Then Return 6 End If If TFloat64Type(ty)<>Null Then Return 8 End If End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TSizeTType End Method Method ToString$() Return ""size_t"" + ToStringParts() End Method Method GetSize:Int() Return WORD_SIZE End Method End Type Type TByteType Extends TIntegralType Method EqualsType:Int( ty:TType ) Return TByteType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If (_flags & T_VARPTR) And (TByteType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TByteVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TByteType(ty)<>Null And (ty._flags & T_VAR)) Or TShortType(ty)<>Null Or TIntType(ty)<>Null Or TUIntType(ty)<>Null Or TLongType(ty)<>Null Or TULongType(ty)<>Null Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or TWParamType(ty)<>Null Or TLParamType(ty)<>Null End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TByteType(ty)<>Null Then Return 0 End If If TShortType(ty)<>Null Then Return 2 End If If WORD_SIZE = 4 And (TSizeTType(ty)<>Null Or TWParamType(ty)<>Null) Then Return 4 End If If TUIntType(ty)<>Null Then Return 4 End If If TIntType(ty)<>Null Then Return 5 End If If WORD_SIZE = 4 And TLParamType(ty)<>Null Then Return 5 End If If WORD_SIZE = 8 And (TSizeTType(ty)<>Null Or TWParamType(ty)<>Null) Then Return 6 End If If TULongType(ty)<>Null Then Return 6 End If If TLongType(ty)<>Null Then Return 7 End If If WORD_SIZE = 8 And TLParamType(ty)<>Null Then Return 7 End If If TFloatType(ty)<>Null Then Return 8 End If If TDoubleType(ty)<>Null Then Return 10 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TByteType End Method Method ToString$() Return ""Byte"" + ToStringParts() End Method Method GetSize:Int() Return 1 End Method End Type Type TShortType Extends TIntegralType Method EqualsType:Int( ty:TType ) Return TShortType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TShortType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TShortVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TShortType(ty)<>Null And (ty._flags & T_VAR)) Or TIntType(ty)<>Null Or TUIntType(ty)<>Null Or TLongType(ty)<>Null Or TULongType(ty)<>Null Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or TWParamType(ty)<>Null Or TLParamType(ty)<>Null End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TShortType(ty)<>Null Then Return 0 End If If WORD_SIZE = 4 And (TSizeTType(ty)<>Null Or TWParamType(ty)<>Null) Then Return 2 End If If TUIntType(ty)<>Null Then Return 2 End If If TIntType(ty)<>Null Then Return 3 End If If WORD_SIZE = 4 And TLParamType(ty)<>Null Then Return 3 End If If WORD_SIZE = 8 And (TSizeTType(ty)<>Null Or TWParamType(ty)<>Null) Then Return 4 End If If TULongType(ty)<>Null Then Return 4 End If If TLongType(ty)<>Null Then Return 5 End If If WORD_SIZE = 8 And TLParamType(ty)<>Null Then Return 5 End If If TFloatType(ty)<>Null Then Return 6 End If If TDoubleType(ty)<>Null Then Return 8 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TShortType End Method Method ToString$() Return ""Short"" + ToStringParts() End Method Method GetSize:Int() Return 2 End Method End Type Type TLongType Extends TIntegralType ' BaH Long Method EqualsType:Int( ty:TType ) Return TLongType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TLongType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TLongVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TLongType(ty)<>Null And (ty._flags & T_VAR)) Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or TFloat64Type(ty)<>Null End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TLongType(ty)<>Null Then Return 0 End If If WORD_SIZE = 8 And TLParamType(ty)<>Null Then Return 0 End If If TFloatType(ty)<>Null Then Return 2 End If If TDoubleType(ty)<>Null Then Return 4 End If If TFloat64Type(ty)<>Null Then Return 6 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TLongType End Method Method ToString$() Return ""Long"" + ToStringParts() End Method End Type Type TULongType Extends TIntegralType Method EqualsType:Int( ty:TType ) Return TULongType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TULongType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TLongVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TULongType(ty)<>Null And (ty._flags & T_VAR)) Or TDoubleType(ty)<>Null Or TFloat64Type(ty)<>Null End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TULongType(ty)<>Null Then Return 0 End If If WORD_SIZE = 8 And (TSizeTType(ty)<>Null Or TWParamType(ty)<>Null) Then Return 0 End If If TLongType(ty)<>Null Then Return 1 End If If TFloatType(ty)<>Null Then Return 2 End If If TDoubleType(ty)<>Null Then Return 4 End If If TFloat64Type(ty)<>Null Then Return 6 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TULongType End Method Method ToString$() Return ""ULong"" + ToStringParts() End Method End Type Type TDecimalType Extends TNumericType End Type Type TFloatType Extends TDecimalType Method EqualsType:Int( ty:TType ) Return TFloatType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TFloatType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TFloatVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TFloatType(ty)<>Null And (ty._flags & T_VAR)) Or TDoubleType(ty)<>Null End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TFloatType(ty)<>Null Then Return 0 End If If TDoubleType(ty)<>Null Then Return 2 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TFloatType End Method Method ToString$() Return ""Float"" + ToStringParts() End Method Method GetSize:Int() Return 4 End Method End Type Type TDoubleType Extends TDecimalType Method EqualsType:Int( ty:TType ) Return TDoubleType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TDoubleType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TDoubleVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TDoubleType(ty)<>Null And (ty._flags & T_VAR)) End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TDoubleType(ty)<>Null Then Return 0 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TDoubleType End Method Method ToString$() Return ""Double"" + ToStringParts() End Method End Type Type TIntrinsicType Extends TNumericType End Type Type TInt128Type Extends TIntrinsicType Method EqualsType:Int( ty:TType ) Return TInt128Type( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TLongType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TLongVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TInt128Type(ty)<>Null And (ty._flags & T_VAR)) Or TFloat128Type(ty)<>Null Or TDouble128Type(ty)<>Null End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TInt128Type(ty)<>Null Then Return 0 End If If TFloat128Type(ty)<>Null Then Return 2 End If If TDouble128Type(ty)<>Null Then Return 4 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TInt128Type End Method Method ToString$() Return ""Int128"" + ToStringParts() End Method End Type Type TFloat64Type Extends TIntrinsicType Method EqualsType:Int( ty:TType ) Return TFloat64Type( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TFloat64Type(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TDoubleVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TFloat64Type(ty)<>Null And (ty._flags & T_VAR)) End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TFloat64Type(ty)<>Null Then Return 0 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TFloat64Type End Method Method ToString$() Return ""Float64"" + ToStringParts() End Method End Type Type TFloat128Type Extends TIntrinsicType Method EqualsType:Int( ty:TType ) Return TFloat128Type( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TFloat128Type(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TDoubleVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TFloat128Type(ty)<>Null And (ty._flags & T_VAR)) Or TInt128Type(ty)<>Null Or TDouble128Type(ty)<>Null End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TFloat128Type(ty)<>Null Then Return 0 End If If TDouble128Type(ty)<>Null Then Return 2 End If If TInt128Type(ty)<>Null Then Return 4 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TFloat128Type End Method Method ToString$() Return ""Float128"" + ToStringParts() End Method End Type Type TDouble128Type Extends TIntrinsicType Method EqualsType:Int( ty:TType ) Return TDouble128Type( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) 'If TObjectType( ty ) ' Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() ' Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True ) ' Return ctor And ctor.IsCtor() 'EndIf If _flags & T_VARPTR And (TDouble128Type(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TDoubleVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or (TDouble128Type(ty)<>Null And (ty._flags & T_VAR)) Or TInt128Type(ty)<>Null Or TFloat128Type(ty)<>Null End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TDouble128Type(ty)<>Null Then Return 0 End If If TFloat128Type(ty)<>Null Then Return 2 End If If TInt128Type(ty)<>Null Then Return 4 End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TDouble128Type End Method Method ToString$() Return ""Double128"" + ToStringParts() End Method End Type Type TStringType Extends TType Field cdecl:TClassDecl Method EqualsType:Int( ty:TType ) Return TStringType( ty )<>Null And (_flags = ty._flags Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) Return EqualsType( ty ) Or (TObjectType( ty ) And TObjectType( ty ).classDecl.ident=""Object"") Or (TStringType(ty) And (_flags & T_VAR)) .. Or (TStringType(ty) And (ty._flags & T_VAR)) Or (TStringType(ty) And (ty._flags & T_CHAR_PTR)) Or (TStringType(ty) And (ty._flags & T_SHORT_PTR)) .. Or IsPointerType(ty) Or (TStringType(ty) And (_flags & T_CHAR_PTR)) Or (TStringType(ty) And (_flags & T_SHORT_PTR)) End Method Method GetClass:TClassDecl() If cdecl Return cdecl Local modid$=""brl.classes"" Local mdecl:TModuleDecl=_env.FindModuleDecl( modid ) If Not mdecl Err ""Module '""+modid+""' not found"" 'clsid=ident[i+1..] ' BaH 'DebugStop cdecl=TClassDecl(mdecl.FindDecl( ""string"" )) 'Return _env.FindClassDecl( ""brl.classes.string"" ) Return cdecl End Method Method Semant:TType(option:Int = 0) GetClass() Return Self End Method Method OnCopy:TType() Local ty:TStringType = New TStringType ty.cdecl = cdecl If _flags & T_CHAR_PTR Then ty._flags :| T_CHAR_PTR End If If _flags & T_SHORT_PTR Then ty._flags :| T_SHORT_PTR End If Return ty End Method Method ToString$() Return ""String"" + ToStringParts() End Method End Type Type TArrayType Extends TType Field elemType:TType Field dims:Int Method Create:TArrayType( elemType:TType, dims:Int = 1 ) Self.elemType=elemType Self.dims = dims Return Self End Method Method ActualType:TType() Local ty:TType=elemType.ActualType() If ty=elemType Return Self Return New TArrayType.Create( ty ) End Method Method EqualsType:Int( ty:TType ) Local arrayType:TArrayType=TArrayType( ty ) Return arrayType And elemType.EqualsType( arrayType.elemType ) And dims = arrayType.dims End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) Local arrayType:TArrayType=TArrayType( ty ) Return (arrayType And ( TVoidType( elemType ) Or elemType.EqualsType( arrayType.elemType ) Or elemType.ExtendsType( arrayType.elemType ) )) Or IsPointerType(ty, 0, TType.T_POINTER) <> Null Or (TObjectType( ty ) And TObjectType( ty ).classDecl.ident=""Object"") End Method Method Semant:TType(option:Int = False) Local ty:TType=elemType.Semant() If ty<>elemType Return New TArrayType.Create( ty, dims ) Return Self End Method Method GetClass:TClassDecl() 'Return _env.FindClassDecl( ""array"" ) Return TClassDecl( _env.FindDecl( ""___array"" ) ) End Method Method OnCopy:TType() Local ty:TArrayType = New TArrayType ty.elemType = elemType ty.dims = dims Return ty End Method Method ToString$() Return elemType.ToString()+"" Array"" End Method End Type Type TObjectType Extends TType Field classDecl:TClassDecl Field instance:Int Method Create:TObjectType( classDecl:TClassDecl ) Self.classDecl=classDecl Return Self End Method Method ActualType:TType() If classDecl.actual=classDecl Return Self Return New TObjectType.Create( TClassDecl(classDecl.actual) ) End Method Method EqualsType:Int( ty:TType ) Local objty:TObjectType=TObjectType( ty ) Return TNullDecl(classDecl) <> Null Or (objty And (classDecl=objty.classDecl))' Or classDecl.ExtendsClass( objty.classDecl ))) 'Or TObjectVarPtrType(ty) <> Null End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) If classDecl.IsStruct() Return False Local objty:TObjectType=TObjectType( ty ) If objty Return classDecl.ExtendsClass( objty.classDecl ) If IsPointerType( ty, T_BYTE ) Return True End Method Method GetClass:TClassDecl() Return classDecl End Method Method ToString$() Return classDecl.ToTypeString() End Method Method OnCopy:TType() Local ty:TObjectType = New TObjectType ty.classDecl = classDecl ty.instance = instance Return ty End Method End Type Type TClassType Extends TType Field classDecl:TClassDecl Field instance:Int Method Create:TClassType( classDecl:TClassDecl ) Self.classDecl=classDecl Return Self End Method Method GetClass:TClassDecl() Return classDecl End Method Method OnCopy:TType() Local ty:TClassType = New TClassType ty.classDecl = classDecl ty.instance = instance Return ty End Method Method ToString:String() Return ""Type"" End Method End Type Type TIdentType Extends TType Field ident$ Field args:TType[] Method Create:TIdentType( ident$,args:TType[] = Null ) Self.ident=ident If args = Null Then Self.args = New TType[0] Else Self.args=args End If Return Self End Method Method CopyToDest:TIdentType(dst:TIdentType) dst.ident = ident dst.args = args Return dst End Method Method CopyToPointer:TIdentType(dst:TIdentType) dst = TIdentType(MapToPointerType(dst)) dst.ident = ident dst.args = args Return dst End Method Method ActualType:TType() InternalErr End Method Method EqualsType:Int( ty:TType ) InternalErr End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) InternalErr End Method 'Method Semant:TType() ' If ident Return New TObjectType.Create( FindClass() ) ' Return New TObjectType.Create( TClassDecl.nullObjectClass ) 'End Method Method Semant:TType(ignoreNotFoundError:Int = 0) 'If ident=""obj"" DebugStop If Not ident Return TType.nullObjectType Local targs:TType[args.Length] For Local i:Int=0 Until args.Length targs[i]=args[i].Semant() Next Local tyid$,ty:TType Local i:Int=ident.FindLast( ""."" ) If i=-1 tyid=ident.ToLower() If tyid = ""self"" Then ' find owning class Local scope:TClassDecl = _env.ClassScope() If scope Then tyid = scope.ident ty = New TClassType.Create(scope) ' test for method scope - self is already an instance Local funcScope:TFuncDecl = _env.FuncScope() If funcScope.IsAnyMethod() Then TClassType(ty).instance = True End If Else Err ""'Self' can only be used within methods."" End If End If If Not ty Then ty=_env.FindType( tyid,targs ) End If ' finally scan all modules for it If Not ty Then For Local mdecl:TModuleDecl = EachIn _appInstance.globalImports.Values() ty=mdecl.FindType( tyid,targs ) If ty Exit Next End If Else Local id:String = ident.ToLower() i = id.Find( ""."" ) ' try scope search first tyid=id[..i] If tyid = ""self"" Then ' find owning class Local scope:TClassDecl = _env.ClassScope() If scope Then tyid = scope.ident ty = New TClassType.Create(scope) ' test for method scope - self is already an instance Local funcScope:TFuncDecl = _env.FuncScope() If funcScope.IsAnyMethod() Then TClassType(ty).instance = True End If Else Err ""'Self' can only be used within methods."" End If End If If Not ty Then ty=_env.FindType( tyid,targs ) End If If Not ty Then i = id.FindLast( ""."" ) ' try scope search first tyid=id[..i] ty=_env.FindType( tyid,targs ) If Not ty Then ' no? now try module search Local modid$=id[..i] Local mdecl:TModuleDecl=_env.FindModuleDecl( modid ) If Not mdecl Err ""Module '""+modid+""' not found"" tyid=id[i+1..] ty=mdecl.FindType( tyid,targs ) End If End If EndIf If Not ty Then If ignoreNotFoundError Then Return Null End If Err ""Type '""+tyid+""' not found"" End If If (_flags & T_VAR) And TObjectType(ty) Then ty = New TObjectType.Create(TObjectType(ty).classDecl) ty._flags :| T_VAR End If If (_flags & T_POINTER) And TObjectType(ty) Then ' FIXME #200 'If Not TObjectType(ty).classDecl.IsExtern() Then ' Err ""Invalid Pointer type."" 'End If ty = New TObjectType.Create(TObjectType(ty).classDecl) ty._flags :| (_flags & T_POINTER) End If Return ty End Method Method SemantClass:TClassDecl() Local ty:TObjectType=TObjectType( Semant() ) If Not ty Err ""Type is not a class"" Return ty.classDecl End Method Method ToString$() Local t$ For Local arg:TIdentType=EachIn args If t t:+"","" t:+arg.ToString() Next If t Return ""$""+ident+""<""+t.Replace(""$"","""")+"">"" Return ""$""+ident End Method Method OnCopy:TType() Local ty:TIdentType = New TIdentType ty.ident = ident ty.args = args Return ty End Method End Type Type TExternObjectType Extends TType Field classDecl:TClassDecl Method Create:TExternObjectType( classDecl:TClassDecl ) Self.classDecl=classDecl Return Self End Method Method ActualType:TType() If classDecl.actual=classDecl Return Self Return New TExternObjectType.Create( TClassDecl(classDecl.actual) ) End Method Method EqualsType:Int( ty:TType ) Local objty:TObjectType=TObjectType( ty ) Return TNullDecl(classDecl) <> Null Or (objty And (classDecl=objty.classDecl Or classDecl.ExtendsClass( objty.classDecl ))) Or TObjectType(ty) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) Local objty:TObjectType=TObjectType( ty ) If objty Return classDecl.ExtendsClass( objty.classDecl ) If IsPointerType( ty, T_BYTE ) Return True Local op$ If TBoolType( ty ) op=""ToBool"" Else If TIntType( ty ) op=""ToInt"" Else If TFloatType( ty ) op=""ToFloat"" Else If TStringType( ty ) op=""ToString"" Else If TLongType( ty ) ' BaH Long op=""ToLong"" Else Return False EndIf Local fdecl:TFuncDecl=GetClass().FindFuncDecl( op,Null,True,,,,SCOPE_CLASS_HEIRARCHY ) Return fdecl And fdecl.IsMethod() And fdecl.retType.EqualsType( ty ) End Method Method GetClass:TClassDecl() Return classDecl End Method Method ToString$() Return classDecl.ToTypeString() End Method Method OnCopy:TType() Local ty:TExternObjectType = New TExternObjectType ty.classDecl = classDecl Return ty End Method End Type Type TFunctionPtrType Extends TType Field func:TFuncDecl Method Create:TFunctionPtrType(func:TFuncDecl) Self.func = func Return Self End Method Method EqualsType:Int( ty:TType ) If Not TFunctionPtrType(ty) Then Return False Local tyfunc:TFuncDecl = TFunctionPtrType(ty).func If Not tyfunc.retType.EqualsType(func.retType) Then Return False If Not (tyfunc.argDecls.Length = func.argDecls.Length) Then Return False For Local a:Int = 0 Until func.argDecls.Length If Not tyfunc.argDecls[a].ty.EqualsType(func.argDecls[a].ty) Then Return False Next Return True End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) If TObjectType( ty ) Local expr:TExpr=New TConstExpr.Create( Self,"""" ).Semant() Local ctor:TFuncDecl=ty.GetClass().FindFuncDecl( ""new"",[expr],True,,,,SCOPE_CLASS_HEIRARCHY ) Return ctor And ctor.IsCtor() EndIf Return IsPointerType( ty, 0, T_POINTER )<>Null End Method Method equalsDecl:Int(fdecl:TFuncDecl) func.Semant fdecl.Semant ' same number of args? If func.argDecls.length <> fdecl.argDecls.length Then Return False End If ' same arg types? For Local i:Int = 0 Until func.argDecls.length If Not func.argDecls[i].ty.equalsType(fdecl.argDecls[i].ty) Return False Next ' same return type? If Not func.retType.equalsType(fdecl.retType) Then ' if function pointer specifies Int return type, our function can specify void... If TIntType(func.retType) And TVoidType(fdecl.retType) Then Return True End If Return False End If Return True End Method Method ToString$() Return func.ToTypeString() End Method Method OnCopy:TType() Local ty:TFunctionPtrType = New TFunctionPtrType ty.func = func Return ty End Method Method Semant:TType(option:Int = False) func.Semant() Return Self End Method End Type ' a holder during parsing which becomes the ""real"" var ptr type during semanting Type TVarPtrType Extends TType Method OnCopy:TType() Return New TVarPtrType End Method End Type Type TParamType Extends TIntegralType End Type Type TWParamType Extends TParamType Method EqualsType:Int( ty:TType ) Return TWParamType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) If _flags & T_VARPTR And (TWParamType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TIntVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) If WORD_SIZE = 4 Then Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or ((TWParamType(ty)<>Null Or TSizeTType(ty)<>Null Or TUIntType(ty)<>Null) And (ty._flags & T_VAR)) Or TIntType(ty)<>Null Or TUIntType(ty)<>Null Or TLongType(ty)<>Null Or TULongType(ty)<>Null Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Else Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or ((TWParamType(ty)<>Null Or TSizeTType(ty)<>Null Or TULongType(ty)<>Null) And (ty._flags & T_VAR)) Or TLongType(ty)<>Null Or TULongType(ty)<>Null Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or TFloat64Type(ty)<>Null End If End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TWParamType(ty)<>Null Then Return 0 End If If TSizeTType(ty)<>Null Then Return 0 End If If WORD_SIZE = 4 Then If TUIntType(ty)<>Null Then Return 0 End If If TIntType(ty)<>Null Then Return 2 End If If TULongType(ty)<>Null Then Return 3 End If If TLongType(ty)<>Null Then Return 4 End If If TFloatType(ty)<>Null Then Return 5 End If If TDoubleType(ty)<>Null Then Return 6 End If Else If TULongType(ty)<>Null Then Return 0 End If If TLongType(ty)<>Null Then Return 2 End If If TFloatType(ty)<>Null Then Return 4 End If If TDoubleType(ty)<>Null Then Return 6 End If If TFloat64Type(ty)<>Null Then Return 8 End If End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TWParamType End Method Method ToString$() Return ""WPARAM"" + ToStringParts() End Method Method GetSize:Int() Return WORD_SIZE End Method End Type Type TLParamType Extends TParamType Method EqualsType:Int( ty:TType ) Return TLParamType( ty )<>Null And (_flags = ty._flags Or .. (_flags & T_VARPTR And ty._flags & T_PTR) Or (ty._flags & T_VARPTR And _flags & T_PTR) Or (_flags & T_VAR)) End Method Method ExtendsType:Int( ty:TType, noExtendString:Int = False, widensTest:Int = False ) If _flags & T_VARPTR And (TLParamType(ty) <> Null Or IsPointerType(ty, 0, T_POINTER)) Return True Return (widensTest And WidensToType(ty)) Or (Not widensTest And TNumericType( ty )<>Null) Or (Not noExtendString And TStringType( ty )<>Null) 'Or TIntVarPtrType( ty )<> Null End Method Method WidensToType:Int( ty:TType ) If WORD_SIZE = 4 Then Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or ((TIntType(ty)<>Null Or TLParamType(ty)<>Null) And (ty._flags & T_VAR)) Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or TFloat64Type(ty)<>Null Else Return (IsPointerType(ty, 0, T_POINTER) And IsPointerType(Self, 0, T_POINTER)) Or ((TLongType(ty)<>Null Or TLParamType(ty)<>Null) And (ty._flags & T_VAR)) Or TFloatType(ty)<>Null Or TDoubleType(ty)<>Null Or TFloat64Type(ty)<>Null End If End Method Method DistanceToType:Int(ty:TType) If IsPointerType(ty, 0, T_POINTER) Then If IsPointerType(Self, 0, T_POINTER) Then Return 0 Else Return T_MAX_DISTANCE End If End If If TLParamType(ty)<>Null Then Return 0 End If If WORD_SIZE = 4 Then If TIntType(ty)<>Null Then Return 0 End If If TLongType(ty)<>Null Then Return 2 End If If TFloatType(ty)<>Null Then Return 4 End If If TDoubleType(ty)<>Null Then Return 6 End If Else If TLongType(ty)<>Null Then Return 0 End If If TFloatType(ty)<>Null Then Return 2 End If If TDoubleType(ty)<>Null Then Return 4 End If If TFloat64Type(ty)<>Null Then Return 6 End If End If Return T_MAX_DISTANCE End Method Method OnCopy:TType() Return New TLParamType End Method Method ToString$() Return ""LPARAM"" + ToStringParts() End Method Method GetSize:Int() Return WORD_SIZE End Method End Type ",16336,True,4216.8377711746525,median " //---------------------------------------------------------------- //-- Zowi basic firmware v2 adapted to Otto //-- (c) BQ. Released under a GPL licencse //-- 04 December 2015 //-- Original project ZOWI Authors: Anita de Prado: ana.deprado@bq.com //-- Jose Alberca: jose.alberca@bq.com //-- Javier Isabel: javier.isabel@bq.com //-- Juan Gonzalez (obijuan): juan.gonzalez@bq.com //-- Irene Sanz : irene.sanz@bq.com //----------------------------------------------------------------- //-- Experiment with all the features that Otto has thanks to Zowi! //----------------------------------------------------------------- //-- MARCH 2018: modified for OTTO with DC motors (SMARS tracks - designed by Kevin Thomas) //-- written for two N20 150rpm 6v DC motors via motor controllers, A new Ultrasonic library has been used //-- This sketch created by Jason Snow //-- OTTO created by Camilo Parra Palacio //#include ""MaxMatrix.h"" //MaxMatrix ledmatrix=MaxMatrix(12,10,11, 1); //PIN 12=DIN, PIN 10=CS, PIN 11=CLK //-- Otto Library #include ""OttoDC_sounds.h"" #include ""OttoDC_mouths.h"" #include ""OttoDC_gestures.h"" #include ""BatReader.h"" #include // library by J.Rodrigo #include #include Ultrasonic ultrasonic(10, 9); // (Trig PIN,Echo PIN) BatReader battery; //-- Library to manage serial commands #include OttoSerialCommand SCmd; //The SerialCommand object //--------------------------------------------------------- //--Configure the pins where the motor drivers are attached /* --------------- | O O | |---------------| PWM 3==>|| || <== PWM 5 DIR 2==>| ------ ------ | <== DIR 4 | | */ // buzzer is now connected to pin 13 /////////////////////////////////////////////////////////////////// //-- Global Variables -------------------------------------------// /////////////////////////////////////////////////////////////////// const char programID[] = ""Otto_Wheels""; //Each program will have a ID //--------------------------------------------------------- //-- Otto has 5 modes: //-- * MODE = 0: Otto is awaiting //-- * MODE = 1: Dancing mode! //-- * MODE = 2: Obstacle detector mode //-- * MODE = 3: Noise detector mode //-- * MODE = 4: Otto APP mode (listening SerialPort). //--------------------------------------------------------- volatile int MODE = 0; //State of Otto in the principal state machine. int modeId = 0; //Number of mode unsigned long previousMillis = 0; unsigned long int getMouthShape(int number); unsigned long int getAnimShape(int anim, int index); int distance = 0; // ultrasonic distance measured variable int randomDance = 0; int randomSteps = 0; int gesture = 0; int gesture1 = 0; bool obstacleDetected = false;// ultrasonic object detected logic int newmouth = 0; bool goingforward = false; // motor direction logic bool goingreverse = false; // motor direction logic bool goingleft = false; // motor direction logic bool goingright = false; // motor direction logic bool APPleftFORWARD = false; // motor direction logic for APP mode 4 bool APPleftREVERSE = false; // motor direction logic for APP mode 4 bool APPrightFORWARD = false; // motor direction logic for APP mode 4 bool APPrightREVERSE = false; // motor direction logic for APP mode 4 int leftSPEED = 0; // left motor speed variable int rightSPEED = 0; // right motor speed variable int mDelay = 10; // motor delay before changing movement int lSpeed = 200; // motor speed (higher is faster) int rSpeed = 200; // motor speed (higher is faster) int APPleftSPEED = 0; // left motor speed variable from APP mode 4 int APPrightSPEED = 0; // right motor speed variable from APP mode 4 bool AUXcontrol1 = false; // logic for aux control switch 1 from app bool AUXcontrol2 = false; // logic for aux control switch 2 from app int noiseLevel = 0; // noise variable to hold the average measured noise level int noiseReadings = 0; // noise raw reading variable for actual measured noise level int numReadings = 2; // number of readings for the average noise reading AF_DCMotor rightMotor(1); AF_DCMotor leftMotor(2); #define OUT1 A1 // Aux output 1 pin A1 #define OUT2 A2 // Aux output 1 pin A2 #define pinNoiseSensor A6 //noise analog input pin int calibration = 0; // used if one motor is faster than the other due to mechanical differences int melody[] = { note_C4, note_G3, note_G3, note_A3, note_G3, 0, note_B3, note_C4 }; // note durations: 4 = quarter note, 8 = eighth note, etc.: int noteDurations[] = { 4, 8, 8, 4, 4, 4, 4, 4 }; /////////////////////////////////////////////////////////////////// //-- Setup ------------------------------------------------------// /////////////////////////////////////////////////////////////////// void setup() { rSpeed = (rSpeed - calibration); // make calibration adjustment rightMotor.run(RELEASE); leftMotor.run(RELEASE); pinMode(OUT1, OUTPUT); pinMode(OUT2, OUTPUT); digitalWrite (OUT1, LOW); digitalWrite (OUT2, LOW); Serial.begin(38400); // for default Bluetooth module use: Serial.begin(9600); newmouth = 0; // set up Matrix display // ledmatrix.init(); // ledmatrix.setIntensity(1); //Set a random seed randomSeed(analogRead(A6)); //Setup callbacks for SerialCommand commands SCmd.addCommand(""S"", receiveStop); // sendAck & sendFinalAck SCmd.addCommand(""L"", receiveLED); // sendAck & sendFinalAck SCmd.addCommand(""M"", receiveMovement); // sendAck & sendFinalAck SCmd.addCommand(""H"", receiveGesture); // sendAck & sendFinalAck SCmd.addCommand(""K"", receiveSing); // sendAck & sendFinalAck SCmd.addCommand(""E"", requestName); SCmd.addCommand(""D"", requestDistance); SCmd.addCommand(""T"", receiveAUX); // receive aux switches //SCmd.addCommand(""N"", requestNoise); SCmd.addCommand(""B"", requestBattery); // SCmd.addCommand(""I"", requestProgramId); SCmd.addCommand(""J"", requestMode); //SCmd.addCommand(""P"", requestRGB); SCmd.addDefaultHandler(receiveStop); //Otto wake up! delay(500); //Battery voltage is measured on pin A7 (MAX 5Volt DO NOT EXCEED THIS VOLTAGE) // Designed for a 3v7 LIPO or L-ION rechargable batteries // BAT_MAX 4.2 - 100% battery level // BAT_MIN 3.25 - 0% battery level //OttoLowBatteryAlarm(); // check battery level // OTTO is ALIVE!!!!!!! // Animation Uuuuuh - A little moment of initial surprise for (int i = 0; i < 2; i++) { for (int i = 0; i < 8; i++) { putAnimationMouth(littleUuh, i); delay(250); } } putMouth(smile); delay(250); previousMillis = millis(); // OTTO sings a little tune of start up // notes in the melody: // iterate over the notes of the melody: for (int thisNote = 0; thisNote < 8; thisNote++) { // to calculate the note duration, take one second // divided by the note type. //e.g. quarter note = 1000 / 4, eighth note = 1000/8, etc. int noteDuration = 1000 / noteDurations[thisNote]; tone(13, melody[thisNote], noteDuration); // to distinguish the notes, set a minimum time between them. // the note's duration + 30% seems to work well: int pauseBetweenNotes = noteDuration * 1.30; delay(pauseBetweenNotes); // stop the tone playing: noTone(13); } delay(1000); } /////////////////////////////////////////////////////////////////// //-- Principal Loop ---------------------------------------------// /////////////////////////////////////////////////////////////////// void loop() { if (Serial.available() > 0 && MODE != 4) { SCmd.readSerial(); putMouth(happyOpen); } switch (MODE) { //-- MODE 0 - Otto is awaiting //--------------------------------------------------------- case 0: //Every 80 seconds in this mode, Otto falls asleep as he is bored! if (millis() - previousMillis >= 80000) { OttoSleeping_withInterrupts(); //ZZzzzzz... previousMillis = millis(); } break; //-- MODE 1 - Dance Mode! //--------------------------------------------------------- case 1: // THIS Otto can not dance - he has no legs, so here he displays a random mouth // change this for what ever you would like Otto to do in mode 1 // This would be ideal for a line following mode if you can add some additional // sensors to Otto, putMouth(random(10, 21)); delay(1000); break; //-- MODE 2 - Obstacle detector mode //--------------------------------------------------------- case 2: if (obstacleDetected) { motorstop(); // stop motors soundcmd(S_OhOoh); delay(100); putMouth(bigSurprise); delay(500); putMouth(confused); delay(500); soundcmd(S_OhOoh2); //Otto drives back putMouth(xMouth); //delay(1000); motormoveBackward(); // moveBackwards delay(1500); motorstop(); delay(500); putMouth(smile); delay(1500); motorturnLeft(); // turn small amount left delay(300); motorstop(); obstacleDetector(); delay(250); //If there are no obstacles, Otto is happy if (obstacleDetected == true) { break; } obstacleDetected = false; putMouth(happyOpen); soundcmd(S_happy_short); delay(500); } else { //select a random number between 1 and 5 if (newmouth > 20) { gesture = random(1, 5); // display the relevant gesture for the random number selected switch (gesture) { case 1: //H 1 putMouth(happyOpen); soundcmd(S_happy); putMouth(happyClosed); delay(500); putMouth(happyOpen); soundcmd(S_superHappy); putMouth(happyClosed); break; case 2: //H 2 putMouth(smile); soundcmd(S_cuddly); break; case 3: //H 3 putMouth(happyClosed); break; case 4: //H 4 putMouth(tongueOut); soundcmd(13); break; case 5: //H 5 putMouth(lineMouth); break; } newmouth = 0; } //Otto Drive straight motormoveForward(); // moveForward obstacleDetector(); // check for obstacles delay(100); obstacleDetector(); // check for obstacles delay(100); newmouth = (newmouth + 1); } break; //-- MODE 3 - Noise detector mode //--------------------------------------------------------- case 3: noiseLevel = 0; getNoise(); if (noiseLevel >= 650) { //740 // if we detect noise then we do something - change this for what ever you want Otto to do if there // is a noise, change the value for noise levels delay(50); putMouth(bigSurprise); soundcmd(S_OhOoh); delay(500); // putMouth(random(10, 21)); delay(500); // randomDance = random(5, 21); delay(500); // putMouth(happyOpen); } break; //-- MODE 4 - Otto APP mode (listening SerialPort) //--------------------------------------------------------- case 4: SCmd.readSerial(); break; default: MODE = 0; break; } } /////////////////////////////////////////////////////////////////// //-- Functions --------------------------------------------------// /////////////////////////////////////////////////////////////////// //-- Function to read distance sensor & to actualize obstacleDetected variable void obstacleDetector() { distance = (ultrasonic.Ranging(CM)); //Serial.println(distance); if (distance < 29) { // if object detected closer than 29 then take action obstacleDetected = true; } else { obstacleDetected = false; } } //-- Functions with animatics //-------------------------------------------------------- void OttoLowBatteryAlarm() { double batteryLevel = getBatteryLevel(); //A7 = 880 = 4.2v = 100% //A7 = 758 = 3.7v = 50% if (batteryLevel < 45) { putMouth(thunder); bendTones (880, 2000, 1.04, 8, 3); delay(30); bendTones (2000, 880, 1.02, 8, 3); delay(1000); clearMouth(); delay(500); } } void motormoveForward() { // STOP motors before direction change to help protect motor drivers if (goingforward == false) motorstop(); rightMotor.run(FORWARD); leftMotor.run(BACKWARD); rightMotor.setSpeed(rSpeed); leftMotor.setSpeed(lSpeed); goingreverse = false; goingforward = true; goingleft = false; goingright = false; } /** Move backward */ void motormoveBackward() { // STOP motors before direction change to help protect motor drivers if (goingreverse == false) motorstop(); rightMotor.run(BACKWARD); leftMotor.run(FORWARD); rightMotor.setSpeed(rSpeed); leftMotor.setSpeed(lSpeed); goingreverse = true; goingforward = false; goingleft = false; goingright = false; } /** Turn Left */ void motorturnLeft() { // STOP motors before direction change to help protect motor drivers if (goingleft == false) motorstop(); rightMotor.run(FORWARD); leftMotor.run(RELEASE); rightMotor.setSpeed(rSpeed); leftMotor.setSpeed(lSpeed); goingreverse = false; goingforward = false; goingleft = true; goingright = false; } /** Turn Right */ void motorturnRight() { // STOP motors before direction change to help protect motor drivers if (goingright == false) motorstop(); rightMotor.run(RELEASE); leftMotor.run(FORWARD); rightMotor.setSpeed(rSpeed); leftMotor.setSpeed(lSpeed); goingreverse = false; goingforward = false; goingleft = false; goingright = true; } /** Stop Bot */ void motorstop() { rightMotor.run(RELEASE); leftMotor.run(RELEASE); } // OTTO SOUNDS void tonenew (float noteFrequency, long noteDuration, int silentDuration) { if (silentDuration == 0) { silentDuration = 1; } tone (13, noteFrequency, noteDuration); delay (noteDuration); // milliseconds to microseconds delay (silentDuration); } void bendTones (float initFrequency, float finalFrequency, float prop, long noteDuration, int silentDuration) { if (silentDuration == 0) { silentDuration = 1; } if (initFrequency < finalFrequency) { for (int i = initFrequency; i < finalFrequency; i = i * prop) { tonenew (i, noteDuration, silentDuration); } } else { for (int i = initFrequency; i > finalFrequency; i = i / prop) { tonenew (i, noteDuration, silentDuration); } } } void soundcmd (int cmd) { switch (cmd) { case 1: //connection tonenew (note_E5, 50, 30); tonenew (note_E6, 55, 25); tonenew (note_A6, 60, 10); break; case 2: //disconnection tonenew (note_E5, 50, 30); tonenew (note_A6, 55, 25); tonenew (note_E6, 50, 10); break; case 3: //buttonPushed bendTones (note_E6, note_G6, 1.03, 20, 2); delay (30); bendTones (note_E6, note_D7, 1.04, 10, 2); break; case 4: //mode1 bendTones (note_E6, note_A6, 1.02, 30, 10); //1318.51 to 1760 break; case 5: //mode2 bendTones (note_G6, note_D7, 1.03, 30, 10); //1567.98 to 2349.32 break; case 6: //mode3 tonenew (note_E6, 50, 100); // D6 tonenew (note_G6, 50, 80); // E6 tonenew (note_D7, 300, 0); // G6 break; case 7: //surprise bendTones (800, 2150, 1.02, 10, 1); bendTones (2149, 800, 1.03, 7, 1); break; case 8: //OhOoh bendTones (880, 2000, 1.04, 8, 3); // A5 = 880 delay (200); for (int i = 880; i < 2000; i = i * 1.04) { tonenew (note_B5, 5, 10); } break; case 9: //OhOoh2 bendTones (1880, 3000, 1.03, 8, 3); delay (200); for (int i = 1880; i < 3000; i = i * 1.03) { tonenew (note_C6, 10, 10); } break; case 10: //cuddly bendTones (700, 900, 1.03, 16, 4); bendTones (899, 650, 1.01, 18, 7); break; case 11: //sleeping bendTones (100, 500, 1.04, 10, 10); delay (500); bendTones (400, 100, 1.04, 10, 1); break; case 12: //happy bendTones (1500, 2500, 1.05, 20, 8); bendTones (2499, 1500, 1.05, 25, 8); break; case 13: //superHappy bendTones (2000, 6000, 1.05, 8, 3); delay (50); bendTones (5999, 2000, 1.05, 13, 2); break; case 14: //happy_short bendTones (1500, 2000, 1.05, 15, 8); delay (100); bendTones (1900, 2500, 1.05, 10, 8); break; case 15: //sad bendTones (880, 669, 1.02, 20, 200); break; case 16: //confused bendTones (1000, 1700, 1.03, 8, 2); bendTones (1699, 500, 1.04, 8, 3); bendTones (1000, 1700, 1.05, 9, 10); break; case 17: //fart1 bendTones (1600, 3000, 1.02, 2, 15); break; case 18: //fart2 bendTones (2000, 6000, 1.02, 2, 20); break; case 19: //fart3 bendTones (1600, 4000, 1.02, 2, 20); bendTones (4000, 3000, 1.02, 2, 20); break; case 20: tonenew (note_A6, 30, 5); break; default: break; } } // OTTO MOUTHS unsigned long int getMouthShape(int number) { unsigned long int types [] = {zero_code, one_code, two_code, three_code, four_code, five_code, six_code, seven_code, eight_code, nine_code, smile_code, happyOpen_code, happyClosed_code, heart_code, bigSurprise_code, smallSurprise_code, tongueOut_code, vamp1_code, vamp2_code, lineMouth_code, confused_code, diagonal_code, sad_code, sadOpen_code, sadClosed_code, okMouth_code, xMouth_code, interrogation_code, thunder_code, culito_code, angry_code }; return types[number]; } void putMouth(unsigned long int mouth) { //ledmatrix.writeFull(getMouthShape(mouth)); } void clearMouth() { //ledmatrix.clearMatrix(); } // OTTO ANIMATIONS unsigned long int getAnimShape(int anim, int index) { unsigned long int littleUuh_code[] = { 0b00000000000000001100001100000000, 0b00000000000000000110000110000000, 0b00000000000000000011000011000000, 0b00000000000000000110000110000000, 0b00000000000000001100001100000000, 0b00000000000000011000011000000000, 0b00000000000000110000110000000000, 0b00000000000000011000011000000000 }; unsigned long int dreamMouth_code[] = { 0b00000000000000000000110000110000, 0b00000000000000010000101000010000, 0b00000000011000100100100100011000, 0b00000000000000010000101000010000 }; unsigned long int adivinawi_code[] = { 0b00100001000000000000000000100001, 0b00010010100001000000100001010010, 0b00001100010010100001010010001100, 0b00000000001100010010001100000000, 0b00000000000000001100000000000000, 0b00000000000000000000000000000000 }; unsigned long int wave_code[] = { 0b00001100010010100001000000000000, 0b00000110001001010000100000000000, 0b00000011000100001000010000100000, 0b00000001000010000100001000110000, 0b00000000000001000010100100011000, 0b00000000000000100001010010001100, 0b00000000100000010000001001000110, 0b00100000010000001000000100000011, 0b00110000001000000100000010000001, 0b00011000100100000010000001000000 }; switch (anim) { case littleUuh: return littleUuh_code[index]; break; case dreamMouth: return dreamMouth_code[index]; break; case adivinawi: return adivinawi_code[index]; break; case wave: return wave_code[index]; break; } } void putAnimationMouth(unsigned long int aniMouth, int index) { //ledmatrix.writeFull(getAnimShape(aniMouth,index)); } void putMouth(unsigned long int mouth, bool predefined) { if (predefined) { //ledmatrix.writeFull(getMouthShape(mouth)); } else { //ledmatrix.writeFull(mouth); } } //////////////////////////////////////////////////////// void playGesture(int gesture1) { switch (gesture1) { case OttoHappy: tonenew(note_E5, 50, 30); putMouth(smile); soundcmd(S_happy_short); soundcmd(S_happy_short); putMouth(happyOpen); break; case OttoSuperHappy: putMouth(happyOpen); soundcmd(S_happy); putMouth(happyClosed); delay(1000); putMouth(happyOpen); soundcmd(S_superHappy); putMouth(happyClosed); delay(1000); putMouth(happyOpen); break; case OttoSad: putMouth(sad); bendTones(880, 830, 1.02, 20, 200); putMouth(sadClosed); bendTones(830, 790, 1.02, 20, 200); putMouth(sadOpen); bendTones(790, 740, 1.02, 20, 200); putMouth(sadClosed); bendTones(740, 700, 1.02, 20, 200); putMouth(sadOpen); bendTones(700, 669, 1.02, 20, 200); putMouth(sad); delay(1500); putMouth(happyOpen); break; case OttoSleeping: for (int i = 0; i < 4; i++) { putAnimationMouth(dreamMouth, 0); bendTones (100, 200, 1.04, 10, 10); putAnimationMouth(dreamMouth, 1); bendTones (200, 300, 1.04, 10, 10); putAnimationMouth(dreamMouth, 2); bendTones (300, 500, 1.04, 10, 10); delay(500); putAnimationMouth(dreamMouth, 1); bendTones (400, 250, 1.04, 10, 1); putAnimationMouth(dreamMouth, 0); bendTones (250, 100, 1.04, 10, 1); delay(500); } putMouth(lineMouth); soundcmd(S_cuddly); putMouth(happyOpen); break; case OttoFart: delay(300); putMouth(lineMouth); soundcmd(S_fart1); putMouth(tongueOut); delay(500); putMouth(lineMouth); soundcmd(S_fart2); putMouth(tongueOut); delay(500); putMouth(lineMouth); soundcmd(S_fart3); putMouth(tongueOut); delay(1000); putMouth(happyOpen); break; case OttoConfused: putMouth(confused); soundcmd(S_confused); delay(1000); putMouth(happyOpen); break; case OttoLove: putMouth(heart); soundcmd(S_cuddly); soundcmd(S_happy_short); putMouth(happyOpen); break; case OttoAngry: putMouth(angry); tonenew(note_A5, 100, 30); bendTones(note_A5, note_D6, 1.02, 7, 4); bendTones(note_D6, note_G6, 1.02, 10, 1); bendTones(note_G6, note_A5, 1.02, 10, 1); delay(15); bendTones(note_A5, note_E5, 1.02, 20, 4); delay(400); bendTones(note_A5, note_D6, 1.02, 20, 4); bendTones(note_A5, note_E5, 1.02, 20, 4); putMouth(happyOpen); break; case OttoFretful: putMouth(angry); bendTones(note_A5, note_D6, 1.02, 20, 4); bendTones(note_A5, note_E5, 1.02, 20, 4); delay(750); putMouth(lineMouth); delay(750); putMouth(angry); delay(1000); putMouth(happyOpen); break; case OttoMagic: // Reproduce the animation four times for (int i = 0; i < 4; i++) { int noteM = 400; for (int index = 0; index < 6; index++) { putAnimationMouth(adivinawi, index); bendTones(noteM, noteM + 100, 1.04, 10, 10); //400 -> 1000 noteM += 100; } clearMouth(); bendTones(noteM - 100, noteM + 100, 1.04, 10, 10); //900 -> 1100 for (int index = 0; index < 6; index++) { putAnimationMouth(adivinawi, index); bendTones(noteM, noteM + 100, 1.04, 10, 10); //1000 -> 400 noteM -= 100; } } delay(1000); putMouth(happyOpen); break; case OttoWave: // Reproduce the animation four times for (int i = 0; i < 2; i++) { int noteW = 500; for (int index = 0; index < 10; index++) { putAnimationMouth(wave, index); bendTones(noteW, noteW + 100, 1.02, 10, 10); noteW += 101; } for (int index = 0; index < 10; index++) { putAnimationMouth(wave, index); bendTones(noteW, noteW + 100, 1.02, 10, 10); noteW += 101; } for (int index = 0; index < 10; index++) { putAnimationMouth(wave, index); bendTones(noteW, noteW - 100, 1.02, 10, 10); noteW -= 101; } for (int index = 0; index < 10; index++) { putAnimationMouth(wave, index); bendTones(noteW, noteW - 100, 1.02, 10, 10); noteW -= 101; } } clearMouth(); delay(100); putMouth(happyOpen); break; case OttoVictory: putMouth(smallSurprise); for (int i = 0; i < 60; ++i) { tonenew(1600 + i * 20, 15, 1); } putMouth(bigSurprise); for (int i = 0; i < 60; ++i) { tonenew(2800 + i * 20, 15, 1); } putMouth(happyOpen); soundcmd(S_superHappy); putMouth(happyClosed); delay(1000); clearMouth(); putMouth(happyOpen); break; case OttoFail: putMouth(sadOpen); tonenew(900, 200, 1); putMouth(sadClosed); tonenew(600, 200, 1); putMouth(confused); tonenew(300, 200, 1); putMouth(xMouth); tonenew(150, 2200, 1); delay(750); clearMouth(); putMouth(happyOpen); break; } } //-- Function to send program ID void requestProgramId() { Serial.print(F(""&&"")); Serial.print(F(""I "")); Serial.print(programID); Serial.println(F(""%%"")); Serial.flush(); } //-- Function to send Ack comand (A) void sendAck() { delay(30); Serial.print(F(""&&"")); Serial.print(F(""A"")); Serial.println(F(""%%"")); Serial.flush(); } //-- Function to send final Ack comand (F) void sendFinalAck() { delay(30); Serial.print(F(""&&"")); Serial.print(F(""F"")); Serial.println(F(""%%"")); Serial.flush(); } //-- Function to send ultrasonic sensor measure (distance in ""cm"") void requestDistance() { //Otto.home(); //stop if necessary obstacleDetector(); Serial.print(F(""&&"")); Serial.print(F(""D "")); Serial.print(distance); Serial.println(F(""%%"")); Serial.flush(); } //-- Function to send Otto's name void requestName() { //Otto.home(); //stop if necessary char actualOttoName[11] = """"; //Variable to store data read from EEPROM. int eeAddress = 5; //EEPROM address to start reading from //Get the float data from the EEPROM at position 'eeAddress' EEPROM.get(eeAddress, actualOttoName); Serial.print(F(""&&"")); Serial.print(F(""E "")); Serial.print(actualOttoName); Serial.println(F(""%%"")); Serial.flush(); } //-- Function to receive sing commands void receiveSing() { //sendAck & stop if necessary sendAck(); //Definition of Sing Bluetooth commands //K SingID int sing = 0; char *arg; arg = SCmd.next(); if (arg != NULL) { sing = atoi(arg); } else { putMouth(xMouth); delay(2000); clearMouth(); } switch (sing) { case 1: //K 1 soundcmd(S_connection); break; case 2: //K 2 soundcmd(S_disconnection); break; case 3: //K 3 soundcmd(S_surprise); break; case 4: //K 4 soundcmd(S_OhOoh); break; case 5: //K 5 soundcmd(S_OhOoh2); break; case 6: //K 6 soundcmd(S_cuddly); break; case 7: //K 7 soundcmd(S_sleeping); break; case 8: //K 8 soundcmd(S_happy); break; case 9: //K 9 soundcmd(S_superHappy); break; case 10: //K 10 soundcmd(S_happy_short); break; case 11: //K 11 soundcmd(S_sad); break; case 12: //K 12 soundcmd(S_confused); break; case 13: //K 13 soundcmd(S_fart1); break; case 14: //K 14 soundcmd(S_fart2); break; case 15: //K 15 soundcmd(S_fart3); break; case 16: //K 16 soundcmd(S_mode1); break; case 17: //K 17 soundcmd(S_mode2); break; case 18: //K 18 soundcmd(S_mode3); break; case 19: //K 19 soundcmd(S_buttonPushed); break; default: break; } sendFinalAck(); } //-- Function to receive movement commands void receiveMovement() { sendAck(); //Otto.home(); //Definition of Motor Bluetooth commands //M ModeID char *arg; arg = SCmd.next(); if (arg != NULL) { APPleftSPEED = atoi(arg); } else { putMouth(xMouth); delay(2000); clearMouth(); APPleftSPEED = 0; //stop } arg = SCmd.next(); if (arg != NULL) { APPrightSPEED = atoi(arg); } else { putMouth(xMouth); delay(2000); clearMouth(); APPrightSPEED = 0; } if (APPrightSPEED <0) { rightMotor.run(BACKWARD); rightMotor.setSpeed(150); } else if (APPrightSPEED <0){ rightMotor.run(FORWARD); rightMotor.setSpeed(150); } else { rightMotor.run(RELEASE); } if (APPleftSPEED <0) { rightMotor.run(BACKWARD); rightMotor.setSpeed(150); } else if (APPleftSPEED <0){ rightMotor.run(FORWARD); rightMotor.setSpeed(150); } else { rightMotor.run(RELEASE); } /* // D0 PWM motor control // first map the value received from the app to a value between 0 and full speed // the value from the app is positive for forward and negative for reverse if (APPleftSPEED < -1 ) { leftSPEED = map(APPleftSPEED, 0, -100, 0, 255); } else { leftSPEED = map(APPleftSPEED, 0, 100, 0, 255); } if (APPrightSPEED < -1 ) { rightSPEED = map(APPrightSPEED, 0, -100, 0, 255); } else { rightSPEED = map(APPrightSPEED, 0, 100, 0, 255); } // just a little deadband if (APPleftSPEED > 5 ) { if (APPleftFORWARD == false) { ; rightMotor.run(RELEASE); leftMotor.run(RELEASE); delay(250); } // DIR motor rightMotor.run(RELEASE); // PWM motor leftMotor.setSpeed(leftSPEED); APPleftREVERSE = false; APPleftFORWARD = true; } else { if (APPleftSPEED < -5 ) { if (APPleftREVERSE == false) { ; rightMotor.run(RELEASE); leftMotor.run(RELEASE); delay(250); } // DIR motor rightMotor.run(FORWARD); // PWM motor leftMotor.setSpeed(leftSPEED); APPleftREVERSE = true; APPleftFORWARD = false; } else { rightMotor.run(RELEASE); // PWM motor leftMotor.setSpeed(0); goingreverse = false; goingforward = true; } } if (APPrightSPEED > 5 ) { if (APPrightFORWARD == false) { ; rightMotor.run(RELEASE); leftMotor.run(RELEASE); delay(250); } // DIR motor rightMotor.run(RELEASE); // PWM motor leftMotor.setSpeed(rightSPEED); APPrightREVERSE = false; APPrightFORWARD = true; } else { if (APPrightSPEED < -5 ) { if (APPrightREVERSE == false) { ; rightMotor.run(RELEASE); leftMotor.run(RELEASE); delay(250); } rightMotor.run(FORWARD); // PWM motor leftMotor.setSpeed(rightSPEED); APPrightREVERSE = true; APPrightFORWARD = false; } else { rightMotor.run(RELEASE); // PWM motor leftMotor.setSpeed(0); APPrightFORWARD = false; APPrightFORWARD = true; } } */ } //-- Function to receive LED commands void receiveLED() { //sendAck & stop if necessary sendAck(); unsigned long int matrix; char *arg; char *endstr; arg = SCmd.next(); //Serial.println (arg); if (arg != NULL) { matrix = strtoul(arg, &endstr, 2); // Converts a char string to unsigned long integer putMouth(matrix, false); } else { putMouth(xMouth); delay(2000); clearMouth(); } sendFinalAck(); } //-- Function to receive Stop command. void receiveStop() { sendAck(); //Otto.home(); sendFinalAck(); } //-- Function to send battery voltage percent void requestBattery() { //The first read of the batery is often a wrong reading, so we will discard this value. double batteryLevel = getBatteryLevel(); Serial.print(F(""&&"")); Serial.print(F(""B "")); Serial.print(batteryLevel); Serial.println(F(""%%"")); Serial.flush(); } double getBatteryLevel() { //The first read of the batery is often a wrong reading, so we will discard this value. double batteryLevel = battery.readBatPercent(); double batteryReadings = 0; int numReadings = 10; for (int i = 0; i < numReadings; i++) { batteryReadings += battery.readBatPercent(); delay(1); // delay in between reads for stability } batteryLevel = batteryReadings / numReadings; return batteryLevel; } void OttoSleeping_withInterrupts() { for (int i = 0; i < 4; i++) { putAnimationMouth(dreamMouth, 0); bendTones (100, 200, 1.04, 10, 10); putAnimationMouth(dreamMouth, 1); bendTones (200, 300, 1.04, 10, 10); putAnimationMouth(dreamMouth, 2); bendTones (300, 500, 1.04, 10, 10); delay(500); putAnimationMouth(dreamMouth, 1); bendTones (400, 250, 1.04, 10, 1); putAnimationMouth(dreamMouth, 0); bendTones (250, 100, 1.04, 10, 1); delay(500); } putMouth(lineMouth); soundcmd(S_cuddly); } //-- Function to receive mode selection. void requestMode() { sendAck(); //Definition of Mode Bluetooth commands //J ModeID char *arg; arg = SCmd.next(); if (arg != NULL) { modeId = atoi(arg); putMouth(heart); } else { putMouth(xMouth); delay(2000); clearMouth(); modeId = 0; //stop } switch (modeId) { case 0: // MODE = 0; break; case 1: // MODE = 1; soundcmd(S_mode1); putMouth(one); delay(1000); delay(200); break; case 2: // MODE = 2; soundcmd(S_mode2); putMouth(two); delay(1000); break; case 3: // MODE = 3; soundcmd(S_mode3); putMouth(three); delay(1000); break; case 4: // soundcmd(S_mode1); putMouth(four); delay(1000); MODE = 4; motorstop(); break; default: MODE = 0; break; } sendFinalAck(); } //-- Function to receive gesture commands void receiveGesture() { //sendAck & stop if necessary sendAck(); int gesture = 0; char *arg; arg = SCmd.next(); if (arg != NULL) { gesture = atoi(arg); } else { putMouth(xMouth); delay(2000); clearMouth(); } switch (gesture) { case 1: //H 1 playGesture(OttoHappy); break; case 2: //H 2 playGesture(OttoSuperHappy); break; case 3: //H 3 playGesture(OttoSad); break; case 4: //H 4 playGesture(OttoSleeping); break; case 5: //H 5 playGesture(OttoFart); break; case 6: //H 6 playGesture(OttoConfused); break; case 7: //H 7 playGesture(OttoLove); break; case 8: //H 8 playGesture(OttoAngry); break; case 9: //H 9 playGesture(OttoFretful); break; case 10: //H 10 playGesture(OttoMagic); break; case 11: //H 11 playGesture(OttoWave); break; case 12: //H 12 playGesture(OttoVictory); break; case 13: //H 13 playGesture(OttoFail); break; default: break; } sendFinalAck(); } void receiveAUX() { sendAck(); //Definition of Mode Bluetooth commands //T aux switches from app char *arg; int Aux1; int Aux2; arg = SCmd.next(); if (arg != NULL) { Aux1 = atoi(arg); } else { putMouth(xMouth); delay(2000); clearMouth(); Aux1 = 0; //stop } arg = SCmd.next(); if (arg != NULL) { Aux2 = atoi(arg); } else { putMouth(xMouth); delay(2000); clearMouth(); Aux2 = 0; } putMouth(okMouth); delay(750); clearMouth(); if (Aux1 == 1) { AUXcontrol1 = true; } else { AUXcontrol1 = false; } if (Aux2 == 1) { AUXcontrol2 = true; } else { AUXcontrol2 = false; } sendFinalAck(); digitalWrite (OUT1, AUXcontrol1); // turn ON OFF Aux 1 output digitalWrite (OUT2, AUXcontrol2); // turn ON OFF Aux 2 output } void getNoise() { noiseLevel = analogRead(pinNoiseSensor); for (int i = 0; i < numReadings; i++) { noiseReadings += analogRead(pinNoiseSensor); delay(4); // delay in between reads for stability } noiseLevel = noiseReadings / numReadings; return noiseLevel; } ",12242,False,2390.164105375561,median "' commctrl.bmx Import ""user32.bmx"" Strict Const BS_PUSHBUTTON=0 Const BS_DEFPUSHBUTTON=1 Const BS_CHECKBOX=2 Const BS_AUTOCHECKBOX=3 Const BS_RADIOBUTTON=4 Const BS_3STATE=5 Const BS_AUTO3STATE=6 Const BS_GROUPBOX=7 Const BS_USERBUTTON=8 Const BS_AUTORADIOBUTTON=9 Const BS_PUSHBOX=10 Const BS_OWNERDRAW=11 Const BS_TYPEMASK=15 Const BS_LEFTTEXT=$20 Const BS_TEXT=0 Const BS_ICON=$40 Const BS_BITMAP=$80 Const BS_LEFT=$100 Const BS_RIGHT=$200 Const BS_CENTER=$300 Const BS_TOP=$400 Const BS_BOTTOM=$800 Const BS_VCENTER=$c00 Const BS_PUSHLIKE=$1000 Const BS_MULTILINE=$2000 Const BS_NOTIFY=$4000 Const BS_FLAT=$8000 Const BS_RIGHTBUTTON=BS_LEFTTEXT Const BN_CLICKED=0 Const BN_PAINT=1 Const BN_HILITE=2 Const BN_UNHILITE=3 Const BN_DISABLE=4 Const BN_DOUBLECLICKED=5 Const BN_PUSHED=BN_HILITE Const BN_UNPUSHED=BN_UNHILITE Const BN_DBLCLK=BN_DOUBLECLICKED Const BN_SETFOCUS=6 Const BN_KILLFOCUS=7 Const BM_GETCHECK=$F0 Const BM_SETCHECK=$F1 Const BM_GETSTATE=$F2 Const BM_SETSTATE=$F3 Const BM_SETSTYLE=$F4 Const BM_CLICK=$F5 Const BM_GETIMAGE=$F6 Const BM_SETIMAGE=$F7 Const BST_UNCHECKED=0 Const BST_CHECKED=1 Const BST_INDETERMINATE=2 Const BST_PUSHED=4 Const BST_FOCUS=8 Const ES_LEFT=0 Const ES_CENTER=1 Const ES_RIGHT=2 Const ES_MULTILINE=4 Const ES_UPPERCASE=8 Const ES_LOWERCASE=$10 Const ES_PASSWORD=$20 Const ES_AUTOVSCROLL=$40 Const ES_AUTOHSCROLL=$80 Const ES_NOHIDESEL=$100 Const ES_OEMCONVERT=$400 Const ES_READONLY=$800 Const ES_WANTRETURN=$1000 Const ES_NUMBER=$2000 Const ES_NOOLEDRAGDROP=8 ' Edit Control Notification Codes Const EN_SETFOCUS=$100 Const EN_KILLFOCUS=$200 Const EN_CHANGE=$300 Const EN_UPDATE=$400 Const EN_ERRSPACE=$0500 Const EN_MAXTEXT=$501 Const EN_HSCROLL=$601 Const EN_VSCROLL=$602 Const EN_ALIGN_LTR_EC=$700 Const EN_ALIGN_RTL_EC=$701 ' Edit control EM_SETMARGIN parameters Const EC_LEFTMARGIN=1 Const EC_RIGHTMARGIN=2 Const EC_USEFONTINFO=$ffff ' wParam of EM_GET/SETIMESTATUS Const EMSIS_COMPOSITIONSTRING=1 ' lParam For EMSIS_COMPOSITIONSTRING Const EIMES_GETCOMPSTRATONCE=1 Const EIMES_CANCELCOMPSTRINFOCUS=2 Const EIMES_COMPLETECOMPSTRKILLFOCUS=4 ' EDITWORDBREAKPROC code values Const WB_LEFT=0 Const WB_RIGHT=1 Const WB_ISDELIMITER=2 'ComboBoxstyles Type COMBOBOXEXITEMW Field mask Field iItem Field pszText:Short Ptr Field cchTextMax Field iImage Field iSelectedImage Field iOverlay Field iIndent Field lParam End Type Const CBS_SIMPLE=$0001 Const CBS_DROPDOWN=$0002 Const CBS_DROPDOWNLIST=$0003 Const CBS_OWNERDRAWFIXED=$0010 Const CBS_OWNERDRAWVARIABLE=$0020 Const CBS_AUTOHSCROLL=$0040 Const CBS_OEMCONVERT=$0080 Const CBS_SORT=$0100 Const CBS_HASSTRINGS=$0200 Const CBS_NOINTEGRALHEIGHT=$0400 Const CBS_DISABLENOSCROLL=$0800 Const CBS_UPPERCASE=$2000 Const CBS_LOWERCASE=$4000 'ComboBoxmessages Const CB_ERR=-1 Const CB_ERRSPACE=-2 Const CBN_ERRSPACE=-1 Const CBN_SELCHANGE=1 Const CBN_DBLCLK=2 Const CBN_SETFOCUS=3 Const CBN_KILLFOCUS=4 Const CBN_EDITCHANGE=5 Const CBN_EDITUPDATE=6 Const CBN_DROPDOWN=7 Const CBN_CLOSEUP=8 Const CBN_SELENDOK=9 Const CBN_SELENDCANCEL=10 Const CB_GETEDITSEL=$0140 Const CB_LIMITTEXT=$0141 Const CB_SETEDITSEL=$0142 Const CB_ADDSTRING=$0143 Const CB_DELETESTRING=$0144 Const CB_DIR=$0145 Const CB_GETCOUNT=$0146 Const CB_GETCURSEL=$0147 Const CB_GETLBTEXT=$0148 Const CB_GETLBTEXTLEN=$0149 Const CB_INSERTSTRING=$014A Const CB_RESETCONTENT=$014B Const CB_FINDSTRING=$014C Const CB_SELECTSTRING=$014D Const CB_SETCURSEL=$014E Const CB_SHOWDROPDOWN=$014F Const CB_GETITEMDATA=$0150 Const CB_SETITEMDATA=$0151 Const CB_GETDROPPEDCONTROLRECT=$0152 Const CB_SETITEMHEIGHT=$0153 Const CB_GETITEMHEIGHT=$0154 Const CB_SETEXTENDEDUI=$0155 Const CB_GETEXTENDEDUI=$0156 Const CB_GETDROPPEDSTATE=$0157 Const CB_FINDSTRINGEXACT=$0158 Const CB_SETLOCALE=$0159 Const CB_GETLOCALE=$015A Const CB_GETTOPINDEX=$015b Const CB_SETTOPINDEX=$015c Const CB_GETHORIZONTALEXTENT=$015d Const CB_SETHORIZONTALEXTENT=$015e Const CB_GETDROPPEDWIDTH=$015f Const CB_SETDROPPEDWIDTH=$0160 Const CB_INITSTORAGE=$0161 Const CB_MULTIPLEADDSTRING=$0163 Const CB_GETCOMBOBOXINFO=$0164 Const CBEM_INSERTITEMA=WM_USER+1 Const CBEM_SETIMAGELIST=WM_USER+2 Const CBEM_GETIMAGELIST=WM_USER+3 Const CBEM_GETITEMA=WM_USER+4 Const CBEM_SETITEMA=WM_USER+5 Const CBEM_DELETEITEM=CB_DELETESTRING Const CBEM_GETCOMBOCONTROL=WM_USER+6 Const CBEM_GETEDITCONTROL=WM_USER+7 Const CBEM_SETEXSTYLE=WM_USER+8 'use SETEXTENDEDSTYLE instead Const CBEM_GETEXSTYLE=WM_USER+9 'use GETEXTENDEDSTYLE instead Const CBEM_GETEXTENDEDSTYLE=WM_USER+9 Const CBEM_HASEDITCHANGED=WM_USER+10 Const CBEM_INSERTITEMW=WM_USER+11 Const CBEM_SETITEMW=WM_USER+12 Const CBEM_GETITEMW=WM_USER+13 Const CBEM_SETEXTENDEDSTYLE=WM_USER+14 'lparam==Newstyle,wParam(optional)=mask Const CBEIF_TEXT=1 Const CBEIF_IMAGE=2 Const CBEIF_SELECTEDIMAGE=4 Const CBEIF_OVERLAY=8 Const CBEIF_INDENT=16 Const CBEIF_LPARAM=32 Const CBEIF_DI_SETITEM=$10000000 'Const CBEM_SETUNICODEFORMAT=CCM_SETUNICODEFORMAT 'Const CBEM_GETUNICODEFORMAT=CCM_GETUNICODEFORMAT 'Const CBEM_SETWINDOWTHEME=CCM_SETWINDOWTHEME ' Tab Control Type TCITEMW Field mask Field dwState Field dwStateMask Field pszText:Short Ptr Field cchTextMax Field iImage Field lParam End Type ' TabberMessages Const TCM_FIRST=$1300 Const TCM_GETIMAGELIST=TCM_FIRST+2 Const TCM_SETIMAGELIST=TCM_FIRST+3 Const TCM_GETITEMCOUNT=TCM_FIRST+4 Const TCM_GETITEMA=TCM_FIRST+5 Const TCM_GETITEMW=TCM_FIRST+60 Const TCM_SETITEMA=TCM_FIRST+6 Const TCM_SETITEMW=TCM_FIRST+61 Const TCM_INSERTITEMA=TCM_FIRST+7 Const TCM_INSERTITEMW=TCM_FIRST+62 Const TCM_DELETEITEM=TCM_FIRST+8 Const TCM_DELETEALLITEMS=TCM_FIRST+9 Const TCM_GETITEMRECT=TCM_FIRST+10 Const TCM_GETCURSEL=TCM_FIRST+11 Const TCM_SETCURSEL=TCM_FIRST+12 Const TCM_HITTEST=TCM_FIRST+13 Const TCM_SETITEMEXTRA=TCM_FIRST+14 Const TCM_ADJUSTRECT=TCM_FIRST+40 Const TCM_SETITEMSIZE=TCM_FIRST+41 Const TCM_REMOVEIMAGE=TCM_FIRST+42 Const TCM_SETPADDING=TCM_FIRST+43 Const TCM_GETROWCOUNT=TCM_FIRST+44 Const TCM_GETTOOLTIPS=TCM_FIRST+45 Const TCM_SETTOOLTIPS=TCM_FIRST+46 Const TCM_GETCURFOCUS=TCM_FIRST+47 Const TCM_SETCURFOCUS=TCM_FIRST+48 Const TCM_SETMINTABWIDTH=TCM_FIRST+49 Const TCM_DESELECTALL=TCM_FIRST+50 Const TCM_HIGHLIGHTITEM=TCM_FIRST+51 Const TCM_SETEXTENDEDSTYLE=TCM_FIRST+52 'optional wParam=mask Const TCM_GETEXTENDEDSTYLE=TCM_FIRST+53 'Const TCM_SETUNICODEFORMAT=CCM_SETUNICODEFORMAT 'Const TCM_GETUNICODEFORMAT=CCM_GETUNICODEFORMAT Const TCHT_NOWHERE=1 Const TCHT_ONITEMICON=2 Const TCHT_ONITEMLABEL=4 Const TCHT_ONITEM=TCHT_ONITEMICON|TCHT_ONITEMLABEL ' ListViewMessages Const LVS_ICON=$0000 Const LVS_REPORT=$0001 Const LVS_SMALLICON=$0002 Const LVS_LIST=$0003 Const LVS_TYPEMASK=$0003 Const LVS_SINGLESEL=$0004 Const LVS_SHOWSELALWAYS=$0008 Const LVS_SORTASCENDING=$0010 Const LVS_SORTDESCENDING=$0020 Const LVS_SHAREIMAGELISTS=$0040 Const LVS_NOLABELWRAP=$0080 Const LVS_AUTOARRANGE=$0100 Const LVS_EDITLABELS=$0200 Const LVS_OWNERDATA=$1000 Const LVS_NOSCROLL=$2000 Const LVS_TYPESTYLEMASK=$fc00 Const LVS_ALIGNTOP=$0000 Const LVS_ALIGNLEFT=$0800 Const LVS_ALIGNMASK=$0c00 Const LVS_OWNERDRAWFIXED=$0400 Const LVS_NOCOLUMNHEADER=$4000 Const LVS_NOSORTHEADER=$8000 ' TabControlMessages Const TCS_SCROLLOPPOSITE=$0001 'assumesmultilinetab Const TCS_BOTTOM=$0002 Const TCS_RIGHT=$0002 Const TCS_MULTISELECT=$0004 'allowmulti-Selectinbuttonmode Const TCS_FLATBUTTONS=$0008 Const TCS_FORCEICONLEFT=$0010 Const TCS_FORCELABELLEFT=$0020 Const TCS_HOTTRACK=$0040 Const TCS_VERTICAL=$0080 Const TCS_TABS=$0000 Const TCS_BUTTONS=$0100 Const TCS_SINGLELINE=$0000 Const TCS_MULTILINE=$0200 Const TCS_RIGHTJUSTIFY=$0000 Const TCS_FIXEDWIDTH=$0400 Const TCS_RAGGEDRIGHT=$0800 Const TCS_FOCUSONBUTTONDOWN=$1000 Const TCS_OWNERDRAWFIXED=$2000 Const TCS_TOOLTIPS=$4000 Const TCS_FOCUSNEVER=$8000 Const TCS_EX_FLATSEPARATORS=$00000001 Const TCS_EX_REGISTERDROP=$00000002 Const TCIF_TEXT=1 Const TCIF_IMAGE=2 Const TCIF_RTLREADING=4 Const TCIF_PARAM=8 Const TCIF_STATE=16 'TreeView Control Type TVITEMW Field mask Field hItem Field state Field stateMask Field pszText:Short Ptr Field cchTextMax Field iImage Field iSelectedImage Field cChildren Field lParam Field iIntegral End Type Type TVINSERTSTRUCTW Field hParent Field hInsertAfter ' TVITEMW Field item_mask Field item_hItem Field item_state Field item_stateMask Field item_pszText:Short Ptr Field item_cchTextMax Field item_iImage Field item_iSelectedImage Field item_cChildren Field item_lParam Field itemx_iIntegral End Type Const I_CHILDRENCALLBACK=-1 Const TVS_HASBUTTONS=$0001 Const TVS_HASLINES=$0002 Const TVS_LINESATROOT=$0004 Const TVS_EDITLABELS=$0008 Const TVS_DISABLEDRAGDROP=$0010 Const TVS_SHOWSELALWAYS=$0020 Const TVS_RTLREADING=$0040 Const TVS_NOTOOLTIPS=$0080 Const TVS_CHECKBOXES=$0100 Const TVS_TRACKSELECT=$0200 Const TVS_SINGLEEXPAND=$0400 Const TVS_INFOTIP=$0800 Const TVS_FULLROWSELECT=$1000 Const TVS_NOSCROLL=$2000 Const TVS_NONEVENHEIGHT=$4000 Const TVS_NOHSCROLL=$8000 'TVS_NOSCROLL overrides this Const TVIF_TEXT=$0001 Const TVIF_IMAGE=$0002 Const TVIF_PARAM=$0004 Const TVIF_STATE=$0008 Const TVIF_HANDLE=$0010 Const TVIF_SELECTEDIMAGE=$0020 Const TVIF_CHILDREN=$0040 Const TVIF_INTEGRAL=$0080 Const TVIS_SELECTED=$0002 Const TVIS_CUT=$0004 Const TVIS_DROPHILITED=$0008 Const TVIS_BOLD=$0010 Const TVIS_EXPANDED=$0020 Const TVIS_EXPANDEDONCE=$0040 Const TVIS_EXPANDPARTIAL=$0080 Const TVIS_OVERLAYMASK=$0F00 Const TVIS_STATEIMAGEMASK=$F000 Const TVIS_USERMASK=$F000 ' StaticControl Const SS_LEFT=$00000000 Const SS_CENTER=$00000001 Const SS_RIGHT=$00000002 Const SS_ICON=$00000003 Const SS_BLACKRECT=$00000004 Const SS_GRAYRECT=$00000005 Const SS_WHITERECT=$00000006 Const SS_BLACKFRAME=$00000007 Const SS_GRAYFRAME=$00000008 Const SS_WHITEFRAME=$00000009 Const SS_USERITEM=$0000000A Const SS_SIMPLE=$0000000B Const SS_LEFTNOWORDWRAP=$0000000C Const SS_OWNERDRAW=$0000000D Const SS_BITMAP=$0000000E Const SS_ENHMETAFILE=$0000000F Const SS_ETCHEDHORZ=$00000010 Const SS_ETCHEDVERT=$00000011 Const SS_ETCHEDFRAME=$00000012 Const SS_TYPEMASK=$0000001F Const SS_REALSIZECONTROL=$00000040 Const SS_NOPREFIX=$00000080 ' Don't do ""&"" character translation Const SS_NOTIFY=$00000100 Const SS_CENTERIMAGE=$00000200 Const SS_RIGHTJUST=$00000400 Const SS_REALSIZEIMAGE=$00000800 Const SS_SUNKEN=$00001000 Const SS_EDITCONTROL=$00002000 Const SS_ENDELLIPSIS=$00004000 Const SS_PATHELLIPSIS=$00008000 Const SS_WORDELLIPSIS=$0000C000 Const SS_ELLIPSISMASK=$0000C000 'StaticControlMesages Const STM_SETICON=$0170 Const STM_GETICON=$0171 Const STM_SETIMAGE=$0172 Const STM_GETIMAGE=$0173 Const STN_CLICKED=0 Const STN_DBLCLK=1 Const STN_ENABLE=2 Const STN_DISABLE=3 Const STM_MSGMAX=$0174 Const SBS_HORZ=$0000 Const SBS_VERT=$0001 Const SBS_TOPALIGN=$0002 Const SBS_LEFTALIGN=$0002 Const SBS_BOTTOMALIGN=$0004 Const SBS_RIGHTALIGN=$0004 Const SBS_SIZEBOXTOPLEFTALIGN=$0002 Const SBS_SIZEBOXBOTTOMRIGHTALIGN=$0004 Const SBS_SIZEBOX=$0008 Const SBS_SIZEGRIP=$0010 ' Scroll Bar Const SBM_SETPOS=$00E0'Notinwin3.1 Const SBM_GETPOS=$00E1'Notinwin3.1 Const SBM_SETRANGE=$00E2'Notinwin3.1 Const SBM_SETRANGEREDRAW=$00E6'Notinwin3.1 Const SBM_GETRANGE=$00E3'Notinwin3.1 Const SBM_ENABLE_ARROWS=$00E4'Notinwin3.1 Const SBM_SETSCROLLINFO=$00E9 Const SBM_GETSCROLLINFO=$00EA Const SBM_GETSCROLLBARINFO=$00EB Const TRACKBAR_CLASS$=""msctls_trackbar32"" Const TBS_AUTOTICKS=$0001 Const TBS_VERT=$0002 Const TBS_HORZ=$0000 Const TBS_TOP=$0004 Const TBS_BOTTOM=$0000 Const TBS_LEFT=$0004 Const TBS_RIGHT=$0000 Const TBS_BOTH=$0008 Const TBS_NOTICKS=$0010 Const TBS_ENABLESELRANGE=$0020 Const TBS_FIXEDLENGTH=$0040 Const TBS_NOTHUMB=$0080 Const TBS_TOOLTIPS=$0100 Const TBS_REVERSED=$0200 Const TBS_DOWNISLEFT=$0400 Const TBM_GETPOS=(WM_USER) Const TBM_GETRANGEMIN=(WM_USER+1) Const TBM_GETRANGEMAX=(WM_USER+2) Const TBM_GETTIC=(WM_USER+3) Const TBM_SETTIC=(WM_USER+4) Const TBM_SETPOS=(WM_USER+5) Const TBM_SETRANGE=(WM_USER+6) Const TBM_SETRANGEMIN=(WM_USER+7) Const TBM_SETRANGEMAX=(WM_USER+8) Const TBM_CLEARTICS=(WM_USER+9) Const TBM_SETSEL=(WM_USER+10) Const TBM_SETSELSTART=(WM_USER+11) Const TBM_SETSELEND=(WM_USER+12) Const TBM_GETPTICS=(WM_USER+14) Const TBM_GETTICPOS=(WM_USER+15) Const TBM_GETNUMTICS=(WM_USER+16) Const TBM_GETSELSTART=(WM_USER+17) Const TBM_GETSELEND=(WM_USER+18) Const TBM_CLEARSEL=(WM_USER+19) Const TBM_SETTICFREQ=(WM_USER+20) Const TBM_SETPAGESIZE=(WM_USER+21) Const TBM_GETPAGESIZE=(WM_USER+22) Const TBM_SETLINESIZE=(WM_USER+23) Const TBM_GETLINESIZE=(WM_USER+24) Const TBM_GETTHUMBRECT=(WM_USER+25) Const TBM_GETCHANNELRECT=(WM_USER+26) Const TBM_SETTHUMBLENGTH=(WM_USER+27) Const TBM_GETTHUMBLENGTH=(WM_USER+28) Const TBM_SETTOOLTIPS=(WM_USER+29) Const TBM_GETTOOLTIPS=(WM_USER+30) Const TBM_SETTIPSIDE=(WM_USER+31) Const TBTS_TOP=0 Const TBTS_LEFT=1 Const TBTS_BOTTOM=2 Const TBTS_RIGHT=3 Const TBM_SETBUDDY=(WM_USER+32) Const TBM_GETBUDDY=(WM_USER+33) 'Const TBM_SETUNICODEFORMAT=CCM_SETUNICODEFORMAT 'Const TBM_GETUNICODEFORMAT=CCM_GETUNICODEFORMAT Const TB_LINEUP=0 Const TB_LINEDOWN=1 Const TB_PAGEUP=2 Const TB_PAGEDOWN=3 Const TB_THUMBPOSITION=4 Const TB_THUMBTRACK=5 Const TB_TOP=6 Const TB_BOTTOM=7 Const TB_ENDTRACK=8 Const TBCD_TICS=$0001 Const TBCD_THUMB=$0002 Const TBCD_CHANNEL=$0003 Const UD_MAXVAL=$7fff Const UD_MINVAL=(-UD_MAXVAL) Const UDS_WRAP=$0001 Const UDS_SETBUDDYINT=$0002 Const UDS_ALIGNRIGHT=$0004 Const UDS_ALIGNLEFT=$0008 Const UDS_AUTOBUDDY=$0010 Const UDS_ARROWKEYS=$0020 Const UDS_HORZ=$0040 Const UDS_NOTHOUSANDS=$0080 Const UDS_HOTTRACK=$0100 Const UDM_SETRANGE=(WM_USER+101) Const UDM_GETRANGE=(WM_USER+102) Const UDM_SETPOS=(WM_USER+103) Const UDM_GETPOS=(WM_USER+104) Const UDM_SETBUDDY=(WM_USER+105) Const UDM_GETBUDDY=(WM_USER+106) Const UDM_SETACCEL=(WM_USER+107) Const UDM_GETACCEL=(WM_USER+108) Const UDM_SETBASE=(WM_USER+109) Const UDM_GETBASE=(WM_USER+110) Const UDM_SETRANGE32=(WM_USER+111) Const UDM_GETRANGE32=(WM_USER+112) 'Const UDM_SETUNICODEFORMAT=CCM_SETUNICODEFORMAT 'Const UDM_GETUNICODEFORMAT=CCM_GETUNICODEFORMAT Const UDM_SETPOS32=(WM_USER+113) Const UDM_GETPOS32=(WM_USER+114) Const ESB_ENABLE_BOTH=0 Const ESB_DISABLE_BOTH=3 Const ESB_DISABLE_LEFT=1 Const ESB_DISABLE_RIGHT=2 Const ESB_DISABLE_UP=1 Const ESB_DISABLE_DOWN=2 Const ESB_DISABLE_LTUP=ESB_DISABLE_LEFT Const ESB_DISABLE_RTDN=ESB_DISABLE_RIGHT ' ProgressBar Const PBS_SMOOTH=01 Const PBS_VERTICAL=4 Const PBM_SETRANGE=(WM_USER+1) Const PBM_SETPOS=(WM_USER+2) Const PBM_DELTAPOS=(WM_USER+3) Const PBM_SETSTEP=(WM_USER+4) Const PBM_STEPIT=(WM_USER+5) Const PBM_SETRANGE32=(WM_USER+6) Const PBM_GETRANGE=(WM_USER+7) Const PBM_GETPOS=(WM_USER+8) Const PBM_SETBARCOLOR=(WM_USER+9) 'Const PBM_SETBKCOLOR=CCM_SETBKCOLOR Const PBS_MARQUEE=8 Const PBM_SETMARQUEE=(WM_USER+10) Const IDOK=1 Const IDCANCEL=2 Const IDABORT=3 Const IDRETRY=4 Const IDIGNORE=5 Const IDYES=6 Const IDNO=7 Const IDCLOSE=8 Const IDHELP=9 Const IDTRYAGAIN=10 Const IDCONTINUE=11 Const IDTIMEOUT=32000 Const ICC_LISTVIEW_CLASSES=1 ' listview, header Const ICC_TREEVIEW_CLASSES=2 ' treeview, tooltips Const ICC_BAR_CLASSES=4 ' toolbar, statusbar, trackbar, tooltips Const ICC_TAB_CLASSES=8 ' tab, tooltips Const ICC_UPDOWN_CLASS=$10 ' updown Const ICC_PROGRESS_CLASS=$20 ' progress Const ICC_HOTKEY_CLASS=$40 ' hotkey Const ICC_ANIMATE_CLASS=$80 ' animate Const ICC_WIN95_CLASSES=$ff Const ICC_DATE_CLASSES=$100 ' month picker, date picker, time picker, updown Const ICC_USEREX_CLASSES=$200 ' comboex Const ICC_COOL_CLASSES=$400 ' rebar (coolbar) control Const ICC_INTERNET_CLASSES=$800 Const ICC_PAGESCROLLER_CLASS=$1000 ' page scroller Const ICC_NATIVEFNTCTL_CLASS=$2000 ' native font control Const ICC_STANDARD_CLASSES=$4000 Const ICC_LINK_CLASS=$8000 Type TINITCOMMONCONTROLSEX Field dwSize Field dwICC End Type ' TreeView messages Const TVI_ROOT=-$10000 Const TVI_FIRST=-$FFFF Const TVI_LAST=-$FFFE Const TVI_SORT=-$0FFFD Const TV_FIRST=$1100 Const TVM_INSERTITEMA=TV_FIRST+0 Const TVM_INSERTITEMW=TV_FIRST+50 Const TVM_DELETEITEM=TV_FIRST+1 Const TVM_EXPAND=TV_FIRST+2 Const TVE_COLLAPSE=$0001 Const TVE_EXPAND=$0002 Const TVE_TOGGLE=$0003 Const TVE_EXPANDPARTIAL=$4000 Const TVE_COLLAPSERESET=$8000 Const TVM_GETITEMRECT=TV_FIRST+4 Const TVM_GETCOUNT=TV_FIRST+5 Const TVM_GETINDENT=TV_FIRST+6 Const TVM_SETINDENT=TV_FIRST+7 Const TVM_GETIMAGELIST=TV_FIRST+8 Const TVSIL_NORMAL=0 Const TVSIL_STATE=2 Const TVM_SETIMAGELIST=TV_FIRST+9 Const TVM_GETNEXTITEM=TV_FIRST+10 Const TVGN_ROOT=$0000 Const TVGN_NEXT=$0001 Const TVGN_PREVIOUS=$0002 Const TVGN_PARENT=$0003 Const TVGN_CHILD=$0004 Const TVGN_FIRSTVISIBLE=$0005 Const TVGN_NEXTVISIBLE=$0006 Const TVGN_PREVIOUSVISIBLE=$0007 Const TVGN_DROPHILITE=$0008 Const TVGN_CARET=$0009 Const TVGN_LASTVISIBLE=$000A Const TVSI_NOSINGLEEXPAND=$8000 ' Should Not conflict with TVGN flags. Const TVM_SELECTITEM=TV_FIRST+11 Const TVM_GETITEMA=TV_FIRST+12 Const TVM_GETITEMW=TV_FIRST+62 Const TVM_SETITEMA=TV_FIRST+13 Const TVM_SETITEMW=TV_FIRST+63 Const TVM_EDITLABELA=TV_FIRST+14 Const TVM_EDITLABELW=TV_FIRST+65 Const TVM_GETEDITCONTROL=TV_FIRST+15 Const TVM_GETVISIBLECOUNT=TV_FIRST+16 Const TVM_HITTEST=TV_FIRST+17 Const TVHT_NOWHERE=$0001 Const TVHT_ONITEMICON=$0002 Const TVHT_ONITEMLABEL=$0004 Const TVHT_ONITEMINDENT=$0008 Const TVHT_ONITEMBUTTON=$0010 Const TVHT_ONITEMRIGHT=$0020 Const TVHT_ONITEMSTATEICON=$0040 Const TVHT_ONITEM=TVHT_ONITEMICON | TVHT_ONITEMLABEL | TVHT_ONITEMSTATEICON Const TVHT_ABOVE=$0100 Const TVHT_BELOW=$0200 Const TVHT_TORIGHT=$0400 Const TVHT_TOLEFT=$0800 Const TVM_CREATEDRAGIMAGE=TV_FIRST+18 Const TVM_SORTCHILDREN=TV_FIRST+19 Const TVM_ENSUREVISIBLE=TV_FIRST+20 Const TVM_SORTCHILDRENCB=TV_FIRST+21 Const TVM_ENDEDITLABELNOW=TV_FIRST+22 Const TVM_GETISEARCHSTRINGA=TV_FIRST+23 Const TVM_GETISEARCHSTRINGW=TV_FIRST+64 Const TVM_SETTOOLTIPS=TV_FIRST+24 Const TVM_GETTOOLTIPS=TV_FIRST+25 Const TVM_SETINSERTMARK=TV_FIRST+26 Const TVM_SETITEMHEIGHT=TV_FIRST+27 Const TVM_GETITEMHEIGHT=TV_FIRST+28 Const TVM_SETBKCOLOR=TV_FIRST+29 Const TVM_SETTEXTCOLOR=TV_FIRST+30 Const TVM_GETBKCOLOR=TV_FIRST+31 Const TVM_GETTEXTCOLOR=TV_FIRST+32 Const TVM_SETSCROLLTIME=TV_FIRST+33 Const TVM_GETSCROLLTIME=TV_FIRST+34 Const TVM_SETINSERTMARKCOLOR=TV_FIRST+37 Type TOOLINFOW Field cbSize Field uFlags Field hwnd Field uId Field rect_left,rect_top,rect_right,rect_bottom Field hinst Field lpszText:Short Ptr Field lParam End Type Const TTM_ACTIVATE=WM_USER+1 Const TTM_SETDELAYTIME=WM_USER+3 Const TTM_ADDTOOLA=WM_USER+4 Const TTM_ADDTOOLW=WM_USER+50 Const TTM_DELTOOLA=WM_USER+5 Const TTM_DELTOOLW=WM_USER+51 Const TTM_NEWTOOLRECTA=WM_USER+6 Const TTM_NEWTOOLRECTW=WM_USER+52 Const TTM_RELAYEVENT=WM_USER+7 Const TTM_GETTOOLINFOA=WM_USER+8 Const TTM_GETTOOLINFOW=WM_USER+53 Const TTM_SETTOOLINFOA=WM_USER+9 Const TTM_SETTOOLINFOW=WM_USER+54 Const TTM_HITTESTA=WM_USER +10 Const TTM_HITTESTW=WM_USER +55 Const TTM_GETTEXTA=WM_USER +11 Const TTM_GETTEXTW=WM_USER +56 Const TTM_UPDATETIPTEXTA=WM_USER +12 Const TTM_UPDATETIPTEXTW=WM_USER +57 Const TTM_GETTOOLCOUNT=WM_USER +13 Const TTM_ENUMTOOLSA=WM_USER +14 Const TTM_ENUMTOOLSW=WM_USER +58 Const TTM_GETCURRENTTOOLA =WM_USER+15 Const TTM_GETCURRENTTOOLW =WM_USER+59 Const TTM_WINDOWFROMPOINT =WM_USER+16 Const TTM_TRACKACTIVATE =WM_USER+17' wParam = True/False start Endlparam = LPTOOLINFO Const TTM_TRACKPOSITION =WM_USER+18' lParam = dwPos Const TTM_SETTIPBKCOLOR =WM_USER+19 Const TTM_SETTIPTEXTCOLOR =WM_USER+20 Const TTM_GETDELAYTIME=WM_USER+21 Const TTM_GETTIPBKCOLOR =WM_USER+22 Const TTM_GETTIPTEXTCOLOR =WM_USER+23 Const TTM_SETMAXTIPWIDTH=WM_USER+24 Const TTM_GETMAXTIPWIDTH=WM_USER+25 Const TTM_SETMARGIN =WM_USER+26' lParam = lprc Const TTM_GETMARGIN =WM_USER+27' lParam = lprc Const TTM_POP =WM_USER+28 Const TTM_UPDATE=WM_USER+29 Const TTM_GETBUBBLESIZE =WM_USER+30 Const TTM_ADJUSTRECT=WM_USER+31 Const TTM_SETTITLEA =WM_USER+32' wParam = TTI_*, lParam = char* szTitle Const TTM_SETTITLEW =WM_USER+33' wParam = TTI_*, lParam = wchar* szTitle Const TTM_POPUP =WM_USER+34 Const TTM_GETTITLE=WM_USER+35 ' wParam = 0, lParam = TTGETTITLE* Const TTF_IDISHWND=1 Const TTF_CENTERTIP=2 Const TTF_RTLREADING=4 Const TTF_SUBCLASS=$10 Const TTF_TRACK=$20 Const TTF_ABSOLUTE=$80 Const TTF_TRANSPARENT=$100 Const TTF_PARSELINKS=$1000 Const TTF_DI_SETITEM=$8000 Const NM_FIRST=0 Const NM_OUTOFMEMORY=NM_FIRST-1 Const NM_CLICK=NM_FIRST-2' uses NMCLICK struct Const NM_DBLCLK =NM_FIRST-3 Const NM_RETURN =NM_FIRST-4 Const NM_RCLICK =NM_FIRST-5' uses NMCLICK struct Const NM_RDBLCLK=NM_FIRST-6 Const NM_SETFOCUS =NM_FIRST-7 Const NM_KILLFOCUS=NM_FIRST-8 Const NM_CUSTOMDRAW =NM_FIRST-12 Const NM_HOVER=NM_FIRST-13 Const NM_NCHITTEST=NM_FIRST-14 ' uses NMMOUSE struct Const NM_KEYDOWN=NM_FIRST-15 ' uses NMKEY struct Const NM_RELEASEDCAPTURE=NM_FIRST-16 Const NM_SETCURSOR=NM_FIRST-17 ' uses NMMOUSE struct Const NM_CHAR =NM_FIRST-18 ' uses NMCHAR struct Const NM_TOOLTIPSCREATED=NM_FIRST-19 ' Notify of when the tooltips window is create Const NM_LDOWN=NM_FIRST-20 Const NM_RDOWN=NM_FIRST-21 Const NM_THEMECHANGED =NM_FIRST-22 Const TVN_FIRST=-400 Const TVN_SELCHANGINGA=TVN_FIRST-1 Const TVN_SELCHANGINGW=TVN_FIRST-50 Const TVN_SELCHANGEDA=TVN_FIRST-2 Const TVN_SELCHANGEDW=TVN_FIRST-51 Const TVC_UNKNOWN=0 Const TVC_BYMOUSE=1 Const TVC_BYKEYBOARD=2 Const TVN_GETDISPINFOA=TVN_FIRST-3 Const TVN_GETDISPINFOW=TVN_FIRST-52 Const TVN_SETDISPINFOA=TVN_FIRST-4 Const TVN_SETDISPINFOW=TVN_FIRST-53 Const TVIF_DI_SETITEM=$1000 Const TVN_ITEMEXPANDINGA=TVN_FIRST-5 Const TVN_ITEMEXPANDINGW=TVN_FIRST-54 Const TVN_ITEMEXPANDEDA=TVN_FIRST-6 Const TVN_ITEMEXPANDEDW=TVN_FIRST-55 Const TVN_BEGINDRAGA=TVN_FIRST-7 Const TVN_BEGINDRAGW=TVN_FIRST-56 Const TVN_BEGINRDRAGA=TVN_FIRST-8 Const TVN_BEGINRDRAGW=TVN_FIRST-57 Const TVN_DELETEITEMA=TVN_FIRST-9 Const TVN_DELETEITEMW=TVN_FIRST-58 Const TVN_BEGINLABELEDITA=TVN_FIRST-10 Const TVN_BEGINLABELEDITW=TVN_FIRST-59 Const TVN_ENDLABELEDITA=TVN_FIRST-11 Const TVN_ENDLABELEDITW=TVN_FIRST-60 Const TVN_KEYDOWN=TVN_FIRST-12 Const TVN_GETINFOTIPA =TVN_FIRST-13 Const TVN_GETINFOTIPW =TVN_FIRST-14 Const TVN_SINGLEEXPAND=TVN_FIRST-15 Const TVNRET_DEFAULT=0 Const TVNRET_SKIPOLD=1 Const TVNRET_SKIPNEW=2 ' tab control Const TCN_FIRST=-550 Const TCN_SELCHANGE =(TCN_FIRST - 1) Const TCN_SELCHANGING =(TCN_FIRST - 2) Const TCN_GETOBJECT =(TCN_FIRST - 3) Const TCN_FOCUSCHANGE =(TCN_FIRST - 4) ' toolbar control Const TBSTATE_CHECKED=$01 Const TBSTATE_PRESSED=$02 Const TBSTATE_ENABLED=$04 Const TBSTATE_HIDDEN=$08 Const TBSTATE_INDETERMINATE=$10 Const TBSTATE_WRAP=$20 Const TBSTATE_ELLIPSES=$40 Const TBSTATE_MARKED=$80 Const TBSTYLE_BUTTON=$0000 Const TBSTYLE_SEP=$0001 Const TBSTYLE_CHECK=$0002 Const TBSTYLE_GROUP=$0004 Const TBSTYLE_CHECKGROUP=(TBSTYLE_GROUP | TBSTYLE_CHECK) Const TBSTYLE_DROPDOWN=$0008 Const TBSTYLE_AUTOSIZE=$0010 Const TBSTYLE_NOPREFIX=$0020 Const TBSTYLE_TOOLTIPS=$0100 Const TBSTYLE_WRAPABLE=$0200 Const TBSTYLE_ALTDRAG=$0400 Const TBSTYLE_FLAT=$0800 Const TBSTYLE_LIST=$1000 Const TBSTYLE_CUSTOMERASE=$2000 Const TBSTYLE_REGISTERDROP=$4000 Const TBSTYLE_TRANSPARENT=$8000 Const TBSTYLE_EX_DRAWDDARROWS=$00000001 Type TBBUTTON Field iBitmap Field idCommand; Field fsState:Byte Field fsStyle:Byte Field pad0:Byte Field pad1:Byte Field dwData:Byte Ptr Field iString:Byte Ptr End Type Const BTNS_BUTTON =TBSTYLE_BUTTON ' =$0000 Const BTNS_SEP =TBSTYLE_SEP ' =$0001 Const BTNS_CHECK =TBSTYLE_CHECK ' =$0002 Const BTNS_GROUP =TBSTYLE_GROUP ' =$0004 Const BTNS_CHECKGROUP =TBSTYLE_CHECKGROUP ' (TBSTYLE_GROUP | TBSTYLE_CHECK) Const BTNS_DROPDOWN =TBSTYLE_DROPDOWN ' =$0008 Const BTNS_AUTOSIZE =TBSTYLE_AUTOSIZE ' =$0010; automatically calculate the cx of the button Const BTNS_NOPREFIX =TBSTYLE_NOPREFIX ' =$0020; this button should Not have accel prefix Const BTNS_SHOWTEXT =$0040 ' ignored unless TBSTYLE_EX_MIXEDBUTTONS is set Const BTNS_WHOLEDROPDOWN =$0080 ' draw drop-down arrow, but without split arrow section Const TBSTYLE_EX_MIXEDBUTTONS =$00000008 Const TBSTYLE_EX_HIDECLIPPEDBUTTONS =$00000010 ' don't show partially obscured buttons Const TBSTYLE_EX_DOUBLEBUFFER =$00000080 ' Double Buffer the toolbar ' Toolbar custom draw Return flags Const TBCDRF_NOEDGES =$00010000 ' Don't draw button edges Const TBCDRF_HILITEHOTTRACK =$00020000 ' Use color of the button bk when hottracked Const TBCDRF_NOOFFSET =$00040000 ' Don't offset button if pressed Const TBCDRF_NOMARK =$00080000 ' Don't draw default highlight of image/text for TBSTATE_MARKED Const TBCDRF_NOETCHEDEFFECT =$00100000 ' Don't draw etched effect for disabled items Const TBCDRF_BLENDICON =$00200000 ' Use ILD_BLEND50 on the icon image Const TBCDRF_NOBACKGROUND =$00400000 ' Use ILD_BLEND50 on the icon image Const TB_ENABLEBUTTON =(WM_USER + 1) Const TB_CHECKBUTTON =(WM_USER + 2) Const TB_PRESSBUTTON =(WM_USER + 3) Const TB_HIDEBUTTON =(WM_USER + 4) Const TB_INDETERMINATE =(WM_USER + 5) Const TB_MARKBUTTON =(WM_USER + 6) Const TB_ISBUTTONENABLED =(WM_USER + 9) Const TB_ISBUTTONCHECKED =(WM_USER + 10) Const TB_ISBUTTONPRESSED =(WM_USER + 11) Const TB_ISBUTTONHIDDEN =(WM_USER + 12) Const TB_ISBUTTONINDETERMINATE=(WM_USER + 13) Const TB_ISBUTTONHIGHLIGHTED =(WM_USER + 14) Const TB_SETSTATE =(WM_USER + 17) Const TB_GETSTATE =(WM_USER + 18) Const TB_ADDBITMAP =(WM_USER + 19) Const HINST_COMMCTRL =-1 Const IDB_STD_SMALL_COLOR =0 Const IDB_STD_LARGE_COLOR =1 Const IDB_VIEW_SMALL_COLOR =4 Const IDB_VIEW_LARGE_COLOR =5 Const IDB_HIST_SMALL_COLOR =8 Const IDB_HIST_LARGE_COLOR =9 Const STD_CUT =0 Const STD_COPY =1 Const STD_PASTE =2 Const STD_UNDO =3 Const STD_REDOW =4 Const STD_DELETE =5 Const STD_FILENEW =6 Const STD_FILEOPEN =7 Const STD_FILESAVE =8 Const STD_PRINTPRE =9 Const STD_PROPERTIES =10 Const STD_HELP =11 Const STD_FIND =12 Const STD_REPLACE =13 Const STD_PRINT =14 Const VIEW_LARGEICONS =0 Const VIEW_SMALLICONS =1 Const VIEW_LIST =2 Const VIEW_DETAILS =3 Const VIEW_SORTNAME =4 Const VIEW_SORTSIZE =5 Const VIEW_SORTDATE =6 Const VIEW_SORTTYPE =7 Const VIEW_PARENTFOLDER =8 Const VIEW_NETCONNECT =9 Const VIEW_NETDISCONNECT =10 Const VIEW_NEWFOLDER =11 Const VIEW_VIEWMENU =12 Const HIST_BACK =0 Const HIST_FORWARD =1 Const HIST_FAVORITES =2 Const HIST_ADDTOFAVORITES =3 Const HIST_VIEWTREE =4 Const TB_ADDBUTTONS =(WM_USER + 20) Const TB_INSERTBUTTON =(WM_USER + 21) Const TB_DELETEBUTTON =(WM_USER + 22) Const TB_GETBUTTON =(WM_USER + 23) Const TB_BUTTONCOUNT =(WM_USER + 24) Const TB_COMMANDTOINDEX =(WM_USER + 25) Const TB_SAVERESTOREA =(WM_USER + 26) Const TB_SAVERESTOREW =(WM_USER + 76) Const TB_CUSTOMIZE =(WM_USER + 27) Const TB_ADDSTRINGA =(WM_USER + 28) Const TB_ADDSTRINGW =(WM_USER + 77) Const TB_GETITEMRECT =(WM_USER + 29) Const TB_BUTTONSTRUCTSIZE =(WM_USER + 30) Const TB_SETBUTTONSIZE =(WM_USER + 31) Const TB_SETBITMAPSIZE =(WM_USER + 32) Const TB_AUTOSIZE =(WM_USER + 33) Const TB_GETTOOLTIPS =(WM_USER + 35) Const TB_SETTOOLTIPS =(WM_USER + 36) Const TB_SETPARENT =(WM_USER + 37) Const TB_SETROWS =(WM_USER + 39) Const TB_GETROWS =(WM_USER + 40) Const TB_SETCMDID =(WM_USER + 42) Const TB_CHANGEBITMAP =(WM_USER + 43) Const TB_GETBITMAP =(WM_USER + 44) Const TB_GETBUTTONTEXTA =(WM_USER + 45) Const TB_GETBUTTONTEXTW =(WM_USER + 75) Const TB_REPLACEBITMAP =(WM_USER + 46) Const TB_SETINDENT =(WM_USER + 47) Const TB_SETIMAGELIST =(WM_USER + 48) Const TB_GETIMAGELIST =(WM_USER + 49) Const TB_LOADIMAGES =(WM_USER + 50) Const TB_GETRECT =(WM_USER + 51) ' wParam is the Cmd instead of index Const TB_SETHOTIMAGELIST =(WM_USER + 52) Const TB_GETHOTIMAGELIST =(WM_USER + 53) Const TB_SETDISABLEDIMAGELIST =(WM_USER + 54) Const TB_GETDISABLEDIMAGELIST =(WM_USER + 55) Const TB_SETSTYLE =(WM_USER + 56) Const TB_GETSTYLE =(WM_USER + 57) Const TB_GETBUTTONSIZE =(WM_USER + 58) Const TB_SETBUTTONWIDTH =(WM_USER + 59) Const TB_SETMAXTEXTROWS =(WM_USER + 60) Const TB_GETTEXTROWS =(WM_USER + 61) Const TB_GETOBJECT =(WM_USER + 62) ' wParam == IID, lParam void **ppv Const TB_GETHOTITEM =(WM_USER + 71) Const TB_SETHOTITEM =(WM_USER + 72) ' wParam == iHotItem Const TB_SETANCHORHIGHLIGHT =(WM_USER + 73) ' wParam == True/False Const TB_GETANCHORHIGHLIGHT =(WM_USER + 74) Const TB_MAPACCELERATORA =(WM_USER + 78) ' wParam == ch, lParam Int * pidBtn Const TBIMHT_AFTER =1 ' True = insert After iButton, otherwise before Const TBIMHT_BACKGROUND =2 ' True iff missed buttons completely Const TB_GETINSERTMARK =(WM_USER + 79) ' lParam == LPTBINSERTMARK Const TB_SETINSERTMARK =(WM_USER + 80) ' lParam == LPTBINSERTMARK Const TB_INSERTMARKHITTEST =(WM_USER + 81) ' wParam == LPPOINT lParam == LPTBINSERTMARK Const TB_MOVEBUTTON =(WM_USER + 82) Const TB_GETMAXSIZE =(WM_USER + 83) ' lParam == LPSIZE Const TB_SETEXTENDEDSTYLE =(WM_USER + 84) ' For TBSTYLE_EX_* Const TB_GETEXTENDEDSTYLE =(WM_USER + 85) ' For TBSTYLE_EX_* Const TB_GETPADDING =(WM_USER + 86) Const TB_SETPADDING =(WM_USER + 87) Const TB_SETINSERTMARKCOLOR =(WM_USER + 88) Const TB_GETINSERTMARKCOLOR =(WM_USER + 89) 'Const TB_SETCOLORSCHEME =CCM_SETCOLORSCHEME ' lParam is color scheme 'Const TB_GETCOLORSCHEME =CCM_GETCOLORSCHEME ' fills in COLORSCHEME pointed To by lParam 'Const TB_SETUNICODEFORMAT =CCM_SETUNICODEFORMAT 'Const TB_GETUNICODEFORMAT =CCM_GETUNICODEFORMAT Const TB_MAPACCELERATORW =(WM_USER + 90) ' wParam == ch, lParam Int * pidBtn ' imagelist Const ILC_MASK=$0001 Const ILC_COLOR=$0000 Const ILC_COLORDDB=$00FE Const ILC_COLOR4=$0004 Const ILC_COLOR8=$0008 Const ILC_COLOR16=$0010 Const ILC_COLOR24=$0018 Const ILC_COLOR32=$0020 Const ILC_PALETTE=$0800 Const ILC_MIRROR=$2000 Const ILC_PERITEMMIRROR=$8000 ' font Const SIMULATED_FONTTYPE =$8000 Const PRINTER_FONTTYPE =$4000 Const SCREEN_FONTTYPE =$2000 Const BOLD_FONTTYPE =$0100 Const ITALIC_FONTTYPE =$0200 Const REGULAR_FONTTYPE =$0400 Const CCM_FIRST=$2000 ' Common control shared messages Const CCM_SETBKCOLOR=(CCM_FIRST + 1) ' lParam is bkColor Type COLORSCHEME Field dwSize Field clrBtnHighlight Field clrBtnShadow End Type Const CCM_SETCOLORSCHEME =(CCM_FIRST + 2) ' lParam is color scheme Const CCM_GETCOLORSCHEME =(CCM_FIRST + 3) ' fills in COLORSCHEME pointed To by lParam Const CCM_GETDROPTARGET =(CCM_FIRST + 4) Const CCM_SETUNICODEFORMAT =(CCM_FIRST + 5) Const CCM_GETUNICODEFORMAT =(CCM_FIRST + 6) Const CCM_SETVERSION =(CCM_FIRST + 7) Const CCM_GETVERSION =(CCM_FIRST + 8) Const CCM_SETNOTIFYWINDOW =(CCM_FIRST + 9) ' wParam == hwndParent. Const CCM_SETWINDOWTHEME =(CCM_FIRST + 11) Const CCM_DPISCALE =(CCM_FIRST + 12) ' wParam == Awareness ' listview Const LVM_FIRST =$1000 ' ListView messages 'Const LVM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT 'Const LVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT Const LVM_GETBKCOLOR =(LVM_FIRST + 0) Const LVM_SETBKCOLOR =(LVM_FIRST + 1) Const LVM_GETIMAGELIST =(LVM_FIRST + 2) Const LVSIL_NORMAL =0 Const LVSIL_SMALL =1 Const LVSIL_STATE =2 Const LVM_SETIMAGELIST =(LVM_FIRST + 3) Const LVM_GETITEMCOUNT =(LVM_FIRST + 4) Const LVIF_TEXT =$0001 Const LVIF_IMAGE =$0002 Const LVIF_PARAM =$0004 Const LVIF_STATE =$0008 Const LVIF_INDENT =$0010 Const LVIF_NORECOMPUTE =$0800 Const LVIF_GROUPID =$0100 Const LVIF_COLUMNS =$0200 Const LVIS_FOCUSED =$0001 Const LVIS_SELECTED =$0002 Const LVIS_CUT =$0004 Const LVIS_DROPHILITED =$0008 Const LVIS_GLOW =$0010 Const LVIS_ACTIVATING =$0020 Const LVIS_OVERLAYMASK =$0F00 Const LVIS_STATEIMAGEMASK =$F000 Type LVITEMW Field mask Field iItem Field iSubItem Field state Field stateMask Field pszText:Short Ptr Field cchTextMax Field iImage Field lParam Field iIndent Field iGroupId Field cColumns Field puColumns:Int Ptr End Type Const I_IMAGECALLBACK =(-1) Const I_IMAGENONE =(-2) Const I_COLUMNSCALLBACK =(-1) Const LVM_GETITEMA =(LVM_FIRST + 5) Const LVM_GETITEMW =(LVM_FIRST + 75) Const LVM_SETITEMA =(LVM_FIRST + 6) Const LVM_SETITEMW =(LVM_FIRST + 76) Const LVM_INSERTITEMA =(LVM_FIRST + 7) Const LVM_INSERTITEMW =(LVM_FIRST + 77) Const LVM_DELETEITEM =(LVM_FIRST + 8) Const LVM_DELETEALLITEMS =(LVM_FIRST + 9) Const LVM_GETCALLBACKMASK =(LVM_FIRST + 10) Const LVM_SETCALLBACKMASK =(LVM_FIRST + 11) Const LVNI_ALL =$0000 Const LVNI_FOCUSED =$0001 Const LVNI_SELECTED =$0002 Const LVNI_CUT =$0004 Const LVNI_DROPHILITED =$0008 Const LVNI_ABOVE =$0100 Const LVNI_BELOW =$0200 Const LVNI_TOLEFT =$0400 Const LVNI_TORIGHT =$0800 Const LVM_GETNEXTITEM =(LVM_FIRST + 12) Const LVFI_PARAM =$0001 Const LVFI_STRING =$0002 Const LVFI_PARTIAL =$0008 Const LVFI_WRAP =$0020 Const LVFI_NEARESTXY =$0040 Type FINDINFOW Field flags Field psz:Short Ptr Field lParam Field pt_x,pt_y Field vkDirection End Type Const LVM_FINDITEMA =(LVM_FIRST + 13) Const LVM_FINDITEMW =(LVM_FIRST + 83) Const LVIR_BOUNDS =0 Const LVIR_ICON =1 Const LVIR_LABEL =2 Const LVIR_SELECTBOUNDS =3 Const LVM_GETITEMRECT =(LVM_FIRST + 14) Const LVM_SETITEMPOSITION =(LVM_FIRST + 15) Const LVM_GETITEMPOSITION =(LVM_FIRST + 16) Const LVM_GETSTRINGWIDTHA =(LVM_FIRST + 17) Const LVM_GETSTRINGWIDTHW =(LVM_FIRST + 87) Const LVHT_NOWHERE =$0001 Const LVHT_ONITEMICON =$0002 Const LVHT_ONITEMLABEL =$0004 Const LVHT_ONITEMSTATEICON =$0008 Const LVHT_ONITEM =(LVHT_ONITEMICON | LVHT_ONITEMLABEL | LVHT_ONITEMSTATEICON) Const LVHT_ABOVE =$0008 Const LVHT_BELOW =$0010 Const LVHT_TORIGHT =$0020 Const LVHT_TOLEFT =$0040 Type LVHITTESTINFO Field pt_x,pt_y Field flags Field iItem Field iSubItem End Type Const LVM_HITTEST =(LVM_FIRST + 18) Const LVM_ENSUREVISIBLE =(LVM_FIRST + 19) Const LVM_SCROLL =(LVM_FIRST + 20) Const LVM_REDRAWITEMS =(LVM_FIRST + 21) Const LVA_DEFAULT =$0000 Const LVA_ALIGNLEFT =$0001 Const LVA_ALIGNTOP =$0002 Const LVA_SNAPTOGRID =$0005 Const LVM_ARRANGE =(LVM_FIRST + 22) Const LVM_EDITLABELA =(LVM_FIRST + 23) Const LVM_EDITLABELW =(LVM_FIRST + 118) Const LVM_GETEDITCONTROL =(LVM_FIRST + 24) Type LVCOLUMNW Field mask Field fmt Field cx Field pszText:Short Ptr Field cchTextMax Field iSubItem Field iImage Field iOrder End Type Const LVCF_FMT =$0001 Const LVCF_WIDTH =$0002 Const LVCF_TEXT =$0004 Const LVCF_SUBITEM =$0008 Const LVCF_IMAGE =$0010 Const LVCF_ORDER =$0020 Const LVCFMT_LEFT =$0000 Const LVCFMT_RIGHT =$0001 Const LVCFMT_CENTER =$0002 Const LVCFMT_JUSTIFYMASK =$0003 Const LVCFMT_IMAGE =$0800 Const LVCFMT_BITMAP_ON_RIGHT =$1000 Const LVCFMT_COL_HAS_IMAGES =$8000 Const LVM_GETCOLUMNA =(LVM_FIRST + 25) Const LVM_GETCOLUMNW =(LVM_FIRST + 95) Const LVM_SETCOLUMNA =(LVM_FIRST + 26) Const LVM_SETCOLUMNW =(LVM_FIRST + 96) Const LVM_INSERTCOLUMNA =(LVM_FIRST + 27) Const LVM_INSERTCOLUMNW =(LVM_FIRST + 97) Const LVM_DELETECOLUMN =(LVM_FIRST + 28) Const LVM_GETCOLUMNWIDTH =(LVM_FIRST + 29) Const LVSCW_AUTOSIZE =-1 Const LVSCW_AUTOSIZE_USEHEADER = -2 Const LVM_SETCOLUMNWIDTH =(LVM_FIRST + 30) Const LVM_GETHEADER =(LVM_FIRST + 31) Const LVM_CREATEDRAGIMAGE =(LVM_FIRST + 33) Const LVM_GETVIEWRECT =(LVM_FIRST + 34) Const LVM_GETTEXTCOLOR =(LVM_FIRST + 35) Const LVM_SETTEXTCOLOR =(LVM_FIRST + 36) Const LVM_GETTEXTBKCOLOR =(LVM_FIRST + 37) Const LVM_SETTEXTBKCOLOR =(LVM_FIRST + 38) Const LVM_GETTOPINDEX =(LVM_FIRST + 39) Const LVM_GETCOUNTPERPAGE =(LVM_FIRST + 40) Const LVM_GETORIGIN =(LVM_FIRST + 41) Const LVM_UPDATE =(LVM_FIRST + 42) Const LVM_SETITEMSTATE =(LVM_FIRST + 43) Const LVM_GETITEMSTATE =(LVM_FIRST + 44) Const LVM_GETITEMTEXTA =(LVM_FIRST + 45) Const LVM_GETITEMTEXTW =(LVM_FIRST + 115) Const LVM_SETITEMTEXTA =(LVM_FIRST + 46) Const LVM_SETITEMTEXTW =(LVM_FIRST + 116) ' these flags only apply To LVS_OWNERDATA listviews in report Or list mode Const LVSICF_NOINVALIDATEALL =$0001 Const LVSICF_NOSCROLL =$0002 Const LVM_SETITEMCOUNT =(LVM_FIRST + 47) Const LVM_SORTITEMS =(LVM_FIRST + 48) Const LVM_SETITEMPOSITION32 =(LVM_FIRST + 49) Const LVM_GETSELECTEDCOUNT =(LVM_FIRST + 50) Const LVM_GETITEMSPACING =(LVM_FIRST + 51) Const LVM_GETISEARCHSTRINGA =(LVM_FIRST + 52) Const LVM_GETISEARCHSTRINGW =(LVM_FIRST + 117) Const LVM_SETICONSPACING =(LVM_FIRST + 53) Const LVM_SETEXTENDEDLISTVIEWSTYLE =(LVM_FIRST + 54) ' optional wParam == mask Const LVM_GETEXTENDEDLISTVIEWSTYLE =(LVM_FIRST + 55) Const LVS_EX_GRIDLINES =$0001 Const LVS_EX_SUBITEMIMAGES =$0002 Const LVS_EX_CHECKBOXES =$0004 Const LVS_EX_TRACKSELECT =$0008 Const LVS_EX_HEADERDRAGDROP =$0010 Const LVS_EX_FULLROWSELECT =$0020 ' applies To report mode only Const LVS_EX_ONECLICKACTIVATE =$0040 Const LVS_EX_TWOCLICKACTIVATE =$0080 Const LVS_EX_FLATSB =$0100 Const LVS_EX_REGIONAL =$0200 Const LVS_EX_INFOTIP =$0400 ' listview does InfoTips For you Const LVS_EX_UNDERLINEHOT =$0800 Const LVS_EX_UNDERLINECOLD =$1000 Const LVS_EX_MULTIWORKAREAS =$2000 Const LVS_EX_LABELTIP =$4000 ' listview unfolds partly hidden labels If it does Not have infotip text Const LVS_EX_BORDERSELECT =$8000 ' border selection style instead of highlight Const LVS_EX_DOUBLEBUFFER =$00010000 Const LVS_EX_HIDELABELS =$00020000 Const LVS_EX_SINGLEROW =$00040000 Const LVS_EX_SNAPTOGRID =$00080000 ' Icons automatically snap To grid. Const LVS_EX_SIMPLESELECT =$00100000 ' Also changes overlay rendering To top Right For icon mode. Const LVM_GETSUBITEMRECT =(LVM_FIRST + 56) Const LVM_SUBITEMHITTEST =(LVM_FIRST + 57) Const LVM_SETCOLUMNORDERARRAY =(LVM_FIRST + 58) Const LVM_GETCOLUMNORDERARRAY =(LVM_FIRST + 59) Const LVM_SETHOTITEM =(LVM_FIRST + 60) Const LVM_GETHOTITEM =(LVM_FIRST + 61) Const LVM_SETHOTCURSOR =(LVM_FIRST + 62) Const LVM_GETHOTCURSOR =(LVM_FIRST + 63) Const LVM_APPROXIMATEVIEWRECT =(LVM_FIRST + 64) Const LV_MAX_WORKAREAS =16 Const LVM_SETWORKAREAS =(LVM_FIRST + 65) Const LVM_GETWORKAREAS =(LVM_FIRST + 70) Const LVM_GETNUMBEROFWORKAREAS =(LVM_FIRST + 73) Const LVM_GETSELECTIONMARK =(LVM_FIRST + 66) Const LVM_SETSELECTIONMARK =(LVM_FIRST + 67) Const LVM_SETHOVERTIME =(LVM_FIRST + 71) Const LVM_GETHOVERTIME =(LVM_FIRST + 72) Const LVM_SETTOOLTIPS =(LVM_FIRST + 74) Const LVM_GETTOOLTIPS =(LVM_FIRST + 78) Const LVM_SORTITEMSEX =(LVM_FIRST + 81) Const LVBKIF_SOURCE_NONE =$0000 Const LVBKIF_SOURCE_HBITMAP =$0001 Const LVBKIF_SOURCE_URL =$0002 Const LVBKIF_SOURCE_MASK =$0003 Const LVBKIF_STYLE_NORMAL =$0000 Const LVBKIF_STYLE_TILE =$0010 Const LVBKIF_STYLE_MASK =$0010 Const LVBKIF_FLAG_TILEOFFSET =$0100 Const LVBKIF_TYPE_WATERMARK =$10000000 Const LVM_SETBKIMAGEA =(LVM_FIRST + 68) Const LVM_SETBKIMAGEW =(LVM_FIRST + 138) Const LVM_GETBKIMAGEA =(LVM_FIRST + 69) Const LVM_GETBKIMAGEW =(LVM_FIRST + 139) Const LVM_SETSELECTEDCOLUMN =(LVM_FIRST + 140) Const LVM_SETTILEWIDTH =(LVM_FIRST + 141) Const LV_VIEW_ICON =$0000 Const LV_VIEW_DETAILS =$0001 Const LV_VIEW_SMALLICON =$0002 Const LV_VIEW_LIST =$0003 Const LV_VIEW_TILE =$0004 Const LV_VIEW_MAX =$0004 Const LVM_SETVIEW =(LVM_FIRST + 142) Const LVM_GETVIEW =(LVM_FIRST + 143) Const LVGF_NONE =$0000 Const LVGF_HEADER =$0001 Const LVGF_FOOTER =$0002 Const LVGF_STATE =$0004 Const LVGF_ALIGN =$0008 Const LVGF_GROUPID =$0010 Const LVGS_NORMAL =$0000 Const LVGS_COLLAPSED =$0001 Const LVGS_HIDDEN =$0002 Const LVGA_HEADER_LEFT =$0001 Const LVGA_HEADER_CENTER =$0002 Const LVGA_HEADER_RIGHT =$0004 ' Don't forget to validate exclusivity Const LVGA_FOOTER_LEFT =$0008 Const LVGA_FOOTER_CENTER =$0010 Const LVGA_FOOTER_RIGHT =$0020 ' Don't forget to validate exclusivity Const LVM_INSERTGROUP =(LVM_FIRST + 145) Const LVM_SETGROUPINFO =(LVM_FIRST + 147) Const LVM_GETGROUPINFO =(LVM_FIRST + 149) Const LVM_REMOVEGROUP =(LVM_FIRST + 150) Const LVM_MOVEGROUP =(LVM_FIRST + 151) Const LVM_MOVEITEMTOGROUP =(LVM_FIRST + 154) Const LVGMF_NONE =$0000 Const LVGMF_BORDERSIZE =$0001 Const LVGMF_BORDERCOLOR =$0002 Const LVGMF_TEXTCOLOR =$0004 Const LVM_SETGROUPMETRICS =(LVM_FIRST + 155) Const LVM_GETGROUPMETRICS =(LVM_FIRST + 156) Const LVM_ENABLEGROUPVIEW =(LVM_FIRST + 157) Const LVM_SORTGROUPS =(LVM_FIRST + 158) Const LVM_INSERTGROUPSORTED =(LVM_FIRST + 159) Const LVM_REMOVEALLGROUPS =(LVM_FIRST + 160) Const LVM_HASGROUP =(LVM_FIRST + 161) Const LVTVIF_AUTOSIZE =$0000 Const LVTVIF_FIXEDWIDTH =$0001 Const LVTVIF_FIXEDHEIGHT =$0002 Const LVTVIF_FIXEDSIZE =$0003 Const LVTVIM_TILESIZE =$0001 Const LVTVIM_COLUMNS =$0002 Const LVTVIM_LABELMARGIN =$0004 Const LVM_SETTILEVIEWINFO =(LVM_FIRST + 162) Const LVM_GETTILEVIEWINFO =(LVM_FIRST + 163) Const LVM_SETTILEINFO =(LVM_FIRST + 164) Const LVM_GETTILEINFO =(LVM_FIRST + 165) Const LVIM_AFTER =$0001 ' True = insert After iItem, otherwise before Const LVM_SETINSERTMARK =(LVM_FIRST + 166) Const LVM_GETINSERTMARK =(LVM_FIRST + 167) Const LVM_INSERTMARKHITTEST =(LVM_FIRST + 168) Const LVM_GETINSERTMARKRECT =(LVM_FIRST + 169) Const LVM_SETINSERTMARKCOLOR =(LVM_FIRST + 170) Const LVM_GETINSERTMARKCOLOR =(LVM_FIRST + 171) Const LVM_SETINFOTIP =(LVM_FIRST + 173) Const LVM_GETSELECTEDCOLUMN =(LVM_FIRST + 174) Const LVM_ISGROUPVIEWENABLED =(LVM_FIRST + 175) Const LVM_GETOUTLINECOLOR =(LVM_FIRST + 176) Const LVM_SETOUTLINECOLOR =(LVM_FIRST + 177) Const LVM_CANCELEDITLABEL =(LVM_FIRST + 179) Const LVM_MAPINDEXTOID =(LVM_FIRST + 180) Const LVM_MAPIDTOINDEX =(LVM_FIRST + 181) Const LVN_FIRST =-100 Const LVN_ITEMCHANGING =(LVN_FIRST-0) Const LVN_ITEMCHANGED =(LVN_FIRST-1) Const LVN_INSERTITEM =(LVN_FIRST-2) Const LVN_DELETEITEM =(LVN_FIRST-3) Const LVN_DELETEALLITEMS =(LVN_FIRST-4) Const LVN_BEGINLABELEDITA =(LVN_FIRST-5) Const LVN_BEGINLABELEDITW =(LVN_FIRST-75) Const LVN_ENDLABELEDITA =(LVN_FIRST-6) Const LVN_ENDLABELEDITW =(LVN_FIRST-76) Const LVN_COLUMNCLICK =(LVN_FIRST-8) Const LVN_BEGINDRAG =(LVN_FIRST-9) Const LVN_BEGINRDRAG =(LVN_FIRST-11) Const LVN_ODCACHEHINT =(LVN_FIRST-13) Const LVN_ODFINDITEMA =(LVN_FIRST-52) Const LVN_ODFINDITEMW =(LVN_FIRST-79) Const LVN_ITEMACTIVATE =(LVN_FIRST-14) Const LVN_ODSTATECHANGED =(LVN_FIRST-15) Const LVN_HOTTRACK =(LVN_FIRST-21) Const LVN_GETDISPINFOA =(LVN_FIRST-50) Const LVN_GETDISPINFOW =(LVN_FIRST-77) Const LVN_SETDISPINFOA =(LVN_FIRST-51) Const LVN_SETDISPINFOW =(LVN_FIRST-78) Const LVIF_DI_SETITEM =$1000 Const LVN_KEYDOWN =(LVN_FIRST-55) Const LVN_MARQUEEBEGIN =(LVN_FIRST-56) Const LVN_GETINFOTIPA =(LVN_FIRST-57) Const LVN_GETINFOTIPW =(LVN_FIRST-58) Const LVN_BEGINSCROLL =(LVN_FIRST-80) Const LVN_ENDSCROLL =(LVN_FIRST-81) Const CMB_MASKED =$02 Extern ""Win32"" Function ImageList_Create(cx,cy,flags,cInitial,cGrow) Function ImageList_AddMasked(himl,hbmImage,crMask) End Extern ",16371,True,3225.262691451372,median " // Copyright (c) 2017 Massachusetts Institute of Technology // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the ""Software""), to deal in the Software without // restriction, including without limitation the rights to use, copy, // modify, merge, publish, distribute, sublicense, and/or sell copies // of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS // BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. import Vector::*; import FIFO::*; import GetPut::*; import Types::*; import CCTypes::*; import LLCRqMshr::*; import CCPipe::*; import SelfInvLLPipe ::*; import FShow::*; import Fifos::*; import CacheUtils::*; import Performance::*; import LatencyTimer::*; import Cntrs::*; import ConfigReg::*; import RandomReplace::*; // we use an infoQ to serialize all req to memory // this also ensures that cache pipeline is never blocked // so we do not need to buffer mem resp that needs to refill cache // XXX we need to maintain the invariant that // at most 1 pRq sent to a child for an addr // and we have to wait for resp before sending anthoer one // In future, it would be hard to parallelize sendRqToC and pipelineResp // because sendRqToC must see updates to dirPend made in pipelineResp // or we simply stall sendRqToC // XXX DMA req are put in the same MSHR as child req // this ensures that child req always get a cache line to occupy after being sent to pipeline // DMA req are handled in the following way // (1) If it hits in LLC, then we can downgrade children and process it // (2) Otherwise, we req memory, XXX and req is viewed as Done // The dep successor is sent to retry instead of being swapped in, // because we don't have a cache line to occupy... // When the mem resp comes, we send DMA resp and DO NOT fill cache // XXX mem resp that refill cache are for child req, others that don't refill cache are for DMA req // XXX Directory should be I (instead of don't care) when cache state is invalid // naming rule: child req type names < dma type names export SelfInvLLBank(..); export SelfInvLLCRqStuck(..); export mkSelfInvLLBank; interface SelfInvLLBank#( numeric type lgBankNum, numeric type childNum, numeric type wayNum, numeric type indexSz, numeric type tagSz, numeric type cRqNum, // including DMA req type cRqIdT, type dmaRqIdT ); interface ParentCacheToChild#(cRqIdT, Bit#(TLog#(childNum))) to_child; interface DmaServer#(dmaRqIdT) dma; interface MemFifoClient#(LdMemRqId#(Bit#(TLog#(cRqNum))), void) to_mem; // detect deadlock: only in use when macro CHECK_DEADLOCK is defined interface Get#(SelfInvLLCRqStuck#(childNum, cRqIdT, dmaRqIdT)) cRqStuck; // performance method Action setPerfStatus(Bool stats); method Data getPerfData(LLCPerfType t); endinterface typedef struct { LLRqId#(cRqIdT, dmaRqIdT) id; Addr addr; Msi fromState; Msi toState; Bit#(TLog#(childNum)) child; LLCRqState state; Bool waitP; SelfInvDirPend#(Bit#(TLog#(childNum))) dirPend; } SelfInvLLCRqStuck#(numeric type childNum, type cRqIdT, type dmaRqIdT) deriving(Bits, Eq, FShow); typedef struct { cRqIdT cRqId; Msi toState; } LLRsInfo#(type cRqIdT) deriving(Bits, Eq, FShow); // to mem info typedef enum { Ld, // read only by child req or dma req DmaWr, // dma write only RepLd // first write replaced line then load new line (for child req) } ToMemType deriving(Bits, Eq, FShow); typedef struct { mshrIdxT mshrIdx; ToMemType t; } ToMemInfo#(type mshrIdxT) deriving(Bits, Eq, FShow); // enum for source of cRq typedef enum {Child, Dma} LLCRqSrc deriving(Bits, Eq, FShow); module mkSelfInvLLBank#( module#(LLCRqMshr#(cRqNum, wayT, tagT, SelfInvDirPend#(Bit#(TLog#(childNum))), cRqT)) mkLLMshr, module#(SelfInvLLPipe#(lgBankNum, childNum, wayNum, indexT, tagT, cRqIndexT)) mkLLPipeline )( SelfInvLLBank#(lgBankNum, childNum, wayNum, indexSz, tagSz, cRqNum, cRqIdT, dmaRqIdT) ) provisos( Alias#(childT, Bit#(TLog#(childNum))), Alias#(wayT, Bit#(TLog#(wayNum))), Alias#(dirT, SelfInvDir#(childT)), Alias#(dirPendT, SelfInvDirPend#(childT)), Alias#(indexT, Bit#(indexSz)), Alias#(tagT, Bit#(tagSz)), Alias#(cRqIndexT, Bit#(TLog#(cRqNum))), Alias#(cacheOwnerT, Maybe#(CRqOwner#(cRqIndexT))), Alias#(cacheInfoT, CacheInfo#(tagT, Msi, dirT, cacheOwnerT, void)), Alias#(ramDataT, RamData#(tagT, Msi, dirT, cacheOwnerT, void, Line)), Alias#(cRqFromCT, CRqMsg#(cRqIdT, childT)), Alias#(cRsFromCT, CRsMsg#(childT)), Alias#(pRqRsToCT, PRqRsMsg#(cRqIdT, childT)), Alias#(dmaRqT, DmaRq#(dmaRqIdT)), Alias#(dmaRsT, DmaRs#(dmaRqIdT)), Alias#(ldMemRqIdT, LdMemRqId#(cRqIndexT)), Alias#(memRsT, MemRsMsg#(ldMemRqIdT, void)), Alias#(toMemT, ToMemMsg#(ldMemRqIdT, void)), Alias#(toMemInfoT, ToMemInfo#(cRqIndexT)), Alias#(cRqT, LLRq#(cRqIdT, dmaRqIdT, childT)), Alias#(cRqSlotT, LLCRqSlot#(wayT, tagT, dirPendT)), // cRq MSHR slot Alias#(llCmdT, SelfInvLLCmd#(childT, cRqIndexT)), Alias#(pipeOutT, PipeOut#(wayT, tagT, Msi, dirT, cacheOwnerT, void, RandRepInfo, Line, llCmdT)), // requirements Bits#(cRqIdT, _cRqIdSz), Bits#(dmaRqIdT, _dmaRqIdSz), FShow#(cRqIdT), FShow#(dmaRqIdT), Add#(tagSz, a__, AddrSz), // make sure: cRqNum <= wayNum Add#(cRqNum, b__, wayNum) ); LLCRqMshr#(cRqNum, wayT, tagT, dirPendT, cRqT) cRqMshr <- mkLLMshr; SelfInvLLPipe#(lgBankNum, childNum, wayNum, indexT, tagT, cRqIndexT) pipeline <- mkLLPipeline; Fifo#(2, cRqFromCT) rqFromCQ <- mkCFFifo; Fifo#(2, cRsFromCT) rsFromCQ <- mkCFFifo; Fifo#(2, pRqRsToCT) toCQ <- mkCFFifo; Fifo#(2, dmaRqT) rqFromDmaQ <- mkCFFifo; Fifo#(2, dmaRsT) rsLdToDmaQ <- mkCFFifo; Fifo#(2, dmaRqIdT) rsStToDmaQ <- mkCFFifo; Fifo#(2, toMemT) toMQ <- mkCFFifo; Fifo#(2, memRsT) rsFromMQ <- mkCFFifo; // mshr index of load or write to memory, all mem accesses are ordered here FIFO#(toMemInfoT) toMInfoQ <- mkSizedFIFO(valueOf(cRqNum)); // mshr index of req that is waken up when replacement is done Fifo#(cRqNum, cRqIndexT) cRqRetryIndexQ <- mkCFFifo; // mshr index of upgrade resp to child Fifo#(cRqNum, LLRsInfo#(cRqIndexT)) rsToCIndexQ <- mkCFFifo; // mshr index of resp to dma (merge 3 FIFOs for each enq places) FIFO#(cRqIndexT) rsLdToDmaIndexQ <- mkSizedFIFO(valueof(cRqNum)); FIFO#(cRqIndexT) rsStToDmaIndexQ <- mkSizedFIFO(valueof(cRqNum)); FIFO#(cRqIndexT) rsLdToDmaIndexQ_mRsDeq <- mkFIFO; FIFO#(cRqIndexT) rsStToDmaIndexQ_sendToM <- mkFIFO; FIFO#(cRqIndexT) rsLdToDmaIndexQ_pipelineResp <- mkFIFO; FIFO#(cRqIndexT) rsStToDmaIndexQ_pipelineResp <- mkFIFO; `ifdef DEBUG_DMA // these FIFOs are enqueued when DMA req really takes effect // FIFOs has 0 cycle latency to match L1Bank resp latency Fifo#(1, dmaRqIdT) dmaWrMissQ <- mkBypassFifo; Fifo#(1, dmaRqIdT) dmaWrHitQ <- mkBypassFifo; Fifo#(1, dmaRqIdT) dmaRdMissQ <- mkBypassFifo; Fifo#(1, dmaRqIdT) dmaRdHitQ <- mkBypassFifo; `endif // performance `ifdef PERF_COUNT Reg#(Bool) doStats <- mkConfigReg(False); Count#(Data) dmaMemLdCnt <- mkCount(0); Count#(Data) dmaMemLdLat <- mkCount(0); Count#(Data) normalMemLdCnt <- mkCount(0); Count#(Data) normalMemLdLat <- mkCount(0); Count#(Data) mshrBlocks <- mkCount(0); Count#(Data) downRespCnt <- mkCount(0); Count#(Data) downRespDataCnt <- mkCount(0); Count#(Data) downReqCnt <- mkCount(0); Count#(Data) upRespCnt <- mkCount(0); Count#(Data) upRespDataCnt <- mkCount(0); Count#(Data) dmaLdReqCnt <- mkCount(0); Count#(Data) dmaStReqCnt <- mkCount(0); LatencyTimer#(cRqNum, 10) latTimer <- mkLatencyTimer; // max 1K cycle latency function Action incrMissCnt(cRqIndexT idx, Bool isDma); action let lat <- latTimer.done(idx); if(doStats) begin if(isDma) begin dmaMemLdCnt.incr(1); dmaMemLdLat.incr(zeroExtend(lat)); end else begin normalMemLdCnt.incr(1); normalMemLdLat.incr(zeroExtend(lat)); end end endaction endfunction `endif function tagT getTag(Addr a) = truncateLSB(a); function cRqIdT getIdFromC(LLRqId#(cRqIdT, dmaRqIdT) id); if(id matches tagged Child .i) begin return i; end else begin return ?; end endfunction function dmaRqIdT getIdFromDma(LLRqId#(cRqIdT, dmaRqIdT) id); if(id matches tagged Dma .i) begin return i; end else begin return ?; end endfunction function Bool isRqFromC(LLRqId#(cRqIdT, dmaRqIdT) id); return id matches tagged Child .i ? True : False; endfunction function Bool isRqFromDma(LLRqId#(cRqIdT, dmaRqIdT) id); return id matches tagged Dma .i ? True : False; endfunction // merge ld resp index to DMA FIFO rule mergeRsLdToDmaIndexQ_mRsDeq; let idx <- toGet(rsLdToDmaIndexQ_mRsDeq).get; rsLdToDmaIndexQ.enq(idx); endrule (* descending_urgency = ""mergeRsLdToDmaIndexQ_pipelineResp, mergeRsLdToDmaIndexQ_mRsDeq"" *) rule mergeRsLdToDmaIndexQ_pipelineResp; let idx <- toGet(rsLdToDmaIndexQ_pipelineResp).get; rsLdToDmaIndexQ.enq(idx); endrule // merge st resp index to DMA FIFO rule mergeRsStToDmaIndexQ_sendToM; let idx <- toGet(rsStToDmaIndexQ_sendToM).get; rsStToDmaIndexQ.enq(idx); endrule (* descending_urgency = ""mergeRsStToDmaIndexQ_pipelineResp, mergeRsStToDmaIndexQ_sendToM"" *) rule mergeRsStToDmaIndexQ_pipelineResp; let idx <- toGet(rsStToDmaIndexQ_pipelineResp).get; rsStToDmaIndexQ.enq(idx); endrule // send retrying cRq to pipeline rule cRqTransfer_retry(cRqRetryIndexQ.notEmpty); cRqRetryIndexQ.deq; cRqIndexT n = cRqRetryIndexQ.first; // XXX don't change MSHR entry to Init // later cRq to same addr needs to be appended after this one // send to pipeline cRqT req = cRqMshr.transfer.getRq(n); pipeline.send(CRq (SelfInvLLPipeCRqIn { addr: req.addr, mshrIdx: n })); $display(""%t LL %m cRqTransfer_retry: "", $time, fshow(n), "" ; "", fshow(req) ); endrule // round-robin for accepting new cRq from child and DMA Reg#(LLCRqSrc) priorNewCRqSrc <- mkReg(Child); // src with priority function Maybe#(LLCRqSrc) newCRqSrc; if(priorNewCRqSrc == Child && rqFromCQ.notEmpty) begin return Valid (Child); end else if(priorNewCRqSrc == Dma && rqFromDmaQ.notEmpty) begin return Valid (Dma); end else begin if(rqFromCQ.notEmpty) begin return Valid (Child); end else if(rqFromDmaQ.notEmpty) begin return Valid (Dma); end else begin return Invalid; end end endfunction function Action flipPriorNewCRqSrc; action priorNewCRqSrc <= priorNewCRqSrc == Dma ? Child : Dma; endaction endfunction // insert new cRq from child to MSHR and send to pipeline rule cRqTransfer_new_child(!cRqRetryIndexQ.notEmpty && newCRqSrc == Valid (Child)); rqFromCQ.deq; cRqFromCT r = rqFromCQ.first; cRqT cRq = LLRq { addr: r.addr, fromState: r.fromState, toState: r.toState, canUpToE: r.canUpToE, child: r.child, byteEn: ?, id: Child (r.id) }; // setup new MSHR entry cRqIndexT n <- cRqMshr.transfer.getEmptyEntryInit(cRq, Invalid); // send to pipeline pipeline.send(CRq (SelfInvLLPipeCRqIn { addr: cRq.addr, mshrIdx: n })); // change round robin flipPriorNewCRqSrc; $display(""%t LL %m cRqTransfer_new_child: "", $time, fshow(n), "" ; "", fshow(r), "" ; "", fshow(cRq) ); endrule `ifdef PERF_COUNT // perf stats: insert new cRq fails because of full MSHR rule cRqTransfer_new_child_block( !cRqRetryIndexQ.notEmpty && newCRqSrc == Valid (Child) && doStats ); cRqFromCT r = rqFromCQ.first; cRqT cRq = LLRq { addr: r.addr, fromState: r.fromState, toState: r.toState, canUpToE: r.canUpToE, child: r.child, byteEn: ?, id: Child (r.id) }; if(!cRqMshr.transfer.hasEmptyEntry(cRq)) begin mshrBlocks.incr(1); end endrule `endif // insert new cRq from DMA to MSHR and send to pipeline rule cRqTransfer_new_dma(!cRqRetryIndexQ.notEmpty && newCRqSrc == Valid (Dma)); rqFromDmaQ.deq; dmaRqT r = rqFromDmaQ.first; Bool write = r.byteEn != replicate(False); cRqT cRq = LLRq { addr: r.addr, fromState: I, toState: write ? M : S, // later on we use toState to distinguish DMA write vs. read canUpToE: False, // DMA should not go to E child: ?, byteEn: r.byteEn, id: Dma (r.id) }; // setup new MSHR entry and data cRqIndexT n <- cRqMshr.transfer.getEmptyEntryInit(cRq, write ? Valid (r.data) : Invalid); // send to pipeline pipeline.send(CRq (SelfInvLLPipeCRqIn { addr: cRq.addr, mshrIdx: n })); // change round robin flipPriorNewCRqSrc; $display(""%t LL %m cRqTransfer_new_dma: "", $time, fshow(n), "" ; "", fshow(r), "" ; "", fshow(cRq) ); `ifdef PERF_COUNT if(doStats) begin if(write) begin dmaStReqCnt.incr(1); end else begin dmaLdReqCnt.incr(1); end end `endif endrule `ifdef PERF_COUNT // perf stats: insert new cRq fails because of full MSHR rule cRqTransfer_new_dma_block( !cRqRetryIndexQ.notEmpty && newCRqSrc == Valid (Dma) && doStats ); dmaRqT r = rqFromDmaQ.first; Bool write = r.byteEn != replicate(False); cRqT cRq = LLRq { addr: r.addr, fromState: I, toState: write ? M : S, canUpToE: False, child: ?, byteEn: r.byteEn, id: Dma (r.id) }; if(!cRqMshr.transfer.hasEmptyEntry(cRq)) begin mshrBlocks.incr(1); end endrule `endif // send downgrade resp from child to pipeline rule cRsTransfer; rsFromCQ.deq; cRsFromCT cRs = rsFromCQ.first; pipeline.send(CRs (cRs)); $display(""%t LL %m cRsTransfer: "", $time, fshow(cRs)); `ifdef PERF_COUNT if(doStats) begin downRespCnt.incr(1); if(isValid(cRs.data)) begin downRespDataCnt.incr(1); end end `endif endrule // mem resp for child req, will refill cache, send it to pipeline (* descending_urgency = ""mRsTransfer, cRsTransfer, cRqTransfer_retry, cRqTransfer_new_child, cRqTransfer_new_dma"" *) `ifdef PERF_COUNT // stop mshr block stats when other higher priority req is being sent to // pipeline (* preempts = ""mRsTransfer, cRqTransfer_new_child_block"" *) (* preempts = ""mRsTransfer, cRqTransfer_new_dma_block"" *) (* preempts = ""cRsTransfer, cRqTransfer_new_child_block"" *) (* preempts = ""cRsTransfer, cRqTransfer_new_dma_block"" *) `endif rule mRsTransfer(rsFromMQ.first.id.refill); // get mem resp cRq index & data rsFromMQ.deq; memRsT mRs = rsFromMQ.first; cRqIndexT n = mRs.id.mshrIdx; Line respData = mRs.data; // get correspond cRq & slot cRqT cRq = cRqMshr.transfer.getRq(n); cRqSlotT cSlot = cRqMshr.transfer.getSlot(n); doAssert(isRqFromC(cRq.id), ""refill mem resp must be for child req""); // send to pipeline pipeline.send(MRs (SelfInvLLPipeMRsIn { addr: cRq.addr, toState: cRq.toState == M ? M : E, // set upgrade state data: respData, way: cSlot.way })); $display(""%t LL %m mRsTransfer: "", $time, fshow(mRs), "" ; "", fshow(cRq), "" ; "", fshow(cSlot), "" ; "" ); `ifdef PERF_COUNT // performance counter: normal miss lat and cnt incrMissCnt(n, False); `endif endrule // this mem resp is just for a DMA req, won't go into pipeline to refill cache rule mRsDeq_nonRefill(!rsFromMQ.first.id.refill); rsFromMQ.deq; memRsT mRs = rsFromMQ.first; $display(""%t LL %m mRsDeq_nonRefill: "", $time, fshow(mRs)); // save data into cRq mshr & send to DMA resp IndexQ cRqMshr.mRsDeq.setData(mRs.id.mshrIdx, Valid (mRs.data)); rsLdToDmaIndexQ_mRsDeq.enq(mRs.id.mshrIdx); `ifdef PERF_COUNT // performance counter: dma miss lat and cnt incrMissCnt(mRs.id.mshrIdx, True); `endif endrule // send rd/wr to mem // when sending to mem, we may first write back replaced line then load new line // this reg records when we should to the load new line for this case Reg#(Bool) doLdAfterReplace <- mkReg(False); rule sendToM; ToMemType t = toMInfoQ.first.t; cRqIndexT n = toMInfoQ.first.mshrIdx; cRqT cRq = cRqMshr.sendToM.getRq(n); cRqSlotT cSlot = cRqMshr.sendToM.getSlot(n); Maybe#(Line) data = cRqMshr.sendToM.getData(n); $display(""%t LL %m sendToM: "", $time, fshow(toMInfoQ.first), "" ; "", fshow(cRq), "" ; "", fshow(cSlot), "" ; "", fshow(data), "" ; "", fshow(doLdAfterReplace) ); // take actions according to type if(t == Ld) begin // only load mem: can be child or dma req toMemT msg = Ld (LdMemRq { addr: cRq.addr, child: ?, id: LdMemRqId { // child rq needs refill cache line, dma rq does not refill: isRqFromC(cRq.id), mshrIdx: n } }); toMQ.enq(msg); toMInfoQ.deq; // deq info $display(""%t LL %m sendToM: load only: "", $time, fshow(msg)); doAssert(!isValid(data), ""cannot have data""); doAssert(!doLdAfterReplace, ""doLdAfterReplace should be false""); `ifdef PERF_COUNT // performance counter: start miss timer latTimer.start(n); `endif `ifdef DEBUG_DMA if(cRq.id matches tagged Dma .dmaId) begin dmaRdMissQ.enq(dmaId); // DMA read takes effect end `endif end else if(t == DmaWr) begin // only write mem: must be dma req toMemT msg = Wb (WbMemRs { addr: cRq.addr, byteEn: cRq.byteEn, data: validValue(data) }); toMQ.enq(msg); toMInfoQ.deq; // deq info // dma write can be resp (i.e. mshr entry can be released) rsStToDmaIndexQ_sendToM.enq(n); $display(""%t LL %m sendToM: dma write: "", $time, fshow(msg)); doAssert(isRqFromDma(cRq.id), ""must be dma write""); doAssert(isValid(data), ""dma write must have data""); doAssert(!doLdAfterReplace, ""doLdAfterReplace should be false""); `ifdef DEBUG_DMA dmaWrMissQ.enq(getIdFromDma(cRq.id)); // DMA write takes effect `endif end else if(t == RepLd) begin // write back replaced line then load, must be child req if(doLdAfterReplace) begin // do load part toMemT msg = Ld (LdMemRq { addr: cRq.addr, child: ?, id: LdMemRqId { refill: True, mshrIdx: n } }); toMQ.enq(msg); // whole thing is done, reset bit and deq info toMInfoQ.deq; doLdAfterReplace <= False; $display(""%t LL %m sendToM: rep then ld: ld: "", $time, fshow(msg)); `ifdef PERF_COUNT // performance counter: start miss timer latTimer.start(n); `endif end else begin // do write back part toMemT msg = Wb (WbMemRs { addr: {cSlot.repTag, truncate(cRq.addr)}, byteEn: replicate(True), data: validValue(data) }); toMQ.enq(msg); // don't deq info, do ld next time doLdAfterReplace <= True; $display(""%t LL %m sendToM: rep then ld: rep: "", $time, fshow(msg)); end doAssert(isRqFromC(cRq.id), ""must be child req""); doAssert(isValid(data), ""replace must have data""); end else begin doAssert(False, ""unknown to mem type""); end endrule // send DMA resp rule sendRsLdToDma; rsLdToDmaIndexQ.deq; cRqIndexT n = rsLdToDmaIndexQ.first; cRqT cRq = cRqMshr.sendRsToDmaC.getRq(n); Maybe#(Line) data = cRqMshr.sendRsToDmaC.getData(n); $display(""%t LL %m sendRsToDma: Ld: "", $time, fshow(n), "" ; "", fshow(cRq), "" ; "", fshow(data) ); doAssert(isValid(data), ""dma read req always has valid data""); // send DMA resp doAssert(isRqFromDma(cRq.id), ""cRq should be DMA req""); doAssert(cRq.byteEn == replicate(False) && cRq.toState == S, ""cRq should be DMA read"" ); dmaRqIdT dmaId = getIdFromDma(cRq.id); rsLdToDmaQ.enq(DmaRs { data: validValue(data), id: dmaId }); // release MSHR entry cRqMshr.sendRsToDmaC.releaseEntry(n); endrule rule sendRsStToDma; rsStToDmaIndexQ.deq; cRqIndexT n = rsStToDmaIndexQ.first; cRqT cRq = cRqMshr.sendRsToDmaC.getRq(n); $display(""%t LL %m sendRsToDma: St: "", $time, fshow(n), "" ; "", fshow(cRq) ); // send DMA resp doAssert(isRqFromDma(cRq.id), ""cRq should be DMA req""); doAssert(cRq.byteEn != replicate(False) && cRq.toState == M, ""cRq should be DMA write"" ); dmaRqIdT dmaId = getIdFromDma(cRq.id); rsStToDmaQ.enq(dmaId); // release MSHR entry cRqMshr.sendRsToDmaC.releaseEntry(n); endrule // send upgrade resp to child rule sendRsToC(rsToCIndexQ.notEmpty); // send upgrade resp to child rsToCIndexQ.deq; cRqIndexT n = rsToCIndexQ.first.cRqId; Msi toState = rsToCIndexQ.first.toState; cRqT cRq = cRqMshr.sendRsToDmaC.getRq(n); Maybe#(Line) rsData = cRqMshr.sendRsToDmaC.getData(n); $display(""%t LL %m sendRsToC: "", $time, fshow(n), "" ; "", fshow(cRq), "" ; "", fshow(rsData), "" ; "", fshow(toState) ); // send resp to child doAssert(isRqFromC(cRq.id), ""cRq should be child req""); cRqIdT cRqId = getIdFromC(cRq.id); toCQ.enq(PRs (PRsMsg { addr: cRq.addr, toState: toState, // we may upgrade to E for req S, don't use toState in cRq child: cRq.child, data: rsData, id: cRqId })); // release MSHR entry cRqMshr.sendRsToDmaC.releaseEntry(n); `ifdef PERF_COUNT if(doStats) begin upRespCnt.incr(1); if(isValid(rsData)) begin upRespDataCnt.incr(1); end end `endif endrule // send downgrade req to child // round robin select cRq to downgrade child // but downgrade must wait for all upgrade resp Reg#(cRqIndexT) whichCRq <- mkReg(0); // we don't perform sending downgrade to child for a cRq processing by pipelineResp_cRs // otherwise atomicity issue may arise // for safety, we check cRq processed by all pipelineResp_xxx rules // this won't create unnecessary stalls // (because the cRq by pipelineResp won't match the one chosen for child downgrade) function Bool notPipelineResp(cRqIndexT n); if(pipeline.notEmpty) begin // use unguarded version for pipeline.first // (if use guarded version, compiler must lift guard correctly) llCmdT cmd = pipeline.unguard_first.cmd; cacheOwnerT owner = pipeline.unguard_first.ram.info.owner; Bool ownerMatch = isValid(owner) ? fromMaybe(?, owner).mshrIdx == n : False; return (case(cmd) matches tagged LLCRq .m: return m != n; tagged LLMRs: return !ownerMatch; tagged LLCRs .c: return !ownerMatch; default: return True; endcase); end else begin return True; end endfunction rule sendRqToC(!rsToCIndexQ.notEmpty); Maybe#(cRqIndexT) cRqNeedDown = cRqMshr.sendRqToC.searchNeedRqChild(Valid (whichCRq)); // XXX must add this into guard // otherwise this rule will block pipelineResp rule from firing forever check(isValid(cRqNeedDown)); cRqIndexT n = fromMaybe(?, cRqNeedDown); // XXX stall if cRq n is processed in pipelineResp check(notPipelineResp(n)); cRqT cRq = cRqMshr.sendRqToC.getRq(n); cRqSlotT cSlot = cRqMshr.sendRqToC.getSlot(n); LLCRqState cState = cRqMshr.sendRqToC.getState(n); doAssert(cState == WaitSt || cState == WaitOldTag, ""only WaitSt and WaitOldTag needs req child"" ); // find the child to downgrade childT child = ?; if(cSlot.dirPend matches tagged ToSend .c) begin child = c; end else begin doAssert(False, ""should need to downgrade""); end // send downgrade req: addr depends on state // either be cRq addr or replacing addr // we always downgrade to S Addr rqAddr = cState == WaitSt ? cRq.addr : {cSlot.repTag, truncate(cRq.addr)}; pRqRsToCT req = PRq (PRqMsg { addr: rqAddr, toState: S, child: child }); toCQ.enq(req); // change dirPend cRqMshr.sendRqToC.setSlot(n, LLCRqSlot { // keep cState the same way: cSlot.way, repTag: cSlot.repTag, waitP: cSlot.waitP, dirPend: Waiting (child) }); $display(""%t LL %m sendRqToC: "", $time, fshow(n), "" ; "", fshow(cRq), "" ; "", fshow(cSlot), "" ; "", fshow(cState), "" ; "", fshow(req) ); // change round-robin whichCRq <= whichCRq == fromInteger(valueOf(cRqNum) - 1) ? 0 : whichCRq + 1; `ifdef PERF_COUNT if(doStats) begin downReqCnt.incr(1); end `endif endrule // Final stage of pipeline: process all kinds of msg pipeOutT pipeOut = pipeline.first; ramDataT ram = pipeOut.ram; // select getCSlot, getRepSucc from cRqMshr cRqIndexT pipeOutCRqIdx = (case(pipeOut.cmd) matches tagged LLCRq .n: return n; default: return ram.info.owner matches tagged Valid .cOwner ? cOwner.mshrIdx : 0; // LLMRs LLCRs endcase); cRqSlotT pipeOutCSlot = cRqMshr.pipelineResp.getSlot(pipeOutCRqIdx); Maybe#(cRqIndexT) pipeOutRepSucc = cRqMshr.pipelineResp.getRepSucc(pipeOutCRqIdx); Maybe#(cRqIndexT) pipeOutAddrSucc = cRqMshr.pipelineResp.getAddrSucc(pipeOutCRqIdx); LLCRqState pipeOutCState = cRqMshr.pipelineResp.getState(pipeOutCRqIdx); cRqT pipeOutCRq = cRqMshr.pipelineResp.getRq(pipeOutCRqIdx); // function to process cRq hit (MSHR slot may have garbage) function Action cRqFromCHit(cRqIndexT n, cRqT cRq); action $display(""%t LL %m pipelineResp: cRq from child Hit func: "", $time, fshow(n), "" ; "", fshow(cRq) ); doAssert(n == pipeOutCRqIdx, ""must match pipe out cRq idx""); doAssert(isRqFromC(cRq.id), ""should be cRq from child""); doAssert(ram.info.tag == getTag(cRq.addr) && ram.info.cs > I, // this function is called by mRs, cRq, cRs // tag should match even for mRs, because // tag has been written into cache before sending req to parent (""cRqHit but tag or cs incorrect"") ); // decide upgrade state. Since we don't track S copies, we can't give E // for a req to S. Msi toState = cRq.toState; // update slot, data & send to indexQ // decide data validity using dir (which is more up to date than fromState) rsToCIndexQ.enq(LLRsInfo { cRqId: n, toState: toState }); cRqMshr.pipelineResp.setStateSlot(n, Done, ?); // we no longer need slot info cRqMshr.pipelineResp.setData(n, Valid (ram.line)); // always resp with data // update child dir dirT newDir = ram.info.dir; if(toState >= E) begin newDir.exChild = cRq.child; newDir.state = toState; end else begin doAssert(newDir.state == I, ""should not have exclusive child""); end // update cs (may have E -> M) Msi newCs = ram.info.cs; if(toState == M) begin newCs = M; end // deq pipeline or swap in successor Maybe#(cRqIndexT) succ = pipeOutAddrSucc; pipeline.deqWrite(succ, RamData { info: CacheInfo { tag: getTag(cRq.addr), // should be the same as original tag cs: newCs, dir: newDir, owner: (case(succ) matches // pass owner to successor tagged Valid .m: return Valid (CRqOwner { mshrIdx: m, replacing: False // succesor cannot replace }); default: return Invalid; endcase), other: ? }, line: ram.line // use line in ram }, True); // hit, so update rep info endaction endfunction // function to process DMA req hit (MSHR slot may have garbage) function Action cRqFromDmaHit(cRqIndexT n, cRqT cRq); action $display(""%t LL %m pipelineResp: cRq from dma Hit func: "", $time, fshow(n), "" ; "", fshow(cRq) ); doAssert(n == pipeOutCRqIdx, ""must match pipe out cRq idx""); doAssert(isRqFromDma(cRq.id), ""should be cRq from dma""); doAssert(ram.info.tag == getTag(cRq.addr) && ram.info.cs > I, ""cRqHit but tag or cs incorrect"" ); doAssert((cRq.byteEn != replicate(False)) == (cRq.toState == M), ""toState should match byteEn""); // update cs (may have E -> M) Msi newCs = ram.info.cs; if(cRq.toState == M) begin newCs = M; end // update cache line Maybe#(Line) wrData = cRqMshr.pipelineResp.getData(n); doAssert(isValid(wrData) == (cRq.byteEn != replicate(False)), ""dma write should carry valid data"" ); Line newLine = getUpdatedLine(ram.line, cRq.byteEn, validValue(wrData)); // deq pipeline or swap in successor Maybe#(cRqIndexT) succ = pipeOutAddrSucc; pipeline.deqWrite(succ, RamData { info: CacheInfo { tag: getTag(cRq.addr), // should be the same as original tag cs: newCs, dir: ram.info.dir, // dir does not change owner: (case(succ) matches // pass owner to successor tagged Valid .m: return Valid (CRqOwner { mshrIdx: m, replacing: False // succesor cannot replace }); default: return Invalid; endcase), other: ? }, line: newLine // use new line }, True); // hit, so update rep info // update slot, data & send to indexQ cRqMshr.pipelineResp.setStateSlot(n, Done, ?); // we no longer need slot info cRqMshr.pipelineResp.setData(n, Valid (ram.line)); // save the orig cache line if(cRq.toState == M) begin rsStToDmaIndexQ_pipelineResp.enq(n); end else begin rsLdToDmaIndexQ_pipelineResp.enq(n); end `ifdef DEBUG_DMA // DMA req takes effect dmaRqIdT dmaId = getIdFromDma(cRq.id); if(cRq.toState == M) begin dmaWrHitQ.enq(dmaId); end else begin dmaRdHitQ.enq(dmaId); end `endif endaction endfunction // function to directly evict a cache line by a cRq from child (replacement) function Action cRqFromCEvict(cRqIndexT n, cRqT cRq, Maybe#(cRqIndexT) repSucc); action doAssert(isRqFromC(cRq.id), ""only cRq from child can evict a line""); doAssert(ram.info.dir.state == I && ram.info.cs > I, ""only evict valid line which has no children"" ); // write back (only when line is M, otherwise silent drop) // and req memory for new data (because cs is I now) Bool needWB = ram.info.cs == M; toMInfoQ.enq(ToMemInfo{ mshrIdx: n, t: needWB ? RepLd : Ld }); // update MSHR cRqMshr.pipelineResp.setStateSlot(n, WaitSt, LLCRqSlot { way: pipeOut.way, // use way from pipeline repTag: ram.info.tag, // record old tag for replacement to mem waitP: True, // waiting for mem resp dirPend: Invalid // no exclusive child }); cRqMshr.pipelineResp.setData(n, needWB ? Valid (ram.line) : Invalid); // replacement needs data // wake up successor which depends on this replacement if(repSucc matches tagged Valid .m) begin cRqRetryIndexQ.enq(m); end // deq pipe & change RAM pipeline.deqWrite(Invalid, RamData { info: CacheInfo { tag: getTag(cRq.addr), // set to new tag (old tag is replaced) cs: I, dir: SelfInvDir {exChild: ?, state: I}, owner: Valid (CRqOwner { mshrIdx: n, // owner is current cRq replacing: False // replacement is done right now }), other: ? }, line: ? // data is no longer used }, False); endaction endfunction // handle cRq rule pipelineResp_cRq(pipeOut.cmd matches tagged LLCRq .n); $display(""%t LL %m pipelineResp: "", $time, fshow(pipeOut)); // cs and dir in ram have been merged with modification caused by mRs/cRs cmd cRqT cRq = pipeOutCRq; $display(""%t LL %m pipelineResp: cRq: "", $time, fshow(n), "" ; "", fshow(cRq)); // find end of dependency chain Maybe#(cRqIndexT) cRqEOC = cRqMshr.pipelineResp.searchEndOfChain(cRq.addr); // function to check whether children needs downgrade for req from child (miss no replace) function dirPendT getDirPendNonCompatForChild; if(ram.info.dir.state >= E) begin if(cRq.child == ram.info.dir.exChild) begin return Waiting (ram.info.dir.exChild); end else begin return ToSend (ram.info.dir.exChild); end end else begin return Invalid; end endfunction // function to check whether children needs downgrade for DMA req (miss by children state) function dirPendT getDirPendNonCompatForDma; if(ram.info.dir.state >= E) begin return ToSend (ram.info.dir.exChild); end else begin return Invalid; end endfunction // function to check whether children needs downgrade (miss with replace) function dirPendT getDirPendReplace; if(ram.info.dir.state >= E) begin return ToSend (ram.info.dir.exChild); end else begin return Invalid; end endfunction // function to process cRq from child miss without replacement (MSHR slot may have garbage) function Action cRqFromCMissNoReplacement(dirPendT dirPend); action doAssert(isRqFromC(cRq.id), ""should be cRq from child""); // it is impossible in LLC to have slot.waitP == True in this function // because there is no pRq in LLC to interrupt a cRq cRqSlotT cSlot = pipeOutCSlot; doAssert(!cSlot.waitP, ""waitP must be false""); // in LLC, we req memory only when cur cs is I if(ram.info.cs == I) begin toMInfoQ.enq(ToMemInfo{ mshrIdx: n, t: Ld }); doAssert(ram.info.dir.state == I, ""dir should not have exclusive child""); end // update mshr (data field is irrelevant, should be already invalid) cRqMshr.pipelineResp.setStateSlot(n, WaitSt, LLCRqSlot { way: pipeOut.way, // use way from pipeline waitP: ram.info.cs == I, repTag: ?, // no replacement dirPend: dirPend }); // deq pipeline & set owner, tag pipeline.deqWrite(Invalid, RamData { info: CacheInfo { tag: getTag(cRq.addr), // tag may be garbage if cs == I cs: ram.info.cs, dir: ram.info.dir, owner: Valid (CRqOwner {mshrIdx: n, replacing: False}), // owner is req itself other: ? }, line: ram.line }, False); endaction endfunction // function to process cRq from dma miss by children states (MSHR slot may have garbage) function Action cRqFromDmaMissByChildren(dirPendT dirPend); action doAssert(isRqFromDma(cRq.id), ""should be cRq from dma""); doAssert(ram.info.tag == getTag(cRq.addr) && ram.info.cs > I, ""tag match and cs > I"" ); // it is impossible in LLC to have slot.waitP == True in this function // because there is no pRq in LLC to interrupt a cRq cRqSlotT cSlot = pipeOutCSlot; doAssert(!cSlot.waitP, ""waitP must be false""); // update mshr cRqMshr.pipelineResp.setStateSlot(n, WaitSt, LLCRqSlot { way: pipeOut.way, // use way from pipeline waitP: False, repTag: ?, // no replacement dirPend: dirPend }); // deq pipeline & set owner, tag pipeline.deqWrite(Invalid, RamData { info: CacheInfo { tag: getTag(cRq.addr), cs: ram.info.cs, dir: ram.info.dir, owner: Valid (CRqOwner {mshrIdx: n, replacing: False}), // owner is req itself other: ? }, line: ram.line }, False); endaction endfunction // function to do replacement for cRq from child function Action cRqFromCReplacement(dirPendT dirPend); action doAssert(isRqFromC(cRq.id), ""should be cRq from child""); if(dirPend == Invalid) begin // directly evict the line // this cRq cannot have repSucc, since it has not occupied the line Maybe#(cRqIndexT) repSucc = pipeOutRepSucc; doAssert(!isValid(repSucc), ""cannot have rep succ""); cRqFromCEvict(n, cRq, Invalid); end else begin // wait child to downgrade pipeline.deqWrite(Invalid, RamData { info: CacheInfo { tag: ram.info.tag, cs: ram.info.cs, dir: ram.info.dir, owner: Valid (CRqOwner { mshrIdx: n, replacing: True // replacement is ongoing }), other: ? }, line: ram.line // keep data the same }, False); cRqMshr.pipelineResp.setStateSlot(n, WaitOldTag, LLCRqSlot { way: pipeOut.way, repTag: ram.info.tag, // record tag for downgrading children waitP: False, dirPend: dirPend }); end endaction endfunction // function to set cRq to Depend, and make no further change to cache function Action cRqSetDepNoCacheChange; action cRqMshr.pipelineResp.setStateSlot(n, Depend, getLLCRqSlotInitVal(getSelfInvDirPendInitVal)); pipeline.deqWrite(Invalid, pipeOut.ram, False); endaction endfunction if(ram.info.owner matches tagged Valid .cOwner) begin if(cOwner.mshrIdx != n) begin // owner is another cRq, so must just go through tag match LLCRqState cState = pipeOutCState; doAssert(cState == Init, ""owner is other, must first time go through tag match""); // tag match must be hit (because replacement algo won't give a way with owner) doAssert(ram.info.cs > I && ram.info.tag == getTag(cRq.addr), (""cRq should hit in tag match"") ); // could be two cases: // 1. hit on same addr req // 2. hit one cache line replaced by another req to different addr // even in 2nd case, we may have existing req to same addr // so first check same addr dependency if(cRqEOC matches tagged Valid .m) begin // add to same addr dependency cRqMshr.pipelineResp.setAddrSucc(m, Valid (n)); cRqSetDepNoCacheChange; $display(""%t LL %m pipelineResp: cRq: own by other cRq, same addr dep: "", $time, fshow(cOwner), "" ; "", fshow(cRqEOC) ); end else begin // must be hitting on a line being replaced // add to rep dependency cRqMshr.pipelineResp.setRepSucc(cOwner.mshrIdx, Valid (n)); cRqSetDepNoCacheChange; $display(""%t LL %m pipelineResp: cRq: own by other cRq, rep dep: "", $time, fshow(cOwner) ); doAssert(cOwner.replacing, ""line must be replacing""); end end else begin // owner is myself, so must be swapped in LLCRqState cState = pipeOutCState; doAssert(cState == Depend, ""owner is myself, must be swapped in""); // tag should match, since always swapped in by cRq (which occupies the line and completes) // so cache state must be > I doAssert(ram.info.tag == getTag(cRq.addr) && ram.info.cs > I, ""cRq swapped in, tag must match, cs > I"" ); // since cache state must > I, there is no replacement or req to mem (LLC non-I is hit) // just check whether children cache are compatible if(cRq.id matches tagged Child ._i) begin // req from child, get dir pend dirPendT dirPend = getDirPendNonCompatForChild; if(dirPend == Invalid) begin $display(""%t LL %m pipelineResp: cRq from child: own by itself, hit"", $time); cRqFromCHit(n, cRq); end else begin $display(""%t LL %m pipelineResp: cRq from child: own by itself, miss no replace: "", $time, fshow(dirPend) ); cRqFromCMissNoReplacement(dirPend); end end else begin // req from DMA, get dir pend dirPendT dirPend = getDirPendNonCompatForDma; if(dirPend == Invalid) begin $display(""%t LL %m pipelineResp: cRq from dma: own by itself, hit"", $time); cRqFromDmaHit(n, cRq); end else begin $display(""%t LL %m pipelineResp: cRq from dma: own by itself, miss by children: "", $time); cRqFromDmaMissByChildren(dirPend); end end end end else begin // cache has no owner, cRq must just go through tag match // here are two cases: // 1. cRq in Init state, first time go through tag match // 2. cRq in Depend state (due to rep dep, or addr dep on DMA req), waken up when replacement or DMA req is done LLCRqState cState = pipeOutCState; // only check for cRqEOC to append to dependency chain when firt time go through tag match if(cRqEOC matches tagged Valid .m &&& cState == Init) begin $display(""%t LL %m pipelineResp: cRq: no owner, depend on cRq "", $time, fshow(cState), "" ; "", fshow(cRqEOC) ); cRqMshr.pipelineResp.setAddrSucc(m, Valid (n)); cRqSetDepNoCacheChange; end else begin // normal processing if(cRq.id matches tagged Child ._i) begin // cRq from child if(ram.info.cs == I || ram.info.tag == getTag(cRq.addr)) begin // No Replacement necessary, check dir (dir is not garbage even when cs is I) dirPendT dirPend = getDirPendNonCompatForChild; if(ram.info.cs > I && dirPend == Invalid) begin $display(""%t LL %m pipelineResp: cRq: no owner, hit"", $time); cRqFromCHit(n, cRq); end else begin // line valid but miss by children, OR occupy an // invalid line (dirPend must be Invalid in this // case) $display(""%t LL %m pipelineResp: cRq: no owner, miss no replace: "", $time, fshow(dirPend) ); cRqFromCMissNoReplacement(dirPend); end end else begin // need replacement, check dir dirPendT dirPend = getDirPendReplace; $display(""%t LL %m pipelineResp: cRq: no owner, replace: "", $time, fshow(dirPend) ); cRqFromCReplacement(dirPend); end end else begin dirPendT dirPend = getDirPendNonCompatForDma; // cRq from DMA if(ram.info.cs > I && ram.info.tag == getTag(cRq.addr)) begin // hit in LLC, check dir if(dirPend == Invalid) begin cRqFromDmaHit(n, cRq); end else begin cRqFromDmaMissByChildren(dirPend); end end else begin // miss in LLC, so req mem and req is done! $display(""%t LL %m pipelineResp: cRq from dma: no owner, miss req mem"", $time); toMInfoQ.enq(ToMemInfo { mshrIdx: n, t: cRq.toState == M ? DmaWr : Ld }); // set req to Done & deq pipeline (no change to ram) cRqMshr.pipelineResp.setStateSlot(n, Done, ?); pipeline.deqWrite(Invalid, pipeOut.ram, False); // retry successor (cannot swap in since we don't have a line to occupy) Maybe#(cRqIndexT) addrSucc = pipeOutAddrSucc; if(addrSucc matches tagged Valid .m) begin cRqRetryIndexQ.enq(m); end // since we haven't occupied any line, we cannot have repSucc) Maybe#(cRqIndexT) repSucc = pipeOutRepSucc; doAssert(!isValid(repSucc), ""should not have any rep succ""); end end end end endrule // handle mRs rule pipelineResp_mRs(pipeOut.cmd == LLMRs); // get cache owner doAssert(isValid(ram.info.owner), ""mRs owner must match some cRq""); CRqOwner#(cRqIndexT) cOwner = validValue(ram.info.owner); // process cRq cRqT cRq = pipeOutCRq; cRqSlotT cSlot = pipeOutCSlot; $display(""%t LL %m pipelineResp: mRs: "", $time, fshow(cOwner), "" ; "", fshow(cRq), "" ; "", fshow(cSlot) ); doAssert(isRqFromC(cRq.id), ""only child req gets mem resp that refills the cache""); doAssert(ram.info.cs >= cRq.toState && ram.info.tag == getTag(cRq.addr), ""mRs must be tag match & have enough cs"" ); doAssert(ram.info.dir.state == I, ""no exclusive child""); doAssert(!cOwner.replacing, ""mRs cannot hit on replacing line""); doAssert(cSlot.way == pipeOut.way, ""mRs should hit on way in MSHR slot""); doAssert(cSlot.waitP, ""mRs should match cRq which is waiting for it""); doAssert(cSlot.dirPend == Invalid, ""cRq that needs mRs should not have children to wait for"" ); // cRq hits since all children are I cRqFromCHit(cOwner.mshrIdx, cRq); endrule // handle cRs rule pipelineResp_cRs(pipeOut.cmd matches tagged LLCRs .child); // cRs from child // XXX CCPipe has already updated ram.info and ram.line properly, // particularly for E->M case. $display(""%t LL %m pipelineResp: cRs: "", $time, fshow(child)); // cs should be not I doAssert(ram.info.cs > I, ""cRs should hit on a line""); // There cannot be exclusive child after downgrade doAssert(ram.info.dir.state == I, ""no exclusive child""); // check owner of the line if(ram.info.owner matches tagged Valid .cOwner) begin cRqT cRq = pipeOutCRq; cRqSlotT cSlot = pipeOutCSlot; LLCRqState cState = pipeOutCState; $display(""%t LL %m pipelineResp: cRs: match cRq: "", $time, fshow(cOwner), "" ; "", fshow(cRq), "" ; "", fshow(cSlot), "" ; "", fshow(cState) ); doAssert(cSlot.way == pipeOut.way, ""cRs way should match MSHR slot""); // check replacing bit if(cOwner.replacing) begin // replacment: only for req from child doAssert(isRqFromC(cRq.id), ""only child req do replace""); doAssert(cState == WaitOldTag, ""must be waiting for old tag""); doAssert(!cSlot.waitP, ""cannot wait for parent while replacing""); doAssert(cSlot.repTag == ram.info.tag, ""should match replacing tag""); // Since there is no exclusive child after downgrade, dirPend // must become invalid. So replacement is done, evict line Maybe#(cRqIndexT) repSucc = pipeOutRepSucc; cRqFromCEvict(cOwner.mshrIdx, cRq, repSucc); $display(""%t LL %m pipelineResp: cRs: match cRq: replace done: "", $time, fshow(repSucc) ); end else begin // child downgrade, not replace: req can be from child or dma doAssert(cState == WaitSt, ""must be waiting for child/parent state""); doAssert(ram.info.tag == getTag(cRq.addr), ""cRq tag should match cRs hit line""); doAssert(!cSlot.waitP, ""cs > I, so cannot wait for memory""); // Since there is no exclusive child after downgrade, dirPend // must become invalid, and cRq hits $display(""%t LL %m pipelineResp: cRs: match cRq: hit"", $time); if(cRq.id matches tagged Child ._i) begin cRqFromCHit(cOwner.mshrIdx, cRq); end else begin cRqFromDmaHit(cOwner.mshrIdx, cRq); end end end else begin // does not match any cRq, so just deq pipe & write ram $display(""%t LL %m pipelineResp: cRs: no owner"", $time); pipeline.deqWrite(Invalid, ram, False); end endrule interface ParentCacheToChild to_child; interface rqFromC = toFifoEnq(rqFromCQ); interface rsFromC = toFifoEnq(rsFromCQ); interface toC = toFifoDeq(toCQ); endinterface interface DmaServer dma; interface memReq = toFifoEnq(rqFromDmaQ); interface respLd = toFifoDeq(rsLdToDmaQ); interface respSt = toFifoDeq(rsStToDmaQ); `ifdef DEBUG_DMA interface wrMissResp = toGet(dmaWrMissQ); interface wrHitResp = toGet(dmaWrHitQ); interface rdMissResp = toGet(dmaRdMissQ); interface rdHitResp = toGet(dmaRdHitQ); `endif endinterface interface MemFifoClient to_mem; interface toM = toFifoDeq(toMQ); interface rsFromM = toFifoEnq(rsFromMQ); endinterface interface Get cRqStuck; method ActionValue#(SelfInvLLCRqStuck#(childNum, cRqIdT, dmaRqIdT)) get; let s <- cRqMshr.stuck.get; return SelfInvLLCRqStuck { id: s.req.id, addr: s.req.addr, fromState: s.req.fromState, toState: s.req.toState, child: s.req.child, state: s.state, waitP: s.waitP, dirPend: s.dirPend }; endmethod endinterface method Action setPerfStatus(Bool stats); `ifdef PERF_COUNT doStats <= stats; `else noAction; `endif endmethod method Data getPerfData(LLCPerfType t); return (case(t) `ifdef PERF_COUNT LLCDmaMemLdCnt: dmaMemLdCnt; LLCDmaMemLdLat: dmaMemLdLat; LLCNormalMemLdCnt: normalMemLdCnt; LLCNormalMemLdLat: normalMemLdLat; LLCMshrBlockCycles: mshrBlocks; LLCDownRespCnt: downRespCnt; LLCDownRespDataCnt: downRespDataCnt; LLCDownReqCnt: downReqCnt; LLCUpRespCnt: upRespCnt; LLCUpRespDataCnt: upRespDataCnt; LLCDmaLdReqCnt: dmaLdReqCnt; LLCDmaStReqCnt: dmaStReqCnt; `endif default: 0; endcase); endmethod endmodule // Scheduling notes // cRqTransfer_retry: read req // cRqTransfer_new: init(write) req/state/slot, reset addrSucc/repSucc, set data // cRsTransfer: - // mRsDeq: write data // mRsTransfer: read req/slot/data // sendToM: read req/slot/data // sendRsToDma: read req/data, release entry (write state) // sendRsToC: read req/data, release entry (write state) // sendRqToC: // -- associative search: read state/needReqChildVec(slot.dirPend) // -- for selected cRq: read req/state/slot, write slot.dirPend // -- not affected by cRqTransfer_new // (state: Empty->Init, always not hit in search) // -- not affected by sendRsToC/sendRsToDma // (state: Done->Empty, always not hit in search) // -- may be affected by pipelineResp_cRs // so don't fire when pipelineResp operates on the same cRq // above rules operate on completely different cRq // pipelineResp_cRq: // -- associative search for EOC: read state/req/addrSucc // -- not affected by cRqTransfer_new // (state: Empty->Init, always not hit in search) // -- not affected by sendRsToC/sendRsToDma // (state: Done->Empty, always not hit in search) // -- not affected by sendRqToC (slot is not read in search) // -- for the processing cRq: read req/state/data/slot/addrSucc/repSucc, write state/slot/data // -- this cRq is different from that in cRqTransfer_new // -- this cRq is different from that in mRsDeq_refill // (if need mRs, then LLC is I, nothing other than mRs can wakeup cRq) // -- this cRq is different from that in mRsDeq_nonRefill // (when mRs for DMA req comes, it is already in Done state) // -- this cRq is different from that in sendRsToC/sendRsToDma // -- this cRq is different from that in sendRqToC (slot.dirPend not set yet) // -- for some older cRq: write addrSucc/repSucc, differnt from cRqTransfer_new // pipelineResp_mRs: // -- process cRq hit: read req/slot, write state/slot/data // -- this cRq is different from that in cRqTransfer_new // -- this cRq is different from that in mRsDeq // -- this cRq is different from that in sendRsToC/sendRsToDma // -- this cRq is different from that in sendRqToC (child all I) // pipelineResp_cRs: // -- process cRs for a cRq: read req/state/slot/data, write state/slot/data // -- this cRq is different from that in cRqTransfer_new // -- this cRq is different from that in mRsDeq // -- this cRq is different from that in sendRsToC/sendRsToDma // -- XXX this cRq may be the same as that in sendRqToC!!! ",16349,True,3070.0226704740107,median "CLASS zcl_abapgit_repo DEFINITION PUBLIC ABSTRACT CREATE PUBLIC . PUBLIC SECTION. DATA ms_data TYPE zif_abapgit_persistence=>ty_repo READ-ONLY. METHODS bind_listener IMPORTING !ii_listener TYPE REF TO zif_abapgit_repo_listener . METHODS deserialize_checks RETURNING VALUE(rs_checks) TYPE zif_abapgit_definitions=>ty_deserialize_checks RAISING zcx_abapgit_exception . METHODS delete_checks RETURNING VALUE(rs_checks) TYPE zif_abapgit_definitions=>ty_delete_checks RAISING zcx_abapgit_exception . METHODS constructor IMPORTING !is_data TYPE zif_abapgit_persistence=>ty_repo . METHODS get_key RETURNING VALUE(rv_key) TYPE zif_abapgit_persistence=>ty_value . METHODS get_name RETURNING VALUE(rv_name) TYPE string RAISING zcx_abapgit_exception . METHODS get_files_local IMPORTING !ii_log TYPE REF TO zif_abapgit_log OPTIONAL RETURNING VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . METHODS get_local_checksums_per_file RETURNING VALUE(rt_checksums) TYPE zif_abapgit_definitions=>ty_file_signatures_tt . METHODS get_files_remote RETURNING VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_tt RAISING zcx_abapgit_exception . METHODS get_package RETURNING VALUE(rv_package) TYPE zif_abapgit_persistence=>ty_repo-package . METHODS get_dot_abapgit RETURNING VALUE(ro_dot_abapgit) TYPE REF TO zcl_abapgit_dot_abapgit . METHODS set_dot_abapgit IMPORTING !io_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit RAISING zcx_abapgit_exception . METHODS get_dot_apack RETURNING VALUE(ro_dot_apack) TYPE REF TO zcl_abapgit_apack_reader . METHODS get_data_config RETURNING VALUE(ri_config) TYPE REF TO zif_abapgit_data_config RAISING zcx_abapgit_exception . METHODS deserialize IMPORTING !is_checks TYPE zif_abapgit_definitions=>ty_deserialize_checks !ii_log TYPE REF TO zif_abapgit_log RAISING zcx_abapgit_exception . METHODS refresh IMPORTING !iv_drop_cache TYPE abap_bool DEFAULT abap_false !iv_drop_log TYPE abap_bool DEFAULT abap_true PREFERRED PARAMETER iv_drop_cache RAISING zcx_abapgit_exception . METHODS update_local_checksums IMPORTING !it_files TYPE zif_abapgit_definitions=>ty_file_signatures_tt RAISING zcx_abapgit_exception . METHODS rebuild_local_checksums RAISING zcx_abapgit_exception . METHODS find_remote_dot_abapgit RETURNING VALUE(ro_dot) TYPE REF TO zcl_abapgit_dot_abapgit RAISING zcx_abapgit_exception . METHODS is_offline RETURNING VALUE(rv_offline) TYPE abap_bool . METHODS set_files_remote IMPORTING !it_files TYPE zif_abapgit_definitions=>ty_files_tt . METHODS get_local_settings RETURNING VALUE(rs_settings) TYPE zif_abapgit_persistence=>ty_repo-local_settings . METHODS set_local_settings IMPORTING !is_settings TYPE zif_abapgit_persistence=>ty_repo-local_settings RAISING zcx_abapgit_exception . METHODS has_remote_source ABSTRACT RETURNING VALUE(rv_yes) TYPE abap_bool . METHODS status IMPORTING !ii_log TYPE REF TO zif_abapgit_log OPTIONAL RETURNING VALUE(rt_results) TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception . METHODS switch_repo_type IMPORTING !iv_offline TYPE abap_bool RAISING zcx_abapgit_exception . METHODS create_new_log IMPORTING !iv_title TYPE string OPTIONAL RETURNING VALUE(ri_log) TYPE REF TO zif_abapgit_log . METHODS get_log RETURNING VALUE(ri_log) TYPE REF TO zif_abapgit_log . METHODS refresh_local_object IMPORTING !iv_obj_type TYPE tadir-object !iv_obj_name TYPE tadir-obj_name RAISING zcx_abapgit_exception . METHODS refresh_local_objects RAISING zcx_abapgit_exception . METHODS reset_status . METHODS get_unsupported_objects_local RETURNING VALUE(rt_objects) TYPE zif_abapgit_definitions=>ty_items_tt RAISING zcx_abapgit_exception . PROTECTED SECTION. DATA mt_local TYPE zif_abapgit_definitions=>ty_files_item_tt . DATA mt_remote TYPE zif_abapgit_definitions=>ty_files_tt . DATA mv_request_local_refresh TYPE abap_bool . DATA mv_request_remote_refresh TYPE abap_bool . DATA mt_status TYPE zif_abapgit_definitions=>ty_results_tt . DATA mi_log TYPE REF TO zif_abapgit_log . DATA mi_listener TYPE REF TO zif_abapgit_repo_listener . DATA mo_apack_reader TYPE REF TO zcl_abapgit_apack_reader . DATA mi_data_config TYPE REF TO zif_abapgit_data_config . METHODS find_remote_dot_apack RETURNING VALUE(ro_dot) TYPE REF TO zcl_abapgit_apack_reader RAISING zcx_abapgit_exception . METHODS set_dot_apack IMPORTING !io_dot_apack TYPE REF TO zcl_abapgit_apack_reader RAISING zcx_abapgit_exception . METHODS set IMPORTING !it_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt OPTIONAL !iv_url TYPE zif_abapgit_persistence=>ty_repo-url OPTIONAL !iv_branch_name TYPE zif_abapgit_persistence=>ty_repo-branch_name OPTIONAL !iv_selected_commit TYPE zif_abapgit_persistence=>ty_repo-selected_commit OPTIONAL !iv_head_branch TYPE zif_abapgit_persistence=>ty_repo-head_branch OPTIONAL !iv_offline TYPE zif_abapgit_persistence=>ty_repo-offline OPTIONAL !is_dot_abapgit TYPE zif_abapgit_persistence=>ty_repo-dot_abapgit OPTIONAL !is_local_settings TYPE zif_abapgit_persistence=>ty_repo-local_settings OPTIONAL !iv_deserialized_at TYPE zif_abapgit_persistence=>ty_repo-deserialized_at OPTIONAL !iv_deserialized_by TYPE zif_abapgit_persistence=>ty_repo-deserialized_by OPTIONAL !iv_switched_origin TYPE zif_abapgit_persistence=>ty_repo-switched_origin OPTIONAL RAISING zcx_abapgit_exception . METHODS reset_remote . PRIVATE SECTION. METHODS get_local_checksums RETURNING VALUE(rt_checksums) TYPE zif_abapgit_persistence=>ty_local_checksum_tt . METHODS notify_listener IMPORTING !is_change_mask TYPE zif_abapgit_persistence=>ty_repo_meta_mask RAISING zcx_abapgit_exception . METHODS update_last_deserialize RAISING zcx_abapgit_exception . METHODS check_for_restart . METHODS check_write_protect RAISING zcx_abapgit_exception . METHODS check_language RAISING zcx_abapgit_exception . METHODS remove_non_code_related_files CHANGING !ct_local_files TYPE zif_abapgit_definitions=>ty_files_item_tt . METHODS compare_with_remote_checksum IMPORTING !it_remote_files TYPE zif_abapgit_definitions=>ty_files_tt !is_local_file TYPE zif_abapgit_definitions=>ty_file_item-file CHANGING !cs_checksum TYPE zif_abapgit_persistence=>ty_local_checksum . ENDCLASS. CLASS zcl_abapgit_repo IMPLEMENTATION. METHOD bind_listener. mi_listener = ii_listener. ENDMETHOD. METHOD check_for_restart. CONSTANTS: lc_abapgit_prog TYPE progname VALUE `ZABAPGIT`. "" If abapGit was used to update itself, then restart to avoid LOAD_PROGRAM_&_MISMATCH dumps "" because abapGit code was changed at runtime IF zcl_abapgit_ui_factory=>get_frontend_services( )->gui_is_available( ) = abap_true AND zcl_abapgit_url=>is_abapgit_repo( ms_data-url ) = abap_true AND sy-batch = abap_false AND sy-cprog = lc_abapgit_prog. IF zcl_abapgit_persist_factory=>get_settings( )->read( )->get_show_default_repo( ) = abap_false. MESSAGE 'abapGit was updated and will restart itself' TYPE 'I'. ENDIF. SUBMIT (sy-cprog). ENDIF. ENDMETHOD. METHOD check_language. DATA lv_main_language TYPE spras. "" assumes find_remote_dot_abapgit has been called before lv_main_language = get_dot_abapgit( )->get_main_language( ). IF lv_main_language <> sy-langu. zcx_abapgit_exception=>raise( |Current login language | && |'{ zcl_abapgit_convert=>conversion_exit_isola_output( sy-langu ) }'| && | does not match main language | && |'{ zcl_abapgit_convert=>conversion_exit_isola_output( lv_main_language ) }'.| && | Select 'Advanced' > 'Open in Main Language'| ). ENDIF. ENDMETHOD. METHOD check_write_protect. IF get_local_settings( )-write_protected = abap_true. zcx_abapgit_exception=>raise( 'Cannot deserialize. Local code is write-protected by repo config' ). ENDIF. ENDMETHOD. METHOD compare_with_remote_checksum. FIELD-SYMBOLS: LIKE LINE OF it_remote_files, LIKE LINE OF cs_checksum-files. READ TABLE it_remote_files ASSIGNING WITH KEY path = is_local_file-path filename = is_local_file-filename BINARY SEARCH. IF sy-subrc <> 0. "" Ignore new local ones RETURN. ENDIF. APPEND INITIAL LINE TO cs_checksum-files ASSIGNING . MOVE-CORRESPONDING is_local_file TO . "" If hashes are equal -> local sha1 is OK "" Else if R-branch is ahead -> assume changes were remote, state - local sha1 "" Else (branches equal) -> assume changes were local, state - remote sha1 IF is_local_file-sha1 <> -sha1. -sha1 = -sha1. ENDIF. ENDMETHOD. METHOD constructor. ASSERT NOT is_data-key IS INITIAL. ms_data = is_data. mv_request_remote_refresh = abap_true. ENDMETHOD. METHOD create_new_log. CREATE OBJECT mi_log TYPE zcl_abapgit_log. mi_log->set_title( iv_title ). ri_log = mi_log. ENDMETHOD. METHOD delete_checks. DATA: li_package TYPE REF TO zif_abapgit_sap_package. li_package = zcl_abapgit_factory=>get_sap_package( get_package( ) ). rs_checks-transport-required = li_package->are_changes_recorded_in_tr_req( ). ENDMETHOD. METHOD deserialize. DATA: lt_updated_files TYPE zif_abapgit_definitions=>ty_file_signatures_tt, lt_result TYPE zif_abapgit_data_deserializer=>ty_results, lx_error TYPE REF TO zcx_abapgit_exception. find_remote_dot_abapgit( ). find_remote_dot_apack( ). check_write_protect( ). check_language( ). IF is_checks-requirements-met = zif_abapgit_definitions=>c_no AND is_checks-requirements-decision IS INITIAL. zcx_abapgit_exception=>raise( 'Requirements not met and undecided' ). ENDIF. IF is_checks-dependencies-met = zif_abapgit_definitions=>c_no. zcx_abapgit_exception=>raise( 'APACK dependencies not met' ). ENDIF. IF is_checks-transport-required = abap_true AND is_checks-transport-transport IS INITIAL. zcx_abapgit_exception=>raise( |No transport request was supplied| ). ENDIF. "" Deserialize objects TRY. lt_updated_files = zcl_abapgit_objects=>deserialize( io_repo = me is_checks = is_checks ii_log = ii_log ). CATCH zcx_abapgit_exception INTO lx_error. * ensure to reset default transport request task zcl_abapgit_default_transport=>get_instance( )->reset( ). RAISE EXCEPTION lx_error. ENDTRY. APPEND get_dot_abapgit( )->get_signature( ) TO lt_updated_files. update_local_checksums( lt_updated_files ). "" Deserialize data (no save to database, just test for now) lt_result = zcl_abapgit_data_factory=>get_deserializer( )->deserialize( ii_config = get_data_config( ) it_files = get_files_remote( ) ). CLEAR: mt_local. update_last_deserialize( ). reset_status( ). COMMIT WORK AND WAIT. check_for_restart( ). ENDMETHOD. METHOD deserialize_checks. DATA: lt_requirements TYPE zif_abapgit_dot_abapgit=>ty_requirement_tt, lt_dependencies TYPE zif_abapgit_apack_definitions=>ty_dependencies. find_remote_dot_abapgit( ). find_remote_dot_apack( ). check_write_protect( ). check_language( ). rs_checks = zcl_abapgit_objects=>deserialize_checks( me ). lt_requirements = get_dot_abapgit( )->get_data( )-requirements. rs_checks-requirements-met = zcl_abapgit_requirement_helper=>is_requirements_met( lt_requirements ). lt_dependencies = get_dot_apack( )->get_manifest_descriptor( )-dependencies. rs_checks-dependencies-met = zcl_abapgit_apack_helper=>are_dependencies_met( lt_dependencies ). ENDMETHOD. METHOD find_remote_dot_abapgit. FIELD-SYMBOLS: LIKE LINE OF mt_remote. get_files_remote( ). READ TABLE mt_remote ASSIGNING WITH KEY file_path COMPONENTS path = zif_abapgit_definitions=>c_root_dir filename = zif_abapgit_definitions=>c_dot_abapgit. IF sy-subrc = 0. ro_dot = zcl_abapgit_dot_abapgit=>deserialize( -data ). set_dot_abapgit( ro_dot ). COMMIT WORK AND WAIT. "" to release lock ENDIF. ENDMETHOD. METHOD find_remote_dot_apack. FIELD-SYMBOLS: LIKE LINE OF mt_remote. get_files_remote( ). READ TABLE mt_remote ASSIGNING WITH KEY file_path COMPONENTS path = zif_abapgit_definitions=>c_root_dir filename = zif_abapgit_apack_definitions=>c_dot_apack_manifest. IF sy-subrc = 0. ro_dot = zcl_abapgit_apack_reader=>deserialize( iv_package_name = ms_data-package iv_xstr = -data ). set_dot_apack( ro_dot ). ENDIF. ENDMETHOD. METHOD get_data_config. FIELD-SYMBOLS: LIKE LINE OF mt_remote. IF mi_data_config IS BOUND. ri_config = mi_data_config. RETURN. ENDIF. get_files_remote( ). CREATE OBJECT ri_config TYPE zcl_abapgit_data_config. mi_data_config = ri_config. READ TABLE mt_remote ASSIGNING WITH KEY file_path COMPONENTS path = zif_abapgit_data_config=>c_default_path. IF sy-subrc = 0. ri_config->from_json( mt_remote ). ENDIF. ENDMETHOD. METHOD get_dot_abapgit. CREATE OBJECT ro_dot_abapgit EXPORTING is_data = ms_data-dot_abapgit. ENDMETHOD. METHOD get_dot_apack. IF mo_apack_reader IS NOT BOUND. mo_apack_reader = zcl_abapgit_apack_reader=>create_instance( ms_data-package ). ENDIF. ro_dot_apack = mo_apack_reader. ENDMETHOD. METHOD get_files_local. DATA lo_serialize TYPE REF TO zcl_abapgit_serialize. "" Serialization happened before and no refresh request IF lines( mt_local ) > 0 AND mv_request_local_refresh = abap_false. rt_files = mt_local. RETURN. ENDIF. CREATE OBJECT lo_serialize EXPORTING io_dot_abapgit = get_dot_abapgit( ) is_local_settings = get_local_settings( ). rt_files = lo_serialize->files_local( iv_package = get_package( ) ii_data_config = get_data_config( ) ii_log = ii_log ). mt_local = rt_files. mv_request_local_refresh = abap_false. "" Fulfill refresh ENDMETHOD. METHOD get_files_remote. rt_files = mt_remote. ENDMETHOD. METHOD get_key. rv_key = ms_data-key. ENDMETHOD. METHOD get_local_checksums. rt_checksums = ms_data-local_checksums. ENDMETHOD. METHOD get_local_checksums_per_file. FIELD-SYMBOLS LIKE LINE OF ms_data-local_checksums. LOOP AT ms_data-local_checksums ASSIGNING . APPEND LINES OF -files TO rt_checksums. ENDLOOP. ENDMETHOD. METHOD get_local_settings. rs_settings = ms_data-local_settings. ENDMETHOD. METHOD get_log. ri_log = mi_log. ENDMETHOD. METHOD get_name. rv_name = ms_data-local_settings-display_name. ENDMETHOD. METHOD get_package. rv_package = ms_data-package. ENDMETHOD. METHOD get_unsupported_objects_local. DATA: lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt, lt_supported_types TYPE zcl_abapgit_objects=>ty_types_tt. FIELD-SYMBOLS: LIKE LINE OF lt_tadir, LIKE LINE OF rt_objects. lt_tadir = zcl_abapgit_factory=>get_tadir( )->read( iv_package = ms_data-package iv_ignore_subpackages = ms_data-local_settings-ignore_subpackages iv_only_local_objects = ms_data-local_settings-only_local_objects io_dot = get_dot_abapgit( ) ). lt_supported_types = zcl_abapgit_objects=>supported_list( ). LOOP AT lt_tadir ASSIGNING . READ TABLE lt_supported_types WITH KEY table_line = -object TRANSPORTING NO FIELDS. IF sy-subrc <> 0. APPEND INITIAL LINE TO rt_objects ASSIGNING . MOVE-CORRESPONDING TO . -obj_type = -object. ENDIF. ENDLOOP. ENDMETHOD. METHOD is_offline. rv_offline = ms_data-offline. ENDMETHOD. METHOD notify_listener. DATA ls_meta_slug TYPE zif_abapgit_persistence=>ty_repo_xml. IF mi_listener IS BOUND. MOVE-CORRESPONDING ms_data TO ls_meta_slug. mi_listener->on_meta_change( iv_key = ms_data-key is_meta = ls_meta_slug is_change_mask = is_change_mask ). ENDIF. ENDMETHOD. METHOD rebuild_local_checksums. DATA: lt_remote TYPE zif_abapgit_definitions=>ty_files_tt, lt_local TYPE zif_abapgit_definitions=>ty_files_item_tt, ls_last_item TYPE zif_abapgit_definitions=>ty_item, lt_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt. FIELD-SYMBOLS: LIKE LINE OF lt_checksums, LIKE LINE OF lt_local. lt_local = get_files_local( ). remove_non_code_related_files( CHANGING ct_local_files = lt_local ). lt_remote = get_files_remote( ). SORT lt_remote BY path filename. LOOP AT lt_local ASSIGNING . IF ls_last_item <> -item OR sy-tabix = 1. "" First or New item reached ? APPEND INITIAL LINE TO lt_checksums ASSIGNING . -item = -item. ls_last_item = -item. ENDIF. compare_with_remote_checksum( EXPORTING it_remote_files = lt_remote is_local_file = -file CHANGING cs_checksum = ). ENDLOOP. set( it_checksums = lt_checksums ). reset_status( ). ENDMETHOD. METHOD refresh. mv_request_local_refresh = abap_true. reset_remote( ). IF iv_drop_log = abap_true. CLEAR mi_log. ENDIF. IF iv_drop_cache = abap_true. CLEAR mt_local. ENDIF. ENDMETHOD. METHOD refresh_local_object. DATA: ls_tadir TYPE zif_abapgit_definitions=>ty_tadir, lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt, lt_new_local_files TYPE zif_abapgit_definitions=>ty_files_item_tt, lo_serialize TYPE REF TO zcl_abapgit_serialize. lt_tadir = zcl_abapgit_factory=>get_tadir( )->read( iv_package = ms_data-package io_dot = get_dot_abapgit( ) ). DELETE mt_local WHERE item-obj_type = iv_obj_type AND item-obj_name = iv_obj_name. READ TABLE lt_tadir INTO ls_tadir WITH KEY object = iv_obj_type obj_name = iv_obj_name. IF sy-subrc <> 0 OR ls_tadir-delflag = abap_true. "" object doesn't exist anymore, nothing todo here RETURN. ENDIF. CLEAR lt_tadir. INSERT ls_tadir INTO TABLE lt_tadir. CREATE OBJECT lo_serialize. lt_new_local_files = lo_serialize->serialize( iv_package = ms_data-package it_tadir = lt_tadir ). INSERT LINES OF lt_new_local_files INTO TABLE mt_local. ENDMETHOD. METHOD refresh_local_objects. mv_request_local_refresh = abap_true. get_files_local( ). ENDMETHOD. METHOD remove_non_code_related_files. DELETE ct_local_files WHERE item IS INITIAL AND NOT ( file-path = zif_abapgit_definitions=>c_root_dir AND file-filename = zif_abapgit_definitions=>c_dot_abapgit ). SORT ct_local_files BY item. ENDMETHOD. METHOD reset_remote. CLEAR mt_remote. mv_request_remote_refresh = abap_true. reset_status( ). ENDMETHOD. METHOD reset_status. CLEAR mt_status. ENDMETHOD. METHOD set. * TODO: refactor, maybe use zcl_abapgit_string_map ? DATA: ls_mask TYPE zif_abapgit_persistence=>ty_repo_meta_mask. ASSERT it_checksums IS SUPPLIED OR iv_url IS SUPPLIED OR iv_branch_name IS SUPPLIED OR iv_selected_commit IS SUPPLIED OR iv_head_branch IS SUPPLIED OR iv_offline IS SUPPLIED OR is_dot_abapgit IS SUPPLIED OR is_local_settings IS SUPPLIED OR iv_deserialized_by IS SUPPLIED OR iv_deserialized_at IS SUPPLIED OR iv_switched_origin IS SUPPLIED. IF it_checksums IS SUPPLIED. ms_data-local_checksums = it_checksums. ls_mask-local_checksums = abap_true. ENDIF. IF iv_url IS SUPPLIED. ms_data-url = iv_url. ls_mask-url = abap_true. ENDIF. IF iv_branch_name IS SUPPLIED. ms_data-branch_name = iv_branch_name. ls_mask-branch_name = abap_true. ENDIF. IF iv_selected_commit IS SUPPLIED. ms_data-selected_commit = iv_selected_commit. ls_mask-selected_commit = abap_true. ENDIF. IF iv_head_branch IS SUPPLIED. ms_data-head_branch = iv_head_branch. ls_mask-head_branch = abap_true. ENDIF. IF iv_offline IS SUPPLIED. ms_data-offline = iv_offline. ls_mask-offline = abap_true. ENDIF. IF is_dot_abapgit IS SUPPLIED. ms_data-dot_abapgit = is_dot_abapgit. ls_mask-dot_abapgit = abap_true. ENDIF. IF is_local_settings IS SUPPLIED. ms_data-local_settings = is_local_settings. ls_mask-local_settings = abap_true. ENDIF. IF iv_deserialized_at IS SUPPLIED OR iv_deserialized_by IS SUPPLIED. ms_data-deserialized_at = iv_deserialized_at. ms_data-deserialized_by = iv_deserialized_by. ls_mask-deserialized_at = abap_true. ls_mask-deserialized_by = abap_true. ENDIF. IF iv_switched_origin IS SUPPLIED. ms_data-switched_origin = iv_switched_origin. ls_mask-switched_origin = abap_true. ENDIF. notify_listener( ls_mask ). ENDMETHOD. METHOD set_dot_abapgit. set( is_dot_abapgit = io_dot_abapgit->get_data( ) ). ENDMETHOD. METHOD set_dot_apack. get_dot_apack( ). mo_apack_reader->set_manifest_descriptor( io_dot_apack->get_manifest_descriptor( ) ). ENDMETHOD. METHOD set_files_remote. mt_remote = it_files. mv_request_remote_refresh = abap_false. ENDMETHOD. METHOD set_local_settings. set( is_local_settings = is_settings ). ENDMETHOD. METHOD status. IF lines( mt_status ) = 0. mt_status = zcl_abapgit_file_status=>status( io_repo = me ii_log = ii_log ). ENDIF. rt_results = mt_status. ENDMETHOD. METHOD switch_repo_type. IF iv_offline = ms_data-offline. zcx_abapgit_exception=>raise( |Cannot switch_repo_type, offline already = ""{ ms_data-offline }""| ). ENDIF. IF iv_offline = abap_true. "" On-line -> OFFline set( iv_url = zcl_abapgit_url=>name( ms_data-url ) iv_branch_name = '' iv_selected_commit = '' iv_head_branch = '' iv_offline = abap_true ). ELSE. "" OFFline -> On-line set( iv_offline = abap_false ). ENDIF. ENDMETHOD. METHOD update_last_deserialize. DATA: lv_deserialized_at TYPE zif_abapgit_persistence=>ty_repo-deserialized_at, lv_deserialized_by TYPE zif_abapgit_persistence=>ty_repo-deserialized_by. GET TIME STAMP FIELD lv_deserialized_at. lv_deserialized_by = sy-uname. set( iv_deserialized_at = lv_deserialized_at iv_deserialized_by = lv_deserialized_by ). ENDMETHOD. METHOD update_local_checksums. "" ASSUMTION: SHA1 in param is actual and correct. "" Push fills it from local files before pushing, deserialize from remote "" If this is not true that there is an error somewhere but not here DATA: lt_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt, lt_files_idx TYPE zif_abapgit_definitions=>ty_file_signatures_tt, lt_local TYPE zif_abapgit_definitions=>ty_files_item_tt, lv_chks_row TYPE i, lv_file_row TYPE i. FIELD-SYMBOLS: LIKE LINE OF lt_checksums, LIKE LINE OF -files, LIKE LINE OF lt_local, LIKE LINE OF it_files. lt_checksums = get_local_checksums( ). lt_files_idx = it_files. SORT lt_files_idx BY path filename. "" Sort for binary search "" Loop through current chacksum state, update sha1 for common files LOOP AT lt_checksums ASSIGNING . lv_chks_row = sy-tabix. LOOP AT -files ASSIGNING . lv_file_row = sy-tabix. READ TABLE lt_files_idx ASSIGNING WITH KEY path = -path filename = -filename BINARY SEARCH. CHECK sy-subrc = 0. "" Missing in param table, skip IF -sha1 IS INITIAL. "" Empty input sha1 is a deletion marker DELETE -files INDEX lv_file_row. ELSE. -sha1 = -sha1. "" Update sha1 CLEAR -sha1. "" Mark as processed ENDIF. ENDLOOP. IF lines( -files ) = 0. "" Remove empty objects DELETE lt_checksums INDEX lv_chks_row. ENDIF. ENDLOOP. DELETE lt_files_idx WHERE sha1 IS INITIAL. "" Remove processed IF lines( lt_files_idx ) > 0. lt_local = get_files_local( ). SORT lt_local BY file-path file-filename. "" Sort for binary search ENDIF. "" Add new files - not deleted and not marked as processed above LOOP AT lt_files_idx ASSIGNING . READ TABLE lt_local ASSIGNING WITH KEY file-path = -path file-filename = -filename BINARY SEARCH. IF sy-subrc <> 0. * if the deserialization fails, the local file might not be there CONTINUE. ENDIF. READ TABLE lt_checksums ASSIGNING "" TODO Optimize WITH KEY item = -item. IF sy-subrc > 0. APPEND INITIAL LINE TO lt_checksums ASSIGNING . -item = -item. ENDIF. APPEND TO -files. ENDLOOP. SORT lt_checksums BY item. set( it_checksums = lt_checksums ). ENDMETHOD. ENDCLASS. ",6960,False,1448.3091986115155,median "// Copyright (c) 2019-2021 Bluespec, Inc. All Rights Reserved package AXI4_Types; // ================================================================ // Facilities for ARM AXI4, consisting of 5 independent channels: // Write Address, Write Data, Write Response, Read Address and Read Data // Ref: ARM document: // AMBA AXI and ACE Protocol Specification // AXI3, AXI4, and AXI4-Lite // ACE and ACE-Lite // ARM IHI 0022E (ID022613) // Issue E, 22 Feb 2013 // ================================================================ // BSV library imports import FIFOF :: *; import Connectable :: *; // ---------------- // BSV additional libs import Semi_FIFOF :: *; import EdgeFIFOFs :: *; // **************************************************************** // **************************************************************** // Section: RTL-level interfaces // **************************************************************** // **************************************************************** // ================================================================ // Fixed-width AXI4 buses typedef Bit #(8) AXI4_Len; // AxSIZE typedef Bit #(3) AXI4_Size; AXI4_Size axsize_1 = 3'b_000; AXI4_Size axsize_2 = 3'b_001; AXI4_Size axsize_4 = 3'b_010; AXI4_Size axsize_8 = 3'b_011; AXI4_Size axsize_16 = 3'b_100; AXI4_Size axsize_32 = 3'b_101; AXI4_Size axsize_64 = 3'b_110; AXI4_Size axsize_128 = 3'b_111; function Bit #(8) fv_AXI4_Size_to_num_bytes (AXI4_Size axi4_size); return (1 << axi4_size); endfunction function AXI4_Size fv_num_bytes_to_AXI4_Size (Bit #(8) num_bytes); return (case (num_bytes) 1: axsize_1; 2: axsize_2; 4: axsize_4; 8: axsize_8; 16: axsize_16; 32: axsize_32; 64: axsize_64; 128: axsize_128; default: axsize_128; // Bogus endcase); endfunction // AxBURST typedef Bit #(2) AXI4_Burst; AXI4_Burst axburst_fixed = 2'b_00; AXI4_Burst axburst_incr = 2'b_01; AXI4_Burst axburst_wrap = 2'b_10; // AxLOCK typedef Bit #(1) AXI4_Lock; AXI4_Lock axlock_normal = 1'b_0; AXI4_Lock axlock_exclusive = 1'b_1; // ARCACHE typedef Bit #(4) AXI4_Cache; AXI4_Cache arcache_dev_nonbuf = 'b_0000; AXI4_Cache arcache_dev_buf = 'b_0001; AXI4_Cache arcache_norm_noncache_nonbuf = 'b_0010; AXI4_Cache arcache_norm_noncache_buf = 'b_0011; AXI4_Cache arcache_wthru_no_alloc = 'b_1010; AXI4_Cache arcache_wthru_r_alloc = 'b_1110; AXI4_Cache arcache_wthru_w_alloc = 'b_1010; AXI4_Cache arcache_wthru_r_w_alloc = 'b_1110; AXI4_Cache arcache_wback_no_alloc = 'b_1011; AXI4_Cache arcache_wback_r_alloc = 'b_1111; AXI4_Cache arcache_wback_w_alloc = 'b_1011; AXI4_Cache arcache_wback_r_w_alloc = 'b_1111; // AWCACHE AXI4_Cache awcache_dev_nonbuf = 'b_0000; AXI4_Cache awcache_dev_buf = 'b_0001; AXI4_Cache awcache_norm_noncache_nonbuf = 'b_0010; AXI4_Cache awcache_norm_noncache_buf = 'b_0011; AXI4_Cache awcache_wthru_no_alloc = 'b_0110; AXI4_Cache awcache_wthru_r_alloc = 'b_0110; AXI4_Cache awcache_wthru_w_alloc = 'b_1110; AXI4_Cache awcache_wthru_r_w_alloc = 'b_1110; AXI4_Cache awcache_wback_no_alloc = 'b_0111; AXI4_Cache awcache_wback_r_alloc = 'b_0111; AXI4_Cache awcache_wback_w_alloc = 'b_1111; AXI4_Cache awcache_wback_r_w_alloc = 'b_1111; // PROT typedef Bit #(3) AXI4_Prot; Bit #(1) axprot_0_unpriv = 0; Bit #(1) axprot_0_priv = 1; Bit #(1) axprot_1_secure = 0; Bit #(1) axprot_1_non_secure = 1; Bit #(1) axprot_2_data = 0; Bit #(1) axprot_2_instr = 1; // QoS typedef Bit #(4) AXI4_QoS; // REGION typedef Bit #(4) AXI4_Region; // RESP typedef Bit #(2) AXI4_Resp; AXI4_Resp axi4_resp_okay = 2'b_00; AXI4_Resp axi4_resp_exokay = 2'b_01; AXI4_Resp axi4_resp_slverr = 2'b_10; AXI4_Resp axi4_resp_decerr = 2'b_11; // ================================================================ // Function to check address-alignment function Bool fn_addr_is_aligned (Bit #(wd_addr) addr, AXI4_Size size); return ( (size == axsize_1) || ((size == axsize_2) && (addr [0] == 1'b0)) || ((size == axsize_4) && (addr [1:0] == 2'b0)) || ((size == axsize_8) && (addr [2:0] == 3'b0)) || ((size == axsize_16) && (addr [3:0] == 4'b0)) || ((size == axsize_32) && (addr [4:0] == 5'b0)) || ((size == axsize_64) && (addr [5:0] == 6'b0)) || ((size == axsize_128) && (addr [6:0] == 7'b0))); endfunction // ================================================================ // These are the signal-level interfaces for an AXI4 master. // The (*..*) attributes ensure that when bsc compiles this to Verilog, // we get exactly the signals specified in the ARM spec. interface AXI4_Master_IFC #(numeric type wd_id, numeric type wd_addr, numeric type wd_data, numeric type wd_user); // ---------------- // Wr Addr channel (* always_ready, result=""awvalid"" *) method Bool m_awvalid; // out (* always_ready, result=""awid"" *) method Bit #(wd_id) m_awid; // out (* always_ready, result=""awaddr"" *) method Bit #(wd_addr) m_awaddr; // out (* always_ready, result=""awlen"" *) method Bit #(8) m_awlen; // out (* always_ready, result=""awsize"" *) method AXI4_Size m_awsize; // out (* always_ready, result=""awburst"" *) method Bit #(2) m_awburst; // out (* always_ready, result=""awlock"" *) method Bit #(1) m_awlock; // out (* always_ready, result=""awcache"" *) method Bit #(4) m_awcache; // out (* always_ready, result=""awprot"" *) method Bit #(3) m_awprot; // out (* always_ready, result=""awqos"" *) method Bit #(4) m_awqos; // out (* always_ready, result=""awregion"" *) method Bit #(4) m_awregion; // out (* always_ready, result=""awuser"" *) method Bit #(wd_user) m_awuser; // out (* always_ready, always_enabled, prefix="""" *) method Action m_awready ((* port=""awready"" *) Bool awready); // in // ---------------- // Wr Data channel (* always_ready, result=""wvalid"" *) method Bool m_wvalid; // out (* always_ready, result=""wdata"" *) method Bit #(wd_data) m_wdata; // out (* always_ready, result=""wstrb"" *) method Bit #(TDiv #(wd_data, 8)) m_wstrb; // out (* always_ready, result=""wlast"" *) method Bool m_wlast; // out (* always_ready, result=""wuser"" *) method Bit #(wd_user) m_wuser; // out (* always_ready, always_enabled, prefix = """" *) method Action m_wready ((* port=""wready"" *) Bool wready); // in // ---------------- // Wr Response channel (* always_ready, always_enabled, prefix = """" *) method Action m_bvalid ((* port=""bvalid"" *) Bool bvalid, // in (* port=""bid"" *) Bit #(wd_id) bid, // in (* port=""bresp"" *) Bit #(2) bresp, // in (* port=""buser"" *) Bit #(wd_user) buser); // in (* always_ready, prefix = """", result=""bready"" *) method Bool m_bready; // out // ---------------- // Rd Addr channel (* always_ready, result=""arvalid"" *) method Bool m_arvalid; // out (* always_ready, result=""arid"" *) method Bit #(wd_id) m_arid; // out (* always_ready, result=""araddr"" *) method Bit #(wd_addr) m_araddr; // out (* always_ready, result=""arlen"" *) method Bit #(8) m_arlen; // out (* always_ready, result=""arsize"" *) method AXI4_Size m_arsize; // out (* always_ready, result=""arburst"" *) method Bit #(2) m_arburst; // out (* always_ready, result=""arlock"" *) method Bit #(1) m_arlock; // out (* always_ready, result=""arcache"" *) method Bit #(4) m_arcache; // out (* always_ready, result=""arprot"" *) method Bit #(3) m_arprot; // out (* always_ready, result=""arqos"" *) method Bit #(4) m_arqos; // out (* always_ready, result=""arregion"" *) method Bit #(4) m_arregion; // out (* always_ready, result=""aruser"" *) method Bit #(wd_user) m_aruser; // out (* always_ready, always_enabled, prefix="""" *) method Action m_arready ((* port=""arready"" *) Bool arready); // in // ---------------- // Rd Data channel (* always_ready, always_enabled, prefix = """" *) method Action m_rvalid ((* port=""rvalid"" *) Bool rvalid, // in (* port=""rid"" *) Bit #(wd_id) rid, // in (* port=""rdata"" *) Bit #(wd_data) rdata, // in (* port=""rresp"" *) Bit #(2) rresp, // in (* port=""rlast"" *) Bool rlast, // in (* port=""ruser"" *) Bit #(wd_user) ruser); // in (* always_ready, result=""rready"" *) method Bool m_rready; // out endinterface: AXI4_Master_IFC // ================================================================ // These are the signal-level interfaces for an AXI4-Lite slave. // The (*..*) attributes ensure that when bsc compiles this to Verilog, // we get exactly the signals specified in the ARM spec. interface AXI4_Slave_IFC #(numeric type wd_id, numeric type wd_addr, numeric type wd_data, numeric type wd_user); // Wr Addr channel (* always_ready, always_enabled, prefix = """" *) method Action m_awvalid ((* port=""awvalid"" *) Bool awvalid, // in (* port=""awid"" *) Bit #(wd_id) awid, // in (* port=""awaddr"" *) Bit #(wd_addr) awaddr, // in (* port=""awlen"" *) Bit #(8) awlen, // in (* port=""awsize"" *) AXI4_Size awsize, // in (* port=""awburst"" *) Bit #(2) awburst, // in (* port=""awlock"" *) Bit #(1) awlock, // in (* port=""awcache"" *) Bit #(4) awcache, // in (* port=""awprot"" *) Bit #(3) awprot, // in (* port=""awqos"" *) Bit #(4) awqos, // in (* port=""awregion"" *) Bit #(4) awregion, // in (* port=""awuser"" *) Bit #(wd_user) awuser); // in (* always_ready, result=""awready"" *) method Bool m_awready; // out // Wr Data channel (* always_ready, always_enabled, prefix = """" *) method Action m_wvalid ((* port=""wvalid"" *) Bool wvalid, // in (* port=""wdata"" *) Bit #(wd_data) wdata, // in (* port=""wstrb"" *) Bit #(TDiv #(wd_data,8)) wstrb, // in (* port=""wlast"" *) Bool wlast, // in (* port=""wuser"" *) Bit #(wd_user) wuser); // in (* always_ready, result=""wready"" *) method Bool m_wready; // out // Wr Response channel (* always_ready, result=""bvalid"" *) method Bool m_bvalid; // out (* always_ready, result=""bid"" *) method Bit #(wd_id) m_bid; // out (* always_ready, result=""bresp"" *) method Bit #(2) m_bresp; // out (* always_ready, result=""buser"" *) method Bit #(wd_user) m_buser; // out (* always_ready, always_enabled, prefix="""" *) method Action m_bready ((* port=""bready"" *) Bool bready); // in // Rd Addr channel (* always_ready, always_enabled, prefix = """" *) method Action m_arvalid ((* port=""arvalid"" *) Bool arvalid, // in (* port=""arid"" *) Bit #(wd_id) arid, // in (* port=""araddr"" *) Bit #(wd_addr) araddr, // in (* port=""arlen"" *) Bit #(8) arlen, // in (* port=""arsize"" *) AXI4_Size arsize, // in (* port=""arburst"" *) Bit #(2) arburst, // in (* port=""arlock"" *) Bit #(1) arlock, // in (* port=""arcache"" *) Bit #(4) arcache, // in (* port=""arprot"" *) Bit #(3) arprot, // in (* port=""arqos"" *) Bit #(4) arqos, // in (* port=""arregion"" *) Bit #(4) arregion, // in (* port=""aruser"" *) Bit #(wd_user) aruser); // in (* always_ready, result=""arready"" *) method Bool m_arready; // out // Rd Data channel (* always_ready, result=""rvalid"" *) method Bool m_rvalid; // out (* always_ready, result=""rid"" *) method Bit #(wd_id) m_rid; // out (* always_ready, result=""rdata"" *) method Bit #(wd_data) m_rdata; // out (* always_ready, result=""rresp"" *) method Bit #(2) m_rresp; // out (* always_ready, result=""rlast"" *) method Bool m_rlast; // out (* always_ready, result=""ruser"" *) method Bit #(wd_user) m_ruser; // out (* always_ready, always_enabled, prefix="""" *) method Action m_rready ((* port=""rready"" *) Bool rready); // in endinterface: AXI4_Slave_IFC // ================================================================ // Connecting signal-level interfaces instance Connectable #(AXI4_Master_IFC #(wd_id, wd_addr, wd_data, wd_user), AXI4_Slave_IFC #(wd_id, wd_addr, wd_data, wd_user)); module mkConnection #(AXI4_Master_IFC #(wd_id, wd_addr, wd_data, wd_user) axim, AXI4_Slave_IFC #(wd_id, wd_addr, wd_data, wd_user) axis) (Empty); (* fire_when_enabled, no_implicit_conditions *) rule rl_wr_addr_channel; axis.m_awvalid (axim.m_awvalid, axim.m_awid, axim.m_awaddr, axim.m_awlen, axim.m_awsize, axim.m_awburst, axim.m_awlock, axim.m_awcache, axim.m_awprot, axim.m_awqos, axim.m_awregion, axim.m_awuser); axim.m_awready (axis.m_awready); endrule (* fire_when_enabled, no_implicit_conditions *) rule rl_wr_data_channel; axis.m_wvalid (axim.m_wvalid, axim.m_wdata, axim.m_wstrb, axim.m_wlast, axim.m_wuser); axim.m_wready (axis.m_wready); endrule (* fire_when_enabled, no_implicit_conditions *) rule rl_wr_response_channel; axim.m_bvalid (axis.m_bvalid, axis.m_bid, axis.m_bresp, axis.m_buser); axis.m_bready (axim.m_bready); endrule (* fire_when_enabled, no_implicit_conditions *) rule rl_rd_addr_channel; axis.m_arvalid (axim.m_arvalid, axim.m_arid, axim.m_araddr, axim.m_arlen, axim.m_arsize, axim.m_arburst, axim.m_arlock, axim.m_arcache, axim.m_arprot, axim.m_arqos, axim.m_arregion, axim.m_aruser); axim.m_arready (axis.m_arready); endrule (* fire_when_enabled, no_implicit_conditions *) rule rl_rd_data_channel; axim.m_rvalid (axis.m_rvalid, axis.m_rid, axis.m_rdata, axis.m_rresp, axis.m_rlast, axis.m_ruser); axis.m_rready (axim.m_rready); endrule endmodule endinstance // ================================================================ // AXI4 dummy master: never produces requests, never accepts responses AXI4_Master_IFC #(wd_id, wd_addr, wd_data, wd_user) dummy_AXI4_Master_ifc = interface AXI4_Master_IFC // Wr Addr channel method Bool m_awvalid = False; // out method Bit #(wd_id) m_awid = ?; // out method Bit #(wd_addr) m_awaddr = ?; // out method Bit #(8) m_awlen = ?; // out method AXI4_Size m_awsize = ?; // out method Bit #(2) m_awburst = ?; // out method Bit #(1) m_awlock = ?; // out method Bit #(4) m_awcache = ?; // out method Bit #(3) m_awprot = ?; // out method Bit #(4) m_awqos = ?; // out method Bit #(4) m_awregion = ?; // out method Bit #(wd_user) m_awuser = ?; // out method Action m_awready (Bool awready) = noAction; // in // Wr Data channel method Bool m_wvalid = False; // out method Bit #(wd_data) m_wdata = ?; // out method Bit #(TDiv #(wd_data, 8)) m_wstrb = ?; // out method Bool m_wlast = ?; // out method Bit #(wd_user) m_wuser = ?; // out method Action m_wready (Bool wready) = noAction; // in // Wr Response channel method Action m_bvalid (Bool bvalid, // in Bit #(wd_id) bid, // in Bit #(2) bresp, // in Bit #(wd_user) buser); // in noAction; endmethod method Bool m_bready = False; // out // Rd Addr channel method Bool m_arvalid = False; // out method Bit #(wd_id) m_arid = ?; // out method Bit #(wd_addr) m_araddr = ?; // out method Bit #(8) m_arlen = ?; // out method AXI4_Size m_arsize = ?; // out method Bit #(2) m_arburst = ?; // out method Bit #(1) m_arlock = ?; // out method Bit #(4) m_arcache = ?; // out method Bit #(3) m_arprot = ?; // out method Bit #(4) m_arqos = ?; // out method Bit #(4) m_arregion = ?; // out method Bit #(wd_user) m_aruser = ?; // out method Action m_arready (Bool arready) = noAction; // in // Rd Data channel method Action m_rvalid (Bool rvalid, // in Bit #(wd_id) rid, // in Bit #(wd_data) rdata, // in Bit #(2) rresp, // in Bool rlast, // in Bit #(wd_user) ruser); // in noAction; endmethod method Bool m_rready = False; // out endinterface; // ================================================================ // AXI4 dummy slave: never accepts requests, never produces responses AXI4_Slave_IFC #(wd_id, wd_addr, wd_data, wd_user) dummy_AXI4_Slave_ifc = interface AXI4_Slave_IFC // Wr Addr channel method Action m_awvalid (Bool awvalid, Bit #(wd_id) awid, Bit #(wd_addr) awaddr, Bit #(8) awlen, AXI4_Size awsize, Bit #(2) awburst, Bit #(1) awlock, Bit #(4) awcache, Bit #(3) awprot, Bit #(4) awqos, Bit #(4) awregion, Bit #(wd_user) awuser); noAction; endmethod method Bool m_awready; return False; endmethod // Wr Data channel method Action m_wvalid (Bool wvalid, Bit #(wd_data) wdata, Bit #(TDiv #(wd_data, 8)) wstrb, Bool wlast, Bit #(wd_user) wuser); noAction; endmethod method Bool m_wready; return False; endmethod // Wr Response channel method Bool m_bvalid; return False; endmethod method Bit #(wd_id) m_bid; return ?; endmethod method Bit #(2) m_bresp; return 0; endmethod method Bit #(wd_user) m_buser; return ?; endmethod method Action m_bready (Bool bready); noAction; endmethod // Rd Addr channel method Action m_arvalid (Bool arvalid, Bit #(wd_id) arid, Bit #(wd_addr) araddr, Bit #(8) arlen, AXI4_Size arsize, Bit #(2) arburst, Bit #(1) arlock, Bit #(4) arcache, Bit #(3) arprot, Bit #(4) arqos, Bit #(4) arregion, Bit #(wd_user) aruser); noAction; endmethod method Bool m_arready; return False; endmethod // Rd Data channel method Bool m_rvalid; return False; endmethod method Bit #(wd_id) m_rid; return 0; endmethod method Bit #(wd_data) m_rdata; return 0; endmethod method Bit #(2) m_rresp; return 0; endmethod method Bool m_rlast; return True; endmethod method Bit #(wd_user) m_ruser; return ?; endmethod method Action m_rready (Bool rready); noAction; endmethod endinterface; // **************************************************************** // **************************************************************** // Section: Higher-level FIFO-like interfaces and transactors // **************************************************************** // **************************************************************** // ================================================================ // Help function: fn_crg_and_rg_to_FIFOF_I // In the modules below, we use a crg_full and a rg_data to represent a fifo. // These functions convert these to FIFOF_I and FIFOF_O interfaces. function FIFOF_I #(t) fn_crg_and_rg_to_FIFOF_I (Reg #(Bool) rg_full, Reg #(t) rg_data); return interface FIFOF_I; method Action enq (t x) if (! rg_full); rg_full <= True; rg_data <= x; endmethod method Bool notFull; return (! rg_full); endmethod endinterface; endfunction function FIFOF_O #(t) fn_crg_and_rg_to_FIFOF_O (Reg #(Bool) rg_full, Reg #(t) rg_data); return interface FIFOF_O; method t first () if (rg_full); return rg_data; endmethod method Action deq () if (rg_full); rg_full <= False; endmethod method notEmpty; return rg_full; endmethod endinterface; endfunction // ================================================================ // Higher-level types for payloads (rather than just bits) // Write Address channel typedef struct { Bit #(wd_id) awid; Bit #(wd_addr) awaddr; Bit #(8) awlen; AXI4_Size awsize; Bit #(2) awburst; Bit #(1) awlock; Bit #(4) awcache; Bit #(3) awprot; Bit #(4) awqos; Bit #(4) awregion; Bit #(wd_user) awuser; } AXI4_Wr_Addr #(numeric type wd_id, numeric type wd_addr, numeric type wd_user) deriving (Bits, FShow); // Write Data channel typedef struct { Bit #(wd_data) wdata; Bit #(TDiv #(wd_data, 8)) wstrb; Bool wlast; Bit #(wd_user) wuser; } AXI4_Wr_Data #(numeric type wd_data, numeric type wd_user) deriving (Bits, FShow); // Write Response channel typedef struct { Bit #(wd_id) bid; Bit #(2) bresp; Bit #(wd_user) buser; } AXI4_Wr_Resp #(numeric type wd_id, numeric type wd_user) deriving (Bits, FShow); // Read Address channel typedef struct { Bit #(wd_id) arid; Bit #(wd_addr) araddr; Bit #(8) arlen; AXI4_Size arsize; Bit #(2) arburst; Bit #(1) arlock; Bit #(4) arcache; Bit #(3) arprot; Bit #(4) arqos; Bit #(4) arregion; Bit #(wd_user) aruser; } AXI4_Rd_Addr #(numeric type wd_id, numeric type wd_addr, numeric type wd_user) deriving (Bits, FShow); // Read Data channel typedef struct { Bit #(wd_id) rid; Bit #(wd_data) rdata; Bit #(2) rresp; Bool rlast; Bit #(wd_user) ruser; } AXI4_Rd_Data #(numeric type wd_id, numeric type wd_data, numeric type wd_user) deriving (Bits, FShow); // ================================================================ // The following are specialized 'fshow' functions for AXI4 bus // payloads: the most common fields, and more compact. function Fmt fshow_AXI4_Size (AXI4_Size size); Fmt result = ?; if (size == axsize_1) result = $format (""sz1""); else if (size == axsize_2) result = $format (""sz2""); else if (size == axsize_4) result = $format (""sz4""); else if (size == axsize_8) result = $format (""sz8""); else if (size == axsize_16) result = $format (""sz16""); else if (size == axsize_32) result = $format (""sz32""); else if (size == axsize_64) result = $format (""sz64""); else if (size == axsize_128) result = $format (""sz128""); return result; endfunction function Fmt fshow_AXI4_Burst (AXI4_Burst burst); Fmt result = ?; if (burst == axburst_fixed) result = $format (""fixed""); else if (burst == axburst_incr) result = $format (""incr""); else if (burst == axburst_wrap) result = $format (""wrap""); else result = $format (""burst:%0d"", burst); return result; endfunction function Fmt fshow_AXI4_Resp (AXI4_Resp resp); Fmt result = ?; if (resp == axi4_resp_okay) result = $format (""okay""); else if (resp == axi4_resp_exokay) result = $format (""exokay""); else if (resp == axi4_resp_slverr) result = $format (""slverr""); else if (resp == axi4_resp_decerr) result = $format (""decerr""); return result; endfunction // ---------------- function Fmt fshow_Wr_Addr (AXI4_Wr_Addr #(wd_id, wd_addr, wd_user) x); Fmt result = ($format (""{awaddr:%0h,"", x.awaddr) + $format (""awlen:%0d"", x.awlen) + $format ("","") + fshow_AXI4_Size (x.awsize) + $format ("","") + fshow_AXI4_Burst (x.awburst) + $format (""}"")); return result; endfunction function Fmt fshow_Wr_Data (AXI4_Wr_Data #(wd_data, wd_user) x); let result = ($format (""{wdata:%0h,wstrb:%0h"", x.wdata, x.wstrb) + (x.wlast ? $format ("",wlast"") : $format ("",.."")) + $format (""}"")); return result; endfunction function Fmt fshow_Wr_Resp (AXI4_Wr_Resp #(wd_id, wd_user) x); Fmt result = ($format (""{bresp:"") + fshow_AXI4_Resp (x.bresp) + $format (""}"")); return result; endfunction function Fmt fshow_Rd_Addr (AXI4_Rd_Addr #(wd_id, wd_addr, wd_user) x); Fmt result = ($format (""{araddr:%0h"", x.araddr) + $format ("",arlen:%0d"", x.arlen) + $format ("","") + fshow_AXI4_Size (x.arsize) + $format ("","") + fshow_AXI4_Burst (x.arburst) + $format (""}"")); return result; endfunction function Fmt fshow_Rd_Data (AXI4_Rd_Data #(wd_id, wd_data, wd_user) x); Fmt result = ($format (""{rresp:"") + fshow_AXI4_Resp (x.rresp) + $format ("",rdata:%0h"", x.rdata) + (x.rlast ? $format ("",rlast"") : $format ("",.."")) + $format (""}"")); return result; endfunction // ================================================================ // AXI4 buffer // ---------------- // Server-side interface accepts requests and yields responses interface AXI4_Server_IFC #(numeric type wd_id, numeric type wd_addr, numeric type wd_data, numeric type wd_user); interface FIFOF_I #(AXI4_Wr_Addr #(wd_id, wd_addr, wd_user)) i_wr_addr; interface FIFOF_I #(AXI4_Wr_Data #(wd_data, wd_user)) i_wr_data; interface FIFOF_O #(AXI4_Wr_Resp #(wd_id, wd_user)) o_wr_resp; interface FIFOF_I #(AXI4_Rd_Addr #(wd_id, wd_addr, wd_user)) i_rd_addr; interface FIFOF_O #(AXI4_Rd_Data #(wd_id, wd_data, wd_user)) o_rd_data; endinterface // ---------------- // Client-side interface yields requests and accepts responses interface AXI4_Client_IFC #(numeric type wd_id, numeric type wd_addr, numeric type wd_data, numeric type wd_user); interface FIFOF_O #(AXI4_Wr_Addr #(wd_id, wd_addr, wd_user)) o_wr_addr; interface FIFOF_O #(AXI4_Wr_Data #(wd_data, wd_user)) o_wr_data; interface FIFOF_I #(AXI4_Wr_Resp #(wd_id, wd_user)) i_wr_resp; interface FIFOF_O #(AXI4_Rd_Addr #(wd_id, wd_addr, wd_user)) o_rd_addr; interface FIFOF_I #(AXI4_Rd_Data #(wd_id, wd_data, wd_user)) i_rd_data; endinterface // ---------------- // A Buffer has a server-side and a client-side, and a reset interface AXI4_Buffer_IFC #(numeric type wd_id, numeric type wd_addr, numeric type wd_data, numeric type wd_user); method Action reset; interface AXI4_Server_IFC #(wd_id, wd_addr, wd_data, wd_user) server_side; interface AXI4_Client_IFC #(wd_id, wd_addr, wd_data, wd_user) client_side; endinterface // ---------------------------------------------------------------- module mkAXI4_Buffer (AXI4_Buffer_IFC #(wd_id, wd_addr, wd_data, wd_user)); FIFOF #(AXI4_Wr_Addr #(wd_id, wd_addr, wd_user)) f_wr_addr <- mkFIFOF; FIFOF #(AXI4_Wr_Data #(wd_data, wd_user)) f_wr_data <- mkFIFOF; FIFOF #(AXI4_Wr_Resp #(wd_id, wd_user)) f_wr_resp <- mkFIFOF; FIFOF #(AXI4_Rd_Addr #(wd_id, wd_addr, wd_user)) f_rd_addr <- mkFIFOF; FIFOF #(AXI4_Rd_Data #(wd_id, wd_data, wd_user)) f_rd_data <- mkFIFOF; method Action reset; f_wr_addr.clear; f_wr_data.clear; f_wr_resp.clear; f_rd_addr.clear; f_rd_data.clear; endmethod interface AXI4_Server_IFC server_side; interface i_wr_addr = to_FIFOF_I (f_wr_addr); interface i_wr_data = to_FIFOF_I (f_wr_data); interface o_wr_resp = to_FIFOF_O (f_wr_resp); interface i_rd_addr = to_FIFOF_I (f_rd_addr); interface o_rd_data = to_FIFOF_O (f_rd_data); endinterface interface AXI4_Client_IFC client_side; interface o_wr_addr = to_FIFOF_O (f_wr_addr); interface o_wr_data = to_FIFOF_O (f_wr_data); interface i_wr_resp = to_FIFOF_I (f_wr_resp); interface o_rd_addr = to_FIFOF_O (f_rd_addr); interface i_rd_data = to_FIFOF_I (f_rd_data); endinterface endmodule module mkAXI4_Buffer_2 (AXI4_Buffer_IFC #(wd_id, wd_addr, wd_data, wd_user)); FIFOF #(AXI4_Wr_Addr #(wd_id, wd_addr, wd_user)) f_wr_addr <- mkMaster_EdgeFIFOF; FIFOF #(AXI4_Wr_Data #(wd_data, wd_user)) f_wr_data <- mkMaster_EdgeFIFOF; FIFOF #(AXI4_Wr_Resp #(wd_id, wd_user)) f_wr_resp <- mkSlave_EdgeFIFOF; FIFOF #(AXI4_Rd_Addr #(wd_id, wd_addr, wd_user)) f_rd_addr <- mkMaster_EdgeFIFOF; FIFOF #(AXI4_Rd_Data #(wd_id, wd_data, wd_user)) f_rd_data <- mkSlave_EdgeFIFOF; method Action reset; f_wr_addr.clear; f_wr_data.clear; f_wr_resp.clear; f_rd_addr.clear; f_rd_data.clear; endmethod interface AXI4_Server_IFC server_side; interface i_wr_addr = to_FIFOF_I (f_wr_addr); interface i_wr_data = to_FIFOF_I (f_wr_data); interface o_wr_resp = to_FIFOF_O (f_wr_resp); interface i_rd_addr = to_FIFOF_I (f_rd_addr); interface o_rd_data = to_FIFOF_O (f_rd_data); endinterface interface AXI4_Client_IFC client_side; interface o_wr_addr = to_FIFOF_O (f_wr_addr); interface o_wr_data = to_FIFOF_O (f_wr_data); interface i_wr_resp = to_FIFOF_I (f_wr_resp); interface o_rd_addr = to_FIFOF_O (f_rd_addr); interface i_rd_data = to_FIFOF_I (f_rd_data); endinterface endmodule // ================================================================ // Master transactor interface interface AXI4_Master_Xactor_IFC #(numeric type wd_id, numeric type wd_addr, numeric type wd_data, numeric type wd_user); method Action reset; // AXI side interface AXI4_Master_IFC #(wd_id, wd_addr, wd_data, wd_user) axi_side; // FIFOF side interface FIFOF_I #(AXI4_Wr_Addr #(wd_id, wd_addr, wd_user)) i_wr_addr; interface FIFOF_I #(AXI4_Wr_Data #(wd_data, wd_user)) i_wr_data; interface FIFOF_O #(AXI4_Wr_Resp #(wd_id, wd_user)) o_wr_resp; interface FIFOF_I #(AXI4_Rd_Addr #(wd_id, wd_addr, wd_user)) i_rd_addr; interface FIFOF_O #(AXI4_Rd_Data #(wd_id, wd_data, wd_user)) o_rd_data; endinterface: AXI4_Master_Xactor_IFC // ---------------------------------------------------------------- // Master transactor // This version uses FIFOFs for total decoupling. module mkAXI4_Master_Xactor (AXI4_Master_Xactor_IFC #(wd_id, wd_addr, wd_data, wd_user)); Bool unguarded = True; Bool guarded = False; // These FIFOs are guarded on BSV side, unguarded on AXI side FIFOF #(AXI4_Wr_Addr #(wd_id, wd_addr, wd_user)) f_wr_addr <- mkGFIFOF (guarded, unguarded); FIFOF #(AXI4_Wr_Data #(wd_data, wd_user)) f_wr_data <- mkGFIFOF (guarded, unguarded); FIFOF #(AXI4_Wr_Resp #(wd_id, wd_user)) f_wr_resp <- mkGFIFOF (unguarded, guarded); FIFOF #(AXI4_Rd_Addr #(wd_id, wd_addr, wd_user)) f_rd_addr <- mkGFIFOF (guarded, unguarded); FIFOF #(AXI4_Rd_Data #(wd_id, wd_data, wd_user)) f_rd_data <- mkGFIFOF (unguarded, guarded); // ---------------------------------------------------------------- // INTERFACE method Action reset; f_wr_addr.clear; f_wr_data.clear; f_wr_resp.clear; f_rd_addr.clear; f_rd_data.clear; endmethod // AXI side interface axi_side = interface AXI4_Master_IFC; // Wr Addr channel method Bool m_awvalid = f_wr_addr.notEmpty; method Bit #(wd_id) m_awid = f_wr_addr.first.awid; method Bit #(wd_addr) m_awaddr = f_wr_addr.first.awaddr; method Bit #(8) m_awlen = f_wr_addr.first.awlen; method AXI4_Size m_awsize = f_wr_addr.first.awsize; method Bit #(2) m_awburst = f_wr_addr.first.awburst; method Bit #(1) m_awlock = f_wr_addr.first.awlock; method Bit #(4) m_awcache = f_wr_addr.first.awcache; method Bit #(3) m_awprot = f_wr_addr.first.awprot; method Bit #(4) m_awqos = f_wr_addr.first.awqos; method Bit #(4) m_awregion = f_wr_addr.first.awregion; method Bit #(wd_user) m_awuser = f_wr_addr.first.awuser; method Action m_awready (Bool awready); if (f_wr_addr.notEmpty && awready) f_wr_addr.deq; endmethod // Wr Data channel method Bool m_wvalid = f_wr_data.notEmpty; method Bit #(wd_data) m_wdata = f_wr_data.first.wdata; method Bit #(TDiv #(wd_data, 8)) m_wstrb = f_wr_data.first.wstrb; method Bool m_wlast = f_wr_data.first.wlast; method Bit #(wd_user) m_wuser = f_wr_data.first.wuser; method Action m_wready (Bool wready); if (f_wr_data.notEmpty && wready) f_wr_data.deq; endmethod // Wr Response channel method Action m_bvalid (Bool bvalid, Bit #(wd_id) bid, Bit #(2) bresp, Bit #(wd_user) buser); if (bvalid && f_wr_resp.notFull) f_wr_resp.enq (AXI4_Wr_Resp {bid: bid, bresp: bresp, buser: buser}); endmethod method Bool m_bready; return f_wr_resp.notFull; endmethod // Rd Addr channel method Bool m_arvalid = f_rd_addr.notEmpty; method Bit #(wd_id) m_arid = f_rd_addr.first.arid; method Bit #(wd_addr) m_araddr = f_rd_addr.first.araddr; method Bit #(8) m_arlen = f_rd_addr.first.arlen; method AXI4_Size m_arsize = f_rd_addr.first.arsize; method Bit #(2) m_arburst = f_rd_addr.first.arburst; method Bit #(1) m_arlock = f_rd_addr.first.arlock; method Bit #(4) m_arcache = f_rd_addr.first.arcache; method Bit #(3) m_arprot = f_rd_addr.first.arprot; method Bit #(4) m_arqos = f_rd_addr.first.arqos; method Bit #(4) m_arregion = f_rd_addr.first.arregion; method Bit #(wd_user) m_aruser = f_rd_addr.first.aruser; method Action m_arready (Bool arready); if (f_rd_addr.notEmpty && arready) f_rd_addr.deq; endmethod // Rd Data channel method Action m_rvalid (Bool rvalid, // in Bit #(wd_id) rid, // in Bit #(wd_data) rdata, // in Bit #(2) rresp, // in Bool rlast, // in Bit #(wd_user) ruser); // in if (rvalid && f_rd_data.notFull) f_rd_data.enq (AXI4_Rd_Data {rid: rid, rdata: rdata, rresp: rresp, rlast: rlast, ruser: ruser}); endmethod method Bool m_rready; return f_rd_data.notFull; endmethod endinterface; // FIFOF side interface i_wr_addr = to_FIFOF_I (f_wr_addr); interface i_wr_data = to_FIFOF_I (f_wr_data); interface o_wr_resp = to_FIFOF_O (f_wr_resp); interface i_rd_addr = to_FIFOF_I (f_rd_addr); interface o_rd_data = to_FIFOF_O (f_rd_data); endmodule: mkAXI4_Master_Xactor // ---------------------------------------------------------------- // Master transactor // This version uses crgs and regs instead of FIFOFs. // This uses 1/2 the resources, but introduces scheduling dependencies. module mkAXI4_Master_Xactor_2 (AXI4_Master_Xactor_IFC #(wd_id, wd_addr, wd_data, wd_user)); // Each crg_full, rg_data pair below represents a 1-element fifo. Array #(Reg #(Bool)) crg_wr_addr_full <- mkCReg (3, False); Reg #(AXI4_Wr_Addr #(wd_id, wd_addr, wd_user)) rg_wr_addr <- mkRegU; Array #(Reg #(Bool)) crg_wr_data_full <- mkCReg (3, False); Reg #(AXI4_Wr_Data #(wd_data, wd_user)) rg_wr_data <- mkRegU; Array #(Reg #(Bool)) crg_wr_resp_full <- mkCReg (3, False); Reg #(AXI4_Wr_Resp #(wd_id, wd_user)) rg_wr_resp <- mkRegU; Array #(Reg #(Bool)) crg_rd_addr_full <- mkCReg (3, False); Reg #(AXI4_Rd_Addr #(wd_id, wd_addr, wd_user)) rg_rd_addr <- mkRegU; Array #(Reg #(Bool)) crg_rd_data_full <- mkCReg (3, False); Reg #(AXI4_Rd_Data #(wd_id, wd_data, wd_user)) rg_rd_data <- mkRegU; // The following CReg port indexes specify the relative scheduling of: // {first,deq,notEmpty} {enq,notFull} clear // TODO: 'deq/enq/clear = 1/2/0' is unusual, but eliminates a // scheduling cycle in Piccolo's DCache. Normally should be 0/1/2. Integer port_deq = 1; Integer port_enq = 2; Integer port_clear = 0; // ---------------------------------------------------------------- // INTERFACE method Action reset; crg_wr_addr_full [port_clear] <= False; crg_wr_data_full [port_clear] <= False; crg_wr_resp_full [port_clear] <= False; crg_rd_addr_full [port_clear] <= False; crg_rd_data_full [port_clear] <= False; endmethod // AXI side interface axi_side = interface AXI4_Master_IFC; // Wr Addr channel method Bool m_awvalid = crg_wr_addr_full [port_deq]; method Bit #(wd_id) m_awid = rg_wr_addr.awid; method Bit #(wd_addr) m_awaddr = rg_wr_addr.awaddr; method Bit #(8) m_awlen = rg_wr_addr.awlen; method AXI4_Size m_awsize = rg_wr_addr.awsize; method Bit #(2) m_awburst = rg_wr_addr.awburst; method Bit #(1) m_awlock = rg_wr_addr.awlock; method Bit #(4) m_awcache = rg_wr_addr.awcache; method Bit #(3) m_awprot = rg_wr_addr.awprot; method Bit #(4) m_awqos = rg_wr_addr.awqos; method Bit #(4) m_awregion = rg_wr_addr.awregion; method Bit #(wd_user) m_awuser = rg_wr_addr.awuser; method Action m_awready (Bool awready); if (crg_wr_addr_full [port_deq] && awready) crg_wr_addr_full [port_deq] <= False; // deq endmethod // Wr Data channel method Bool m_wvalid = crg_wr_data_full [port_deq]; method Bit #(wd_data) m_wdata = rg_wr_data.wdata; method Bit #(TDiv #(wd_data, 8)) m_wstrb = rg_wr_data.wstrb; method Bool m_wlast = rg_wr_data.wlast; method Bit #(wd_user) m_wuser = rg_wr_data.wuser; method Action m_wready (Bool wready); if (crg_wr_data_full [port_deq] && wready) crg_wr_data_full [port_deq] <= False; endmethod // Wr Response channel method Action m_bvalid (Bool bvalid, Bit #(wd_id) bid, Bit #(2) bresp, Bit #(wd_user) buser); if (bvalid && (! (crg_wr_resp_full [port_enq]))) begin crg_wr_resp_full [port_enq] <= True; rg_wr_resp <= AXI4_Wr_Resp {bid: bid, bresp: bresp, buser: buser}; end endmethod method Bool m_bready; return (! (crg_wr_resp_full [port_enq])); endmethod // Rd Addr channel method Bool m_arvalid = crg_rd_addr_full [port_deq]; method Bit #(wd_id) m_arid = rg_rd_addr.arid; method Bit #(wd_addr) m_araddr = rg_rd_addr.araddr; method Bit #(8) m_arlen = rg_rd_addr.arlen; method AXI4_Size m_arsize = rg_rd_addr.arsize; method Bit #(2) m_arburst = rg_rd_addr.arburst; method Bit #(1) m_arlock = rg_rd_addr.arlock; method Bit #(4) m_arcache = rg_rd_addr.arcache; method Bit #(3) m_arprot = rg_rd_addr.arprot; method Bit #(4) m_arqos = rg_rd_addr.arqos; method Bit #(4) m_arregion = rg_rd_addr.arregion; method Bit #(wd_user) m_aruser = rg_rd_addr.aruser; method Action m_arready (Bool arready); if (crg_rd_addr_full [port_deq] && arready) crg_rd_addr_full [port_deq] <= False; // deq endmethod // Rd Data channel method Action m_rvalid (Bool rvalid, Bit #(wd_id) rid, Bit #(wd_data) rdata, Bit #(2) rresp, Bool rlast, Bit #(wd_user) ruser); if (rvalid && (! (crg_rd_data_full [port_enq]))) crg_rd_data_full [port_enq] <= True; rg_rd_data <= (AXI4_Rd_Data {rid: rid, rdata: rdata, rresp: rresp, rlast: rlast, ruser: ruser}); endmethod method Bool m_rready; return (! (crg_rd_data_full [port_enq])); endmethod endinterface; // FIFOF side interface i_wr_addr = fn_crg_and_rg_to_FIFOF_I (crg_wr_addr_full [port_enq], rg_wr_addr); interface i_wr_data = fn_crg_and_rg_to_FIFOF_I (crg_wr_data_full [port_enq], rg_wr_data); interface o_wr_resp = fn_crg_and_rg_to_FIFOF_O (crg_wr_resp_full [port_deq], rg_wr_resp); interface i_rd_addr = fn_crg_and_rg_to_FIFOF_I (crg_rd_addr_full [port_enq], rg_rd_addr); interface o_rd_data = fn_crg_and_rg_to_FIFOF_O (crg_rd_data_full [port_deq], rg_rd_data); endmodule: mkAXI4_Master_Xactor_2 // ================================================================ // Slave transactor interface interface AXI4_Slave_Xactor_IFC #(numeric type wd_id, numeric type wd_addr, numeric type wd_data, numeric type wd_user); method Action reset; // AXI side interface AXI4_Slave_IFC #(wd_id, wd_addr, wd_data, wd_user) axi_side; // FIFOF side interface FIFOF_O #(AXI4_Wr_Addr #(wd_id, wd_addr, wd_user)) o_wr_addr; interface FIFOF_O #(AXI4_Wr_Data #(wd_data, wd_user)) o_wr_data; interface FIFOF_I #(AXI4_Wr_Resp #(wd_id, wd_user)) i_wr_resp; interface FIFOF_O #(AXI4_Rd_Addr #(wd_id, wd_addr, wd_user)) o_rd_addr; interface FIFOF_I #(AXI4_Rd_Data #(wd_id, wd_data, wd_user)) i_rd_data; endinterface: AXI4_Slave_Xactor_IFC // ---------------------------------------------------------------- // Slave transactor // This version uses FIFOFs for total decoupling. module mkAXI4_Slave_Xactor (AXI4_Slave_Xactor_IFC #(wd_id, wd_addr, wd_data, wd_user)); Bool unguarded = True; Bool guarded = False; // These FIFOs are guarded on BSV side, unguarded on AXI side FIFOF #(AXI4_Wr_Addr #(wd_id, wd_addr, wd_user)) f_wr_addr <- mkGFIFOF (unguarded, guarded); FIFOF #(AXI4_Wr_Data #(wd_data, wd_user)) f_wr_data <- mkGFIFOF (unguarded, guarded); FIFOF #(AXI4_Wr_Resp #(wd_id, wd_user)) f_wr_resp <- mkGFIFOF (guarded, unguarded); FIFOF #(AXI4_Rd_Addr #(wd_id, wd_addr, wd_user)) f_rd_addr <- mkGFIFOF (unguarded, guarded); FIFOF #(AXI4_Rd_Data #(wd_id, wd_data, wd_user)) f_rd_data <- mkGFIFOF (guarded, unguarded); // ---------------------------------------------------------------- // INTERFACE method Action reset; f_wr_addr.clear; f_wr_data.clear; f_wr_resp.clear; f_rd_addr.clear; f_rd_data.clear; endmethod // AXI side interface axi_side = interface AXI4_Slave_IFC; // Wr Addr channel method Action m_awvalid (Bool awvalid, Bit #(wd_id) awid, Bit #(wd_addr) awaddr, Bit #(8) awlen, AXI4_Size awsize, Bit #(2) awburst, Bit #(1) awlock, Bit #(4) awcache, Bit #(3) awprot, Bit #(4) awqos, Bit #(4) awregion, Bit #(wd_user) awuser); if (awvalid && f_wr_addr.notFull) f_wr_addr.enq (AXI4_Wr_Addr {awid: awid, awaddr: awaddr, awlen: awlen, awsize: awsize, awburst: awburst, awlock: awlock, awcache: awcache, awprot: awprot, awqos: awqos, awregion: awregion, awuser: awuser}); endmethod method Bool m_awready; return f_wr_addr.notFull; endmethod // Wr Data channel method Action m_wvalid (Bool wvalid, Bit #(wd_data) wdata, Bit #(TDiv #(wd_data, 8)) wstrb, Bool wlast, Bit #(wd_user) wuser); if (wvalid && f_wr_data.notFull) f_wr_data.enq (AXI4_Wr_Data {wdata: wdata, wstrb: wstrb, wlast: wlast, wuser: wuser}); endmethod method Bool m_wready; return f_wr_data.notFull; endmethod // Wr Response channel method Bool m_bvalid = f_wr_resp.notEmpty; method Bit #(wd_id) m_bid = f_wr_resp.first.bid; method Bit #(2) m_bresp = f_wr_resp.first.bresp; method Bit #(wd_user) m_buser = f_wr_resp.first.buser; method Action m_bready (Bool bready); if (bready && f_wr_resp.notEmpty) f_wr_resp.deq; endmethod // Rd Addr channel method Action m_arvalid (Bool arvalid, Bit #(wd_id) arid, Bit #(wd_addr) araddr, Bit #(8) arlen, AXI4_Size arsize, Bit #(2) arburst, Bit #(1) arlock, Bit #(4) arcache, Bit #(3) arprot, Bit #(4) arqos, Bit #(4) arregion, Bit #(wd_user) aruser); if (arvalid && f_rd_addr.notFull) f_rd_addr.enq (AXI4_Rd_Addr {arid: arid, araddr: araddr, arlen: arlen, arsize: arsize, arburst: arburst, arlock: arlock, arcache: arcache, arprot: arprot, arqos: arqos, arregion: arregion, aruser: aruser}); endmethod method Bool m_arready; return f_rd_addr.notFull; endmethod // Rd Data channel method Bool m_rvalid = f_rd_data.notEmpty; method Bit #(wd_id) m_rid = f_rd_data.first.rid; method Bit #(wd_data) m_rdata = f_rd_data.first.rdata; method Bit #(2) m_rresp = f_rd_data.first.rresp; method Bool m_rlast = f_rd_data.first.rlast; method Bit #(wd_user) m_ruser = f_rd_data.first.ruser; method Action m_rready (Bool rready); if (rready && f_rd_data.notEmpty) f_rd_data.deq; endmethod endinterface; // FIFOF side interface o_wr_addr = to_FIFOF_O (f_wr_addr); interface o_wr_data = to_FIFOF_O (f_wr_data); interface i_wr_resp = to_FIFOF_I (f_wr_resp); interface o_rd_addr = to_FIFOF_O (f_rd_addr); interface i_rd_data = to_FIFOF_I (f_rd_data); endmodule: mkAXI4_Slave_Xactor // ---------------------------------------------------------------- // Slave transactor // This version uses crgs and regs instead of FIFOFs. // This uses 1/2 the resources, but introduces scheduling dependencies. module mkAXI4_Slave_Xactor_2 (AXI4_Slave_Xactor_IFC #(wd_id, wd_addr, wd_data, wd_user)); // Each crg_full, rg_data pair below represents a 1-element fifo. // These FIFOs are guarded on BSV side, unguarded on AXI side Array #(Reg #(Bool)) crg_wr_addr_full <- mkCReg (3, False); Reg #(AXI4_Wr_Addr #(wd_id, wd_addr, wd_user)) rg_wr_addr <- mkRegU; Array #(Reg #(Bool)) crg_wr_data_full <- mkCReg (3, False); Reg #(AXI4_Wr_Data #(wd_data, wd_user)) rg_wr_data <- mkRegU; Array #(Reg #(Bool)) crg_wr_resp_full <- mkCReg (3, False); Reg #(AXI4_Wr_Resp #(wd_id, wd_user)) rg_wr_resp <- mkRegU; Array #(Reg #(Bool)) crg_rd_addr_full <- mkCReg (3, False); Reg #(AXI4_Rd_Addr #(wd_id, wd_addr, wd_user)) rg_rd_addr <- mkRegU; Array #(Reg #(Bool)) crg_rd_data_full <- mkCReg (3, False); Reg #(AXI4_Rd_Data #(wd_id, wd_data, wd_user)) rg_rd_data <- mkRegU; // The following CReg port indexes specify the relative scheduling of: // {first,deq,notEmpty} {enq,notFull} clear Integer port_deq = 0; Integer port_enq = 1; Integer port_clear = 2; // ---------------------------------------------------------------- // INTERFACE method Action reset; crg_wr_addr_full [port_clear] <= False; crg_wr_data_full [port_clear] <= False; crg_wr_resp_full [port_clear] <= False; crg_rd_addr_full [port_clear] <= False; crg_rd_data_full [port_clear] <= False; endmethod // AXI side interface axi_side = interface AXI4_Slave_IFC; // Wr Addr channel method Action m_awvalid (Bool awvalid, Bit #(wd_id) awid, Bit #(wd_addr) awaddr, Bit #(8) awlen, AXI4_Size awsize, Bit #(2) awburst, Bit #(1) awlock, Bit #(4) awcache, Bit #(3) awprot, Bit #(4) awqos, Bit #(4) awregion, Bit #(wd_user) awuser); if (awvalid && (! crg_wr_addr_full [port_enq])) begin crg_wr_addr_full [port_enq] <= True; // enq rg_wr_addr <= AXI4_Wr_Addr {awid: awid, awaddr: awaddr, awlen: awlen, awsize: awsize, awburst: awburst, awlock: awlock, awcache: awcache, awprot: awprot, awqos: awqos, awregion: awregion, awuser: awuser}; end endmethod method Bool m_awready; return (! crg_wr_addr_full [port_enq]); endmethod // Wr Data channel method Action m_wvalid (Bool wvalid, Bit #(wd_data) wdata, Bit #(TDiv #(wd_data, 8)) wstrb, Bool wlast, Bit #(wd_user) wuser); if (wvalid && (! crg_wr_data_full [port_enq])) begin crg_wr_data_full [port_enq] <= True; // enq rg_wr_data <= AXI4_Wr_Data {wdata: wdata, wstrb: wstrb, wlast: wlast, wuser: wuser}; end endmethod method Bool m_wready; return (! crg_wr_data_full [port_enq]); endmethod // Wr Response channel method Bool m_bvalid = crg_wr_resp_full [port_deq]; method Bit #(wd_id) m_bid = rg_wr_resp.bid; method Bit #(2) m_bresp = rg_wr_resp.bresp; method Bit #(wd_user) m_buser = rg_wr_resp.buser; method Action m_bready (Bool bready); if (bready && crg_wr_resp_full [port_deq]) crg_wr_resp_full [port_deq] <= False; // deq endmethod // Rd Addr channel method Action m_arvalid (Bool arvalid, Bit #(wd_id) arid, Bit #(wd_addr) araddr, Bit #(8) arlen, AXI4_Size arsize, Bit #(2) arburst, Bit #(1) arlock, Bit #(4) arcache, Bit #(3) arprot, Bit #(4) arqos, Bit #(4) arregion, Bit #(wd_user) aruser); if (arvalid && (! crg_rd_addr_full [port_enq])) begin crg_rd_addr_full [port_enq] <= True; // enq rg_rd_addr <= AXI4_Rd_Addr {arid: arid, araddr: araddr, arlen: arlen, arsize: arsize, arburst: arburst, arlock: arlock, arcache: arcache, arprot: arprot, arqos: arqos, arregion: arregion, aruser: aruser}; end endmethod method Bool m_arready; return (! crg_rd_addr_full [port_enq]); endmethod // Rd Data channel method Bool m_rvalid = crg_rd_data_full [port_deq]; method Bit #(wd_id) m_rid = rg_rd_data.rid; method Bit #(wd_data) m_rdata = rg_rd_data.rdata; method Bit #(2) m_rresp = rg_rd_data.rresp; method Bool m_rlast = rg_rd_data.rlast; method Bit #(wd_user) m_ruser = rg_rd_data.ruser; method Action m_rready (Bool rready); if (rready && crg_rd_data_full [port_deq]) crg_rd_data_full [port_deq] <= False; // deq endmethod endinterface; // FIFOF side interface o_wr_addr = fn_crg_and_rg_to_FIFOF_O (crg_wr_addr_full [port_deq], rg_wr_addr); interface o_wr_data = fn_crg_and_rg_to_FIFOF_O (crg_wr_data_full [port_deq], rg_wr_data); interface i_wr_resp = fn_crg_and_rg_to_FIFOF_I (crg_wr_resp_full [port_enq], rg_wr_resp); interface o_rd_addr = fn_crg_and_rg_to_FIFOF_O (crg_rd_addr_full [port_deq], rg_rd_addr); interface i_rd_data = fn_crg_and_rg_to_FIFOF_I (crg_rd_data_full [port_enq], rg_rd_data); endmodule: mkAXI4_Slave_Xactor_2 // ================================================================ endpackage ",16193,True,3091.417443642671,median " // Copyright (c) 2017 Massachusetts Institute of Technology // //- // RVFI_DII + CHERI modifications: // Copyright (c) 2020 Alexandre Joannou // Copyright (c) 2020 Peter Rugg // Copyright (c) 2020 Jonathan Woodruff // All rights reserved. // // This software was developed by SRI International and the University of // Cambridge Computer Laboratory (Department of Computer Science and // Technology) under DARPA contract HR0011-18-C-0016 (""ECATS""), as part of the // DARPA SSITH research programme. // // This work was supported by NCSC programme grant 4212611/RFA 15971 (""SafeBet""). //- // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the ""Software""), to deal in the Software without // restriction, including without limitation the rights to use, copy, // modify, merge, publish, distribute, sublicense, and/or sell copies // of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS // BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. `include ""ProcConfig.bsv"" import Vector::*; import BuildVector::*; import GetPut::*; import ClientServer::*; import Cntrs::*; import Fifos::*; import Ehr::*; import Types::*; import ProcTypes::*; import MemoryTypes::*; import SynthParam::*; import Exec::*; import Performance::*; import ReservationStationEhr::*; import ReservationStationMem::*; import ReorderBuffer::*; import TlbTypes::*; import DTlb::*; import SplitLSQ::*; //import SerialLSQ::*; import StoreBuffer::*; import HasSpecBits::*; import SpecFifo::*; import SpecPoisonFifo::*; import CCTypes::*; import L1CoCache::*; import Bypass::*; import LatencyTimer::*; import CHERICap::*; import CHERICC_Fat::*; import ISA_Decls_CHERI::*; import CacheUtils::*; `ifdef PERFORMANCE_MONITORING import PerformanceMonitor::*; import BlueUtils::*; `endif import Cur_Cycle :: *; typedef struct { // inst info MemFunc mem_func; ImmData imm; PhyRegs regs; InstTag tag; LdStQTag ldstq_tag; CapChecks cap_checks; Bool ddc_offset; } MemDispatchToRegRead deriving(Bits, Eq, FShow); typedef struct { // inst info MemFunc mem_func; ImmData imm; InstTag tag; LdStQTag ldstq_tag; // src reg vals CapPipe rVal1; CapPipe rVal2; CapChecks cap_checks; } MemRegReadToExe deriving(Bits, FShow); typedef struct { // inst info MemFunc mem_func; InstTag tag; LdStQTag ldstq_tag; // result ByteOrTagEn shiftedBE; CapPipe vaddr; // virtual addr `ifdef INCLUDE_TANDEM_VERIF // for those mem instrs that store data Data store_data; ByteEn store_data_BE; `endif Bool misaligned; Bool capStore; Bool allowCap; Maybe#(CSR_XCapCause) capException; Maybe#(BoundsCheck) check; } MemExeToFinish deriving(Bits, FShow); // bookkeeping when waiting for MMIO resp which may cause exception typedef struct { Bool isLd; } WaitMMIOResp deriving(Bits, Eq, FShow); typedef union tagged { void Invalid; void Lr; void ScAmo; WaitMMIOResp MMIO; } WaitLrScAmoMMIOResp deriving(Bits, Eq, FShow); typedef enum { None, Lr, LdMMIO, Fence, ScAmo, StMMIO, System } WaitReconcile deriving(Bits, Eq, FShow); typedef struct { LineMemDataOffset offset; MemDataByteEn shiftedBE; MemTaggedData shiftedData; } WaitStResp deriving(Bits, Eq, FShow); // synthesized pipeline fifos typedef SpecFifo_SB_deq_enq_C_deq_enq#(1, MemDispatchToRegRead) MemDispToRegFifo; (* synthesize *) module mkMemDispToRegFifo(MemDispToRegFifo); let m <- mkSpecFifo_SB_deq_enq_C_deq_enq(False); return m; endmodule typedef SpecFifo_SB_deq_enq_C_deq_enq#(1, MemRegReadToExe) MemRegToExeFifo; (* synthesize *) module mkMemRegToExeFifo(MemRegToExeFifo); let m <- mkSpecFifo_SB_deq_enq_C_deq_enq(False); return m; endmodule typedef DTlb#(MemExeToFinish) DTlbSynth; (* synthesize *) module mkDTlbSynth(DTlbSynth); function TlbReq getTlbReq(MemExeToFinish x); return TlbReq { addr: getAddr(x.vaddr), write: (case(x.mem_func) St, Sc, Amo: True; default: False; endcase), cap: x.capStore }; endfunction let m <- mkDTlb(getTlbReq); return m; endmodule interface MemExeInput; // conservative scoreboard check in reg read stage method RegsReady sbCons_lazyLookup(PhyRegs r); // Phys reg file method CapPipe rf_rd1(PhyRIndx rindx); method CapPipe rf_rd2(PhyRIndx rindx); // CSR file method Data csrf_rd(CSR csr); // Special Capability Register file. method CapReg scaprf_rd(SCR csr); // ROB method CapMem rob_getPC(InstTag t); method Action rob_setExecuted_doFinishMem(InstTag t, Addr vaddr, `ifdef INCLUDE_TANDEM_VERIF Data store_data, ByteEn store_data_BE, `endif Bool access_at_commit, Bool non_mmio_st_done `ifdef RVFI , ExtraTraceBundle tb `endif ); `ifdef INCLUDE_TANDEM_VERIF method Action rob_setExecuted_doFinishMem_RegData (InstTag t, Data dst_data); `endif method Action rob_setExecuted_deqLSQ(InstTag t, Maybe#(Trap) cause, Maybe#(LdKilledBy) ld_killed `ifdef RVFI , ExtraTraceBundle tb `endif ); // MMIO method Bool isMMIOAddr(Addr a); method Action mmioReq(MMIOCRq r); method MMIODataPRs mmioRespVal; method Action mmioRespDeq; // global broadcast methods // set aggressive sb & wake up RS method Action setRegReadyAggr_mem(PhyRIndx dst); method Action setRegReadyAggr_forward(PhyRIndx dst); // write reg file & set conservative sb method Action writeRegFile(PhyRIndx dst, CapPipe data); // performance method Bool doStats; endinterface interface MemExePipeline; // recv bypass from exe and finish stages of each ALU pipeline interface Vector#(TMul#(2, AluExeNum), RecvBypass) recvBypass; interface ReservationStationMem rsMemIfc; interface DTlbSynth dTlbIfc; interface SplitLSQ lsqIfc; interface StoreBuffer stbIfc; interface DCoCache dMemIfc; interface SpeculationUpdate specUpdate; `ifdef SELF_INV_CACHE interface Server#(void, void) reconcile; `endif method Data getPerf(ExeStagePerfType t); `ifdef PERFORMANCE_MONITORING method EventsCoreMem events; `endif endinterface module mkMemExePipeline#(MemExeInput inIfc)(MemExePipeline); Bool verbose = True; // we change cache request in case of single core, becaues our MSI protocol // is not good with single core Bool multicore = valueof(CoreNum) > 1; // load/store memory total latency (max 1K cycle latency for 1 Ld/St) // These are always included as they are used by both stat counter systems. LatencyTimer#(LdQSize, 10) ldMemLatTimer <- mkLatencyTimer; LatencyTimer#(SBSize, 10) stMemLatTimer <- mkLatencyTimer; `ifdef PERF_COUNT // load issue stall Count#(Data) exeLdStallByLdCnt <- mkCount(0); Count#(Data) exeLdStallByStCnt <- mkCount(0); Count#(Data) exeLdStallBySBCnt <- mkCount(0); // load forward count Count#(Data) exeLdForwardCnt <- mkCount(0); // load/store memory total latency (max 1K cycle latency for 1 Ld/St) Count#(Data) exeLdMemLat <- mkCount(0); Count#(Data) exeStMemLat <- mkCount(0); // load to use latency: dispatch to resp LatencyTimer#(LdQSize, 10) ldToUseLatTimer <- mkLatencyTimer; Count#(Data) exeLdToUseLat <- mkCount(0); Count#(Data) exeLdToUseCnt <- mkCount(0); // number of Ld resp written to reg file // address translate exception Count#(Data) exeTlbExcepCnt <- mkCount(0); // successful store-cond Count#(Data) exeScSuccessCnt <- mkCount(0); // fence count Count#(Data) exeLrScAmoAcqCnt <- mkCount(0); Count#(Data) exeLrScAmoRelCnt <- mkCount(0); Count#(Data) exeFenceCnt <- mkCount(0); Count#(Data) exeFenceAcqCnt <- mkCount(0); Count#(Data) exeFenceRelCnt <- mkCount(0); `endif `ifdef PERFORMANCE_MONITORING Array #(Reg #(EventsCoreMem)) events_reg <- mkDRegOR (5, unpack (0)); `endif // reservation station ReservationStationMem rsMem <- mkReservationStationMem; // pipeline fifos let dispToRegQ <- mkMemDispToRegFifo; let regToExeQ <- mkMemRegToExeFifo; // wire to recv bypass Vector#(TMul#(2, AluExeNum), RWire#(Tuple2#(PhyRIndx, CapPipe))) bypassWire <- replicateM(mkRWire); // TLB DTlbSynth dTlb <- mkDTlbSynth; // store buffer only used in WEAK model `ifdef TSO_MM StoreBuffer stb <- mkDummyStoreBuffer; `else StoreBuffer stb <- mkStoreBufferEhr; `endif // LSQ SplitLSQ lsq <- mkSplitLSQ; // wire to issue Ld which just finish addr tranlation RWire#(LSQIssueLdInfo) issueLd <- mkRWire; // waiting bit for Lr/Sc/Amo/MMIO resp Reg#(WaitLrScAmoMMIOResp) waitLrScAmoMMIOResp <- mkReg(Invalid); `ifdef TSO_MM // TSO only: waiting for store resp; use **1-element** CF FIFO to make // store blocking and avoid conflict between pipelineResp_cRq and // doDeqStQ_St_Mem_issue Fifo#(1, WaitStResp) waitStRespQ <- mkCFFifo; `endif // fifo for req mem Fifo#(1, Tuple3#(LdQTag, Addr, Bool)) reqLdQ <- mkBypassFifo; Fifo#(1, ProcRq#(DProcReqId)) reqLrScAmoQ <- mkBypassFifo; `ifdef TSO_MM Fifo#(1, Addr) reqStQ <- mkBypassFifo; `else Fifo#(1, Tuple2#(SBIndex, Addr)) reqStQ <- mkBypassFifo; `endif // fifo for load result Fifo#(2, Tuple2#(LdQTag, MemResp)) forwardQ <- mkCFFifo; Fifo#(2, Tuple2#(LdQTag, MemResp)) memRespLdQ <- mkCFFifo; // fifo for Lr/Sc/Amo resp Fifo#(1, MemResp) respLrScAmoQ <- mkCFFifo; // resp ifc to D$ L1ProcResp#(DProcReqId) procRespIfc = (interface L1ProcResp; method Action respLd(DProcReqId id, MemTaggedData d); LdQTag tag = truncate(id); memRespLdQ.enq(tuple2(tag, d)); // early wake up RS and set SB // this is done only when the resp is not wrong path LSQHitInfo info <- lsq.getHit(Ld (tag)); if(info.dst matches tagged Valid .dst &&& !info.waitWPResp) begin inIfc.setRegReadyAggr_mem(dst.indx); end if(verbose) begin $display(""%t : [Ld resp] "", $time, fshow(id), ""; "", fshow(d), ""; "", fshow(info)); end // perf: load mem latency let lat <- ldMemLatTimer.done(tag); `ifdef PERF_COUNT if(inIfc.doStats) begin exeLdMemLat.incr(zeroExtend(lat)); end `endif `ifdef PERFORMANCE_MONITORING EventsCoreMem events = unpack(0); events.evt_LOAD_WAIT = saturating_truncate(lat); events.evt_MEM_CAP_LOAD_TAG_SET = (d.tag) ? 1 : 0; events_reg[1] <= events; `endif endmethod method Action respLrScAmo(DProcReqId id, MemTaggedData d); respLrScAmoQ.enq(d); if(verbose) begin $display(""[Lr/Sc/Amo resp] "", fshow(id), ""; "", fshow(d)); end endmethod `ifdef TSO_MM method ActionValue#(Tuple2#(LineByteEn, Line)) respSt(DProcReqId id); lsq.deqSt; // deq here let waitSt <- toGet(waitStRespQ).get; if(verbose) begin $display(""[Store resp] idx "", fshow(id), "", "", fshow(waitSt)); end // perf: store mem latency let lat <- stMemLatTimer.done(0); `ifdef PERF_COUNT if(inIfc.doStats) begin exeStMemLat.incr(zeroExtend(lat)); end `endif `ifdef PERFORMANCE_MONITORING EventsCoreMem events = unpack(0); if (pack(waitSt.shiftedBE) == -1) events.evt_MEM_CAP_STORE = 1; events.evt_STORE_WAIT = saturating_truncate(lat); events_reg[2] <= events; `endif // now figure out the data to be written CLineMemDataByteEn be = replicate(replicate(False)); Line data = unpack(0); be[waitSt.offset] = waitSt.shiftedBE; data.data[waitSt.offset] = waitSt.shiftedData.data; data.tag[waitSt.offset] = waitSt.shiftedData.tag; return tuple2(unpack(pack(be)), data); endmethod `else method ActionValue#(Tuple2#(LineByteEn, Line)) respSt(DProcReqId id); SBIndex idx = truncate(id); let e <- stb.deq(idx); // deq SB lsq.wakeupLdStalledBySB(idx); // wake up loads if(verbose) $display(""[Store resp] idx = %x, "", idx, fshow(e)); // perf: store mem latency let lat <- stMemLatTimer.done(idx); `ifdef PERF_COUNT if(inIfc.doStats) begin exeStMemLat.incr(zeroExtend(lat)); end `endif `ifdef PERFORMANCE_MONITORING EventsCoreMem events = unpack(0); if (pack(e.byteEn) == -1) events.evt_MEM_CAP_STORE = 1; events.evt_STORE_WAIT = saturating_truncate(lat); events_reg[2] <= events; `endif return tuple2(unpack(pack(e.byteEn)), e.line); // return SB entry endmethod `endif method Action evict(LineAddr lineAddr); `ifdef TSO_MM if(verbose) $display(""[cache evict] "", fshow(lineAddr)); lsq.cacheEvict(lineAddr); `else noAction; `endif endmethod endinterface); // non-blocking coherent D$ DCoCache dMem <- mkDCoCache(procRespIfc); `ifdef SELF_INV_CACHE // Waiting bit for reconcile to be performed. We set the bit and start // reconcile when we are about to deq an acquire from LSQ. The deq happens // only after reconcile is done. XXX Note that mem resp of Lr/Sc/Amo/MMIO // will not be dequeued unitl cache is reconciled if the Lr/Sc/Amo/MMIO // carries the .aq bit. However, since we only have 1 Lr/Sc/Amo/MMIO in // flight (which is always non-speculative), this won't block the cache or // network. Reg#(WaitReconcile) waitReconcile <- mkReg(None); `endif //======================================================= // Reservation Station Stuff //======================================================= rule doDispatchMem; rsMem.doDispatch; let x = rsMem.dispatchData; if(verbose) $display(""[doDispatchMem] "", fshow(x)); // check store not having dst reg: this is for setting store to be // executed after address transation doAssert(!(x.data.mem_func == St && isValid(x.regs.dst)), ""St cannot have dst reg""); // go to next stage dispToRegQ.enq(ToSpecFifo { data: MemDispatchToRegRead { mem_func: x.data.mem_func, imm: x.data.imm, regs: x.regs, tag: x.tag, ldstq_tag: x.data.ldstq_tag, cap_checks: x.data.cap_checks, ddc_offset: x.data.ddc_offset }, spec_bits: x.spec_bits }); `ifdef PERF_COUNT // perf: load to use latency if(x.data.ldstq_tag matches tagged Ld .idx) begin ldToUseLatTimer.start(idx); end `endif endrule rule doRegReadMem; dispToRegQ.deq; let dispToReg = dispToRegQ.first; let x = dispToReg.data; if(verbose) $display(""[doRegReadMem] "", fshow(dispToReg)); // check conservative scoreboard let regsReady = inIfc.sbCons_lazyLookup(x.regs); CapPipe ddc = cast(inIfc.scaprf_rd(scrAddrDDC)); // get rVal1 (check bypass) CapPipe rVal1 = nullCap; if(x.regs.src1 matches tagged Valid .src1 &&& src1 != 0) begin rVal1 <- readRFBypass(src1, regsReady.src1, inIfc.rf_rd1(src1), bypassWire); end if (x.ddc_offset) rVal1 = incOffset(ddc, getAddr(rVal1)).value; // get rVal2 (check bypass) CapPipe rVal2 = nullCap; if(x.regs.src2 matches tagged Valid .src2 &&& src2 != 0) begin rVal2 <- readRFBypass(src2, regsReady.src2, inIfc.rf_rd2(src2), bypassWire); end // go to next stage regToExeQ.enq(ToSpecFifo { data: MemRegReadToExe { mem_func: x.mem_func, imm: x.imm, tag: x.tag, ldstq_tag: x.ldstq_tag, rVal1: rVal1, rVal2: rVal2, cap_checks: x.cap_checks }, spec_bits: dispToReg.spec_bits }); endrule `ifdef RVFI_DII Vector#(TExp#(SizeOf#(LdStQTag)), Reg#(Data)) memData <- replicateM(mkReg(?)); `endif rule doExeMem; regToExeQ.deq; let regToExe = regToExeQ.first; let x = regToExe.data; if(verbose) $display(""[doExeMem] "", fshow(regToExe)); // get virtual addr & St/Sc/Amo data CapPipe vaddr = modifyOffset(x.rVal1, signExtend(x.imm), True).value; CapPipe data = x.rVal2; MemTaggedData toMemData = unpack(pack(toMem(data))); `ifdef RVFI_DII memData[pack(x.ldstq_tag)] <= getAddr(data); $display(""%t : memData[%x] <= %x"", $time(), pack(x.ldstq_tag), getAddr(data)); `endif // get shifted data and BE // we can use virtual addr to shift, since page size > dword size ByteOrTagEn origBE = lsq.getOrigBE(x.ldstq_tag); function Tuple2#(MemDataByteEn, MemTaggedData) getShiftedBEData( Addr addr, MemDataByteEn be, MemTaggedData d); Bit#(TLog#(MemDataBytes)) byteOffset = truncate(addr); return tuple2(unpack(pack(be) << byteOffset), MemTaggedData { tag: (byteOffset == 0 && be == replicate(True)) ? d.tag : False , data: unpack(pack(d.data) << {byteOffset, 3'b0})}); endfunction let {shiftBEData, shiftData} = getShiftedBEData(getAddr(vaddr), origBE.DataMemAccess, toMemData); let shiftBE = DataMemAccess(shiftBEData); if (origBE == TagMemAccess) begin shiftBE = TagMemAccess; end // update LSQ data now if(x.ldstq_tag matches tagged St .stTag) begin MemTaggedData d = x.mem_func == Amo ? toMemData : shiftData; // XXX don't shift for AMO lsq.updateData(stTag, d); `ifdef PERFORMANCE_MONITORING EventsCoreMem events = unpack(0); events.evt_MEM_CAP_STORE_TAG_SET = (d.tag) ? 1 : 0; events_reg[4] <= events; `endif end CapPipe ddc = cast(inIfc.scaprf_rd(scrAddrDDC)); // get size of the access Bit#(TAdd#(CacheUtils::LogCLineNumMemDataBytes,1)) accessByteCount = zeroExtend(pack(countOnes(pack(origBE.DataMemAccess)))); if (origBE == TagMemAccess) begin accessByteCount = fromInteger(valueOf(CacheUtils::CLineNumMemDataBytes)); end // go to next stage by sending to TLB dTlb.procReq(DTlbReq { inst: MemExeToFinish { mem_func: x.mem_func, tag: x.tag, ldstq_tag: x.ldstq_tag, shiftedBE: shiftBE, vaddr: vaddr, `ifdef INCLUDE_TANDEM_VERIF store_data: data, store_data_BE: origBE, `endif misaligned: memAddrMisaligned(getAddr(vaddr), origBE), capStore: isValidCap(data) && origBE == DataMemAccess(unpack(~0)), allowCap: getHardPerms(x.rVal1).permitLoadCap, capException: capChecksMem(x.rVal1, x.rVal2, x.cap_checks, x.mem_func, origBE), check: prepareBoundsCheck(x.rVal1, x.rVal2, almightyCap/*ToDo: pcc*/, ddc, getAddr(vaddr), accessByteCount, x.cap_checks) }, specBits: regToExe.spec_bits }); endrule rule doFinishMem; dTlb.deqProcResp; let dTlbResp = dTlb.procResp; let x = dTlbResp.inst; let {paddr, expCause, allowCapPTE} = dTlbResp.resp; Maybe#(Trap) cause = Invalid; if (expCause matches tagged Valid .c) cause = Valid(Exception(c)); `ifdef RVFI_DII // TestRIG expects us throw an access fault for any memory access outside of a 8 MiB memory at 0x8000000. if (!isValid(cause) && (paddr < 'h80000000 || paddr >= 'h80800000)) begin case(x.mem_func) Ld, Lr: begin cause = Valid(Exception(excLoadAccessFault)); end default: begin cause = Valid(Exception(excStoreAccessFault)); end endcase end `endif if(verbose) $display(""[doFinishMem] "", fshow(dTlbResp)); if(isValid(cause) && verbose) $display("" [doFinishMem - dTlb response] PAGEFAULT!""); Data store_data = ?; ByteEn store_data_BE = ?; `ifdef INCLUDE_TANDEM_VERIF store_data = x.store_data; store_data_BE = x.store_data_BE; `endif // check misalignment if(!isValid(cause) && x.misaligned) begin case(x.mem_func) Ld, Lr: begin cause = Valid(Exception(excLoadAddrMisaligned)); end default: begin cause = Valid(Exception(excStoreAddrMisaligned)); end endcase end // check if addr is MMIO (only valid in case of no page fault) Bool isMMIO = inIfc.isMMIOAddr(paddr); // raise access fault in case of MMIO Lr/Sc if(!isValid(cause) && isMMIO) begin case(x.mem_func) Lr: begin cause = Valid(Exception(excLoadAccessFault)); end Sc: begin cause = Valid(Exception(excStoreAccessFault)); end endcase end // update ROB (access at commit and non-mmio st done can only be true // when there is no exceptio) Bool isLrScAmo = (case(x.mem_func) Lr, Sc, Amo: True; default: False; endcase); if (x.check matches tagged Valid .check &&& x.capException matches tagged Invalid) begin if (!( (check.check_low >= check.authority_base) && (check.check_inclusive ? (check.check_high <= check.authority_top ) : (check.check_high < check.authority_top )))) x.capException = Valid(CSR_XCapCause{cheri_exc_reg: check.authority_idx, cheri_exc_code: cheriExcLengthViolation}); end if (x.capException matches tagged Valid .c) cause = Valid(CapException(c)); Bool access_at_commit = !isValid(cause) && (isMMIO || isLrScAmo); Bool non_mmio_st_done = !isValid(cause) && !isMMIO && x.mem_func == St; inIfc.rob_setExecuted_doFinishMem(x.tag, getAddr(x.vaddr), `ifdef INCLUDE_TANDEM_VERIF store_data, store_data_BE, `endif access_at_commit, non_mmio_st_done `ifdef RVFI , ExtraTraceBundle{ regWriteData: memData[pack(x.ldstq_tag)], memByteEn: unpack(truncate(pack(x.shiftedBE.DataMemAccess) >> getAddr(x.vaddr)[3:0])) } `endif ); // update LSQ LSQUpdateAddrResult updRes <- lsq.updateAddr( x.ldstq_tag, cause, x.allowCap && allowCapPTE, paddr, isMMIO, x.shiftedBE ); // issue non-MMIO Ld which has no exception and is not waiting for // wrong path resp if (x.mem_func == Ld && !isMMIO && !isValid(cause) && !updRes.waitWPResp && !updRes.delayIssue) begin LdQTag ldTag = ?; if(x.ldstq_tag matches tagged Ld .t) begin ldTag = t; end else begin doAssert(False, ""must be in LdQ""); end issueLd.wset(LSQIssueLdInfo { tag: ldTag, paddr: paddr, shiftedBE: x.shiftedBE }); end `ifdef PERF_COUNT if(isValid(cause) && inIfc.doStats) begin exeTlbExcepCnt.incr(1); end `endif endrule //======================================================= // End of Reservation Station Stuff //======================================================= //======================================================= // Load/Store Queue Stuff //======================================================= // send Ld to forward or memory function Action doIssueLd(LSQIssueLdInfo info, Bool fromIssueQ); action // search SB only in WEAK model `ifdef TSO_MM let sbRes = SBSearchRes { matchIdx: Invalid, forwardData: Invalid }; `else SBSearchRes sbRes = stb.search(info.paddr, info.shiftedBE); `endif `ifdef PERFORMANCE_MONITORING EventsCoreMem events = unpack(0); if (info.shiftedBE == DataMemAccess (unpack(~0))) events.evt_MEM_CAP_LOAD = 1; `endif // search LSQ LSQIssueLdResult issRes <- lsq.issueLd(info.tag, info.paddr, info.shiftedBE, sbRes); if(verbose) begin $display(""[doIssueLd] fromIssueQ: "", fshow(fromIssueQ), "" ; "", fshow(info), "" ; "", fshow(sbRes), "" ; "", fshow(issRes)); end // summarize if(issRes matches tagged Forward .forward) begin forwardQ.enq(tuple2(info.tag, forward.data)); // early wake up if(forward.dst matches tagged Valid .dst) begin inIfc.setRegReadyAggr_forward(dst.indx); end `ifdef PERF_COUNT // perf: load forward if(inIfc.doStats) begin exeLdForwardCnt.incr(1); end `endif end else if(issRes == ToCache) begin reqLdQ.enq(tuple3(zeroExtend(info.tag), info.paddr, info.shiftedBE == TagMemAccess)); // perf: load mem latency ldMemLatTimer.start(info.tag); end else if(issRes matches tagged Stall .stallBy) begin `ifdef PERF_COUNT // perf: load stall if(inIfc.doStats) begin case(stallBy) LdQ: exeLdStallByLdCnt.incr(1); StQ: exeLdStallByStCnt.incr(1); SB: exeLdStallBySBCnt.incr(1); default: doAssert(False, ""unknow stall reason""); endcase end `endif end else begin doAssert(False, ""load is stalled""); end `ifdef PERFORMANCE_MONITORING events_reg[0] <= events; `endif endaction endfunction rule doIssueLdFromIssueQ; // get issue entry from LSQ LSQIssueLdInfo info <- lsq.getIssueLd; doIssueLd(info, True); endrule // we have ordered setRegReadyAggr_forward < setRegReadyAggr_mem to make // issue rule and cache resp rule to fire concurrently in weak model. // However, in TSO, when doAssert is removed in FPGA synthesis, lsq.deqLd // and lsq.issueLd are conflict-free with each other. This makes // doDeqLdQ_XX_deq rules ordered after doIssueLdFromXX rules, and leads to // schedule cycles (because bluespec compiler picks sub-optimal conflicts // to resolve some cycles). Therefore we manually create conflict and // precedence here using preempts. (* preempts = ""doDeqLdQ_Lr_deq, doIssueLdFromUpdate"" *) (* preempts = ""doDeqLdQ_Lr_deq, doIssueLdFromIssueQ"" *) (* preempts = ""doDeqLdQ_MMIO_deq, doIssueLdFromUpdate"" *) (* preempts = ""doDeqLdQ_MMIO_deq, doIssueLdFromIssueQ"" *) (* descending_urgency = ""doIssueLdFromIssueQ, doIssueLdFromUpdate"" *) // prioritize older load rule doIssueLdFromUpdate(issueLd.wget matches tagged Valid .info); // issue the entry that just updates LSQ this cycle doIssueLd(info, False); endrule // handle load resp function Action doRespLd(LdQTag tag, MemTaggedData data, String rule_name); action LSQRespLdResult res <- lsq.respLd(tag, data); if(verbose) $display(""%t : "", $time, rule_name, "" "", fshow(tag), ""; "", fshow(data), ""; "", fshow(res)); if(res.dst matches tagged Valid .dst) begin CapPipe dataUnpacked = fromMem(unpack(pack(res.data))); dataUnpacked = setValidCap(dataUnpacked, res.allowCap && isValidCap(dataUnpacked)); inIfc.writeRegFile(dst.indx, dataUnpacked); `ifdef INCLUDE_TANDEM_VERIF inIfc.rob_setExecuted_doFinishMem_RegData (res.instTag, res.data); `endif `ifdef PERF_COUNT // perf: load to use latency let lat <- ldToUseLatTimer.done(tag); if(inIfc.doStats) begin exeLdToUseLat.incr(zeroExtend(lat)); exeLdToUseCnt.incr(1); end `endif `ifdef RVFI LdStQTag idx = tagged Ld tag; memData[pack(idx)] <= truncate(pack(res.data)); // TODO use fromMem? $display(""%t : memData[%x] <= %x"", $time(), pack(idx), res.data); `endif end if(res.wrongPath) begin doAssert(res.dst == Invalid, ""wrong path resp cannot write reg""); end endaction endfunction rule doRespLdMem; memRespLdQ.deq; let {t, d} = memRespLdQ.first; doRespLd(t, d, ""[doRespLdMem]""); endrule (* descending_urgency = ""doRespLdMem, doRespLdForward"" *) // prioritize mem resp rule doRespLdForward; forwardQ.deq; let {t, d} = forwardQ.first; doRespLd(t, d, ""[doRespLdForward]""); endrule // deqStQ LdQDeqEntry lsqDeqLd = lsq.firstLd; `ifdef RVFI LdStQTag lsqDeqIdx = tagged Ld lsqDeqLd.tag; `endif // deq fault/killed ld rule doDeqLdQ_fault(isValid(lsqDeqLd.fault)); if(verbose) $display(""[doDeqLdQ_fault] "", fshow(lsqDeqLd)); lsq.deqLd; inIfc.rob_setExecuted_deqLSQ(lsqDeqLd.instTag, lsqDeqLd.fault, Invalid `ifdef RVFI , ExtraTraceBundle{ regWriteData: memData[pack(lsqDeqIdx)], memByteEn: replicate(False) } `endif ); // check doAssert(!isValid(lsqDeqLd.killed), ""cannot be killed""); endrule // deq non-MMIO Ld without fault (but may be killed) rule doDeqLdQ_Ld_Mem( !isValid(lsqDeqLd.fault) && lsqDeqLd.memFunc == Ld && !lsqDeqLd.isMMIO ); if(verbose) $display(""[doDeqLdQ_Ld] "", fshow(lsqDeqLd)); lsq.deqLd; // normal load should not have .rl, so no need to check SB empty doAssert(!lsqDeqLd.rel, ""normal Ld cannot have .rl""); // set ROB as Executed (may be killed) inIfc.rob_setExecuted_deqLSQ(lsqDeqLd.instTag, Invalid, lsqDeqLd.killed `ifdef RVFI , ExtraTraceBundle{ regWriteData: memData[pack(lsqDeqIdx)], memByteEn: replicate(False) } `endif ); endrule // issue non-MMIO Lr wihtout fault when // (1) not waiting for Lr/Sc/Amo/MMIO resp // (2) WEAK: SB does not match that addr // (3) WEAK: if .rl bit is set, SB is empty rule doDeqLdQ_Lr_issue( !isValid(lsqDeqLd.fault) && !lsqDeqLd.isMMIO && lsqDeqLd.memFunc == Lr && waitLrScAmoMMIOResp == Invalid `ifndef TSO_MM && stb.noMatchLdQ(lsqDeqLd.paddr, lsqDeqLd.shiftedBE) && (!lsqDeqLd.rel || stb.isEmpty) `endif ); // set wait bit waitLrScAmoMMIOResp <= Lr; // send to mem ProcRq#(DProcReqId) req = ProcRq { id: 0, // id does not matter addr: lsqDeqLd.paddr, // Fetch Lr to E cannot guarantee forward progress of Lr/Sc, so by // default we only request Lr for S (in multicore). However, in // self-inv cache, Lr must fetch data to E, because parent does not // track S copies. `ifdef SELF_INV_CACHE toState: E, `else // !SELF_INV_CACHE `ifdef LR_UP_TO_E toState: E, // makefile macro forces Lr to upgrade to E `else toState: multicore ? S : E, `endif `endif // SELF_INV_CACHE op: Lr, byteEn: ?, data: ?, amoInst: ?, loadTags: False }; reqLrScAmoQ.enq(req); if(verbose) $display(""[doDeqLdQ_Lr_issue] "", fshow(lsqDeqLd), ""; "", fshow(req)); // check doAssert(!isValid(lsqDeqLd.killed), ""cannot be killed""); `ifdef PERF_COUNT if(inIfc.doStats) begin if(lsqDeqLd.acq) begin exeLrScAmoAcqCnt.incr(1); end if(lsqDeqLd.rel) begin exeLrScAmoRelCnt.incr(1); end end `endif endrule `ifdef SELF_INV_CACHE // issue reconcile to D$ in case of .aq rule doDeqLdQ_Lr_reconcile( waitLrScAmoMMIOResp == Lr && lsqDeqLd.acq && waitReconcile == None ); dMem.reconcile.request.put(?); waitReconcile <= Lr; endrule `endif rule doDeqLdQ_Lr_deq(waitLrScAmoMMIOResp == Lr); `ifdef SELF_INV_CACHE // wait reconcile to be done if(lsqDeqLd.acq) begin when(waitReconcile == Lr, noAction); let unused <- dMem.reconcile.response.get; waitReconcile <= None; end `endif // deq LSQ & reset wait bit lsq.deqLd; waitLrScAmoMMIOResp <= Invalid; // get resp data (need shifting) let d <- toGet(respLrScAmoQ).get; MemTaggedData resp = gatherLoad(lsqDeqLd.paddr, lsqDeqLd.byteOrTagEn, lsqDeqLd.unsignedLd, d); // write reg file & set ROB as Executed & wakeup rs if(lsqDeqLd.dst matches tagged Valid .dst) begin CapPipe dataUnpacked = fromMem(unpack(pack(resp))); dataUnpacked = setValidCap(dataUnpacked, lsqDeqLd.allowCap && isValidCap(dataUnpacked)); inIfc.writeRegFile(dst.indx, dataUnpacked); inIfc.setRegReadyAggr_mem(dst.indx); `ifdef INCLUDE_TANDEM_VERIF inIfc.rob_setExecuted_doFinishMem_RegData (lsqDeqLd.instTag, resp); `endif end inIfc.rob_setExecuted_deqLSQ( lsqDeqLd.instTag, Invalid, Invalid `ifdef RVFI , ExtraTraceBundle{ regWriteData: truncate(pack(resp)), // TODO use fromMem? memByteEn: replicate(False) } `endif ); if(verbose) $display(""[doDeqLdQ_Lr_deq] "", fshow(lsqDeqLd), ""; "", fshow(d), ""; "", fshow(resp)); // check doAssert(lsqDeqLd.memFunc == Lr && !lsqDeqLd.isMMIO, ""must be non-MMIO Lr""); doAssert(!isValid(lsqDeqLd.fault) && !isValid(lsqDeqLd.killed), ""no fualt or kill""); endrule // issue MMIO Ld without fault when // (1) not waiting for Lr/Sc/Amo/MMIO resp // (2) WEAK: if .rl bit is set, SB is empty rule doDeqLdQ_MMIO_issue( !isValid(lsqDeqLd.fault) && lsqDeqLd.isMMIO && waitLrScAmoMMIOResp == Invalid `ifndef TSO_MM && (!lsqDeqLd.rel || stb.isEmpty) `endif ); // set wait bit waitLrScAmoMMIOResp <= MMIO (WaitMMIOResp { isLd: True }); // send to MMIO let req = MMIOCRq { addr: lsqDeqLd.paddr, func: Ld, byteEn: lsqDeqLd.shiftedBE.DataMemAccess, // BE is LSQ is always shifted data: ?, loadTags: lsqDeqLd.shiftedBE == TagMemAccess }; inIfc.mmioReq(req); if(verbose) $display(""[doDeqLdQ_MMIO_issue] "", fshow(lsqDeqLd), ""; "", fshow(req)); // check doAssert(!isValid(lsqDeqLd.killed), ""cannot be killed""); doAssert(lsqDeqLd.memFunc == Ld, ""LdQ MMIO is only Ld""); endrule `ifdef SELF_INV_CACHE // issue reconcile to D$ in case of .aq // This is in fact useless because MMIO can only be normal Ld which cannot // have .aq bit rule doDeqLdQ_MMIO_reconcile( waitLrScAmoMMIOResp matches tagged MMIO .waitMMIO &&& waitMMIO.isLd &&& lsqDeqLd.acq &&& waitReconcile == None ); dMem.reconcile.request.put(?); waitReconcile <= LdMMIO; endrule `endif rule doDeqLdQ_MMIO_deq( waitLrScAmoMMIOResp matches tagged MMIO .waitMMIO &&& waitMMIO.isLd &&& inIfc.mmioRespVal.valid ); `ifdef SELF_INV_CACHE // wait reconcile to be done if(lsqDeqLd.acq) begin when(waitReconcile == LdMMIO, noAction); let unused <- dMem.reconcile.response.get; waitReconcile <= None; end `endif inIfc.mmioRespDeq; // deq LSQ & reset wait bit lsq.deqLd; waitLrScAmoMMIOResp <= Invalid; // get resp (need to shift data) let d = inIfc.mmioRespVal.data; MemTaggedData resp = gatherLoad(lsqDeqLd.paddr, lsqDeqLd.byteOrTagEn, lsqDeqLd.unsignedLd, d); // write reg file & wakeup rs (this wakeup is late but MMIO is rare) & set ROB as Executed if(lsqDeqLd.dst matches tagged Valid .dst) begin CapPipe dataUnpacked = fromMem(tuple2(resp.tag,unpack(pack(resp.data)))); dataUnpacked = setValidCap(dataUnpacked, lsqDeqLd.allowCap && isValidCap(dataUnpacked)); inIfc.writeRegFile(dst.indx, dataUnpacked); inIfc.setRegReadyAggr_mem(dst.indx); `ifdef INCLUDE_TANDEM_VERIF inIfc.rob_setExecuted_doFinishMem_RegData (lsqDeqLd.instTag, resp); `endif end inIfc.rob_setExecuted_deqLSQ(lsqDeqLd.instTag, Invalid, Invalid `ifdef RVFI , ExtraTraceBundle{ regWriteData: truncate(pack(resp)), // TODO use fromMem? memByteEn: replicate(False) } `endif ); if(verbose) $display(""[doDeqLdQ_MMIO_deq] "", fshow(lsqDeqLd), ""; "", fshow(d), ""; "", fshow(resp)); // check doAssert(lsqDeqLd.memFunc == Ld && lsqDeqLd.isMMIO, ""must be MMIO Ld""); doAssert(!isValid(lsqDeqLd.fault) && !isValid(lsqDeqLd.killed), ""no fualt or kill""); endrule rule doDeqLdQ_MMIO_fault( waitLrScAmoMMIOResp matches tagged MMIO .waitMMIO &&& waitMMIO.isLd &&& !inIfc.mmioRespVal.valid ); `ifdef SELF_INV_CACHE // wait reconcile to be done if(lsqDeqLd.acq) begin when(waitReconcile == LdMMIO, noAction); let unused <- dMem.reconcile.response.get; waitReconcile <= None; end `endif inIfc.mmioRespDeq; // deq LSQ & reset wait bit lsq.deqLd; waitLrScAmoMMIOResp <= Invalid; // set ROB to raise access fault inIfc.rob_setExecuted_deqLSQ(lsqDeqLd.instTag, Valid(Exception(excLoadAccessFault)), Invalid `ifdef RVFI , ExtraTraceBundle{ regWriteData: memData[pack(lsqDeqIdx)], memByteEn: replicate(False) } `endif ); if(verbose) $display(""[doDeqLdQ_MMIO_fault] "", fshow(lsqDeqLd)); // check doAssert(lsqDeqLd.memFunc == Ld && lsqDeqLd.isMMIO, ""must be MMIO Ld""); doAssert(!isValid(lsqDeqLd.fault) && !isValid(lsqDeqLd.killed), ""no fualt or kill""); endrule // deq StQ StQDeqEntry lsqDeqSt = lsq.firstSt; rule doDeqStQ_fault(isValid(lsqDeqSt.fault)); if(verbose) $display(""[doDeqStQ_fault] "", fshow(lsqDeqSt)); lsq.deqSt; inIfc.rob_setExecuted_deqLSQ(lsqDeqSt.instTag, lsqDeqSt.fault, Invalid `ifdef RVFI , ExtraTraceBundle{ regWriteData: truncate(pack(lsqDeqSt.stData)), // TODO use fromMem? memByteEn: replicate(False) } `endif ); endrule `ifdef TSO_MM // TSO: issue non-MMIO St to memory. Since waitStRespQ is an 1-elem fifo, // if we can enq to it, then we are not waiting for store resp (i.e., this // store has not been issued yet) rule doDeqStQ_St_Mem_issue( !isValid(lsqDeqSt.fault) && lsqDeqSt.memFunc == St && !lsqDeqSt.isMMIO ); // send to mem Addr addr = lsqDeqSt.paddr; reqStQ.enq(addr); // record waiting for store resp waitStRespQ.enq(WaitStResp { offset: getLineMemDataOffset(addr), shiftedBE: lsqDeqSt.shiftedBE, shiftedData: lsqDeqSt.stData }); // we leave deq to resp time // ROB should have already been set to executed if(verbose) $display(""[doDeqStQ_St] "", fshow(lsqDeqSt)); // perf: store mem latency stMemLatTimer.start(0); endrule `else // WEAK: deq non-MMIO St when (1) no spec bit (2) can send to SB rule doDeqStQ_St_Mem( !isValid(lsqDeqSt.fault) &&& lsqDeqSt.memFunc == St &&& !lsqDeqSt.isMMIO &&& stb.getEnqIndex(lsqDeqSt.paddr) matches tagged Valid .sbIdx ); lsq.deqSt; // send to SB stb.enq(sbIdx, lsqDeqSt.paddr, lsqDeqSt.shiftedBE, lsqDeqSt.stData); // ROB should have already been set to executed if(verbose) $display(""[doDeqStQ_St] "", fshow(lsqDeqSt)); // normal store should not have .rl, so no need to check SB empty doAssert(!lsqDeqSt.rel, ""no .rl""); endrule // send store to mem rule doIssueSB; let {sbIdx, en} <- stb.issue; reqStQ.enq(tuple2(sbIdx, {en.addr, 0})); // perf: store mem latency stMemLatTimer.start(sbIdx); endrule `endif // deq Fence from SQ. need to check .aq and .rl. `ifdef SELF_INV_CACHE // reconcile should be issued after release is done rule doDeqStQ_Fence_reconicle( !isValid(lsqDeqSt.fault) && lsqDeqSt.memFunc == Fence && (!lsqDeqSt.rel || stb.isEmpty) // wait release first && lsqDeqSt.acq && waitReconcile == None ); dMem.reconcile.request.put(?); waitReconcile <= Fence; endrule `endif rule doDeqStQ_Fence( !isValid(lsqDeqSt.fault) && lsqDeqSt.memFunc == Fence `ifndef TSO_MM && (!lsqDeqSt.rel || stb.isEmpty) // check SB in case of release `endif ); `ifdef SELF_INV_CACHE // wait reconcile to be done if(lsqDeqSt.acq) begin when(waitReconcile == Fence, noAction); let unused <- dMem.reconcile.response.get; waitReconcile <= None; end `endif lsq.deqSt; // set ROB executed inIfc.rob_setExecuted_deqLSQ(lsqDeqSt.instTag, Invalid, Invalid `ifdef RVFI , ExtraTraceBundle{ regWriteData: truncate(pack(lsqDeqSt.stData)), // TODO use fromMem ? memByteEn: replicate(False) } `endif ); if(verbose) $display(""[doDeqStQ_Fence] "", fshow(lsqDeqSt)); `ifdef PERF_COUNT if(inIfc.doStats) begin exeFenceCnt.incr(1); if(lsqDeqSt.acq) begin exeFenceAcqCnt.incr(1); end if(lsqDeqSt.rel) begin exeFenceRelCnt.incr(1); end end `endif endrule // issue non-MMIO Sc/Amo without fault when // (1) not waiting for Lr/Sc/Amo/MMIO resp // (2) WEAK: SB does not match that addr // (3) WEAK: if .rl bit is set, SB is empty rule doDeqStQ_ScAmo_issue( !isValid(lsqDeqSt.fault) && !lsqDeqSt.isMMIO && (lsqDeqSt.memFunc == Sc || lsqDeqSt.memFunc == Amo) && waitLrScAmoMMIOResp == Invalid `ifndef TSO_MM && stb.noMatchStQ(lsqDeqSt.paddr, DataMemAccess(lsqDeqSt.shiftedBE)) && (!lsqDeqSt.rel || stb.isEmpty) `endif ); // set wait bit waitLrScAmoMMIOResp <= ScAmo; // send to mem ProcRq#(DProcReqId) req = ProcRq { id: 0, // id does not matter addr: lsqDeqSt.paddr, toState: M, op: lsqDeqSt.memFunc == Sc ? Sc : Amo, // XXX Amo uses **original** data (firstSt.stData is the original // data for Amo). AMO doesn't use BE. Sc uses **shifted** BE and // data (firstSt.stData is shifted for Sc). byteEn: lsqDeqSt.shiftedBE, data: lsqDeqSt.stData, amoInst: AmoInst { func: lsqDeqSt.amoFunc, width: (pack(lsqDeqSt.shiftedBE) == ~0) ? QWord : (pack(lsqDeqSt.shiftedBE)[15:8] == ~0) ? DWord : (pack(lsqDeqSt.shiftedBE)[7:0] == ~0) ? DWord : Word, aq: lsqDeqSt.acq, rl: lsqDeqSt.rel }, loadTags: False }; reqLrScAmoQ.enq(req); if(verbose) $display(""[doDeqStQ_ScAmo_issue] "", fshow(lsqDeqSt), ""; "", fshow(req)); `ifdef PERF_COUNT if(inIfc.doStats) begin if(lsqDeqSt.acq) begin exeLrScAmoAcqCnt.incr(1); end if(lsqDeqSt.rel) begin exeLrScAmoRelCnt.incr(1); end end `endif endrule `ifdef SELF_INV_CACHE rule doDeqStQ_ScAmo_reconcile( waitLrScAmoMMIOResp == ScAmo && lsqDeqSt.acq && waitReconcile == None ); dMem.reconcile.request.put(?); waitReconcile <= ScAmo; endrule `endif // deq non-MMIO Sc/Amo from LSQ when resp comes rule doDeqStQ_ScAmo_deq(waitLrScAmoMMIOResp == ScAmo); `ifdef SELF_INV_CACHE // wait reconcile to be done if(lsqDeqSt.acq) begin when(waitReconcile == ScAmo, noAction); let unused <- dMem.reconcile.response.get; waitReconcile <= None; end `endif // deq LSQ & reset wait bit lsq.deqSt; waitLrScAmoMMIOResp <= Invalid; // get resp data (no need to shift for Sc and Amo) MemTaggedData resp <- toGet(respLrScAmoQ).get; // write reg file & set ROB as Executed & wake up rs if(lsqDeqSt.dst matches tagged Valid .dst) begin CapPipe dataUnpacked = fromMem(tuple2(resp.tag, pack(resp.data))); dataUnpacked = setValidCap(dataUnpacked, False); // TODO no allowCap around. Can a cap be loaded this way (e.g. AMOSWAP?) inIfc.writeRegFile(dst.indx, dataUnpacked); inIfc.setRegReadyAggr_mem(dst.indx); `ifdef INCLUDE_TANDEM_VERIF inIfc.rob_setExecuted_doFinishMem_RegData (lsqDeqSt.instTag, resp); `endif end inIfc.rob_setExecuted_deqLSQ(lsqDeqSt.instTag, Invalid, Invalid `ifdef RVFI , ExtraTraceBundle{ regWriteData: fromMemTaggedData(resp), memByteEn: replicate(False) } `endif ); if(verbose) $display(""[doDeqStQ_ScAmo_deq] "", fshow(lsqDeqSt), ""; "", fshow(resp)); // check doAssert((lsqDeqSt.memFunc == Sc || lsqDeqSt.memFunc == Amo) && !lsqDeqSt.isMMIO, ""must be non-MMIO Sc/Amo""); doAssert(!isValid(lsqDeqSt.fault), ""no fault""); // stats for successful SC `ifdef PERF_COUNT if(inIfc.doStats && lsqDeqSt.memFunc == Sc && resp == fromInteger(valueof(ScSuccVal))) begin exeScSuccessCnt.incr(1); end `endif `ifdef PERFORMANCE_MONITORING EventsCoreMem events = unpack(0); events.evt_SC_SUCCESS = 1; events_reg[3] <= events; `endif endrule // issue MMIO St/Amo when // (0) XXX Not a fence. MMIO bit of an fence entry in SQ may be // uninitialized. For other entries, MMIO bit must be initialized because // the deq entry is computed. // (1) not waiting for Lr/Sc/Amo/MMIO resp // (2) WEAK: if .rl bit is set, SB is empty rule doDeqStQ_MMIO_issue( !isValid(lsqDeqSt.fault) && lsqDeqSt.memFunc != Fence && lsqDeqSt.isMMIO && waitLrScAmoMMIOResp == Invalid `ifndef TSO_MM && (!lsqDeqSt.rel || stb.isEmpty) `endif ); // set wait bit waitLrScAmoMMIOResp <= MMIO (WaitMMIOResp { isLd: False }); // send to MMIO let req = MMIOCRq { addr: lsqDeqSt.paddr, func: (case(lsqDeqSt.memFunc) St: (St); Amo: (Amo (lsqDeqSt.amoFunc)); default: ?; endcase), byteEn: lsqDeqSt.shiftedBE, // BE is LSQ is always shifted data: lsqDeqSt.stData, // stData in LSQ is not shifted for AMO but for St loadTags: False }; inIfc.mmioReq(req); if(verbose) $display(""[doDeqStQ_MMIO_issue] "", fshow(lsqDeqSt), ""; "", fshow(req)); // MMIO may cause exception, must have spec tag, and only can be St/Amo doAssert(lsqDeqSt.memFunc == St || lsqDeqSt.memFunc == Amo, ""must be St/Amo""); `ifdef PERF_COUNT if(inIfc.doStats) begin if(lsqDeqSt.acq) begin exeLrScAmoAcqCnt.incr(1); end if(lsqDeqSt.rel) begin exeLrScAmoRelCnt.incr(1); end end `endif endrule `ifdef SELF_INV_CACHE rule doDeqStQ_MMIO_reconcile( waitLrScAmoMMIOResp matches tagged MMIO .waitMMIO &&& !waitMMIO.isLd &&& lsqDeqSt.acq &&& waitReconcile == None ); dMem.reconcile.request.put(?); waitReconcile <= StMMIO; endrule `endif // deq MMIO from StQ when valid resp comes rule doDeqStQ_MMIO_deq( waitLrScAmoMMIOResp matches tagged MMIO .waitMMIO &&& !waitMMIO.isLd &&& inIfc.mmioRespVal.valid ); `ifdef SELF_INV_CACHE // wait reconcile to be done if(lsqDeqSt.acq) begin when(waitReconcile == StMMIO, noAction); let unused <- dMem.reconcile.response.get; waitReconcile <= None; end `endif inIfc.mmioRespDeq; // deq LSQ & reset wait bit lsq.deqSt; waitLrScAmoMMIOResp <= Invalid; // get resp (no need to shift for AMO) MemTaggedData resp = inIfc.mmioRespVal.data; // write reg file & wakeup rs (this wakeup is late but MMIO is rare) & set ROB as Executed if(lsqDeqSt.dst matches tagged Valid .dst) begin CapPipe dataUnpacked = fromMem(tuple2(resp.tag, pack(resp.data))); dataUnpacked = setValidCap(dataUnpacked, False); // TODO no allowCap around. Can a cap be loaded this way (e.g. AMOSWAP?) inIfc.writeRegFile(dst.indx, dataUnpacked); inIfc.setRegReadyAggr_mem(dst.indx); `ifdef INCLUDE_TANDEM_VERIF inIfc.rob_setExecuted_doFinishMem_RegData (lsqDeqSt.instTag, resp); `endif end inIfc.rob_setExecuted_deqLSQ(lsqDeqSt.instTag, Invalid, Invalid `ifdef RVFI , ExtraTraceBundle{ regWriteData: fromMemTaggedData(resp), memByteEn: replicate(False) } `endif ); if(verbose) $display(""[doDeqStQ_MMIO_deq] "", fshow(lsqDeqSt), ""; "", fshow(resp)); // check doAssert(lsqDeqSt.memFunc == St || lsqDeqSt.memFunc == Amo, ""must be St/Amo""); doAssert(!isValid(lsqDeqSt.fault), ""no fault""); endrule rule doDeqStQ_MMIO_fault( waitLrScAmoMMIOResp matches tagged MMIO .waitMMIO &&& !waitMMIO.isLd &&& !inIfc.mmioRespVal.valid ); `ifdef SELF_INV_CACHE // wait reconcile to be done if(lsqDeqSt.acq) begin when(waitReconcile == StMMIO, noAction); let unused <- dMem.reconcile.response.get; waitReconcile <= None; end `endif inIfc.mmioRespDeq; // deq LSQ & reset wait bit lsq.deqSt; waitLrScAmoMMIOResp <= Invalid; // set ROB to raise access fault inIfc.rob_setExecuted_deqLSQ(lsqDeqSt.instTag, Valid(Exception(excStoreAccessFault)), Invalid `ifdef RVFI , ExtraTraceBundle{ regWriteData: fromMemTaggedData(lsqDeqSt.stData), memByteEn: replicate(False) } `endif ); if(verbose) $display(""[doDeqStQ_MMIO_fault] "", fshow(lsqDeqSt)); // check doAssert(lsqDeqSt.memFunc == St || lsqDeqSt.memFunc == Amo, ""must be St/Amo""); doAssert(!isValid(lsqDeqSt.fault), ""no fault""); endrule // send req to D$ rule sendLdToMem; let {lsqTag, addr, loadTags} <- toGet(reqLdQ).get; dMem.procReq.req(ProcRq { id: zeroExtend(lsqTag), addr: addr, toState: multicore ? S : E, // in case of single core, just fetch to E op: Ld, byteEn: ?, data: ?, amoInst: ?, loadTags: loadTags }); endrule (* descending_urgency = ""sendLdToMem, sendStToMem"" *) // prioritize Ld over St rule sendStToMem; `ifdef TSO_MM let addr <- toGet(reqStQ).get; DProcReqId id = 0; `else let {sbIdx, addr} <- toGet(reqStQ).get; DProcReqId id = zeroExtend(sbIdx); `endif dMem.procReq.req(ProcRq { id: id, addr: addr, toState: M, op: St, byteEn: ?, data: ?, amoInst: ?, loadTags: False }); endrule (* descending_urgency = ""sendLrScAmoToMem, sendStToMem"" *) // prioritize Lr/Sc/Amo over St rule sendLrScAmoToMem; let r <- toGet(reqLrScAmoQ).get; dMem.procReq.req(r); endrule //======================================================= // End of Load/Store Queue Stuff //======================================================= interface recvBypass = map(getRecvBypassIfc, bypassWire); interface rsMemIfc = rsMem; interface dTlbIfc = dTlb; interface lsqIfc = lsq; interface stbIfc = stb; interface dMemIfc = dMem; interface specUpdate = joinSpeculationUpdate(vec( rsMem.specUpdate, dispToRegQ.specUpdate, regToExeQ.specUpdate, dTlb.specUpdate, lsq.specUpdate )); `ifdef SELF_INV_CACHE interface Server reconcile; interface Put request; method Action put(void x) if(waitReconcile == None); dMem.reconcile.request.put(?); waitReconcile <= System; endmethod endinterface interface Get response; method ActionValue#(void) get if(waitReconcile == System); let unused <- dMem.reconcile.response.get; waitReconcile <= None; return ?; endmethod endinterface endinterface `endif method Data getPerf(ExeStagePerfType t); return (case(t) `ifdef PERF_COUNT ExeLdStallByLd: exeLdStallByLdCnt; ExeLdStallBySt: exeLdStallByStCnt; ExeLdStallBySB: exeLdStallBySBCnt; ExeLdForward: exeLdForwardCnt; ExeLdMemLat: exeLdMemLat; ExeStMemLat: exeStMemLat; ExeLdToUseLat: exeLdToUseLat; ExeLdToUseCnt: exeLdToUseCnt; ExeTlbExcep: exeTlbExcepCnt; ExeScSuccessCnt: exeScSuccessCnt; ExeLrScAmoAcqCnt: exeLrScAmoAcqCnt; ExeLrScAmoRelCnt: exeLrScAmoRelCnt; ExeFenceAcqCnt: exeFenceAcqCnt; ExeFenceRelCnt: exeFenceRelCnt; ExeFenceCnt: exeFenceCnt; `endif default: 0; endcase); endmethod `ifdef PERFORMANCE_MONITORING method events = events_reg[0]; `endif endmodule ",16168,True,3424.8408330246025,median "/* DrawTile.ino Demonstrate DrawTile, See also issue https://github.com/olikraus/u8g2/issues/1362 Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ""AS IS"" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include #include #ifdef U8X8_HAVE_HW_SPI #include #endif // Please UNCOMMENT one of the contructor lines below // U8x8 Contructor List // The complete list is available here: https://github.com/olikraus/u8g2/wiki/u8x8setupcpp // Please update the pin numbers according to your setup. Use U8X8_PIN_NONE if the reset pin is not connected //U8X8_NULL u8x8; // null device, a 8x8 pixel display which does nothing //U8X8_SSD1306_128X64_NONAME_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1306_128X64_NONAME_4W_HW_SPI u8x8(/* cs=*/ 6, /* dc=*/ 4, /* reset=*/ 12); // Arduboy (DevKit) //U8X8_SSD1306_128X64_NONAME_4W_HW_SPI u8x8(/* cs=*/ 12, /* dc=*/ 4, /* reset=*/ 6); // Arduboy 10 (Production, Kickstarter Edition) //U8X8_SSD1306_128X64_NONAME_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1306_128X64_NONAME_3W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* reset=*/ 8); //U8X8_SSD1306_128X64_NONAME_3W_HW_SPI u8x8(/* cs=*/ 10, /* reset=*/ 8); //U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); //U8X8_SSD1306_128X64_ALT0_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); // same as the NONAME variant, but may solve the ""every 2nd line skipped"" problem //U8X8_SSD1306_128X64_NONAME_SW_I2C u8x8(/* clock=*/ 2, /* data=*/ 0, /* reset=*/ U8X8_PIN_NONE); // Digispark ATTiny85 //U8X8_SSD1306_128X64_NONAME_SW_I2C u8x8(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); // OLEDs without Reset of the Display //U8X8_SSD1306_128X64_VCOMH0_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // same as the NONAME variant, but maximizes setContrast() range //U8X8_SSD1306_128X64_ALT0_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // same as the NONAME variant, but may solve the ""every 2nd line skipped"" problem //U8X8_SSD1306_102X64_EA_OLEDS102_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // same as the NONAME variant, but may solve the ""every 2nd line skipped"" problem //U8X8_SH1106_128X64_NONAME_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SH1106_128X64_NONAME_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); //U8X8_SH1106_128X64_VCOMH0_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // same as the NONAME variant, but maximizes setContrast() range //U8X8_SH1106_128X64_WINSTAR_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // same as the NONAME variant, but uses updated SH1106 init sequence //U8X8_SH1106_128X32_VISIONOX_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); //U8X8_SH1106_128X32_VISIONOX_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SH1106_72X40_WISE_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SH1107_64X128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SH1107_128X128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SH1107_128X128_HW_I2C u8x8(/* reset=*/ 8); //U8X8_SH1107_PIMORONI_128X128_HW_I2C u8x8(/* reset=*/ 8); //U8X8_SH1107_SEEED_128X128_SW_I2C u8x8(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); //U8X8_SH1107_SEEED_128X128_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); //U8X8_SH1107_SEEED_96X96_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SH1108_160X160_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1306_128X32_UNIVISION_SW_I2C u8x8(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); // Adafruit Feather ESP8266/32u4 Boards + FeatherWing OLED //U8X8_SSD1306_128X32_UNIVISION_SW_I2C u8x8(/* clock=*/ 21, /* data=*/ 20, /* reset=*/ U8X8_PIN_NONE); // Adafruit Feather M0 Basic Proto + FeatherWing OLED //U8X8_SSD1306_128X32_UNIVISION_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); // Adafruit ESP8266/32u4/ARM Boards + FeatherWing OLED //U8X8_SSD1306_128X32_UNIVISION_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE, /* clock=*/ SCL, /* data=*/ SDA); // pin remapping with ESP8266 HW I2C //U8X8_SSD1306_128X32_WINSTAR_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE, /* clock=*/ SCL, /* data=*/ SDA); // pin remapping with ESP8266 HW I2C //U8X8_SSD1306_64X48_ER_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); // EastRising 0.66"" OLED breakout board, Uno: A4=SDA, A5=SCL, 5V powered //U8X8_SSD1306_48X64_WINSTAR_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); //U8X8_SSD1306_64X32_NONAME_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); //U8X8_SSD1306_64X32_1F_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); //U8X8_SSD1306_96X16_ER_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); // EastRising 0.69"" //U8X8_SSD1306_72X40_ER_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); // EastRising 0.42"" //U8X8_SSD1306_128X64_NONAME_6800 u8x8(13, 11, 2, 3, 4, 5, 6, A4, /*enable=*/ 7, /*cs=*/ 10, /*dc=*/ 9, /*reset=*/ 8); //U8X8_SSD1306_128X64_NONAME_8080 u8x8(13, 11, 2, 3, 4, 5, 6, A4, /*enable=*/ 7, /*cs=*/ 10, /*dc=*/ 9, /*reset=*/ 8); //U8X8_SSD1309_128X64_NONAME0_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1309_128X64_NONAME0_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1309_128X64_NONAME2_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1309_128X64_NONAME2_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1316_128X32_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1316_128X32_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1317_96X96_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // not tested, not confirmed //U8X8_SSD1317_96X96_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // not tested, not confirmed //U8X8_SSD1318_128X96_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1318_128X96_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1320_160X132_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1320_160X132_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1322_NHD_256X64_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1322_NHD_256X64_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1322_NHD_128X64_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1322_NHD_128X64_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1325_NHD_128X64_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1325_NHD_128X64_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD0323_OS128064_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD0323_OS128064_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1326_ER_256X32_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // experimental driver for ER-OLED018-1 //U8X8_SSD1327_SEEED_96X96_SW_I2C u8x8(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); // Seeedstudio Grove OLED 96x96 //U8X8_SSD1327_SEEED_96X96_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); // Seeedstudio Grove OLED 96x96 //U8X8_SSD1327_EA_W128128_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1327_EA_W128128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1327_MIDAS_128X128_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1327_MIDAS_128X128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1327_WS_128X128_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1327_WS_128X128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1327_VISIONOX_128X96_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1327_VISIONOX_128X96_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1329_128X96_NONAME_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1329_128X96_NONAME_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1329_96X96_NONAME_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1329_96X96_NONAME_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1329_96X96_NONAME_4W_HW_SPI u8x8(/* cs=*/ A4, /* dc=*/ A2, /* reset=*/ U8X8_PIN_NONE); // Adafruit Feather 32u4 Basic Proto //U8X8_SSD1305_128X32_NONAME_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1305_128X32_NONAME_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1305_128X32_ADAFRUIT_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1305_128X32_ADAFRUIT_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1305_128X64_ADAFRUIT_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1305_128X64_ADAFRUIT_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1305_128X64_RAYSTAR_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_SSD1305_128X64_RAYSTAR_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_KS0108_128X64 u8x8(8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*dc=*/ 17, /*cs0=*/ 14, /*cs1=*/ 15, /*cs2=*/ U8X8_PIN_NONE, /* reset=*/ U8X8_PIN_NONE); // Set R/W to low! //U8X8_KS0108_ERM19264 u8x8(8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*dc=*/ 17, /*cs0=*/ 14, /*cs1=*/ 15, /*cs2=*/ 16, /* reset=*/ U8X8_PIN_NONE); // Set R/W to low! //U8X8_HD44102_100X64 u8x8(4, 5, 6, 7, 8, 9, 10, 11, /*enable=*/ 2, /*dc=*/ 3, /*cs0=*/ A0, /*cs1=*/ A1, /*cs2=*/ A2, /* reset=*/ U8X8_PIN_NONE); // Set R/W to low! //U8X8_T7932_150X32 u8x8(4, 5, 6, 7, 8, 9, 10, 11, /*enable=*/ 2, /*dc=*/ 3, /*cs0=*/ A0, /*cs1=*/ A1, /*cs2=*/ A2, /* reset=*/ U8X8_PIN_NONE); // Set R/W to low! //U8X8_UC1701_EA_DOGS102_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1701_EA_DOGS102_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_PCD8544_84X48_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Nokia 5110 Display //U8X8_PCD8544_84X48_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Nokia 5110 Display //U8X8_PCF8812_96X65_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Could be also PCF8814 //U8X8_PCF8812_96X65_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Could be also PCF8814 //U8X8_HX1230_96X68_3W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* reset=*/ 8); //U8X8_HX1230_96X68_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7528_ERC16064_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7528_ERC16064_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_EA_DOGM128_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_EA_DOGM128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_64128N_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_64128N_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_EA_DOGM132_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); // DOGM132 Shield //U8X8_ST7565_EA_DOGM132_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); // DOGM132 Shield //U8X8_ST7565_ZOLEN_128X64_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_ZOLEN_128X64_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_LM6059_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Adafruit ST7565 GLCD //U8X8_ST7565_LM6059_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Adafruit ST7565 GLCD //U8X8_ST7565_KS0713_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // KS0713 controller //U8X8_ST7565_KS0713_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // KS0713 controller //U8X8_ST7565_LX12864_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_LX12864_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_ERC12864_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_ERC12864_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_ERC12864_ALT_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // contrast improved version for ERC12864 //U8X8_ST7565_ERC12864_ALT_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // contrast improved version for ERC12864 //U8X8_ST7565_NHD_C12832_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_NHD_C12832_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_NHD_C12864_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_NHD_C12864_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_JLX12864_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7565_JLX12864_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7567_PI_132X64_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); // Pax Instruments Shield, LCD_BL=6 //U8X8_ST7567_PI_132X64_4W_HW_SPI u8x8(/* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); // Pax Instruments Shield, LCD_BL=6 //U8X8_ST7567_JLX12864_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7567_JLX12864_4W_HW_SPI u8x8(/* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7567_OS12864_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7567_OS12864_4W_HW_SPI u8x8(/* cs=*/ 7, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7567_ENH_DG128064_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7567_ENH_DG128064_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7567_ENH_DG128064I_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7567_ENH_DG128064I_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7567_64X32_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); //U8X8_ST7567_HEM6432_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); //U8X8_ST7571_128X128_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7571_128X128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7571_128X96_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7571_128X96_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX172104_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX172104_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX19296_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX19296_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX256128_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX256128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_WO256X128_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_WO256X128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX256160_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX256160_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX256160M_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX256160M_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX256160_ALT_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX256160_ALT_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX240160_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX240160_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75256_JLX25664_2ND_HW_I2C u8x8(/* reset=*/ 8); // Due, 2nd I2C //U8X8_ST75320_JLX320240_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST75320_JLX320240_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_NT7534_TG12864R_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_NT7534_TG12864R_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_ST7588_JLX12864_SW_I2C u8x8(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ 5); //U8X8_ST7588_JLX12864_HW_I2C u8x8(/* reset=*/ 5); //U8X8_IST3020_ERC19264_6800 u8x8(44, 43, 42, 41, 40, 39, 38, 37, /*enable=*/ 28, /*cs=*/ 32, /*dc=*/ 30, /*reset=*/ 31); // Connect WR pin with GND //U8X8_IST3020_ERC19264_8080 u8x8(44, 43, 42, 41, 40, 39, 38, 37, /*enable=*/ 29, /*cs=*/ 32, /*dc=*/ 30, /*reset=*/ 31); // Connect RD pin with 3.3V //U8X8_IST3020_ERC19264_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_IST7920_128X128_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Round display //U8X8_IST7920_128X128_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Round display //U8X8_UC1601_128X32_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1601_128X32_3W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* reset=*/ 8); //U8X8_UC1601_128X64_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1604_JLX19264_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1604_JLX19264_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1608_ERC24064_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Due, SW SPI, ERC24064-1 Test Board //U8X8_UC1608_DEM240064_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Due, SW SPI, ERC24064-1 Test Board //U8X8_UC1608_ERC240120_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1608_240X128_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1610_EA_DOGXL160_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); //U8X8_UC1610_EA_DOGXL160_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ U8X8_PIN_NONE); //U8X8_UC1611_EA_DOGM240_2ND_HW_I2C u8x8(/* reset=*/ 8); // Due, 2nd I2C, DOGM240 Test Board //U8X8_UC1611_EA_DOGM240_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // SW SPI, Due DOGXL240 Test Board //U8X8_UC1611_EA_DOGXL240_2ND_HW_I2C u8x8(/* reset=*/ 8); // Due, 2nd I2C, DOGXL240 Test Board //U8X8_UC1611_EA_DOGXL240_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // SW SPI, Due DOGXL240 Test Board //U8X8_UC1611_IDS4073_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1611_IDS4073_4W_HW_SPI u8x8( /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1611_EW50850_8080 u8x8(8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*cs=*/ 3, /*dc=*/ 16, /*reset=*/ 17); // 240x160, Connect RD/WR1 pin with 3.3V, CS is aktive high //U8X8_UC1611_CG160160_8080 u8x8(8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*cs=*/ 3, /*dc=*/ 16, /*reset=*/ 17); // Connect WR1 and CD1 pin with 3.3V, connect CS0 with cs, WR0 with enable, CD with dc //U8X8_UC1617_JLX128128_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1617_JLX128128_4W_HW_SPI u8x8( /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1638_192X96_4W_SW_SPI u8x8( /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1638_192X96_4W_HW_SPI u8x8( /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_UC1638_192X96_SW_I2C u8x8(/* clock=*/ 13, /* data=*/ 11, /* reset=*/ 8); // u8g2 test board: I2C clock/data is same as SPI, I2C default address is 0x78 //U8X8_SSD1606_172X72_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // eInk/ePaper Display //U8X8_SSD1607_200X200_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // eInk/ePaper Display, original LUT from embedded artists //U8X8_SSD1607_GS_200X200_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Good Display //U8X8_SSD1607_WS_200X200_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // Waveshare //U8X8_IL3820_296X128_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // eInk/ePaper Display, original LUT //U8X8_IL3820_V2_296X128_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // eInk/ePaper Display, optimized (lesser screen flicker) //U8X8_ST7511_AVD_320X240_8080 u8x8(13, 11, 2, 3, 4, 5, 6, A4, /*enable/WR=*/ 7, /*cs=*/ 10, /*dc=*/ 9, /*reset=*/ 8); // Connect RD pin with 3.3V/5V //U8X8_S1D15721_240X64_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); //U8X8_S1D15721_240X64_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); // End of constructor list void setup(void) { /* U8g2 Project: SSD1306 Test Board */ //pinMode(10, OUTPUT); //pinMode(9, OUTPUT); //digitalWrite(10, 0); //digitalWrite(9, 0); /* U8g2 Project: KS0108 Test Board */ //pinMode(16, OUTPUT); //digitalWrite(16, 0); u8x8.begin(); u8x8.setPowerSave(0); } // two 6x6 pixel frames centered within two 8x8 tiles uint8_t tile[16] = { 0x00, 0x7e, 0x42, 0x42, 0x42, 0x42, 0x7e, 0x00, 0x00, 0x7e, 0x42, 0x42, 0x42, 0x42, 0x7e, 0x00 }; void loop(void) { u8x8.setFont(u8x8_font_amstrad_cpc_extended_r); u8x8.drawTile(15,0, 2, tile); u8x8.drawString(0, 2, ""This is line y=2""); u8x8.refreshDisplay(); // only required for SSD1606/7 delay(2000); } ",12538,True,3737.287595866161,median "/* * Project HLM_FLIGHT_COMPUTER * Description: HLM1 High Altitude Weather Balloon Flight Computer * Author: ASFM HLM STEM LAB - 2017 Near Space Team * License: MIT Open Source * Date: May/2018 */ #include ""TinyGPS++.h"" #include ""Serial5/Serial5.h"" #include ""Serial4/Serial4.h"" #include ""ParticleSoftSerial.h"" #include ""Wire.h"" #include ""IntersemaBaro.h"" //====[SETTINGS]================================================= bool cellModemEnabled = true; //NO CONST! bool satModemEnabled = true; //NO CONST! bool cellMuteEnabled = true; //NO CONST! bool sdMuteEnabled = false; //NO CONST! bool satMuteEnabled = true; //NO CONST! const float altitudeGainClimbTrigger = 200; //FT Minimum alt gain after startup to detect climb. const float altitudePerMinuteGainClimbTrigger = 200; //ft per minute to detect a climb const float altitudeLossPerMinuteForDescentDetection = -400; const float iterationsInLowDescentToTriggerRecovery = 80; const float minimumAltitudeToTriggerRecovery = 10000; //If above this level we will not trigger recovery (Should we remove this??) const float minimumSonarDistanceToConfirmRecovery = 1; //Meters const uint periodBetweenCellularReports = 23; //Seconds const uint periodBetweenSatelliteReports = 33; //Seconds // const uint periodBetweenRadioReports = 2; //Seconds const float minimumBatteryForLEDUse = 70; const int anticollisionFlashInterval = 18; //External LED flash ever x seconds (see altitude condition too) const float maximumAltitudeForAntiCollision = 35000; // In Feets.. // const uint periodBetweenSDWriteReports = 5; //Seconds // const char *SDFileName = ""NSP2017Log.txt""; bool debugMode = true; //NO CONST! //ADC PARAMS FOR SENSOR READINGS const int ADC_OVERSAMPLE = 10; //Number of samples to take before making an accurate reading (average) //SIMULATION SETTINGS >>>>>> bool simulationMode = false; bool gpsDebugDump = false; bool satDebugDump = false; bool sdDebugDump = false; float simulatedApogeeAltitude = 200; //<<<<<< //EEPROM PARAMETERS FOR REBOOT PERSISTENT ADDRESS >>>>>> int eeprom_rebootRecoveryModeAddress = 1; uint16_t rebootRecoveryMode = 0; struct RebootRecoveryData { uint8_t version; //eeprom version check uint8_t mode; uint8_t groundRecovery; float initialGPSAltitude; }; //PARTICLE SYSTEM PARAMS SYSTEM_MODE(SEMI_AUTOMATIC); SYSTEM_THREAD(ENABLED); //====[MACROS]==================================================== #define GPS Serial1 #define COMPUTER Serial #define SDCARD Serial4 #define GPSEvent serialEvent1 #define computerEvent serialEvent #define SDCardEvent serialEvent4 #define SATCOM Serial5 #define SATCOMEvent serialEvent5 #define RADIO SoftSer #define SATCOMEnablePin D2 #define EXTSTATUSLEDPin A5 #define BUZZERPin D4 #define SONARPin A1 #define TEMPSENSORPin A0 #define RADIO_RXPIN A2 #define RADIO_TXPIN A3 #define SW0 A5 #define ANTICOL D1 #define SENSORCOMP Wire1 //====[VARIABLES]================================================= //## DO NOT MODIFY //## uint celTelemetryTurn = 0; uint satTelemetryTurn = 0; uint elapsedSeconds = 0; uint lastCycleTime = 0; uint recoveryDetectionIterations = 0; float initialGPSAltitude = -1.0; float lastPositiveGPSAltitude = 0.0; float lastGPSAltitude = -1.0; float altitudePerMinute = -1.0; float altitudeGain = -1.0; float altitudeOfApogee = -1.0; float sonarDistance = -1.0; //In Meters float internalTempC = -1.0; //In C float ext_TempAnalogC = -1.0; //In C (From remote unit) float ext_TempDigitalC = -1.0; //In C (From remote unit) float ext_HumidityDigital = -1.0; //In C (From remote unit) float ext_Pressure = -1.0; // int gpsFixValue = 0; float simulatedAltitude = 0.0; //For simulation only. //States bool simulatedClimbEnded = false; FuelGauge fuel; float batteryLevel = -1.0; int satcomSignal = -1; bool satcomAlive = false; int cellSignalRSSI = -1; int cellSignalQuality = -1; bool transmittingToCloud = false; // ALTIMETER MODULE: MS5607 Intersema::BaroPressure_MS5607B baro(true); String computerSerialData; String radioSerialData; String SDCardSerialData; String satSerialData; String sensorCompData; String lastSatModemRequest = """"; enum MissionStage { ground, climb, descent, recovery, recovery_confirmed }; enum GPSState { unknown, noFix, Fix }; TinyGPSPlus gpsParser; MissionStage missionStage = ground; GPSState gpsState = unknown; TinyGPSCustom gpsFixType(gpsParser, ""GPGGA"", 6); // $GPGGA fixType decoding from GPS ParticleSoftSerial SoftSer(RADIO_RXPIN, RADIO_TXPIN); //====[PARTICLE CLOUD FNs]================================= bool success = Particle.function(""c"", computerRequest); //##########.##########.##########.##########.##########.#########.#########.#########.#########.#########.#########.#########.######### //====[MAIN PGM]========================================== // ## // ## // ## void setup() { //TAKE CONTROL OF THE RGB LED ONBOARD RGB.control(true); //Setup SATCOM pinMode(SATCOMEnablePin, OUTPUT); pinMode(BUZZERPin, OUTPUT); pinMode(EXTSTATUSLEDPin, OUTPUT); pinMode(SW0, INPUT_PULLDOWN); pinMode(ANTICOL, OUTPUT); // pinMode(SONARPin, INPUT); digitalWrite(SATCOMEnablePin, HIGH); digitalWrite(BUZZERPin, LOW); digitalWrite(EXTSTATUSLEDPin, LOW); //JOIN WIRE NETWORK AS MASTER SENSORCOMP.begin(); //CONNECT TO GPS GPS.begin(57600); //CONNECT TO COMPUTER VIA USB COMPUTER.begin(57600); //CONNECT TO SDCARD LOGGER SDCARD.begin(115200); //MAKE SURE YOU SET THIS UP IN THE CONFIG.TXT (115200,26,3,0,1,1,0) //CONNECT TO XBEE RADIO.begin(9600); baro.init(); delay(100); //INIT SDCARD bootSDCard(); //SETUP BATTERY CHARGER setupBatteryCharger(); //CHANGE LED COLOR RGB.color(0, 0, 255); RGB.brightness(100); //Set Cell Modem depending on the initial setup configuration (See CellModemEnable var at start of code) setCellModem(cellModemEnabled); //WAIT 2 seconds to start delay(2000); RGB.color(255, 255, 255); RGB.brightness(0); //BEGIN SatCom Comunications (delay further to allow super cap to charge); SATCOM.begin(19200, SERIAL_8N1); setSatModem(satModemEnabled); //Start the basic timed events // masterTimer.start(); //READ INITIAL POWER LEFT In Battery updateLocalSensors(); batteryLevel = fuel.getSoC(); delay(300); initialGPSAltitude = -1; sendToComputer(""[Stage] Ground ""); } void reqSesnorCompUpdate() { SENSORCOMP.requestFrom(1, 17); //Request data from external sensor slave unit. } void sensorCompEvent() { while(SENSORCOMP.available()){ char c = SENSORCOMP.read(); sensorCompData = sensorCompData + c; } decodeRemoteSensorData(); } void decodeRemoteSensorData() { // Serial.println(""[Event] i2C Event : "" + sensorCompData); String dTemp = getValue(sensorCompData, ',', 0); String dHum = getValue(sensorCompData, ',', 1); String aTemp = getValue(sensorCompData, ',', 2); ext_TempDigitalC = dTemp.toFloat(); ext_HumidityDigital = dHum.toFloat(); ext_TempAnalogC = aTemp.toFloat(); sensorCompData = """"; } String getValue(String data, char separator, int index) { int found = 0; int strIndex[] = { 0, -1 }; int maxIndex = data.length() - 1; for (int i = 0; i <= maxIndex && found <= index; i++) { if (data.charAt(i) == separator || i == maxIndex) { found++; strIndex[0] = strIndex[1] + 1; strIndex[1] = (i == maxIndex) ? i+1 : i; } } return found > index ? data.substring(strIndex[0], strIndex[1]) : """"; } void loop() { uint currentTime = millis(); //Get the time since boot. uint currentPeriod = currentTime - lastCycleTime; //Calculate elapsed time since last loop. triggerAntiCollisionLight(currentPeriod); if (currentPeriod > 500) { //Every half a second reqSesnorCompUpdate(); if (RADIO.available()) { radioEvent(); } if (SENSORCOMP.available()) { sensorCompEvent(); } signalFlareCheck(); } if (currentPeriod >= 1000) { //Every Second elapsedSeconds++; setMissionIndicators(); logDataToSDCard(); //HERE OR IN THE UPPER check? satcomKeepAlive(); sendDataToCloud(); updateStage(); updateLocalSensors(); doDebugToComputer(); sendDataToRadio(); getBaroData(); lastCycleTime = currentTime; //Reset lastCycleTime for performing the next cycle calculation. } if (elapsedSeconds >= 240) { elapsedSeconds = 0; } //Prevent overflow } void getBaroData() { ext_Pressure = baro.getPressurePascals(); } // ========================================================== // PERIPHERALS // ========================================================== void bootSDCard() { delay(100); writeLineToSDCard(""[EVENT] System Boot""); if (Time.isValid() == true) { time_t time = Time.now(); writeLineToSDCard(""TimeStamp: "" + Time.format(time, TIME_FORMAT_ISO8601_FULL)); } else { writeLineToSDCard(""[EVENT] System Boot""); writeLineToSDCard(""TimeStamp: Not provided by Kernel""); } delay(200); sendToComputer(""[SDCARD] Initialized to append writing""); checkRebootRecoveryMode(); } void checkRebootRecoveryMode() { RebootRecoveryData rebootRecoveryData; EEPROM.get(eeprom_rebootRecoveryModeAddress, rebootRecoveryData); if (rebootRecoveryData.version == 0) { rebootRecoveryMode = rebootRecoveryData.mode; } if (rebootRecoveryMode == 1) { initialGPSAltitude = rebootRecoveryData.initialGPSAltitude; cellMuteEnabled = false; satMuteEnabled = false; sdMuteEnabled = false; sendToComputer(""[EVENT] >RECOVERY M ODE DETECTED<""); sendToComputer(""[EVENT] RECOVERY ALT: "" + String(initialGPSAltitude)); writeLineToSDCard(""[EVENT] >RECOVERY MODE DETECTED<""); writeLineToSDCard(""[EVENT] RECOVERY ALT: "" + String(initialGPSAltitude)); if (rebootRecoveryData.groundRecovery == 1) { digitalWrite(BUZZERPin, HIGH); writeLineToSDCard(""[EVENT] >GROUND RECOVERY STAGE DETECTED<""); sendToComputer(""[EVENT] >GROUND RECOVERY STAGE DETECTED<""); } } } // ========================================================== // PERIODIC TASKS // ========================================================== void setMissionIndicators() { if (missionStage == ground && Cellular.ready() == false) { RGB.color(255,165,0); } //Orange if (missionStage == ground && Cellular.connecting() == true) { RGB.color(50,50,255); } //Whitish if (missionStage == ground && Cellular.ready() == true) { RGB.color(0,255,0); } //Green if (missionStage == climb) { RGB.color(0,0,255); } //Blue if (missionStage == descent) { RGB.color(255,215,0); } //Yellow if (missionStage == recovery) { RGB.color(255,0,255); } //Magenta bool missionWarningLED = false; if (missionStage == ground) { if (performPreflightCheck() != 1 && batteryLevel >= minimumBatteryForLEDUse) { missionWarningLED = true; } } if (elapsedSeconds % 2 == 0 ) { //LEDS RGB.brightness(0); digitalWrite(EXTSTATUSLEDPin, HIGH); if (missionWarningLED==true) { digitalWrite(EXTSTATUSLEDPin, HIGH); } } else { if (debugMode == true && batteryLevel >= minimumBatteryForLEDUse) { RGB.brightness(100); } if (missionWarningLED==true) { digitalWrite(EXTSTATUSLEDPin, LOW); } } } void satcomKeepAlive() { if (elapsedSeconds % 9 == 0) { if (satModemEnabled == true && satcomAlive == false) { SatPing(); } if (satModemEnabled == true && satcomAlive == true) { getSatSignal(); } } } void sendDataToCloud() { if (elapsedSeconds % periodBetweenCellularReports == 0) { //CELLULAR sendStatusToCell(); //Send STAT STRING to cloud via CELL if connected.. } if (elapsedSeconds % periodBetweenSatelliteReports == 0) { //SATELLITE sendStatusToSat(); } } void sendDataToRadio() { if (transmittingToCloud == false) { //SATELLITE sendToRadio(telemetryString()); } } void logDataToSDCard() { //TODO [Set a period for storage] if (sdMuteEnabled == false) { logStatusToSDCard(); } } void updateLocalSensors() { sonarDistance = readSonarDistance(); batteryLevel = fuel.getSoC(); internalTempC = readInternalTemp(); } void doDebugToComputer() { if (debugMode == true && gpsDebugDump == false && satDebugDump == false && simulationMode == false) { sendToComputer(telemetryString()); } } void signalFlareCheck() { if (missionStage == recovery_confirmed) { if (elapsedSeconds % 2 == 0) { digitalWrite(BUZZERPin, HIGH); } else { digitalWrite(BUZZERPin, LOW); } } } void triggerAntiCollisionLight(uint currentPeriod) { if (currentPeriod > 1000 && (elapsedSeconds % anticollisionFlashInterval == 0) && (lastGPSAltitude < maximumAltitudeForAntiCollision)) { digitalWrite(ANTICOL, HIGH); } else { digitalWrite(ANTICOL, LOW); } } // ========================================================== // STATE MACHINE // ========================================================== void updateStage() { float gpsAltitude = gpsParser.altitude.feet() + simulatedAltitude; altitudeGain = (gpsAltitude - initialGPSAltitude); float altitudeTrend = gpsAltitude - lastGPSAltitude; altitudePerMinute = altitudeTrend * 60; //SIMULATOR>>>//////////// if (simulationMode) { if (simulatedClimbEnded == false && (missionStage == ground || missionStage == climb)) { simulatedAltitude+=random(5, 8); //Between 300/480ft per minute if (altitudeGain >= simulatedApogeeAltitude) { simulatedClimbEnded = true; } } else if (simulatedClimbEnded == true) { simulatedAltitude-=random(5, 17); //Between -600/-1000ft per minute if (gpsAltitude <= initialGPSAltitude) { simulatedClimbEnded = false; } } // if (debugMode == true) { COMPUTER.print(""[SIMULATOR] Altitude: "" + String(gpsAltitude)); COMPUTER.print(""ft | VSI: "" + String(altitudePerMinute)); COMPUTER.print(""ftxmin | TREND: "" + String(altitudeTrend)); COMPUTER.println("" | GAIN: "" + String(altitudeGain) + "" ft""); // if (missionStage == recovery) { // simulationMode = false; // sendToComputer(""[SIMULATOR] Simulation Ended""); // } // } } //<<< 0 && missionStage == ground) { if ((altitudeGain > altitudeGainClimbTrigger) && (altitudePerMinute > altitudePerMinuteGainClimbTrigger)) { missionStage = climb; lastPositiveGPSAltitude = gpsAltitude; sendToComputer(""[Stage] Climb Detected at: "" + String(gpsAltitude)); writeLineToSDCard(""[Stage] Climb Detected at: "" + String(gpsAltitude)); } } if ((missionStage == climb) && (gpsAltitude < lastGPSAltitude) && (gpsAltitude > altitudeOfApogee) && (lastGPSAltitude != -1)) { sendToComputer(""[Event] Apogee Reached at "" + String(gpsAltitude)); writeLineToSDCard(""[Event] Apogee Reached at "" + String(gpsAltitude)); altitudeOfApogee = gpsAltitude; } if (missionStage == climb && altitudeTrend < 10 && altitudePerMinute <= altitudeLossPerMinuteForDescentDetection) { missionStage = descent; sendToComputer(""[Stage] Descent Detected at "" + String(gpsAltitude)); writeLineToSDCard(""[Stage] Descent Detected at "" + String(gpsAltitude)); } if ((missionStage == descent && altitudePerMinute < 2) && (gpsAltitude <= minimumAltitudeToTriggerRecovery)) { recoveryDetectionIterations++; if (recoveryDetectionIterations >= iterationsInLowDescentToTriggerRecovery) { missionStage = recovery; digitalWrite(BUZZERPin, HIGH); sendToComputer(""[Stage] Recovery Detected at "" + String(gpsAltitude)); writeLineToSDCard(""[Stage] Recovery Detected at "" + String(gpsAltitude)); RebootRecoveryData rebootRecoveryData; rebootRecoveryData.mode = rebootRecoveryMode; rebootRecoveryData.initialGPSAltitude = initialGPSAltitude; rebootRecoveryData.version = 0; rebootRecoveryData.groundRecovery = 1; EEPROM.put(eeprom_rebootRecoveryModeAddress, rebootRecoveryData); } } if (missionStage == recovery) { //TODO: Add bypass to signalflare if (sonarDistance <= minimumSonarDistanceToConfirmRecovery) { missionStage = recovery_confirmed; sendToComputer(""[Stage] Recovery Confirmed at "" + String(sonarDistance)); writeLineToSDCard(""[Stage] Recovery Confirmed at "" + String(sonarDistance)); } } lastGPSAltitude = gpsAltitude; } // ========================================================== // LOCAL SENSORS & PERIPHERALS // ========================================================== float readSonarDistance() { float rawAnalog = 0; for (int i = 0; i < ADC_OVERSAMPLE; i++) { //Do several samples and then average them. rawAnalog += analogRead(SONARPin); } rawAnalog = rawAnalog / ADC_OVERSAMPLE; float Vm = (rawAnalog * 0.8); //Measured Voltage (MILI VOLTS) [0.000805] [0.8] float Vi = 6.44; //0.00322 //3.222 float m = ((Vm/Vi) * 2.54) / 100; //Inches to cm || to meters return m; } float readInternalTemp() { float rawAnalog = 0; for (int i = 0; i < ADC_OVERSAMPLE; i++) { //Do several samples and then average them. rawAnalog += analogRead(TEMPSENSORPin); } rawAnalog = rawAnalog / ADC_OVERSAMPLE; float tempC = (((rawAnalog * 3.3)/4095) - 0.5) * 100; return tempC; } void setupBatteryCharger() { PMIC pmic; //Initalize the PMIC class so you can call the Power Management functions below. pmic.setChargeCurrent(0,0,1,0,0,0); pmic.setInputCurrentLimit(1500); pmic.setChargeVoltage(4208); } // ========================================================== // HELPER FUNCTIONS // ========================================================== String gpsTimeFormatted() { //Format: HHMMSS String hour = String(gpsParser.time.hour()); String minute = String(gpsParser.time.minute()); String second = String(gpsParser.time.second()); if (hour.length() == 1) { hour = ""0"" + String(gpsParser.time.hour()); } if (minute.length() == 1) { minute = ""0"" + String(gpsParser.time.minute()); } if (second.length() == 1) { second = ""0"" + String(gpsParser.time.second()); } return hour + minute + second; } String gpsDateFormatted() { //Format: DDMM String day = String(gpsParser.date.day()); String month = String(gpsParser.date.month()); if (day.length() == 1) { day = ""0"" + String(gpsParser.date.day()); } if (month.length() == 1) { month = ""0"" + String(gpsParser.date.month()); } return day + month; } String gpsTimeStamp() { return gpsDateFormatted() + gpsTimeFormatted(); } String missionStageShortString() { if (missionStage == ground) { return ""G""; } if (missionStage == climb) { return ""C""; } if (missionStage == descent) { return ""D""; } if (missionStage == recovery) { return ""R""; } } void updateGPSFixType() { String inValue = gpsFixType.value(); gpsFixValue = inValue.toInt(); switch(gpsFixValue) { case 0: gpsState = noFix; break; case 1: gpsState = Fix; break; case 2: gpsState = Fix; break; default : gpsState = noFix; break; } } void sendToComputer(String text) { TRY_LOCK(COMPUTER) { COMPUTER.println(text); } } void sendToRadio(String text) { int xmlength = text.length(); String textOutput = String(xmlength) + "">"" + text; RADIO.println(textOutput); } void sendToComputerAndRadio(String text) { sendToComputer(text); sendToRadio(text); } void sendToSDCard(String text) { SDCARD.println(text); } void writeLineToSDCard(String line) { SDCARD.println(line); } // ========================================================== // INTERRUPT BASED SERIAL COM (CALLBACKS) // ========================================================== void SATCOMEvent() { while (SATCOM.available()) { char c = SATCOM.read(); satSerialData = satSerialData + c; if (satDebugDump==true && gpsDebugDump==false) { TRY_LOCK(COMPUTER) { COMPUTER.write(c); } RADIO.write(c); } if (c == '\\r') { satSerialData = satSerialData.trim(); if (satSerialData.substring(0,5) == ""+CSQ:"") { String signal = satSerialData.substring(5); satcomSignal = signal.toInt(); } if (satSerialData.substring(0,2) == ""OK"") { if (satcomAlive == false && satModemEnabled == true && lastSatModemRequest == ""AT"") { satcomAlive = true; sendToComputer(""[Event] SatCom Alive""); writeLineToSDCard(""[Event] SatCom Alive""); getSatSignal(); } if (lastSatModemRequest == ""AT+SBDWT="") { SATCOM.println(""AT+SBDIX""); //Do transmit session! } if (lastSatModemRequest == ""AT&K0"") { // SATCOM.println(""ATE0""); //Echo Off // lastSatModemRequest == ""ATE0""; } lastSatModemRequest = """"; } satSerialData = """"; //Empty Serial Buffer } } } void SW0Event() { COMPUTER.write(""C""); } void GPSEvent() { while (GPS.available()) { char c = GPS.read(); gpsParser.encode(c); if (gpsDebugDump==true && satDebugDump==false) { TRY_LOCK(COMPUTER) { COMPUTER.print(c); } } } updateGPSFixType(); if (gpsState == Fix && initialGPSAltitude==-1 && gpsParser.altitude.feet() > 0) { initialGPSAltitude = gpsParser.altitude.feet(); sendToComputer(""[Event] Initial Altitude Set to: "" + String(initialGPSAltitude,0)); writeLineToSDCard(""[Event] Initial Altitude Set to: "" + String(initialGPSAltitude,0)); } } void computerEvent() { if (COMPUTER.available()) { while (COMPUTER.available()) { char c = COMPUTER.read(); computerSerialData = computerSerialData + c; if (c == '\\n') { computerSerialData = computerSerialData.remove(computerSerialData.indexOf('\\n')); computerRequest(computerSerialData); computerSerialData = """"; } } } } void radioEvent() { if (RADIO.available()) { while (RADIO.available()) { char c = RADIO.read(); radioSerialData = radioSerialData + c; if (c == '\\n') { radioSerialData = radioSerialData.remove(radioSerialData.indexOf('\\n')); computerRequest(radioSerialData); radioSerialData = """"; } } } } void SDCardEvent() { if (SDCARD.available()) { while (SDCARD.available()) { char c = SDCARD.read(); SDCardSerialData = SDCardSerialData + c; if (c == '\\r') { if (sdDebugDump == true) { sendToComputer(SDCardSerialData); } SDCardSerialData = SDCardSerialData.remove(SDCardSerialData.indexOf('\\n')); SDCardSerialData = """"; } } } } // ========================================================== // REMOTE CONTROL // ========================================================== int computerRequest(String param) { if (param == ""deboff"") { debugMode = false; sendToComputerAndRadio(""OK""); return 1; } if (param == ""debon"") { debugMode = true; sendToComputerAndRadio(""OK""); return 1; } if (param == ""simon"") { simulationMode = true; sendToComputerAndRadio(""OK""); return 1; } if (param == ""simoff"") { simulationMode = false; sendToComputerAndRadio(""OK""); return 1; } if (param == ""reset"") { simulationMode = false; missionStage = ground; initialGPSAltitude = -1.0; lastPositiveGPSAltitude = 0.0; altitudeGain = -1.0; lastGPSAltitude = -1.0; altitudePerMinute = -1.0; altitudeOfApogee = -1.0; simulatedAltitude = 0.0; //For simulation only. sendToComputerAndRadio(""OK""); return 1; } if (param == ""reboot"") { sendToComputerAndRadio(""OK""); System.reset(); } if (param == ""cellon"") { setCellModem(true); return 1; } if (param == ""celloff"") { setCellModem(false); return 1; } if (param == ""cellmute"") { cellMuteEnabled = !cellMuteEnabled; if (cellMuteEnabled == true) { sendToComputerAndRadio(""[Event] CellMute Enabled""); return 1; } else { sendToComputerAndRadio(""[Event] CellMute Disabled""); return 0; } } if (param == ""satmute"") { satMuteEnabled = !satMuteEnabled; if (satMuteEnabled == true) { sendToComputerAndRadio(""[Event] SatMute Enabled""); return 1; } else { sendToComputerAndRadio(""[Event] SatMute Disabled""); return 0; } } if (param == ""sdmute"") { sdMuteEnabled = !sdMuteEnabled; if (sdMuteEnabled == true) { sendToComputerAndRadio(""[Event] SDMute Enabled""); return 1; } else { sendToComputerAndRadio(""[Event] SDMute Disabled""); return 0; } } if (param == ""flymode"") { cellMuteEnabled = false; satMuteEnabled = false; sdMuteEnabled = false; rebootRecoveryMode = 1; RebootRecoveryData rebootRecoveryData; rebootRecoveryData.mode = rebootRecoveryMode; rebootRecoveryData.initialGPSAltitude = initialGPSAltitude; rebootRecoveryData.version = 0; rebootRecoveryData.groundRecovery = 0; EEPROM.put(eeprom_rebootRecoveryModeAddress, rebootRecoveryData); // EEPROM.put(eeprom_rebootRecoveryModeAddress, rebootRecoveryMode); writeLineToSDCard(""[EVENT] Fly Mode Armed""); sendToComputerAndRadio(""[EVENT] Fly Mode Armed""); return 1; } if (param == ""rigmode"") { cellMuteEnabled = true; satMuteEnabled = true; rebootRecoveryMode = 0; RebootRecoveryData rebootRecoveryData; rebootRecoveryData.mode = rebootRecoveryMode; rebootRecoveryData.initialGPSAltitude = initialGPSAltitude; rebootRecoveryData.version = 0; rebootRecoveryData.groundRecovery = 0; EEPROM.put(eeprom_rebootRecoveryModeAddress, rebootRecoveryData); writeLineToSDCard(""[EVENT] Rig Mode Enabled""); sendToComputerAndRadio(""[EVENT] Rig Mode Enabled""); return 1; } if (param == ""saton"") { setSatModem(true); return 1; } if (param == ""satoff"") { setSatModem(false); return 1; } if (param == ""comon"") { setSatModem(true); setCellModem(true); return 1; } if (param == ""comoff"") { setSatModem(false); setCellModem(false); return 1; } if (param == ""gpsdump"") { gpsDebugDump = !gpsDebugDump; return 1; } if (param == ""satdump"") { satDebugDump = !satDebugDump; return 1; } if (param == ""sddump"") { sdDebugDump = !sdDebugDump; return 1; } if (param == ""querysatsignal"") { sendToComputer(""OK""); getSatSignal(); return 1; } if (param == ""querycellsignal"") { sendToComputer(""OK""); getCellSignal(); return 1; } if (param == ""buzzeron"") { digitalWrite(BUZZERPin, HIGH); return 1; } if (param == ""buzzeroff"") { digitalWrite(BUZZERPin, LOW); return 1; } if (param == ""buzzerchirp"") { digitalWrite(BUZZERPin, HIGH); delay(1000); digitalWrite(BUZZERPin, LOW); return 1; } if (param == ""resetinitialaltitude"") { initialGPSAltitude = gpsParser.altitude.feet(); return initialGPSAltitude; } if (param == ""preflight?"") { return performPreflightCheck(); } if (param == ""initialaltitude?"") { sendToComputerAndRadio(String(initialGPSAltitude)); return initialGPSAltitude; } if (param == ""vsi?"") { sendToComputerAndRadio(String(altitudePerMinute)); return (int)altitudePerMinute; } if (param == ""alt?"") { sendToComputerAndRadio(String(lastGPSAltitude)); return (int)lastGPSAltitude; } if (param == ""apogee?"") { sendToComputerAndRadio(String(altitudeOfApogee)); return (int)altitudeOfApogee; } if (param == ""stage?"") { sendToComputerAndRadio(missionStageShortString()); return missionStage; } if (param == ""cell?"") { if (Cellular.ready() == true) { sendToComputerAndRadio(""YES""); } else { sendToComputerAndRadio(""NO""); } } if (param == ""cellconnecting?"") { if (Cellular.connecting() == true) { sendToComputerAndRadio(""YES""); } else { sendToComputerAndRadio(""NO""); } } if (param == ""cellsignal?"") { CellularSignal sig = Cellular.RSSI(); sendToComputerAndRadio(sig); return sig.rssi; } if (param == ""cloud?"") { if (Particle.connected() == true) { sendToComputerAndRadio(""YES""); } else { sendToComputerAndRadio(""NO""); } } if (param == ""satsignal?"") { sendToComputerAndRadio(String(satcomSignal)); return satcomSignal; } if (param == ""satenabled?"") { if (satModemEnabled) { sendToComputerAndRadio(""YES""); return 1; } sendToComputerAndRadio(""NO""); return 0; } if (param == ""flymode?"") { if (rebootRecoveryMode == 1) { sendToComputerAndRadio(""Fly Mode Armed""); } else { sendToComputerAndRadio(""Rig Mode Enabled""); } return rebootRecoveryMode; } if (param == ""fwversion?"") { TRY_LOCK(COMPUTER) { COMPUTER.printlnf(""Firmware version: %s"", System.version().c_str()); } return 1; } if (param == ""bat?"") { sendToComputerAndRadio(String(batteryLevel)); return batteryLevel; } if (param == ""gpsfix?"") { sendToComputerAndRadio(String(gpsFixValue)); return gpsFixValue; } if (param == ""sonar?"") { sendToComputerAndRadio(String(sonarDistance) + "" meters""); return int(sonarDistance*100); //meters to centimeters and int } if (param == ""temp?"") { sendToComputerAndRadio(String(internalTempC) + "" C""); return int(internalTempC); //meters to centimeters and int } if (param == ""$"") { sendToComputerAndRadio(SDLogString()); return 1; } if (param == ""$$"") { sendToComputerAndRadio(""OK""); sendStatusToCell(); return 1; } // if (param == ""x$$"") { // sendToComputer(""OK""); // sendExtendedDataToCell(); // return 1; // } if (param == ""$$$"") { sendToComputerAndRadio(""OK""); sendStatusToSat(); sendStatusToCell(); return 1; } if (param == ""$$$$"") { sendToComputerAndRadio(""OK""); sendStatusToCell(); //sendExtendedDataToCell(); sendStatusToSat(); //sendExtendedDataToSat(); return 1; } // if (param == "">ls"") { // sendToSDCard(""new NSP2017Log.txt""); // sendToComputer(""OK""); // return 1; // } if (param == "">cmd"") { SDCARD.write(26); SDCARD.write(26); SDCARD.write(26); delay(100); sendToComputerAndRadio(""OK""); } if (param == "">init"") { sendToSDCard(""init""); sendToComputerAndRadio(""OK""); } if (param == "">set4"") { sendToSDCard(""set""); sendToComputerAndRadio(""OK""); } if (param == ""?"") { TRY_LOCK(COMPUTER) { COMPUTER.println(""-------------------------.--------------------------.--------------------""); COMPUTER.println(""Status Sentence (1hz):""); COMPUTER.println(""TimeStamp,Lat,Lon,Alt,Speed,HDG,GPS_SATS,GPS_PRECISION,BATTLVL,IRIDIUM_SATS,INT_TEMP,STAGE""); COMPUTER.println(""-------------------------.--------------------------.--------------------""); COMPUTER.println(""deboff = Debug Off""); COMPUTER.println(""debon = Debug On""); COMPUTER.println(""simon = Start Simulation""); COMPUTER.println(""simoff = Stop Simulation""); COMPUTER.println(""reset = Set mission to ground mode""); COMPUTER.println(""reboot = Reboot Flight Computer""); COMPUTER.println(""simon = Start Simulation""); COMPUTER.println(""cellon = Cell Modem On""); COMPUTER.println(""celloff = Cell Modem Off""); COMPUTER.println(""cellmute = Toggle Cell Reporting""); COMPUTER.println(""satmute = Toggle Sat Reporting""); COMPUTER.println(""flymode = Set system to fly mode [needed for mission]""); COMPUTER.println(""rigmode = Toggle Sat Reporting [disbales fly mode]""); COMPUTER.println(""saton = SAT Modem ON""); COMPUTER.println(""satoff = SAT Modem Off""); COMPUTER.println(""comoff = All Comunication systems OFF [cell + sat]""); COMPUTER.println(""comon = All Comunication systems ON [cell + sat]""); COMPUTER.println(""gpsdump = GPS Serial Dump to computer toggle""); COMPUTER.println(""satdump = SATCOM Serial Dump to computer toggle""); COMPUTER.println(""sddump = SDCARD Serial Dump to computer toggle""); COMPUTER.println(""querysatsignal = Send a request to the satelite modem to get sat signal""); COMPUTER.println(""querycellsignal = Send a request to the cellular modem to get RSSI signal""); COMPUTER.println(""buzzeron = Turn Buzzer ON""); COMPUTER.println(""buzzeroff = Turn Buzzer ON""); COMPUTER.println(""buzzerchirp = Chirp the buzzer""); COMPUTER.println(""resetinitialaltitude = Set the initial altitude to current altitude""); COMPUTER.println(""preflight? = Go no Go for launch""); COMPUTER.println(""initialaltitude? = Get the initial altitude set uppon gps fix""); COMPUTER.println(""vsi? = Vertical Speed?""); COMPUTER.println(""alt? = Altitude in feet?""); COMPUTER.println(""cell? = Cell Status?""); COMPUTER.println(""cellconnecting? = Cell Modem attempting to connect?""); COMPUTER.println(""cellsignal? = Cell Signal Strength [RSSI,QUAL] ?""); COMPUTER.println(""cloud? = Is cloud available?""); COMPUTER.println(""satsignal? = 0-5 Satcom signal strength?""); COMPUTER.println(""satenabled? = Is the sat modem enabled?""); COMPUTER.println(""flymode? = Is the system in fly mode?""); COMPUTER.println(""bat? = Get battery level?""); COMPUTER.println(""gpsfix? = Get GpsFix ValueType? (0=NoFix,1=Fix,2=DGPSFix)""); COMPUTER.println(""sonar? = Get the sonar distance in meters. (cm for cell)""); COMPUTER.println(""temp? = Get the internal (onboard) temperature in C""); COMPUTER.println(""fwversion? = OS Firmware Version?""); COMPUTER.println("">cmd = Set SD to Command Mode""); COMPUTER.println("">init = Force Initialize""); COMPUTER.println("">set = Enter set Menu""); COMPUTER.println(""$ = Print status string""); COMPUTER.println(""$$ = Print and send to CELL cloud status string""); COMPUTER.println(""$$$ = Print and send to SAT cloud status string""); COMPUTER.println(""-------------------------.--------------------------""); } //Todo (Eliminate duplicated code) RADIO.println(""-------------------------.--------------------------.--------------------""); RADIO.println(""Status Sentence (1hz):""); RADIO.println(""TimeStamp,Lat,Lon,Alt,Speed,HDG,GPS_SATS,GPS_PRECISION,BATTLVL,IRIDIUM_SATS,INT_TEMP,STAGE""); RADIO.println(""-------------------------.--------------------------.--------------------""); RADIO.println(""deboff = Debug Off""); RADIO.println(""debon = Debug On""); RADIO.println(""simon = Start Simulation""); RADIO.println(""simoff = Stop Simulation""); RADIO.println(""reset = Set mission to ground mode""); RADIO.println(""reboot = Reboot Flight Computer""); RADIO.println(""simon = Start Simulation""); RADIO.println(""cellon = Cell Modem On""); RADIO.println(""celloff = Cell Modem Off""); RADIO.println(""cellmute = Toggle Cell Reporting""); RADIO.println(""satmute = Toggle Sat Reporting""); RADIO.println(""flymode = Set system to fly mode [needed for mission]""); RADIO.println(""rigmode = Toggle Sat Reporting [disbales fly mode]""); RADIO.println(""saton = SAT Modem ON""); RADIO.println(""satoff = SAT Modem Off""); RADIO.println(""comoff = All Comunication systems OFF [cell + sat]""); RADIO.println(""comon = All Comunication systems ON [cell + sat]""); RADIO.println(""gpsdump = GPS Serial Dump to computer toggle""); RADIO.println(""satdump = SATCOM Serial Dump to computer toggle""); RADIO.println(""sddump = SDCARD Serial Dump to computer toggle""); RADIO.println(""querysatsignal = Send a request to the satelite modem to get sat signal""); RADIO.println(""querycellsignal = Send a request to the cellular modem to get RSSI signal""); RADIO.println(""buzzeron = Turn Buzzer ON""); RADIO.println(""buzzeroff = Turn Buzzer ON""); RADIO.println(""buzzerchirp = Chirp the buzzer""); RADIO.println(""resetinitialaltitude = Set the initial altitude to current altitude""); RADIO.println(""preflight? = Go no Go for launch""); RADIO.println(""initialaltitude? = Get the initial altitude set uppon gps fix""); RADIO.println(""vsi? = Vertical Speed?""); RADIO.println(""alt? = Altitude in feet?""); RADIO.println(""cell? = Cell Status?""); RADIO.println(""cellconnecting? = Cell Modem attempting to connect?""); RADIO.println(""cellsignal? = Cell Signal Strength [RSSI,QUAL] ?""); RADIO.println(""cloud? = Is cloud available?""); RADIO.println(""satsignal? = 0-5 Satcom signal strength?""); RADIO.println(""satenabled? = Is the sat modem enabled?""); RADIO.println(""flymode? = Is the system in fly mode?""); RADIO.println(""bat? = Get battery level?""); RADIO.println(""gpsfix? = Get GpsFix ValueType? (0=NoFix,1=Fix,2=DGPSFix)""); RADIO.println(""sonar? = Get the sonar distance in meters. (cm for cell)""); RADIO.println(""temp? = Get the internal (onboard) temperature in C""); RADIO.println(""fwversion? = OS Firmware Version?""); RADIO.println("">cmd = Set SD to Command Mode""); RADIO.println("">init = Force Initialize""); RADIO.println("">set = Enter set Menu""); RADIO.println(""$ = Print status string""); RADIO.println(""$$ = Print and send to CELL cloud status string""); RADIO.println(""$$$ = Print and send to SAT cloud status string""); RADIO.println(""-------------------------.--------------------------""); } return -99; } int performPreflightCheck() { if (initialGPSAltitude == -1) { // sendToComputer(""NO GO - MISSING INITIAL ALTITUDE""); return -1; } if (missionStage != ground) { // sendToComputer(""NO GO - STAGE NOT IN GOUND MODE""); return -2; } if (gpsParser.hdop.value() > 300) { // sendToComputer(""NO GO - GPS PRECISION OUT OF RANGE""); return -3; } if (gpsState != Fix) { // sendToComputer(""NO GO - GPS DOES NOT HAVE FIX""); return -4; } if (batteryLevel < 80) { // sendToComputer(""NO GO - LOW BATTERY FOR LAUNCH""); return -5; } if (sonarDistance > 10) { // sendToComputer(""NO GO - SONAR TEST FAILED""); return -6; } if (satModemEnabled == false) { // sendToComputer(""NO GO - SAT MODEM IS OFF""); return -7; } if (cellModemEnabled == false) { // sendToComputer(""NO GO - CELL MODEM IS OFF""); return -8; } if (satcomSignal < 2) { // sendToComputer(""NO GO - NOT ENOUGH SATCOM SATS FOR LAUNCH""); return -9; } getCellSignal(); if (cellSignalRSSI <= 0 || cellSignalQuality <= 0) { // sendToComputer(""NO GO - NOT ENOUGH CELL SIGNAL FOR LAUNCH""); return -10; } // sendToComputer(""[System] GO FOR LAUNCH""); // writeLineToSDCard(""[System] GO FOR LAUNCH""); return 1; } // ========================================================== // TELEMETRY - MODEMS - CONTROL // ========================================================== void sendStatusToCell() { if (Particle.connected() == true && cellMuteEnabled == false && transmittingToCloud == false) { transmittingToCloud = true; Particle.publish(""S"",telemetryString()); transmittingToCloud = false; } } void sendStatusToSat() { if (satMuteEnabled == false) { sendTextToSat(telemetryString()); } } void logStatusToSDCard() { writeLineToSDCard(SDLogString()); } String telemetryString() { //THIS IS ONE OF THE STRINGS THAT WILL BE SENT FOR TELEMETRY String value = gpsTimeStamp() + "","" + String(gpsParser.location.lat(), 6) + "","" + String(gpsParser.location.lng(), 6) + "","" + String(gpsParser.altitude.feet(),0) + "","" + String(gpsParser.speed.knots(),0) + "","" + String(gpsParser.course.deg(),0) + "","" + String(gpsParser.satellites.value()) + "","" + String(gpsParser.hdop.value()) + "","" + String(batteryLevel,0) + "","" + String(satcomSignal) + "","" + String(internalTempC,0) + "","" + String(ext_TempDigitalC,1) + "","" + String(ext_HumidityDigital,0) + "","" + String(ext_TempAnalogC,1) + "","" + String(ext_Pressure,0) + "","" + missionStageShortString(); return value; } String SDLogString() { String value = gpsTimeStamp() + "","" + String(gpsParser.location.lat(), 6) + "","" + String(gpsParser.location.lng(), 6) + "","" + String(gpsParser.altitude.feet(),0) + "","" + String(gpsParser.speed.knots(),0) + "","" + String(gpsParser.course.deg(),0) + "","" + String(gpsParser.satellites.value()) + "","" + String(gpsParser.hdop.value()) + "","" + String(batteryLevel,0) + "","" + String(satcomSignal) + "","" + String(internalTempC,2) + "","" + String(ext_TempDigitalC,2) + "","" + String(ext_HumidityDigital,2) + "","" + String(ext_TempAnalogC,2) + "","" + String(ext_Pressure,2) + "","" + String(sonarDistance,0) + "","" + String(altitudePerMinute,0) + "","" + String(altitudeGain,0) + "","" + missionStageShortString(); return value; } void setCellModem(bool value) { cellModemEnabled = value; if ((cellModemEnabled == true) && (Cellular.ready() == false) && (Cellular.connecting() == false)) { Cellular.on(); Cellular.connect(); Particle.connect(); sendToComputer(""[Event] Cell Modem ON""); getCellSignal(); } else if (cellModemEnabled == false) { Cellular.off(); cellSignalRSSI = -1; cellSignalQuality = -1; sendToComputer(""[Event] Cell Modem OFF""); } } void getCellSignal() { if (cellModemEnabled == false) { return; } CellularSignal cellSignal = Cellular.RSSI(); cellSignalRSSI = cellSignal.rssi; cellSignalQuality = cellSignal.qual; } void setSatModem(bool value) { if (satModemEnabled == false && value == true) { sendToComputer(""[Event] SAT Modem ON""); } satModemEnabled = value; if (satModemEnabled == false) { satcomAlive = false; satcomSignal = -1; sendToComputer(""[Event] SAT Modem OFF""); return; } SATCOM.println(""AT&K0""); lastSatModemRequest = ""AT&K0""; getSatSignal(); } void getSatSignal() { if (satModemEnabled == false) { return; } SATCOM.println(""AT+CSQ""); lastSatModemRequest = ""AT+CSQ""; } void sendTextToSat(String text) { if (satModemEnabled == false) { return; } SATCOM.println(""AT+SBDWT="" + text + ""\\r""); lastSatModemRequest = ""AT+SBDWT=""; } void SatPing() { SATCOM.println(""AT""); lastSatModemRequest = ""AT""; } ",12177,False,2484.748198148017,median " #include #include #include ""u8g2.h"" /* Fontname: FreeType-Amstrad CPC extended-Medium-R-Normal--8-80-72-72-P-64-ISO10646-1 Copyright: Copyright ruboku 2008 Glyphs: 95/196 BBX Build Mode: 3 */ //#include ""u8x2.h"" const uint8_t bdf_font[762] U8X8_FONT_SECTION(""bdf_font"") = { 32,126,0,0,0,0,0,0,0,0,0,0,0,95,95,0, 0,0,0,7,7,0,7,7,0,0,20,127,127,28,127,127, 20,0,0,36,42,127,127,42,18,0,70,102,48,24,12,102, 98,0,48,122,79,93,55,122,72,0,0,0,0,7,7,0, 0,0,0,0,28,62,99,65,0,0,0,0,65,99,62,28, 0,0,0,0,0,0,0,0,0,0,0,8,8,62,62,8, 8,0,0,0,128,224,96,0,0,0,0,8,8,8,8,8, 8,0,0,0,0,96,96,0,0,0,96,48,24,12,6,3, 1,0,62,127,81,73,69,127,62,0,0,64,66,127,127,64, 64,0,0,114,123,73,73,111,102,0,0,34,97,73,73,127, 54,0,24,20,82,127,127,80,16,0,0,39,111,73,73,121, 51,0,0,62,127,73,73,123,50,0,0,3,1,113,125,15, 7,0,0,54,127,73,73,127,54,0,0,38,111,73,73,127, 62,0,0,0,0,108,108,0,0,0,0,0,128,236,108,0, 0,0,0,8,28,54,99,65,0,0,0,36,36,36,36,36, 36,0,0,65,99,54,28,8,0,0,0,2,3,81,89,15, 6,0,62,127,65,93,93,95,30,0,0,124,126,19,19,126, 124,0,65,127,127,73,73,127,54,0,28,62,99,65,65,99, 34,0,65,127,127,65,99,62,28,0,65,127,127,73,93,65, 99,0,65,127,127,73,29,1,3,0,60,126,67,65,81,115, 114,0,0,127,127,8,8,127,127,0,0,65,65,127,127,65, 65,0,48,112,64,65,127,63,1,0,65,127,127,8,28,119, 99,0,65,127,127,65,64,96,112,0,127,127,14,28,14,127, 127,0,127,127,6,12,24,127,127,0,28,62,99,65,99,62, 28,0,65,127,127,73,9,7,6,0,60,126,67,81,51,110, 92,0,65,127,127,9,25,63,102,0,0,38,111,73,73,123, 50,0,0,3,65,127,127,65,3,0,0,63,127,64,64,127, 63,0,0,31,63,96,96,63,31,0,127,127,48,24,48,127, 127,0,97,115,30,12,30,115,97,0,0,7,79,120,120,79, 7,0,71,99,113,89,77,103,115,0,0,0,127,127,65,65, 0,0,1,3,6,12,24,48,96,0,0,0,65,65,127,127, 0,0,8,12,6,3,6,12,8,0,0,0,0,0,0,0, 0,0,0,0,2,6,12,8,0,0,32,116,84,84,60,120, 64,0,67,63,127,68,68,124,56,0,0,56,124,68,68,108, 40,0,56,124,68,69,63,127,64,0,0,56,124,84,84,92, 24,0,0,72,126,127,73,3,2,0,0,152,188,164,164,252, 124,0,65,127,127,8,4,124,120,0,0,0,68,125,125,64, 0,0,0,96,224,128,132,252,125,0,65,127,127,16,56,108, 68,0,0,0,65,127,127,64,0,0,120,124,12,56,12,124, 120,0,4,124,120,4,4,120,120,0,0,56,124,68,68,124, 56,0,132,252,248,164,36,60,24,0,24,60,36,164,248,252, 132,0,68,124,120,68,12,8,0,0,0,72,92,84,84,116, 32,0,0,4,63,127,68,100,32,0,0,60,124,64,64,124, 124,0,0,28,60,96,96,60,28,0,60,124,96,56,96,124, 60,0,68,108,56,16,56,108,68,0,0,156,188,160,160,252, 124,0,0,76,100,116,92,76,68,0,0,65,65,119,62,8, 8,0,0,0,0,127,127,0,0,0,0,8,8,62,119,65, 65,0,2,3,1,3,2,1,1,0}; const uint8_t u8g2_font_helvB18_tr[2245] U8X8_FONT_SECTION(""u8g2_font_helvB18_tr"") = { 95,0,4,3,5,5,3,5,6,23,24,0,251,19,251,19, 251,2,234,6,37,32,6,0,48,154,0,33,10,99,26,158, 240,23,234,14,4,34,11,197,184,167,32,193,139,145,8,0, 35,42,76,22,186,36,34,38,34,38,34,38,34,38,34,115, 64,113,64,35,34,38,34,38,34,38,34,115,64,113,64,35, 34,38,34,38,34,38,34,38,34,4,36,39,172,210,181,37, 119,116,48,65,33,177,68,196,68,228,66,204,174,146,178,206, 76,226,68,196,68,196,68,228,66,130,226,96,232,78,84,10, 0,37,49,85,18,218,61,87,54,118,52,54,179,76,74,100, 78,74,100,110,102,98,242,100,180,100,30,102,30,100,166,116, 228,112,100,102,110,68,74,108,70,74,108,102,213,212,217,88, 9,0,38,38,80,22,202,84,122,72,65,55,51,55,51,55, 51,56,49,218,244,100,134,130,98,102,230,100,170,102,108,104, 170,134,230,129,200,144,209,0,39,8,194,184,155,112,64,1, 40,22,6,119,161,36,51,50,51,50,51,35,179,255,72,104, 102,104,102,104,72,0,41,22,6,119,161,32,180,102,104,102, 72,104,102,255,70,102,201,204,200,140,16,0,42,16,232,148, 171,35,38,35,33,113,48,66,35,162,5,0,43,14,140,53, 190,37,170,171,131,7,83,162,186,2,44,10,195,184,157,112, 32,33,65,1,45,7,103,208,162,240,1,46,7,99,24,158, 112,32,47,18,103,22,162,165,145,148,34,41,141,164,20,73, 41,146,82,5,48,27,76,18,182,99,117,16,67,66,50,52, 50,52,49,230,159,77,12,141,12,141,176,57,136,178,1,49, 12,71,26,182,180,230,224,128,104,255,15,50,27,76,18,182, 83,117,32,51,67,49,53,49,102,54,57,56,72,199,172,140, 142,225,228,193,131,1,51,31,76,18,182,83,117,32,179,100, 106,98,106,98,106,114,112,172,238,114,116,210,204,138,98,134, 228,96,200,6,0,52,27,76,18,182,55,200,174,153,196,212, 196,148,200,144,204,54,66,35,67,35,7,15,230,38,55,1, 53,30,76,18,182,113,48,114,48,50,185,229,65,208,129,204, 12,229,232,228,164,153,213,65,12,201,129,148,13,0,54,32, 76,18,182,84,117,32,66,51,50,101,102,185,130,232,96,164, 132,130,104,98,204,217,196,208,8,155,131,40,27,0,55,24, 76,18,182,240,193,32,225,202,193,201,193,201,193,201,65,194, 201,65,194,201,57,0,56,35,76,18,182,68,118,16,52,50, 51,52,50,52,50,52,50,52,51,50,101,117,16,51,52,49, 230,217,196,208,200,193,144,13,0,57,32,76,18,182,99,116, 32,67,66,65,52,49,230,217,17,5,73,197,1,77,197,228, 164,213,4,73,201,129,84,17,0,58,10,195,25,158,112,32, 15,121,32,59,13,35,186,157,112,32,15,121,32,33,65,1, 60,14,141,49,190,58,88,214,25,37,109,105,167,3,61,11, 170,184,186,240,192,244,224,192,0,62,13,141,53,186,48,218, 91,74,178,30,142,2,63,24,107,26,190,99,115,32,66,114, 16,100,101,68,55,71,70,183,112,123,4,131,139,0,64,65, 214,150,225,119,32,123,96,88,86,69,74,67,60,66,84,33, 50,49,116,32,114,179,198,102,104,198,70,104,200,100,104,102, 98,100,72,104,98,100,102,201,154,37,51,35,19,52,36,7, 85,51,21,115,244,64,244,64,85,163,7,197,7,129,0,65, 37,112,22,202,70,76,107,106,57,34,57,50,56,50,55,52, 54,52,54,52,53,54,52,54,116,80,115,112,50,56,50,56, 49,234,116,0,66,37,111,26,202,112,64,116,96,50,70,50, 56,49,56,49,56,49,56,49,55,114,80,115,96,50,56,49, 233,195,179,138,3,147,3,34,0,67,29,112,22,202,117,119, 64,84,83,66,71,49,121,60,189,175,41,39,38,39,232,72, 106,138,14,232,142,0,68,30,112,26,206,112,64,117,96,51, 86,50,72,49,57,49,121,234,95,94,78,12,82,140,149,28, 216,28,80,1,69,22,109,26,194,112,80,113,80,49,186,167, 7,36,7,36,163,251,244,224,65,1,70,17,108,26,190,240, 129,229,94,30,80,28,80,76,238,47,1,71,35,113,22,206, 117,120,64,85,83,67,71,50,57,65,61,190,217,1,217,1, 173,237,233,196,36,5,93,73,205,131,137,169,147,1,72,14, 111,26,206,48,233,95,30,252,32,210,127,57,73,8,99,26, 158,240,63,8,74,17,107,22,186,184,255,161,149,87,19,51, 20,7,50,39,0,75,39,110,26,202,48,119,70,49,69,50, 68,51,67,52,66,53,65,118,247,32,140,130,106,102,106,104, 17,205,212,204,216,200,24,197,220,196,28,1,76,12,108,26, 190,48,185,255,191,60,120,48,77,50,115,26,222,48,125,123, 16,123,32,121,48,121,64,119,32,33,39,97,49,53,97,34, 37,98,50,51,98,50,51,98,163,198,102,98,198,102,98,198, 168,200,168,200,106,202,106,202,106,1,78,39,111,26,206,48, 121,248,32,238,32,238,64,204,98,202,98,202,100,200,102,198, 102,198,104,196,74,196,106,194,236,64,238,32,238,32,240,114, 0,79,29,113,22,206,117,120,64,85,83,67,71,50,57,65, 121,235,111,47,41,38,71,232,104,90,29,16,94,1,80,23, 110,26,198,112,64,115,96,49,55,49,232,187,137,3,139,131, 146,217,253,45,0,81,35,145,246,205,117,120,64,85,83,67, 71,50,57,65,121,235,111,207,66,40,166,38,70,168,108,138, 168,14,234,46,230,1,66,0,82,26,110,26,198,112,64,115, 96,49,55,49,232,187,137,3,139,131,146,49,138,185,137,65, 127,56,83,32,110,26,198,100,118,48,67,83,65,54,49,55, 49,75,91,122,16,121,90,75,107,232,238,64,166,228,128,234, 8,0,84,13,111,18,190,240,3,177,225,253,255,25,0,85, 19,111,26,206,48,233,255,151,119,20,115,35,53,53,7,100, 71,0,86,36,112,22,202,48,106,122,72,49,56,66,70,51, 54,52,54,196,106,104,108,104,140,132,110,100,112,100,112,100, 210,212,150,152,25,0,87,62,117,22,222,48,54,102,54,102, 54,102,182,98,168,104,100,168,104,100,72,66,104,100,102,98, 102,70,102,98,70,104,100,98,100,104,68,70,100,104,98,102, 98,74,98,102,66,76,98,102,66,172,170,172,170,110,225,220, 224,220,16,0,88,37,112,22,202,48,122,72,65,70,51,54, 53,52,55,50,120,16,105,75,76,107,121,16,56,50,55,52, 69,68,52,54,51,56,65,120,58,89,30,111,22,198,48,121, 56,49,55,66,54,51,53,68,52,53,51,54,51,55,49,56, 49,89,90,59,188,207,0,90,21,110,22,194,240,83,74,78, 41,153,82,50,165,36,29,165,36,61,248,0,91,13,5,119, 161,112,96,178,255,255,201,193,0,92,18,103,18,162,32,165, 76,74,153,148,102,82,202,164,148,73,41,93,13,5,123,161, 112,48,178,255,255,201,129,1,94,19,43,85,187,52,56,87, 38,33,53,49,179,100,102,98,202,106,0,95,7,78,112,185, 240,3,96,8,134,244,163,48,180,1,97,30,204,21,186,99, 117,16,51,67,50,52,57,102,115,32,82,50,65,52,49,53, 49,68,65,82,114,64,82,50,98,26,108,26,190,48,185,23, 53,7,35,37,20,68,19,99,126,118,52,81,66,113,48,50, 81,3,99,21,203,21,182,99,116,16,194,98,200,112,47,135, 38,72,72,14,130,76,0,100,25,108,22,190,185,55,21,35, 7,19,36,21,67,103,126,54,49,68,65,82,114,48,83,49, 101,27,204,21,186,68,118,16,67,66,50,52,49,102,118,240, 129,228,232,212,4,13,201,129,84,13,0,102,16,103,22,166, 67,82,50,180,228,224,100,104,255,19,0,103,31,108,118,189, 83,49,114,48,65,82,49,116,230,103,19,67,20,36,37,7, 51,21,147,102,71,35,7,67,54,0,104,17,107,26,190,48, 184,23,52,7,19,52,19,83,254,175,6,105,10,99,26,158, 112,32,118,240,7,106,13,5,115,157,178,241,200,254,127,114, 80,1,107,31,107,26,186,48,184,71,19,51,20,35,36,19, 52,71,86,71,19,52,35,51,35,36,51,20,67,19,67,87, 3,108,8,99,26,158,240,63,8,109,36,209,25,214,48,65, 82,114,112,32,65,82,114,52,100,52,100,52,100,52,100,52, 100,52,100,52,100,52,100,52,100,52,100,180,0,110,16,203, 25,190,48,81,114,48,65,51,49,229,255,106,0,111,23,204, 21,186,68,118,16,67,66,50,52,49,230,103,19,67,35,108, 14,194,136,0,112,27,108,122,189,48,81,115,48,82,66,65, 52,49,230,103,71,19,37,20,7,35,19,53,147,187,4,113, 25,108,118,189,83,49,114,48,65,82,49,116,230,103,19,67, 20,36,37,7,51,21,147,123,114,13,199,25,170,48,113,240, 102,104,255,8,0,115,25,203,21,182,98,116,16,194,98,104, 98,208,236,32,204,240,202,234,134,226,64,230,4,0,116,15, 71,22,166,50,180,201,193,201,208,254,81,13,1,117,16,203, 25,190,48,229,255,136,98,164,194,98,102,100,0,118,26,204, 21,186,48,230,108,98,104,100,104,100,104,102,100,104,100,104, 100,202,204,142,144,17,0,119,43,211,17,206,48,53,101,181, 66,106,74,100,166,102,100,166,102,70,133,140,144,200,196,136, 208,196,86,18,50,18,98,53,101,53,117,83,131,83,131,83, 67,0,120,26,203,21,182,48,117,67,49,179,98,232,170,110, 174,172,106,98,134,130,100,102,130,230,106,0,121,32,109,118, 189,48,103,55,49,54,65,52,51,52,67,66,52,50,53,50, 102,103,88,72,186,114,116,114,176,144,14,0,122,19,203,21, 182,240,65,220,58,50,186,57,50,186,117,116,7,15,2,123, 15,7,119,169,52,179,104,191,89,52,181,104,191,90,124,8, 2,127,157,240,15,12,125,16,7,123,169,48,181,104,191,90, 52,179,104,191,89,4,126,13,139,180,186,65,115,48,97,113, 48,67,1,0,0}; uint8_t u8x8_gpio_and_delay_arduino(u8x8_t *u8g2, uint8_t msg, uint8_t arg_int, void *arg_ptr) { switch(msg) { case U8X8_MSG_GPIO_AND_DELAY_INIT: pinMode(8, OUTPUT); pinMode(9, OUTPUT); pinMode(10, OUTPUT); pinMode(11, OUTPUT); pinMode(13, OUTPUT); break; case U8X8_MSG_DELAY_MILLI: delay(arg_int); break; case U8X8_MSG_GPIO_DC: digitalWrite(9, arg_int); break; case U8X8_MSG_GPIO_CS: digitalWrite(10, arg_int); break; case U8X8_MSG_GPIO_RESET: digitalWrite(8, arg_int); break; case U8X8_MSG_GPIO_CLOCK: digitalWrite(13, arg_int); break; case U8X8_MSG_GPIO_DATA: digitalWrite(11, arg_int); break; default: return 0; } return 1; } uint8_t u8x8_byte_arduino_hw_spi(u8x8_t *u8g2, uint8_t msg, uint8_t arg_int, void *arg_ptr) { uint8_t *data; switch(msg) { case U8X8_MSG_BYTE_SEND: data = (uint8_t *)arg_ptr; while( arg_int > 0 ) { SPI.transfer((uint8_t)*data); data++; arg_int--; } break; case U8X8_MSG_BYTE_INIT: /* disable chipselect */ u8x8_gpio_SetCS(u8g2, u8g2->display_info->chip_disable_level); /* no wait required here */ /* for SPI: setup correct level of the clock signal */ digitalWrite(13, u8g2->display_info->sck_takeover_edge); break; case U8X8_MSG_BYTE_SET_DC: u8x8_gpio_SetDC(u8g2, arg_int); break; case U8X8_MSG_BYTE_START_TRANSFER: SPI.begin(); SPI.setClockDivider( SPI_CLOCK_DIV2 ); SPI.setDataMode(SPI_MODE0); SPI.setBitOrder(MSBFIRST); u8x8_gpio_SetCS(u8g2, u8g2->display_info->chip_enable_level); u8g2->gpio_and_delay_cb(u8g2, U8X8_MSG_DELAY_NANO, u8g2->display_info->post_chip_enable_wait_ns, NULL); break; case U8X8_MSG_BYTE_END_TRANSFER: u8g2->gpio_and_delay_cb(u8g2, U8X8_MSG_DELAY_NANO, u8g2->display_info->pre_chip_disable_wait_ns, NULL); u8x8_gpio_SetCS(u8g2, u8g2->display_info->chip_disable_level); SPI.end(); break; case U8X8_MSG_BYTE_SET_I2C_ADR: break; case U8X8_MSG_BYTE_SET_DEVICE: break; default: return 0; } return 1; } void u8x8_Setup_UC1701_DOGS102(u8x8_t *u8x8) { /* setup defaults */ u8x8_SetupDefaults(u8x8); /* setup specific callbacks */ u8x8->display_cb = u8x8_d_uc1701_dogs102; u8x8->cad_cb = u8x8_cad_001; u8x8->byte_cb = u8x8_byte_8bit_sw_spi; u8x8->gpio_and_delay_cb = u8x8_gpio_and_delay_arduino; /* setup display info */ u8x8_display_Setup(u8x8); } void u8x8_Setup_SSD1306_128x64_NONAME(u8x8_t *u8x8) { /* setup defaults */ u8x8_SetupDefaults(u8x8); /* setup specific callbacks */ u8x8->display_cb = u8x8_d_ssd1306_128x64_noname; u8x8->cad_cb = u8x8_cad_001; u8x8->byte_cb = u8x8_byte_arduino_hw_spi; //u8x8->byte_cb = u8x8_byte_8bit_sw_spi; u8x8->gpio_and_delay_cb = u8x8_gpio_and_delay_arduino; /* setup display info */ u8x8_display_Setup(u8x8); } void u8g2_Setup_SSD1306_128x64_NONAME_1(u8g2_t *u8g2, const u8g2_cb_t *u8g2_cb) { static uint8_t buf[128*8]; u8x8_Setup_SSD1306_128x64_NONAME(u8g2_GetU8x8(u8g2)); u8g2_Setup(u8g2, buf, 1, u8g2_cb); } u8g2_t u8g2; uint8_t tile[8] = { 0x0f, 0x0f, 0x0f, 0x0f, 0xf0, 0xf0, 0xf0, 0xf0 }; void setup(void) { //u8x8_Setup_UC1701_DOGS102(&u8g2); u8g2_Setup_SSD1306_128x64_NONAME_1(&u8g2, &u8g2_cb_r0); u8x8_display_Init(u8g2_GetU8x8(&u8g2)); u8x8_display_SetPowerSave(u8g2_GetU8x8(&u8g2), 0); u8g2_SetFont(&u8g2, u8g2_font_helvB18_tr); } void loop(void) { static u8g2_uint_t x = 50; static u8g2_uint_t y = 30; uint8_t i; //u8x8_display_Init(&u8g2); //u8x8_display_SetFlipMode(&u8g2, 1); for(;;) { //u8x8_display_ClearScreen(&u8g2); //u8x8_display_SetPowerSave(&u8g2, 0); //u8x8_display_SetContrast(&u8g2, 10); delay(500); //u8x8_Set8x8Font(&u8g2, bdf_font); //u8x8_Draw8x8String(&u8g2, 0, 0, ""Hello gAjByCD""); u8g2_FirstPage(&u8g2); i = 0; do { u8g2_SetFontDirection(&u8g2, 0); u8g2_DrawString(&u8g2, x, y, ""ABC""); u8g2_SetFontDirection(&u8g2, 1); u8g2_DrawString(&u8g2, x, y, ""abc""); u8g2_SetFontDirection(&u8g2, 2); u8g2_DrawString(&u8g2, x, y, ""abc""); u8g2_SetFontDirection(&u8g2, 3); u8g2_DrawString(&u8g2, x, y, ""abc""); if ( i == 1 ) { u8g2_DrawHVLine(&u8g2, u8g2.user_x0, u8g2.user_y0, 1, 0); u8g2_DrawHVLine(&u8g2, u8g2.user_x0, u8g2.user_y1-1, 1, 0); u8g2_DrawHVLine(&u8g2, u8g2.user_x1-1, u8g2.user_y1-1, 1, 0); u8g2_DrawHVLine(&u8g2, u8g2.user_x1-1, u8g2.user_y0, 1, 0); } i++; } while( u8g2_NextPage(&u8g2) ); delay(2000); } } ",12261,True,2904.9651997099822,median " // Copyright (c) 2017 Massachusetts Institute of Technology // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the ""Software""), to deal in the Software without // restriction, including without limitation the rights to use, copy, // modify, merge, publish, distribute, sublicense, and/or sell copies // of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS // BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. import Vector::*; import FIFO::*; import GetPut::*; import Types::*; import CCTypes::*; import LLCRqMshr::*; import CCPipe::*; import SelfInvLLPipe ::*; import FShow::*; import Fifo::*; import CacheUtils::*; import Performance::*; import LatencyTimer::*; import Cntrs::*; import ConfigReg::*; import RandomReplace::*; // we use an infoQ to serialize all req to memory // this also ensures that cache pipeline is never blocked // so we do not need to buffer mem resp that needs to refill cache // XXX we need to maintain the invariant that // at most 1 pRq sent to a child for an addr // and we have to wait for resp before sending anthoer one // In future, it would be hard to parallelize sendRqToC and pipelineResp // because sendRqToC must see updates to dirPend made in pipelineResp // or we simply stall sendRqToC // XXX DMA req are put in the same MSHR as child req // this ensures that child req always get a cache line to occupy after being sent to pipeline // DMA req are handled in the following way // (1) If it hits in LLC, then we can downgrade children and process it // (2) Otherwise, we req memory, XXX and req is viewed as Done // The dep successor is sent to retry instead of being swapped in, // because we don't have a cache line to occupy... // When the mem resp comes, we send DMA resp and DO NOT fill cache // XXX mem resp that refill cache are for child req, others that don't refill cache are for DMA req // XXX Directory should be I (instead of don't care) when cache state is invalid // naming rule: child req type names < dma type names export SelfInvLLBank(..); export SelfInvLLCRqStuck(..); export mkSelfInvLLBank; interface SelfInvLLBank#( numeric type lgBankNum, numeric type childNum, numeric type wayNum, numeric type indexSz, numeric type tagSz, numeric type cRqNum, // including DMA req type cRqIdT, type dmaRqIdT ); interface ParentCacheToChild#(cRqIdT, Bit#(TLog#(childNum))) to_child; interface DmaServer#(dmaRqIdT) dma; interface MemFifoClient#(LdMemRqId#(Bit#(TLog#(cRqNum))), void) to_mem; // detect deadlock: only in use when macro CHECK_DEADLOCK is defined interface Get#(SelfInvLLCRqStuck#(childNum, cRqIdT, dmaRqIdT)) cRqStuck; // performance method Action setPerfStatus(Bool stats); method Data getPerfData(LLCPerfType t); endinterface typedef struct { LLRqId#(cRqIdT, dmaRqIdT) id; Addr addr; Msi fromState; Msi toState; Bit#(TLog#(childNum)) child; LLCRqState state; Bool waitP; SelfInvDirPend#(Bit#(TLog#(childNum))) dirPend; } SelfInvLLCRqStuck#(numeric type childNum, type cRqIdT, type dmaRqIdT) deriving(Bits, Eq, FShow); typedef struct { cRqIdT cRqId; Msi toState; } LLRsInfo#(type cRqIdT) deriving(Bits, Eq, FShow); // to mem info typedef enum { Ld, // read only by child req or dma req DmaWr, // dma write only RepLd // first write replaced line then load new line (for child req) } ToMemType deriving(Bits, Eq, FShow); typedef struct { mshrIdxT mshrIdx; ToMemType t; } ToMemInfo#(type mshrIdxT) deriving(Bits, Eq, FShow); // enum for source of cRq typedef enum {Child, Dma} LLCRqSrc deriving(Bits, Eq, FShow); module mkSelfInvLLBank#( module#(LLCRqMshr#(cRqNum, wayT, tagT, SelfInvDirPend#(Bit#(TLog#(childNum))), cRqT)) mkLLMshr, module#(SelfInvLLPipe#(lgBankNum, childNum, wayNum, indexT, tagT, cRqIndexT)) mkLLPipeline )( SelfInvLLBank#(lgBankNum, childNum, wayNum, indexSz, tagSz, cRqNum, cRqIdT, dmaRqIdT) ) provisos( Alias#(childT, Bit#(TLog#(childNum))), Alias#(wayT, Bit#(TLog#(wayNum))), Alias#(dirT, SelfInvDir#(childT)), Alias#(dirPendT, SelfInvDirPend#(childT)), Alias#(indexT, Bit#(indexSz)), Alias#(tagT, Bit#(tagSz)), Alias#(cRqIndexT, Bit#(TLog#(cRqNum))), Alias#(cacheOwnerT, Maybe#(CRqOwner#(cRqIndexT))), Alias#(cacheInfoT, CacheInfo#(tagT, Msi, dirT, cacheOwnerT, void)), Alias#(ramDataT, RamData#(tagT, Msi, dirT, cacheOwnerT, void, Line)), Alias#(cRqFromCT, CRqMsg#(cRqIdT, childT)), Alias#(cRsFromCT, CRsMsg#(childT)), Alias#(pRqRsToCT, PRqRsMsg#(cRqIdT, childT)), Alias#(dmaRqT, DmaRq#(dmaRqIdT)), Alias#(dmaRsT, DmaRs#(dmaRqIdT)), Alias#(ldMemRqIdT, LdMemRqId#(cRqIndexT)), Alias#(memRsT, MemRsMsg#(ldMemRqIdT, void)), Alias#(toMemT, ToMemMsg#(ldMemRqIdT, void)), Alias#(toMemInfoT, ToMemInfo#(cRqIndexT)), Alias#(cRqT, LLRq#(cRqIdT, dmaRqIdT, childT)), Alias#(cRqSlotT, LLCRqSlot#(wayT, tagT, dirPendT)), // cRq MSHR slot Alias#(llCmdT, SelfInvLLCmd#(childT, cRqIndexT)), Alias#(pipeOutT, PipeOut#(wayT, tagT, Msi, dirT, cacheOwnerT, void, RandRepInfo, Line, llCmdT)), // requirements Bits#(cRqIdT, _cRqIdSz), Bits#(dmaRqIdT, _dmaRqIdSz), FShow#(cRqIdT), FShow#(dmaRqIdT), Add#(tagSz, a__, AddrSz), // make sure: cRqNum <= wayNum Add#(cRqNum, b__, wayNum) ); LLCRqMshr#(cRqNum, wayT, tagT, dirPendT, cRqT) cRqMshr <- mkLLMshr; SelfInvLLPipe#(lgBankNum, childNum, wayNum, indexT, tagT, cRqIndexT) pipeline <- mkLLPipeline; Fifo#(2, cRqFromCT) rqFromCQ <- mkCFFifo; Fifo#(2, cRsFromCT) rsFromCQ <- mkCFFifo; Fifo#(2, pRqRsToCT) toCQ <- mkCFFifo; Fifo#(2, dmaRqT) rqFromDmaQ <- mkCFFifo; Fifo#(2, dmaRsT) rsLdToDmaQ <- mkCFFifo; Fifo#(2, dmaRqIdT) rsStToDmaQ <- mkCFFifo; Fifo#(2, toMemT) toMQ <- mkCFFifo; Fifo#(2, memRsT) rsFromMQ <- mkCFFifo; // mshr index of load or write to memory, all mem accesses are ordered here FIFO#(toMemInfoT) toMInfoQ <- mkSizedFIFO(valueOf(cRqNum)); // mshr index of req that is waken up when replacement is done Fifo#(cRqNum, cRqIndexT) cRqRetryIndexQ <- mkCFFifo; // mshr index of upgrade resp to child Fifo#(cRqNum, LLRsInfo#(cRqIndexT)) rsToCIndexQ <- mkCFFifo; // mshr index of resp to dma (merge 3 FIFOs for each enq places) FIFO#(cRqIndexT) rsLdToDmaIndexQ <- mkSizedFIFO(valueof(cRqNum)); FIFO#(cRqIndexT) rsStToDmaIndexQ <- mkSizedFIFO(valueof(cRqNum)); FIFO#(cRqIndexT) rsLdToDmaIndexQ_mRsDeq <- mkFIFO; FIFO#(cRqIndexT) rsStToDmaIndexQ_sendToM <- mkFIFO; FIFO#(cRqIndexT) rsLdToDmaIndexQ_pipelineResp <- mkFIFO; FIFO#(cRqIndexT) rsStToDmaIndexQ_pipelineResp <- mkFIFO; `ifdef DEBUG_DMA // these FIFOs are enqueued when DMA req really takes effect // FIFOs has 0 cycle latency to match L1Bank resp latency Fifo#(1, dmaRqIdT) dmaWrMissQ <- mkBypassFifo; Fifo#(1, dmaRqIdT) dmaWrHitQ <- mkBypassFifo; Fifo#(1, dmaRqIdT) dmaRdMissQ <- mkBypassFifo; Fifo#(1, dmaRqIdT) dmaRdHitQ <- mkBypassFifo; `endif // performance `ifdef PERF_COUNT Reg#(Bool) doStats <- mkConfigReg(False); Count#(Data) dmaMemLdCnt <- mkCount(0); Count#(Data) dmaMemLdLat <- mkCount(0); Count#(Data) normalMemLdCnt <- mkCount(0); Count#(Data) normalMemLdLat <- mkCount(0); Count#(Data) mshrBlocks <- mkCount(0); Count#(Data) downRespCnt <- mkCount(0); Count#(Data) downRespDataCnt <- mkCount(0); Count#(Data) downReqCnt <- mkCount(0); Count#(Data) upRespCnt <- mkCount(0); Count#(Data) upRespDataCnt <- mkCount(0); Count#(Data) dmaLdReqCnt <- mkCount(0); Count#(Data) dmaStReqCnt <- mkCount(0); LatencyTimer#(cRqNum, 10) latTimer <- mkLatencyTimer; // max 1K cycle latency function Action incrMissCnt(cRqIndexT idx, Bool isDma); action let lat <- latTimer.done(idx); if(doStats) begin if(isDma) begin dmaMemLdCnt.incr(1); dmaMemLdLat.incr(zeroExtend(lat)); end else begin normalMemLdCnt.incr(1); normalMemLdLat.incr(zeroExtend(lat)); end end endaction endfunction `endif function tagT getTag(Addr a) = truncateLSB(a); function cRqIdT getIdFromC(LLRqId#(cRqIdT, dmaRqIdT) id); if(id matches tagged Child .i) begin return i; end else begin return ?; end endfunction function dmaRqIdT getIdFromDma(LLRqId#(cRqIdT, dmaRqIdT) id); if(id matches tagged Dma .i) begin return i; end else begin return ?; end endfunction function Bool isRqFromC(LLRqId#(cRqIdT, dmaRqIdT) id); return id matches tagged Child .i ? True : False; endfunction function Bool isRqFromDma(LLRqId#(cRqIdT, dmaRqIdT) id); return id matches tagged Dma .i ? True : False; endfunction // merge ld resp index to DMA FIFO rule mergeRsLdToDmaIndexQ_mRsDeq; let idx <- toGet(rsLdToDmaIndexQ_mRsDeq).get; rsLdToDmaIndexQ.enq(idx); endrule (* descending_urgency = ""mergeRsLdToDmaIndexQ_pipelineResp, mergeRsLdToDmaIndexQ_mRsDeq"" *) rule mergeRsLdToDmaIndexQ_pipelineResp; let idx <- toGet(rsLdToDmaIndexQ_pipelineResp).get; rsLdToDmaIndexQ.enq(idx); endrule // merge st resp index to DMA FIFO rule mergeRsStToDmaIndexQ_sendToM; let idx <- toGet(rsStToDmaIndexQ_sendToM).get; rsStToDmaIndexQ.enq(idx); endrule (* descending_urgency = ""mergeRsStToDmaIndexQ_pipelineResp, mergeRsStToDmaIndexQ_sendToM"" *) rule mergeRsStToDmaIndexQ_pipelineResp; let idx <- toGet(rsStToDmaIndexQ_pipelineResp).get; rsStToDmaIndexQ.enq(idx); endrule // send retrying cRq to pipeline rule cRqTransfer_retry(cRqRetryIndexQ.notEmpty); cRqRetryIndexQ.deq; cRqIndexT n = cRqRetryIndexQ.first; // XXX don't change MSHR entry to Init // later cRq to same addr needs to be appended after this one // send to pipeline cRqT req = cRqMshr.transfer.getRq(n); pipeline.send(CRq (SelfInvLLPipeCRqIn { addr: req.addr, mshrIdx: n })); $display(""%t LL %m cRqTransfer_retry: "", $time, fshow(n), "" ; "", fshow(req) ); endrule // round-robin for accepting new cRq from child and DMA Reg#(LLCRqSrc) priorNewCRqSrc <- mkReg(Child); // src with priority function Maybe#(LLCRqSrc) newCRqSrc; if(priorNewCRqSrc == Child && rqFromCQ.notEmpty) begin return Valid (Child); end else if(priorNewCRqSrc == Dma && rqFromDmaQ.notEmpty) begin return Valid (Dma); end else begin if(rqFromCQ.notEmpty) begin return Valid (Child); end else if(rqFromDmaQ.notEmpty) begin return Valid (Dma); end else begin return Invalid; end end endfunction function Action flipPriorNewCRqSrc; action priorNewCRqSrc <= priorNewCRqSrc == Dma ? Child : Dma; endaction endfunction // insert new cRq from child to MSHR and send to pipeline rule cRqTransfer_new_child(!cRqRetryIndexQ.notEmpty && newCRqSrc == Valid (Child)); rqFromCQ.deq; cRqFromCT r = rqFromCQ.first; cRqT cRq = LLRq { addr: r.addr, fromState: r.fromState, toState: r.toState, canUpToE: r.canUpToE, child: r.child, byteEn: ?, id: Child (r.id) }; // setup new MSHR entry cRqIndexT n <- cRqMshr.transfer.getEmptyEntryInit(cRq, Invalid); // send to pipeline pipeline.send(CRq (SelfInvLLPipeCRqIn { addr: cRq.addr, mshrIdx: n })); // change round robin flipPriorNewCRqSrc; $display(""%t LL %m cRqTransfer_new_child: "", $time, fshow(n), "" ; "", fshow(r), "" ; "", fshow(cRq) ); endrule `ifdef PERF_COUNT // perf stats: insert new cRq fails because of full MSHR rule cRqTransfer_new_child_block( !cRqRetryIndexQ.notEmpty && newCRqSrc == Valid (Child) && doStats ); cRqFromCT r = rqFromCQ.first; cRqT cRq = LLRq { addr: r.addr, fromState: r.fromState, toState: r.toState, canUpToE: r.canUpToE, child: r.child, byteEn: ?, id: Child (r.id) }; if(!cRqMshr.transfer.hasEmptyEntry(cRq)) begin mshrBlocks.incr(1); end endrule `endif // insert new cRq from DMA to MSHR and send to pipeline rule cRqTransfer_new_dma(!cRqRetryIndexQ.notEmpty && newCRqSrc == Valid (Dma)); rqFromDmaQ.deq; dmaRqT r = rqFromDmaQ.first; Bool write = r.byteEn != replicate(False); cRqT cRq = LLRq { addr: r.addr, fromState: I, toState: write ? M : S, // later on we use toState to distinguish DMA write vs. read canUpToE: False, // DMA should not go to E child: ?, byteEn: r.byteEn, id: Dma (r.id) }; // setup new MSHR entry and data cRqIndexT n <- cRqMshr.transfer.getEmptyEntryInit(cRq, write ? Valid (r.data) : Invalid); // send to pipeline pipeline.send(CRq (SelfInvLLPipeCRqIn { addr: cRq.addr, mshrIdx: n })); // change round robin flipPriorNewCRqSrc; $display(""%t LL %m cRqTransfer_new_dma: "", $time, fshow(n), "" ; "", fshow(r), "" ; "", fshow(cRq) ); `ifdef PERF_COUNT if(doStats) begin if(write) begin dmaStReqCnt.incr(1); end else begin dmaLdReqCnt.incr(1); end end `endif endrule `ifdef PERF_COUNT // perf stats: insert new cRq fails because of full MSHR rule cRqTransfer_new_dma_block( !cRqRetryIndexQ.notEmpty && newCRqSrc == Valid (Dma) && doStats ); dmaRqT r = rqFromDmaQ.first; Bool write = r.byteEn != replicate(False); cRqT cRq = LLRq { addr: r.addr, fromState: I, toState: write ? M : S, canUpToE: False, child: ?, byteEn: r.byteEn, id: Dma (r.id) }; if(!cRqMshr.transfer.hasEmptyEntry(cRq)) begin mshrBlocks.incr(1); end endrule `endif // send downgrade resp from child to pipeline rule cRsTransfer; rsFromCQ.deq; cRsFromCT cRs = rsFromCQ.first; pipeline.send(CRs (cRs)); $display(""%t LL %m cRsTransfer: "", $time, fshow(cRs)); `ifdef PERF_COUNT if(doStats) begin downRespCnt.incr(1); if(isValid(cRs.data)) begin downRespDataCnt.incr(1); end end `endif endrule // mem resp for child req, will refill cache, send it to pipeline (* descending_urgency = ""mRsTransfer, cRsTransfer, cRqTransfer_retry, cRqTransfer_new_child, cRqTransfer_new_dma"" *) `ifdef PERF_COUNT // stop mshr block stats when other higher priority req is being sent to // pipeline (* preempts = ""mRsTransfer, cRqTransfer_new_child_block"" *) (* preempts = ""mRsTransfer, cRqTransfer_new_dma_block"" *) (* preempts = ""cRsTransfer, cRqTransfer_new_child_block"" *) (* preempts = ""cRsTransfer, cRqTransfer_new_dma_block"" *) `endif rule mRsTransfer(rsFromMQ.first.id.refill); // get mem resp cRq index & data rsFromMQ.deq; memRsT mRs = rsFromMQ.first; cRqIndexT n = mRs.id.mshrIdx; Line respData = mRs.data; // get correspond cRq & slot cRqT cRq = cRqMshr.transfer.getRq(n); cRqSlotT cSlot = cRqMshr.transfer.getSlot(n); doAssert(isRqFromC(cRq.id), ""refill mem resp must be for child req""); // send to pipeline pipeline.send(MRs (SelfInvLLPipeMRsIn { addr: cRq.addr, toState: cRq.toState == M ? M : E, // set upgrade state data: respData, way: cSlot.way })); $display(""%t LL %m mRsTransfer: "", $time, fshow(mRs), "" ; "", fshow(cRq), "" ; "", fshow(cSlot), "" ; "" ); `ifdef PERF_COUNT // performance counter: normal miss lat and cnt incrMissCnt(n, False); `endif endrule // this mem resp is just for a DMA req, won't go into pipeline to refill cache rule mRsDeq_nonRefill(!rsFromMQ.first.id.refill); rsFromMQ.deq; memRsT mRs = rsFromMQ.first; $display(""%t LL %m mRsDeq_nonRefill: "", $time, fshow(mRs)); // save data into cRq mshr & send to DMA resp IndexQ cRqMshr.mRsDeq.setData(mRs.id.mshrIdx, Valid (mRs.data)); rsLdToDmaIndexQ_mRsDeq.enq(mRs.id.mshrIdx); `ifdef PERF_COUNT // performance counter: dma miss lat and cnt incrMissCnt(mRs.id.mshrIdx, True); `endif endrule // send rd/wr to mem // when sending to mem, we may first write back replaced line then load new line // this reg records when we should to the load new line for this case Reg#(Bool) doLdAfterReplace <- mkReg(False); rule sendToM; ToMemType t = toMInfoQ.first.t; cRqIndexT n = toMInfoQ.first.mshrIdx; cRqT cRq = cRqMshr.sendToM.getRq(n); cRqSlotT cSlot = cRqMshr.sendToM.getSlot(n); Maybe#(Line) data = cRqMshr.sendToM.getData(n); $display(""%t LL %m sendToM: "", $time, fshow(toMInfoQ.first), "" ; "", fshow(cRq), "" ; "", fshow(cSlot), "" ; "", fshow(data), "" ; "", fshow(doLdAfterReplace) ); // take actions according to type if(t == Ld) begin // only load mem: can be child or dma req toMemT msg = Ld (LdMemRq { addr: cRq.addr, child: ?, id: LdMemRqId { // child rq needs refill cache line, dma rq does not refill: isRqFromC(cRq.id), mshrIdx: n } }); toMQ.enq(msg); toMInfoQ.deq; // deq info $display(""%t LL %m sendToM: load only: "", $time, fshow(msg)); doAssert(!isValid(data), ""cannot have data""); doAssert(!doLdAfterReplace, ""doLdAfterReplace should be false""); `ifdef PERF_COUNT // performance counter: start miss timer latTimer.start(n); `endif `ifdef DEBUG_DMA if(cRq.id matches tagged Dma .dmaId) begin dmaRdMissQ.enq(dmaId); // DMA read takes effect end `endif end else if(t == DmaWr) begin // only write mem: must be dma req toMemT msg = Wb (WbMemRs { addr: cRq.addr, byteEn: cRq.byteEn, data: validValue(data) }); toMQ.enq(msg); toMInfoQ.deq; // deq info // dma write can be resp (i.e. mshr entry can be released) rsStToDmaIndexQ_sendToM.enq(n); $display(""%t LL %m sendToM: dma write: "", $time, fshow(msg)); doAssert(isRqFromDma(cRq.id), ""must be dma write""); doAssert(isValid(data), ""dma write must have data""); doAssert(!doLdAfterReplace, ""doLdAfterReplace should be false""); `ifdef DEBUG_DMA dmaWrMissQ.enq(getIdFromDma(cRq.id)); // DMA write takes effect `endif end else if(t == RepLd) begin // write back replaced line then load, must be child req if(doLdAfterReplace) begin // do load part toMemT msg = Ld (LdMemRq { addr: cRq.addr, child: ?, id: LdMemRqId { refill: True, mshrIdx: n } }); toMQ.enq(msg); // whole thing is done, reset bit and deq info toMInfoQ.deq; doLdAfterReplace <= False; $display(""%t LL %m sendToM: rep then ld: ld: "", $time, fshow(msg)); `ifdef PERF_COUNT // performance counter: start miss timer latTimer.start(n); `endif end else begin // do write back part toMemT msg = Wb (WbMemRs { addr: {cSlot.repTag, truncate(cRq.addr)}, byteEn: replicate(True), data: validValue(data) }); toMQ.enq(msg); // don't deq info, do ld next time doLdAfterReplace <= True; $display(""%t LL %m sendToM: rep then ld: rep: "", $time, fshow(msg)); end doAssert(isRqFromC(cRq.id), ""must be child req""); doAssert(isValid(data), ""replace must have data""); end else begin doAssert(False, ""unknown to mem type""); end endrule // send DMA resp rule sendRsLdToDma; rsLdToDmaIndexQ.deq; cRqIndexT n = rsLdToDmaIndexQ.first; cRqT cRq = cRqMshr.sendRsToDmaC.getRq(n); Maybe#(Line) data = cRqMshr.sendRsToDmaC.getData(n); $display(""%t LL %m sendRsToDma: Ld: "", $time, fshow(n), "" ; "", fshow(cRq), "" ; "", fshow(data) ); doAssert(isValid(data), ""dma read req always has valid data""); // send DMA resp doAssert(isRqFromDma(cRq.id), ""cRq should be DMA req""); doAssert(cRq.byteEn == replicate(False) && cRq.toState == S, ""cRq should be DMA read"" ); dmaRqIdT dmaId = getIdFromDma(cRq.id); rsLdToDmaQ.enq(DmaRs { data: validValue(data), id: dmaId }); // release MSHR entry cRqMshr.sendRsToDmaC.releaseEntry(n); endrule rule sendRsStToDma; rsStToDmaIndexQ.deq; cRqIndexT n = rsStToDmaIndexQ.first; cRqT cRq = cRqMshr.sendRsToDmaC.getRq(n); $display(""%t LL %m sendRsToDma: St: "", $time, fshow(n), "" ; "", fshow(cRq) ); // send DMA resp doAssert(isRqFromDma(cRq.id), ""cRq should be DMA req""); doAssert(cRq.byteEn != replicate(False) && cRq.toState == M, ""cRq should be DMA write"" ); dmaRqIdT dmaId = getIdFromDma(cRq.id); rsStToDmaQ.enq(dmaId); // release MSHR entry cRqMshr.sendRsToDmaC.releaseEntry(n); endrule // send upgrade resp to child rule sendRsToC(rsToCIndexQ.notEmpty); // send upgrade resp to child rsToCIndexQ.deq; cRqIndexT n = rsToCIndexQ.first.cRqId; Msi toState = rsToCIndexQ.first.toState; cRqT cRq = cRqMshr.sendRsToDmaC.getRq(n); Maybe#(Line) rsData = cRqMshr.sendRsToDmaC.getData(n); $display(""%t LL %m sendRsToC: "", $time, fshow(n), "" ; "", fshow(cRq), "" ; "", fshow(rsData), "" ; "", fshow(toState) ); // send resp to child doAssert(isRqFromC(cRq.id), ""cRq should be child req""); cRqIdT cRqId = getIdFromC(cRq.id); toCQ.enq(PRs (PRsMsg { addr: cRq.addr, toState: toState, // we may upgrade to E for req S, don't use toState in cRq child: cRq.child, data: rsData, id: cRqId })); // release MSHR entry cRqMshr.sendRsToDmaC.releaseEntry(n); `ifdef PERF_COUNT if(doStats) begin upRespCnt.incr(1); if(isValid(rsData)) begin upRespDataCnt.incr(1); end end `endif endrule // send downgrade req to child // round robin select cRq to downgrade child // but downgrade must wait for all upgrade resp Reg#(cRqIndexT) whichCRq <- mkReg(0); // we don't perform sending downgrade to child for a cRq processing by pipelineResp_cRs // otherwise atomicity issue may arise // for safety, we check cRq processed by all pipelineResp_xxx rules // this won't create unnecessary stalls // (because the cRq by pipelineResp won't match the one chosen for child downgrade) function Bool notPipelineResp(cRqIndexT n); if(pipeline.notEmpty) begin // use unguarded version for pipeline.first // (if use guarded version, compiler must lift guard correctly) llCmdT cmd = pipeline.unguard_first.cmd; cacheOwnerT owner = pipeline.unguard_first.ram.info.owner; Bool ownerMatch = isValid(owner) ? fromMaybe(?, owner).mshrIdx == n : False; return (case(cmd) matches tagged LLCRq .m: return m != n; tagged LLMRs: return !ownerMatch; tagged LLCRs .c: return !ownerMatch; default: return True; endcase); end else begin return True; end endfunction rule sendRqToC(!rsToCIndexQ.notEmpty); Maybe#(cRqIndexT) cRqNeedDown = cRqMshr.sendRqToC.searchNeedRqChild(Valid (whichCRq)); // XXX must add this into guard // otherwise this rule will block pipelineResp rule from firing forever check(isValid(cRqNeedDown)); cRqIndexT n = fromMaybe(?, cRqNeedDown); // XXX stall if cRq n is processed in pipelineResp check(notPipelineResp(n)); cRqT cRq = cRqMshr.sendRqToC.getRq(n); cRqSlotT cSlot = cRqMshr.sendRqToC.getSlot(n); LLCRqState cState = cRqMshr.sendRqToC.getState(n); doAssert(cState == WaitSt || cState == WaitOldTag, ""only WaitSt and WaitOldTag needs req child"" ); // find the child to downgrade childT child = ?; if(cSlot.dirPend matches tagged ToSend .c) begin child = c; end else begin doAssert(False, ""should need to downgrade""); end // send downgrade req: addr depends on state // either be cRq addr or replacing addr // we always downgrade to S Addr rqAddr = cState == WaitSt ? cRq.addr : {cSlot.repTag, truncate(cRq.addr)}; pRqRsToCT req = PRq (PRqMsg { addr: rqAddr, toState: S, child: child }); toCQ.enq(req); // change dirPend cRqMshr.sendRqToC.setSlot(n, LLCRqSlot { // keep cState the same way: cSlot.way, repTag: cSlot.repTag, waitP: cSlot.waitP, dirPend: Waiting (child) }); $display(""%t LL %m sendRqToC: "", $time, fshow(n), "" ; "", fshow(cRq), "" ; "", fshow(cSlot), "" ; "", fshow(cState), "" ; "", fshow(req) ); // change round-robin whichCRq <= whichCRq == fromInteger(valueOf(cRqNum) - 1) ? 0 : whichCRq + 1; `ifdef PERF_COUNT if(doStats) begin downReqCnt.incr(1); end `endif endrule // Final stage of pipeline: process all kinds of msg pipeOutT pipeOut = pipeline.first; ramDataT ram = pipeOut.ram; // select getCSlot, getRepSucc from cRqMshr cRqIndexT pipeOutCRqIdx = (case(pipeOut.cmd) matches tagged LLCRq .n: return n; default: return ram.info.owner matches tagged Valid .cOwner ? cOwner.mshrIdx : 0; // LLMRs LLCRs endcase); cRqSlotT pipeOutCSlot = cRqMshr.pipelineResp.getSlot(pipeOutCRqIdx); Maybe#(cRqIndexT) pipeOutRepSucc = cRqMshr.pipelineResp.getRepSucc(pipeOutCRqIdx); Maybe#(cRqIndexT) pipeOutAddrSucc = cRqMshr.pipelineResp.getAddrSucc(pipeOutCRqIdx); LLCRqState pipeOutCState = cRqMshr.pipelineResp.getState(pipeOutCRqIdx); cRqT pipeOutCRq = cRqMshr.pipelineResp.getRq(pipeOutCRqIdx); // function to process cRq hit (MSHR slot may have garbage) function Action cRqFromCHit(cRqIndexT n, cRqT cRq); action $display(""%t LL %m pipelineResp: cRq from child Hit func: "", $time, fshow(n), "" ; "", fshow(cRq) ); doAssert(n == pipeOutCRqIdx, ""must match pipe out cRq idx""); doAssert(isRqFromC(cRq.id), ""should be cRq from child""); doAssert(ram.info.tag == getTag(cRq.addr) && ram.info.cs > I, // this function is called by mRs, cRq, cRs // tag should match even for mRs, because // tag has been written into cache before sending req to parent (""cRqHit but tag or cs incorrect"") ); // decide upgrade state. Since we don't track S copies, we can't give E // for a req to S. Msi toState = cRq.toState; // update slot, data & send to indexQ // decide data validity using dir (which is more up to date than fromState) rsToCIndexQ.enq(LLRsInfo { cRqId: n, toState: toState }); cRqMshr.pipelineResp.setStateSlot(n, Done, ?); // we no longer need slot info cRqMshr.pipelineResp.setData(n, Valid (ram.line)); // always resp with data // update child dir dirT newDir = ram.info.dir; if(toState >= E) begin newDir.exChild = cRq.child; newDir.state = toState; end else begin doAssert(newDir.state == I, ""should not have exclusive child""); end // update cs (may have E -> M) Msi newCs = ram.info.cs; if(toState == M) begin newCs = M; end // deq pipeline or swap in successor Maybe#(cRqIndexT) succ = pipeOutAddrSucc; pipeline.deqWrite(succ, RamData { info: CacheInfo { tag: getTag(cRq.addr), // should be the same as original tag cs: newCs, dir: newDir, owner: (case(succ) matches // pass owner to successor tagged Valid .m: return Valid (CRqOwner { mshrIdx: m, replacing: False // succesor cannot replace }); default: return Invalid; endcase), other: ? }, line: ram.line // use line in ram }, True); // hit, so update rep info endaction endfunction // function to process DMA req hit (MSHR slot may have garbage) function Action cRqFromDmaHit(cRqIndexT n, cRqT cRq); action $display(""%t LL %m pipelineResp: cRq from dma Hit func: "", $time, fshow(n), "" ; "", fshow(cRq) ); doAssert(n == pipeOutCRqIdx, ""must match pipe out cRq idx""); doAssert(isRqFromDma(cRq.id), ""should be cRq from dma""); doAssert(ram.info.tag == getTag(cRq.addr) && ram.info.cs > I, ""cRqHit but tag or cs incorrect"" ); doAssert((cRq.byteEn != replicate(False)) == (cRq.toState == M), ""toState should match byteEn""); // update cs (may have E -> M) Msi newCs = ram.info.cs; if(cRq.toState == M) begin newCs = M; end // update cache line Maybe#(Line) wrData = cRqMshr.pipelineResp.getData(n); doAssert(isValid(wrData) == (cRq.byteEn != replicate(False)), ""dma write should carry valid data"" ); Line newLine = getUpdatedLine(ram.line, cRq.byteEn, validValue(wrData)); // deq pipeline or swap in successor Maybe#(cRqIndexT) succ = pipeOutAddrSucc; pipeline.deqWrite(succ, RamData { info: CacheInfo { tag: getTag(cRq.addr), // should be the same as original tag cs: newCs, dir: ram.info.dir, // dir does not change owner: (case(succ) matches // pass owner to successor tagged Valid .m: return Valid (CRqOwner { mshrIdx: m, replacing: False // succesor cannot replace }); default: return Invalid; endcase), other: ? }, line: newLine // use new line }, True); // hit, so update rep info // update slot, data & send to indexQ cRqMshr.pipelineResp.setStateSlot(n, Done, ?); // we no longer need slot info cRqMshr.pipelineResp.setData(n, Valid (ram.line)); // save the orig cache line if(cRq.toState == M) begin rsStToDmaIndexQ_pipelineResp.enq(n); end else begin rsLdToDmaIndexQ_pipelineResp.enq(n); end `ifdef DEBUG_DMA // DMA req takes effect dmaRqIdT dmaId = getIdFromDma(cRq.id); if(cRq.toState == M) begin dmaWrHitQ.enq(dmaId); end else begin dmaRdHitQ.enq(dmaId); end `endif endaction endfunction // function to directly evict a cache line by a cRq from child (replacement) function Action cRqFromCEvict(cRqIndexT n, cRqT cRq, Maybe#(cRqIndexT) repSucc); action doAssert(isRqFromC(cRq.id), ""only cRq from child can evict a line""); doAssert(ram.info.dir.state == I && ram.info.cs > I, ""only evict valid line which has no children"" ); // write back (only when line is M, otherwise silent drop) // and req memory for new data (because cs is I now) Bool needWB = ram.info.cs == M; toMInfoQ.enq(ToMemInfo{ mshrIdx: n, t: needWB ? RepLd : Ld }); // update MSHR cRqMshr.pipelineResp.setStateSlot(n, WaitSt, LLCRqSlot { way: pipeOut.way, // use way from pipeline repTag: ram.info.tag, // record old tag for replacement to mem waitP: True, // waiting for mem resp dirPend: Invalid // no exclusive child }); cRqMshr.pipelineResp.setData(n, needWB ? Valid (ram.line) : Invalid); // replacement needs data // wake up successor which depends on this replacement if(repSucc matches tagged Valid .m) begin cRqRetryIndexQ.enq(m); end // deq pipe & change RAM pipeline.deqWrite(Invalid, RamData { info: CacheInfo { tag: getTag(cRq.addr), // set to new tag (old tag is replaced) cs: I, dir: SelfInvDir {exChild: ?, state: I}, owner: Valid (CRqOwner { mshrIdx: n, // owner is current cRq replacing: False // replacement is done right now }), other: ? }, line: ? // data is no longer used }, False); endaction endfunction // handle cRq rule pipelineResp_cRq(pipeOut.cmd matches tagged LLCRq .n); $display(""%t LL %m pipelineResp: "", $time, fshow(pipeOut)); // cs and dir in ram have been merged with modification caused by mRs/cRs cmd cRqT cRq = pipeOutCRq; $display(""%t LL %m pipelineResp: cRq: "", $time, fshow(n), "" ; "", fshow(cRq)); // find end of dependency chain Maybe#(cRqIndexT) cRqEOC = cRqMshr.pipelineResp.searchEndOfChain(cRq.addr); // function to check whether children needs downgrade for req from child (miss no replace) function dirPendT getDirPendNonCompatForChild; if(ram.info.dir.state >= E) begin if(cRq.child == ram.info.dir.exChild) begin return Waiting (ram.info.dir.exChild); end else begin return ToSend (ram.info.dir.exChild); end end else begin return Invalid; end endfunction // function to check whether children needs downgrade for DMA req (miss by children state) function dirPendT getDirPendNonCompatForDma; if(ram.info.dir.state >= E) begin return ToSend (ram.info.dir.exChild); end else begin return Invalid; end endfunction // function to check whether children needs downgrade (miss with replace) function dirPendT getDirPendReplace; if(ram.info.dir.state >= E) begin return ToSend (ram.info.dir.exChild); end else begin return Invalid; end endfunction // function to process cRq from child miss without replacement (MSHR slot may have garbage) function Action cRqFromCMissNoReplacement(dirPendT dirPend); action doAssert(isRqFromC(cRq.id), ""should be cRq from child""); // it is impossible in LLC to have slot.waitP == True in this function // because there is no pRq in LLC to interrupt a cRq cRqSlotT cSlot = pipeOutCSlot; doAssert(!cSlot.waitP, ""waitP must be false""); // in LLC, we req memory only when cur cs is I if(ram.info.cs == I) begin toMInfoQ.enq(ToMemInfo{ mshrIdx: n, t: Ld }); doAssert(ram.info.dir.state == I, ""dir should not have exclusive child""); end // update mshr (data field is irrelevant, should be already invalid) cRqMshr.pipelineResp.setStateSlot(n, WaitSt, LLCRqSlot { way: pipeOut.way, // use way from pipeline waitP: ram.info.cs == I, repTag: ?, // no replacement dirPend: dirPend }); // deq pipeline & set owner, tag pipeline.deqWrite(Invalid, RamData { info: CacheInfo { tag: getTag(cRq.addr), // tag may be garbage if cs == I cs: ram.info.cs, dir: ram.info.dir, owner: Valid (CRqOwner {mshrIdx: n, replacing: False}), // owner is req itself other: ? }, line: ram.line }, False); endaction endfunction // function to process cRq from dma miss by children states (MSHR slot may have garbage) function Action cRqFromDmaMissByChildren(dirPendT dirPend); action doAssert(isRqFromDma(cRq.id), ""should be cRq from dma""); doAssert(ram.info.tag == getTag(cRq.addr) && ram.info.cs > I, ""tag match and cs > I"" ); // it is impossible in LLC to have slot.waitP == True in this function // because there is no pRq in LLC to interrupt a cRq cRqSlotT cSlot = pipeOutCSlot; doAssert(!cSlot.waitP, ""waitP must be false""); // update mshr cRqMshr.pipelineResp.setStateSlot(n, WaitSt, LLCRqSlot { way: pipeOut.way, // use way from pipeline waitP: False, repTag: ?, // no replacement dirPend: dirPend }); // deq pipeline & set owner, tag pipeline.deqWrite(Invalid, RamData { info: CacheInfo { tag: getTag(cRq.addr), cs: ram.info.cs, dir: ram.info.dir, owner: Valid (CRqOwner {mshrIdx: n, replacing: False}), // owner is req itself other: ? }, line: ram.line }, False); endaction endfunction // function to do replacement for cRq from child function Action cRqFromCReplacement(dirPendT dirPend); action doAssert(isRqFromC(cRq.id), ""should be cRq from child""); if(dirPend == Invalid) begin // directly evict the line // this cRq cannot have repSucc, since it has not occupied the line Maybe#(cRqIndexT) repSucc = pipeOutRepSucc; doAssert(!isValid(repSucc), ""cannot have rep succ""); cRqFromCEvict(n, cRq, Invalid); end else begin // wait child to downgrade pipeline.deqWrite(Invalid, RamData { info: CacheInfo { tag: ram.info.tag, cs: ram.info.cs, dir: ram.info.dir, owner: Valid (CRqOwner { mshrIdx: n, replacing: True // replacement is ongoing }), other: ? }, line: ram.line // keep data the same }, False); cRqMshr.pipelineResp.setStateSlot(n, WaitOldTag, LLCRqSlot { way: pipeOut.way, repTag: ram.info.tag, // record tag for downgrading children waitP: False, dirPend: dirPend }); end endaction endfunction // function to set cRq to Depend, and make no further change to cache function Action cRqSetDepNoCacheChange; action cRqMshr.pipelineResp.setStateSlot(n, Depend, getLLCRqSlotInitVal(getSelfInvDirPendInitVal)); pipeline.deqWrite(Invalid, pipeOut.ram, False); endaction endfunction if(ram.info.owner matches tagged Valid .cOwner) begin if(cOwner.mshrIdx != n) begin // owner is another cRq, so must just go through tag match LLCRqState cState = pipeOutCState; doAssert(cState == Init, ""owner is other, must first time go through tag match""); // tag match must be hit (because replacement algo won't give a way with owner) doAssert(ram.info.cs > I && ram.info.tag == getTag(cRq.addr), (""cRq should hit in tag match"") ); // could be two cases: // 1. hit on same addr req // 2. hit one cache line replaced by another req to different addr // even in 2nd case, we may have existing req to same addr // so first check same addr dependency if(cRqEOC matches tagged Valid .m) begin // add to same addr dependency cRqMshr.pipelineResp.setAddrSucc(m, Valid (n)); cRqSetDepNoCacheChange; $display(""%t LL %m pipelineResp: cRq: own by other cRq, same addr dep: "", $time, fshow(cOwner), "" ; "", fshow(cRqEOC) ); end else begin // must be hitting on a line being replaced // add to rep dependency cRqMshr.pipelineResp.setRepSucc(cOwner.mshrIdx, Valid (n)); cRqSetDepNoCacheChange; $display(""%t LL %m pipelineResp: cRq: own by other cRq, rep dep: "", $time, fshow(cOwner) ); doAssert(cOwner.replacing, ""line must be replacing""); end end else begin // owner is myself, so must be swapped in LLCRqState cState = pipeOutCState; doAssert(cState == Depend, ""owner is myself, must be swapped in""); // tag should match, since always swapped in by cRq (which occupies the line and completes) // so cache state must be > I doAssert(ram.info.tag == getTag(cRq.addr) && ram.info.cs > I, ""cRq swapped in, tag must match, cs > I"" ); // since cache state must > I, there is no replacement or req to mem (LLC non-I is hit) // just check whether children cache are compatible if(cRq.id matches tagged Child ._i) begin // req from child, get dir pend dirPendT dirPend = getDirPendNonCompatForChild; if(dirPend == Invalid) begin $display(""%t LL %m pipelineResp: cRq from child: own by itself, hit"", $time); cRqFromCHit(n, cRq); end else begin $display(""%t LL %m pipelineResp: cRq from child: own by itself, miss no replace: "", $time, fshow(dirPend) ); cRqFromCMissNoReplacement(dirPend); end end else begin // req from DMA, get dir pend dirPendT dirPend = getDirPendNonCompatForDma; if(dirPend == Invalid) begin $display(""%t LL %m pipelineResp: cRq from dma: own by itself, hit"", $time); cRqFromDmaHit(n, cRq); end else begin $display(""%t LL %m pipelineResp: cRq from dma: own by itself, miss by children: "", $time); cRqFromDmaMissByChildren(dirPend); end end end end else begin // cache has no owner, cRq must just go through tag match // here are two cases: // 1. cRq in Init state, first time go through tag match // 2. cRq in Depend state (due to rep dep, or addr dep on DMA req), waken up when replacement or DMA req is done LLCRqState cState = pipeOutCState; // only check for cRqEOC to append to dependency chain when firt time go through tag match if(cRqEOC matches tagged Valid .m &&& cState == Init) begin $display(""%t LL %m pipelineResp: cRq: no owner, depend on cRq "", $time, fshow(cState), "" ; "", fshow(cRqEOC) ); cRqMshr.pipelineResp.setAddrSucc(m, Valid (n)); cRqSetDepNoCacheChange; end else begin // normal processing if(cRq.id matches tagged Child ._i) begin // cRq from child if(ram.info.cs == I || ram.info.tag == getTag(cRq.addr)) begin // No Replacement necessary, check dir (dir is not garbage even when cs is I) dirPendT dirPend = getDirPendNonCompatForChild; if(ram.info.cs > I && dirPend == Invalid) begin $display(""%t LL %m pipelineResp: cRq: no owner, hit"", $time); cRqFromCHit(n, cRq); end else begin // line valid but miss by children, OR occupy an // invalid line (dirPend must be Invalid in this // case) $display(""%t LL %m pipelineResp: cRq: no owner, miss no replace: "", $time, fshow(dirPend) ); cRqFromCMissNoReplacement(dirPend); end end else begin // need replacement, check dir dirPendT dirPend = getDirPendReplace; $display(""%t LL %m pipelineResp: cRq: no owner, replace: "", $time, fshow(dirPend) ); cRqFromCReplacement(dirPend); end end else begin dirPendT dirPend = getDirPendNonCompatForDma; // cRq from DMA if(ram.info.cs > I && ram.info.tag == getTag(cRq.addr)) begin // hit in LLC, check dir if(dirPend == Invalid) begin cRqFromDmaHit(n, cRq); end else begin cRqFromDmaMissByChildren(dirPend); end end else begin // miss in LLC, so req mem and req is done! $display(""%t LL %m pipelineResp: cRq from dma: no owner, miss req mem"", $time); toMInfoQ.enq(ToMemInfo { mshrIdx: n, t: cRq.toState == M ? DmaWr : Ld }); // set req to Done & deq pipeline (no change to ram) cRqMshr.pipelineResp.setStateSlot(n, Done, ?); pipeline.deqWrite(Invalid, pipeOut.ram, False); // retry successor (cannot swap in since we don't have a line to occupy) Maybe#(cRqIndexT) addrSucc = pipeOutAddrSucc; if(addrSucc matches tagged Valid .m) begin cRqRetryIndexQ.enq(m); end // since we haven't occupied any line, we cannot have repSucc) Maybe#(cRqIndexT) repSucc = pipeOutRepSucc; doAssert(!isValid(repSucc), ""should not have any rep succ""); end end end end endrule // handle mRs rule pipelineResp_mRs(pipeOut.cmd == LLMRs); // get cache owner doAssert(isValid(ram.info.owner), ""mRs owner must match some cRq""); CRqOwner#(cRqIndexT) cOwner = validValue(ram.info.owner); // process cRq cRqT cRq = pipeOutCRq; cRqSlotT cSlot = pipeOutCSlot; $display(""%t LL %m pipelineResp: mRs: "", $time, fshow(cOwner), "" ; "", fshow(cRq), "" ; "", fshow(cSlot) ); doAssert(isRqFromC(cRq.id), ""only child req gets mem resp that refills the cache""); doAssert(ram.info.cs >= cRq.toState && ram.info.tag == getTag(cRq.addr), ""mRs must be tag match & have enough cs"" ); doAssert(ram.info.dir.state == I, ""no exclusive child""); doAssert(!cOwner.replacing, ""mRs cannot hit on replacing line""); doAssert(cSlot.way == pipeOut.way, ""mRs should hit on way in MSHR slot""); doAssert(cSlot.waitP, ""mRs should match cRq which is waiting for it""); doAssert(cSlot.dirPend == Invalid, ""cRq that needs mRs should not have children to wait for"" ); // cRq hits since all children are I cRqFromCHit(cOwner.mshrIdx, cRq); endrule // handle cRs rule pipelineResp_cRs(pipeOut.cmd matches tagged LLCRs .child); // cRs from child // XXX CCPipe has already updated ram.info and ram.line properly, // particularly for E->M case. $display(""%t LL %m pipelineResp: cRs: "", $time, fshow(child)); // cs should be not I doAssert(ram.info.cs > I, ""cRs should hit on a line""); // There cannot be exclusive child after downgrade doAssert(ram.info.dir.state == I, ""no exclusive child""); // check owner of the line if(ram.info.owner matches tagged Valid .cOwner) begin cRqT cRq = pipeOutCRq; cRqSlotT cSlot = pipeOutCSlot; LLCRqState cState = pipeOutCState; $display(""%t LL %m pipelineResp: cRs: match cRq: "", $time, fshow(cOwner), "" ; "", fshow(cRq), "" ; "", fshow(cSlot), "" ; "", fshow(cState) ); doAssert(cSlot.way == pipeOut.way, ""cRs way should match MSHR slot""); // check replacing bit if(cOwner.replacing) begin // replacment: only for req from child doAssert(isRqFromC(cRq.id), ""only child req do replace""); doAssert(cState == WaitOldTag, ""must be waiting for old tag""); doAssert(!cSlot.waitP, ""cannot wait for parent while replacing""); doAssert(cSlot.repTag == ram.info.tag, ""should match replacing tag""); // Since there is no exclusive child after downgrade, dirPend // must become invalid. So replacement is done, evict line Maybe#(cRqIndexT) repSucc = pipeOutRepSucc; cRqFromCEvict(cOwner.mshrIdx, cRq, repSucc); $display(""%t LL %m pipelineResp: cRs: match cRq: replace done: "", $time, fshow(repSucc) ); end else begin // child downgrade, not replace: req can be from child or dma doAssert(cState == WaitSt, ""must be waiting for child/parent state""); doAssert(ram.info.tag == getTag(cRq.addr), ""cRq tag should match cRs hit line""); doAssert(!cSlot.waitP, ""cs > I, so cannot wait for memory""); // Since there is no exclusive child after downgrade, dirPend // must become invalid, and cRq hits $display(""%t LL %m pipelineResp: cRs: match cRq: hit"", $time); if(cRq.id matches tagged Child ._i) begin cRqFromCHit(cOwner.mshrIdx, cRq); end else begin cRqFromDmaHit(cOwner.mshrIdx, cRq); end end end else begin // does not match any cRq, so just deq pipe & write ram $display(""%t LL %m pipelineResp: cRs: no owner"", $time); pipeline.deqWrite(Invalid, ram, False); end endrule interface ParentCacheToChild to_child; interface rqFromC = toFifoEnq(rqFromCQ); interface rsFromC = toFifoEnq(rsFromCQ); interface toC = toFifoDeq(toCQ); endinterface interface DmaServer dma; interface memReq = toFifoEnq(rqFromDmaQ); interface respLd = toFifoDeq(rsLdToDmaQ); interface respSt = toFifoDeq(rsStToDmaQ); `ifdef DEBUG_DMA interface wrMissResp = toGet(dmaWrMissQ); interface wrHitResp = toGet(dmaWrHitQ); interface rdMissResp = toGet(dmaRdMissQ); interface rdHitResp = toGet(dmaRdHitQ); `endif endinterface interface MemFifoClient to_mem; interface toM = toFifoDeq(toMQ); interface rsFromM = toFifoEnq(rsFromMQ); endinterface interface Get cRqStuck; method ActionValue#(SelfInvLLCRqStuck#(childNum, cRqIdT, dmaRqIdT)) get; let s <- cRqMshr.stuck.get; return SelfInvLLCRqStuck { id: s.req.id, addr: s.req.addr, fromState: s.req.fromState, toState: s.req.toState, child: s.req.child, state: s.state, waitP: s.waitP, dirPend: s.dirPend }; endmethod endinterface method Action setPerfStatus(Bool stats); `ifdef PERF_COUNT doStats <= stats; `else noAction; `endif endmethod method Data getPerfData(LLCPerfType t); return (case(t) `ifdef PERF_COUNT LLCDmaMemLdCnt: dmaMemLdCnt; LLCDmaMemLdLat: dmaMemLdLat; LLCNormalMemLdCnt: normalMemLdCnt; LLCNormalMemLdLat: normalMemLdLat; LLCMshrBlockCycles: mshrBlocks; LLCDownRespCnt: downRespCnt; LLCDownRespDataCnt: downRespDataCnt; LLCDownReqCnt: downReqCnt; LLCUpRespCnt: upRespCnt; LLCUpRespDataCnt: upRespDataCnt; LLCDmaLdReqCnt: dmaLdReqCnt; LLCDmaStReqCnt: dmaStReqCnt; `endif default: 0; endcase); endmethod endmodule // Scheduling notes // cRqTransfer_retry: read req // cRqTransfer_new: init(write) req/state/slot, reset addrSucc/repSucc, set data // cRsTransfer: - // mRsDeq: write data // mRsTransfer: read req/slot/data // sendToM: read req/slot/data // sendRsToDma: read req/data, release entry (write state) // sendRsToC: read req/data, release entry (write state) // sendRqToC: // -- associative search: read state/needReqChildVec(slot.dirPend) // -- for selected cRq: read req/state/slot, write slot.dirPend // -- not affected by cRqTransfer_new // (state: Empty->Init, always not hit in search) // -- not affected by sendRsToC/sendRsToDma // (state: Done->Empty, always not hit in search) // -- may be affected by pipelineResp_cRs // so don't fire when pipelineResp operates on the same cRq // above rules operate on completely different cRq // pipelineResp_cRq: // -- associative search for EOC: read state/req/addrSucc // -- not affected by cRqTransfer_new // (state: Empty->Init, always not hit in search) // -- not affected by sendRsToC/sendRsToDma // (state: Done->Empty, always not hit in search) // -- not affected by sendRqToC (slot is not read in search) // -- for the processing cRq: read req/state/data/slot/addrSucc/repSucc, write state/slot/data // -- this cRq is different from that in cRqTransfer_new // -- this cRq is different from that in mRsDeq_refill // (if need mRs, then LLC is I, nothing other than mRs can wakeup cRq) // -- this cRq is different from that in mRsDeq_nonRefill // (when mRs for DMA req comes, it is already in Done state) // -- this cRq is different from that in sendRsToC/sendRsToDma // -- this cRq is different from that in sendRqToC (slot.dirPend not set yet) // -- for some older cRq: write addrSucc/repSucc, differnt from cRqTransfer_new // pipelineResp_mRs: // -- process cRq hit: read req/slot, write state/slot/data // -- this cRq is different from that in cRqTransfer_new // -- this cRq is different from that in mRsDeq // -- this cRq is different from that in sendRsToC/sendRsToDma // -- this cRq is different from that in sendRqToC (child all I) // pipelineResp_cRs: // -- process cRs for a cRq: read req/state/slot/data, write state/slot/data // -- this cRq is different from that in cRqTransfer_new // -- this cRq is different from that in mRsDeq // -- this cRq is different from that in sendRsToC/sendRsToDma // -- XXX this cRq may be the same as that in sendRqToC!!! ",16349,True,3073.084968461104,median "CLASS zcl_excel_writer_huge_file DEFINITION PUBLIC INHERITING FROM zcl_excel_writer_2007 FINAL CREATE PUBLIC . PUBLIC SECTION. TYPES: BEGIN OF ty_cell, name TYPE c LENGTH 10, ""AAA1234567"" style TYPE i, type TYPE c LENGTH 9, formula TYPE string, value TYPE string, END OF ty_cell . DATA: cells TYPE STANDARD TABLE OF ty_cell . METHODS get_cells IMPORTING !i_row TYPE i !i_index TYPE i . PROTECTED SECTION. METHODS create_xl_sharedstrings REDEFINITION . METHODS create_xl_sheet REDEFINITION . PRIVATE SECTION. DATA worksheet TYPE REF TO zcl_excel_worksheet . ENDCLASS. CLASS zcl_excel_writer_huge_file IMPLEMENTATION. METHOD create_xl_sharedstrings. * * Redefinition using simple transformation instead of CL_IXML * ** Constant node name TYPES: BEGIN OF ts_root, count TYPE string, unique_count TYPE string, END OF ts_root. DATA: lv_last_allowed_char TYPE c, lv_invalid TYPE string. DATA: lo_iterator TYPE REF TO cl_object_collection_iterator, lo_worksheet TYPE REF TO zcl_excel_worksheet. DATA: ls_root TYPE ts_root, lt_cell_data TYPE zexcel_t_cell_data_unsorted, ls_shared_string TYPE zexcel_s_shared_string, lv_sytabix TYPE sytabix. FIELD-SYMBOLS: TYPE zexcel_s_cell_data. ********************************************************************** * STEP 0: Build Regex for invalid characters "" uccpi returns 2 chars but for this specific input 1 char is enough CASE cl_abap_char_utilities=>charsize. WHEN 1.lv_last_allowed_char = cl_abap_conv_in_ce=>uccpi( 255 ). "" FF in non-Unicode WHEN 2.lv_last_allowed_char = cl_abap_conv_in_ce=>uccpi( 65533 )."" FFFD in Unicode ENDCASE. CONCATENATE '[^\\n\\t\\r -' lv_last_allowed_char ']' INTO lv_invalid. ********************************************************************** * STEP 1: Collect strings from each worksheet lo_iterator = excel->get_worksheets_iterator( ). WHILE lo_iterator->has_next( ) EQ abap_true. lo_worksheet ?= lo_iterator->get_next( ). APPEND LINES OF lo_worksheet->sheet_content TO lt_cell_data. ENDWHILE. DELETE lt_cell_data WHERE cell_formula IS NOT INITIAL "" delete formula content OR data_type NE 's'. "" MvC: Only shared strings ls_root-count = lines( lt_cell_data ). CONDENSE ls_root-count. SORT lt_cell_data BY cell_value data_type. DELETE ADJACENT DUPLICATES FROM lt_cell_data COMPARING cell_value data_type. ls_root-unique_count = lines( lt_cell_data ). CONDENSE ls_root-unique_count. LOOP AT lt_cell_data ASSIGNING . lv_sytabix = sy-tabix - 1. MOVE lv_sytabix TO ls_shared_string-string_no. MOVE -cell_value TO ls_shared_string-string_value. REPLACE ALL OCCURRENCES OF REGEX lv_invalid IN ls_shared_string-string_value WITH ` `. APPEND ls_shared_string TO shared_strings. ENDLOOP. ********************************************************************** * STEP 2: Create XML CALL TRANSFORMATION zexcel_tr_shared_strings SOURCE root = ls_root shared_strings = shared_strings OPTIONS xml_header = 'full' RESULT XML ep_content. ENDMETHOD. METHOD create_xl_sheet. * * Build Sheet#.xml with Simple Transformation ZEXCEL_TR_SHEET * * This is an adaption of ZCL_EXCEL_WRITER_2007. * Not all features are supported, notably the autofilter settings, * conditional formatting and sheet protection. * * Bug reports to marcus.voncube AT deutschebahn.com * TYPES: lty_bool TYPE c LENGTH 5. CONSTANTS: lc_true TYPE lty_bool VALUE 'true', lc_zero TYPE c LENGTH 1 VALUE '0', lc_one TYPE c LENGTH 1 VALUE '1', lc_default_col_width TYPE float VALUE '9.10'. TYPES: BEGIN OF lty_column, min TYPE i, max TYPE i, width TYPE float, hidden TYPE lty_bool, customwidth TYPE lty_bool, bestfit TYPE lty_bool, collapsed TYPE lty_bool, outlinelevel TYPE i, style TYPE i, END OF lty_column, BEGIN OF lty_row, row TYPE i, index TYPE i, spans TYPE c LENGTH 11, ""12345:12345"" hidden TYPE lty_bool, customheight TYPE lty_bool, height TYPE float, collapsed TYPE lty_bool, outlinelevel TYPE i, customformat TYPE lty_bool, style TYPE i, END OF lty_row, BEGIN OF lty_mergecell, ref TYPE c LENGTH 21, ""AAA1234567:BBB1234567"" END OF lty_mergecell, BEGIN OF lty_hyperlink, ref TYPE string, location TYPE string, r_id TYPE string, END OF lty_hyperlink, BEGIN OF lty_table, r_id TYPE string, END OF lty_table, BEGIN OF lty_table_area, left TYPE i, right TYPE i, top TYPE i, bottom TYPE i, END OF lty_table_area, BEGIN OF ty_missing_columns, first_column TYPE zexcel_cell_column, last_column TYPE zexcel_cell_column, END OF ty_missing_columns. * * Root node for transformation * DATA: BEGIN OF l_worksheet, dimension TYPE string, tabcolor TYPE string, summarybelow TYPE c, summaryright TYPE c, fittopage TYPE c, showzeros TYPE c, tabselected TYPE c, zoomscale TYPE i, zoomscalenormal TYPE i, zoomscalepageview TYPE i, zoomscalesheetview TYPE i, workbookviewid TYPE c, showgridlines TYPE c, showrowcolheaders TYPE c, activepane TYPE string, state TYPE string, ysplit TYPE i, xsplit TYPE i, topleftcell TYPE c LENGTH 10, activecell TYPE c LENGTH 10, customheight TYPE lty_bool, defaultrowheight TYPE float, defaultcolwidth TYPE float, outlinelevelrow TYPE i, outlinelevelcol TYPE i, cols TYPE STANDARD TABLE OF lty_column, rows TYPE STANDARD TABLE OF lty_row, mergecells_count TYPE i, mergecells TYPE STANDARD TABLE OF lty_mergecell, hyperlinks_count TYPE i, hyperlinks TYPE STANDARD TABLE OF lty_hyperlink, BEGIN OF printoptions, gridlines TYPE lty_bool, horizontalcentered TYPE lty_bool, verticalcentered TYPE lty_bool, END OF printoptions, BEGIN OF pagemargins, left TYPE zexcel_dec_8_2, right TYPE zexcel_dec_8_2, top TYPE zexcel_dec_8_2, bottom TYPE zexcel_dec_8_2, header TYPE zexcel_dec_8_2, footer TYPE zexcel_dec_8_2, END OF pagemargins, BEGIN OF pagesetup, blackandwhite TYPE c, cellcomments TYPE string, copies TYPE i, draft TYPE c, errors TYPE string, firstpagenumber TYPE i, fittopage TYPE c, fittoheight TYPE i, fittowidth TYPE i, horizontaldpi TYPE i, orientation TYPE string, pageorder TYPE string, paperheight TYPE string, papersize TYPE i, paperwidth TYPE string, scale TYPE i, usefirstpagenumber TYPE c, useprinterdefaults TYPE c, verticaldpi TYPE i, END OF pagesetup, BEGIN OF headerfooter, differentoddeven TYPE c, oddheader TYPE string, oddfooter TYPE string, evenheader TYPE string, evenfooter TYPE string, END OF headerfooter, drawings TYPE string, tables_count TYPE i, tables TYPE STANDARD TABLE OF lty_table, END OF l_worksheet. * * Local data * DATA: lo_iterator TYPE REF TO cl_object_collection_iterator, lo_table TYPE REF TO zcl_excel_table, lo_column_default TYPE REF TO zcl_excel_column, lo_row_default TYPE REF TO zcl_excel_row, lv_value TYPE string, lv_index TYPE i, lv_spans TYPE string, lt_range_merge TYPE string_table, lv_column TYPE zexcel_cell_column, lv_style_guid TYPE zexcel_cell_style, ls_last_row TYPE zexcel_s_cell_data, lv_freeze_cell_row TYPE zexcel_cell_row, lv_freeze_cell_column TYPE zexcel_cell_column, lv_freeze_cell_column_alpha TYPE zexcel_cell_column_alpha, lo_column_iterator TYPE REF TO cl_object_collection_iterator, lo_column TYPE REF TO zcl_excel_column, lo_row_iterator TYPE REF TO cl_object_collection_iterator, lo_row TYPE REF TO zcl_excel_row, lv_relation_id TYPE i VALUE 0, outline_level_row TYPE i VALUE 0, outline_level_col TYPE i VALUE 0, col_count TYPE int4, lt_table_areas TYPE SORTED TABLE OF lty_table_area WITH NON-UNIQUE KEY left right top bottom, ls_table_area LIKE LINE OF lt_table_areas, lts_sorted_columns TYPE SORTED TABLE OF zexcel_cell_column WITH UNIQUE KEY table_line, t_missing_columns TYPE STANDARD TABLE OF ty_missing_columns WITH NON-UNIQUE DEFAULT KEY, missing_column LIKE LINE OF t_missing_columns, lo_link TYPE REF TO zcl_excel_hyperlink, lo_drawings TYPE REF TO zcl_excel_drawings. FIELD-SYMBOLS: TYPE zexcel_s_cell_data, LIKE LINE OF lt_range_merge, TYPE lty_column, TYPE lty_row, TYPE lty_hyperlink, TYPE lty_mergecell, TYPE lty_table. ********************************************************************** * STEP 1: Fill root node * l_worksheet-tabcolor = io_worksheet->tabcolor-rgb. l_worksheet-summarybelow = io_worksheet->zif_excel_sheet_properties~summarybelow. l_worksheet-summaryright = io_worksheet->zif_excel_sheet_properties~summaryright. IF io_worksheet->sheet_setup->fit_to_page IS NOT INITIAL. l_worksheet-fittopage = lc_one. ENDIF. l_worksheet-dimension = io_worksheet->get_dimension_range( ). IF io_worksheet->zif_excel_sheet_properties~show_zeros EQ abap_true. l_worksheet-showzeros = lc_one. ELSE. l_worksheet-showzeros = lc_zero. ENDIF. IF iv_active = abap_true OR io_worksheet->zif_excel_sheet_properties~selected EQ abap_true. l_worksheet-tabselected = lc_one. ELSE. l_worksheet-tabselected = lc_zero. ENDIF. IF io_worksheet->zif_excel_sheet_properties~zoomscale GT 400. io_worksheet->zif_excel_sheet_properties~zoomscale = 400. ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale LT 10. io_worksheet->zif_excel_sheet_properties~zoomscale = 10. ENDIF. l_worksheet-zoomscale = io_worksheet->zif_excel_sheet_properties~zoomscale. IF io_worksheet->zif_excel_sheet_properties~zoomscale_normal NE 0. IF io_worksheet->zif_excel_sheet_properties~zoomscale_normal GT 400. io_worksheet->zif_excel_sheet_properties~zoomscale_normal = 400. ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale_normal LT 10. io_worksheet->zif_excel_sheet_properties~zoomscale_normal = 10. ENDIF. l_worksheet-zoomscalenormal = io_worksheet->zif_excel_sheet_properties~zoomscale_normal. ENDIF. IF io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview NE 0. IF io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview GT 400. io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview = 400. ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview LT 10. io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview = 10. ENDIF. l_worksheet-zoomscalepageview = io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview. ENDIF. IF io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview NE 0. IF io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview GT 400. io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview = 400. ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview LT 10. io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview = 10. ENDIF. l_worksheet-zoomscalesheetview = io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview. ENDIF. l_worksheet-workbookviewid = lc_zero. IF io_worksheet->show_gridlines = abap_true. l_worksheet-showgridlines = lc_one. ELSE. l_worksheet-showgridlines = lc_zero. ENDIF. IF io_worksheet->show_rowcolheaders = abap_true. l_worksheet-showrowcolheaders = lc_one. ELSE. l_worksheet-showrowcolheaders = lc_zero. ENDIF. * * Freeze * io_worksheet->get_freeze_cell( IMPORTING ep_row = lv_freeze_cell_row ep_column = lv_freeze_cell_column ). IF lv_freeze_cell_row IS NOT INITIAL AND lv_freeze_cell_column IS NOT INITIAL. IF lv_freeze_cell_row > 1. l_worksheet-ysplit = lv_freeze_cell_row - 1. ENDIF. IF lv_freeze_cell_column > 1. lv_value = lv_freeze_cell_column - 1. l_worksheet-xsplit = lv_freeze_cell_row - 1. ENDIF. lv_freeze_cell_column_alpha = zcl_excel_common=>convert_column2alpha( ip_column = lv_freeze_cell_column ). lv_value = zcl_excel_common=>number_to_excel_string( ip_value = lv_freeze_cell_row ). CONCATENATE lv_freeze_cell_column_alpha lv_value INTO lv_value. l_worksheet-topleftcell = lv_value. l_worksheet-activepane = 'bottomRight'. l_worksheet-state = 'frozen'. ENDIF. l_worksheet-activecell = io_worksheet->get_active_cell( ). * * Row and column info * lo_column_iterator = io_worksheet->get_columns_iterator( ). IF NOT lo_column_iterator IS BOUND. io_worksheet->calculate_column_widths( ). lo_column_iterator = io_worksheet->get_columns_iterator( ). ENDIF. lo_column_default = io_worksheet->get_default_column( ). IF lo_column_default IS BOUND AND lo_column_default->get_width( ) >= 0. l_worksheet-defaultcolwidth = lo_column_default->get_width( ). ENDIF. lo_row_default = io_worksheet->get_default_row( ). IF lo_row_default IS BOUND. IF lo_row_default->get_row_height( ) >= 0. l_worksheet-customheight = lc_true. lv_value = lo_row_default->get_row_height( ). ELSE. lv_value = '12.75'. ENDIF. ELSE. lv_value = '12.75'. ENDIF. CONDENSE lv_value. l_worksheet-defaultrowheight = lv_value. lo_row_iterator = io_worksheet->get_rows_iterator( ). WHILE lo_row_iterator->has_next( ) = abap_true. lo_row ?= lo_row_iterator->get_next( ). IF lo_row->get_outline_level( ) > outline_level_row. l_worksheet-outlinelevelrow = lo_row->get_outline_level( ). ENDIF. ENDWHILE. * Set column information (width, style, ...) * IF lo_column_iterator->has_next( ) = abap_true. WHILE lo_column_iterator->has_next( ) = abap_true. lo_column ?= lo_column_iterator->get_next( ). IF lo_column->get_outline_level( ) > outline_level_col. l_worksheet-outlinelevelcol = lo_column->get_outline_level( ). ENDIF. APPEND INITIAL LINE TO l_worksheet-cols ASSIGNING . -min = -max = lo_column->get_column_index( ). -width = lo_column->get_width( ). IF -width < 0. -width = lc_default_col_width. ENDIF. IF lo_column->get_visible( ) = abap_false. -hidden = lc_true. ENDIF. IF lo_column->get_auto_size( ) = abap_true. -bestfit = lc_true. ENDIF. IF lo_column_default IS BOUND. IF lo_column->get_width( ) <> lo_column_default->get_width( ). -customwidth = lc_true. ENDIF. ELSE. -customwidth = lc_true. ENDIF. IF lo_column->get_collapsed( ) = abap_true. -collapsed = lc_true. ENDIF. -outlinelevel = lo_column->get_outline_level( ). lv_style_guid = lo_column->get_column_style_guid( ). -style = me->excel->get_style_index_in_styles( lv_style_guid ) - 1. * * Missing columns * * First collect columns that were already handled before. * The rest has to be inserted now. * lv_column = zcl_excel_common=>convert_column2int( lo_column->get_column_index( ) ). INSERT lv_column INTO TABLE lts_sorted_columns. ENDWHILE. * ENDIF. * * Now find all columns that were missing so far * missing_column-first_column = 1. LOOP AT lts_sorted_columns INTO lv_column. IF lv_column > missing_column-first_column. missing_column-last_column = lv_column - 1. APPEND missing_column TO t_missing_columns. ENDIF. missing_column-first_column = lv_column + 1. ENDLOOP. missing_column-last_column = zcl_excel_common=>c_excel_sheet_max_col. APPEND missing_column TO t_missing_columns. * * Now apply stylesetting and other defaults * LOOP AT t_missing_columns INTO missing_column. APPEND INITIAL LINE TO l_worksheet-cols ASSIGNING . -min = missing_column-first_column. -max = missing_column-last_column. IF lo_column_default IS BOUND AND lo_column_default->get_width( ) >= 0. -width = lo_column_default->get_width( ). ELSE. -width = lc_default_col_width. ENDIF. lv_style_guid = io_worksheet->zif_excel_sheet_properties~get_style( ). -style = me->excel->get_style_index_in_styles( lv_style_guid ) - 1. ENDLOOP. * * Build table to hold all table-areas attached to this sheet * lo_iterator = io_worksheet->get_tables_iterator( ). WHILE lo_iterator->has_next( ) EQ abap_true. lo_table ?= lo_iterator->get_next( ). ls_table_area-left = zcl_excel_common=>convert_column2int( lo_table->settings-top_left_column ). ls_table_area-right = lo_table->get_right_column_integer( ). ls_table_area-top = lo_table->settings-top_left_row. ls_table_area-bottom = lo_table->get_bottom_row_integer( ). INSERT ls_table_area INTO TABLE lt_table_areas. ENDWHILE. * * Build sheet data node * * Spans is constant amongst all rows * col_count = io_worksheet->get_highest_column( ). lv_spans = col_count. CONCATENATE '1:' lv_spans INTO lv_spans. CONDENSE lv_spans. LOOP AT io_worksheet->sheet_content ASSIGNING . IF ls_last_row-cell_row NE -cell_row. * * Fill row information. * Cell data is filled in by callback GET_CELLS called from transformation * lv_index = sy-tabix. APPEND INITIAL LINE TO l_worksheet-rows ASSIGNING . -row = -cell_row. -index = lv_index. -spans = lv_spans. * * Row dimension attributes * lo_row = io_worksheet->get_row( -cell_row ). IF lo_row->get_visible( ) = abap_false. -hidden = lc_true. ENDIF. IF lo_row->get_row_height( ) >= 0. -customheight = lc_one. -height = lo_row->get_row_height( ). ENDIF. * * Collapsed * IF lo_row->get_collapsed( ) = abap_true. -collapsed = lc_true. ENDIF. * * Outline level * -outlinelevel = lo_row->get_outline_level( ). * * Style * -style = lo_row->get_xf_index( ). IF -style <> 0. -customformat = lc_one. ENDIF. ENDIF. ls_last_row = . ENDLOOP. * * Merged cells * lt_range_merge = io_worksheet->get_merge( ). IF lt_range_merge IS NOT INITIAL. l_worksheet-mergecells_count = lines( lt_range_merge ). LOOP AT lt_range_merge ASSIGNING . APPEND INITIAL LINE TO l_worksheet-mergecells ASSIGNING . -ref = . io_worksheet->delete_merge( ). ENDLOOP. ENDIF. * * Hyperlinks * l_worksheet-hyperlinks_count = io_worksheet->get_hyperlinks_size( ). IF l_worksheet-hyperlinks_count > 0. lo_iterator = io_worksheet->get_hyperlinks_iterator( ). WHILE lo_iterator->has_next( ) EQ abap_true. lo_link ?= lo_iterator->get_next( ). APPEND INITIAL LINE TO l_worksheet-hyperlinks ASSIGNING . -ref = lo_link->get_ref( ). IF lo_link->is_internal( ) = abap_true. -location = lo_link->get_url( ). ELSE. ADD 1 TO lv_relation_id. lv_value = lv_relation_id. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. -r_id = lv_value. ENDIF. ENDWHILE. ENDIF. * * Print options * IF io_worksheet->print_gridlines = abap_true. l_worksheet-printoptions-gridlines = lc_true. ENDIF. IF io_worksheet->sheet_setup->horizontal_centered = abap_true. l_worksheet-printoptions-horizontalcentered = lc_true. ENDIF. IF io_worksheet->sheet_setup->vertical_centered = abap_true. l_worksheet-printoptions-verticalcentered = lc_true. ENDIF. * * Page margins * l_worksheet-pagemargins-left = io_worksheet->sheet_setup->margin_left. l_worksheet-pagemargins-right = io_worksheet->sheet_setup->margin_right. l_worksheet-pagemargins-top = io_worksheet->sheet_setup->margin_top. l_worksheet-pagemargins-bottom = io_worksheet->sheet_setup->margin_bottom. l_worksheet-pagemargins-header = io_worksheet->sheet_setup->margin_header. l_worksheet-pagemargins-footer = io_worksheet->sheet_setup->margin_footer. * * Page setup * l_worksheet-pagesetup-cellcomments = io_worksheet->sheet_setup->cell_comments. l_worksheet-pagesetup-copies = io_worksheet->sheet_setup->copies. l_worksheet-pagesetup-firstpagenumber = io_worksheet->sheet_setup->first_page_number. l_worksheet-pagesetup-fittopage = io_worksheet->sheet_setup->fit_to_page. l_worksheet-pagesetup-fittoheight = io_worksheet->sheet_setup->fit_to_height. l_worksheet-pagesetup-fittowidth = io_worksheet->sheet_setup->fit_to_width. l_worksheet-pagesetup-horizontaldpi = io_worksheet->sheet_setup->horizontal_dpi. l_worksheet-pagesetup-orientation = io_worksheet->sheet_setup->orientation. l_worksheet-pagesetup-pageorder = io_worksheet->sheet_setup->page_order. l_worksheet-pagesetup-paperheight = io_worksheet->sheet_setup->paper_height. l_worksheet-pagesetup-papersize = io_worksheet->sheet_setup->paper_size. l_worksheet-pagesetup-paperwidth = io_worksheet->sheet_setup->paper_width. l_worksheet-pagesetup-scale = io_worksheet->sheet_setup->scale. l_worksheet-pagesetup-usefirstpagenumber = io_worksheet->sheet_setup->use_first_page_num. l_worksheet-pagesetup-verticaldpi = io_worksheet->sheet_setup->vertical_dpi. IF io_worksheet->sheet_setup->black_and_white IS NOT INITIAL. l_worksheet-pagesetup-blackandwhite = lc_one. ENDIF. IF io_worksheet->sheet_setup->draft IS NOT INITIAL. l_worksheet-pagesetup-draft = lc_one. ENDIF. IF io_worksheet->sheet_setup->errors IS NOT INITIAL. l_worksheet-pagesetup-errors = io_worksheet->sheet_setup->errors. ENDIF. IF io_worksheet->sheet_setup->use_printer_defaults IS NOT INITIAL. l_worksheet-pagesetup-useprinterdefaults = lc_one. ENDIF. * * Header and footer * IF io_worksheet->sheet_setup->diff_oddeven_headerfooter = abap_true. l_worksheet-headerfooter-differentoddeven = lc_one. ENDIF. io_worksheet->sheet_setup->get_header_footer_string( IMPORTING ep_odd_header = l_worksheet-headerfooter-oddheader ep_odd_footer = l_worksheet-headerfooter-oddfooter ep_even_header = l_worksheet-headerfooter-evenheader ep_even_footer = l_worksheet-headerfooter-evenfooter ). * * Drawings * lo_drawings = io_worksheet->get_drawings( ). IF lo_drawings->is_empty( ) = abap_false. ADD 1 TO lv_relation_id. lv_value = lv_relation_id. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO l_worksheet-drawings. ENDIF. * * Tables * l_worksheet-tables_count = io_worksheet->get_tables_size( ). IF l_worksheet-tables_count > 0. lo_iterator = io_worksheet->get_tables_iterator( ). WHILE lo_iterator->has_next( ) EQ abap_true. lo_table ?= lo_iterator->get_next( ). APPEND INITIAL LINE TO l_worksheet-tables ASSIGNING
. ADD 1 TO lv_relation_id. lv_value = lv_relation_id. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO
-r_id. ENDWHILE. ENDIF. ********************************************************************** * STEP 2: Create XML me->worksheet = io_worksheet. ""Neccessary for callback GET_CELL CALL TRANSFORMATION zexcel_tr_sheet SOURCE worksheet = l_worksheet cells = me->cells writer = me OPTIONS xml_header = 'full' RESULT XML ep_content. ENDMETHOD. ""CREATE_XL_SHEET METHOD get_cells. * * Callback method from transformation ZEXCEL_TR_SHEET * * The method fills the data cells for each row. * This saves memory if there are many rows. * DATA: lv_cell_style TYPE zexcel_cell_style. FIELD-SYMBOLS: TYPE ty_cell, TYPE zexcel_s_cell_data,