collab/mm20

git clone https://git.julia.blue/collab/mm20

Zachary Bouthilletteadded ccs projectb47fcc8

firmware
3.7 KiB94 linesraw
1/*
2 * Copyright (c) 2015, Texas Instruments Incorporated
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 *
9 * *  Redistributions of source code must retain the above copyright
10 *    notice, this list of conditions and the following disclaimer.
11 *
12 * *  Redistributions in binary form must reproduce the above copyright
13 *    notice, this list of conditions and the following disclaimer in the
14 *    documentation and/or other materials provided with the distribution.
15 *
16 * *  Neither the name of Texas Instruments Incorporated nor the names of
17 *    its contributors may be used to endorse or promote products derived
18 *    from this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#ifndef __BOARD_H
34#define __BOARD_H
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40#include "EK_TM4C123GXL.h"
41
42#define Board_initDMA               EK_TM4C123GXL_initDMA
43#define Board_initGeneral           EK_TM4C123GXL_initGeneral
44#define Board_initGPIO              EK_TM4C123GXL_initGPIO
45#define Board_initI2C               EK_TM4C123GXL_initI2C
46#define Board_initPWM               EK_TM4C123GXL_initPWM
47#define Board_initSDSPI             EK_TM4C123GXL_initSDSPI
48#define Board_initSPI               EK_TM4C123GXL_initSPI
49#define Board_initUART              EK_TM4C123GXL_initUART
50#define Board_initUSB               EK_TM4C123GXL_initUSB
51#define Board_initWatchdog          EK_TM4C123GXL_initWatchdog
52#define Board_initWiFi              EK_TM4C123GXL_initWiFi
53
54#define Board_LED_ON                EK_TM4C123GXL_LED_ON
55#define Board_LED_OFF               EK_TM4C123GXL_LED_OFF
56#define Board_LED0                  EK_TM4C123GXL_LED_BLUE
57#define Board_LED1                  EK_TM4C123GXL_LED_GREEN
58#define Board_LED2                  EK_TM4C123GXL_LED_RED
59#define Board_BUTTON0               EK_TM4C123GXL_SW1
60#define Board_BUTTON1               EK_TM4C123GXL_SW2
61
62#define Board_I2C0                  EK_TM4C123GXL_I2C0
63#define Board_I2C1                  EK_TM4C123GXL_I2C3
64#define Board_I2C_TMP               EK_TM4C123GXL_I2C3
65#define Board_I2C_NFC               EK_TM4C123GXL_I2C3
66#define Board_I2C_TPL0401           EK_TM4C123GXL_I2C3
67
68#define Board_PWM0                  EK_TM4C123GXL_PWM6
69#define Board_PWM1                  EK_TM4C123GXL_PWM7
70
71#define Board_SDSPI0                EK_TM4C123GXL_SDSPI0
72
73#define Board_SPI0                  EK_TM4C123GXL_SPI0
74#define Board_SPI1                  EK_TM4C123GXL_SPI3
75
76#define Board_USBDEVICE             EK_TM4C123GXL_USBDEVICE
77
78#define Board_UART0                 EK_TM4C123GXL_UART0
79
80#define Board_WATCHDOG0             EK_TM4C123GXL_WATCHDOG0
81
82#define Board_WIFI                  EK_TM4C123GXL_WIFI
83#define Board_WIFI_SPI              EK_TM4C123GXL_SPI2
84
85/* Board specific I2C addresses */
86#define Board_TMP006_ADDR           (0x40)
87#define Board_RF430CL330_ADDR       (0x28)
88#define Board_TPL0401_ADDR          (0x40)
89
90#ifdef __cplusplus
91}
92#endif
93
94#endif /* __BOARD_H */