Enjia Mai
3a500dfdfc
tests: mem_protect: add error test case of userspace
...
Add some error test cases for userspace of memory protection module.
This increase the code coverage of testing.
Signed-off-by: Enjia Mai <enjiax.mai@intel.com>
2021-03-19 19:15:56 +01:00
Hubert Miś
1a86820876
samples: FT800 demo application
...
This patch adds a new sample application demonstrating basic
usage of FT800 display controller including touchscreen events.
Signed-off-by: Hubert Miś <hubert.mis@gmail.com>
2021-03-19 19:05:53 +01:00
Hubert Miś
cb8a271b83
shields: FTDI VM800C
...
This patch introduces support for FTDI VM800C including FT800
Embedded Video Engine
Signed-off-by: Hubert Miś <hubert.mis@gmail.com>
2021-03-19 19:05:53 +01:00
Hubert Miś
7d8f78a08b
drv: display: Initial FT800 display driver
...
This patch includes initial support for FT800 display driver.
It includes basic features. It can be easily extended with more
FT800 display list and co-processor features.
Signed-off-by: Hubert Miś <hubert.mis@gmail.com>
2021-03-19 19:05:53 +01:00
Watson Zeng
0da8ec70dc
arch: arc: enable divide zero exception
...
STATUS32.DZ(bit 13) is the EV_DivZero exception enable bit, and it's
not enabled by default. we need to set it explicitly to enable divide
zero exception on early boot and each thread's setup.
The DZ bit is ignored on write and read as zero when there is no
hardware division configured. So we can simply set DZ bit even if
there is no hardware division configured.
Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
2021-03-19 13:56:59 -04:00
Sylvio Alves
856ff7db3d
wifi: esp32: remove posix api dependency
...
HAL was updated so that POSIX API is not a dependency anymore.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2021-03-19 17:27:40 +02:00
Sylvio Alves
e21c1b9e51
west: esp32: update hal library
...
Removed wifi legacy calls
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2021-03-19 17:27:40 +02:00
Guðni Már Gilbert
01252c2b6b
tests: net: socket: getaddrinfo: fix resource leak
...
Fix resource leak detected by coverity by adding missing
zsock_freeaddrinfo(res) calls.
Coverity-CID: 219527
Fixes #32919
Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
2021-03-19 17:22:31 +02:00
Anas Nashif
9b84921340
hal_ti: update to use k_ms_to_ticks_ceil32
...
z_ms_to_ticks is deprecated, so use k_ms_to_ticks_ceil32.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2021-03-19 11:22:17 -04:00
Anas Nashif
c076d94eec
kernel: remove tickless idle
...
This feature predated the tickless kernel and has been in legacy mode
for a while. We now have no drivers or systems that do not support
tickless, so remove this option and cleanup the code to only use
tickless.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2021-03-19 11:22:17 -04:00
Anas Nashif
c5d6bdb404
clock: remove unused z_ms_to_ticks
...
z_ms_to_ticks is not being used anywhere.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2021-03-19 11:22:17 -04:00
Anas Nashif
a518f48796
clock: renmae z_timeout_end_calc -> sys_clock_timeout_end_calc
...
Do not use z_ for internal APIs, z_ is for private APIs within one
subsystem only.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2021-03-19 11:22:17 -04:00
Anas Nashif
fe0872c0ab
clocks: rename z_tick_get -> sys_clock_tick_get
...
Do not use z_ for internal APIs, z_ is for private APIs within one
subsystem only.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2021-03-19 11:22:17 -04:00
Anas Nashif
5c90ceb105
clock: rename z_tick_get_32 -> sys_clock_tick_get_32
...
Do not use z_ for internal APIs, z_ is for private APIs within one
subsystem only.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2021-03-19 11:22:17 -04:00
Anas Nashif
a387221f3c
clock: rename z_clock_hw_cycles_per_sec_runtime_get
...
Do not use z_ for internal APIs, z_ is for private APIs within one
subsystem only.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2021-03-19 11:22:17 -04:00
Anas Nashif
59c7ecb2b4
sys_lock: extra 'needed' removed
...
Minor typo fix.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2021-03-19 11:22:17 -04:00
Anas Nashif
ffd01833d3
clock: z_clock_device_ctrl -> sys_clock_device_ctrl
...
Do not use z_ for internal APIs, z_ is for private APIs within one
subsystem only.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2021-03-19 11:22:17 -04:00
Anas Nashif
771cc9705c
clock: z_clock_isr -> sys_clock_isr
...
Do not use z_ for internal APIs, z_ is for private APIs within one
subsystem only.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2021-03-19 11:22:17 -04:00
Anas Nashif
38eca45b32
drivers: arcv2_timer0: fix comment
...
Comment talking about z_timer_int_handler which does not exist, replace
with timer_int_handler.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2021-03-19 11:22:17 -04:00
Anas Nashif
12b53d121e
clock: rename z_timer_cycle_get_32 -> sys_clock_cycle_get_32
...
This is another API that is being used in all timer drivers and is not
internal to the clock subsystem. Remove the leading z_ and make promote
it to a cross-subsystem API.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2021-03-19 11:22:17 -04:00
Anas Nashif
11779e3faf
doc: clocks: link clock APIs from doxygen
...
Use :c:func: where clock APIs are being used and link the group into
RST.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2021-03-19 11:22:17 -04:00
Anas Nashif
9c1efe6b4b
clock: remove z_ from semi-public APIs
...
The clock/timer APIs are not application facing APIs, however, similar
to arch_ and a few other APIs they are available to implement drivers
and add support for new hardware and are documented and available to be
used outside of the clock/kernel subsystems.
Remove the leading z_ and provide them as clock_* APIs for someone
writing a new timer driver to use.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2021-03-19 11:22:17 -04:00
Johann Fischer
f943a5581d
modbus: rework RS-485 transceiver DE,RE GPIO configuration
...
Follow modern way to configure DE,RE GPIO using
struct gpio_dt_spec.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
dcbadd24c2
samples: rtu_server: rework LED configuration
...
Follow modern way to configure LEDs GPIO using
struct gpio_dt_spec and GPIO_DT_SPEC_GET.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
b5c761373f
doc: modbus: update description and add TCP sample references
...
Update description and add TCP sample references.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
fc7ffab2cd
samples: modbus: add TCP to serial line gateway
...
Add TCP to serial line gateway.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
e6d4b28592
samples: add MODBUS TCP server sample
...
Add MODBUS TCP server sample.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
570a2f0839
tests: modbus: add raw ADU support test
...
Add raw ADU support test.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
6394298960
modbus: add raw ADU support
...
MODBUS raw ADU support allows to implement
MODBUS messaging service over TCP or UDP.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
4ff616b647
modbus: rework interface configuration
...
Use commot parameter structure to configure server
or client interfaces.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
55204d504e
modbus: document return values of internal functions
...
Document return values of internal functions.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
144a3a5ba2
modbus: return ETIMEDOUT on timeout instead of EIO
...
Return ETIMEDOUT on timeout instead of EIO.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
0bf4916efd
modbus: move some RX/TX ADU related code to the core
...
Let the core call the modbus_tx_adu() to make
the process more comprehensible.
Move tx-wait-for-rx handling outside of client code.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
e3c630d25f
modbus: rename internal designations and do few minor fixups
...
Prefix internal functions and structs with modbus_.
Use unit_id consistently instead of node_addr.
Fix mbm_ remainder and rename to mbc_.
Rename struct modbus_frame to modbus_adu since
ADU is closer to what the structure represents.
Let the compiler/linker do the job and
remove ifdef around mbc_validate_fc03fp_response().
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
669d3e9e91
modbus: make MODBUS support over serial line optional
...
Make MODBUS support over serial line optional.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
b132ab556c
modbus: move serial line config outside context
...
Move serial line config outside context.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
3ddb47cc43
modbus: move MODBUS over serial line code to own file
...
Move MODBUS over serial line code to own source file.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
19d0b474c1
modbus: use enum for MODBUS mode
...
Use enum for MODBUS mode.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
5319c7b042
tests: modbus: remove _rtu_ from modbus test
...
Remove _rtu_ from modbus test.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
9792a6c43e
modbus: rename mb_rtu_ to modbus_
...
Rename mb_rtu_ to modbus_.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
699b2cdf9b
modbus: remove RTU from configuration and headers
...
Remove RTU from configuration and headers
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
ed0629f623
modbus: rename MODBUS RTU API to common MODBUS API
...
Rename MODBUS RTU API to common MODBUS API.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
ac487727df
modbus: reset buffer after reception
...
Reset buffer after reception, even if an error occurs.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
a9690e0862
modbus: fix ASCII frame reception and add test for ASCII mode
...
Fix ASCII frame reception and add test for ASCII mode.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
b0518d6100
modbus: get interface index according to interface name
...
Add function to get Modbus RTU interface index according
to interface name. This can be used to clearly identify
interfaces in the application.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
d0ff35b88d
modbus: add DE/nRE gpios properties to samples and test
...
Add DE/nRE gpios properties to samples and test.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
c96aeff785
modbus: add control for DE/nRE RS-485 transceiver signals
...
Add support to control DE/nRE RS-485 transceiver signals
over GPIO pins. Useful if the UART controller does not
support RS-485 mode.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00
Johann Fischer
92b11e2645
doc: add Modbus RTU documentation
...
Add Modbus RTU documentation.
Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2021-03-19 15:50:21 +01:00
Johann Fischer
fef70aa494
samples: add Modbus RTU client sample
...
Add Modbus RTU client sample.
Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2021-03-19 15:50:21 +01:00
Johann Fischer
48d1b4b697
samples: add Modbus RTU server sample
...
Add Modbus RTU server sample.
Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2021-03-19 15:50:21 +01:00