mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-11-08 11:13:03 +00:00
replaced int and unsigned int by int32_t and uint32_t
removed some unused variables
This commit is contained in:
@@ -109,7 +109,7 @@ Ad9361FpgaSignalSource::Ad9361FpgaSignalSource(ConfigurationInterface* configura
|
||||
// turn switch to A/D position
|
||||
std::string default_device_name = "/dev/uio1";
|
||||
std::string device_name = configuration->property(role + ".devicename", default_device_name);
|
||||
int switch_position = configuration->property(role + ".switch_position", 0);
|
||||
int32_t switch_position = configuration->property(role + ".switch_position", 0);
|
||||
switch_fpga = std::make_shared<Fpga_Switch>(device_name);
|
||||
switch_fpga->set_switch_position(switch_position);
|
||||
if (in_stream_ > 0)
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
// constants
|
||||
const size_t PAGE_SIZE = 0x10000;
|
||||
const unsigned int TEST_REGISTER_TRACK_WRITEVAL = 0x55AA;
|
||||
const uint32_t TEST_REGISTER_TRACK_WRITEVAL = 0x55AA;
|
||||
|
||||
Fpga_Switch::Fpga_Switch(const std::string &device_name)
|
||||
{
|
||||
@@ -87,7 +87,7 @@ Fpga_Switch::~Fpga_Switch()
|
||||
}
|
||||
|
||||
|
||||
void Fpga_Switch::set_switch_position(int switch_position)
|
||||
void Fpga_Switch::set_switch_position(int32_t switch_position)
|
||||
{
|
||||
d_map_base[0] = switch_position;
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ class Fpga_Switch
|
||||
public:
|
||||
Fpga_Switch(const std::string& device_name);
|
||||
~Fpga_Switch();
|
||||
void set_switch_position(int switch_position);
|
||||
void set_switch_position(int32_t switch_position);
|
||||
|
||||
private:
|
||||
int d_device_descriptor; // driver descriptor
|
||||
|
||||
Reference in New Issue
Block a user