Skip to content

Commit

Permalink
Fix compilation flags
Browse files Browse the repository at this point in the history
  • Loading branch information
nurikk committed Aug 12, 2020
1 parent f4e39dc commit e7dc623
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions CC2530DB/GenericApp.ewp
Original file line number Diff line number Diff line change
Expand Up @@ -2588,6 +2588,7 @@
<option>
<name>CCDefines</name>
<state>HAL_BOARD_FREEPAD</state>
<state>BDB_REPORTING</state>
<state>FREEPAD_ENABLE_TL</state>
</option>
<option>
Expand Down
7 changes: 6 additions & 1 deletion Source/preinclude.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,13 @@
#error "Board type must be defined"
#endif

#define INT_HEAP_LEN 3000
#if defined(FREEPAD_ENABLE_TL) && BDB_REPORTING
#define INT_HEAP_LEN (3000 - 0x38)
#endif

#ifndef INT_HEAP_LEN
#define INT_HEAP_LEN 3000
#endif
#define FREEPAD_BUTTONS_COUNT 20

#if defined(HAL_BOARD_FREEPAD)
Expand Down
6 changes: 4 additions & 2 deletions Source/zcl_freepadapp_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ const uint16 zclFreePadApp_clusterRevision_all = 0x0001;
// Basic Cluster
const uint8 zclFreePadApp_HWRevision = FREEPADAPP_HWVERSION;
const uint8 zclFreePadApp_ZCLVersion = FREEPADAPP_ZCLVERSION;
const uint8 zclFreePadApp_ApplicationVersion = 3;

#if BDB_REPORTING
zclFreePadApp_ApplicationVersion = 2;
const uint8 zclFreePadApp_ApplicationVersion = 2;
#else
const uint8 zclFreePadApp_ApplicationVersion = 3;
#endif
const uint8 zclFreePadApp_StackVersion = 4;

Expand Down

0 comments on commit e7dc623

Please sign in to comment.