cancel
Showing results for 
Search instead for 
Did you mean: 

Smart Bluetooth

wewu_1392881
New Contributor II

i want to put constant parameter to special address just like in IAR development IDE, i can use #pragma xxxxx @Location

0 Likes
1 Solution
BoonT_56
Employee

I refer you to a structure in hello_sensor app:

#pragma pack(1)

//host information for NVRAM

typedef PACKED struct

{

    // BD address of the bonded host

    BD_ADDR  bdaddr;

    // Current value of the client configuration descriptor

    UINT16  characteristic_client_configuration;

    // sensor configuration. number of times to blink when button is pushed.

    UINT8   number_of_blinks;

}  HOSTINFO;

View solution in original post

1 Reply
BoonT_56
Employee

I refer you to a structure in hello_sensor app:

#pragma pack(1)

//host information for NVRAM

typedef PACKED struct

{

    // BD address of the bonded host

    BD_ADDR  bdaddr;

    // Current value of the client configuration descriptor

    UINT16  characteristic_client_configuration;

    // sensor configuration. number of times to blink when button is pushed.

    UINT8   number_of_blinks;

}  HOSTINFO;

View solution in original post