consistantly use bas_types.h instead of standard headers

This commit is contained in:
Markus Fröschle
2014-09-25 06:24:55 +00:00
parent 4fc208c67d
commit c0d21a104f
30 changed files with 616 additions and 637 deletions

View File

@@ -21,10 +21,9 @@
* Author: Markus Fröschle * Author: Markus Fröschle
*/ */
#include <stdint.h> #include <bas_types.h>
#include <stdbool.h>
#include "bas_string.h"
#include "bas_printf.h" #include "bas_printf.h"
#include "bas_string.h"
#include "diskio.h" #include "diskio.h"
#include "ff.h" #include "ff.h"
#include "s19reader.h" #include "s19reader.h"

View File

@@ -21,7 +21,7 @@
* Author: Markus Fröschle * Author: Markus Fröschle
*/ */
#include <stdint.h> #include <bas_types.h>
static uint32_t ownstack[4096]; static uint32_t ownstack[4096];
static uint32_t *stackptr = &ownstack[4095]; static uint32_t *stackptr = &ownstack[4095];

View File

@@ -1,4 +1,3 @@
#include <stdint.h>
#include <stddef.h> #include <stddef.h>
#include "bas_types.h" #include "bas_types.h"

View File

@@ -23,8 +23,7 @@
* Copyright 2012 M. Froeschle * Copyright 2012 M. Froeschle
*/ */
#include <stdint.h> #include <bas_types.h>
#include <stdbool.h>
#include "bas_printf.h" #include "bas_printf.h"
#include "bas_string.h" #include "bas_string.h"

View File

@@ -26,7 +26,7 @@
*/ */
#include <ff.h> #include <ff.h>
#include <stdint.h> #include <bas_types.h>
#if _CODE_PAGE == 437 #if _CODE_PAGE == 437
#define _TBLDEF 1 #define _TBLDEF 1

View File

@@ -95,7 +95,7 @@
/ Changed option name _FS_SHARE to _FS_LOCK. / Changed option name _FS_SHARE to _FS_LOCK.
/---------------------------------------------------------------------------*/ /---------------------------------------------------------------------------*/
#include <stdint.h> #include <bas_types.h>
#include <ff.h> /* FatFs configurations and declarations */ #include <ff.h> /* FatFs configurations and declarations */
#include <diskio.h> /* Declarations of low level disk I/O functions */ #include <diskio.h> /* Declarations of low level disk I/O functions */

View File

@@ -23,8 +23,7 @@
* Author: Markus Fröschle * Author: Markus Fröschle
*/ */
#include <stdint.h> #include <bas_types.h>
#include <stddef.h>
#include "version.h" #include "version.h"
#include "xhdi_sd.h" #include "xhdi_sd.h"
#include "dma.h" #include "dma.h"

View File

@@ -16,7 +16,7 @@
#ifndef __MCF5475_H__ #ifndef __MCF5475_H__
#define __MCF5475_H__ #define __MCF5475_H__
#include <stdint.h> #include <bas_types.h>
/*** /***
* MCF5475 Derivative Memory map definitions from linker command files: * MCF5475 Derivative Memory map definitions from linker command files:
* __MBAR, __MMUBAR, __RAMBAR0, __RAMBAR0_SIZE, __RAMBAR1, __RAMBAR1_SIZE * __MBAR, __MMUBAR, __RAMBAR0, __RAMBAR0_SIZE, __RAMBAR1, __RAMBAR1_SIZE

View File

@@ -30,5 +30,6 @@
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <stddef.h> /* for sizeof() etc. */
#endif /* BAS_TYPES_H_ */ #endif /* BAS_TYPES_H_ */

View File

@@ -25,8 +25,7 @@
* *
*/ */
#include <stdint.h> #include <bas_types.h>
#include <stddef.h>
/* /*
* CACR Cache Control Register * CACR Cache Control Register

View File

@@ -12,7 +12,7 @@ extern "C" {
#define _USE_WRITE 1 /* 1: Enable disk_write function */ #define _USE_WRITE 1 /* 1: Enable disk_write function */
#define _USE_IOCTL 1 /* 1: Enable disk_ioctl fucntion */ #define _USE_IOCTL 1 /* 1: Enable disk_ioctl fucntion */
#include <stdint.h> #include <bas_types.h>
/* Status of Disk Functions */ /* Status of Disk Functions */

View File

@@ -1,7 +1,7 @@
#ifndef _EXCEPTIONS_H_ #ifndef _EXCEPTIONS_H_
#define _EXCEPTIONS_H_ #define _EXCEPTIONS_H_
#include <stdint.h> #include <bas_types.h>
static inline uint32_t set_ipl(uint32_t ipl) static inline uint32_t set_ipl(uint32_t ipl)
{ {

View File

@@ -21,7 +21,7 @@
extern "C" { extern "C" {
#endif #endif
#include <stdint.h> #include <bas_types.h>
#include <ffconf.h> /* FatFs configuration options */ #include <ffconf.h> /* FatFs configuration options */
#if _FATFS != _FFCONF #if _FATFS != _FFCONF

View File

@@ -8,9 +8,7 @@
#ifndef _TIMER_H_ #ifndef _TIMER_H_
#define _TIMER_H_ #define _TIMER_H_
#include <stdint.h> #include <bas_types.h>
#include <stdbool.h>
#include <stddef.h>
typedef struct typedef struct
{ {

View File

@@ -21,7 +21,7 @@
* Author: Markus Fröschle * Author: Markus Fröschle
*/ */
#include <stdint.h> #include <bas_types.h>
#include "util.h" /* for swpX() */ #include "util.h" /* for swpX() */
#define PCI_MEMORY_OFFSET (0x80000000) #define PCI_MEMORY_OFFSET (0x80000000)

View File

@@ -31,7 +31,7 @@
#define _SD_CARD_H_ #define _SD_CARD_H_
#include <MCF5475.h> #include <MCF5475.h>
#include <stdint.h> #include <bas_types.h>
extern void sd_card_init(void); extern void sd_card_init(void);

View File

@@ -25,7 +25,7 @@
#ifndef UTIL_H_ #ifndef UTIL_H_
#define UTIL_H_ #define UTIL_H_
#include <stdint.h> #include <bas_types.h>
#define NOP() __asm__ __volatile__("nop\n\t" : : : "memory") #define NOP() __asm__ __volatile__("nop\n\t" : : : "memory")

View File

@@ -1,9 +1,7 @@
#ifndef _VIDEO_H_ #ifndef _VIDEO_H_
#define _VIDEO_H_ #define _VIDEO_H_
#include <stddef.h> #include <bas_types.h>
#include <stdint.h>
#include <stdbool.h>
#include "bas_printf.h" #include "bas_printf.h"
extern void video_init(void); extern void video_init(void);

View File

@@ -37,7 +37,7 @@
****************************************************************************/ ****************************************************************************/
/* $XFree86: xc/extras/x86emu/src/x86emu/x86emu/debug.h,v 1.4 2000/11/21 23:10:27 tsi Exp $ */ /* $XFree86: xc/extras/x86emu/src/x86emu/x86emu/debug.h,v 1.4 2000/11/21 23:10:27 tsi Exp $ */
#include <stdint.h> #include <bas_types.h>
#include "bas_printf.h" #include "bas_printf.h"
/* /*

View File

@@ -18,7 +18,7 @@
*/ */
#include <stdint.h> #include <bas_types.h>
#include "bas_printf.h" #include "bas_printf.h"
#include "bas_string.h" #include "bas_string.h"

View File

@@ -6,11 +6,10 @@
* *
* Modifications: * Modifications:
*/ */
#include <bas_types.h>
#include "net.h" #include "net.h"
#include "bas_printf.h" #include "bas_printf.h"
#include "bas_string.h" #include "bas_string.h"
#include <stdint.h>
#include <stddef.h>
#define IP_DEBUG #define IP_DEBUG

View File

@@ -5,9 +5,8 @@
* *
* Notes: * Notes:
*/ */
#include "net_timer.h" #include "net_timer.h"
#include <stdint.h>
#include <stdbool.h>
#include "bas_printf.h" #include "bas_printf.h"
#include "MCF5475.h" #include "MCF5475.h"
#include "interrupts.h" #include "interrupts.h"

View File

@@ -11,9 +11,6 @@
#include "bas_types.h" #include "bas_types.h"
#include "bas_printf.h" #include "bas_printf.h"
#include <stdint.h>
#include <stdbool.h>
#define DBG_NIF #define DBG_NIF
#ifdef DBG_NIF #ifdef DBG_NIF
#define dbg(format, arg...) do { xprintf("DEBUG: %s(): " format, __FUNCTION__, ##arg); } while (0) #define dbg(format, arg...) do { xprintf("DEBUG: %s(): " format, __FUNCTION__, ##arg); } while (0)

View File

@@ -9,10 +9,7 @@
* *
*/ */
#include <stdint.h> #include "bas_types.h"
#include <stdbool.h>
#include <stddef.h>
#include "bas_printf.h" #include "bas_printf.h"
#include "bas_string.h" #include "bas_string.h"
#include "net.h" #include "net.h"

View File

@@ -26,7 +26,7 @@
#include <MCF5475.h> #include <MCF5475.h>
#include "pci.h" #include "pci.h"
#include "stdint.h" #include "bas_types.h"
#include "bas_printf.h" #include "bas_printf.h"
#include "bas_string.h" #include "bas_string.h"
#include "util.h" #include "util.h"

View File

@@ -25,7 +25,6 @@
* Author: mfro * Author: mfro
*/ */
#include <stdint.h>
#include <bas_types.h> #include <bas_types.h>
#include <MCF5475.h> #include <MCF5475.h>

View File

@@ -1,4 +1,3 @@
#include <stdint.h>
#include <bas_types.h> #include <bas_types.h>
#include <sd_card.h> #include <sd_card.h>
#include <bas_printf.h> #include <bas_printf.h>

View File

@@ -21,8 +21,7 @@
* Copyright 2012 M. Froeschle * Copyright 2012 M. Froeschle
*/ */
#include <stdint.h> #include <bas_types.h>
#include <stdbool.h>
#include "MCF5475.h" #include "MCF5475.h"
#include "startcf.h" #include "startcf.h"

View File

@@ -11,8 +11,7 @@
* option any later version. * option any later version.
*/ */
#include <stdint.h> #include <bas_types.h>
#include <stdbool.h>
#include "bas_string.h" #include "bas_string.h"
#include "bas_printf.h" #include "bas_printf.h"
#include "usb.h" #include "usb.h"

View File

@@ -23,8 +23,7 @@
* Author: Markus Fröschle * Author: Markus Fröschle
*/ */
#include <stdint.h> #include <bas_types.h>
#include <stdbool.h>
#include "MCF5475.h" #include "MCF5475.h"
#include "bas_utils.h" #include "bas_utils.h"
#include "bas_printf.h" #include "bas_printf.h"