|
@ -24,6 +24,7 @@ |
|
|
|
|
|
|
|
|
#define DEBUG_SERIAL // Only for STM32_BOARD compiled with Upload method "Serial"->usart1, "STM32duino bootloader"->USB serial
|
|
|
#define DEBUG_SERIAL // Only for STM32_BOARD compiled with Upload method "Serial"->usart1, "STM32duino bootloader"->USB serial
|
|
|
|
|
|
|
|
|
|
|
|
#include <cstdint> //adds types like unit_16_t
|
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
#include "config.h"
|
|
|
#include "tx_def.h"
|
|
|
#include "tx_def.h"
|
|
@ -117,6 +118,12 @@ float TIMER_PRESCALE = 5.82; |
|
|
typedef uint16_t (*void_function_t) (void);//pointer to a function with no parameters which return an uint16_t integer
|
|
|
typedef uint16_t (*void_function_t) (void);//pointer to a function with no parameters which return an uint16_t integer
|
|
|
void_function_t remote_callback = 0; |
|
|
void_function_t remote_callback = 0; |
|
|
|
|
|
|
|
|
|
|
|
//forward declarations
|
|
|
|
|
|
void modules_reset(); |
|
|
|
|
|
uint32_t random_id(bool create_new); |
|
|
|
|
|
static void protocol_init(); |
|
|
|
|
|
uint8_t Update_All(); |
|
|
|
|
|
|
|
|
// Init
|
|
|
// Init
|
|
|
void setup() |
|
|
void setup() |
|
|
{ |
|
|
{ |