Skip to content

Commit

Permalink
Updated FSM to interepret mreo of SH2 features
Browse files Browse the repository at this point in the history
  • Loading branch information
antsand committed Jun 26, 2023
1 parent 07d3719 commit dd6c9a9
Show file tree
Hide file tree
Showing 6 changed files with 797 additions and 92 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ target_sources(app PRIVATE src/sensors/IMU_CEVA_FSM300/ceva_fsmSH2.c)
# Include SH2
#target_sources(app PRIVATE src/sensors/IMU_CEVA_FSM300/sh2/shtp.c)
#target_sources(app PRIVATE src/sensors/IMU_CEVA_FSM300/sh2/sh2.c)
#target_sources(app PRIVATE src/sensors/IMU_CEVA_FSM300/sh2/sh2_util.c)
#target_sources(app PRIVATE src/sensors/IMU_CEVA_FSM300/sh2/sh2_SEnsorValue.c)
target_sources(app PRIVATE src/sensors/IMU_CEVA_FSM300/sh2/sh2_util.c)
target_sources(app PRIVATE src/sensors/IMU_CEVA_FSM300/sh2/sh2_SensorValue.c)


# Include UART ASYNC API adapter
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/SPIM/spim_local.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct spi_cs_control spim_cs = {
const struct spi_config spi_cfg = {
.operation = SPI_WORD_SET(8) | SPI_TRANSFER_MSB |
SPI_MODE_CPOL | SPI_MODE_CPHA | SPI_HOLD_ON_CS,
.frequency = 500000,//1000000,
.frequency = 500000,//500000,//1000000,
.slave = 0,
.cs = &spim_cs,
};
Expand Down
3 changes: 2 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#define SLEEP_TIME_MS 1

#define LOG_MODULE_NAME peripheral_uart
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
LOG_MODULE_REGISTER(LOG_MODULE_NAME, LOG_LEVEL_DBG);

#define STACKSIZE CONFIG_BT_NUS_THREAD_STACK_SIZE
#define PRIORITY 7
Expand Down Expand Up @@ -615,6 +615,7 @@ static void configure_gpio(void)

void main(void)
{
LOG_INF("nRF Connect SDK Fundamentals");
int blink_status = 0;
uint32_t period = MAX_PERIOD;
int err = 0;
Expand Down
3 changes: 2 additions & 1 deletion src/sensors/IMU_CEVA_FSM300/ceva_fsm300.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ extern const struct gpio_dt_spec fsmwaken;
void FSM_thread(void);
void FSM_process_data();
void FSM_init();
sh2_Hal_t *sh2_hal_init(void);
sh2_Hal_t *sh2_hal_init(void);

Loading

0 comments on commit dd6c9a9

Please sign in to comment.