Adapted to LoRa Semtech + Nucleo

Dependencies:   LMiC SX1276Lib cantcoap lwip mbed-rtos mbed

Fork of LoRaWAN-lmic-app by Pascal Nysten

Committer:
pnysten
Date:
Mon Dec 14 10:51:40 2015 +0000
Revision:
7:f1521b0ecf08
Parent:
4:5e274bf85bf0
New version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mluis 1:60184eda0066 1 /*******************************************************************************
mluis 1:60184eda0066 2 * Copyright (c) 2014-2015 IBM Corporation.
mluis 1:60184eda0066 3 * All rights reserved. This program and the accompanying materials
mluis 1:60184eda0066 4 * are made available under the terms of the Eclipse Public License v1.0
mluis 1:60184eda0066 5 * which accompanies this distribution, and is available at
mluis 1:60184eda0066 6 * http://www.eclipse.org/legal/epl-v10.html
mluis 1:60184eda0066 7 *
mluis 1:60184eda0066 8 * Contributors:
mluis 1:60184eda0066 9 * IBM Zurich Research Lab - initial API, implementation and documentation
mluis 1:60184eda0066 10 *******************************************************************************/
mluis 1:60184eda0066 11
mluis 1:60184eda0066 12 // intialize debug library
mluis 1:60184eda0066 13 void debug_init (void);
mluis 1:60184eda0066 14
mluis 1:60184eda0066 15 // set LED state
mluis 1:60184eda0066 16 void debug_led (u1_t val);
mluis 1:60184eda0066 17
mluis 1:60184eda0066 18 // write character to USART
mluis 1:60184eda0066 19 void debug_char (u1_t c);
mluis 1:60184eda0066 20
mluis 1:60184eda0066 21 // write byte as two hex digits to USART
mluis 1:60184eda0066 22 void debug_hex (u1_t b);
mluis 1:60184eda0066 23
mluis 1:60184eda0066 24 // write buffer as hex dump to USART
mluis 1:60184eda0066 25 void debug_buf (const u1_t* buf, u2_t len);
mluis 1:60184eda0066 26
mluis 1:60184eda0066 27 // write 32-bit integer as eight hex digits to USART
mluis 1:60184eda0066 28 void debug_uint (u4_t v);
mluis 1:60184eda0066 29
mluis 1:60184eda0066 30 // write nul-terminated string to USART
pnysten 4:5e274bf85bf0 31 void debug_str (const char* str);
mluis 1:60184eda0066 32 void debug_str (const u1_t* str);
mluis 1:60184eda0066 33
mluis 1:60184eda0066 34 // write LMiC event name to USART
mluis 1:60184eda0066 35 void debug_event (int ev);
mluis 1:60184eda0066 36
mluis 1:60184eda0066 37 // write label and 32-bit value as hex to USART
pnysten 4:5e274bf85bf0 38 void debug_val (const char* label, u4_t val);
mluis 1:60184eda0066 39 void debug_val (const u1_t* label, u4_t val);