Skip to content

Commit

Permalink
added DroneCAN support
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Aug 24, 2024
1 parent 141c548 commit 998fa08
Show file tree
Hide file tree
Showing 217 changed files with 28,969 additions and 0 deletions.
1 change: 1 addition & 0 deletions Inc/targets.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
#define MILLIVOLT_PER_AMP 100
#define USE_SERIAL_TELEMETRY
#define EEPROM_START_ADD (uint32_t)0x0800F800
#define DRONECAN_SUPPORT 1
#endif

#ifdef REF_L431
Expand Down
6 changes: 6 additions & 0 deletions Mcu/l431/Src/peripherals.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
#include "ADC.h"
#include "serial_telemetry.h"
#include "targets.h"
#if DRONECAN_SUPPORT
#include <DroneCAN.h>
#endif

extern char bemf_timeout;

Expand Down Expand Up @@ -43,6 +46,9 @@ void initCorePeripherals(void)
#ifdef USE_INTERNAL_AMP
init_OPAMP();
#endif
#ifdef DRONECAN_SUPPORT
DroneCAN_Init();
#endif
}

void initAfterJump()
Expand Down
Loading

0 comments on commit 998fa08

Please sign in to comment.