HP85 GPIB Disk Emulator  1.0
HP85GPIBDiskEmulator
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Typedefs | Enumerations | Functions
user_config.h File Reference

Master Include for FatFs, RTC, Timers AVR8 - Part of HP85 disk emulator. More...

#include <hardware/cpu.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <stdint.h>
#include <stddef.h>
#include <stdarg.h>
#include <ctype.h>
#include <avr/pgmspace.h>
#include <avr/portpins.h>
#include <avr/io.h>
#include <assert.h>
#include <avr/interrupt.h>
#include "hardware/gpio-1284p.h"
#include "hardware/hal.h"
#include "hardware/bits.h"
#include "hardware/delay.h"
#include "hardware/ram.h"
#include <util/twi.h>
#include "lib/parsing.h"
#include "lib/stringsup.h"
#include "printf/mathio.h"
#include "lib/time.h"
#include "lib/timer.h"
#include "lib/queue.h"
#include "hardware/rtc.h"
#include "fatfs.sup/fatfs.h"
#include "rs232.h"
#include "spi.h"
#include "posix/posix.h"
#include "gpib/debug.h"

Go to the source code of this file.

Macros

#define AVR   1
 
#define MEMSPACE
 
#define SYSTEM_TASK_HZ   1000L
 
#define HAVE_HIRES_TIMER   1
 
#define MMC_SLOW   (500000UL)
 
#define MMC_FAST   (5000000UL)
 
#define NO_SCANF
 
#define printf(format, args...)   printf_P(PSTR(format), ##args)
 
#define snprintf(s, size, format, args...)   snprintf_P(s, size, PSTR(format), ##args)
 
#define sprintf(s, format, args...)   sprintf_P(s, PSTR(format), ##args)
 
#define NULL   ((void *) 0)
 
#define _SIZE_T
 
#define Mem_Clear(a)   memset(a, 0, sizeof(a))
 
#define Mem_Set(a, b)   memset(a, (int) b, sizeof(a))
 
#define UART_DEVICE_CNT   1
 
#define free(p)   safefree(p)
 
#define calloc(n, s)   safecalloc(n,s)
 
#define malloc(s)   safemalloc(s)
 

Typedefs

typedef unsigned long int size_t
 

Enumerations

enum  bool { false, true }
 

Functions

void copyright (void)
 

Detailed Description

Master Include for FatFs, RTC, Timers AVR8 - Part of HP85 disk emulator.

Edit History
  • [1.0] [Mike Gore] Initial revision of file.
Copyright © 2014-2020 Mike Gore, Inc. All rights reserved.

Definition in file user_config.h.

Macro Definition Documentation

◆ _SIZE_T

#define _SIZE_T

Definition at line 92 of file user_config.h.

◆ AVR

#define AVR   1

Definition at line 16 of file user_config.h.

◆ calloc

#define calloc (   n,
 
)    safecalloc(n,s)

Definition at line 129 of file user_config.h.

◆ free

#define free (   p)    safefree(p)

Definition at line 126 of file user_config.h.

◆ HAVE_HIRES_TIMER

#define HAVE_HIRES_TIMER   1

Definition at line 20 of file user_config.h.

◆ malloc

#define malloc (   s)    safemalloc(s)

Definition at line 132 of file user_config.h.

◆ Mem_Clear

#define Mem_Clear (   a)    memset(a, 0, sizeof(a))

Definition at line 96 of file user_config.h.

◆ Mem_Set

#define Mem_Set (   a,
 
)    memset(a, (int) b, sizeof(a))

Definition at line 97 of file user_config.h.

◆ MEMSPACE

#define MEMSPACE

Definition at line 17 of file user_config.h.

◆ MMC_FAST

#define MMC_FAST   (5000000UL)

Definition at line 30 of file user_config.h.

◆ MMC_SLOW

#define MMC_SLOW   (500000UL)

Definition at line 26 of file user_config.h.

◆ NO_SCANF

#define NO_SCANF

Definition at line 34 of file user_config.h.

◆ NULL

#define NULL   ((void *) 0)

Definition at line 85 of file user_config.h.

◆ printf

#define printf (   format,
  args... 
)    printf_P(PSTR(format), ##args)

standard includes include <stdio.h>

Definition at line 71 of file user_config.h.

◆ snprintf

#define snprintf (   s,
  size,
  format,
  args... 
)    snprintf_P(s, size, PSTR(format), ##args)

Definition at line 72 of file user_config.h.

◆ sprintf

#define sprintf (   s,
  format,
  args... 
)    sprintf_P(s, PSTR(format), ##args)

Definition at line 73 of file user_config.h.

◆ SYSTEM_TASK_HZ

#define SYSTEM_TASK_HZ   1000L

Definition at line 19 of file user_config.h.

◆ UART_DEVICE_CNT

#define UART_DEVICE_CNT   1

UART device number

Definition at line 99 of file user_config.h.

Typedef Documentation

◆ size_t

typedef unsigned long int size_t

Definition at line 93 of file user_config.h.

Enumeration Type Documentation

◆ bool

enum bool
Enumerator
false 
true 

Definition at line 88 of file user_config.h.

Function Documentation

◆ copyright()

void copyright ( void  )

Referenced by help().