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.
mbed-os/targets/TARGET_WIZNET/TARGET_W7500x/PeripheralNames.h@0:6bf0743ece18, 2020-03-28 (annotated)
- Committer:
- demayer
- Date:
- Sat Mar 28 15:28:19 2020 +0000
- Revision:
- 0:6bf0743ece18
IMU Thread with an event-queue running parallel to handle tasks like a 5 times blinking LED. Button with interrupt detected.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| demayer | 0:6bf0743ece18 | 1 | /* mbed Microcontroller Library |
| demayer | 0:6bf0743ece18 | 2 | ******************************************************************************* |
| demayer | 0:6bf0743ece18 | 3 | * Copyright (c) 2015 WIZnet Co.,Ltd. All rights reserved. |
| demayer | 0:6bf0743ece18 | 4 | * All rights reserved. |
| demayer | 0:6bf0743ece18 | 5 | * |
| demayer | 0:6bf0743ece18 | 6 | * Redistribution and use in source and binary forms, with or without |
| demayer | 0:6bf0743ece18 | 7 | * modification, are permitted provided that the following conditions are met: |
| demayer | 0:6bf0743ece18 | 8 | * |
| demayer | 0:6bf0743ece18 | 9 | * 1. Redistributions of source code must retain the above copyright notice, |
| demayer | 0:6bf0743ece18 | 10 | * this list of conditions and the following disclaimer. |
| demayer | 0:6bf0743ece18 | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
| demayer | 0:6bf0743ece18 | 12 | * this list of conditions and the following disclaimer in the documentation |
| demayer | 0:6bf0743ece18 | 13 | * and/or other materials provided with the distribution. |
| demayer | 0:6bf0743ece18 | 14 | * 3. Neither the name of ARM Limited nor the names of its contributors |
| demayer | 0:6bf0743ece18 | 15 | * may be used to endorse or promote products derived from this software |
| demayer | 0:6bf0743ece18 | 16 | * without specific prior written permission. |
| demayer | 0:6bf0743ece18 | 17 | * |
| demayer | 0:6bf0743ece18 | 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| demayer | 0:6bf0743ece18 | 19 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| demayer | 0:6bf0743ece18 | 20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| demayer | 0:6bf0743ece18 | 21 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| demayer | 0:6bf0743ece18 | 22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| demayer | 0:6bf0743ece18 | 23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| demayer | 0:6bf0743ece18 | 24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| demayer | 0:6bf0743ece18 | 25 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| demayer | 0:6bf0743ece18 | 26 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| demayer | 0:6bf0743ece18 | 27 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| demayer | 0:6bf0743ece18 | 28 | ******************************************************************************* |
| demayer | 0:6bf0743ece18 | 29 | */ |
| demayer | 0:6bf0743ece18 | 30 | |
| demayer | 0:6bf0743ece18 | 31 | #ifndef MBED_PERIPHERALNAMES_H |
| demayer | 0:6bf0743ece18 | 32 | #define MBED_PERIPHERALNAMES_H |
| demayer | 0:6bf0743ece18 | 33 | |
| demayer | 0:6bf0743ece18 | 34 | #include "cmsis.h" |
| demayer | 0:6bf0743ece18 | 35 | #include "PinNames.h" |
| demayer | 0:6bf0743ece18 | 36 | #ifdef __cplusplus |
| demayer | 0:6bf0743ece18 | 37 | extern "C" { |
| demayer | 0:6bf0743ece18 | 38 | #endif |
| demayer | 0:6bf0743ece18 | 39 | |
| demayer | 0:6bf0743ece18 | 40 | typedef enum { |
| demayer | 0:6bf0743ece18 | 41 | ADC_0 = (int)W7500x_ADC_BASE |
| demayer | 0:6bf0743ece18 | 42 | } ADCName; |
| demayer | 0:6bf0743ece18 | 43 | |
| demayer | 0:6bf0743ece18 | 44 | typedef enum { |
| demayer | 0:6bf0743ece18 | 45 | UART_0 = (int)W7500x_UART0_BASE, |
| demayer | 0:6bf0743ece18 | 46 | UART_1 = (int)W7500x_UART1_BASE, |
| demayer | 0:6bf0743ece18 | 47 | UART_2 = (int)W7500x_UART2_BASE |
| demayer | 0:6bf0743ece18 | 48 | } UARTName; |
| demayer | 0:6bf0743ece18 | 49 | |
| demayer | 0:6bf0743ece18 | 50 | |
| demayer | 0:6bf0743ece18 | 51 | typedef enum { |
| demayer | 0:6bf0743ece18 | 52 | SPI_0 = (int)SSP0_BASE, |
| demayer | 0:6bf0743ece18 | 53 | SPI_1 = (int)SSP1_BASE |
| demayer | 0:6bf0743ece18 | 54 | } SPIName; |
| demayer | 0:6bf0743ece18 | 55 | |
| demayer | 0:6bf0743ece18 | 56 | typedef enum { |
| demayer | 0:6bf0743ece18 | 57 | I2C_0 = (int)I2C0_BASE, |
| demayer | 0:6bf0743ece18 | 58 | I2C_1 = (int)I2C1_BASE |
| demayer | 0:6bf0743ece18 | 59 | } I2CName; |
| demayer | 0:6bf0743ece18 | 60 | |
| demayer | 0:6bf0743ece18 | 61 | typedef enum { |
| demayer | 0:6bf0743ece18 | 62 | PWM_0 = (int)PWM_CH0_BASE, |
| demayer | 0:6bf0743ece18 | 63 | PWM_1 = (int)PWM_CH1_BASE, |
| demayer | 0:6bf0743ece18 | 64 | PWM_2 = (int)PWM_CH2_BASE, |
| demayer | 0:6bf0743ece18 | 65 | PWM_3 = (int)PWM_CH3_BASE, |
| demayer | 0:6bf0743ece18 | 66 | PWM_4 = (int)PWM_CH4_BASE, |
| demayer | 0:6bf0743ece18 | 67 | PWM_5 = (int)PWM_CH5_BASE, |
| demayer | 0:6bf0743ece18 | 68 | PWM_6 = (int)PWM_CH6_BASE, |
| demayer | 0:6bf0743ece18 | 69 | PWM_7 = (int)PWM_CH7_BASE |
| demayer | 0:6bf0743ece18 | 70 | } PWMName; |
| demayer | 0:6bf0743ece18 | 71 | |
| demayer | 0:6bf0743ece18 | 72 | #ifdef __cplusplus |
| demayer | 0:6bf0743ece18 | 73 | } |
| demayer | 0:6bf0743ece18 | 74 | #endif |
| demayer | 0:6bf0743ece18 | 75 | |
| demayer | 0:6bf0743ece18 | 76 | #endif |