Skip to content

Commit

Permalink
improve gnu-pru config
Browse files Browse the repository at this point in the history
  • Loading branch information
orgua committed Oct 1, 2024
1 parent c19d5a3 commit 40ebf62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion software/firmware/pru0-shepherd-fw/include/math64_safe.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ uint64_t sub64(uint64_t value1, uint64_t value2);
uint32_t sub32(uint32_t value1, uint32_t value2);


#ifdef __PYTHON__
#if defined(__GNUC__) || defined(__PYTHON__)
// TODO: not completely correct - now the gnu-pru also uses c-code instead of 1-op asm
uint8_ft get_size_in_bits(const uint32_t value);
uint8_ft log2safe(uint32_t value);
uint32_t max_value(uint32_t value1, uint32_t value2);
Expand Down
1 change: 0 additions & 1 deletion software/firmware/pru0-shepherd-fw/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ static uint32_t handle_buffer_swap(volatile struct SharedMem *const shared_mem,
}

#ifdef ENABLE_DEBUG_MATH_FN
extern uint32_t get_size_in_bits(uint32_t value);
uint64_t debug_math_fns(const uint32_t factor, const uint32_t mode)
{
uint64_t result = 0;
Expand Down

0 comments on commit 40ebf62

Please sign in to comment.