Skip to content

Commit

Permalink
Merge pull request #31 from jacmet/c-types-header
Browse files Browse the repository at this point in the history
Make rboot.h self contained
  • Loading branch information
raburton committed Jan 31, 2017
2 parents 78690c7 + 290d932 commit 3b067a8
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 26 deletions.
3 changes: 0 additions & 3 deletions appcode/rboot-bigflash.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
// See license.txt for license terms.
//////////////////////////////////////////////////

typedef unsigned int uint32;
typedef unsigned char uint8;

#include <rboot.h>

#ifdef BOOT_BIG_FLASH
Expand Down
7 changes: 0 additions & 7 deletions rboot-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
// See license.txt for license terms.
//////////////////////////////////////////////////

typedef int int32;
typedef unsigned int uint32;
typedef unsigned char uint8;

#include <rboot.h>

#define NOINLINE __attribute__ ((noinline))
Expand All @@ -20,9 +16,6 @@ typedef unsigned char uint8;
#define ROM_MAGIC_NEW1 0xea
#define ROM_MAGIC_NEW2 0x04

#define TRUE 1
#define FALSE 0

// buffer size, must be at least 0x10 (size of rom_header_new structure)
#define BUFFER_SIZE 0x100

Expand Down
2 changes: 2 additions & 0 deletions rboot.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
extern "C" {
#endif

#include <c_types.h> // uint* types

#ifdef RBOOT_INTEGRATION
#include <rboot-integration.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion testload1.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// richardaburton@gmail.com
// See license.txt for license terms.

#include "testload1.h"
#include <c_types.h>

void call_user_start(void) {
uint8 loop;
Expand Down
7 changes: 0 additions & 7 deletions testload1.h

This file was deleted.

2 changes: 1 addition & 1 deletion testload2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// richardaburton@gmail.com
// See license.txt for license terms.

#include "testload2.h"
#include <c_types.h>

void call_user_start(void) {
uint8 loop;
Expand Down
7 changes: 0 additions & 7 deletions testload2.h

This file was deleted.

0 comments on commit 3b067a8

Please sign in to comment.