8000 host: fix builds on 32-bit platforms by rtucker · Pull Request #573 · Nuand/bladeRF · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

host: fix builds on 32-bit platforms #573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 16, 2018

Conversation

rtucker
Copy link
Contributor
@rtucker rtucker commented Aug 16, 2018

Builds were failing in various ways on 32-bit platforms, due to various assumptions (and the fact that pretty much everything is 64-bit nowadays). This PR should fix all of them so that it builds clean.

sizeof(void*) is not necessarily equal to sizeof(uint64_t)
sizeof(size_t) does not always equal sizeof(uint64_t)
it doesn't work, and this is an edgy-enough case that i think we'll be
okay with the ubuntu i386 builds
On non-64-bit platforms, these integer constants can be ambiguous, which
throws compiler warnings.
On non-64-bit platforms, these integer constants can be ambiguous, which
throws compiler warnings.
@rtucker rtucker merged commit 85fd6da into Nuand:master Aug 16, 2018
@rtucker rtucker deleted the dev-issue-569-32bitbuilds branch August 16, 2018 22:57
@rtucker rtucker added this to the 2018.08 milestone Aug 21, 2018
rtucker added a commit that referenced this pull request Aug 24, 2018
v2.0.1 (2018-08-24)
--------------------------------

This version of libbladeRF is intended for use with:

FX3 Firmware v2.2.0
FPGA         v0.7.3

This release contains minor fixes since v2.0.0.

Note to bladeRF2 users: If you are using bladerf_{get,set}_clock_select(),
please note that the enum for bladerf_clock_select has changed.
CLOCK_SELECT_VCTCXO has been replaced with CLOCK_SELECT_ONBOARD.

Changes:
 * FreeBSD build fixes (#561)
 * 32-bit architecture fixes (#573)
 * Detect and handle a bladeRF Micro that is running old firmware to allow
   re-flashing without recovery mode (#578)
 * bladeRF1: bladerf_set_gain_mode returning BLADERF_ERR_UNSUPPORTED is no
   longer fatal (#542)
 * bladeRF1: only check AGC DC LUT setting when enabling AGC
 * bladeRF1: typo fix in set_tx_gain (#580)
 * xb200: check for null xb_data before dereferencing it (#575)
 * bladeRF2: cache factory trimdac value at initialization; preserve trimdac
   disable state on bladerf2_trim_dac_write (#582)
 * bladeRF2: bladerf_clock_select: replace CLOCK_SELECT_VCTCXO with
   CLOCK_SELECT_ONBOARD for clarity (#585)
 * Improvements to the release notes (#583)
 * bladeRF-cli: Add 200 ms delay before probing PLL lock status (#587)
 * Windows: add a nanosleep() shim (#589)
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.

1 participant
0