Marian Buschsieweke
033807008a
sys/arduino: Require feature cpp
...
Arduino code requires C++ support
2020-07-23 20:18:34 +02:00
Marian Buschsieweke
f8b7c899f8
cpu/esp_common: Allows use feature cpp
...
The vendor code uses C++ code, thus, C++ support needs to be enabled in any
case.
2020-07-23 20:18:33 +02:00
Marian Buschsieweke
057aae1d04
makefiles/vars.inc.mk: Export FEATURES_USED
...
This is needed so that features used can be reliably be accessed.
2020-07-23 20:18:33 +02:00
Marian Buschsieweke
c1ad435668
Makefile.base: Error for C++ code w/w cpp feature
...
If external modules use C++ code and forget to require the `cpp` feature,
linking will still take places using $(CC). This commit adds a check if C++ code
was detected without the feature `cpp` being used, now the build is aborted
with a helpful error message rather than a linker error.
2020-07-23 20:18:33 +02:00
Marian Buschsieweke
267c8e1620
Makefile.include: Link with $(CXX) for C++ code
...
When mixing C and C++ code, $(CXX) has to be used for linking. Prior to this
commit, the build system automatically uses $(CXX) if the application contains
C++ source code. However, if C++ is used in an module only, $(CC) is still
used. This has not let to problems, as internal modules must be written in C.
For external modules this restriction does not apply.
This commit checks if the cpp feature is used. In that case, $(CXX) is used
for linking over $(CC). This way external modules may use C++ code.
2020-07-23 20:18:32 +02:00
benpicco
f3bce19646
Merge pull request #14503 from maribu/cpp-feature
...
build system: Add libstdcpp feature and doc
2020-07-23 19:05:10 +02:00
f39d40704c
Merge pull request #14593 from bergzand/pr/pkg_libcose/unistd
...
tests/pkg_libcose: add missing unistd.h include
2020-07-23 17:26:36 +02:00
Marian Buschsieweke
3b4c31c76c
Merge pull request #14591 from kaspar030/tests_bench_sys_base64_reduce_iterations
...
tests/bench_sys_base64: reduce test iterations (10000 -> 1000)
2020-07-23 17:03:10 +02:00
8b86168659
tests/pkg_libcose: add missing unistd.h include
...
Required for ssize_t
2020-07-23 14:43:55 +02:00
85c61b33f2
Merge pull request #14588 from kaspar030/tests_trace_reduce_bufsize
...
tests/trace: reduce trace buffer size
2020-07-23 13:15:23 +02:00
3420fcf436
tests/bench_sys_base64: reduce test iterations (10000 -> 1000)
2020-07-23 12:54:56 +02:00
0d85d853c7
tests/trace: reduce trace buffer size
2020-07-23 12:45:43 +02:00
107356ec5d
Merge pull request #14575 from gschorcht/cpu/stm32/fix_gpio_definition
...
cpu/stm32: GPIO ports definition fix
2020-07-23 12:24:44 +02:00
77b0df3c80
Merge pull request #14571 from fjmolinas/pr_fix_test_pthread_flood
...
tests/pthread_flood: cleanup test
2020-07-23 11:15:24 +02:00
Francisco Molina
eb107a08cb
tests/pthread_flood: cleanup test
...
- Cleans up pthread initialization, checks for ret code !=0,
instead of -1. For some platforms the first thread was not
started and therefore `pthread_join` could not succeed.
- Always specify stackaddr and stacksize to not use malloc
- Formatting and uncrustify
2020-07-23 10:05:37 +02:00
Gunar Schorcht
b082fd1941
board/nucleo32: fix Arduino pin mapping
...
On Nucleo-32 boards with STM32 MCUs that do not have the GPIO port F, the Arduino pins D7 and D8 are not connected to PF0 and PF1 but to PC14 and PC15. This is also the case for the Nucleo-L412KB.
2020-07-23 00:16:48 +02:00
benpicco
dc21084ab5
Merge pull request #14582 from benpicco/core/msg_bus-type
...
core/msg_bus: fix shift on 8-bit platforms
2020-07-22 16:59:47 +02:00
Francisco
d187e83221
Merge pull request #14570 from fjmolinas/pr_fix_mock_rtt_defs
...
drivers/rtt: override RTT_MAX_VALUE and RTT_FREQUENCY for mock
2020-07-22 16:33:29 +02:00
Benjamin Valentin
337ee38997
tests/thread_msg_bus: add check if all threads got the message
2020-07-22 16:11:36 +02:00
Benjamin Valentin
46b89eb723
core/msg_bus: fix shift on 8-bit platforms
...
The previous shift would wrap if the compiler defaults to 16 bit words.
Use explicit `unsigned long` integer constants to mitigate that.
before:
2020-07-22 15:25:17,063 # THREAD 1 start
2020-07-22 15:25:17,063 # THREAD 2 start
2020-07-22 15:25:17,065 # THREAD 3 start
2020-07-22 15:25:17,066 # THREADS CREATED
2020-07-22 15:25:17,068 # Posted event 22 to 0 threads
2020-07-22 15:25:17,071 # Posted event 23 to 0 threads
2020-07-22 15:25:17,076 # Posted event 24 to 0 threads
2020-07-22 15:25:17,076 # SUCCESS
2020-07-22 15:26:00,188 # Exiting Pyterm
after:
2020-07-22 15:26:10,374 # THREAD 1 start
2020-07-22 15:26:10,374 # THREAD 2 start
2020-07-22 15:26:10,377 # THREAD 3 start
2020-07-22 15:26:10,377 # THREADS CREATED
2020-07-22 15:26:10,380 # Posted event 22 to 0 threads
2020-07-22 15:26:10,383 # T1 recv: Hello Threads! (type=23)
2020-07-22 15:26:10,386 # T3 recv: Hello Threads! (type=23)
2020-07-22 15:26:10,388 # Posted event 23 to 2 threads
2020-07-22 15:26:10,391 # T2 recv: Hello Threads! (type=24)
2020-07-22 15:26:10,394 # Posted event 24 to 1 threads
2020-07-22 15:26:10,396 # SUCCESS
2020-07-22 15:27:31 +02:00
Francisco
eb576d652a
Merge pull request #14580 from aabadie/pr/pkg/lvgl_cosmetic_build
...
pkg/lvgl: adapt Makefile for nicer build output
2020-07-22 15:25:46 +02:00
Leandro Lanzieri
25723267f7
Merge pull request #14567 from akshaim/Kconfig_l2filter
...
net/l2filter : Expose configurations to Kconfig
2020-07-22 15:11:24 +02:00
56f9a4a686
Merge pull request #14577 from fjmolinas/pr_cc2538_uart_write_synchronous
...
cpu/cc2538/uart: uart_write wait for all bytes to be sent
2020-07-22 14:51:50 +02:00
f50d20f7fa
pkg/lvgl: adapt Makefile for nicer build output
2020-07-22 14:41:58 +02:00
Leandro Lanzieri
a017764382
Merge pull request #14573 from akshaim/gnrc_mac_update
...
net/gnrc/mac/types.h : Update configurations
2020-07-22 13:00:39 +02:00
Francisco Molina
da171f2254
cpu/cc2538/uart: uart_write wait for all bytes to be sent
...
uart_write should block until all bytes are sent out, so wait for
transmit fifo to empty before returning.
2020-07-22 12:56:12 +02:00
09fe0c7667
Merge pull request #14531 from benpicco/drivers/stmpe811/fix_polarity
...
drivers/stmpe811: fix interrupt polarity & interrupt generation
2020-07-22 11:12:31 +02:00
9b3e94bf34
tests/driver_stmpe811: update application README
2020-07-22 09:59:39 +02:00
37b096562a
drivers/stmpe811: ensure fifo is not empty before reading touch position
2020-07-22 09:59:18 +02:00
Benjamin Valentin
caead7bb75
drivers/stmpe811: always clear interrupt state
2020-07-22 09:59:11 +02:00
Cenk Gündoğan
a0c4b8a4a0
Merge pull request #14550 from leandrolanzieri/pr/net/gcoap_remove_gcoap_finish
...
net/gcoap: remove gcoap_finish
2020-07-22 09:40:09 +02:00
Cenk Gündoğan
2505730b3d
Merge pull request #14544 from leandrolanzieri/pr/examples/cord_epsim_parse_with_str2ep
...
examples/cord_epsim: default to first interface when not specified
2020-07-22 09:26:25 +02:00
Gunar Schorcht
044d08d599
cpu/stm32: GPIO ports definition fix
...
The available GPIO ports may also differ within a family. Therefore, the vendor definitions GPIO* are used instad of CPU_FAM_STM definitions to determine which ports are available for a certain MCU.
2020-07-22 09:13:52 +02:00
Francisco Molina
9dde6ec53d
drivers/rtt: overrite RTT_MAX_VALUE and RTT_FREQUENCY for mock
...
mock_rtt relies on setting mock values for RTT_MAX_VALUE and
RTT_FREQUENCY. Platforms with a rtt will already define these
values which leads to mock_rtt working with different values than
rtt_rtc.
This commit changes the ifdef logic so that when using mock_rtt
RTT_MAX_VALUE and RTT_FREQUENCY are redefined.
2020-07-22 08:52:54 +02:00
Benjamin Valentin
f857b7116b
tests/driver_stmpe811: don't poll for touch events
...
Now that the interrupt of the driver works properly, we don't have to
rely on polling.
Instead, wake the thread by touch interrupt.
2020-07-21 21:22:43 +02:00
Benjamin Valentin
cbae0186ca
drivers/stmpe811: fix interrupt polarity & type
...
The Interrupt on the stmpe811 is generated on the falling edge.
By observing the rising edge, we will only get an event if the
interrupt gets cleared.
Also configure the interrupt to be edge triggered instead of
level triggered.
2020-07-21 21:22:42 +02:00
Akshai M
60170971bd
net/l2filter : Update documentation
2020-07-22 00:26:09 +05:30
Akshai M
9bed3c64e9
net/l2filter : Expose configurations to Kconfig
...
Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-07-22 00:26:09 +05:30
Akshai M
caab4cd8c5
net/l2filter : Move 'L2FILTER_LISTSIZE' to 'CONFIG_'
2020-07-22 00:26:09 +05:30
Akshai M
0d52f81935
net/l2filter : Move 'L2FILTER_ADDR_MAXLEN' to 'CONFIG_'
2020-07-22 00:26:09 +05:30
Leandro Lanzieri
418157a8f1
examples/cord_epsim: default to first interface when not specified
...
Now sock_udp_str2ep is used to parse the address.
2020-07-21 19:04:24 +02:00
Cenk Gündoğan
43d2de0885
Merge pull request #14569 from fjmolinas/pr_tests_trickle_msg_queue
...
tests/trickle: add message queue
2020-07-21 18:42:19 +02:00
ec487138bf
Merge pull request #14566 from fjmolinas/pr_test_periph_gpio_pin
...
tests/periph_gpio: allow specifying port under test
2020-07-21 15:22:30 +02:00
185f703c23
Merge pull request #14163 from aabadie/pr/cpu/stm32g0
...
cpu/stm32g0: add basic support + add nucleo-g070rb board
2020-07-21 14:53:59 +02:00
Francisco Molina
194d3192fc
tests/trickle: add message queue
...
Add a message queue in case main thread is not yet waiting for the
message when it gets sent.
2020-07-21 14:19:55 +02:00
b7219d68f4
Merge pull request #12428 from benpicco/native_poll
...
native/async_read: use poll() instead of select()
2020-07-21 14:01:32 +02:00
Francisco Molina
92d2a727f5
tests/periph_gpio: allow specifying port under test
2020-07-21 13:19:14 +02:00
Akshai M
bcb42e2166
mac/types.h : Remove ifndef for 'GNRC_MAC_TYPE_GET_DUTYCYCLE'
...
Removed ifndef guards for GNRC_MAC_TYPE_GET_DUTYCYCLE as its
an IPC message type and is also not intended as a configuration.
2020-07-21 16:36:27 +05:30
ed3ff6ed34
tests: exclude nucleo-f070rb where it doesn't fit in memory
2020-07-21 12:45:25 +02:00
5ccbaada02
examples: exclude nucleo-g070rb where the firmware doesn't fit in memory
2020-07-21 12:45:25 +02:00