Skip to content

Commit

Permalink
Shifted codebase naming to make it less confusing for the legacy bree…
Browse files Browse the repository at this point in the history
…zy build
  • Loading branch information
pryre committed Aug 14, 2019
1 parent 47341d5 commit 2ca439f
Show file tree
Hide file tree
Showing 30 changed files with 27 additions and 27 deletions.
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,22 +77,22 @@ posix_serial_run: posix_serial
@exec ./lib/scripts/sitl_serial_run.sh $(SERIAL_DEVICE) $(SERIAL_DEVICE_2)

# Naze32 Rev.5 (Breezy)
naze32_rev5: param_gen
breezy_naze32_rev5: param_gen
$(MAKE) -C makefiles/$@ PROJECT_NAME=$(PROJECT_NAME)

naze32_rev5_flash: naze32_rev5
stm32flash -w build/robin_naze32_rev5.hex -v -g 0x0 -b $(SERIAL_BAUD) $(SERIAL_DEVICE)
breezy_naze32_rev5_flash: breezy_naze32_rev5
stm32flash -w build/robin_breezy_naze32_rev5.hex -v -g 0x0 -b $(SERIAL_BAUD) $(SERIAL_DEVICE)

naze32_rev5_reflash: naze32_rev5 mavlink_bootloader sleep naze32_rev5_flash
breezy_naze32_rev5_reflash: breezy_naze32_rev5 mavlink_bootloader sleep breezy_naze32_rev5_flash

# Naze32 Rev.6 (Breezy)
naze32_rev6: param_gen
breezy_naze32_rev6: param_gen
$(MAKE) -C makefiles/$@ PROJECT_NAME=$(PROJECT_NAME)

naze32_rev6_flash: naze32_rev6
stm32flash -w build/robin_naze32_rev6.hex -v -g 0x0 -b $(SERIAL_BAUD) $(SERIAL_DEVICE)
breezy_naze32_rev6_flash: breezy_naze32_rev6
stm32flash -w build/robin_breezy_naze32_rev6.hex -v -g 0x0 -b $(SERIAL_BAUD) $(SERIAL_DEVICE)

naze32_rev6_reflash: naze32_rev6 mavlink_bootloader sleep naze32_rev6_flash
breezy_naze32_rev6_reflash: breezy_naze32_rev6 mavlink_bootloader sleep breezy_naze32_rev6_flash

# Naze32 Rev.5 (LibOpenCM3)
opencm3_naze32_rev5: param_gen
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
###############################################################################

PROJECT_BUILD_TYPE = naze32_rev5
PROJECT_BUILD_TYPE = breezy_naze32_rev5

###############################################################################

include ../common/makefile.project_common

# Naze32 rev5 specific drivers
include ../common/makefile.naze32_common
include ../common/makefile.breezy_naze32_common
PROJECT_SRC_FILES += $(wildcard $(ROOT)/src/drivers/$(PROJECT_BUILD_TYPE)/*.c)

include ../common/makefile.build_common
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
###############################################################################

PROJECT_BUILD_TYPE = naze32_rev6
PROJECT_BUILD_TYPE = breezy_naze32_rev6

###############################################################################

include ../common/makefile.project_common

# Naze32 rev5 specific drivers
include ../common/makefile.naze32_common
include ../common/makefile.breezy_naze32_common
PROJECT_SRC_FILES += $(wildcard $(ROOT)/src/drivers/$(PROJECT_BUILD_TYPE)/*.c)

include ../common/makefile.build_common
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DEVICE_BUILD_OBJCOPY = arm-none-eabi-objcopy
###############################################################################

# Naze32 specific drivers
PROJECT_SRC_FILES += $(wildcard $(ROOT)/src/drivers/naze32_common/*.c)
PROJECT_SRC_FILES += $(wildcard $(ROOT)/src/drivers/breezy_naze32_common/*.c)

# Change this to wherever you put BreezySTM32
BREEZY_DIR := $(ROOT)/lib/BreezySTM32
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

#include <breezystm32.h>
#include <drivers/naze32_common/drv_bmp280.h>
#include <drivers/breezy_naze32_common/drv_bmp280.h>

#include <math.h>

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

#include <breezystm32.h>
#include <drivers/naze32_common/drv_hmc5883l.h>
#include <drivers/breezy_naze32_common/drv_hmc5883l.h>

#include <math.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

#include "drivers/drv_sensors.h"
#include "drivers/drv_system.h"
#include "drivers/naze32_common/drv_bmp280.h"
#include "drivers/naze32_common/drv_hmc5883l.h"
#include "drivers/naze32_common/drv_mpu.h"
#include "drivers/breezy_naze32_common/drv_bmp280.h"
#include "drivers/breezy_naze32_common/drv_hmc5883l.h"
#include "drivers/breezy_naze32_common/drv_mpu.h"

#include "calibration.h"
#include "params.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/

#include <breezystm32.h>
#include <drivers/naze32_common/drv_mpu.h>
#include <drivers/breezy_naze32_common/drv_mpu.h>

#include <math.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with BreezySTM32. If not, see <http://www.gnu.org/licenses/>.
*/

#include "drivers/naze32_common/drv_mpu.h"
#include "drivers/breezy_naze32_common/drv_mpu.h"
#include "breezystm32.h"

#include <math.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with BreezySTM32. If not, see <http://www.gnu.org/licenses/>.
*/

#include "drivers/naze32_common/drv_mpu.h"
#include "drivers/breezy_naze32_common/drv_mpu.h"
#include "breezystm32.h"

#include <math.h>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "drivers/drv_sensors.h"
#include "drivers/naze32_common/drv_bmp280.h"
#include "drivers/breezy_naze32_common/drv_bmp280.h"
#include "sensors.h"

bool drv_sensors_baro_init( uint32_t i2c ) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "drivers/drv_sensors.h"
#include "drivers/drv_system.h"
#include "drivers/naze32_common/drv_mpu.h"
#include "drivers/breezy_naze32_common/drv_mpu.h"
#include "sensors.h"

#include "fix16.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "drivers/drv_sensors.h"
#include "drivers/naze32_common/drv_hmc5883l.h"
#include "drivers/breezy_naze32_common/drv_hmc5883l.h"
#include "sensors.h"

bool drv_sensors_mag_init( uint32_t i2c ) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "drivers/drv_sensors.h"
#include "drivers/naze32_common/drv_bmp280.h"
#include "drivers/breezy_naze32_common/drv_bmp280.h"
#include "sensors.h"

bool drv_sensors_baro_init( uint32_t i2c ) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "drivers/drv_sensors.h"
#include "drivers/drv_system.h"
#include "drivers/naze32_common/drv_mpu.h"
#include "drivers/breezy_naze32_common/drv_mpu.h"
#include "sensors.h"

#include "fix16.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "drivers/drv_sensors.h"
#include "drivers/naze32_common/drv_hmc5883l.h"
#include "drivers/breezy_naze32_common/drv_hmc5883l.h"
#include "sensors.h"

bool drv_sensors_mag_init( uint32_t i2c ) {
Expand Down

0 comments on commit 2ca439f

Please sign in to comment.