works with TTN and cheap STM32F103C8T6 boards
Dependencies: LMiC_CFG_eu868 SX1276Lib mbed-STM32F103C8T6 mbed
Fork of LoRaWAN-lmic-app by
STM32F103C8T6 + RFM95 LoRa Node
flash board wirh STLink
openocd -f interface/stlink-v2.cfg -f target/stm32f1x_stlink.cfg \ -c "program STM32F103C8T6_LoRaWAN-lmic-app_NUCLEO_F103RB.bin exit verify reset 0x08000000"
debug.h
- Committer:
- mluis
- Date:
- 2015-03-31
- Revision:
- 1:60184eda0066
File content as of revision 1:60184eda0066:
/******************************************************************************* * Copyright (c) 2014-2015 IBM Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Zurich Research Lab - initial API, implementation and documentation * Semtech Apps Team - Adapted for MBED *******************************************************************************/ #ifndef _debug_hpp_ #define _debug_hpp_ // intialize debug library void debug_init (void); // set LED state void debug_led (u1_t val); // write character to USART void debug_char (u1_t c); // write byte as two hex digits to USART void debug_hex (u1_t b); // write buffer as hex dump to USART void debug_buf (const u1_t* buf, u2_t len); // write 32-bit integer as eight hex digits to USART void debug_uint (u4_t v); // write nul-terminated string to USART void debug_str (const u1_t* str); // write LMiC event name to USART void debug_event (int ev); // write label and 32-bit value as hex to USART void debug_val (const u1_t* label, u4_t val); #endif // _debug_hpp_