Skip to content

Adi cog candidate #5097

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 162 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
162 commits
Select commit Hold shift + click to select a range
f5e1152
Initial check-in for ADuCM3029 target
Jan 4, 2017
ffe6e59
added ADuCM3029 target information
Jan 4, 2017
fd1752c
add trng_api.c for ADuCM3029
Jan 6, 2017
463c75f
add "TRNG" to ADuCM3029's "device_has"
Jan 6, 2017
4d7c475
Convert '\' to '/' since '\' cannot be compiled in linux
Jan 11, 2017
a2b07e5
- Changed pin_function routine in pinmap to write the mux values corr…
dave-wu Jan 30, 2017
3374298
Added sleep functions.
dave-wu Feb 9, 2017
9aeac30
- Added GPIO interrupt support;
dave-wu Feb 23, 2017
99f68c7
Removed declaration of IVT table in RAM to avoid the generation of la…
dave-wu Feb 24, 2017
d56228a
Revert "Removed declaration of IVT table in RAM to avoid the generati…
dave-wu Feb 24, 2017
5990e64
Use NOLOAD in LD to prevent the generation of large bin files.
dave-wu Feb 24, 2017
5f50d76
1 removed misplaced .mbedignore
Mar 1, 2017
2e5cbc7
fixed incorrect INITIAL_SP address in mbed_rtx.h which cause fail in …
Mar 1, 2017
893934e
enable EVAL-ADICUP3029
Mar 1, 2017
df4e158
Fixed misplaced TIMER_CLK_FREQ_MHZ and TIMER_PRESCALER in us_ticker.c
Mar 3, 2017
608ebe2
Real Time Clock API for ADuCM3029
victor052 Mar 7, 2017
3cc600a
Added macro RTC
victor052 Mar 7, 2017
09dd5fc
move files to right folders for future BSP upgrade
Mar 10, 2017
3e7b437
Upgrade BSP to released ADuCM302x_DFP.1.0.4
Mar 14, 2017
df3da5d
Added low power ticker.
dave-wu Mar 15, 2017
37cf887
changes for SPI on the aducm3029
mtrommer Mar 15, 2017
06e95be
fixed timestamp backward drift issues in test suite:
Mar 15, 2017
b5aaf09
Set the clock source to 32 kHz internal before calling adi_rtc_Open()
victor052 Mar 20, 2017
331c937
added aducm4050 target
Jan 17, 2017
bc63da7
Added files for ADUCM4050.
dave-wu Jan 17, 2017
d108869
Fixed incorrect driver state buffer sizing.
dave-wu Jan 18, 2017
d8e5c22
Now clear the appropriate GPIO mux configuration bits before setting …
dave-wu Jan 19, 2017
dd11542
added UART_1 to pinmap
Jan 20, 2017
9d2736c
update serial_api.c to support UART_0 and UART_1
Jan 24, 2017
7d00bb1
add trng for ADuCM4050
Jan 24, 2017
b48bec8
Changed the TRNG length count to generate better random numbers. Also…
dave-wu Jan 30, 2017
9e1a698
provide correct ID in UART callback
Jan 30, 2017
7cfaae1
Added sleep and deepsleep functions.
dave-wu Feb 9, 2017
c2596ac
move bsp files to right folder
Feb 22, 2017
cc4aa8a
upgrade bsp pack to 170221
Feb 22, 2017
0de94f6
enable ADUCM4050 EZKIT greentea test automation
Feb 22, 2017
389f62c
- Fixed some issues with the sleep functions;
dave-wu Feb 23, 2017
ec6e259
committed the modified gpio_api.c and sleep functions.
dave-wu Feb 23, 2017
5ffc155
Removed declaration of IVT table in RAM to avoid the generation of la…
dave-wu Feb 24, 2017
f3a61d4
Revert "Removed declaration of IVT table in RAM to avoid the generati…
dave-wu Feb 24, 2017
2b4d024
- Found a better way to not include the RAM sections in bin file by u…
dave-wu Feb 24, 2017
ce87dc9
fix us_ticker fails in the following 4 test suites:
Feb 27, 2017
48b1732
Upgrade BSP to released ADuCM4x50_DFP.1.0.0
Mar 10, 2017
3a0ac52
Added low power ticker.
dave-wu Mar 14, 2017
e722bf3
Added define to enable lp ticker.
dave-wu Mar 14, 2017
07cf82d
fixed us_ticker.c timer accuracy issues in test suite:
Mar 15, 2017
95112a0
added device has RTC for ADUCM4050
victor052 Mar 21, 2017
6ef0ecb
mbed RTC api wrapper for ADUCM4050
victor052 Mar 21, 2017
4ab527b
Merged ADUCM3029 and ADUCM4050 target descriptions.
dave-wu Mar 23, 2017
b4e149f
Enabled Keil toolchain build for adicup3029
Mar 30, 2017
df31b21
Allocated 48 KB DSRAM for bss
Apr 4, 2017
0b34c35
Enableed 124 KB DSRAM for ADUCM4050 ARM
Apr 4, 2017
91a54f2
Merged the changes on the ADUCM4050 branch into the master branch, ad…
dave-wu Apr 6, 2017
23ea614
changes to support two 4050 packages
mtrommer Apr 7, 2017
781c657
64KB DSRAM for ADuCM3029 GCC
Apr 12, 2017
05b0c15
added IAR port for ADuCM4050
Apr 19, 2017
5efb873
removed *(.bss*) from a 16KB memory region
Apr 19, 2017
ae17c30
1. Removed stack and heap array declarations in startup code for GCC …
dave-wu Apr 20, 2017
99f0382
added IAR port for ADuCM3029
Apr 20, 2017
c635422
moved startup_ADuCM3029.c and system_ADuCM3029.c to right place
Apr 20, 2017
2aac7ad
removed unused user defined routines:
Apr 28, 2017
d9010da
Disabled interrupt disabling when short alarms are used. This is to f…
dave-wu May 1, 2017
f15bdbf
Merge branch 'master' of https://github.com/ARMmbed/mbed-os release 5…
dave-wu May 1, 2017
1573118
Updated sleep API function names to the 5.4.4 HAL API names.
dave-wu May 2, 2017
44bf35e
added FLASH_ALGO for ADUCM3029
May 3, 2017
70fcacd
added I2C wrapper to ADUCM4050, plus some minor changes to spi wrapper
mtrommer May 4, 2017
a6b48e1
added I2C for ADUCM4050 to targets.json
mtrommer May 4, 2017
91994dd
FLASH_ALGO for ADuCM4050
May 4, 2017
f16769b
Added some fields recommended by ARM.
dave-wu May 5, 2017
fe77553
Merged with the HEAD revision.
dave-wu May 5, 2017
95cda04
Reformatted the source files to comply with K&R style which is requir…
dave-wu May 5, 2017
087ddcf
files for ADUCM4050 Analog-Digital converter
victor052 May 8, 2017
a858edd
changes to static, dynamic build options for i2c & spi for aducm4050
mtrommer May 8, 2017
7595d5f
added #include for adi_adc.h, as library won't build
mtrommer May 8, 2017
3c8d7d2
Removed un-referenced peripheral pinmaps; Correct the usage of adi_gp…
dave-wu May 9, 2017
7228b97
Merged with changes in master branch.
dave-wu May 9, 2017
3e58d9b
added pin functions to ADUCM4050 ADC mbed api
victor052 May 12, 2017
8e4b34d
mbed api files for ADUCM3029 ADC
victor052 May 12, 2017
59f57ac
mbed api files for ADUCM3029 ADC
victor052 May 12, 2017
35daf0b
Merge branch 'master' of https://gitlab.analog.com/Dwu/mbed-os
victor052 May 12, 2017
e27f9e0
added adi_adc include file
victor052 May 12, 2017
03904b1
WLCSP has no Port 2 MUX for ADC0_VIN7
victor052 May 12, 2017
54efa5e
enable adc for ADUCM3029
victor052 May 15, 2017
ca71ebe
removed unused macro from i2c wrapper & added return value for spi_ma…
mtrommer May 17, 2017
8bfed0c
added return code checking, and cleaned up code for 4050 i2c & spi
mtrommer May 17, 2017
196872a
merging with the master
mtrommer May 17, 2017
11c5ef2
Merge branch 'master' of https://gitlab.analog.com/Dwu/mbed-os
mtrommer May 17, 2017
914596b
Removed the handling of enable flag since the callback registration d…
dave-wu May 11, 2017
d5edf3a
Removed old BSP files.
dave-wu May 11, 2017
c1e0489
Added new Glue BSP files.
dave-wu May 11, 2017
d2298e4
Updated HAL api wrappers to work with the latest BSP drivers.
dave-wu May 12, 2017
66d2a3f
Updated the BSP version to w1705112 interim build.
dave-wu May 12, 2017
0a1c7b1
ported 3029 to use new driver api
mtrommer May 16, 2017
76b9da1
fixed indentation
mtrommer May 17, 2017
f9ad11f
added bracket to eliminate build warning.
dave-wu May 17, 2017
70ebff1
- Merged with Glue_BSP_Update branch;
dave-wu May 18, 2017
9d89abe
Merge branch 'master' of https://gitlab.analog.com/Dwu/mbed-os
mtrommer May 18, 2017
5dcc9c9
added polarity & phase driver calls to spi glu wrapper
mtrommer May 22, 2017
d95353d
removed unused variable, added mbed_assert, cosmetic changes
victor052 May 22, 2017
b8f2ade
Merge branch 'master' of https://gitlab.analog.com/Dwu/mbed-os
victor052 May 22, 2017
747fa43
removed duplicated STACK_TOP address which is the same as INITIAL_SP …
May 23, 2017
1a0c44b
Move ADuCM4050 STACK_TOP to 0x20048000
May 23, 2017
ca5bd1a
move 0x1800 bytes from bss2 to bss if .bss.os_thread_def_stack_event_…
May 23, 2017
b71b6f1
same adc api file as for ADUCM4050, averaging commented out
victor052 May 26, 2017
ed9ce83
simplified adc config, DMA, 2,5V, no comparator
victor052 May 26, 2017
99c7bfc
Merge branch 'master' of https://gitlab.analog.com/Dwu/mbed-os
victor052 May 26, 2017
96f01ca
Moved all the files to the TARGET_EVAL_ADICUP3029 subfolder to be con…
dave-wu May 30, 2017
d85e6aa
Updated BSP files to Release 2.0.0 of the BSP; Modified us_ticker.c t…
dave-wu Jun 1, 2017
8d97322
Changed the ADUCM4050 ezkit name to the official ADZS_U4050LF_EZKIT n…
dave-wu Jun 1, 2017
6c145d0
Added folder for the EV-COG-AD4050LZ board.
dave-wu Jun 1, 2017
77d8a01
Updated legal header block.
dave-wu Jun 5, 2017
049b1d1
move bsp and linker scripts to shareable folders
Jun 6, 2017
ee37006
move .mbedignore with bsp
Jun 6, 2017
0f783ed
add ADuCM4x50 Tile as new target
Jun 7, 2017
d4253ed
add EV_COG_AD4050LZ to targets.json and mbed_rtx.h
Jun 7, 2017
03bc08b
move api to be shareable by all ADuCM3029 targets
Jun 7, 2017
2c73461
Rename adicup3029 LED pins according to color order
Jun 7, 2017
279c172
add ADuCM302x Tile as new target
Jun 8, 2017
71c3342
Turn off both adicup3029 LEDs when Reset_Handler is called
Jun 8, 2017
d1390d0
Merge branch 'master' of https://github.com/ARMmbed/mbed-os to mbed-o…
dave-wu Jun 29, 2017
ef1c140
Changes to build and run with mbed-os 5.5.0:
dave-wu Jun 29, 2017
ee1c00a
Files for TLS Hardware acceleration on ADuCM4050
victor052 Jul 7, 2017
9695f4c
removed inappropriate #define enabling callback
victor052 Jul 7, 2017
b64669d
Enable Tile board (3029) LED at soft reset
Jul 7, 2017
f18ec96
New us ticker to fix racing conditions of timer register reads, and t…
dave-wu Jul 10, 2017
f3dde06
Fixed pin assignment for PB0 and PB1
Jul 10, 2017
6edec99
case sensitive filename for Linux GCC
Jul 11, 2017
6a42f61
- Fixed LP ticker test failure;
dave-wu Jul 19, 2017
b3999b9
Merge branch 'master' of https://github.com/ARMmbed/mbed-os
dave-wu Jul 20, 2017
b5de8cd
- Added us_ticker_fire_interrupt and lp_ticker_fire_interrupt routine…
dave-wu Jul 20, 2017
fa493a9
- Reformatted to the required K&R style;
dave-wu Jul 28, 2017
5d38fcb
Merge branch 'master' of https://github.com/ARMmbed/mbed-os
dave-wu Aug 2, 2017
96637c9
hardware support file for ADuCM4050 AES
victor052 Aug 2, 2017
8e3b0e7
hardware support file for ADuCM4050 AES
victor052 Aug 2, 2017
90bd122
hardware support for ADuCM4050 AES
victor052 Aug 2, 2017
b5bfc20
enabled aes macros required for compile if MBEDTLS_AES_ALT is defined
victor052 Aug 2, 2017
24d3caa
- Updated SPI API function to the latest HAL definitions;
dave-wu Aug 3, 2017
14303d3
_ALT #defines moved to mbedtls_device.h
victor052 Aug 3, 2017
b079f69
added _ALT #defines - moved from config.h
victor052 Aug 3, 2017
353f9ed
include file platform.h and added #define for callback
victor052 Aug 3, 2017
9ad1e4d
#defines replaced with _ALT #defines
victor052 Aug 3, 2017
87c8d8f
commented out callback #define
victor052 Aug 3, 2017
cb8cf0f
renamed aes encryption/decryption to internal
victor052 Aug 4, 2017
e5e9b14
renamed aes encryption/decryption to internal
victor052 Aug 4, 2017
0830122
Merged with mbed-os 5.5.4
dave-wu Aug 7, 2017
e2d782c
Merge branch 'master' of https://gitlab.analog.com/Dwu/mbed-os
dave-wu Aug 7, 2017
1c7fc26
- Added start up code to enable FPU if Coretex-M4F is specified as th…
dave-wu Aug 10, 2017
0a5db27
Fixed an issue where the RTC counter value for setting the alarm is n…
dave-wu Aug 11, 2017
47f562e
Updated arduino pin map macros
mtrommer Aug 15, 2017
c826383
updated arduino pin macros for ADICUP3029
mtrommer Aug 15, 2017
a860f79
Fixed LED2, PB0 and PB1 pin mappings, Added system wake INT pin defin…
Aug 17, 2017
9dbe818
Updated ADI platforms - added hardware name to macros list to differe…
Aug 17, 2017
4d3385a
- Updated the pin names for all platforms;
dave-wu Aug 22, 2017
1445d59
Merge branch 'master' of https://github.com/ARMmbed/mbed-os version 5…
dave-wu Aug 23, 2017
a127ab0
Fixed security options for all supported toolchains
Aug 24, 2017
44a7977
Merge https://github.com/ARMmbed/mbed-os mbed-os v5.5.6
dave-wu Aug 31, 2017
0c551f3
Add iar export support for ADuCM3029 and ADuCM4050 platforms
Sep 1, 2017
127b028
removed averaging from the init() function
victor052 Sep 1, 2017
607b34c
Merge remote-tracking branch 'origin/master'
victor052 Sep 1, 2017
326ad74
removed averqaging from the init() function
victor052 Sep 6, 2017
be4d72e
Added default thread stack size definition, set to 1KiB instead of 4K…
dave-wu Sep 12, 2017
324fcde
Created a new branch and cleaned up unneeded files for a pull request…
dave-wu Sep 13, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
bsp/adc/adi_adc_data.c
bsp/adc/adi_adc_data_v1.c
bsp/adc/adi_adc_v1.c
bsp/beep/adi_beep_v1.c
bsp/crc/adi_crc_data.c
bsp/crc/adi_crc_v1.c
bsp/crypto/adi_crypto_v1.c
bsp/dma/adi_dma_pl230_v2.c
bsp/flash/adi_flash_data.c
bsp/flash/adi_flash_v1.c
bsp/gpio/adi_gpio_v1.c
bsp/i2c/adi_i2c_data.c
bsp/i2c/adi_i2c_v1.c
bsp/pwr/adi_pwr_v1.c
bsp/rtc/adi_rtc_data.c
bsp/spi/adi_spi_data.c
bsp/tmr/adi_tmr_data.c
bsp/rtc/adi_rtc_data_v1.c
bsp/rtc/adi_rtc_v1.c
bsp/sport/adi_sport_data_v1.c
bsp/sport/adi_sport_v1.c
bsp/uart/adi_uart_data_v1.c
bsp/uart/adi_uart_v1.c
bsp/spi/adi_spi_data_v1.c
bsp/spi/adi_spi_v1.c
bsp/tmr/adi_tmr_data_v1.c
bsp/tmr/adi_tmr_v1.c
bsp/wdt/adi_wdt_v1.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
/*******************************************************************************
* Copyright (c) 2010-2017 Analog Devices, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* - Modified versions of the software must be conspicuously marked as such.
* - This software is licensed solely and exclusively for use with processors
* manufactured by or for Analog Devices, Inc.
* - This software may not be combined or merged with other code in any manner
* that would cause the software to become subject to terms and conditions
* which differ from those listed here.
* - Neither the name of Analog Devices, Inc. nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
* - The use of this software may or may not infringe the patent rights of one
* or more patent holders. This license does not release you from the
* requirement that you obtain separate licenses from these patent holders
* to use this software.
*
* THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-
* INFRINGEMENT, TITLE, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, PUNITIVE OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, DAMAGES ARISING OUT OF
* CLAIMS OF INTELLECTUAL PROPERTY RIGHTS INFRINGEMENT; PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
******************************************************************************/

#ifndef MBED_PINNAMES_H
#define MBED_PINNAMES_H

#include "cmsis.h"

#include "adi_gpio.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef enum {
PIN_INPUT,
PIN_OUTPUT
} PinDirection;

//update

#define GPIO_PORT_SHIFT 12


typedef enum {
P0_00 = (0 << GPIO_PORT_SHIFT | 0 ),
P0_01 = (0 << GPIO_PORT_SHIFT | 1 ),
P0_02 = (0 << GPIO_PORT_SHIFT | 2 ),
P0_03 = (0 << GPIO_PORT_SHIFT | 3 ),
P0_04 = (0 << GPIO_PORT_SHIFT | 4 ),
P0_05 = (0 << GPIO_PORT_SHIFT | 5 ),
P0_06 = (0 << GPIO_PORT_SHIFT | 6 ),
P0_07 = (0 << GPIO_PORT_SHIFT | 7 ),
P0_08 = (0 << GPIO_PORT_SHIFT | 8 ),
P0_09 = (0 << GPIO_PORT_SHIFT | 9 ),
P0_10 = (0 << GPIO_PORT_SHIFT | 10),
P0_11 = (0 << GPIO_PORT_SHIFT | 11),
P0_12 = (0 << GPIO_PORT_SHIFT | 12),
P0_13 = (0 << GPIO_PORT_SHIFT | 13),
P0_14 = (0 << GPIO_PORT_SHIFT | 14),
P0_15 = (0 << GPIO_PORT_SHIFT | 15),
P1_00 = (1 << GPIO_PORT_SHIFT | 0 ),
P1_01 = (1 << GPIO_PORT_SHIFT | 1 ),
P1_02 = (1 << GPIO_PORT_SHIFT | 2 ),
P1_03 = (1 << GPIO_PORT_SHIFT | 3 ),
P1_04 = (1 << GPIO_PORT_SHIFT | 4 ),
P1_05 = (1 << GPIO_PORT_SHIFT | 5 ),
P1_06 = (1 << GPIO_PORT_SHIFT | 6 ),
P1_07 = (1 << GPIO_PORT_SHIFT | 7 ),
P1_08 = (1 << GPIO_PORT_SHIFT | 8 ),
P1_09 = (1 << GPIO_PORT_SHIFT | 9 ),
P1_10 = (1 << GPIO_PORT_SHIFT | 10),
P1_11 = (1 << GPIO_PORT_SHIFT | 11),
P1_12 = (1 << GPIO_PORT_SHIFT | 12),
P1_13 = (1 << GPIO_PORT_SHIFT | 13),
P1_14 = (1 << GPIO_PORT_SHIFT | 14),
P1_15 = (1 << GPIO_PORT_SHIFT | 15),
P2_00 = (2 << GPIO_PORT_SHIFT | 0 ),
P2_01 = (2 << GPIO_PORT_SHIFT | 1 ),
P2_02 = (2 << GPIO_PORT_SHIFT | 2 ),
P2_03 = (2 << GPIO_PORT_SHIFT | 3 ),
P2_04 = (2 << GPIO_PORT_SHIFT | 4 ),
P2_05 = (2 << GPIO_PORT_SHIFT | 5 ),
P2_06 = (2 << GPIO_PORT_SHIFT | 6 ),
P2_07 = (2 << GPIO_PORT_SHIFT | 7 ),
P2_08 = (2 << GPIO_PORT_SHIFT | 8 ),
P2_09 = (2 << GPIO_PORT_SHIFT | 9 ),
P2_10 = (2 << GPIO_PORT_SHIFT | 10),
P2_11 = (2 << GPIO_PORT_SHIFT | 11),

// USB Pins
USBTX = P0_10,
USBRX = P0_11,
USBTX1 = P1_15,
USBRX1 = P2_00,

// mbed original LED naming
LED1 = P2_02,
LED2 = P2_10,
LED3 = LED2,
LED4 = LED1,

//Push buttons
PB0 = P1_00, // BTN1
PB1 = P0_09, // BTN2
BOOT = P1_01,
WAKE0 = P0_15, // JP15 to select
WAKE1 = P1_00, // JP8 (BTN1 jumper) to select
WAKE2 = P0_13, // JP4 to select
WAKE3 = P2_01, // JP15 to select

// SPI Pins
SPI0_SCLK = P0_00,
SPI0_MOSI = P0_01,
SPI0_MISO = P0_02,
SPI0_CS0 = P0_03,
SPI0_CS1 = P1_10,
SPI0_CS2 = P2_08,
SPI0_CS3 = P2_09,

SPI1_SCLK = P1_06,
SPI1_MOSI = P1_07,
SPI1_MISO = P1_08,
SPI1_CS0 = P1_09,
SPI1_CS1 = P2_11,
SPI1_CS2 = P2_02,
SPI1_CS3 = P1_10,

SPI2_SCLK = P1_02,
SPI2_MOSI = P1_03,
SPI2_MISO = P1_04,
SPI2_CS0 = P1_05,
SPI2_CS1 = P0_09,
SPI2_CS2 = P2_10,
SPI2_CS3 = P2_07,

// ADC Pins
ADC_VIN0 = P2_03,
ADC_VIN1 = P2_04,
ADC_VIN2 = P2_05,
ADC_VIN3 = P2_06,
ADC_VIN4 = P2_07,
ADC_VIN5 = P2_08,
ADC_VIN6 = P2_09,
ADC_VIN7 = P2_10,

// Arduino Headers
D0 = P0_10, // UART0_TXD
D1 = P0_11, // UART0_RXD
D2 = P0_15, // INT_WAKE0
D3 = P0_13, // EXT_INT_WAKE2
D4 = P0_09, // EXT_SPI2_CS1
D5 = P2_01, // INT_WAKE3 or EXT_RTC1_SS1 via JP8
D6 = P1_11, // GPIO_27
D7 = P0_12, // GPIO_08 or GPIO_12 via JP7

D8 = P1_12, // GPIO_28
D9 = P1_14, // GPIO_30
D10 = SPI0_CS2, // P2_08
D11 = SPI0_MOSI, // P0_01
D12 = SPI0_MISO, // P0_02
D13 = SPI0_SCLK, // P0_00
I2C_SCL = P0_04, // I2C_SCL
I2C_SDA = P0_05, // I2C_SDA

A0 = P2_03, // ADC0
A1 = P2_04, // EXT_ADC1
A2 = P2_05, // EXT_ADC2
A3 = P2_06, // ADC3
A4 = P2_07, // SPI2_CS3/ADC_VIN4
A5 = P2_10, // EXT_GPIO42/ADC_VIN7

// Not connected
NC = (int)0xFFFFFFFF
} PinName;


typedef enum {
PullNone = 0,
PullDown = 1,
PullUp = 2,
PullDefault = PullNone
} PinMode;

#ifdef __cplusplus
}
#endif

#endif
Loading