Skip to content

Commit

Permalink
removing drm from 107_odin branch. saved in odin_drm branch
Browse files Browse the repository at this point in the history
  • Loading branch information
orneryd committed Jun 17, 2018
1 parent 6b1a05c commit 3adb184
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 102 deletions.
2 changes: 0 additions & 2 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ def configure_target(TARGET):
os.path.join("src", "imu"),
os.path.join("src", "bootloader"),
os.path.join("src", "filter"),
os.path.join("src", "drm"),
LIBRARY_PATH + "/CMSIS_std/Device/ST/STM32F30x/Include",
LIBRARY_PATH + "/STM32F30x_StdPeriph_Driver/inc",
LIBRARY_PATH + "/CMSIS_std/Include"
Expand All @@ -200,7 +199,6 @@ def configure_target(TARGET):
os.path.join("src", "stm32"),
os.path.join("src", "target"),
os.path.join("src", "board_comm"),
os.path.join("src", "drm"),
LIBRARY_PATH + "/CMSIS_std/Device/ST/STM32F30x/Source",
LIBRARY_PATH + "/STM32F30x_StdPeriph_Driver/src"
]
Expand Down
2 changes: 1 addition & 1 deletion scripts/linker/stm32_flash_f30x_0x08002000_24k.ld
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
MEMORY
{
FLASH (rx) : ORIGIN = 0x08002000, LENGTH = 24K
RAM (xrw) : ORIGIN = 0x20000100, LENGTH = 16128
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 16K
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/linker/stm32_flash_f30x_0x08003000_20k.ld
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
MEMORY
{
FLASH (rx) : ORIGIN = 0x08003000, LENGTH = 20K
RAM (xrw) : ORIGIN = 0x20000100, LENGTH = 16128
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 16K
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/linker/stm32_flash_f30x_22k.ld
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
MEMORY
{
FLASH (rx) : ORIGIN = 0x08003000, LENGTH = 22K /* last 2kb used for config storage */
RAM (xrw) : ORIGIN = 0x20000100, LENGTH = 16128
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 16K
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
}

Expand Down
84 changes: 0 additions & 84 deletions src/drm/drm.c

This file was deleted.

5 changes: 0 additions & 5 deletions src/drm/drm.h

This file was deleted.

3 changes: 0 additions & 3 deletions src/imu/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "gyro.h"
#include "filter.h"
#include "crc.h"
#include "drm.h"

#include "scheduler.h"

Expand All @@ -22,8 +21,6 @@ int main(void)
init_imu();
//this makes the status light go red
single_gpio_init(BOOTLOADER_CHECK_PORT, BOOTLOADER_CHECK_PIN_SRC, BOOTLOADER_CHECK_PIN, 0, GPIO_Mode_OUT, GPIO_OType_PP, GPIO_PuPd_NOPULL);
//init drm
prerun_check();
//init gyro
gyro_init();

Expand Down
5 changes: 0 additions & 5 deletions src/imu/scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "quaternions.h"
#include "gyro.h"
#include "filter.h"
#include "drm.h"
#include "gyro_device.h" //where gyroRxFrame lives

inline void scheduler_run(void)
Expand All @@ -27,8 +26,4 @@ inline void scheduler_run(void)
update_quaternions();
gyroDataReadDone = 0; //reset read flag to prepare for next read
fire_spi_send_ready();
if (!check_me())
{
delay_ms(42);
}
}

0 comments on commit 3adb184

Please sign in to comment.