Skip to content

Commit

Permalink
Add attribute-size.h to src/app/zap-templates/chip-templates.json (#3810
Browse files Browse the repository at this point in the history
)
  • Loading branch information
vivien-apple authored Nov 13, 2020
1 parent aba2743 commit 9fd0123
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
11 changes: 11 additions & 0 deletions src/app/zap-templates/attribute-size.zapt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{chip_header}}

// Prevent multiple inclusion
#pragma once

// ZCL attribute sizes
{{#zcl_atomics}}
{{#if size}}
{{ident}}ZCL_{{asDelimitedMacro name}}_ATTRIBUTE_TYPE, {{size}}, \
{{/if}}
{{/zcl_atomics}}
9 changes: 0 additions & 9 deletions src/app/zap-templates/attribute-type.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,3 @@ enum {
{{ident}}ZCL_{{asDelimitedMacro name}}_ATTRIBUTE_TYPE = {{asHex atomicId 2}}, // {{description}}
{{/zcl_atomics}}
};

// ZCL attribute sizes
#define ZAP_GENERATED_ATTRIBUTE_SIZES { \
{{#zcl_atomics}}
{{#if size}}
{{ident}}ZCL_{{asDelimitedMacro name}}_ATTRIBUTE_TYPE, {{size}}, \
{{/if}}
{{/zcl_atomics}}
}
5 changes: 5 additions & 0 deletions src/app/zap-templates/chip-templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
"name": "ZCL attribute-type header",
"output": "attribute-type.h"
},
{
"path": "attribute-size.zapt",
"name": "ZCL attribute-size header",
"output": "attribute-size.h"
},
{
"path": "call-command-handler-src.zapt",
"name": "ZCL call-command-handler source",
Expand Down

0 comments on commit 9fd0123

Please sign in to comment.