mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-10-23 03:27:39 +00:00
coding style + removed some unnecessary memory arrays in the FPGA E5A tracking adapter class.
This commit is contained in:
@@ -251,7 +251,7 @@ void gnss_sdr_fpga_sample_counter::close_device()
|
||||
auto *aux = const_cast<uint32_t *>(map_base);
|
||||
if (munmap(static_cast<void *>(aux), PAGE_SIZE) == -1)
|
||||
{
|
||||
std::cout << "Failed to unmap memory uio" << std::endl;
|
||||
std::cout << "Failed to unmap memory uio" << std::endl;
|
||||
}
|
||||
close(fd);
|
||||
}
|
||||
@@ -270,8 +270,8 @@ uint32_t gnss_sdr_fpga_sample_counter::wait_for_interrupt_and_read_counter()
|
||||
nb = read(fd, &irq_count, sizeof(irq_count));
|
||||
if (nb != sizeof(irq_count))
|
||||
{
|
||||
std::cout << "fpga sample counter module read failed to retrieve 4 bytes!" << std::endl;
|
||||
std::cout << "fpga sample counter module interrupt number " << irq_count << std::endl;
|
||||
std::cout << "fpga sample counter module read failed to retrieve 4 bytes!" << std::endl;
|
||||
std::cout << "fpga sample counter module interrupt number " << irq_count << std::endl;
|
||||
}
|
||||
|
||||
// it is a rising edge interrupt, the interrupt does not need to be acknowledged
|
||||
|
@@ -66,9 +66,9 @@ private:
|
||||
uint32_t current_days; // Receiver time in days since the beginning of the run
|
||||
int32_t report_interval_ms;
|
||||
bool flag_enable_send_msg;
|
||||
int32_t fd; // driver descriptor
|
||||
volatile uint32_t *map_base; // driver memory map
|
||||
std::string device_name = "/dev/uio2"; // HW device name
|
||||
int32_t fd; // driver descriptor
|
||||
volatile uint32_t *map_base; // driver memory map
|
||||
std::string device_name = "/dev/uio2"; // HW device name
|
||||
|
||||
public:
|
||||
friend gnss_sdr_fpga_sample_counter_sptr gnss_sdr_make_fpga_sample_counter(double _fs, int32_t _interval_ms);
|
||||
|
Reference in New Issue
Block a user