Arduino LMIC 6.0.1
Arduino LoRaWAN(r) MAC in C
Loading...
Searching...
No Matches
hal.h
1/*******************************************************************************
2 * Copyright (c) 2015-2016 Matthijs Kooijman
3 * Copyright (c) 2016-2026 MCCI Corporation
4 *
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * which accompanies this distribution, and is available at
8 * http://www.eclipse.org/legal/epl-v10.html
9 *
10 * This the HAL to run LMIC on top of the Arduino environment.
11 *******************************************************************************/
12#ifndef _hal_hal_h_
13#define _hal_hal_h_
14
15#include "arduino_lmic_hal_configuration.h"
16#include "lmic/oslmic_types.h"
17
18// for compatbility reasons, we need to disclose the configuration
19// structure as global type lmic_pinmap.
20using lmic_pinmap = Arduino_LMIC::HalPinmap_t;
21
22// similarly, we need to disclose NUM_DIO and LMIC_UNUSED_PIN
23static const int NUM_DIO = lmic_pinmap::NUM_DIO;
24
25// Use this for any unused pins.
26const u1_t LMIC_UNUSED_PIN = lmic_pinmap::UNUSED_PIN;
27
28// Declared here, to be defined and initialized by the application.
29// Use os_init_ex() if you want not to use a const table, or if
30// you need to define a derived type (so you can override methods).
31extern const lmic_pinmap lmic_pins;
32
33#endif // _hal_hal_h_
Definition arduino_lmic_hal_configuration.h:46