diff --git a/software/firmware/pru0-shepherd-fw/main.c b/software/firmware/pru0-shepherd-fw/main.c index ca5333c6..e93d9b2d 100644 --- a/software/firmware/pru0-shepherd-fw/main.c +++ b/software/firmware/pru0-shepherd-fw/main.c @@ -91,7 +91,7 @@ static uint32_t handle_buffer_swap(volatile struct SharedMem *const shared_mem, } #ifdef ENABLE_DEBUG_MATH_FN -uint64_t debug_math_fns(const uint32_t factor, const uint32_t mode) +uint64_t debug_math_fns(const uint32_t factor, const uint32_t mode) { uint64_t result = 0; const uint64_t f2 = (uint64_t) factor + ((uint64_t) (factor) << 32u); diff --git a/software/firmware/pru0-shepherd-fw/sampling.c b/software/firmware/pru0-shepherd-fw/sampling.c index e557837f..b45a8ad5 100644 --- a/software/firmware/pru0-shepherd-fw/sampling.c +++ b/software/firmware/pru0-shepherd-fw/sampling.c @@ -98,9 +98,13 @@ static inline void sample_hrv_ADCs(struct SampleBuffer *const buffer, const uint buffer->values_voltage[sample_idx] = adc_fastread(SPI_CS_HRV_V_ADC_PIN); } - +#ifdef EMU_SUPPORT void sample(volatile struct SharedMem *const shared_mem, struct SampleBuffer *const current_buffer_far, const enum ShepherdMode mode) +#else +void sample(volatile const struct SharedMem *const shared_mem, + struct SampleBuffer *const current_buffer_far, const enum ShepherdMode mode) +#endif { switch (mode) // reordered to prioritize longer routines {