Skip to content

Commit ad99b01

Browse files
committed
8.0.3
1 parent 686e9fe commit ad99b01

File tree

5 files changed

+65
-5
lines changed

5 files changed

+65
-5
lines changed

examples

Submodule examples updated 137 files

ports/arm-cm/qk/gnu/qk_port.cpp

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,5 +510,35 @@ __asm volatile (
510510

511511
#endif // ARMv6-M
512512

513+
//============================================================================
514+
#ifndef QF_NDUMMY_SYS
515+
// dummy definition of stdio functions that cause
516+
// "warning: xxxx is not implemented and will always fail"
517+
518+
int _close(int fd) {
519+
(void)fd;
520+
return 0;
521+
}
522+
long _lseek(int fd, long offset, int origin) {
523+
(void)fd;
524+
(void)offset;
525+
(void)origin;
526+
return 0L;
527+
}
528+
int _read(int const fd, void * const buffer, unsigned const buffer_size) {
529+
(void)fd;
530+
(void)buffer;
531+
(void)buffer_size;
532+
return 0;
533+
}
534+
int _write(int fd, const void *buffer, unsigned int count) {
535+
(void)fd;
536+
(void)buffer;
537+
(void)count;
538+
return 0;
539+
}
540+
541+
#endif // QF_NDUMMY_SYS
542+
513543
} // extern "C"
514544

ports/arm-cm/qv/gnu/qv_port.cpp

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,5 +273,35 @@ __asm volatile (
273273

274274
#endif // ARMv6-M
275275

276+
//============================================================================
277+
#ifndef QF_NDUMMY_SYS
278+
// dummy definition of stdio functions that cause
279+
// "warning: xxxx is not implemented and will always fail"
280+
281+
int _close(int fd) {
282+
(void)fd;
283+
return 0;
284+
}
285+
long _lseek(int fd, long offset, int origin) {
286+
(void)fd;
287+
(void)offset;
288+
(void)origin;
289+
return 0L;
290+
}
291+
int _read(int const fd, void * const buffer, unsigned const buffer_size) {
292+
(void)fd;
293+
(void)buffer;
294+
(void)buffer_size;
295+
return 0;
296+
}
297+
int _write(int fd, const void *buffer, unsigned int count) {
298+
(void)fd;
299+
(void)buffer;
300+
(void)count;
301+
return 0;
302+
}
303+
304+
#endif // QF_NDUMMY_SYS
305+
276306
} // extern "C"
277307

qpcpp_8.0.3.sha1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ c0b6bbe7edee4a26cf4e9d304cfa70750f676ff5 *src/qxk/qxk_mutex.cpp
4444
8da15bc71324c15730f60101c488e55094af21c0 *ports/arm-cm/qk/armclang/qk_port.cpp
4545
ff22ca84caa682820a10350414c8ba45197ab750 *ports/arm-cm/qk/armclang/qp_port.hpp
4646
aad9ffa2514131bd4078626f4e4338374960f921 *ports/arm-cm/qk/armclang/qs_port.hpp
47-
cf27e0fc3f6275688bb8ec3d5050ec4f50479775 *ports/arm-cm/qk/gnu/qk_port.cpp
47+
e2f93069d5e28e184a9f1fa0cc062c59dcf5e857 *ports/arm-cm/qk/gnu/qk_port.cpp
4848
ff22ca84caa682820a10350414c8ba45197ab750 *ports/arm-cm/qk/gnu/qp_port.hpp
4949
aad9ffa2514131bd4078626f4e4338374960f921 *ports/arm-cm/qk/gnu/qs_port.hpp
5050
f9f273a8223334031a538ebe0be83c798fc411a6 *ports/arm-cm/qk/iar/qk_port.cpp
@@ -55,7 +55,7 @@ aad9ffa2514131bd4078626f4e4338374960f921 *ports/arm-cm/qv/armclang/qs_port.hpp
5555
61bfb6a2fe5f5a46ac579ff0d810a523e137fad7 *ports/arm-cm/qv/armclang/qv_port.cpp
5656
906ddb82f7a65f6d3f2a20ebc9bfb2928aaaab3a *ports/arm-cm/qv/gnu/qp_port.hpp
5757
aad9ffa2514131bd4078626f4e4338374960f921 *ports/arm-cm/qv/gnu/qs_port.hpp
58-
05a6606b79592e159972b82e13f8d87c4776de3d *ports/arm-cm/qv/gnu/qv_port.cpp
58+
742f36951d4a836baecfa157d25b86e288e4c74b *ports/arm-cm/qv/gnu/qv_port.cpp
5959
e70e9e4562b8f3c5d4677997b7354db330c04ab2 *ports/arm-cm/qv/iar/qp_port.hpp
6060
aad9ffa2514131bd4078626f4e4338374960f921 *ports/arm-cm/qv/iar/qs_port.hpp
6161
862340a493050af382b82dc6b58084009bf6b5be *ports/arm-cm/qv/iar/qv_port.cpp
@@ -64,7 +64,7 @@ aad9ffa2514131bd4078626f4e4338374960f921 *ports/arm-cm/qxk/armclang/qs_port.hpp
6464
a480dda4919a2a0f79e7c62b0f5f4970969d55fa *ports/arm-cm/qxk/armclang/qxk_port.cpp
6565
58e229c064217104aff453bdb8c17efba7409f4f *ports/arm-cm/qxk/gnu/qp_port.hpp
6666
aad9ffa2514131bd4078626f4e4338374960f921 *ports/arm-cm/qxk/gnu/qs_port.hpp
67-
1333d39387cd9545e737eea9f8c262ea53fec963 *ports/arm-cm/qxk/gnu/qxk_port.cpp
67+
2ee798f91cbb8d04c722850cab1996d779550b28 *ports/arm-cm/qxk/gnu/qxk_port.cpp
6868
448fbd66bc00f1bcded84b91648fd5c2bdb38717 *ports/arm-cm/qxk/iar/qp_port.hpp
6969
aad9ffa2514131bd4078626f4e4338374960f921 *ports/arm-cm/qxk/iar/qs_port.hpp
7070
1e753e8be9ddae2e09b5c41a7ae504477f2f68fe *ports/arm-cm/qxk/iar/qxk_port.cpp

0 commit comments

Comments
 (0)