Skip to content

Refactor hackrf_core.x in preparation for removal. (1/3)#1705

Merged
mossmann merged 7 commits intogreatscottgadgets:mainfrom
antoinevg:antoinevg/refactor-hackrf-core
Apr 23, 2026
Merged

Refactor hackrf_core.x in preparation for removal. (1/3)#1705
mossmann merged 7 commits intogreatscottgadgets:mainfrom
antoinevg:antoinevg/refactor-hackrf-core

Conversation

@antoinevg
Copy link
Copy Markdown
Member

@antoinevg antoinevg commented Mar 24, 2026

This PR moves a number of items out of hackrf_core in preparation for removing it entirely:

  • CPU clock logic => cpu_clock.x
  • Clock generator logic => clock_gen.x
  • Power logic => power.x
  • LED logic => leds.x
  • clkin_ctrl_set => clkin.x
  • narrowband_filter_set => fpga.x
  • trigger_enable => clock_gen.x

Follow-up PR's address the remaining items:

@antoinevg antoinevg force-pushed the antoinevg/refactor-hackrf-core branch 4 times, most recently from 3351fdc to 972eb9b Compare March 27, 2026 12:31
@antoinevg antoinevg marked this pull request as draft March 27, 2026 12:32
@antoinevg antoinevg force-pushed the antoinevg/refactor-hackrf-core branch 12 times, most recently from 74f5366 to 0d4817f Compare March 30, 2026 09:17
@antoinevg antoinevg changed the title Refactor hackrf_core. Refactor hackrf_core in preparation for removal. Mar 30, 2026
@antoinevg antoinevg force-pushed the antoinevg/refactor-hackrf-core branch 3 times, most recently from 356d1f8 to 0f8fa86 Compare March 31, 2026 09:02
@antoinevg antoinevg marked this pull request as ready for review March 31, 2026 11:53
@antoinevg antoinevg changed the title Refactor hackrf_core in preparation for removal. Refactor hackrf_core.x in preparation for removal. Mar 31, 2026
This was referenced Apr 2, 2026
@antoinevg antoinevg force-pushed the antoinevg/refactor-hackrf-core branch 4 times, most recently from 021cd70 to 86c493f Compare April 7, 2026 15:24
@antoinevg antoinevg force-pushed the antoinevg/refactor-hackrf-core branch from 86c493f to 5d513df Compare April 7, 2026 15:26
@antoinevg antoinevg changed the title Refactor hackrf_core.x in preparation for removal. Refactor hackrf_core.x in preparation for removal. (1/3) Apr 10, 2026
@antoinevg antoinevg force-pushed the antoinevg/refactor-hackrf-core branch from 5d513df to 7e469ff Compare April 10, 2026 07:55
@antoinevg antoinevg marked this pull request as draft April 14, 2026 08:26
@antoinevg antoinevg force-pushed the antoinevg/refactor-hackrf-core branch 3 times, most recently from cc4964f to 1ef7688 Compare April 22, 2026 07:54
@antoinevg antoinevg marked this pull request as ready for review April 22, 2026 08:15
@mossmann mossmann self-requested a review April 22, 2026 19:02
Copy link
Copy Markdown
Member

@mossmann mossmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks good, and the final commit builds fine, but I would like to see some rearrangement.

Comment thread firmware/common/radio.h
Comment thread firmware/common/hackrf_core.c
Comment thread firmware/common/hackrf_core.c
Comment thread firmware/common/hackrf_core.h
Comment thread firmware/common/fpga.c Outdated
Comment thread firmware/common/clock_gen.c Outdated
@antoinevg antoinevg force-pushed the antoinevg/refactor-hackrf-core branch from 1ef7688 to c835a28 Compare April 23, 2026 14:08
@antoinevg antoinevg force-pushed the antoinevg/refactor-hackrf-core branch from c835a28 to de8d0eb Compare April 23, 2026 14:24
@antoinevg antoinevg force-pushed the antoinevg/refactor-hackrf-core branch from de8d0eb to 5672be9 Compare April 23, 2026 14:44
@antoinevg antoinevg requested a review from mossmann April 23, 2026 14:54
Copy link
Copy Markdown
Member

@mossmann mossmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!

@mossmann mossmann merged commit f1c28bc into greatscottgadgets:main Apr 23, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants