diff options
Diffstat (limited to 'machxo2/resource')
-rw-r--r-- | machxo2/resource/chipdb.rc | 3 | ||||
-rw-r--r-- | machxo2/resource/embed.cc | 24 | ||||
-rw-r--r-- | machxo2/resource/resource.h | 2 |
3 files changed, 0 insertions, 29 deletions
diff --git a/machxo2/resource/chipdb.rc b/machxo2/resource/chipdb.rc deleted file mode 100644 index eff237fa..00000000 --- a/machxo2/resource/chipdb.rc +++ /dev/null @@ -1,3 +0,0 @@ -#include "resource.h" - -IDR_CHIPDB_1200 BINARYFILE "machxo2/chipdb/chipdb-1200.bin" diff --git a/machxo2/resource/embed.cc b/machxo2/resource/embed.cc deleted file mode 100644 index 24d4815a..00000000 --- a/machxo2/resource/embed.cc +++ /dev/null @@ -1,24 +0,0 @@ -#include <cstdio> -#include <windows.h> -#include "nextpnr.h" -#include "resource.h" - -NEXTPNR_NAMESPACE_BEGIN - -const char *chipdb_blob_1200; - -const char *LoadFileInResource(int name, int type, DWORD &size) -{ - HMODULE handle = ::GetModuleHandle(NULL); - HRSRC rc = ::FindResource(handle, MAKEINTRESOURCE(name), MAKEINTRESOURCE(type)); - HGLOBAL rcData = ::LoadResource(handle, rc); - size = ::SizeofResource(handle, rc); - return static_cast<const char *>(::LockResource(rcData)); -} -void load_chipdb() -{ - DWORD size = 0; - chipdb_blob_1200 = LoadFileInResource(IDR_CHIPDB_1200, BINARYFILE, size); -} - -NEXTPNR_NAMESPACE_END diff --git a/machxo2/resource/resource.h b/machxo2/resource/resource.h deleted file mode 100644 index 9ac8c585..00000000 --- a/machxo2/resource/resource.h +++ /dev/null @@ -1,2 +0,0 @@ -#define BINARYFILE 256 -#define IDR_CHIPDB_1200 103 |