added gyro, move things around

This commit is contained in:
saji 2024-04-02 15:18:15 -05:00
parent 79fcfc4283
commit a5d46e95b0
6 changed files with 16 additions and 22 deletions

View file

@ -7,7 +7,6 @@ CONFIG_SENSOR=y
CONFIG_POLL=y
CONFIG_CAN=y
CONFIG_CAN_INIT_PRIORITY=80
CONFIG_CAN_MAX_FILTER=5
CONFIG_LOG=y
CONFIG_SHELL=y
@ -26,8 +25,6 @@ CONFIG_FILE_SYSTEM=y
CONFIG_FAT_FILESYSTEM_ELM=y
CONFIG_FILE_SYSTEM_MKFS=y
CONFIG_FILE_SYSTEM_SHELL=y
CONFIG_FS_LOG_LEVEL_DBG=y
CONFIG_SDMMC_LOG_LEVEL_DBG=y
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_GNSS=y

View file

@ -1,16 +0,0 @@
# This file is provided so that the application can be compiled using Twister,
# the Zephyr testing tool. In this file, multiple combinations can be specified,
# so that you can easily test all of them locally or in CI.
sample:
description: Example application
name: example-application
common:
build_only: true
integration_platforms:
- custom_plank
- nucleo_f302r8
tests:
app.default: {}
app.debug:
extra_overlay_confs:
- debug.conf

View file

@ -123,7 +123,7 @@ void can_task() {
k_msgq_get(&sd_canframes, &incoming_frame, K_FOREVER);
fs_write(&logfile, &incoming_frame, sizeof(incoming_frame));
fs_sync(&logfile);
LOG_INF("write!");
LOG_DBG("write!");
}
}

View file

@ -182,9 +182,17 @@ zephyr_udc0: &usb {
bme280@0 {
compatible = "bosch,bme280";
reg = <0>;
spi-max-frequency = <DT_FREQ_M(1)>;
spi-max-frequency = <DT_FREQ_M(10)>;
status = "okay";
};
/* TODO: add LSM6DS3 may need custom driver */
lsm6ds3: lsm6dsl@1 {
compatible = "st,lsm6dsl";
reg = <1>;
irq-gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
spi-max-frequency = <DT_FREQ_M(10)>;
status = "okay";
};
};
&vref {
@ -228,4 +236,4 @@ zephyr_udc0: &usb {
data-rate = <OSPI_DTR_TRANSFER>;
status = "okay";
};
};
};

View file

@ -10,6 +10,10 @@ CONFIG_CLOCK_CONTROL=y
# console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_PRODUCT="Telem3.0"
CONFIG_USB_DEVICE_PID=0x0004
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=y
# Enable MPU
CONFIG_ARM_MPU=y

View file

@ -19,3 +19,4 @@ manifest:
- mcuboot
- cmsis # required by the ARM port
- hal_stm32 # required by the nucleo_f302r8 board (STM32 based)
- hal_st # required by the nucleo_f302r8 board (STM32 based)