Store the configuration on the SD card
This commit is contained in:
6
Makefile
6
Makefile
@@ -5,7 +5,8 @@ NAME=quad
|
||||
SSRCS=crt0.s
|
||||
CSRCS=main.c i2c.c mpu6050.c timer.c interrupt.c uart.c event.c matrix.c dcm.c
|
||||
CSRCS+=fisqrt.c stick.c trig.c motor.c led.c watchdog.c panic.c status.c
|
||||
CSRCS+=thrust.c sensors.c spi.c sdcard.c log.c hmc5883l.c mpl3115a2.c
|
||||
CSRCS+=thrust.c sensors.c spi.c sdcard.c log.c hmc5883l.c mpl3115a2.c config.c
|
||||
CSRCS+=crc.c memcpy.c
|
||||
|
||||
#PROJOPTS=-DUSE_UART -DSEND_DCM -DSTICK_DEBUG_CALIBRATE
|
||||
PROJOPTS=-DTIMER_CPPM -DI2C_FAST
|
||||
@@ -14,6 +15,9 @@ PROJOPTS=-DTIMER_CPPM -DI2C_FAST
|
||||
#PROJOPTS=-DTIMER_CPPM -DPANIC_32BIT -DPANIC_CHECKPOINT -DI2C_FAST -DSEND_DCM
|
||||
#PROJOPTS=-DTIMER_CPPM -DPANIC_32BIT -DPANIC_CHECKPOINT -DI2C_FAST -DUSE_UART -DSEND_DCM
|
||||
|
||||
# Enable debug
|
||||
#PROJOPTS+=-DUSE_UART
|
||||
|
||||
COPTIM?=-Os
|
||||
CFLAGS=-march=armv4t -msoft-float $(COPTIM) -Wall -Werror -Wextra $(PROJOPTS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user