Skip to content

Commit 53f69d5

Browse files
committed
create artemis module initial commit
1 parent 9bc1a7c commit 53f69d5

19 files changed

+811
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*
2+
// This file is subject to the terms and conditions defined in
3+
// file 'LICENSE.md', which is part of this source code package.
4+
*/
5+
6+
#include "bridge/pins.h"
7+
8+
const pin_size_t variantPinCount = 45;
9+
10+
PinState variantPinStates[variantPinCount] = {
11+
{D0, 0, NULL, /*NULL, NULL, NULL,*/ NULL},
12+
{D1, 1, NULL, /*NULL, NULL, NULL,*/ NULL},
13+
{D2, 2, NULL, /*NULL, NULL, NULL,*/ NULL},
14+
{D3, 3, NULL, /*NULL, NULL, NULL,*/ NULL},
15+
{D4, 4, NULL, /*NULL, NULL, NULL,*/ NULL},
16+
{D5, 5, NULL, /*NULL, NULL, NULL,*/ NULL},
17+
{D6, 6, NULL, /*NULL, NULL, NULL,*/ NULL},
18+
{D7, 7, NULL, /*NULL, NULL, NULL,*/ NULL},
19+
{D8, 8, NULL, /*NULL, NULL, NULL,*/ NULL},
20+
{D9, 9, NULL, /*NULL, NULL, NULL,*/ NULL},
21+
{D10, 10, NULL, /*NULL, NULL, NULL,*/ NULL},
22+
{D11, 11, NULL, /*NULL, NULL, NULL,*/ NULL},
23+
{D12, 12, NULL, /*NULL, NULL, NULL,*/ NULL},
24+
{D13, 13, NULL, /*NULL, NULL, NULL,*/ NULL},
25+
{D14, 14, NULL, /*NULL, NULL, NULL,*/ NULL},
26+
{D15, 15, NULL, /*NULL, NULL, NULL,*/ NULL},
27+
{D16, 16, NULL, /*NULL, NULL, NULL,*/ NULL},
28+
{D17, 17, NULL, /*NULL, NULL, NULL,*/ NULL},
29+
{D18, 18, NULL, /*NULL, NULL, NULL,*/ NULL},
30+
{D19, 19, NULL, /*NULL, NULL, NULL,*/ NULL},
31+
{D20, 20, NULL, /*NULL, NULL, NULL,*/ NULL},
32+
{D21, 21, NULL, /*NULL, NULL, NULL,*/ NULL},
33+
{D22, 22, NULL, /*NULL, NULL, NULL,*/ NULL},
34+
{D23, 23, NULL, /*NULL, NULL, NULL,*/ NULL},
35+
{D24, 24, NULL, /*NULL, NULL, NULL,*/ NULL},
36+
{D25, 25, NULL, /*NULL, NULL, NULL,*/ NULL},
37+
{D26, 26, NULL, /*NULL, NULL, NULL,*/ NULL},
38+
{D27, 27, NULL, /*NULL, NULL, NULL,*/ NULL},
39+
{D28, 28, NULL, /*NULL, NULL, NULL,*/ NULL},
40+
{D29, 29, NULL, /*NULL, NULL, NULL,*/ NULL},
41+
// {D30, 30, NULL, /*NULL, NULL, NULL,*/ NULL},
42+
{D31, 31, NULL, /*NULL, NULL, NULL,*/ NULL},
43+
{D32, 32, NULL, /*NULL, NULL, NULL,*/ NULL},
44+
{D33, 33, NULL, /*NULL, NULL, NULL,*/ NULL},
45+
{D34, 34, NULL, /*NULL, NULL, NULL,*/ NULL},
46+
{D35, 35, NULL, /*NULL, NULL, NULL,*/ NULL},
47+
{D36, 36, NULL, /*NULL, NULL, NULL,*/ NULL},
48+
{D37, 37, NULL, /*NULL, NULL, NULL,*/ NULL},
49+
{D38, 38, NULL, /*NULL, NULL, NULL,*/ NULL},
50+
{D39, 39, NULL, /*NULL, NULL, NULL,*/ NULL},
51+
{D40, 40, NULL, /*NULL, NULL, NULL,*/ NULL},
52+
{D41, 41, NULL, /*NULL, NULL, NULL,*/ NULL},
53+
{D42, 42, NULL, /*NULL, NULL, NULL,*/ NULL},
54+
{D43, 43, NULL, /*NULL, NULL, NULL,*/ NULL},
55+
{D44, 44, NULL, /*NULL, NULL, NULL,*/ NULL},
56+
{D45, 45, NULL, /*NULL, NULL, NULL,*/ NULL},
57+
};
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
// This file is subject to the terms and conditions defined in
3+
// file 'LICENSE.md', which is part of this source code package.
4+
*/
5+
6+
#ifndef _VARIANT_PINS_H_
7+
#define _VARIANT_PINS_H_
8+
9+
#define LED_BUILTIN LED1 //default is pin5, this value can be changed to a different number here
10+
// or pins can be defined in mbed and the library rebuilt
11+
12+
#endif // _VARIANT_PINS_H_
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-c -x assembler-with-cpp
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ARDUINO_BLE_FIX
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-DAM_CUSTOM_BDADDR -DAM_PACKAGE_BGA -DARDUINO_BLE_FIX -DARM_MATH_CM4 -DCORDIO_ZERO_COPY_HCI -D__CMSIS_RTOS -D__CORTEX_M4 -D__FPU_PRESENT=1 -D__MBED_CMSIS_RTOS_CM
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-c -std=gnu11 -DMBED_MINIMAL_PRINTF -DMBED_TRAP_ERRORS_ENABLED=1 -Os -fdata-sections -ffunction-sections -fmessage-length=0 -fno-exceptions -fomit-frame-pointer -funsigned-char -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ARDUINO_BLE_FIX
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-DAM_CUSTOM_BDADDR -DAM_PACKAGE_BGA -DARDUINO_BLE_FIX -DARM_MATH_CM4 -DCOMPONENT_FLASHIAP=1 -DCORDIO_ZERO_COPY_HCI -DDEVICE_FLASH=1 -DDEVICE_I2C=1 -DDEVICE_INTERRUPTIN=1 -DDEVICE_LPTICKER=1 -DDEVICE_MPU=1 -DDEVICE_SERIAL=1 -DDEVICE_SPI=1 -DDEVICE_STDIO_MESSAGES=1 -DDEVICE_USTICKER=1 -DFEATURE_BLE=1 -DTARGET_AMA3B1KK -DTARGET_Ambiq_Micro -DTARGET_Apollo3 -DTARGET_CORDIO -DTARGET_CORTEX -DTARGET_CORTEX_M -DTARGET_FAMILY_Apollo3 -DTARGET_LIKE_CORTEX_M4 -DTARGET_LIKE_MBED -DTARGET_M4 -DTARGET_NAME=SFE_ARTEMIS_MODULE -DTARGET_RELEASE -DTARGET_RTOS_M4_M7 -DTARGET_SFE_ARTEMIS_MODULE -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -D__CMSIS_RTOS -D__CORTEX_M4 -D__FPU_PRESENT=1 -D__MBED_CMSIS_RTOS_CM -D__MBED__=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-c -fno-rtti -std=gnu++14 -DMBED_MINIMAL_PRINTF -DMBED_TRAP_ERRORS_ENABLED=1 -Os -fdata-sections -ffunction-sections -fmessage-length=0 -fno-exceptions -fomit-frame-pointer -funsigned-char -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ARDUINO_BLE_FIX
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-DAM_CUSTOM_BDADDR -DAM_PACKAGE_BGA -DARDUINO_BLE_FIX -DARM_MATH_CM4 -DCOMPONENT_FLASHIAP=1 -DCORDIO_ZERO_COPY_HCI -DDEVICE_FLASH=1 -DDEVICE_I2C=1 -DDEVICE_INTERRUPTIN=1 -DDEVICE_LPTICKER=1 -DDEVICE_MPU=1 -DDEVICE_SERIAL=1 -DDEVICE_SPI=1 -DDEVICE_STDIO_MESSAGES=1 -DDEVICE_USTICKER=1 -DFEATURE_BLE=1 -DTARGET_AMA3B1KK -DTARGET_Ambiq_Micro -DTARGET_Apollo3 -DTARGET_CORDIO -DTARGET_CORTEX -DTARGET_CORTEX_M -DTARGET_FAMILY_Apollo3 -DTARGET_LIKE_CORTEX_M4 -DTARGET_LIKE_MBED -DTARGET_M4 -DTARGET_NAME=SFE_ARTEMIS_MODULE -DTARGET_RELEASE -DTARGET_RTOS_M4_M7 -DTARGET_SFE_ARTEMIS_MODULE -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -D__CMSIS_RTOS -D__CORTEX_M4 -D__FPU_PRESENT=1 -D__MBED_CMSIS_RTOS_CM -D__MBED__=1

0 commit comments

Comments
 (0)