Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/SAMW25_XPLAINED_PRO/samw25_xplained_pro.h@149:156823d33999, 2016-10-28 (annotated)
- Committer:
- <>
- Date:
- Fri Oct 28 11:17:30 2016 +0100
- Revision:
- 149:156823d33999
- Parent:
- targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/SAMW25_XPLAINED_PRO/samw25_xplained_pro.h@15:a81a8d6c1dfe
This updates the lib to the mbed lib v128
NOTE: This release includes a restructuring of the file and directory locations and thus some
include paths in your code may need updating accordingly.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mbed_official | 15:a81a8d6c1dfe | 1 | /** |
| mbed_official | 15:a81a8d6c1dfe | 2 | * \file |
| mbed_official | 15:a81a8d6c1dfe | 3 | * |
| mbed_official | 15:a81a8d6c1dfe | 4 | * \brief SAM W25 Xplained Pro board definition |
| mbed_official | 15:a81a8d6c1dfe | 5 | * |
| mbed_official | 15:a81a8d6c1dfe | 6 | * Copyright (c) 2015 Atmel Corporation. All rights reserved. |
| mbed_official | 15:a81a8d6c1dfe | 7 | * |
| mbed_official | 15:a81a8d6c1dfe | 8 | * \asf_license_start |
| mbed_official | 15:a81a8d6c1dfe | 9 | * |
| mbed_official | 15:a81a8d6c1dfe | 10 | * \page License |
| mbed_official | 15:a81a8d6c1dfe | 11 | * |
| mbed_official | 15:a81a8d6c1dfe | 12 | * Redistribution and use in source and binary forms, with or without |
| mbed_official | 15:a81a8d6c1dfe | 13 | * modification, are permitted provided that the following conditions are met: |
| mbed_official | 15:a81a8d6c1dfe | 14 | * |
| mbed_official | 15:a81a8d6c1dfe | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
| mbed_official | 15:a81a8d6c1dfe | 16 | * this list of conditions and the following disclaimer. |
| mbed_official | 15:a81a8d6c1dfe | 17 | * |
| mbed_official | 15:a81a8d6c1dfe | 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
| mbed_official | 15:a81a8d6c1dfe | 19 | * this list of conditions and the following disclaimer in the documentation |
| mbed_official | 15:a81a8d6c1dfe | 20 | * and/or other materials provided with the distribution. |
| mbed_official | 15:a81a8d6c1dfe | 21 | * |
| mbed_official | 15:a81a8d6c1dfe | 22 | * 3. The name of Atmel may not be used to endorse or promote products derived |
| mbed_official | 15:a81a8d6c1dfe | 23 | * from this software without specific prior written permission. |
| mbed_official | 15:a81a8d6c1dfe | 24 | * |
| mbed_official | 15:a81a8d6c1dfe | 25 | * 4. This software may only be redistributed and used in connection with an |
| mbed_official | 15:a81a8d6c1dfe | 26 | * Atmel microcontroller product. |
| mbed_official | 15:a81a8d6c1dfe | 27 | * |
| mbed_official | 15:a81a8d6c1dfe | 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED |
| mbed_official | 15:a81a8d6c1dfe | 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| mbed_official | 15:a81a8d6c1dfe | 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE |
| mbed_official | 15:a81a8d6c1dfe | 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR |
| mbed_official | 15:a81a8d6c1dfe | 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| mbed_official | 15:a81a8d6c1dfe | 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
| mbed_official | 15:a81a8d6c1dfe | 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| mbed_official | 15:a81a8d6c1dfe | 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| mbed_official | 15:a81a8d6c1dfe | 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
| mbed_official | 15:a81a8d6c1dfe | 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| mbed_official | 15:a81a8d6c1dfe | 38 | * POSSIBILITY OF SUCH DAMAGE. |
| mbed_official | 15:a81a8d6c1dfe | 39 | * |
| mbed_official | 15:a81a8d6c1dfe | 40 | * \asf_license_stop |
| mbed_official | 15:a81a8d6c1dfe | 41 | * |
| mbed_official | 15:a81a8d6c1dfe | 42 | */ |
| mbed_official | 15:a81a8d6c1dfe | 43 | |
| mbed_official | 15:a81a8d6c1dfe | 44 | #ifndef SAMW25_XPLAINED_PRO_H_INCLUDED |
| mbed_official | 15:a81a8d6c1dfe | 45 | #define SAMW25_XPLAINED_PRO_H_INCLUDED |
| mbed_official | 15:a81a8d6c1dfe | 46 | |
| mbed_official | 15:a81a8d6c1dfe | 47 | #include <conf_board.h> |
| mbed_official | 15:a81a8d6c1dfe | 48 | #include <compiler.h> |
| mbed_official | 15:a81a8d6c1dfe | 49 | |
| mbed_official | 15:a81a8d6c1dfe | 50 | #ifdef __cplusplus |
| mbed_official | 15:a81a8d6c1dfe | 51 | extern "C" { |
| mbed_official | 15:a81a8d6c1dfe | 52 | #endif |
| mbed_official | 15:a81a8d6c1dfe | 53 | |
| mbed_official | 15:a81a8d6c1dfe | 54 | /** |
| mbed_official | 15:a81a8d6c1dfe | 55 | * \ingroup group_common_boards |
| mbed_official | 15:a81a8d6c1dfe | 56 | * \defgroup samd21_xplained_pro_group SAM D21 Xplained Pro board |
| mbed_official | 15:a81a8d6c1dfe | 57 | * |
| mbed_official | 15:a81a8d6c1dfe | 58 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 59 | */ |
| mbed_official | 15:a81a8d6c1dfe | 60 | |
| mbed_official | 15:a81a8d6c1dfe | 61 | void system_board_init(void); |
| mbed_official | 15:a81a8d6c1dfe | 62 | |
| mbed_official | 15:a81a8d6c1dfe | 63 | /** |
| mbed_official | 15:a81a8d6c1dfe | 64 | * \defgroup samd21_xplained_pro_features_group Features |
| mbed_official | 15:a81a8d6c1dfe | 65 | * |
| mbed_official | 15:a81a8d6c1dfe | 66 | * Symbols that describe features and capabilities of the board. |
| mbed_official | 15:a81a8d6c1dfe | 67 | * |
| mbed_official | 15:a81a8d6c1dfe | 68 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 69 | */ |
| mbed_official | 15:a81a8d6c1dfe | 70 | |
| mbed_official | 15:a81a8d6c1dfe | 71 | /** Name string macro */ |
| mbed_official | 15:a81a8d6c1dfe | 72 | #define BOARD_NAME "SAMW25_XPLAINED_PRO" |
| mbed_official | 15:a81a8d6c1dfe | 73 | |
| mbed_official | 15:a81a8d6c1dfe | 74 | /** \name Resonator definitions |
| mbed_official | 15:a81a8d6c1dfe | 75 | * @{ */ |
| mbed_official | 15:a81a8d6c1dfe | 76 | #define BOARD_FREQ_SLCK_XTAL (32768U) |
| mbed_official | 15:a81a8d6c1dfe | 77 | #define BOARD_FREQ_SLCK_BYPASS (32768U) |
| mbed_official | 15:a81a8d6c1dfe | 78 | #define BOARD_FREQ_MAINCK_XTAL 0 /* Not Mounted */ |
| mbed_official | 15:a81a8d6c1dfe | 79 | #define BOARD_FREQ_MAINCK_BYPASS 0 /* Not Mounted */ |
| mbed_official | 15:a81a8d6c1dfe | 80 | #define BOARD_MCK CHIP_FREQ_CPU_MAX |
| mbed_official | 15:a81a8d6c1dfe | 81 | #define BOARD_OSC_STARTUP_US 15625 |
| mbed_official | 15:a81a8d6c1dfe | 82 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 83 | |
| mbed_official | 15:a81a8d6c1dfe | 84 | /** \name LED0 definitions |
| mbed_official | 15:a81a8d6c1dfe | 85 | * @{ */ |
| mbed_official | 15:a81a8d6c1dfe | 86 | #define LED0_PIN PIN_PA23 |
| mbed_official | 15:a81a8d6c1dfe | 87 | #define LED0_ACTIVE false |
| mbed_official | 15:a81a8d6c1dfe | 88 | #define LED0_INACTIVE !LED0_ACTIVE |
| mbed_official | 15:a81a8d6c1dfe | 89 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 90 | |
| mbed_official | 15:a81a8d6c1dfe | 91 | /** \name SW0 definitions |
| mbed_official | 15:a81a8d6c1dfe | 92 | * @{ */ |
| mbed_official | 15:a81a8d6c1dfe | 93 | #define SW0_PIN PIN_PB23 |
| mbed_official | 15:a81a8d6c1dfe | 94 | #define SW0_ACTIVE false |
| mbed_official | 15:a81a8d6c1dfe | 95 | #define SW0_INACTIVE !SW0_ACTIVE |
| mbed_official | 15:a81a8d6c1dfe | 96 | #define SW0_EIC_PIN PIN_PB23A_EIC_EXTINT7 |
| mbed_official | 15:a81a8d6c1dfe | 97 | #define SW0_EIC_MUX MUX_PA23A_EIC_EXTINT7 |
| mbed_official | 15:a81a8d6c1dfe | 98 | #define SW0_EIC_PINMUX PINMUX_PA23A_EIC_EXTINT7 |
| mbed_official | 15:a81a8d6c1dfe | 99 | #define SW0_EIC_LINE 7 |
| mbed_official | 15:a81a8d6c1dfe | 100 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 101 | |
| mbed_official | 15:a81a8d6c1dfe | 102 | /** |
| mbed_official | 15:a81a8d6c1dfe | 103 | * \name LED #0 definitions |
| mbed_official | 15:a81a8d6c1dfe | 104 | * |
| mbed_official | 15:a81a8d6c1dfe | 105 | * Wrapper macros for LED0, to ensure common naming across all Xplained Pro |
| mbed_official | 15:a81a8d6c1dfe | 106 | * boards. |
| mbed_official | 15:a81a8d6c1dfe | 107 | * |
| mbed_official | 15:a81a8d6c1dfe | 108 | * @{ */ |
| mbed_official | 15:a81a8d6c1dfe | 109 | #define LED_0_NAME "LED0 (yellow)" |
| mbed_official | 15:a81a8d6c1dfe | 110 | #define LED_0_PIN LED0_PIN |
| mbed_official | 15:a81a8d6c1dfe | 111 | #define LED_0_ACTIVE LED0_ACTIVE |
| mbed_official | 15:a81a8d6c1dfe | 112 | #define LED_0_INACTIVE LED0_INACTIVE |
| mbed_official | 15:a81a8d6c1dfe | 113 | #define LED0_GPIO LED0_PIN |
| mbed_official | 15:a81a8d6c1dfe | 114 | #define LED0 LED0_PIN |
| mbed_official | 15:a81a8d6c1dfe | 115 | |
| mbed_official | 15:a81a8d6c1dfe | 116 | #define LED_0_PWM_MODULE TCC0 |
| mbed_official | 15:a81a8d6c1dfe | 117 | #define LED_0_PWM_CHANNEL 0 |
| mbed_official | 15:a81a8d6c1dfe | 118 | #define LED_0_PWM_OUTPUT 0 |
| mbed_official | 15:a81a8d6c1dfe | 119 | #define LED_0_PWM_PIN PIN_PA23F_TCC0_WO5 |
| mbed_official | 15:a81a8d6c1dfe | 120 | #define LED_0_PWM_MUX MUX_PA23F_TCC0_WO5 |
| mbed_official | 15:a81a8d6c1dfe | 121 | #define LED_0_PWM_PINMUX PINMUX_PA23F_TCC0_WO5 |
| mbed_official | 15:a81a8d6c1dfe | 122 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 123 | |
| mbed_official | 15:a81a8d6c1dfe | 124 | /** Number of on-board LEDs */ |
| mbed_official | 15:a81a8d6c1dfe | 125 | #define LED_COUNT 1 |
| mbed_official | 15:a81a8d6c1dfe | 126 | |
| mbed_official | 15:a81a8d6c1dfe | 127 | |
| mbed_official | 15:a81a8d6c1dfe | 128 | /** |
| mbed_official | 15:a81a8d6c1dfe | 129 | * \name Button #0 definitions |
| mbed_official | 15:a81a8d6c1dfe | 130 | * |
| mbed_official | 15:a81a8d6c1dfe | 131 | * Wrapper macros for SW0, to ensure common naming across all Xplained Pro |
| mbed_official | 15:a81a8d6c1dfe | 132 | * boards. |
| mbed_official | 15:a81a8d6c1dfe | 133 | * |
| mbed_official | 15:a81a8d6c1dfe | 134 | * @{ */ |
| mbed_official | 15:a81a8d6c1dfe | 135 | #define BUTTON_0_NAME "SW0" |
| mbed_official | 15:a81a8d6c1dfe | 136 | #define BUTTON_0_PIN SW0_PIN |
| mbed_official | 15:a81a8d6c1dfe | 137 | #define BUTTON_0_ACTIVE SW0_ACTIVE |
| mbed_official | 15:a81a8d6c1dfe | 138 | #define BUTTON_0_INACTIVE SW0_INACTIVE |
| mbed_official | 15:a81a8d6c1dfe | 139 | #define BUTTON_0_EIC_PIN SW0_EIC_PIN |
| mbed_official | 15:a81a8d6c1dfe | 140 | #define BUTTON_0_EIC_MUX SW0_EIC_MUX |
| mbed_official | 15:a81a8d6c1dfe | 141 | #define BUTTON_0_EIC_PINMUX SW0_EIC_PINMUX |
| mbed_official | 15:a81a8d6c1dfe | 142 | #define BUTTON_0_EIC_LINE SW0_EIC_LINE |
| mbed_official | 15:a81a8d6c1dfe | 143 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 144 | |
| mbed_official | 15:a81a8d6c1dfe | 145 | /** Number of on-board buttons */ |
| mbed_official | 15:a81a8d6c1dfe | 146 | #define BUTTON_COUNT 1 |
| mbed_official | 15:a81a8d6c1dfe | 147 | |
| mbed_official | 15:a81a8d6c1dfe | 148 | /** \name Extension header #1 pin definitions |
| mbed_official | 15:a81a8d6c1dfe | 149 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 150 | */ |
| mbed_official | 15:a81a8d6c1dfe | 151 | #define EXT1_PIN_3 PIN_PA02 |
| mbed_official | 15:a81a8d6c1dfe | 152 | #define EXT1_PIN_4 PIN_PA03 |
| mbed_official | 15:a81a8d6c1dfe | 153 | #define EXT1_PIN_5 PIN_PB02 |
| mbed_official | 15:a81a8d6c1dfe | 154 | #define EXT1_PIN_6 PIN_PB03 |
| mbed_official | 15:a81a8d6c1dfe | 155 | #define EXT1_PIN_7 PIN_PA10 |
| mbed_official | 15:a81a8d6c1dfe | 156 | #define EXT1_PIN_8 PIN_PA11 |
| mbed_official | 15:a81a8d6c1dfe | 157 | #define EXT1_PIN_9 PIN_PA20 |
| mbed_official | 15:a81a8d6c1dfe | 158 | #define EXT1_PIN_10 PIN_PA21 |
| mbed_official | 15:a81a8d6c1dfe | 159 | #define EXT1_PIN_11 PIN_PA08 |
| mbed_official | 15:a81a8d6c1dfe | 160 | #define EXT1_PIN_12 PIN_PA09 |
| mbed_official | 15:a81a8d6c1dfe | 161 | #define EXT1_PIN_13 PIN_PB11 |
| mbed_official | 15:a81a8d6c1dfe | 162 | #define EXT1_PIN_14 PIN_PB10 |
| mbed_official | 15:a81a8d6c1dfe | 163 | #define EXT1_PIN_15 PIN_PA17 |
| mbed_official | 15:a81a8d6c1dfe | 164 | #define EXT1_PIN_16 PIN_PA18 |
| mbed_official | 15:a81a8d6c1dfe | 165 | #define EXT1_PIN_17 PIN_PA16 |
| mbed_official | 15:a81a8d6c1dfe | 166 | #define EXT1_PIN_18 PIN_PA19 |
| mbed_official | 15:a81a8d6c1dfe | 167 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 168 | |
| mbed_official | 15:a81a8d6c1dfe | 169 | /** \name Extension header #1 pin definitions by function |
| mbed_official | 15:a81a8d6c1dfe | 170 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 171 | */ |
| mbed_official | 15:a81a8d6c1dfe | 172 | #define EXT1_PIN_ADC_0 EXT1_PIN_3 |
| mbed_official | 15:a81a8d6c1dfe | 173 | #define EXT1_PIN_ADC_1 EXT1_PIN_4 |
| mbed_official | 15:a81a8d6c1dfe | 174 | #define EXT1_PIN_GPIO_0 EXT1_PIN_5 |
| mbed_official | 15:a81a8d6c1dfe | 175 | #define EXT1_PIN_GPIO_1 EXT1_PIN_6 |
| mbed_official | 15:a81a8d6c1dfe | 176 | #define EXT1_PIN_PWM_0 EXT1_PIN_7 |
| mbed_official | 15:a81a8d6c1dfe | 177 | #define EXT1_PIN_PWM_1 EXT1_PIN_8 |
| mbed_official | 15:a81a8d6c1dfe | 178 | #define EXT1_PIN_IRQ EXT1_PIN_9 |
| mbed_official | 15:a81a8d6c1dfe | 179 | #define EXT1_PIN_I2C_SDA EXT1_PIN_11 |
| mbed_official | 15:a81a8d6c1dfe | 180 | #define EXT1_PIN_I2C_SCL EXT1_PIN_12 |
| mbed_official | 15:a81a8d6c1dfe | 181 | #define EXT1_PIN_UART_RX EXT1_PIN_13 |
| mbed_official | 15:a81a8d6c1dfe | 182 | #define EXT1_PIN_UART_TX EXT1_PIN_14 |
| mbed_official | 15:a81a8d6c1dfe | 183 | #define EXT1_PIN_SPI_SS_1 EXT1_PIN_10 |
| mbed_official | 15:a81a8d6c1dfe | 184 | #define EXT1_PIN_SPI_SS_0 EXT1_PIN_15 |
| mbed_official | 15:a81a8d6c1dfe | 185 | #define EXT1_PIN_SPI_MOSI EXT1_PIN_16 |
| mbed_official | 15:a81a8d6c1dfe | 186 | #define EXT1_PIN_SPI_MISO EXT1_PIN_17 |
| mbed_official | 15:a81a8d6c1dfe | 187 | #define EXT1_PIN_SPI_SCK EXT1_PIN_18 |
| mbed_official | 15:a81a8d6c1dfe | 188 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 189 | |
| mbed_official | 15:a81a8d6c1dfe | 190 | /** \name Extension header #1 ADC definitions |
| mbed_official | 15:a81a8d6c1dfe | 191 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 192 | */ |
| mbed_official | 15:a81a8d6c1dfe | 193 | #define EXT1_ADC_MODULE ADC |
| mbed_official | 15:a81a8d6c1dfe | 194 | #define EXT1_ADC_0_CHANNEL 0 |
| mbed_official | 15:a81a8d6c1dfe | 195 | #define EXT1_ADC_0_PIN PIN_PA02B_ADC_AIN0 |
| mbed_official | 15:a81a8d6c1dfe | 196 | #define EXT1_ADC_0_MUX MUX_PA02B_ADC_AIN0 |
| mbed_official | 15:a81a8d6c1dfe | 197 | #define EXT1_ADC_0_PINMUX PINMUX_PA02B_ADC_AIN0 |
| mbed_official | 15:a81a8d6c1dfe | 198 | #define EXT1_ADC_1_CHANNEL 1 |
| mbed_official | 15:a81a8d6c1dfe | 199 | #define EXT1_ADC_1_PIN PIN_PA03B_ADC_AIN1 |
| mbed_official | 15:a81a8d6c1dfe | 200 | #define EXT1_ADC_1_MUX MUX_PA03B_ADC_AIN1 |
| mbed_official | 15:a81a8d6c1dfe | 201 | #define EXT1_ADC_1_PINMUX PINMUX_PA03B_ADC_AIN1 |
| mbed_official | 15:a81a8d6c1dfe | 202 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 203 | |
| mbed_official | 15:a81a8d6c1dfe | 204 | /** \name Extension header #1 PWM definitions |
| mbed_official | 15:a81a8d6c1dfe | 205 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 206 | */ |
| mbed_official | 15:a81a8d6c1dfe | 207 | #define EXT1_PWM_MODULE TCC0 |
| mbed_official | 15:a81a8d6c1dfe | 208 | #define EXT1_PWM_0_CHANNEL 2 |
| mbed_official | 15:a81a8d6c1dfe | 209 | #define EXT1_PWM_0_PIN PIN_PA10F_TCC0_WO2 |
| mbed_official | 15:a81a8d6c1dfe | 210 | #define EXT1_PWM_0_MUX MUX_PA10F_TCC0_WO2 |
| mbed_official | 15:a81a8d6c1dfe | 211 | #define EXT1_PWM_0_PINMUX PINMUX_PA10F_TCC0_WO2 |
| mbed_official | 15:a81a8d6c1dfe | 212 | #define EXT1_PWM_1_CHANNEL 3 |
| mbed_official | 15:a81a8d6c1dfe | 213 | #define EXT1_PWM_1_PIN PIN_PA11F_TCC0_WO3 |
| mbed_official | 15:a81a8d6c1dfe | 214 | #define EXT1_PWM_1_MUX MUX_PA11F_TCC0_WO3 |
| mbed_official | 15:a81a8d6c1dfe | 215 | #define EXT1_PWM_1_PINMUX PINMUX_PA11F_TCC0_WO3 |
| mbed_official | 15:a81a8d6c1dfe | 216 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 217 | |
| mbed_official | 15:a81a8d6c1dfe | 218 | /** \name Extension header #1 IRQ/External interrupt definitions |
| mbed_official | 15:a81a8d6c1dfe | 219 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 220 | */ |
| mbed_official | 15:a81a8d6c1dfe | 221 | #define EXT1_IRQ_MODULE EIC |
| mbed_official | 15:a81a8d6c1dfe | 222 | #define EXT1_IRQ_INPUT 4 |
| mbed_official | 15:a81a8d6c1dfe | 223 | #define EXT1_IRQ_PIN PIN_PA20A_EIC_EXTINT4 |
| mbed_official | 15:a81a8d6c1dfe | 224 | #define EXT1_IRQ_MUX MUX_PA20A_EIC_EXTINT4 |
| mbed_official | 15:a81a8d6c1dfe | 225 | #define EXT1_IRQ_PINMUX PINMUX_PA20A_EIC_EXTINT4 |
| mbed_official | 15:a81a8d6c1dfe | 226 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 227 | |
| mbed_official | 15:a81a8d6c1dfe | 228 | /** \name Extension header #1 I2C definitions |
| mbed_official | 15:a81a8d6c1dfe | 229 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 230 | */ |
| mbed_official | 15:a81a8d6c1dfe | 231 | #define EXT1_I2C_MODULE SERCOM0 |
| mbed_official | 15:a81a8d6c1dfe | 232 | #define EXT1_I2C_SERCOM_PINMUX_PAD0 PINMUX_PA08C_SERCOM0_PAD0 |
| mbed_official | 15:a81a8d6c1dfe | 233 | #define EXT1_I2C_SERCOM_PINMUX_PAD1 PINMUX_PA09C_SERCOM0_PAD1 |
| mbed_official | 15:a81a8d6c1dfe | 234 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 235 | |
| mbed_official | 15:a81a8d6c1dfe | 236 | /** \name Extension header #1 UART definitions |
| mbed_official | 15:a81a8d6c1dfe | 237 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 238 | */ |
| mbed_official | 15:a81a8d6c1dfe | 239 | #define EXT1_UART_MODULE SERCOM4 |
| mbed_official | 15:a81a8d6c1dfe | 240 | #define EXT1_UART_SERCOM_MUX_SETTING USART_RX_3_TX_2_XCK_3 |
| mbed_official | 15:a81a8d6c1dfe | 241 | #define EXT1_UART_SERCOM_PINMUX_PAD0 PINMUX_UNUSED |
| mbed_official | 15:a81a8d6c1dfe | 242 | #define EXT1_UART_SERCOM_PINMUX_PAD1 PINMUX_UNUSED |
| mbed_official | 15:a81a8d6c1dfe | 243 | #define EXT1_UART_SERCOM_PINMUX_PAD2 PINMUX_PB10D_SERCOM4_PAD2 |
| mbed_official | 15:a81a8d6c1dfe | 244 | #define EXT1_UART_SERCOM_PINMUX_PAD3 PINMUX_PB11D_SERCOM4_PAD3 |
| mbed_official | 15:a81a8d6c1dfe | 245 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 246 | |
| mbed_official | 15:a81a8d6c1dfe | 247 | /** \name Extension header #1 SPI definitions |
| mbed_official | 15:a81a8d6c1dfe | 248 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 249 | */ |
| mbed_official | 15:a81a8d6c1dfe | 250 | #define EXT1_SPI_MODULE SERCOM1 |
| mbed_official | 15:a81a8d6c1dfe | 251 | #define EXT1_SPI_SERCOM_MUX_SETTING SPI_SIGNAL_MUX_SETTING_E |
| mbed_official | 15:a81a8d6c1dfe | 252 | #define EXT1_SPI_SERCOM_PINMUX_PAD0 PINMUX_PA16C_SERCOM1_PAD0 |
| mbed_official | 15:a81a8d6c1dfe | 253 | #define EXT1_SPI_SERCOM_PINMUX_PAD1 PINMUX_PA17C_SERCOM1_PAD1 |
| mbed_official | 15:a81a8d6c1dfe | 254 | #define EXT1_SPI_SERCOM_PINMUX_PAD2 PINMUX_PA18C_SERCOM1_PAD2 |
| mbed_official | 15:a81a8d6c1dfe | 255 | #define EXT1_SPI_SERCOM_PINMUX_PAD3 PINMUX_PA19C_SERCOM1_PAD3 |
| mbed_official | 15:a81a8d6c1dfe | 256 | |
| mbed_official | 15:a81a8d6c1dfe | 257 | /** \name Extension header #3 pin definitions |
| mbed_official | 15:a81a8d6c1dfe | 258 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 259 | */ |
| mbed_official | 15:a81a8d6c1dfe | 260 | #define EXT3_PIN_3 PIN_PA04 |
| mbed_official | 15:a81a8d6c1dfe | 261 | #define EXT3_PIN_4 PIN_PA05 |
| mbed_official | 15:a81a8d6c1dfe | 262 | #define EXT3_PIN_5 PIN_PB22 |
| mbed_official | 15:a81a8d6c1dfe | 263 | #define EXT3_PIN_6 PIN_PB23 |
| mbed_official | 15:a81a8d6c1dfe | 264 | #define EXT3_PIN_7 PIN_PA22 |
| mbed_official | 15:a81a8d6c1dfe | 265 | #define EXT3_PIN_8 PIN_PA23 |
| mbed_official | 15:a81a8d6c1dfe | 266 | #define EXT3_PIN_9 PIN_PA06 |
| mbed_official | 15:a81a8d6c1dfe | 267 | #define EXT3_PIN_10 0 |
| mbed_official | 15:a81a8d6c1dfe | 268 | #define EXT3_PIN_11 PIN_PA08 |
| mbed_official | 15:a81a8d6c1dfe | 269 | #define EXT3_PIN_12 PIN_PA09 |
| mbed_official | 15:a81a8d6c1dfe | 270 | #define EXT3_PIN_13 PIN_PA01 |
| mbed_official | 15:a81a8d6c1dfe | 271 | #define EXT3_PIN_14 PIN_PA00 |
| mbed_official | 15:a81a8d6c1dfe | 272 | #define EXT3_PIN_15 PIN_PA07 |
| mbed_official | 15:a81a8d6c1dfe | 273 | #define EXT3_PIN_16 PIN_PA18 |
| mbed_official | 15:a81a8d6c1dfe | 274 | #define EXT3_PIN_17 PIN_PA16 |
| mbed_official | 15:a81a8d6c1dfe | 275 | #define EXT3_PIN_18 PIN_PA19 |
| mbed_official | 15:a81a8d6c1dfe | 276 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 277 | |
| mbed_official | 15:a81a8d6c1dfe | 278 | /** \name Extension header #3 pin definitions by function |
| mbed_official | 15:a81a8d6c1dfe | 279 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 280 | */ |
| mbed_official | 15:a81a8d6c1dfe | 281 | #define EXT3_PIN_ADC_0 EXT3_PIN_3 |
| mbed_official | 15:a81a8d6c1dfe | 282 | #define EXT3_PIN_ADC_1 EXT3_PIN_4 |
| mbed_official | 15:a81a8d6c1dfe | 283 | #define EXT3_PIN_GPIO_0 EXT3_PIN_5 |
| mbed_official | 15:a81a8d6c1dfe | 284 | #define EXT3_PIN_GPIO_1 EXT3_PIN_6 |
| mbed_official | 15:a81a8d6c1dfe | 285 | #define EXT3_PIN_PWM_0 EXT3_PIN_7 |
| mbed_official | 15:a81a8d6c1dfe | 286 | #define EXT3_PIN_PWM_1 EXT3_PIN_8 |
| mbed_official | 15:a81a8d6c1dfe | 287 | #define EXT3_PIN_IRQ EXT3_PIN_9 |
| mbed_official | 15:a81a8d6c1dfe | 288 | #define EXT3_PIN_I2C_SDA EXT3_PIN_11 |
| mbed_official | 15:a81a8d6c1dfe | 289 | #define EXT3_PIN_I2C_SCL EXT3_PIN_12 |
| mbed_official | 15:a81a8d6c1dfe | 290 | #define EXT3_PIN_UART_RX EXT3_PIN_13 |
| mbed_official | 15:a81a8d6c1dfe | 291 | #define EXT3_PIN_UART_TX EXT3_PIN_14 |
| mbed_official | 15:a81a8d6c1dfe | 292 | #define EXT3_PIN_SPI_SS_0 EXT3_PIN_15 |
| mbed_official | 15:a81a8d6c1dfe | 293 | #define EXT3_PIN_SPI_MOSI EXT3_PIN_16 |
| mbed_official | 15:a81a8d6c1dfe | 294 | #define EXT3_PIN_SPI_MISO EXT3_PIN_17 |
| mbed_official | 15:a81a8d6c1dfe | 295 | #define EXT3_PIN_SPI_SCK EXT3_PIN_18 |
| mbed_official | 15:a81a8d6c1dfe | 296 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 297 | |
| mbed_official | 15:a81a8d6c1dfe | 298 | /** \name Extension header #3 ADC definitions |
| mbed_official | 15:a81a8d6c1dfe | 299 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 300 | */ |
| mbed_official | 15:a81a8d6c1dfe | 301 | #define EXT3_ADC_MODULE ADC |
| mbed_official | 15:a81a8d6c1dfe | 302 | #define EXT3_ADC_0_CHANNEL 4 |
| mbed_official | 15:a81a8d6c1dfe | 303 | #define EXT3_ADC_0_PIN PIN_PA04B_ADC_AIN4 |
| mbed_official | 15:a81a8d6c1dfe | 304 | #define EXT3_ADC_0_MUX MUX_PA04B_ADC_AIN4 |
| mbed_official | 15:a81a8d6c1dfe | 305 | #define EXT3_ADC_0_PINMUX PINMUX_PA04B_ADC_AIN4 |
| mbed_official | 15:a81a8d6c1dfe | 306 | #define EXT3_ADC_1_CHANNEL 5 |
| mbed_official | 15:a81a8d6c1dfe | 307 | #define EXT3_ADC_1_PIN PIN_PA05B_ADC_AIN5 |
| mbed_official | 15:a81a8d6c1dfe | 308 | #define EXT3_ADC_1_MUX MUX_PA05B_ADC_AIN5 |
| mbed_official | 15:a81a8d6c1dfe | 309 | #define EXT3_ADC_1_PINMUX PINMUX_PA05B_ADC_AIN5 |
| mbed_official | 15:a81a8d6c1dfe | 310 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 311 | |
| mbed_official | 15:a81a8d6c1dfe | 312 | /** \name Extension header #3 PWM definitions |
| mbed_official | 15:a81a8d6c1dfe | 313 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 314 | */ |
| mbed_official | 15:a81a8d6c1dfe | 315 | #define EXT3_PWM_MODULE TC4 |
| mbed_official | 15:a81a8d6c1dfe | 316 | #define EXT3_PWM_0_CHANNEL 0 |
| mbed_official | 15:a81a8d6c1dfe | 317 | #define EXT3_PWM_0_PIN PIN_PA22E_TC4_WO0 |
| mbed_official | 15:a81a8d6c1dfe | 318 | #define EXT3_PWM_0_MUX MUX_PA22E_TC4_WO0 |
| mbed_official | 15:a81a8d6c1dfe | 319 | #define EXT3_PWM_0_PINMUX PINMUX_PA22E_TC4_WO0 |
| mbed_official | 15:a81a8d6c1dfe | 320 | #define EXT3_PWM_1_CHANNEL 1 |
| mbed_official | 15:a81a8d6c1dfe | 321 | #define EXT3_PWM_1_PIN PIN_PA23E_TC4_WO1 |
| mbed_official | 15:a81a8d6c1dfe | 322 | #define EXT3_PWM_1_MUX MUX_PA23E_TC4_WO1 |
| mbed_official | 15:a81a8d6c1dfe | 323 | #define EXT3_PWM_1_PINMUX PINMUX_PA23E_TC4_WO1 |
| mbed_official | 15:a81a8d6c1dfe | 324 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 325 | |
| mbed_official | 15:a81a8d6c1dfe | 326 | /** \name Extension header #3 IRQ/External interrupt definitions |
| mbed_official | 15:a81a8d6c1dfe | 327 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 328 | */ |
| mbed_official | 15:a81a8d6c1dfe | 329 | #define EXT3_IRQ_MODULE EIC |
| mbed_official | 15:a81a8d6c1dfe | 330 | #define EXT3_IRQ_INPUT 6 |
| mbed_official | 15:a81a8d6c1dfe | 331 | #define EXT3_IRQ_PIN PIN_PA06A_EIC_EXTINT6 |
| mbed_official | 15:a81a8d6c1dfe | 332 | #define EXT3_IRQ_MUX MUX_PA06A_EIC_EXTINT6 |
| mbed_official | 15:a81a8d6c1dfe | 333 | #define EXT3_IRQ_PINMUX PINMUX_PA06A_EIC_EXTINT6 |
| mbed_official | 15:a81a8d6c1dfe | 334 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 335 | |
| mbed_official | 15:a81a8d6c1dfe | 336 | /** \name Extension header #3 I2C definitions |
| mbed_official | 15:a81a8d6c1dfe | 337 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 338 | */ |
| mbed_official | 15:a81a8d6c1dfe | 339 | #define EXT3_I2C_MODULE SERCOM0 |
| mbed_official | 15:a81a8d6c1dfe | 340 | #define EXT3_I2C_SERCOM_PINMUX_PAD0 PINMUX_PA08C_SERCOM0_PAD0 |
| mbed_official | 15:a81a8d6c1dfe | 341 | #define EXT3_I2C_SERCOM_PINMUX_PAD1 PINMUX_PA09C_SERCOM0_PAD1 |
| mbed_official | 15:a81a8d6c1dfe | 342 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 343 | |
| mbed_official | 15:a81a8d6c1dfe | 344 | /** \name Extension header #3 UART definitions |
| mbed_official | 15:a81a8d6c1dfe | 345 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 346 | */ |
| mbed_official | 15:a81a8d6c1dfe | 347 | #define EXT3_UART_MODULE SERCOM1 |
| mbed_official | 15:a81a8d6c1dfe | 348 | #define EXT3_UART_SERCOM_MUX_SETTING USART_RX_1_TX_0_XCK_1 |
| mbed_official | 15:a81a8d6c1dfe | 349 | #define EXT3_UART_SERCOM_PINMUX_PAD0 PINMUX_PA00D_SERCOM1_PAD0 |
| mbed_official | 15:a81a8d6c1dfe | 350 | #define EXT3_UART_SERCOM_PINMUX_PAD1 PINMUX_PA01D_SERCOM1_PAD1 |
| mbed_official | 15:a81a8d6c1dfe | 351 | #define EXT3_UART_SERCOM_PINMUX_PAD2 PINMUX_UNUSED |
| mbed_official | 15:a81a8d6c1dfe | 352 | #define EXT3_UART_SERCOM_PINMUX_PAD3 PINMUX_UNUSED |
| mbed_official | 15:a81a8d6c1dfe | 353 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 354 | |
| mbed_official | 15:a81a8d6c1dfe | 355 | /** \name Extension header #3 SPI definitions |
| mbed_official | 15:a81a8d6c1dfe | 356 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 357 | */ |
| mbed_official | 15:a81a8d6c1dfe | 358 | #define EXT3_SPI_MODULE SERCOM1 |
| mbed_official | 15:a81a8d6c1dfe | 359 | #define EXT3_SPI_SERCOM_MUX_SETTING SPI_SIGNAL_MUX_SETTING_E |
| mbed_official | 15:a81a8d6c1dfe | 360 | #define EXT3_SPI_SERCOM_PINMUX_PAD0 PINMUX_PA16C_SERCOM1_PAD0 |
| mbed_official | 15:a81a8d6c1dfe | 361 | #define EXT3_SPI_SERCOM_PINMUX_PAD1 PINMUX_UNUSED /* PA07 */ |
| mbed_official | 15:a81a8d6c1dfe | 362 | #define EXT3_SPI_SERCOM_PINMUX_PAD2 PINMUX_PA18C_SERCOM1_PAD2 |
| mbed_official | 15:a81a8d6c1dfe | 363 | #define EXT3_SPI_SERCOM_PINMUX_PAD3 PINMUX_PA19C_SERCOM1_PAD3 |
| mbed_official | 15:a81a8d6c1dfe | 364 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 365 | |
| mbed_official | 15:a81a8d6c1dfe | 366 | /** \name Extension header #3 Dataflash |
| mbed_official | 15:a81a8d6c1dfe | 367 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 368 | */ |
| mbed_official | 15:a81a8d6c1dfe | 369 | #define EXT3_DATAFLASH_SPI_MODULE EXT3_SPI_MODULE |
| mbed_official | 15:a81a8d6c1dfe | 370 | #define EXT3_DATAFLASH_SPI_MUX_SETTING EXT3_SPI_SERCOM_MUX_SETTING |
| mbed_official | 15:a81a8d6c1dfe | 371 | #define EXT3_DATAFLASH_SPI_PINMUX_PAD0 EXT3_SPI_SERCOM_PINMUX_PAD0 |
| mbed_official | 15:a81a8d6c1dfe | 372 | #define EXT3_DATAFLASH_SPI_PINMUX_PAD1 EXT3_SPI_SERCOM_PINMUX_PAD1 |
| mbed_official | 15:a81a8d6c1dfe | 373 | #define EXT3_DATAFLASH_SPI_PINMUX_PAD2 EXT3_SPI_SERCOM_PINMUX_PAD2 |
| mbed_official | 15:a81a8d6c1dfe | 374 | #define EXT3_DATAFLASH_SPI_PINMUX_PAD3 EXT3_SPI_SERCOM_PINMUX_PAD3 |
| mbed_official | 15:a81a8d6c1dfe | 375 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 376 | |
| mbed_official | 15:a81a8d6c1dfe | 377 | /** \name USB definitions |
| mbed_official | 15:a81a8d6c1dfe | 378 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 379 | */ |
| mbed_official | 15:a81a8d6c1dfe | 380 | #define USB_ID |
| mbed_official | 15:a81a8d6c1dfe | 381 | #define USB_TARGET_DP_PIN PIN_PA25G_USB_DP |
| mbed_official | 15:a81a8d6c1dfe | 382 | #define USB_TARGET_DP_MUX MUX_PA25G_USB_DP |
| mbed_official | 15:a81a8d6c1dfe | 383 | #define USB_TARGET_DP_PINMUX PINMUX_PA25G_USB_DP |
| mbed_official | 15:a81a8d6c1dfe | 384 | #define USB_TARGET_DM_PIN PIN_PA24G_USB_DM |
| mbed_official | 15:a81a8d6c1dfe | 385 | #define USB_TARGET_DM_MUX MUX_PA24G_USB_DM |
| mbed_official | 15:a81a8d6c1dfe | 386 | #define USB_TARGET_DM_PINMUX PINMUX_PA24G_USB_DM |
| mbed_official | 15:a81a8d6c1dfe | 387 | #define USB_VBUS_PIN PIN_PA05 |
| mbed_official | 15:a81a8d6c1dfe | 388 | #define USB_VBUS_EIC_LINE 5 |
| mbed_official | 15:a81a8d6c1dfe | 389 | #define USB_VBUS_EIC_MUX MUX_PA05A_EIC_EXTINT5 |
| mbed_official | 15:a81a8d6c1dfe | 390 | #define USB_VBUS_EIC_PINMUX PINMUX_PA05A_EIC_EXTINT5 |
| mbed_official | 15:a81a8d6c1dfe | 391 | #define USB_ID_PIN PIN_PA04 |
| mbed_official | 15:a81a8d6c1dfe | 392 | #define USB_ID_EIC_LINE 4 |
| mbed_official | 15:a81a8d6c1dfe | 393 | #define USB_ID_EIC_MUX MUX_PA04A_EIC_EXTINT4 |
| mbed_official | 15:a81a8d6c1dfe | 394 | #define USB_ID_EIC_PINMUX PINMUX_PA04A_EIC_EXTINT4 |
| mbed_official | 15:a81a8d6c1dfe | 395 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 396 | |
| mbed_official | 15:a81a8d6c1dfe | 397 | /** \name Embedded debugger GPIO interface definitions |
| mbed_official | 15:a81a8d6c1dfe | 398 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 399 | */ |
| mbed_official | 15:a81a8d6c1dfe | 400 | #define EDBG_GPIO0_PIN PIN_PB22 |
| mbed_official | 15:a81a8d6c1dfe | 401 | #define EDBG_GPIO1_PIN PIN_PB23 |
| mbed_official | 15:a81a8d6c1dfe | 402 | #define EDBG_GPIO2_PIN PIN_PA22 |
| mbed_official | 15:a81a8d6c1dfe | 403 | #define EDBG_GPIO3_PIN PIN_PA24 |
| mbed_official | 15:a81a8d6c1dfe | 404 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 405 | |
| mbed_official | 15:a81a8d6c1dfe | 406 | /** \name Embedded debugger USART interface definitions |
| mbed_official | 15:a81a8d6c1dfe | 407 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 408 | */ |
| mbed_official | 15:a81a8d6c1dfe | 409 | #define EDBG_UART_MODULE -1 /* Not available on this board */ |
| mbed_official | 15:a81a8d6c1dfe | 410 | #define EDBG_UART_RX_PIN -1 /* Not available on this board */ |
| mbed_official | 15:a81a8d6c1dfe | 411 | #define EDBG_UART_RX_MUX -1 /* Not available on this board */ |
| mbed_official | 15:a81a8d6c1dfe | 412 | #define EDBG_UART_RX_PINMUX -1 /* Not available on this board */ |
| mbed_official | 15:a81a8d6c1dfe | 413 | #define EDBG_UART_RX_SERCOM_PAD -1 /* Not available on this board */ |
| mbed_official | 15:a81a8d6c1dfe | 414 | #define EDBG_UART_TX_PIN -1 /* Not available on this board */ |
| mbed_official | 15:a81a8d6c1dfe | 415 | #define EDBG_UART_TX_MUX -1 /* Not available on this board */ |
| mbed_official | 15:a81a8d6c1dfe | 416 | #define EDBG_UART_TX_PINMUX -1 /* Not available on this board */ |
| mbed_official | 15:a81a8d6c1dfe | 417 | #define EDBG_UART_TX_SERCOM_PAD -1 /* Not available on this board */ |
| mbed_official | 15:a81a8d6c1dfe | 418 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 419 | |
| mbed_official | 15:a81a8d6c1dfe | 420 | /** \name Embedded debugger I2C interface definitions |
| mbed_official | 15:a81a8d6c1dfe | 421 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 422 | */ |
| mbed_official | 15:a81a8d6c1dfe | 423 | #define EDBG_I2C_MODULE SERCOM0 |
| mbed_official | 15:a81a8d6c1dfe | 424 | #define EDBG_I2C_SERCOM_PINMUX_PAD0 PINMUX_PA08C_SERCOM0_PAD0 |
| mbed_official | 15:a81a8d6c1dfe | 425 | #define EDBG_I2C_SERCOM_PINMUX_PAD1 PINMUX_PA09C_SERCOM0_PAD1 |
| mbed_official | 15:a81a8d6c1dfe | 426 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 427 | |
| mbed_official | 15:a81a8d6c1dfe | 428 | /** \name Embedded debugger SPI interface definitions |
| mbed_official | 15:a81a8d6c1dfe | 429 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 430 | */ |
| mbed_official | 15:a81a8d6c1dfe | 431 | #define EDBG_SPI_MODULE SERCOM1 |
| mbed_official | 15:a81a8d6c1dfe | 432 | #define EDBG_SPI_SERCOM_MUX_SETTING SPI_SIGNAL_MUX_SETTING_E |
| mbed_official | 15:a81a8d6c1dfe | 433 | #define EDBG_SPI_SERCOM_PINMUX_PAD0 PINMUX_PA16C_SERCOM1_PAD0 |
| mbed_official | 15:a81a8d6c1dfe | 434 | #define EDBG_SPI_SERCOM_PINMUX_PAD1 PINMUX_UNUSED /* PA_06 */ |
| mbed_official | 15:a81a8d6c1dfe | 435 | #define EDBG_SPI_SERCOM_PINMUX_PAD2 PINMUX_PA18C_SERCOM1_PAD2 |
| mbed_official | 15:a81a8d6c1dfe | 436 | #define EDBG_SPI_SERCOM_PINMUX_PAD3 PINMUX_PA19C_SERCOM1_PAD3 |
| mbed_official | 15:a81a8d6c1dfe | 437 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 438 | |
| mbed_official | 15:a81a8d6c1dfe | 439 | /** \name Embedded debugger CDC Gateway USART interface definitions |
| mbed_official | 15:a81a8d6c1dfe | 440 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 441 | */ |
| mbed_official | 15:a81a8d6c1dfe | 442 | #define EDBG_CDC_MODULE SERCOM4 |
| mbed_official | 15:a81a8d6c1dfe | 443 | #define EDBG_CDC_SERCOM_MUX_SETTING USART_RX_3_TX_2_XCK_3 |
| mbed_official | 15:a81a8d6c1dfe | 444 | #define EDBG_CDC_SERCOM_PINMUX_PAD0 PINMUX_UNUSED |
| mbed_official | 15:a81a8d6c1dfe | 445 | #define EDBG_CDC_SERCOM_PINMUX_PAD1 PINMUX_UNUSED |
| mbed_official | 15:a81a8d6c1dfe | 446 | #define EDBG_CDC_SERCOM_PINMUX_PAD2 PINMUX_PB10D_SERCOM4_PAD2 |
| mbed_official | 15:a81a8d6c1dfe | 447 | #define EDBG_CDC_SERCOM_PINMUX_PAD3 PINMUX_PB11D_SERCOM4_PAD3 |
| mbed_official | 15:a81a8d6c1dfe | 448 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 449 | |
| mbed_official | 15:a81a8d6c1dfe | 450 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 451 | |
| mbed_official | 15:a81a8d6c1dfe | 452 | /** \name 802.15.4 TRX Interface definitions |
| mbed_official | 15:a81a8d6c1dfe | 453 | * @{ |
| mbed_official | 15:a81a8d6c1dfe | 454 | */ |
| mbed_official | 15:a81a8d6c1dfe | 455 | |
| mbed_official | 15:a81a8d6c1dfe | 456 | #define AT86RFX_SPI EXT1_SPI_MODULE |
| mbed_official | 15:a81a8d6c1dfe | 457 | #define AT86RFX_RST_PIN EXT1_PIN_7 |
| mbed_official | 15:a81a8d6c1dfe | 458 | #define AT86RFX_MISC_PIN EXT1_PIN_12 |
| mbed_official | 15:a81a8d6c1dfe | 459 | #define AT86RFX_IRQ_PIN EXT1_PIN_9 |
| mbed_official | 15:a81a8d6c1dfe | 460 | #define AT86RFX_SLP_PIN EXT1_PIN_10 |
| mbed_official | 15:a81a8d6c1dfe | 461 | #define AT86RFX_SPI_CS EXT1_PIN_15 |
| mbed_official | 15:a81a8d6c1dfe | 462 | #define AT86RFX_SPI_MOSI EXT1_PIN_16 |
| mbed_official | 15:a81a8d6c1dfe | 463 | #define AT86RFX_SPI_MISO EXT1_PIN_17 |
| mbed_official | 15:a81a8d6c1dfe | 464 | #define AT86RFX_SPI_SCK EXT1_PIN_18 |
| mbed_official | 15:a81a8d6c1dfe | 465 | #define AT86RFX_CSD EXT1_PIN_5 |
| mbed_official | 15:a81a8d6c1dfe | 466 | #define AT86RFX_CPS EXT1_PIN_8 |
| mbed_official | 15:a81a8d6c1dfe | 467 | |
| mbed_official | 15:a81a8d6c1dfe | 468 | #define AT86RFX_SPI_SERCOM_MUX_SETTING EXT1_SPI_SERCOM_MUX_SETTING |
| mbed_official | 15:a81a8d6c1dfe | 469 | #define AT86RFX_SPI_SERCOM_PINMUX_PAD0 EXT1_SPI_SERCOM_PINMUX_PAD0 |
| mbed_official | 15:a81a8d6c1dfe | 470 | #define AT86RFX_SPI_SERCOM_PINMUX_PAD1 PINMUX_UNUSED |
| mbed_official | 15:a81a8d6c1dfe | 471 | #define AT86RFX_SPI_SERCOM_PINMUX_PAD2 EXT1_SPI_SERCOM_PINMUX_PAD2 |
| mbed_official | 15:a81a8d6c1dfe | 472 | #define AT86RFX_SPI_SERCOM_PINMUX_PAD3 EXT1_SPI_SERCOM_PINMUX_PAD3 |
| mbed_official | 15:a81a8d6c1dfe | 473 | |
| mbed_official | 15:a81a8d6c1dfe | 474 | #define AT86RFX_IRQ_CHAN EXT1_IRQ_INPUT |
| mbed_official | 15:a81a8d6c1dfe | 475 | #define AT86RFX_IRQ_PINMUX EXT1_IRQ_PINMUX |
| mbed_official | 15:a81a8d6c1dfe | 476 | |
| mbed_official | 15:a81a8d6c1dfe | 477 | |
| mbed_official | 15:a81a8d6c1dfe | 478 | /** Enables the transceiver main interrupt. */ |
| mbed_official | 15:a81a8d6c1dfe | 479 | #define ENABLE_TRX_IRQ() |
| mbed_official | 15:a81a8d6c1dfe | 480 | |
| mbed_official | 15:a81a8d6c1dfe | 481 | /** Disables the transceiver main interrupt. */ |
| mbed_official | 15:a81a8d6c1dfe | 482 | #define DISABLE_TRX_IRQ() |
| mbed_official | 15:a81a8d6c1dfe | 483 | |
| mbed_official | 15:a81a8d6c1dfe | 484 | /** Clears the transceiver main interrupt. */ |
| mbed_official | 15:a81a8d6c1dfe | 485 | #define CLEAR_TRX_IRQ() |
| mbed_official | 15:a81a8d6c1dfe | 486 | |
| mbed_official | 15:a81a8d6c1dfe | 487 | /* |
| mbed_official | 15:a81a8d6c1dfe | 488 | * This macro saves the trx interrupt status and disables the trx interrupt. |
| mbed_official | 15:a81a8d6c1dfe | 489 | */ |
| mbed_official | 15:a81a8d6c1dfe | 490 | #define ENTER_TRX_REGION() |
| mbed_official | 15:a81a8d6c1dfe | 491 | |
| mbed_official | 15:a81a8d6c1dfe | 492 | /* |
| mbed_official | 15:a81a8d6c1dfe | 493 | * This macro restores the transceiver interrupt status |
| mbed_official | 15:a81a8d6c1dfe | 494 | */ |
| mbed_official | 15:a81a8d6c1dfe | 495 | #define LEAVE_TRX_REGION() |
| mbed_official | 15:a81a8d6c1dfe | 496 | |
| mbed_official | 15:a81a8d6c1dfe | 497 | /** @} */ |
| mbed_official | 15:a81a8d6c1dfe | 498 | |
| mbed_official | 15:a81a8d6c1dfe | 499 | /** |
| mbed_official | 15:a81a8d6c1dfe | 500 | * \brief Turns off the specified LEDs. |
| mbed_official | 15:a81a8d6c1dfe | 501 | * |
| mbed_official | 15:a81a8d6c1dfe | 502 | * \param led_gpio LED to turn off (LEDx_GPIO). |
| mbed_official | 15:a81a8d6c1dfe | 503 | * |
| mbed_official | 15:a81a8d6c1dfe | 504 | * \note The pins of the specified LEDs are set to GPIO output mode. |
| mbed_official | 15:a81a8d6c1dfe | 505 | */ |
| mbed_official | 15:a81a8d6c1dfe | 506 | #define LED_Off(led_gpio) port_pin_set_output_level(led_gpio,true) |
| mbed_official | 15:a81a8d6c1dfe | 507 | |
| mbed_official | 15:a81a8d6c1dfe | 508 | /** |
| mbed_official | 15:a81a8d6c1dfe | 509 | * \brief Turns on the specified LEDs. |
| mbed_official | 15:a81a8d6c1dfe | 510 | * |
| mbed_official | 15:a81a8d6c1dfe | 511 | * \param led_gpio LED to turn on (LEDx_GPIO). |
| mbed_official | 15:a81a8d6c1dfe | 512 | * |
| mbed_official | 15:a81a8d6c1dfe | 513 | * \note The pins of the specified LEDs are set to GPIO output mode. |
| mbed_official | 15:a81a8d6c1dfe | 514 | */ |
| mbed_official | 15:a81a8d6c1dfe | 515 | #define LED_On(led_gpio) port_pin_set_output_level(led_gpio,false) |
| mbed_official | 15:a81a8d6c1dfe | 516 | |
| mbed_official | 15:a81a8d6c1dfe | 517 | /** |
| mbed_official | 15:a81a8d6c1dfe | 518 | * \brief Toggles the specified LEDs. |
| mbed_official | 15:a81a8d6c1dfe | 519 | * |
| mbed_official | 15:a81a8d6c1dfe | 520 | * \param led_gpio LED to toggle (LEDx_GPIO). |
| mbed_official | 15:a81a8d6c1dfe | 521 | * |
| mbed_official | 15:a81a8d6c1dfe | 522 | * \note The pins of the specified LEDs are set to GPIO output mode. |
| mbed_official | 15:a81a8d6c1dfe | 523 | */ |
| mbed_official | 15:a81a8d6c1dfe | 524 | #define LED_Toggle(led_gpio) port_pin_toggle_output_level(led_gpio) |
| mbed_official | 15:a81a8d6c1dfe | 525 | |
| mbed_official | 15:a81a8d6c1dfe | 526 | #ifdef __cplusplus |
| mbed_official | 15:a81a8d6c1dfe | 527 | } |
| mbed_official | 15:a81a8d6c1dfe | 528 | #endif |
| mbed_official | 15:a81a8d6c1dfe | 529 | |
| mbed_official | 15:a81a8d6c1dfe | 530 | #endif /* SAMW25_XPLAINED_PRO_H_INCLUDED */ |
