MySensors Library & Examples
2.3.2-62-ge298769
hal
architecture
ASR650x
MyHwASR650x.h
1
21
#ifndef MyHwASR650x_h
22
#define MyHwASR650x_h
23
24
#include <SPI.h>
25
#include "atomic"
26
#include "board-config.h"
27
28
#ifdef __cplusplus
29
#include <Arduino.h>
30
#endif
31
32
#define CRYPTO_BIG_ENDIAN
33
34
#ifndef MY_SERIALDEVICE
35
#define MY_SERIALDEVICE Serial
36
#endif
37
38
#ifndef MY_DEBUGDEVICE
39
#define MY_DEBUGDEVICE MY_SERIALDEVICE
40
#endif
41
42
// Define these as macros to save valuable space
43
#define hwDigitalWrite(__pin, __value) digitalWrite(__pin, __value)
44
#define hwDigitalRead(__pin) digitalRead(__pin)
45
#define hwPinMode(__pin, __value) pinMode(__pin, __value)
46
#define hwMillis() millis()
47
#define hwGetSleepRemaining() (0ul)
48
49
void
hwRandomNumberInit(
void
);
50
bool
hwInit(
void
);
51
void
hwWatchdogReset(
void
);
52
void
hwReboot(
void
);
53
54
uint8_t hwReadConfig(
const
int
pos);
55
void
hwWriteConfig(
const
int
pos, uint8_t value);
56
void
hwReadConfigBlock(
void
*buffer,
const
void
*pos,
size_t
length);
57
void
hwWriteConfigBlock(
void
*buffer,
const
void
*pos,
size_t
length);
58
59
60
// SOFTSPI
61
#ifdef MY_SOFTSPI
62
#error Soft SPI is not available on this architecture!
63
#endif
64
#ifndef hwSPI
65
#define hwSPI SPI
66
#endif
67
68
#define MY_HW_HAS_GETENTROPY
69
70
#ifndef digitalPinToInterrupt
71
#define digitalPinToInterrupt(__pin) (__pin)
72
#endif
73
74
// if we got a CubeCell, we will do all the necessary defines here
75
#if defined(CubeCell_Board) || defined(CubeCell_BoardPlus) || defined(CubeCell_Capsule) || defined(CubeCell_GPS) || defined(CubeCell_HalfAA) || defined(CubeCell_Module) || defined(CubeCell_ModulePlus)
76
#define MY_SX126x_RESET_PIN RADIO_RESET
77
#define MY_SX126x_CS_PIN RADIO_NSS
78
#define MY_SX126x_IRQ_PIN RADIO_DIO_1
79
#define MY_SX126x_IRQ_NUM digitalPinToInterrupt(MY_SX126x_IRQ_PIN)
80
#define MY_SX126x_BUSY_PIN RADIO_BUSY
81
#define MY_SX126x_USE_TCXO
82
#define MY_SX126x_TCXO_VOLTAGE (SX126x_TCXO_1V8)
83
#define MY_SX126c_TCXO_STARTUP_DELAY 5
84
#define MY_SX126x_USE_DIO2_ANT_SWITCH
85
#endif
86
87
#define yield()
88
89
#endif
Copyright (C) 2013-2019 Sensnology AB. Generated by
doxygen
1.8.17