Jelajahi Sumber

upd doc todo

a.binder 5 tahun lalu
induk
melakukan
c5494111a5
16 mengubah file dengan 861 tambahan dan 595 penghapusan
  1. 6 0
      SE/schema/WPS_Functions/automation_driven/build.automation_driven.PRODUCT.submodule.xml
  2. 48 1
      SE/schema/WPS_Functions/automation_driven/build_automation_driven.xml
  3. 0 1
      SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/___P5_LIB/p5__pins__setup.h
  4. 0 88
      SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/___P5_LIB/p5__progmem.h
  5. 0 9
      SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/___P5_LIB/p5__struct.h
  6. 5 0
      SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/automation_driven.submodule.appinfo.xsd
  7. 195 74
      SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/automation_driven.submodule.main.xsd
  8. 48 1
      SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/automation_driven.submodule.namespaces.xsd
  9. 97 0
      SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/automation_driven.submodule.prototypes.xsd
  10. 2 2
      SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/automation_driven.submodule.runtime.xsd
  11. 390 412
      SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/automation_driven.submodule.struct.read.xsd
  12. 54 3
      SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/automation_driven.submodule.struct.read.xsl
  13. 2 4
      SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/testing_pwm_amp.ino
  14. 5 0
      SE/stuff/P5_Automation_can-dev/P5_Automation_can-dev.xpr
  15. 1 0
      doc/SE/PLIKI/BI_audit_POWIAZANIA/.tasks/.tasks.ditamap
  16. 8 0
      doc/SE/PLIKI/BI_audit_POWIAZANIA/.tasks/w_czanie_i_wylaczanie_przetwarzania_zdefiniowane_jest_w_bash_sync_perms.dita

+ 6 - 0
SE/schema/WPS_Functions/automation_driven/build.automation_driven.PRODUCT.submodule.xml

@@ -17,6 +17,12 @@
    <property  name="automation_driven.submodule.struct.read.xml" location="${automation_driven.submodule.basedir}/automation_driven.submodule.struct.read.xml"/>
    <property  name="automation_driven.submodule.struct.read.xsl" location="${automation_driven.submodule.basedir}/automation_driven.submodule.struct.read.xsl"/>   
    <property  name="automation_driven.submodule.struct.read.xsd" location="${automation_driven.submodule.basedir}/automation_driven.submodule.struct.read.xsd"/>
+   
+   <property  name="automation_driven.submodule.struct.read.enumerate.xsd" location="${automation_driven.submodule.basedir}/automation_driven.submodule.struct.read.enumerate.xsd"/>
+   <property  name="automation_driven.submodule.struct.read.enumerate.xsl" location="${automation_driven.submodule.basedir}/automation_driven.submodule.struct.read.enumerate.xsl"/>
+   
    <property  name="automation_driven.submodule.struct.h" location="${automation_driven.submodule.basedir}/___P5_LIB/p5__struct.h"/>
    
+   <property name="automation_driven.submodule.namespaces.xsd" location="${automation_driven.submodule.basedir}/automation_driven.submodule.namespaces.xsd"/>
+   
 </project>

+ 48 - 1
SE/schema/WPS_Functions/automation_driven/build_automation_driven.xml

@@ -45,7 +45,7 @@
       description="to initially generate xsd from automation_driven.submodule.struct.h file">
       <xslt basedir="${automation_driven.submodule.basedir}"
          destdir="${automation_driven.submodule.temp}"
-         force="true"
+         force="false"
          in="${empty.xml}"
          out="${automation_driven.submodule.struct.read.xsd}"
          style="${automation_driven.submodule.struct.read.xsl}"> <!-- ${automation_driven.submodule.struct.h} -->
@@ -75,8 +75,55 @@
          <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.struct.xsd}h"
             expression="${automation_driven.submodule.struct.h}"/>
          
+         <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.namespaces.xsd}xsd"
+            expression="${automation_driven.submodule.namespaces.xsd}"/>
+         
+         <classpath location="/opt/local/share/java/saxon9he.jar"/>
+         <xmlcatalog refid="dita-ot.dtd.catalog"/>
+      </xslt>
+   </target>
+   
+   
+   <target name="automation_driven.submodule.struct.read.enumerate.xsd"
+      description="to enumerate unique attributes " depends="automation_driven.submodule.struct.read.xsd">
+      <xslt basedir="${automation_driven.submodule.basedir}"
+         destdir="${automation_driven.submodule.temp}"
+         force="true"
+         in="${automation_driven.submodule.struct.read.xsd}"
+         out="${automation_driven.submodule.struct.read.enumerate.xsd}"
+         style="${automation_driven.submodule.struct.read.enumerate.xsl}"> <!-- ${automation_driven.submodule.struct.h} -->
+         <factory name="net.sf.saxon.TransformerFactoryImpl">
+            <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+            <!--<attribute name="http://saxon.sf.net/feature/initialTemplate"
+               value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.struct.xsd}read.enumerate.xml"/>-->
+            <attribute name="http://saxon.sf.net/feature/initialMode"
+               value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.struct.xsd}read.enumerate.xml"/>
+            <attribute name="http://saxon.sf.net/feature/dtd-validation-recoverable"
+               value="true"/>
+         </factory>
+         <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.xsd}basedir"
+            expression="${automation_driven.basedir}"/>
+         <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.xsd}repository"
+            expression="${automation_driven.repository}"/>
+         <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.xsd}temp"
+            expression="${automation_driven.temp}"/>
+         
+         <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.xsd}basedir"
+            expression="${automation_driven.submodule.basedir}"/>
+         <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.xsd}repository"
+            expression="${automation_driven.submodule.repository}"/>
+         <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.xsd}temp"
+            expression="${automation_driven.submodule.temp}"/>
+         
+         <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.struct.xsd}h"
+            expression="${automation_driven.submodule.struct.h}"/>
+         
+         <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.namespaces.xsd}xsd"
+            expression="${automation_driven.submodule.namespaces.xsd}"/>
+         
          <classpath location="/opt/local/share/java/saxon9he.jar"/>
          <xmlcatalog refid="dita-ot.dtd.catalog"/>
       </xslt>
    </target>
+   
 </project>

+ 0 - 1
SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/___P5_LIB/p5__pins__setup.h

@@ -9,7 +9,6 @@
      void p5__pins__setup(
    
       // p5__display__class p5__display__class_A,
-     P5__STATUS_T &P5__STATUS_A
      
      ) {
         //P5__STATUS_T P5__STATUS_A ;

+ 0 - 88
SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/___P5_LIB/p5__progmem.h

@@ -123,91 +123,3 @@ FT(ATTRIBUTE_SWING__FREQUENCY, "~");
 //### Typedefs ################################################################
 typedef void(*pF)(void);                        // Pointer to void FCN(void)
 //*****************************************************************************
-
-
-/*
-
-#define CMD_CNT (sizeof(CmdAR)/sizeof(CmdAR[0])) // Number of Commands
-
-//### Define RS232-Command-Array ##############################################
-Commands CmdAR[] = {
-// cmd1,    cmd2,    callback, info
-{"TASK",   "t  ",   cTask,   "set Task Parameter (ID, Periode, Set, CNT, Offset)"},
-{"Set",    "s  ",   cTask,   "set Task Parameter (ID, Periode, Set, CNT, Offset)"},
-{"LCDBL",  "lcdb",  cLcdBL,  "set LCD BackLight (off/Auto-Off Periode)"          }
-};
-
-
-void cTask(){
-  SPrLF("cTask");
-}
-
-void cLcdBL(){
-  SPrLF("cLcdBL");
-}
-
-void printComands(){
-  SPrL();
-  //SPrLF("**************************************************");
-  SPFTL(3);
-  //SPrLF("*\tRS232 Command List\t\t\t *");
-  SPFTL(B4);
-  //SPrLF("**************************************************");
-  SPFTL(3);
-  SPrLF("Cmd1\t, Cmd2\t, Info (Parameter)");
-  for(byte i=0; i<CMD_CNT; i++){
-    SPrF(" ");
-    //SPr(FP(CmdAR[i].cmd1)); SPrF("\t, ");
-    SFP(CmdAR[i].cmd1); SPrF("\t, ");
-    SFP(CmdAR[i].cmd2); SPrF("\t, ");
-    SFP(CmdAR[i].info); 
-    SPrL();
-  }
-  SPrL();
-  //SPrLF("**************************************************");
-  SPFTL(3);
-  SPrLF("Type: < Command1/2, Val1, Val2, Val3, Val4, Val5");
-  SPrL();
-}
-
-
-//### Setup() #####################################################
-void setup() {
-  Serial.begin(230400);
-  SPrL();
-  Serial.println(F("Macro-Based, only single "
-                   "In-Function usable Flash saved Text."));
-  SPrLF("...the same, but shorter command ");
-
-  SPrL();                   // Newline
-  
-  FPrL(FT_0);               // Serial Print Line Flash saved Text
-  FPrL(FT_1);
-  SPFTL(2);                 // Shortest Version SerialPrintFlashText(ID)
-  SPFTL(5);
-  
-  
-}//void setup()
-//*****************************************************************
-
-
-
-//### Main loop() #################################################
-void loop(){
-
-  // reuse same string anywere in the Code
-  //SPrL();                     // Newline
-  //SPFTL(3);                   // Headder, SerialPrintFlashTextLine
-  //SPFTL(B4);             
-  //SPFTL(3);
-
-  SPrL();
-  printComands();
-
-  delay(10000);  
-}// void loop() 
-//*****************************************************************
-
-
-
-*/

+ 0 - 9
SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/___P5_LIB/p5__struct.h

@@ -315,14 +315,5 @@ struct P5__TASK__TYPE__SEQUENCE__ARRAY__ASSOC_S {  //aby podlaczyc ze soba struk
   
  // P5__TASK__CONFIG_A[2] = {"PW" ,  P5__TASK__TYPE__ROOT  };
   
-  typedef int P5__ROUTER_T ;
-  const P5__ROUTER_T P5__ROUTER__STATUS__FINAL = 1;
-  
-  typedef String P5__ROUTER_STRING_T ;
-
-  typedef P5__ROUTER_STRING_T P5__STATUS_T;
-  // typedef char P5__STATUS_T[8];
-   const P5__STATUS_T P5__STATUS__INIT = "1234567";
-   
    
      

+ 5 - 0
SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/automation_driven.submodule.appinfo.xsd

@@ -33,4 +33,9 @@
       <xs:restriction base="xs:string"/>
    </xs:simpleType>
    <xs:complexType name="if_defined_T"/>
+   <xs:complexType name="insert__code">
+      <xs:annotation>
+         <xs:documentation>zeby szybko wklejac kawalki</xs:documentation>
+      </xs:annotation>
+   </xs:complexType>
 </xs:schema>

+ 195 - 74
SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/automation_driven.submodule.main.xsd

@@ -15,7 +15,8 @@
    xmlns:automation_driven.submodule.prototypes="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.prototypes.xsd"
    xmlns:automation_driven.submodule.appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.appinfo.xsd"
    xmlns:automation_driven.submodule.namespaces="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.namespaces.xsd"
-   xmlns:automation_driven.submodule.runtime="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.runtime.xsd">
+   xmlns:automation_driven.submodule.runtime="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.runtime.xsd"
+   xmlns:automation_driven.submodule.main.setup="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.main.setup.xsd">
    <xs:annotation>
       <xs:documentation>Struiktura pliku glownego ...main.ino ...</xs:documentation>
    </xs:annotation>
@@ -31,77 +32,197 @@
    <xs:import
       namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.runtime.xsd"
       schemaLocation="automation_driven.submodule.runtime.xsd"/>
-   <xs:complexType name="define_1">
-      <xs:complexContent>
-         <xs:extension base="automation_driven.submodule.prototypes:define">
-            <xs:attribute id="A2817256C-FF92-49C8-958B-59BE01668156"
-               ref="automation_driven.submodule.namespaces:HAS_u8g2"/>
-            <xs:attribute fixed="5" id="A0456DEBC-B073-4083-A0A6-E5D294C8A241"
-               ref="automation_driven.submodule.namespaces:DEBUG__I2C" use="optional"/>
-         </xs:extension>
-      </xs:complexContent>
-   </xs:complexType>
-   <xs:element name="define_1" type="automation_driven.submodule.main:define_1"/>
-   <xs:complexType name="include_1">
-      <xs:complexContent>
-         <xs:extension base="automation_driven.submodule.prototypes:include">
-            <xs:attribute id="AB35E2D50-E3E5-4FFB-A8C1-D33E5B5E7634"
-               ref="automation_driven.submodule.namespaces:U8g2lib.h"/>
-            <xs:attribute ref="automation_driven.submodule.namespaces:Arduino.h"/>
-            <xs:attribute id="AB42E4C39-DB0C-4B38-9703-08B022138DF0"
-               ref="automation_driven.submodule.namespaces:p5__struct__simpleTypes.h"/>
-            <xs:attribute id="A4CF27D81-D1BB-4ED5-86F5-AE56C720AF6A"
-               ref="automation_driven.submodule.namespaces:p5__struct.h"/>
-            <xs:attribute id="A94C5F335-63FA-4FC2-B9E8-0C489DF82EB6"
-               ref="automation_driven.submodule.namespaces:p5__progmem.h"/>
-            <xs:attribute id="A592D07C2-D0EB-4C59-806A-4119935BF18A"
-               ref="automation_driven.submodule.namespaces:pins.h"/>
-            <xs:attribute id="AFCE7379B-2CA8-4AE2-AB62-D1CA866813BE"
-               ref="automation_driven.submodule.namespaces:p5__pins__setup.h"/>
-            <xs:attribute id="A45582F3D-C284-4541-9703-BA5FC02D21D6"
-               ref="automation_driven.submodule.namespaces:p5__task___attr.h"/>
-            <xs:attribute id="A9347D9F9-163E-43F8-B972-F42C8115D6C3"
-               ref="automation_driven.submodule.namespaces:p5__task___attr__reply_list.h"/>
-            <xs:attribute id=" A27909C34-109A-491C-960A-02CD1D2599D5"
-               ref="automation_driven.submodule.namespaces:p5__display.h"/>
-            <xs:attribute ref="automation_driven.submodule.namespaces:p5__pwm.h"/>
-            <xs:attribute id="AC3C057DA-C596-4027-94C8-0EF10734385D"
-               ref="automation_driven.submodule.namespaces:p5__swing.h"/>
-            <xs:attribute id="AB41EC322-A4F1-4760-B900-85E369652809"
-               ref="automation_driven.submodule.namespaces:p5__i2c.h"/>
-            <xs:attribute id="AFB4D80A9-BB63-428E-ABF2-AF2AC414E0A5"
-               ref="automation_driven.submodule.namespaces:p5__task.h"/>
-            <xs:attribute id="AFC729C81-4508-415D-9270-F43459C660A6"
-               ref="automation_driven.submodule.namespaces:SPI.h"/>
-            <xs:attribute id="AB89497B4-D12C-404A-A6B7-91E3101691FE"
-               ref="automation_driven.submodule.namespaces:Wire.h"/>
-            <xs:attribute id="AE9DCC146-C5E0-404B-88AE-77197742693E"
-               ref="automation_driven.submodule.namespaces:config_individual.h"/>
-            <xs:attribute id="A141F5180-09E3-4AE6-A1DE-9D5FC32A42FA"
-               ref="automation_driven.submodule.namespaces:config_defaults.h"/>
-         </xs:extension>
-      </xs:complexContent>
-   </xs:complexType>
-   <xs:element name="include_1" type="automation_driven.submodule.main:include_1"/>
-   <xs:complexType name="if_defined_1_if_defined">
-      <xs:complexContent>
-         <xs:restriction base="automation_driven.submodule.prototypes:define">
-            <xs:attribute ref="automation_driven.submodule.namespaces:HAS_u8g2"/>
-         </xs:restriction>
-      </xs:complexContent>
-   </xs:complexType>
-   <xs:complexType name="if_defined_1">
-      <xs:complexContent>
-         <xs:restriction base="automation_driven.submodule.prototypes:if_defined">
-            <xs:sequence>
-               <xs:element name="if_defined"
-                  type="automation_driven.submodule.main:if_defined_1_if_defined"
-                  id="AA62F3878-788F-4BC2-97F7-E3104F4011AB"/>
-               <xs:element name="initiate_global_using_public_lib_classname"
-                  type="automation_driven.submodule.runtime:U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C"
-                  id="A324F7D85-AEF1-419D-90EA-08C27F70AEC5"/>
-            </xs:sequence>
-         </xs:restriction>
-      </xs:complexContent>
-   </xs:complexType>
+   <xs:element name="main" type="automation_driven.submodule.appinfo:insert__code">
+      <xs:annotation>
+         <xs:appinfo>
+            
+            
+            #include &lt;Arduino.h>  //A2E49094B-C3C0-4E83-B080-F7C0FC799544
+               
+               
+               
+               #include &lt;U8g2lib.h> //AB35E2D50-E3E5-4FFB-A8C1-D33E5B5E7634
+                  #define HAS_u8g2 //A2817256C-FF92-49C8-958B-59BE01668156
+                  
+                  //#define P5__DISPLAY__DISABLE
+                  #define P5__DEBUG 0  //A20E03BC7-C9CD-45BF-9583-38AA1F73B21E
+                  #define DISABLE_u8g2log //A1A017F06-F25F-4ED6-9254-F3005F3AB6EA
+                  #define DISABLE_ASSERT //A57FE5314-CC99-41D4-86D0-AACF851332CB
+                  
+                  #define Active_ControllerID 0x20 //A6C6D1D08-A030-413F-96EE-926CF85E1FE2
+                  
+                  
+                  #define DEBUG__I2C 5 //A0456DEBC-B073-4083-A0A6-E5D294C8A241
+                  //#define DISABLE__P5__TASK__DISPLAY
+                  //#include &lt;StandardCplusplus.h>
+                     //#include &lt;vector>
+                        //#include &lt;iterator>
+                           
+                           #include "___P5_LIB/p5__struct__simpleTypes.h" //AB42E4C39-DB0C-4B38-9703-08B022138DF0
+                           #include "___P5_LIB/p5__struct.h" //A4CF27D81-D1BB-4ED5-86F5-AE56C720AF6A
+                           #include "___P5_LIB/p5__progmem.h" //A94C5F335-63FA-4FC2-B9E8-0C489DF82EB6
+                           
+                           //#include "___P5_LIB/p5__router.h" todo?
+                           #include "___CONFIG/pins.h" //A592D07C2-D0EB-4C59-806A-4119935BF18A
+                           #include "___P5_LIB/p5__pins__setup.h" //AFCE7379B-2CA8-4AE2-AB62-D1CA866813BE
+                           
+                           #include "___P5_LIB/p5__task___attr.h" //A45582F3D-C284-4541-9703-BA5FC02D21D6
+                           #include "___P5_LIB/p5__task___attr__reply_list.h" //A9347D9F9-163E-43F8-B972-F42C8115D6C3
+                           
+                           #include "___P5_LIB/p5__display.h" // A27909C34-109A-491C-960A-02CD1D2599D5
+                           
+                           //#include "___P5_LIB/p5__intro.h" //not exists yet
+                           #include "___P5_LIB/p5__pwm.h"  // AC4461630-52F8-4419-8903-EBAA5C0CBA32
+                           #include "___P5_LIB/p5__swing.h" //AC3C057DA-C596-4027-94C8-0EF10734385D
+                           #include "___P5_LIB/p5__i2c.h" //AB41EC322-A4F1-4760-B900-85E369652809
+                           
+                           //#include "___P5_LIB/p5__pins__setup.h"
+                           
+                           
+                           #include "___P5_LIB/p5__task.h" //AFB4D80A9-BB63-428E-ABF2-AF2AC414E0A5
+                           
+                           
+                           
+                           #include &lt;SPI.h> // AFC729C81-4508-415D-9270-F43459C660A6
+                              #include &lt;Wire.h> //AB89497B4-D12C-404A-A6B7-91E3101691FE
+                                 
+                                 
+                                 #include "___CONFIG/config_individual.h" //AE9DCC146-C5E0-404B-88AE-77197742693E
+                                 
+                                 #include "___CONFIG/config_defaults.h" //A141F5180-09E3-4AE6-A1DE-9D5FC32A42FA
+                                 
+                                 
+                                 
+                                 
+                                 #if defined(HAS_u8g2) //AA62F3878-788F-4BC2-97F7-E3104F4011AB
+                                 U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C u8g2(U8G2_R0); //A324F7D85-AEF1-419D-90EA-08C27F70AEC5
+                                 
+                                 //p5__display__class p5__display__class_A(u8g2,U8LOG_WIDTH, U8LOG_HEIGHT , u8log_buffer ) ;
+                                 //p5__display__class p5__display__class_A ;
+                                 
+                                 
+                                 #endif 
+                                 
+                                 
+            
+            
+         </xs:appinfo>
+      </xs:annotation>
+   </xs:element>
+   <xs:element name="setup" type="automation_driven.submodule.appinfo:insert__code">
+      <xs:annotation>
+         <xs:appinfo>
+ void setup(void) {
+    Serial.begin(115200);
+      Serial.println("SX");
+
+   Adafruit_PWMServoDriver P5__I2C__DEVICE__PWM = Adafruit_PWMServoDriver(0x40, Wire);  //todo init somehow
+             
+             
+
+
+//todo
+  //  #include "___P5_LIB/p5__task__scan.h"
+   
+
+
+  #if defined(HAS_u8g2)
+  
+     #if defined(HAS_u8g2__ROTATED)
+      u8g2.setDisplayRotation(U8G2_R2);
+      u8g2.setAutoPageClear(1);
+    # elif defined( HAS_NOT_u8g2__ROTATED)
+      #else 
+        
+    #endif
+    u8g2.begin();  
+   
+         u8g2.clearBuffer();         
+          u8g2.setFont(u8g2_font_amstrad_cpc_extended_8f//u8g2_font_tom_thumb_4x6_mf);	// set the font for the terminal window
+                     );
+         u8g2.drawStr(4,29," SX");
+         // u8g2.print ("SX");
+         u8g2.sendBuffer();	
+    
+    //  u8g2log.print("\f  TEST55 \n");	
+      Serial.print(" SB ");
+       
+       
+       
+    //   p5__display__log__beg(u8g2log);
+    //     u8g2log.print(" SB ");
+        
+       //  p5__display__log__last(u8g2log,1);
+    
+     delay(2000);
+   #endif
+
+        
+    
+             Serial.println("22");
+           
+
+           p5__pins__setup();
+             Serial.print("33");
+                 p5__config__individual__init(P5__TASK__CONFIG_A,P5__TASK__CONFIG__INDEX__CURRENT_A,P5__TASK__CONFIG__INDEX__CURRENT__EXEC_A , P5__TASK__ATTR_A,P5__TASK__ATTR__INDEX__CURRENT_A , P5__TASK__ATTR__INDEX__CURRENT__EXEC_A );
+            Serial.print("44");
+
+    }</xs:appinfo>
+      </xs:annotation>
+   </xs:element>
+   <xs:element name="main2" type="automation_driven.submodule.appinfo:insert__code">
+      <xs:annotation>
+         <xs:appinfo>
+            
+            unsigned long t = 0;
+            unsigned long t_timestamp = 0;
+            P5__LATENCY_TIMESTAMP_T P5__LATENCY_TASK_EXEC_TIME_TIMESTAMP_A = 0;
+         </xs:appinfo>
+      </xs:annotation>
+   </xs:element>
+   <xs:element name="loop" type="automation_driven.submodule.appinfo:insert__code">
+      <xs:annotation>
+         <xs:appinfo>
+            
+            void loop(void) {
+            
+            #include "___P5_LIB/p5__task__loop.h"  //controlled by p5__task__loop__exec.h
+            #include "___P5_LIB/p5__task__loop__exec.h"
+            
+            
+            
+            
+            
+            if ( t &lt; millis() ) {
+            t = millis() + 300000;			// every 15 seconds
+            // p5__display__print(u8g2,u8g2log, "\f");			// \f = form feed: clear the screen
+            
+            Serial.println(" T1 ");	
+            }
+            
+            
+            if ( t_timestamp &lt; millis() ) {
+            t_timestamp = millis() + 10000;			// every 15 seconds
+            // p5__display__print(u8g2,u8g2log, "\f");			// \f = form feed: clear the screen
+            // u8g2log.print("t2[");
+            //  u8g2log.print(millis()); //todo  type class; p5__display__print(u8g2,u8g2log,millis());
+            // u8g2log.print("]\n"); //todo class type \n
+            Serial.print(" Ti");	
+            
+            }
+            
+            
+            
+            
+            //delay(50);
+            
+            
+            
+            
+            
+            }
+            
+         </xs:appinfo>
+      </xs:annotation>
+   </xs:element>
 </xs:schema>

+ 48 - 1
SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/automation_driven.submodule.namespaces.xsd

@@ -24,7 +24,7 @@
    <xs:import
       namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.prototypes.xsd"
       schemaLocation="automation_driven.submodule.prototypes.xsd"/>
-   <xs:simpleType name="Arduino.h">
+   <!-- <xs:simpleType name="Arduino.h">
       <xs:restriction base="automation_driven.submodule.prototypes:lib__public__filename">
          <xs:length value="0"/>
       </xs:restriction>
@@ -195,4 +195,51 @@
    </xs:simpleType>
    <xs:attribute name="config_defaults.h"
       type="automation_driven.submodule.namespaces:config_defaults.h"/>
+   <xs:simpleType name="setup">
+      <xs:annotation>
+         <xs:documentation>petla glowna</xs:documentation>
+      </xs:annotation>
+      <xs:restriction base="automation_driven.submodule.prototypes:function__name__"/>
+   </xs:simpleType>
+   <xs:attribute name="setup" type="automation_driven.submodule.namespaces:setup"/>
+   <xs:simpleType name="void">
+      <xs:restriction base="automation_driven.submodule.prototypes:data__typename"/>
+   </xs:simpleType>
+   <xs:attribute name="void" type="automation_driven.submodule.namespaces:void"/>
+   <xs:attribute name="class__instance__param"
+      type="automation_driven.submodule.prototypes:class__instance__param"/>
+   <xs:simpleType name="Serial">
+      <xs:restriction base="automation_driven.submodule.prototypes:class__instance__name"/>
+   </xs:simpleType>
+   <xs:attribute name="Serial" type="automation_driven.submodule.namespaces:Serial"/>-->
+   <!--<xs:complexType name="P5__LATENCY_TASK_EXEC_DIFFS_T">
+      <xs:complexContent>
+         <xs:extension base="automation_driven.submodule.prototypes:__DRIVEN__STATIC__PARAM__"/>
+      </xs:complexContent>
+   </xs:complexType>-->
+   <!--<xs:complexType name="P5__TASK__TYPE__CLASS_T">
+      <xs:complexContent>
+         <xs:extension base="automation_driven.submodule.prototypes:__DRIVEN__STATIC__PARAM__"/>
+      </xs:complexContent>
+   </xs:complexType>-->
+   <xs:complexType name="P5__TASK__TYPE__ASSERT_T">
+      <xs:complexContent>
+         <xs:extension base="automation_driven.submodule.prototypes:__DRIVEN__STATIC__ATTRIBUTE__"/>
+      </xs:complexContent>
+   </xs:complexType>
+   <!--<xs:complexType name="P5__LIMITS_T">
+      <xs:complexContent>
+         <xs:extension base="automation_driven.submodule.prototypes:__DRIVEN__STATIC__PARAM__"/>
+      </xs:complexContent>
+   </xs:complexType>-->
+   <xs:complexType name="P5__TASK__CONFIG__NAME__INDEX_T">
+      <xs:complexContent>
+         <xs:extension base="automation_driven.submodule.prototypes:__DRIVEN__STATIC__ATTRIBUTE__"/>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:complexType name="P5__TASK__ATTR_ACCTION_T">
+      <xs:complexContent>
+         <xs:extension base="automation_driven.submodule.prototypes:__DRIVEN__STATIC__ATTRIBUTE__"/>
+      </xs:complexContent>
+   </xs:complexType>
 </xs:schema>

+ 97 - 0
SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/automation_driven.submodule.prototypes.xsd

@@ -66,10 +66,107 @@
       </xs:annotation>
       <xs:restriction base="xs:string"/>
    </xs:simpleType>
+   <xs:simpleType name="data__typename">
+      <xs:annotation>
+         <xs:documentation>todo same as typename</xs:documentation>
+      </xs:annotation>
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:simpleType name="class__instance__param">
+      <xs:annotation>
+         <xs:documentation>todo vs </xs:documentation>
+      </xs:annotation>
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:simpleType name="function__name__">
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
    <xs:complexType name="class__instance__params">
       <xs:anyAttribute namespace="##any"/>
    </xs:complexType>
    <xs:complexType name="class__name__used">
       <xs:anyAttribute namespace="##any"/>
    </xs:complexType>
+   <xs:complexType name="typename">
+      <xs:anyAttribute namespace="##any"/>
+   </xs:complexType>
+   <xs:complexType name="function__name">
+      <xs:anyAttribute namespace="##any"/>
+   </xs:complexType>
+   <xs:complexType name="function__define">
+      <xs:annotation>
+         <xs:documentation>like void setup()...</xs:documentation>
+      </xs:annotation>
+      <xs:sequence>
+         <xs:element name="typename" type="automation_driven.submodule.prototypes:typename">
+            <xs:annotation>
+               <xs:documentation>typename func return</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="function__name"
+            type="automation_driven.submodule.prototypes:function__name"/>
+         <xs:element maxOccurs="unbounded" minOccurs="0" name="variable__define"
+            type="automation_driven.submodule.prototypes:variable__define">
+            <xs:annotation>
+               <xs:documentation>func parameters define local vars</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="function__instructions" minOccurs="0" maxOccurs="1"
+            type="automation_driven.submodule.prototypes:function__instructions">
+            <xs:annotation>
+               <xs:documentation>instrukcja - todo rozbud - w main elementy definiowane etc</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:sequence>
+   </xs:complexType>
+   <xs:complexType name="variable">
+      <xs:anyAttribute namespace="##any"/>
+   </xs:complexType>
+   <xs:complexType name="typename__pointer">
+      <xs:annotation>
+         <xs:documentation>pointer na arrayu</xs:documentation>
+      </xs:annotation>
+      <xs:anyAttribute namespace="##any"/>
+   </xs:complexType>
+   <xs:complexType name="variable__address">
+      <xs:annotation>
+         <xs:documentation>uzywane jako  dla nie arrraya</xs:documentation>
+      </xs:annotation>
+      <xs:anyAttribute namespace="##any"/>
+   </xs:complexType>
+   <xs:complexType name="variable__define">
+      <xs:annotation>
+         <xs:documentation>also used in func params</xs:documentation>
+      </xs:annotation>
+      <xs:sequence>
+         <xs:element name="typename" type="automation_driven.submodule.prototypes:typename"/>
+         <xs:element minOccurs="0" name="variable"
+            type="automation_driven.submodule.prototypes:variable"/>
+      </xs:sequence>
+   </xs:complexType>
+   <xs:complexType name="function__instruction">
+      <xs:anyAttribute namespace="##any"/>
+   </xs:complexType>
+   <xs:complexType name="function__instructions">
+      <xs:sequence>
+         <xs:any namespace="##any">
+            <xs:annotation>
+               <xs:documentation>should be some namespace</xs:documentation>
+            </xs:annotation>
+         </xs:any>
+      </xs:sequence>
+   </xs:complexType>
+   <xs:complexType name="__DRIVEN__STATIC__PARAM__">
+      <xs:annotation>
+         <xs:documentation>cos co jest w struct, nie jest na pewno atrybutem do assert</xs:documentation>
+      </xs:annotation>
+   </xs:complexType>
+   <xs:complexType name="__DRIVEN__STATIC__ATTRIBUTE__">
+      <xs:annotation>
+         <xs:documentation>cos w struct, co na pewno jest do numerowania od zera globalnie, jest attr do assert</xs:documentation>
+      </xs:annotation>
+      <xs:simpleContent>
+         <xs:extension base="xs:int"> </xs:extension>
+      </xs:simpleContent>
+   </xs:complexType>
 </xs:schema>

+ 2 - 2
SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/automation_driven.submodule.runtime.xsd

@@ -28,7 +28,7 @@
    <xs:import
       namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.namespaces.xsd"
       schemaLocation="automation_driven.submodule.namespaces.xsd"/>
-   <xs:complexType name="U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C__class__name__used">
+   <!--<xs:complexType name="U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C__class__name__used">
       <xs:complexContent>
          <xs:restriction base="automation_driven.submodule.prototypes:class__name__used">
             <xs:attribute
@@ -67,5 +67,5 @@
       </xs:complexContent>
    </xs:complexType>
    <xs:element name="U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C"
-      type="automation_driven.submodule.runtime:U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C"/>
+      type="automation_driven.submodule.runtime:U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C"/>-->
 </xs:schema>

File diff ditekan karena terlalu besar
+ 390 - 412
SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/automation_driven.submodule.struct.read.xsd


+ 54 - 3
SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/automation_driven.submodule.struct.read.xsl

@@ -5,6 +5,8 @@
     xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
     xmlns:automation_driven="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.xsd"
     xmlns:automation_driven.submodule.struct="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.struct.xsd"
+    xmlns:automation_driven.submodule.namespaces="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.namespaces.xsd"
+    xmlns:automation_driven.submodule.prototypes="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.prototypes.xsd"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     
     exclude-result-prefixes="automation_driven"
@@ -12,6 +14,9 @@
     
     <xsl:output indent="yes"/>
     <xsl:strip-space elements="*"/>
+    
+    <xsl:include href="automation_driven.submodule.struct.read.namespaces.xsl"/>
+    
     <xsl:param name="automation_driven:basedir"/>
     <xsl:param name="automation_driven.submodule.struct:h" required="yes"/>
     
@@ -19,6 +24,38 @@
     
     <xsl:param name="vPrefix" select="'automation_driven.submodule.struct'"/>
     
+    
+    
+    
+    
+    
+    
+    <xsl:template name="automation_driven.submodule.struct:element">
+        <xsl:param name="name"/>
+        <xsl:param name="type"/>
+        <xsl:param name="prefix"/>
+        <xsl:param name="fixed"/>
+        <xsl:param name="debug"/>
+                
+        <xs:element  name="{normalize-space($name)}" 
+            type="{$vPrefix}:{normalize-space($type)}"
+            fixed="{normalize-space($fixed)}"
+            >
+            <xsl:attribute name="type">
+                <xsl:value-of select="automation_driven.submodule.namespaces:base__override($type,$prefix)"/>
+            </xsl:attribute>
+            <!--<xsl:attribute name="name0" select="normalize-space(regex-group(0))"/>-->
+            <xs:annotation>
+                <xs:documentation><xsl:value-of select="$debug"/> 
+                    0: <xsl:value-of select="normalize-space(regex-group(0))"/>
+                    1: <xsl:value-of select="normalize-space(regex-group(1))"/>
+                    2: <xsl:value-of select="normalize-space(regex-group(2))"/>
+                    3: <xsl:value-of select="normalize-space(regex-group(3))"/>
+                </xs:documentation>
+            </xs:annotation>
+        </xs:element>
+    </xsl:template>
+    
     <xsl:function name="automation_driven.submodule.struct:typeFix">
         <xsl:param name="type"/>
         <xsl:choose>
@@ -84,7 +121,13 @@
             <xsl:attribute name="targetNamespace">http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.struct.xsd</xsl:attribute>
             
             
+            <xs:import
+                namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.namespaces.xsd"
+                schemaLocation="automation_driven.submodule.namespaces.xsd"/><!-- $automation_driven.submodule.appinfo:xsd -->
             
+            <xs:import
+                namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.submodule.prototypes.xsd"
+                schemaLocation="automation_driven.submodule.prototypes.xsd"/>
             
             <xs:complexType mixed="false" name="String">
                 <xs:simpleContent>
@@ -302,11 +345,19 @@
                             </xs:element>
                         </xsl:when>
                         <xsl:when test="string-length(normalize-space(regex-group(1))) &gt; 0">
-                            <xs:element  name="{normalize-space(regex-group(2))}" 
+                            
+                            <xsl:call-template name="automation_driven.submodule.struct:element">
+                                <xsl:with-param name="name"  select="regex-group(2)"/>
+                                <xsl:with-param name="type" select="regex-group(1)"/>
+                                <xsl:with-param name="prefix" select="$vPrefix"/>
+                                <xsl:with-param name="fixed" select="regex-group(3)"/>
+                                <xsl:with-param name="debug">#283</xsl:with-param>
+                            </xsl:call-template>
+                            <!--<xs:element  name="{normalize-space(regex-group(2))}" 
                                 type="{$vPrefix}:{normalize-space(regex-group(1))}"
                                 fixed="{normalize-space(regex-group(3))}"
                                 >
-                                <!--<xsl:attribute name="name0" select="normalize-space(regex-group(0))"/>-->
+                                <!-\-<xsl:attribute name="name0" select="normalize-space(regex-group(0))"/>-\->
                                 <xs:annotation>
                                     <xs:documentation>#283 
                                        0: <xsl:value-of select="normalize-space(regex-group(0))"/>
@@ -315,7 +366,7 @@
                                         3: <xsl:value-of select="normalize-space(regex-group(3))"/>
                                     </xs:documentation>
                                 </xs:annotation>
-                            </xs:element>
+                            </xs:element>-->
                         </xsl:when>
                         <xsl:otherwise>
                             <xs:annotation>

+ 2 - 4
SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/testing_pwm_amp.ino

@@ -65,7 +65,6 @@ U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C u8g2(U8G2_R0); //A324F7D85-AEF1-419D-90EA
 
 #endif 
 
-    P5__STATUS_T P5__STATUS_A = P5__STATUS__INIT;
 
 
  void setup(void) {
@@ -114,12 +113,11 @@ U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C u8g2(U8G2_R0); //A324F7D85-AEF1-419D-90EA
    #endif
 
         
-     // p5__pins__setup();
-     //  p5__router()
+    
              Serial.println("22");
            
 
-           p5__pins__setup( P5__STATUS_A);
+           p5__pins__setup();
              Serial.print("33");
                  p5__config__individual__init(P5__TASK__CONFIG_A,P5__TASK__CONFIG__INDEX__CURRENT_A,P5__TASK__CONFIG__INDEX__CURRENT__EXEC_A , P5__TASK__ATTR_A,P5__TASK__ATTR__INDEX__CURRENT_A , P5__TASK__ATTR__INDEX__CURRENT__EXEC_A );
             Serial.print("44");

+ 5 - 0
SE/stuff/P5_Automation_can-dev/P5_Automation_can-dev.xpr

@@ -9,6 +9,10 @@
                         <String>enable.project.master.files.support</String>
                         <Boolean>true</Boolean>
                     </entry>
+                    <entry>
+                        <String>keys.context</String>
+                        <String>file:/Users/a.binder/procesy5-dita-templates-druki/CONCEPTS/concept.krefft_sterowniki_chassis_p5driven_2020/concept.krefft_sterowniki_chassis_p5driven_2020.ditamap</String>
+                    </entry>
                 </serializableOrderedMap>
             </serialized>
         </options>
@@ -39,6 +43,7 @@
         <folder path="../P5_Automation_can-dev-res/"/>
         <folder path="."/>
         <folder path="../P5_Automation_can-single/"/>
+        <folder path="../../../../../procesy5-dita-templates-druki/"/>
         <folder path="../../../../../procesy5-dita-templates-druki/Imaginaerum/"/>
     </projectTree>
 </project>

+ 1 - 0
doc/SE/PLIKI/BI_audit_POWIAZANIA/.tasks/.tasks.ditamap

@@ -134,4 +134,5 @@
             href="relations-136_000008.xml"
             props=" imported  xml "/>
     </topicref>
+    <topicref href="w_czanie_i_wylaczanie_przetwarzania_zdefiniowane_jest_w_bash_sync_perms.dita"/>
 </map>

+ 8 - 0
doc/SE/PLIKI/BI_audit_POWIAZANIA/.tasks/w_czanie_i_wylaczanie_przetwarzania_zdefiniowane_jest_w_bash_sync_perms.dita

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
+<topic id="w_czanie_i_wylaczanie_przetwarzania_zdefiniowane_jest_w_bash_sync_perms">
+    <title>Włączanie i wylaczanie przetwarzania zdefiniowane jest w Bash Sync Perms</title>
+    <body>
+        <p></p>
+    </body>
+</topic>

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini