Merge pull request #1701 from alignan/pull/fix-temp-nordic-ppa

Fix broken nrf52dk Travis build
This commit is contained in:
Antonio Lignan 2016-06-02 12:02:50 +02:00
commit b60c22e84a
4 changed files with 7 additions and 10 deletions

View file

@ -96,9 +96,9 @@ before_script:
## Install mainline ARM toolchain and download nRF52 SDK ## Install mainline ARM toolchain and download nRF52 SDK
- if [ ${BUILD_ARCH:-0} = nrf52dk ] ; then - if [ ${BUILD_ARCH:-0} = nrf52dk ] ; then
sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded && sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa &&
sudo apt-get -qq update && sudo apt-get -qq update &&
sudo apt-get -qq install gcc-arm-none-eabi srecord && sudo apt-get -qq install gcc-arm-embedded srecord &&
arm-none-eabi-gcc --version && arm-none-eabi-gcc --version &&
$WGET https://developer.nordicsemi.com/nRF5_IoT_SDK/nRF5_IoT_SDK_v0.9.x/nrf5_iot_sdk_3288530.zip && $WGET https://developer.nordicsemi.com/nRF5_IoT_SDK/nRF5_IoT_SDK_v0.9.x/nrf5_iot_sdk_3288530.zip &&
mkdir /tmp/nrf52-sdk && mkdir /tmp/nrf52-sdk &&

View file

@ -110,7 +110,7 @@ static void
board_init(void) board_init(void)
{ {
#ifdef SOFTDEVICE_PRESENT #ifdef SOFTDEVICE_PRESENT
// Initialize the SoftDevice handler module. /* Initialize the SoftDevice handler module */
SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL); SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL);
#endif #endif
#ifdef PLATFORM_HAS_BUTTON #ifdef PLATFORM_HAS_BUTTON
@ -167,12 +167,10 @@ main(void)
netstack_init(); netstack_init();
linkaddr_t linkaddr; linkaddr_t linkaddr;
ble_get_mac(linkaddr.u8); ble_get_mac(linkaddr.u8);
// Set link layer address /* Set link layer address */
linkaddr_set_node_addr(&linkaddr); linkaddr_set_node_addr(&linkaddr);
// Set device link layer address in uip stack. /* Set device link layer address in uip stack */
memcpy(&uip_lladdr.addr, &linkaddr, sizeof(uip_lladdr.addr)); memcpy(&uip_lladdr.addr, &linkaddr, sizeof(uip_lladdr.addr));
uip_debug_lladdr_print(&uip_lladdr);
PRINTF("\n");
process_start(&ble_iface_observer, NULL); process_start(&ble_iface_observer, NULL);
process_start(&tcpip_process, NULL); process_start(&tcpip_process, NULL);
#endif /* NETSTACK_CONF_WITH_IPV6 */ #endif /* NETSTACK_CONF_WITH_IPV6 */

View file

@ -132,9 +132,9 @@ typedef uint32_t uip_stats_t;
/* /*
* rtimer.h typedefs rtimer_clock_t as unsigned short. We need to define * rtimer.h typedefs rtimer_clock_t as unsigned short. We need to define
* RTIMER_CLOCK_LT to override this * RTIMER_CLOCK_LT to override this
*/
typedef uint32_t rtimer_clock_t; typedef uint32_t rtimer_clock_t;
#define RTIMER_CLOCK_LT(a, b) ((int32_t)((a) - (b)) < 0) #define RTIMER_CLOCK_LT(a, b) ((int32_t)((a) - (b)) < 0)
*/
/** @} */ /** @} */
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/

View file

@ -8,11 +8,10 @@ TOOLSDIR=../../tools
EXAMPLES = \ EXAMPLES = \
hello-world/nrf52dk \ hello-world/nrf52dk \
nrf52dk/blink-hello/nrf52dk \
nrf52dk/coap-demo/nrf52dk:coap-server \ nrf52dk/coap-demo/nrf52dk:coap-server \
nrf52dk/coap-demo/nrf52dk:coap-client:SERVER_IPV6_ADDR=ffff \ nrf52dk/coap-demo/nrf52dk:coap-client:SERVER_IPV6_ADDR=ffff \
nrf52dk/mqtt-demo/nrf52dk \ nrf52dk/mqtt-demo/nrf52dk \
nrf52dk/timer-test/nrf52dk nrf52dk/blink-hello/nrf52dk
TOOLS= TOOLS=