File tree 27 files changed +239
-104
lines changed
zephyr-cpp-synchronization/zephyr
zephyr-drivers-can/zephyr
zephyr-subsys-usb-hid-mouse
27 files changed +239
-104
lines changed Original file line number Diff line number Diff line change 54
54
- name : Set up Python
55
55
uses : actions/setup-python@v3
56
56
with :
57
- python-version : " 3.9 "
57
+ python-version : " 3.10 "
58
58
- name : Install dependencies
59
59
run : |
60
60
pip install -U https://github.com/platformio/platformio/archive/develop.zip
Original file line number Diff line number Diff line change 12
12
},
13
13
"mcu" : " stm32h750ibk6" ,
14
14
"product_line" : " STM32H750xx" ,
15
- "variant" : " STM32H7xx/H742I(G-I)(K-T)_H743I( G-I)(K-T)_H750IB(K-T)_H753II(K-T) "
15
+ "variant" : " STM32H7xx/H742I(G-I)K_H743I( G-I)K_H750IBK_H753IIK "
16
16
},
17
17
"connectivity" : [
18
18
" can"
Original file line number Diff line number Diff line change 9
9
"extra_flags" : " -DSTM32H7 -DSTM32H7xx -DSTM32H750xx" ,
10
10
"f_cpu" : " 400000000L" ,
11
11
"framework_extra_flags" : {
12
- "arduino" : " -DCUSTOM_PERIPHERAL_PINS"
12
+ "arduino" : " -DCUSTOM_PERIPHERAL_PINS -DARDUINO_DAISY_PATCH_SM "
13
13
},
14
14
"mcu" : " stm32h750ibk6" ,
15
15
"product_line" : " STM32H750xx" ,
16
- "variant" : " STM32H7xx/H742I(G-I)(K-T)_H743I( G-I)(K-T)_H750IB(K-T)_H753II(K-T) "
16
+ "variant" : " STM32H7xx/H742I(G-I)K_H743I( G-I)K_H750IBK_H753IIK "
17
17
},
18
18
"connectivity" : [
19
19
" can"
Original file line number Diff line number Diff line change 9
9
"extra_flags" : " -DSTM32H7 -DSTM32H7xx -DSTM32H750xx" ,
10
10
"f_cpu" : " 400000000L" ,
11
11
"framework_extra_flags" : {
12
- "arduino" : " -DCUSTOM_PERIPHERAL_PINS"
12
+ "arduino" : " -DCUSTOM_PERIPHERAL_PINS -DARDUINO_DAISY_PETAL_SM "
13
13
},
14
14
"mcu" : " stm32h750ibk6" ,
15
15
"product_line" : " STM32H750xx" ,
16
- "variant" : " STM32H7xx/H742I(G-I)(K-T)_H743I( G-I)(K-T)_H750IB(K-T)_H753II(K-T) "
16
+ "variant" : " STM32H7xx/H742I(G-I)K_H743I( G-I)K_H750IBK_H753IIK "
17
17
},
18
18
"connectivity" : [
19
19
" can"
Original file line number Diff line number Diff line change 15
15
[
16
16
" 0x2341" ,
17
17
" 0x0366"
18
- ],
19
- [
20
- " 0x2341" ,
21
- " 0x0266"
22
- ],
23
- [
24
- " 0x2341" ,
25
- " 0x0466"
26
18
]
27
19
]
28
20
},
Original file line number Diff line number Diff line change 15
15
[
16
16
" 0x2341" ,
17
17
" 0x0366"
18
- ],
19
- [
20
- " 0x2341" ,
21
- " 0x0266"
22
- ],
23
- [
24
- " 0x2341" ,
25
- " 0x0466"
26
18
]
27
19
]
28
20
},
Original file line number Diff line number Diff line change 5
5
"extra_flags" : " -DSTM32WB -DSTM32WBxx -DSTM32WB55xx" ,
6
6
"f_cpu" : " 64000000L" ,
7
7
"mcu" : " stm32wb55cg" ,
8
- "variant" : " STM32WBxx/WB55C (C-E-G)U"
8
+ "variant" : " STM32WBxx/WB35C(C-E)UxA_WB55C (C-E-G)U"
9
9
},
10
10
"connectivity" : [
11
11
" bluetooth"
Original file line number Diff line number Diff line change 15
15
[
16
16
" 0x2341" ,
17
17
" 0x035F"
18
- ],
19
- [
20
- " 0x2341" ,
21
- " 0x025F"
22
- ],
23
- [
24
- " 0x2341" ,
25
- " 0x045F"
26
- ],
27
- [
28
- " 0x2341" ,
29
- " 0x055F"
30
18
]
31
19
]
32
20
},
Original file line number Diff line number Diff line change 15
15
[
16
16
" 0x2341" ,
17
17
" 0x035F"
18
- ],
19
- [
20
- " 0x2341" ,
21
- " 0x025F"
22
- ],
23
- [
24
- " 0x2341" ,
25
- " 0x045F"
26
- ],
27
- [
28
- " 0x2341" ,
29
- " 0x055F"
30
18
]
31
19
]
32
20
},
Original file line number Diff line number Diff line change 1
1
{
2
2
"build" : {
3
+ "arduino" : {
4
+ "variant_h" : " variant_NUCLEO_F4x9ZI.h"
5
+ },
3
6
"cpu" : " cortex-m4" ,
4
7
"extra_flags" : " -DSTM32F4 -DSTM32F439xx" ,
5
8
"f_cpu" : " 180000000L" ,
6
9
"mcu" : " stm32f439zit6" ,
7
- "product_line" : " STM32F439xx"
10
+ "product_line" : " STM32F439xx" ,
11
+ "variant" : " STM32F4xx/F427Z(G-I)T_F429ZET_F429Z(G-I)(T-Y)_F437Z(G-I)T_F439Z(G-I)(T-Y)"
8
12
},
9
13
"connectivity" : [
10
14
" can" ,
23
27
"svd_path" : " STM32F439x.svd"
24
28
},
25
29
"frameworks" : [
30
+ " arduino" ,
26
31
" cmsis" ,
27
32
" mbed" ,
28
33
" stm32cube" ,
29
34
" libopencm3"
30
35
],
31
36
"name" : " ST Nucleo F439ZI" ,
32
37
"upload" : {
33
- "maximum_ram_size" : 262144 ,
38
+ "maximum_ram_size" : 196608 ,
34
39
"maximum_size" : 2097152 ,
35
40
"protocol" : " stlink" ,
36
41
"protocols" : [
41
46
" mbed"
42
47
]
43
48
},
44
- "url" : " https://developer.mbed.org/platforms/ST-Nucleo-F439ZI/ " ,
49
+ "url" : " https://www.st.com/en/evaluation-tools/nucleo-f439zi.html " ,
45
50
"vendor" : " ST"
46
51
}
Original file line number Diff line number Diff line change 6
6
"f_cpu" : " 170000000L" ,
7
7
"mcu" : " stm32g431rbt6" ,
8
8
"product_line" : " STM32G431xx" ,
9
- "variant" : " STM32G4xx/G431R(6-8-B) (I-T)_G441RB(I-T)"
9
+ "variant" : " STM32G4xx/G431R(6-8)(I-T)_G431RB (I-T)x(Z )_G441RB(I-T)"
10
10
},
11
11
"connectivity" : [
12
12
" can"
Original file line number Diff line number Diff line change 6
6
"f_cpu" : " 170000000L" ,
7
7
"mcu" : " stm32g474ret6" ,
8
8
"product_line" : " STM32G474xx" ,
9
- "variant" : " STM32G4xx/G473R(B-C-E)T_G474R (B-C-E)T_G483RET_G484RET"
9
+ "variant" : " STM32G4xx/G473R(B-C)T_G473RETx(Z)_G474R (B-C-E)T_G483RET_G484RET"
10
10
},
11
11
"connectivity" : [
12
12
" can"
Original file line number Diff line number Diff line change 25
25
"openocd_target" : " stm32u5x"
26
26
},
27
27
"frameworks" : [
28
- " arduino"
28
+ " arduino" ,
29
+ " mbed"
29
30
],
30
31
"name" : " ST Nucleo U575ZI-Q" ,
31
32
"upload" : {
Original file line number Diff line number Diff line change
1
+ {
2
+ "build" : {
3
+ "arduino" : {
4
+ "variant_h" : " variant_generic.h"
5
+ },
6
+ "core" : " stm32" ,
7
+ "cpu" : " cortex-m4" ,
8
+ "extra_flags" : " -DSTM32F407xx -DARDUINO_GENERIC_F407VETX -DSTM32F4" ,
9
+ "f_cpu" : " 168000000L" ,
10
+ "hwids" : [
11
+ [
12
+ " 0x1EAF" ,
13
+ " 0x0003"
14
+ ],
15
+ [
16
+ " 0x0483" ,
17
+ " 0x3748"
18
+ ]
19
+ ],
20
+ "mcu" : " stm32f407vet6" ,
21
+ "product_line" : " STM32F407xx" ,
22
+ "variant" : " STM32F4xx/F407V(E-G)T_F417V(E-G)T"
23
+ },
24
+ "debug" : {
25
+ "default_tools" : [
26
+ " stlink"
27
+ ],
28
+ "jlink_device" : " STM32F407VE" ,
29
+ "openocd_extra_args" : [
30
+ " -c" ,
31
+ " reset_config none"
32
+ ],
33
+ "openocd_target" : " stm32f4x" ,
34
+ "svd_path" : " STM32F40x.svd"
35
+ },
36
+ "frameworks" : [
37
+ " arduino" ,
38
+ " cmsis" ,
39
+ " stm32cube" ,
40
+ " libopencm3"
41
+ ],
42
+ "name" : " RYMCU STM32F407VE (192k RAM. 512k Flash)" ,
43
+ "upload" : {
44
+ "disable_flushing" : false ,
45
+ "maximum_ram_size" : 131072 ,
46
+ "maximum_size" : 514288 ,
47
+ "protocol" : " stlink" ,
48
+ "protocols" : [
49
+ " jlink" ,
50
+ " cmsis-dap" ,
51
+ " stlink" ,
52
+ " blackmagic" ,
53
+ " serial" ,
54
+ " dfu"
55
+ ],
56
+ "require_upload_port" : true ,
57
+ "use_1200bps_touch" : false ,
58
+ "wait_for_upload_port" : false
59
+ },
60
+ "url" : " https://rymcu.com/products" ,
61
+ "vendor" : " RYMCU"
62
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "build" : {
3
+ "arduino" : {
4
+ "variant_h" : " variant_generic.h"
5
+ },
6
+ "core" : " stm32" ,
7
+ "cpu" : " cortex-m3" ,
8
+ "extra_flags" : " -DSTM32F103xE -DSTM32F1 -DARDUINO_GENERIC_F103VETX" ,
9
+ "f_cpu" : " 72000000L" ,
10
+ "hwids" : [
11
+ [
12
+ " 0x1EAF" ,
13
+ " 0x0003"
14
+ ],
15
+ [
16
+ " 0x1EAF" ,
17
+ " 0x0004"
18
+ ]
19
+ ],
20
+ "mcu" : " stm32f103vet6" ,
21
+ "product_line" : " STM32F103xE" ,
22
+ "variant" : " STM32F1xx/F103V(C-D-E)(H-T)"
23
+ },
24
+ "debug" : {
25
+ "jlink_device" : " STM32F103VE" ,
26
+ "openocd_target" : " stm32f1x" ,
27
+ "svd_path" : " STM32F103xx.svd"
28
+ },
29
+ "frameworks" : [
30
+ " arduino" ,
31
+ " cmsis" ,
32
+ " libopencm3" ,
33
+ " stm32cube"
34
+ ],
35
+ "name" : " RYMCU Nebula Pi F103VE (64k RAM. 512k Flash)" ,
36
+ "upload" : {
37
+ "disable_flushing" : false ,
38
+ "maximum_ram_size" : 65536 ,
39
+ "maximum_size" : 524288 ,
40
+ "protocol" : " stlink" ,
41
+ "protocols" : [
42
+ " jlink" ,
43
+ " cmsis-dap" ,
44
+ " stlink" ,
45
+ " blackmagic" ,
46
+ " serial" ,
47
+ " dfu"
48
+ ],
49
+ "require_upload_port" : true ,
50
+ "use_1200bps_touch" : false ,
51
+ "wait_for_upload_port" : false
52
+ },
53
+ "url" : " https://rymcu.com/products" ,
54
+ "vendor" : " RYMCU"
55
+ }
Original file line number Diff line number Diff line change 4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
6
6
7
+ #include <stdio.h>
7
8
#include <zephyr/kernel.h>
8
9
#include <zephyr/drivers/gpio.h>
9
10
10
11
/* 1000 msec = 1 sec */
11
- #define SLEEP_TIME_MS 300
12
+ #define SLEEP_TIME_MS 1000
12
13
13
14
/* The devicetree node identifier for the "led0" alias. */
14
15
#define LED0_NODE DT_ALIAS(led0)
19
20
*/
20
21
static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET (LED0_NODE , gpios );
21
22
22
- void main (void )
23
+ int main (void )
23
24
{
24
25
int ret ;
26
+ bool led_state = true;
25
27
26
- if (!gpio_is_ready_dt (& led ))
27
- {
28
- return ;
28
+ if (!gpio_is_ready_dt (& led )) {
29
+ return 0 ;
29
30
}
30
31
31
32
ret = gpio_pin_configure_dt (& led , GPIO_OUTPUT_ACTIVE );
32
- if (ret < 0 )
33
- {
34
- return ;
33
+ if (ret < 0 ) {
34
+ return 0 ;
35
35
}
36
36
37
- while (1 )
38
- {
37
+ while (1 ) {
39
38
ret = gpio_pin_toggle_dt (& led );
40
- if (ret < 0 )
41
- {
42
- return ;
39
+ if (ret < 0 ) {
40
+ return 0 ;
43
41
}
42
+
43
+ led_state = !led_state ;
44
+ printf ("LED state: %s\n" , led_state ? "ON" : "OFF" );
44
45
k_msleep (SLEEP_TIME_MS );
45
46
}
47
+ return 0 ;
46
48
}
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: Apache-2.0
2
2
3
- cmake_minimum_required (VERSION 3.13.1 )
4
- include ( $ENV{ZEPHYR_BASE} /cmake/app/boilerplate.cmake NO_POLICY_SCOPE )
3
+ cmake_minimum_required (VERSION 3.20.0 )
4
+ find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
5
5
project (blinky)
6
6
7
7
target_sources (app PRIVATE ../src/main.c)
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: Apache-2.0
2
2
3
- cmake_minimum_required (VERSION 3.13.1 )
4
- include ( $ENV{ZEPHYR_BASE} /cmake/app/boilerplate.cmake NO_POLICY_SCOPE )
3
+ cmake_minimum_required (VERSION 3.20.0 )
4
+ find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
5
5
project (cpp_synchronization)
6
6
7
7
target_sources (app PRIVATE ../src/main.cpp)
You can’t perform that action at this time.
0 commit comments