examples/AT91/Master/ObjDict.od
author Robert Lehmann <robert.lehmann@sitec-systems.de>
Tue, 28 Jul 2015 16:36:55 +0200
changeset 793 72e9e1064432
parent 521 731bbe1b67b4
permissions -rw-r--r--
timers_unix: Fix termination problem of WaitReceiveTaskEnd

The function pthread_kill sends the Signal thread and to the own process.
If you use this construct than the application which calls uses the
canfestival api will terminate at the call of canClose. To avoid that
use pthread_cancel instead of pthread_kill. To use the pthread_cancel call
you need to set the cancel ability in the thread function. That means
you need to call pthread_setcancelstate and pthread_setcanceltype.
For the termination of the thread at any time it is important to set the
cancel type to PTHREAD_CANCEL_ASYNCHRONOUS.
521
peter
parents:
diff changeset
     1
<?xml version="1.0"?>
peter
parents:
diff changeset
     2
<!DOCTYPE PyObject SYSTEM "PyObjects.dtd">
peter
parents:
diff changeset
     3
<PyObject module="node" class="Node" id="31701392">
peter
parents:
diff changeset
     4
<attr name="Profile" type="dict" id="31656672" >
peter
parents:
diff changeset
     5
</attr>
peter
parents:
diff changeset
     6
<attr name="Name" type="string">ObjDict</attr>
peter
parents:
diff changeset
     7
<attr name="Dictionary" type="dict" id="31716240" >
peter
parents:
diff changeset
     8
  <entry>
peter
parents:
diff changeset
     9
    <key type="numeric" value="4096" />
peter
parents:
diff changeset
    10
    <val type="numeric" value="197009" />
peter
parents:
diff changeset
    11
  </entry>
peter
parents:
diff changeset
    12
  <entry>
peter
parents:
diff changeset
    13
    <key type="numeric" value="4097" />
peter
parents:
diff changeset
    14
    <val type="numeric" value="0" />
peter
parents:
diff changeset
    15
  </entry>
peter
parents:
diff changeset
    16
  <entry>
peter
parents:
diff changeset
    17
    <key type="numeric" value="8193" />
peter
parents:
diff changeset
    18
    <val type="numeric" value="0" />
peter
parents:
diff changeset
    19
  </entry>
peter
parents:
diff changeset
    20
  <entry>
peter
parents:
diff changeset
    21
    <key type="numeric" value="4101" />
peter
parents:
diff changeset
    22
    <val type="numeric" value="1073741952" />
peter
parents:
diff changeset
    23
  </entry>
peter
parents:
diff changeset
    24
  <entry>
peter
parents:
diff changeset
    25
    <key type="numeric" value="8192" />
peter
parents:
diff changeset
    26
    <val type="numeric" value="0" />
peter
parents:
diff changeset
    27
  </entry>
peter
parents:
diff changeset
    28
  <entry>
peter
parents:
diff changeset
    29
    <key type="numeric" value="4102" />
peter
parents:
diff changeset
    30
    <val type="numeric" value="1000000" />
peter
parents:
diff changeset
    31
  </entry>
peter
parents:
diff changeset
    32
  <entry>
peter
parents:
diff changeset
    33
    <key type="numeric" value="8449" />
peter
parents:
diff changeset
    34
    <val type="numeric" value="0" />
peter
parents:
diff changeset
    35
  </entry>
peter
parents:
diff changeset
    36
  <entry>
peter
parents:
diff changeset
    37
    <key type="numeric" value="4608" />
peter
parents:
diff changeset
    38
    <val type="list" id="31720872" >
peter
parents:
diff changeset
    39
      <item type="string" value="&quot;$NODEID+0x600&quot;" />
peter
parents:
diff changeset
    40
      <item type="string" value="&quot;$NODEID+0x580&quot;" />
peter
parents:
diff changeset
    41
    </val>
peter
parents:
diff changeset
    42
  </entry>
peter
parents:
diff changeset
    43
  <entry>
peter
parents:
diff changeset
    44
    <key type="numeric" value="8448" />
peter
parents:
diff changeset
    45
    <val type="numeric" value="0" />
peter
parents:
diff changeset
    46
  </entry>
peter
parents:
diff changeset
    47
  <entry>
peter
parents:
diff changeset
    48
    <key type="numeric" value="4736" />
peter
parents:
diff changeset
    49
    <val type="list" id="31721312" >
peter
parents:
diff changeset
    50
      <item type="numeric" value="1600" />
peter
parents:
diff changeset
    51
      <item type="numeric" value="1472" />
peter
parents:
diff changeset
    52
      <item type="numeric" value="64" />
peter
parents:
diff changeset
    53
    </val>
peter
parents:
diff changeset
    54
  </entry>
peter
parents:
diff changeset
    55
  <entry>
peter
parents:
diff changeset
    56
    <key type="numeric" value="5120" />
peter
parents:
diff changeset
    57
    <val type="list" id="31721192" >
peter
parents:
diff changeset
    58
      <item type="numeric" value="385" />
peter
parents:
diff changeset
    59
      <item type="numeric" value="1" />
peter
parents:
diff changeset
    60
      <item type="numeric" value="0" />
peter
parents:
diff changeset
    61
      <item type="numeric" value="0" />
peter
parents:
diff changeset
    62
      <item type="numeric" value="0" />
peter
parents:
diff changeset
    63
    </val>
peter
parents:
diff changeset
    64
  </entry>
peter
parents:
diff changeset
    65
  <entry>
peter
parents:
diff changeset
    66
    <key type="numeric" value="5632" />
peter
parents:
diff changeset
    67
    <val type="list" id="31721272" >
peter
parents:
diff changeset
    68
      <item type="numeric" value="536870920" />
peter
parents:
diff changeset
    69
    </val>
peter
parents:
diff changeset
    70
  </entry>
peter
parents:
diff changeset
    71
  <entry>
peter
parents:
diff changeset
    72
    <key type="numeric" value="4120" />
peter
parents:
diff changeset
    73
    <val type="list" id="31721352" >
peter
parents:
diff changeset
    74
      <item type="numeric" value="0" />
peter
parents:
diff changeset
    75
      <item type="numeric" value="0" />
peter
parents:
diff changeset
    76
      <item type="numeric" value="0" />
peter
parents:
diff changeset
    77
      <item type="numeric" value="0" />
peter
parents:
diff changeset
    78
    </val>
peter
parents:
diff changeset
    79
  </entry>
peter
parents:
diff changeset
    80
  <entry>
peter
parents:
diff changeset
    81
    <key type="numeric" value="6144" />
peter
parents:
diff changeset
    82
    <val type="list" id="31635936" >
peter
parents:
diff changeset
    83
      <item type="numeric" value="513" />
peter
parents:
diff changeset
    84
      <item type="numeric" value="255" />
peter
parents:
diff changeset
    85
      <item type="numeric" value="0" />
peter
parents:
diff changeset
    86
      <item type="numeric" value="0" />
peter
parents:
diff changeset
    87
      <item type="numeric" value="0" />
peter
parents:
diff changeset
    88
    </val>
peter
parents:
diff changeset
    89
  </entry>
peter
parents:
diff changeset
    90
  <entry>
peter
parents:
diff changeset
    91
    <key type="numeric" value="4118" />
peter
parents:
diff changeset
    92
    <val type="list" id="31721512" >
peter
parents:
diff changeset
    93
      <item type="numeric" value="4195804" />
peter
parents:
diff changeset
    94
    </val>
peter
parents:
diff changeset
    95
  </entry>
peter
parents:
diff changeset
    96
  <entry>
peter
parents:
diff changeset
    97
    <key type="numeric" value="6656" />
peter
parents:
diff changeset
    98
    <val type="list" id="31721472" >
peter
parents:
diff changeset
    99
      <item type="numeric" value="553648136" />
peter
parents:
diff changeset
   100
    </val>
peter
parents:
diff changeset
   101
  </entry>
peter
parents:
diff changeset
   102
</attr>
peter
parents:
diff changeset
   103
<attr name="SpecificMenu" type="list" id="31721552" >
peter
parents:
diff changeset
   104
</attr>
peter
parents:
diff changeset
   105
<attr name="DefaultStringSize" type="numeric" value="10" />
peter
parents:
diff changeset
   106
<attr name="ParamsDictionary" type="dict" id="31712000" >
peter
parents:
diff changeset
   107
</attr>
peter
parents:
diff changeset
   108
<attr name="UserMapping" type="dict" id="31662992" >
peter
parents:
diff changeset
   109
  <entry>
peter
parents:
diff changeset
   110
    <key type="numeric" value="8192" />
peter
parents:
diff changeset
   111
    <val type="dict" id="31652864" >
peter
parents:
diff changeset
   112
      <entry>
peter
parents:
diff changeset
   113
        <key type="string" value="need" />
peter
parents:
diff changeset
   114
        <val type="False" value="" />
peter
parents:
diff changeset
   115
      </entry>
peter
parents:
diff changeset
   116
      <entry>
peter
parents:
diff changeset
   117
        <key type="string" value="values" />
peter
parents:
diff changeset
   118
        <val type="list" id="31721712" >
peter
parents:
diff changeset
   119
          <item type="dict" id="31651136" >
peter
parents:
diff changeset
   120
            <entry>
peter
parents:
diff changeset
   121
              <key type="string" value="access" />
peter
parents:
diff changeset
   122
              <val type="string" value="rw" />
peter
parents:
diff changeset
   123
            </entry>
peter
parents:
diff changeset
   124
            <entry>
peter
parents:
diff changeset
   125
              <key type="string" value="pdo" />
peter
parents:
diff changeset
   126
              <val type="True" value="" />
peter
parents:
diff changeset
   127
            </entry>
peter
parents:
diff changeset
   128
            <entry>
peter
parents:
diff changeset
   129
              <key type="string" value="type" />
peter
parents:
diff changeset
   130
              <val type="numeric" value="5" />
peter
parents:
diff changeset
   131
            </entry>
peter
parents:
diff changeset
   132
            <entry>
peter
parents:
diff changeset
   133
              <key type="string" value="name" />
peter
parents:
diff changeset
   134
              <val type="string">DI1</val>
peter
parents:
diff changeset
   135
            </entry>
peter
parents:
diff changeset
   136
          </item>
peter
parents:
diff changeset
   137
        </val>
peter
parents:
diff changeset
   138
      </entry>
peter
parents:
diff changeset
   139
      <entry>
peter
parents:
diff changeset
   140
        <key type="string" value="name" />
peter
parents:
diff changeset
   141
        <val type="string">DI1</val>
peter
parents:
diff changeset
   142
      </entry>
peter
parents:
diff changeset
   143
      <entry>
peter
parents:
diff changeset
   144
        <key type="string" value="struct" />
peter
parents:
diff changeset
   145
        <val type="numeric" value="1" />
peter
parents:
diff changeset
   146
      </entry>
peter
parents:
diff changeset
   147
    </val>
peter
parents:
diff changeset
   148
  </entry>
peter
parents:
diff changeset
   149
  <entry>
peter
parents:
diff changeset
   150
    <key type="numeric" value="8193" />
peter
parents:
diff changeset
   151
    <val type="dict" id="31653296" >
peter
parents:
diff changeset
   152
      <entry>
peter
parents:
diff changeset
   153
        <key type="string" value="need" />
peter
parents:
diff changeset
   154
        <val type="False" value="" />
peter
parents:
diff changeset
   155
      </entry>
peter
parents:
diff changeset
   156
      <entry>
peter
parents:
diff changeset
   157
        <key type="string" value="values" />
peter
parents:
diff changeset
   158
        <val type="list" id="31721752" >
peter
parents:
diff changeset
   159
          <item type="dict" id="30016400" >
peter
parents:
diff changeset
   160
            <entry>
peter
parents:
diff changeset
   161
              <key type="string" value="access" />
peter
parents:
diff changeset
   162
              <val type="string" value="rw" />
peter
parents:
diff changeset
   163
            </entry>
peter
parents:
diff changeset
   164
            <entry>
peter
parents:
diff changeset
   165
              <key type="string" value="pdo" />
peter
parents:
diff changeset
   166
              <val type="True" value="" />
peter
parents:
diff changeset
   167
            </entry>
peter
parents:
diff changeset
   168
            <entry>
peter
parents:
diff changeset
   169
              <key type="string" value="type" />
peter
parents:
diff changeset
   170
              <val type="numeric" value="5" />
peter
parents:
diff changeset
   171
            </entry>
peter
parents:
diff changeset
   172
            <entry>
peter
parents:
diff changeset
   173
              <key type="string" value="name" />
peter
parents:
diff changeset
   174
              <val type="string">DI2</val>
peter
parents:
diff changeset
   175
            </entry>
peter
parents:
diff changeset
   176
          </item>
peter
parents:
diff changeset
   177
        </val>
peter
parents:
diff changeset
   178
      </entry>
peter
parents:
diff changeset
   179
      <entry>
peter
parents:
diff changeset
   180
        <key type="string" value="name" />
peter
parents:
diff changeset
   181
        <val type="string">DI2</val>
peter
parents:
diff changeset
   182
      </entry>
peter
parents:
diff changeset
   183
      <entry>
peter
parents:
diff changeset
   184
        <key type="string" value="struct" />
peter
parents:
diff changeset
   185
        <val type="numeric" value="1" />
peter
parents:
diff changeset
   186
      </entry>
peter
parents:
diff changeset
   187
    </val>
peter
parents:
diff changeset
   188
  </entry>
peter
parents:
diff changeset
   189
  <entry>
peter
parents:
diff changeset
   190
    <key type="numeric" value="8448" />
peter
parents:
diff changeset
   191
    <val type="dict" id="31662128" >
peter
parents:
diff changeset
   192
      <entry>
peter
parents:
diff changeset
   193
        <key type="string" value="need" />
peter
parents:
diff changeset
   194
        <val type="False" value="" />
peter
parents:
diff changeset
   195
      </entry>
peter
parents:
diff changeset
   196
      <entry>
peter
parents:
diff changeset
   197
        <key type="string" value="values" />
peter
parents:
diff changeset
   198
        <val type="list" id="31721792" >
peter
parents:
diff changeset
   199
          <item type="dict" id="31652576" >
peter
parents:
diff changeset
   200
            <entry>
peter
parents:
diff changeset
   201
              <key type="string" value="access" />
peter
parents:
diff changeset
   202
              <val type="string" value="rw" />
peter
parents:
diff changeset
   203
            </entry>
peter
parents:
diff changeset
   204
            <entry>
peter
parents:
diff changeset
   205
              <key type="string" value="pdo" />
peter
parents:
diff changeset
   206
              <val type="True" value="" />
peter
parents:
diff changeset
   207
            </entry>
peter
parents:
diff changeset
   208
            <entry>
peter
parents:
diff changeset
   209
              <key type="string" value="type" />
peter
parents:
diff changeset
   210
              <val type="numeric" value="5" />
peter
parents:
diff changeset
   211
            </entry>
peter
parents:
diff changeset
   212
            <entry>
peter
parents:
diff changeset
   213
              <key type="string" value="name" />
peter
parents:
diff changeset
   214
              <val type="string">DO1</val>
peter
parents:
diff changeset
   215
            </entry>
peter
parents:
diff changeset
   216
          </item>
peter
parents:
diff changeset
   217
        </val>
peter
parents:
diff changeset
   218
      </entry>
peter
parents:
diff changeset
   219
      <entry>
peter
parents:
diff changeset
   220
        <key type="string" value="name" />
peter
parents:
diff changeset
   221
        <val type="string">DO1</val>
peter
parents:
diff changeset
   222
      </entry>
peter
parents:
diff changeset
   223
      <entry>
peter
parents:
diff changeset
   224
        <key type="string" value="struct" />
peter
parents:
diff changeset
   225
        <val type="numeric" value="1" />
peter
parents:
diff changeset
   226
      </entry>
peter
parents:
diff changeset
   227
    </val>
peter
parents:
diff changeset
   228
  </entry>
peter
parents:
diff changeset
   229
  <entry>
peter
parents:
diff changeset
   230
    <key type="numeric" value="8449" />
peter
parents:
diff changeset
   231
    <val type="dict" id="31650704" >
peter
parents:
diff changeset
   232
      <entry>
peter
parents:
diff changeset
   233
        <key type="string" value="need" />
peter
parents:
diff changeset
   234
        <val type="False" value="" />
peter
parents:
diff changeset
   235
      </entry>
peter
parents:
diff changeset
   236
      <entry>
peter
parents:
diff changeset
   237
        <key type="string" value="values" />
peter
parents:
diff changeset
   238
        <val type="list" id="31721832" >
peter
parents:
diff changeset
   239
          <item type="dict" id="31652000" >
peter
parents:
diff changeset
   240
            <entry>
peter
parents:
diff changeset
   241
              <key type="string" value="access" />
peter
parents:
diff changeset
   242
              <val type="string" value="rw" />
peter
parents:
diff changeset
   243
            </entry>
peter
parents:
diff changeset
   244
            <entry>
peter
parents:
diff changeset
   245
              <key type="string" value="pdo" />
peter
parents:
diff changeset
   246
              <val type="True" value="" />
peter
parents:
diff changeset
   247
            </entry>
peter
parents:
diff changeset
   248
            <entry>
peter
parents:
diff changeset
   249
              <key type="string" value="type" />
peter
parents:
diff changeset
   250
              <val type="numeric" value="5" />
peter
parents:
diff changeset
   251
            </entry>
peter
parents:
diff changeset
   252
            <entry>
peter
parents:
diff changeset
   253
              <key type="string" value="name" />
peter
parents:
diff changeset
   254
              <val type="string">DO2</val>
peter
parents:
diff changeset
   255
            </entry>
peter
parents:
diff changeset
   256
          </item>
peter
parents:
diff changeset
   257
        </val>
peter
parents:
diff changeset
   258
      </entry>
peter
parents:
diff changeset
   259
      <entry>
peter
parents:
diff changeset
   260
        <key type="string" value="name" />
peter
parents:
diff changeset
   261
        <val type="string">DO2</val>
peter
parents:
diff changeset
   262
      </entry>
peter
parents:
diff changeset
   263
      <entry>
peter
parents:
diff changeset
   264
        <key type="string" value="struct" />
peter
parents:
diff changeset
   265
        <val type="numeric" value="1" />
peter
parents:
diff changeset
   266
      </entry>
peter
parents:
diff changeset
   267
    </val>
peter
parents:
diff changeset
   268
  </entry>
peter
parents:
diff changeset
   269
</attr>
peter
parents:
diff changeset
   270
<attr name="DS302" type="dict" id="31652432" >
peter
parents:
diff changeset
   271
</attr>
peter
parents:
diff changeset
   272
<attr name="ProfileName" type="string" value="DS-301" />
peter
parents:
diff changeset
   273
<attr name="Type" type="string">master</attr>
peter
parents:
diff changeset
   274
<attr name="ID" type="numeric" value="0" />
peter
parents:
diff changeset
   275
<attr name="Description" type="string">Test Master AT91</attr>
peter
parents:
diff changeset
   276
</PyObject>