OpenCores
URL https://opencores.org/ocsvn/s6soc/s6soc/trunk

Subversion Repositories s6soc

[/] [s6soc/] [trunk/] [sw/] [dev/] [board.h] - Diff between revs 12 and 15

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 12 Rev 15
Line 37... Line 37...
//
//
//
//
#ifndef BOARD_H
#ifndef BOARD_H
#define BOARD_H
#define BOARD_H
 
 
 
// GPIO PINS
 
//   first the outputs ...
 
#define GPO_SDA         0x000001
 
#define GPO_SCL         0x000002
 
#define GPO_MOSI        0x000004
 
#define GPO_SCK         0x000008
 
#define GPO_SS          0x000010
 
//   then the inputs.
 
#define GPI_SDA         0x010000
 
#define GPI_SCL         0x020000
 
#define GPI_MISO        0x040000
 
 
 
#define GPOSETV(PINS)   ((PINS)|((PINS)<<16))
 
#define GPOCLRV(PINS)   ((PINS)<<16)
 
 
 
// Interrupts
 
#define INT_ENABLE      0x80000000
#define INT_BUTTON      0x001
#define INT_BUTTON      0x001
#define INT_BUSERR      0x002 // Kind of useless, a buserr will kill us anyway
#define INT_BUSERR      0x002 // Kind of useless, a buserr will kill us anyway
#define INT_SCOPE       0x004
#define INT_SCOPE       0x004
#define INT_RTC         0x008
#define INT_RTC         0x008 // May not be available, due to lack of space
#define INT_TIMA        0x010
#define INT_TIMA        0x010
#define INT_TIMB        0x020
#define INT_TIMB        0x020
#define INT_UARTRX      0x040
#define INT_UARTRX      0x040
#define INT_UARTTX      0x080
#define INT_UARTTX      0x080
#define INT_KEYPAD      0x100
#define INT_KEYPAD      0x100
#define INT_AUDIO       0x200
#define INT_AUDIO       0x200
#define INT_GPIO        0x400
#define INT_GPIO        0x400
// #define      INT_FLASH       0x800
// #define      INT_FLASH       0x800   // Not available due to lack of space
 
#define INT_ENABLEV(IN)         (INT_ENABLE|((IN)<<16))
 
#define INT_DISABLEV(IN)        (INT_ENABLE|((IN)<<16))
 
#define INT_CLEAR(IN)           (IN)
 
 
// Clocks per second, for use with the timer
// Clocks per second, for use with the timer
#define TM_ONE_SECOND   80000000
#define TM_ONE_SECOND   80000000
#define TM_REPEAT       0x80000000
#define TM_REPEAT       0x80000000
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.