Advertising + PIN Configuration

2 posts / 0 new
Last post
jorge
Offline
Last seen:4 years 1 month ago
Joined:2016-01-25 14:20
Advertising + PIN Configuration

Hi.

im new at this, and im trying to set the pin GPIO_PIN_6 HIGH when the device is advertising, and put it on LOW when its connected to any device, im using this functions to check the events app_adv_start and app_connection_func, gives me this warnings, i did configure the pin as output.

..\..\..\src\plf\refip\src\arch\main\ble\arch_main.c(676): warning: #236-D: controlling expression is constant
..\..\..\src\plf\refip\src\arch\main\ble\arch_main.c(683): warning: #236-D: controlling expression is constant

thnx for your comments.

Device:
MT_dialog
Offline
Last seen:2 weeks 19 hours ago
Staff
Joined:2015-06-08 11:34
Hi jorge,

Hi jorge,

Can you please give me some more info regarding the example you are based on in order to check if i can replicate the warnings you ve got ? I suppose that the only changes that you 've applied on the example is to configure the LED as output and to enable and disable the pins with the below instructions:

GPIO_SetActive (GPIO_PORT_0 GPIO_PIN_6)应用程序_adv_start()

GPIO_SetInactive(GPIO_PORT_0, GPIO_PIN_6); in the app_connection_func();

Also since those are warning i suppose that dont affect your systems behaviour.

Thanks MT_dialog