Skip to content

Commit 0c09f10

Browse files
committed
Zigbee support take1
1 parent 75baa76 commit 0c09f10

File tree

180 files changed

+57367
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+57367
-2
lines changed

boards.txt

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,3 +1090,42 @@ SeeedArchLink.menu.softdevice.s130.upload.maximum_size=151552
10901090
SeeedArchLink.menu.softdevice.s130.build.extra_flags=-DNRF51 -DS130 -DNRF51_S130
10911091
SeeedArchLink.menu.softdevice.s130.build.ldscript=armgcc_s130_nrf51822_xxaa.ld
10921092

1093+
Arduino_nano_33_BLE.name=Arduino Nano 33 BLE
1094+
1095+
Arduino_nano_33_BLE.upload.tool=bossac
1096+
Arduino_nano_33_BLE.upload.protocol=
1097+
Arduino_nano_33_BLE.upload.use_1200bps_touch=true
1098+
Arduino_nano_33_BLE.upload.wait_for_upload_port=true
1099+
Arduino_nano_33_BLE.upload.native_usb=true
1100+
Arduino_nano_33_BLE.upload.maximum_size=983040
1101+
Arduino_nano_33_BLE.upload.maximum_data_size=262144
1102+
1103+
Arduino_nano_33_BLE.bootloader.tool=sandeepmistry:openocd
1104+
1105+
Arduino_nano_33_BLE.build.mcu=cortex-m4
1106+
Arduino_nano_33_BLE.build.f_cpu=16000000
1107+
Arduino_nano_33_BLE.build.board=GENERIC
1108+
Arduino_nano_33_BLE.build.core=nRF5
1109+
Arduino_nano_33_BLE.build.variant=ArduinoNano33BLE
1110+
Arduino_nano_33_BLE.build.variant_system_lib=
1111+
Arduino_nano_33_BLE.build.extra_flags=-DNRF52840_XXAA
1112+
Arduino_nano_33_BLE.build.float_flags=-mfloat-abi=hard -mfpu=fpv4-sp-d16
1113+
Arduino_nano_33_BLE.build.ldscript=nrf52840_xxaa.ld
1114+
1115+
Arduino_nano_33_BLE.menu.softdevice.none=None
1116+
Arduino_nano_33_BLE.menu.softdevice.none.softdevice=none
1117+
Arduino_nano_33_BLE.menu.softdevice.none.softdeviceversion=
1118+
1119+
Arduino_nano_33_BLE.menu.softdevice.s132=S132
1120+
Arduino_nano_33_BLE.menu.softdevice.s132.softdevice=s132
1121+
Arduino_nano_33_BLE.menu.softdevice.s132.softdeviceversion=2.0.1
1122+
Arduino_nano_33_BLE.menu.softdevice.s132.upload.maximum_size=409600
1123+
Arduino_nano_33_BLE.menu.softdevice.s132.build.extra_flags=-DNRF52 -DS132 -DNRF51_S132
1124+
Arduino_nano_33_BLE.menu.softdevice.s132.build.ldscript=armgcc_s132_nrf52832_xxaa.ld
1125+
1126+
Arduino_nano_33_BLE.menu.lfclk.lfxo=Crystal Oscillator
1127+
Arduino_nano_33_BLE.menu.lfclk.lfxo.build.lfclk_flags=-DUSE_LFXO
1128+
Arduino_nano_33_BLE.menu.lfclk.lfrc=RC Oscillator
1129+
Arduino_nano_33_BLE.menu.lfclk.lfrc.build.lfclk_flags=-DUSE_LFRC
1130+
Arduino_nano_33_BLE.menu.lfclk.lfsynt=Synthesized
1131+
Arduino_nano_33_BLE.menu.lfclk.lfsynt.build.lfclk_flags=-DUSE_LFSYNT
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
/**
2+
* Copyright (c) 2018 - 2020, Nordic Semiconductor ASA
3+
*
4+
* All rights reserved.
5+
*
6+
* Redistribution and use in source and binary forms, with or without modification,
7+
* are permitted provided that the following conditions are met:
8+
*
9+
* 1. Redistributions of source code must retain the above copyright notice, this
10+
* list of conditions and the following disclaimer.
11+
*
12+
* 2. Redistributions in binary form, except as embedded into a Nordic
13+
* Semiconductor ASA integrated circuit in a product or a software update for
14+
* such product, must reproduce the above copyright notice, this list of
15+
* conditions and the following disclaimer in the documentation and/or other
16+
* materials provided with the distribution.
17+
*
18+
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
19+
* contributors may be used to endorse or promote products derived from this
20+
* software without specific prior written permission.
21+
*
22+
* 4. This software, with or without modification, must only be used with a
23+
* Nordic Semiconductor ASA integrated circuit.
24+
*
25+
* 5. Any software provided in binary form under this license must not be reverse
26+
* engineered, decompiled, modified and/or disassembled.
27+
*
28+
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
29+
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
30+
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
31+
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
32+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
33+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
34+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
37+
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38+
*
39+
*/
40+
#ifndef SHIELD_H__
41+
#define SHIELD_H__
42+
43+
#define JOYSTICK_V_SAADC_INPUT NRF_SAADC_INPUT_AIN2
44+
#define JOYSTICK_H_SAADC_INPUT NRF_SAADC_INPUT_AIN1
45+
#define JOYSTICK_SEL_PIN ARDUINO_8_PIN
46+
47+
#define BUTTON_A_PIN ARDUINO_2_PIN
48+
#define BUTTON_B_PIN ARDUINO_3_PIN
49+
#define BUTTON_C_PIN ARDUINO_4_PIN
50+
#define BUTTON_D_PIN ARDUINO_5_PIN
51+
#define BUTTON_E_PIN ARDUINO_6_PIN
52+
#define BUTTON_F_PIN ARDUINO_7_PIN
53+
54+
#undef BUTTONS_NUMBER
55+
#define BUTTONS_NUMBER 7
56+
57+
#undef BUTTON_1
58+
#undef BUTTON_2
59+
#undef BUTTON_3
60+
#undef BUTTON_4
61+
62+
#define BUTTON_1 BUTTON_A_PIN
63+
#define BUTTON_3 BUTTON_B_PIN
64+
#define BUTTON_2 BUTTON_C_PIN
65+
#define BUTTON_4 BUTTON_E_PIN
66+
67+
68+
#define BUTTON_5 BUTTON_D_PIN
69+
#define BUTTON_6 BUTTON_F_PIN
70+
#define BUTTON_7 JOYSTICK_SEL_PIN
71+
72+
#define BSP_BUTTON_4 BUTTON_5
73+
#define BSP_BUTTON_5 BUTTON_6
74+
#define BSP_BUTTON_6 BUTTON_7
75+
76+
77+
#undef BUTTONS_LIST
78+
#define BUTTONS_LIST { BUTTON_1, BUTTON_2, BUTTON_3, BUTTON_4, \
79+
BUTTON_5, BUTTON_6, BUTTON_7 }
80+
81+
#endif /* SHIELD_H__ */
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
/**
2+
* Copyright (c) 2016 - 2020, Nordic Semiconductor ASA
3+
*
4+
* All rights reserved.
5+
*
6+
* Redistribution and use in source and binary forms, with or without modification,
7+
* are permitted provided that the following conditions are met:
8+
*
9+
* 1. Redistributions of source code must retain the above copyright notice, this
10+
* list of conditions and the following disclaimer.
11+
*
12+
* 2. Redistributions in binary form, except as embedded into a Nordic
13+
* Semiconductor ASA integrated circuit in a product or a software update for
14+
* such product, must reproduce the above copyright notice, this list of
15+
* conditions and the following disclaimer in the documentation and/or other
16+
* materials provided with the distribution.
17+
*
18+
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
19+
* contributors may be used to endorse or promote products derived from this
20+
* software without specific prior written permission.
21+
*
22+
* 4. This software, with or without modification, must only be used with a
23+
* Nordic Semiconductor ASA integrated circuit.
24+
*
25+
* 5. Any software provided in binary form under this license must not be reverse
26+
* engineered, decompiled, modified and/or disassembled.
27+
*
28+
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
29+
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
30+
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
31+
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
32+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
33+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
34+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
37+
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38+
*
39+
*/
40+
#ifndef ARDUINO_PRIMO_H
41+
#define ARDUINO_PRIMO_H
42+
43+
#ifdef __cplusplus
44+
extern "C" {
45+
#endif
46+
47+
// LEDs definitions
48+
#define LEDS_NUMBER 1
49+
50+
#define LED_1 20
51+
52+
#define LEDS_ACTIVE_STATE 0
53+
54+
#define LEDS_LIST { LED_1}
55+
56+
#define BSP_LED_0 LED_1
57+
58+
#define LEDS_INV_MASK 0
59+
60+
#define BUTTONS_NUMBER 1
61+
62+
#define BUTTON_START 7
63+
#define BUTTON_1 7
64+
#define BUTTON_STOP 7
65+
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP
66+
67+
#define BUTTONS_ACTIVE_STATE 0
68+
69+
#define BUTTONS_LIST { BUTTON_1 }
70+
71+
#define BSP_BUTTON_0 BUTTON_1
72+
73+
#define RX_PIN_NUMBER 11
74+
#define TX_PIN_NUMBER 12
75+
#define CTS_PIN_NUMBER UART_PIN_DISCONNECTED
76+
#define RTS_PIN_NUMBER UART_PIN_DISCONNECTED
77+
#define HWFC false
78+
79+
#define BUZZER_PIN_NUMBER 8
80+
81+
// Arduino board mappings
82+
#define ARDUINO_SCL_PIN 27 // SCL signal pin
83+
#define ARDUINO_SDA_PIN 26 // SDA signal pin
84+
#define ARDUINO_AREF_PIN 2 // Aref pin
85+
#define ARDUINO_13_PIN 25 // Digital pin 13
86+
#define ARDUINO_12_PIN 24 // Digital pin 12
87+
#define ARDUINO_11_PIN 23 // Digital pin 11
88+
#define ARDUINO_10_PIN 22 // Digital pin 10
89+
#define ARDUINO_9_PIN 20 // Digital pin 9
90+
#define ARDUINO_8_PIN 19 // Digital pin 8
91+
92+
#define ARDUINO_7_PIN 18 // Digital pin 7
93+
#define ARDUINO_6_PIN 17 // Digital pin 6
94+
#define ARDUINO_5_PIN 16 // Digital pin 5
95+
#define ARDUINO_4_PIN 15 // Digital pin 4
96+
#define ARDUINO_3_PIN 14 // Digital pin 3
97+
#define ARDUINO_2_PIN 13 // Digital pin 2
98+
#define ARDUINO_1_PIN 12 // Digital pin 1
99+
#define ARDUINO_0_PIN 11 // Digital pin 0
100+
101+
#define ARDUINO_A0_PIN 3 // Analog channel 0
102+
#define ARDUINO_A1_PIN 4 // Analog channel 1
103+
#define ARDUINO_A2_PIN 28 // Analog channel 2
104+
#define ARDUINO_A3_PIN 29 // Analog channel 3
105+
#define ARDUINO_A4_PIN 30 // Analog channel 4
106+
#define ARDUINO_A5_PIN 31 // Analog channel 5
107+
108+
109+
#ifdef __cplusplus
110+
}
111+
#endif
112+
113+
#endif // ARDUINO_PRIMO_H

0 commit comments

Comments
 (0)