Library to access LPC17xx peripherals. It uses static inline functions, constant propagation and dead code elimination to be as fast as possible.

Dependents:   Chua-VGA Wolfram-1D-VGA WolframRnd-1D-VGA Basin-VGA ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ssp.h Source File

ssp.h

00001 /* Copyright (C) 2011 by Ivo van Poorten <ivop@euronet.nl>
00002  * This file is licensed under the terms of the GNU Lesser
00003  * General Public License, version 3.
00004  */
00005 
00006 #ifndef FASTLIB_SSP_H
00007 #define FASTLIB_SSP_H
00008 
00009 #include "fastlib/common.h"
00010 
00011 #define FL_SSP0         ((volatile uint32_t *) 0x40088000)
00012 #define FL_SSP1         ((volatile uint32_t *) 0x40030000)
00013 
00014 #define FL_SSP_CR0      0x00
00015 #define FL_SSP_CR1      0x04
00016 #define FL_SSP_DR       0x08
00017 #define FL_SSP_SR       0x0C
00018 #define FL_SSP_CPSR     0x10
00019 #define FL_SSP_IMSC     0x14
00020 #define FL_SSP_RIS      0x18
00021 #define FL_SSP_MIS      0x1C
00022 #define FL_SSP_ICR      0x20
00023 #define FL_SSP_DMACR    0x24
00024 
00025 #define FL_SSP(num, reg)    (FL_SSP##num + (volatile unit32_t *)FL_SSP_##reg)
00026 
00027 // NOT FINISHED YET
00028 
00029 #endif