mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
nrf8001 examples: minor changes to avoid clang build failures
Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
parent
27dc4a5742
commit
cdb697fd7b
@ -29,6 +29,7 @@
|
|||||||
#include <lib_aci.h>
|
#include <lib_aci.h>
|
||||||
#include <aci_setup.h>
|
#include <aci_setup.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#include <assert.h>
|
||||||
|
|
||||||
#ifdef SERVICES_PIPE_TYPE_MAPPING_CONTENT
|
#ifdef SERVICES_PIPE_TYPE_MAPPING_CONTENT
|
||||||
static services_pipe_type_mapping_t
|
static services_pipe_type_mapping_t
|
||||||
@ -77,11 +78,11 @@ init_aci_setup () {
|
|||||||
/**
|
/**
|
||||||
* Point ACI data structures to the the setup data that the nRFgo studio generated for the nRF8001
|
* Point ACI data structures to the the setup data that the nRFgo studio generated for the nRF8001
|
||||||
*/
|
*/
|
||||||
if (NULL != services_pipe_type_mapping) {
|
// abort if this is NULL
|
||||||
aci_state.aci_setup_info.services_pipe_type_mapping = &services_pipe_type_mapping[0];
|
assert(services_pipe_type_mapping != NULL);
|
||||||
} else {
|
|
||||||
aci_state.aci_setup_info.services_pipe_type_mapping = NULL;
|
aci_state.aci_setup_info.services_pipe_type_mapping =
|
||||||
}
|
&services_pipe_type_mapping[0];
|
||||||
|
|
||||||
aci_state.aci_setup_info.number_of_pipes = NUMBER_OF_PIPES;
|
aci_state.aci_setup_info.number_of_pipes = NUMBER_OF_PIPES;
|
||||||
aci_state.aci_setup_info.setup_msgs = setup_msgs;
|
aci_state.aci_setup_info.setup_msgs = setup_msgs;
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
#include <lib_aci.h>
|
#include <lib_aci.h>
|
||||||
#include <aci_setup.h>
|
#include <aci_setup.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#include <assert.h>
|
||||||
#include "uart_over_ble.h"
|
#include "uart_over_ble.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -95,11 +96,11 @@ init_aci_setup () {
|
|||||||
/**
|
/**
|
||||||
* Point ACI data structures to the the setup data that the nRFgo studio generated for the nRF8001
|
* Point ACI data structures to the the setup data that the nRFgo studio generated for the nRF8001
|
||||||
*/
|
*/
|
||||||
if (NULL != services_pipe_type_mapping) {
|
// abort if this is NULL
|
||||||
aci_state.aci_setup_info.services_pipe_type_mapping = &services_pipe_type_mapping[0];
|
assert(services_pipe_type_mapping != NULL);
|
||||||
} else {
|
|
||||||
aci_state.aci_setup_info.services_pipe_type_mapping = NULL;
|
aci_state.aci_setup_info.services_pipe_type_mapping =
|
||||||
}
|
&services_pipe_type_mapping[0];
|
||||||
|
|
||||||
aci_state.aci_setup_info.number_of_pipes = NUMBER_OF_PIPES;
|
aci_state.aci_setup_info.number_of_pipes = NUMBER_OF_PIPES;
|
||||||
aci_state.aci_setup_info.setup_msgs = setup_msgs;
|
aci_state.aci_setup_info.setup_msgs = setup_msgs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user