Skip to content
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

Use stdint.h types #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion hdsploader/digiface_firmware.dat
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <stdint.h>

/* stored in little-endian */
static u_int32_t digiface_firmware[24413] = {
static uint32_t digiface_firmware[24413] = {
0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
Expand Down
4 changes: 3 additions & 1 deletion hdsploader/digiface_firmware_rev11.dat
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <stdint.h>

/* stored in little-endian */
static u_int32_t digiface_firmware_rev11[24413] = {
static uint32_t digiface_firmware_rev11[24413] = {
0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
Expand Down
4 changes: 3 additions & 1 deletion hdsploader/multiface_firmware.dat
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <stdint.h>

/* stored in little-endian */
static u_int32_t multiface_firmware[24413] = {
static uint32_t multiface_firmware[24413] = {
0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
Expand Down
4 changes: 3 additions & 1 deletion hdsploader/multiface_firmware_rev11.dat
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <stdint.h>

/* stored in little-endian */
static u_int32_t multiface_firmware_rev11[24413] = {
static uint32_t multiface_firmware_rev11[24413] = {
0xffffffff, 0x66aa9955, 0x8001000c, 0xe0000000, 0x8006800c, 0xb0000000,
0x8004800c, 0xb4fc0100, 0x8003000c, 0x00000000, 0x8001000c, 0x90000000,
0x8004000c, 0x00000000, 0x8001000c, 0x80000000, 0x0002000c, 0x581a000a,
Expand Down
3 changes: 2 additions & 1 deletion hdsploader/tobin.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <endian.h>

Expand All @@ -8,7 +9,7 @@
#include "multiface_firmware.dat"
#include "multiface_firmware_rev11.dat"

int write_bin_file(u_int32_t *array, const char *filename)
int write_bin_file(uint32_t *array, const char *filename)
{
FILE *out;

Expand Down