Skip to content

Commit 65321ff

Browse files
author
JeromeGalan
authored
Merge pull request #239 from Luos-io/rc_2.4.3
Luos Engine - Release 2.4.3
2 parents e9a45fe + c4a5489 commit 65321ff

File tree

278 files changed

+514
-9905
lines changed

Some content is hidden

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

278 files changed

+514
-9905
lines changed

.github/workflows/pio_release.yml

+24
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,27 @@ jobs:
164164
pio package pack
165165
pio package publish --owner luos --non-interactive
166166
cd ../..
167+
168+
deploy_pipe:
169+
runs-on: ubuntu-latest
170+
steps:
171+
- uses: actions/checkout@v2
172+
- name: Set up Python
173+
uses: actions/setup-python@v1
174+
with:
175+
python-version: "3.x"
176+
- name: Install dependencies
177+
run: |
178+
python -m pip install --upgrade pip
179+
pip install platformio
180+
- name: publish pipe driver
181+
env:
182+
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PIO_TOKEN }}
183+
run: |
184+
# ***** Pipe publication *****
185+
cd tool_services/pipe
186+
# We don't publish examples with this one.
187+
188+
pio package pack
189+
pio package publish --owner luos --non-interactive
190+
cd ../..

engine/core/inc/profile_core.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ typedef struct profile_core
2626
// connect an another profile
2727
struct profile_core *connect;
2828
// profile structure
29-
luos_type_t type;
29+
uint8_t type; // luos_type_t
3030
void *profile_data;
3131
profile_ops_t profile_ops;
3232
} profile_core_t;

engine/core/inc/routing_table.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ typedef enum
3131
*/
3232
typedef struct __attribute__((__packed__))
3333
{
34-
entry_mode_t mode;
34+
uint8_t mode; // entry_mode_t
3535
union
3636
{
3737
struct __attribute__((__packed__))
3838
{ // SERVICE mode entry
3939
uint16_t id; // Service ID.
4040
uint16_t type; // Service type.
41-
access_t access; // Service Access
41+
uint8_t access; // Service Access access_t
4242
char alias[MAX_ALIAS_SIZE]; // Service alias.
4343
};
4444
struct __attribute__((__packed__))
@@ -52,9 +52,9 @@ typedef struct __attribute__((__packed__))
5252
uint16_t node_id : 12; // Node id
5353
uint16_t certified : 4; // True if the node have a certificate
5454
};
55-
uint16_t port_table[(MAX_ALIAS_SIZE + 2 + 2 + sizeof(access_t) - 2) / 2]; // Node link table
55+
uint16_t port_table[(MAX_ALIAS_SIZE + 2 + 2 + sizeof(uint8_t) - 2) / 2]; // Node link table
5656
};
57-
uint8_t unmap_data[MAX_ALIAS_SIZE + 2 + 2 + sizeof(access_t)];
57+
uint8_t unmap_data[MAX_ALIAS_SIZE + 2 + 2 + sizeof(uint8_t)];
5858
};
5959
} routing_table_t;
6060

engine/profiles/servo_motor/profile_servo_motor.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ void ProfileServo_Handler(service_t *service, msg_t *msg)
106106
case REINIT:
107107
{
108108
// set state to 0
109-
__disable_irq();
109+
LuosHAL_SetIrqState(false);
110110
servo_motor_profile->angular_position = 0.0;
111111
servo_motor_profile->target_angular_position = 0.0;
112-
__enable_irq();
112+
LuosHAL_SetIrqState(true);
113113
}
114114
break;
115115
case DIMENSION:
@@ -126,9 +126,9 @@ void ProfileServo_Handler(service_t *service, msg_t *msg)
126126
if (msg->header.size == sizeof(angular_position_t))
127127
{
128128
// set the motor target angular position
129-
__disable_irq();
129+
LuosHAL_SetIrqState(false);
130130
AngularOD_PositionFromMsg((angular_position_t *)&servo_motor_profile->target_angular_position, msg);
131-
__enable_irq();
131+
LuosHAL_SetIrqState(true);
132132
}
133133
else
134134
{

engine/profiles/state/profile_state.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
typedef struct
2020
{
21-
access_t access;
21+
uint8_t access; // access_t
2222
bool state;
2323
} profile_state_t;
2424
/*******************************************************************************

examples/apps/alarm_controller/library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
},
1010
"licence": "MIT",
1111
"dependencies": {
12-
"luos/luos_engine": "^2.4.2"
12+
"luos/luos_engine": "^2.4.3"
1313
}
1414
}

examples/apps/biometric-security/library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
},
1010
"licence": "MIT",
1111
"dependencies": {
12-
"luos/luos_engine": "^2.4.2"
12+
"luos/luos_engine": "^2.4.3"
1313
}
1414
}

examples/apps/start_controller/library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
},
1010
"licence": "MIT",
1111
"dependencies": {
12-
"luos/luos_engine": "^2.4.2"
12+
"luos/luos_engine": "^2.4.3"
1313
}
1414
}

examples/projects/Arduino/bldc_simple_foc/lib/motor/library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"build": {},
1212
"dependencies": {
1313
"askuric/Simple FOC": "^2.2.1",
14-
"luos/Luos_engine": "^2.4.2"
14+
"luos/Luos_engine": "^2.4.3"
1515
}
1616
}

examples/projects/Arduino/bldc_simple_foc/platformio.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ build_flags =
2121
-include node_config.h
2222
-DLUOSHAL=ATSAMD21_ARDUINO
2323
lib_deps =
24-
luos_engine@^2.4.2
24+
luos_engine@^2.4.3
2525
SimpleFOC_Motor
2626
askuric/Simple FOC@^2.2.1

examples/projects/Arduino/button/lib/button/library.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "https://luos.io"
99
},
1010
"dependencies": {
11-
"luos/luos_engine": "^2.4.2"
11+
"luos/luos_engine": "^2.4.3"
1212
},
1313
"licence": "MIT"
14-
}
14+
}

examples/projects/Arduino/button/platformio.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ build_flags =
2424
-include node_config.h
2525
-D LUOSHAL=ATSAMD21_ARDUINO
2626
lib_deps =
27-
luos_engine@^2.4.2
27+
luos_engine@^2.4.3
2828
Button
2929

3030
[env:seed]
@@ -41,5 +41,5 @@ build_flags =
4141
-include node_config.h
4242
-D LUOSHAL=ATSAMD21_ARDUINO
4343
lib_deps =
44-
luos_engine@^2.4.2
44+
luos_engine@^2.4.3
4545
Button

examples/projects/Arduino/fingerprint/lib/Fingerprint/library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "1.0.0",
66
"licence": "MIT",
77
"dependencies": {
8-
"luos/luos_engine": "^2.4.2",
8+
"luos/luos_engine": "^2.4.3",
99
"adafruit/Adafruit Fingerprint Sensor Library": "*"
1010
}
1111
}

examples/projects/Arduino/fingerprint/platformio.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ build_flags =
2222
-include node_config.h
2323
-D LUOSHAL=ATSAMD21_ARDUINO
2424
lib_deps =
25-
luos_engine@^2.4.2
25+
luos_engine@^2.4.3
2626
Fingerprint
2727
adafruit/Adafruit Fingerprint Sensor Library

examples/projects/Arduino/gate_serialcom/lib/Pipe/README.md

-18
This file was deleted.

examples/projects/Arduino/gate_serialcom/lib/Pipe/library.json

-14
This file was deleted.

examples/projects/Arduino/gate_serialcom/lib/Pipe/pipe.c

-136
This file was deleted.

0 commit comments

Comments
 (0)