aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib/utils/ihex.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/include/uhdlib/utils/ihex.hpp')
-rw-r--r--host/lib/include/uhdlib/utils/ihex.hpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/host/lib/include/uhdlib/utils/ihex.hpp b/host/lib/include/uhdlib/utils/ihex.hpp
index ac12a83b5..58e4d5637 100644
--- a/host/lib/include/uhdlib/utils/ihex.hpp
+++ b/host/lib/include/uhdlib/utils/ihex.hpp
@@ -8,9 +8,8 @@
#ifndef INCLUDED_IHEX_READER_HPP
#define INCLUDED_IHEX_READER_HPP
-#include <functional>
-#include <functional>
#include <stdint.h>
+#include <functional>
#include <string>
#include <vector>
@@ -20,12 +19,13 @@ class ihex_reader
{
public:
// Arguments are: lower address bits, upper address bits, buff, length
- typedef std::function<int(uint16_t,uint16_t,unsigned char*,uint16_t)> record_handle_type;
+ typedef std::function<int(uint16_t, uint16_t, unsigned char*, uint16_t)>
+ record_handle_type;
/*
* \param ihex_filename Path to the *.ihx file
*/
- ihex_reader(const std::string &ihex_filename);
+ ihex_reader(const std::string& ihex_filename);
/*! Read an Intel HEX file and handle it record by record.
*
@@ -46,7 +46,7 @@ public:
*
* \throws uhd::io_error if the HEX file is corrupted or unreadable.
*/
- void to_bin_file(const std::string &bin_filename);
+ void to_bin_file(const std::string& bin_filename);
/*! Copy the ihex file into a buffer.
*
@@ -66,4 +66,3 @@ private:
}; /* namespace uhd */
#endif /* INCLUDED_IHEX_READER_HPP */
-