Contiki 3.x
basevectors.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014, Eistec AB.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * 3. Neither the name of the copyright holder nor the names of its contributors
14  * may be used to endorse or promote products derived from this software
15  * without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
21  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27  * POSSIBILITY OF SUCH DAMAGE.
28  *
29  * This file is part of the Mulle platform port of the Contiki operating system.
30  *
31  */
32 
33 /**
34  * \file
35  * Base vectors for K60 peripheral modules.
36  * \author
37  * Joakim Gebart <joakim.gebart@eistec.se>
38  */
39 
40 #include "K60.h"
41 
42 /* All pointers are const declared to let us put these in .rodata */
43 /* Linker garbage collection will prune the unused arrays in the below list if
44  * basevectors.c is compiled with -fdata-sections and the final binary is linked
45  * with -Wl,--gc-sections */
46 ADC_Type * const ADC[] = ADC_BASES;
47 AIPS_Type * const AIPS[] = AIPS_BASES;
48 CAN_Type * const CAN[] = CAN_BASES;
49 CMP_Type * const CMP[] = CMP_BASES;
50 CRC_Type * const CRC[] = CRC_BASES;
51 DAC_Type * const DAC[] = DAC_BASES;
52 DMA_Type * const DMA[] = DMA_BASES;
53 FTM_Type * const FTM[] = FTM_BASES;
54 GPIO_Type * const GPIO[] = GPIO_BASES; /* 0 = A, 1 = B ... */
55 I2C_Type * const I2C[] = I2C_BASES;
56 I2S_Type * const I2S[] = I2S_BASES;
57 LPTMR_Type * const LPTMR[] = LPTMR_BASES;
58 PDB_Type * const PDB[] = PDB_BASES;
59 PORT_Type * const PORT[] = PORT_BASES; /* 0 = A, 1 = B ... */
60 SPI_Type * const SPI[] = SPI_BASES;
61 TSI_Type * const TSI[] = TSI_BASES;
62 UART_Type * const UART[] = UART_BASES;
63 USB_Type * const USB[] = USB_BASES;
#define I2S_BASES
Array initializer of I2S peripheral base pointers.
Definition: MK60D10.h:5128
USB - Register Layout Typedef.
Definition: MK60D10.h:8702
CRC - Register Layout Typedef.
Definition: MK60D10.h:2176
#define CAN_BASES
Array initializer of CAN peripheral base pointers.
Definition: MK60D10.h:1795
UART - Register Layout Typedef.
Definition: MK60D10.h:8221
SPI - Register Layout Typedef.
Definition: MK60D10.h:7742
#define DAC_BASES
Array initializer of DAC peripheral base pointers.
Definition: MK60D10.h:2430
#define SPI_BASES
Array initializer of SPI peripheral base pointers.
Definition: MK60D10.h:7994
K60 hardware register header wrapper.
#define AIPS_BASES
Array initializer of AIPS peripheral base pointers.
Definition: MK60D10.h:1355
DAC - Register Layout Typedef.
Definition: MK60D10.h:2344
TSI - Register Layout Typedef.
Definition: MK60D10.h:8011
#define DMA_BASES
Array initializer of DMA peripheral base pointers.
Definition: MK60D10.h:3045
CMP - Register Layout Typedef.
Definition: MK60D10.h:1950
#define CRC_BASES
Array initializer of CRC peripheral base pointers.
Definition: MK60D10.h:2327
GPIO - Register Layout Typedef.
Definition: MK60D10.h:4605
#define PORT_BASES
Array initializer of PORT peripheral base pointers.
Definition: MK60D10.h:6433
#define FTM_BASES
Array initializer of FTM peripheral base pointers.
Definition: MK60D10.h:4588
#define USB_BASES
Array initializer of USB peripheral base pointers.
Definition: MK60D10.h:9018
I2S - Register Layout Typedef.
Definition: MK60D10.h:4849
ADC - Register Layout Typedef.
Definition: MK60D10.h:266
#define ADC_BASES
Array initializer of ADC peripheral base pointers.
Definition: MK60D10.h:470
DMA - Register Layout Typedef.
Definition: MK60D10.h:2447
#define UART_BASES
Array initializer of UART peripheral base pointers.
Definition: MK60D10.h:8685
#define GPIO_BASES
Array initializer of GPIO peripheral base pointers.
Definition: MK60D10.h:4675
LPTMR - Register Layout Typedef.
Definition: MK60D10.h:5340
#define PDB_BASES
Array initializer of PDB peripheral base pointers.
Definition: MK60D10.h:6168
#define LPTMR_BASES
Array initializer of LPTMR peripheral base pointers.
Definition: MK60D10.h:5401
#define I2C_BASES
Array initializer of I2C peripheral base pointers.
Definition: MK60D10.h:4832
PORT - Register Layout Typedef.
Definition: MK60D10.h:6332
CAN - Register Layout Typedef.
Definition: MK60D10.h:1488
#define TSI_BASES
Array initializer of TSI peripheral base pointers.
Definition: MK60D10.h:8204
FTM - Register Layout Typedef.
Definition: MK60D10.h:4126
#define CMP_BASES
Array initializer of CMP peripheral base pointers.
Definition: MK60D10.h:2044
PDB - Register Layout Typedef.
Definition: MK60D10.h:6044
I2C - Register Layout Typedef.
Definition: MK60D10.h:4692
AIPS - Register Layout Typedef.
Definition: MK60D10.h:487