Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement putpmsg #68439

Closed
wants to merge 148 commits into from
Closed

Conversation

AbhinavMir
Copy link
Contributor

Fixes #66979

Add the header entry for putpmsg to the stropts.h file.

Signed-off-by: Abhinav Srivastava <[email protected]>
This adds an implementation for putpmsg, which is a stub.

Signed-off-by: Abhinav Srivastava <[email protected]>
Add tests for putpmsg and getpmsg.  Also add the necessary Kconfig.

Signed-off-by: Abhinav Srivastava <[email protected]>
@AbhinavMir
Copy link
Contributor Author

Sorry for the third PR, I kept getting the branch convention wrong and wanted to keep it clean!

Jordan Yates and others added 3 commits February 1, 2024 14:49
Re-add finer grained compilation control that was lost in the CMSIS
split (zephyrproject-rtos#56957). CMSIS DSP is several hundred files and has a measurable
effect on compile times.

Only compiling features that are required improves this.

Signed-off-by: Jordan Yates <[email protected]>
Request the CMSIS DSP features required for each test.

Signed-off-by: Jordan Yates <[email protected]>
Add myself to display collaborators list to aid in reviewing PRs, as I
have been working with SPI based and parallel displays within Zephyr

Signed-off-by: Daniel DeGrasse <[email protected]>
@ycsin
Copy link
Member

ycsin commented Feb 2, 2024

wanted to keep it clean!

I wouldn't stress about a dirty branch too much, just make sure that the commit messages contain all the necessary info for archaeology purposes

@@ -19,6 +19,8 @@ struct strbuf {

int putmsg(int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr, int flags);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the empty line here looks unnecessary

@@ -2,3 +2,70 @@

add_subdirectory(options)
add_subdirectory(shell)

Copy link
Member

@ycsin ycsin Feb 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like a rebase error to me, just create a new branch of the latest main (make sure you synced the upstream) (for new PRs), and work from there.

For this one though, you can hard reset the branch to the upstream main

KshitijShah-GitHub and others added 20 commits February 1, 2024 21:42
Add emulator for bma4xx sensor.

Signed-off-by: Kshitij Shah <[email protected]>
Added details to update PATH environment variable for linkserver

Signed-off-by: Derek Snell <[email protected]>
…driver

1. Configure 'core-clock' to 192MHz to generate necessary 48MHz
2. Support workaround to disallowing ISO IN/OUT EPs to be assigned
   the same EP numbers

Signed-off-by: Chun-Chieh Li <[email protected]>
Suspend-to-idle stops I2C module clocks, which must remain active during
transaction

Signed-off-by: Petr Hlineny <[email protected]>
Declare the CoAP server receiving buffer as static to lower the
stack usage.

Signed-off-by: Pieter De Gendt <[email protected]>
deal wit the case of Trivial+Hotifx and mark it correctly in PR
dashboard.

Signed-off-by: Anas Nashif <[email protected]>
Update the copyright line in files to latest version as per gecko_sdk 4.4.0
Correction in location of se_manager in gecko/README

Signed-off-by: Sateesh Kotapati <[email protected]>
Seems like GitHub introduced a macOS on ARM runner, add it to the
multiplatform test, with this we are running all the SDKs minus the
Linux ARM64 one.

Signed-off-by: Fabio Baltieri <[email protected]>
DHCPv4 server will send an ICMP probe (echo request) for the requested
address before replying with DHCP Offer, unless probing is disabled in
Kconfig.

Signed-off-by: Robert Lubos <[email protected]>
Add test case which verifies that ICMP probing work as expected for the
DHCPv4 server. Make sure we build tests with both, probing enabled
(default) and disabled (enforced in testcase.yml) to make sure the
server is functional regardless of the probing feature.

Signed-off-by: Robert Lubos <[email protected]>
Implement `sched_rr_get_interval()` POSIX APIs
as a part of PSE53 `_POSIX_PRIORITY_SCHEDULING` option group.
Functions is actually placeholders and just return `ENOSYS`
since Zephyr does not yet support processes or process scheduling.

signed-off-by: Gaetan Perrot <[email protected]>
`sched_rr_get_interval()` is now implemented,mark it so.

signed-off-by: Gaetan Perrot <[email protected]>
Implement tests for `sched_rr_get_interval()` .
Function is actually placeholders and just return `ENOSYS`
since Zephyr does not yet support processes or process scheduling.

signed-off-by: Gaetan Perrot <[email protected]>
This change makes the optional procedures in the Media Control Client
optional and configurable through Kconfig.

Signed-off-by: Ping Wang <[email protected]>
Some devices like S32K1xx don't feature an internal 32.768 KHz
oscillator. Also, updated the code to use the existing HAL API
for this purpose.

Signed-off-by: Manuel Argüelles <[email protected]>
Add support for the Real Time Clock (RTC) counter.

Signed-off-by: Manuel Argüelles <[email protected]>
Enable the Real Time Clock (RTC) counter on ucans32k1sic.

Signed-off-by: Manuel Argüelles <[email protected]>
Fix missing call to ull_chan_reset(), this fixes
uninitialized channel map being used after LL reset.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Add power management support to the gpio-qdec driver.

This is a bit complicated by the fact that the driver has two modes of
operation and the interrupt, timer and idle work ineract with each
other.

The suspend sequence is:
- set the suspended bit (inhibits the poll timer so that it does not
  resubmit the idle work)
- cancel the idle work (so that it does not schedule and re-set the
  interrupt or timers)
- disable interrupts (if used)
- stop the sampling timer
- disconnect the pins

The resume sequence is more or less the opposite.

Signed-off-by: Fabio Baltieri <[email protected]>
Fix MFIFO_DEFINE to reduce FLASH usage by moving the pool
outside the struct that is static initialized.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
nordicjm and others added 24 commits February 2, 2024 19:54
Adds a note that build type has been deprecated in favour of
file suffix

Signed-off-by: Jamie McCrae <[email protected]>
Newlib doesn't have Zephyr support, so we need to define these functions
when the application doesn't ask for the right level of POSIX support.

Signed-off-by: Keith Packard <[email protected]>
This test does not use any APIs beyond those provided in the Zephyr
standard set, so it should not define _POSIX_C_SOURCE.

Signed-off-by: Keith Packard <[email protected]>
Display is not working on STM32F429i-DISC1 board because
display_blanking_off() needs to be sent to ILI9341 device, but it's sent
to LTDC instead which does not implement it.
This patch adds a LTDC DT property that provides the pHandle of the
display's own controller so that display_blanking_off/on are forwarded to
it when they are called by an application.

Signed-off-by: Abderrahmane Jarmouni <[email protected]>
Building with Zephyr SDK 0.16.5 revealed a minor bug with the buffer
size provided to snprintk():
  specified bound 38 exceeds destination size 20 [-Wstringop-overflow=]

As we provide the buffer to snprintk() with an offset, the actual
buffer size should be reduced by that offset value.

Signed-off-by: Robert Lubos <[email protected]>
Add FlexSPI clock source to RT1010 devicetree definition for FlexSPI
node, to match FlexSPI clock source defined on standard FlexSPI dt node
that is removed in the RT1010 devicetree.

Fixes zephyrproject-rtos#68488

Signed-off-by: Daniel DeGrasse <[email protected]>
With the device_sync_sem semaphore, there is the possibility of
the code not returning to give it back
(mcux_flexcomm_master_transfer_callback is never called),
causing it to get stuck in k_sem_take(&data->device_sync_sem, K_FOREVER)
in subsequent calls.

The i2c driver recovers by other means
(enabling FSL_FEATURE_I2C_TIMEOUT_RECOVERY)
but the callback might not return.

Adding a timeout option allows for this occurrence to be avoided.

Signed-off-by: Guilherme Casa Nova <[email protected]>
As defined in IEEE802.1AS-2020 ch. 10.2.12.2.1, the port identity
of an MDSyncSend structure sent from a port shall be set to the
port identity of the sending port according to and ch. 8.5.2.

This commit replaces the port identity before forwarding a sync.

Fixes zephyrproject-rtos#68385

Signed-off-by: Manuel Schappacher <[email protected]>
this brings in a newer version of the usb middleware.

see zephyrproject-rtos/hal_nxp#316 for more
information.

Signed-off-by: Jacob Siverskog <[email protected]>
`sched_getscheduler()` and `sched_getparam()`
is now implemented, mark it so.
Was missing on the documentation before.

signed-off-by: Gaetan Perrot <[email protected]>
Check for COMPILER_ISA_THUMB2 rather than CPU_CORTEX_M when determining
if special handling is required for thumb instructions.

This prevents false negative results on Cortex-R devices that may
generate a fault (test pass) even if the MMU/MPU is not configured
correctly.

Signed-off-by: Grant Ramsay <[email protected]>
Executing from RAM sections other than rom/code should cause a fault.
This is tested as part of the kernel mem_protect tests.

Signed-off-by: Grant Ramsay <[email protected]>
Introduce a set of cache APIs used on architectures with cache incoherency.

Signed-off-by: Anas Nashif <[email protected]>
Remove custom implementation and use system cache interface instead.

Signed-off-by: Anas Nashif <[email protected]>
point to d40682678b7378fb930ca5535ccd2ce667ed5c27.

Signed-off-by: Anas Nashif <[email protected]>
Traditionally, k_thread_create() has required that the application
size the stack correctly.  Zephyr doesn't detect or return errors and
treats stack overflow as an application bug (though obviously some
architectures have runtime features to trap on overflows).

At this one spot though, it's possible for the kernel to adjust the
stack for K_THREAD_STACK_RESERVED in such a way that the arch layer's
own stack initialization overflows.  That failure can be seen by
static analysis, so we can't just sweep it under the rug as an
application failure.

Unfortunately there aren't any good options for handling it here (no
way to return failure, can't be a build assert as the size is a
runtime argument).  A panic will have to do.

Fixes: zephyrproject-rtos#67106
Fixes: zephyrproject-rtos#65584

Signed-off-by: Andy Ross <[email protected]>
Since we can always lookup the group from the streams, the
group parameter had no purpose.

Signed-off-by: Emil Gydesen <[email protected]>
Modify the parameters for bt_cap_initiator_unicast_audio_update
so that they are more similar to
bt_cap_initiator_unicast_audio_start.

Signed-off-by: Emil Gydesen <[email protected]>
Modify the parameters for bt_cap_initiator_unicast_audio_stop
so that they are more similar to
bt_cap_initiator_unicast_audio_start.

Signed-off-by: Emil Gydesen <[email protected]>
It is observed that starting up CPU may result in other CPUs
crashing due to de-referencing NULL pointers. Note that this
happened on the up_squared board, but there was no way to
attach debugger to verify. It started working again after
moving z_dummy_thread_init() before smp_timer_init(), which
was the old behavior before commit
eefaeee where the issue
first appeared. So mimic the old behavior to workaround
the issue.

Fixes zephyrproject-rtos#68115

Signed-off-by: Daniel Leung <[email protected]>
Using the 8 base clock cycles per bit period setting (instead of 16)
reduces the uart baud rate error when using a 12MHz crystal (found on
many RA Microcontroller development kits boards). This setting also
slightly reduces the error when using the internal 48MHz oscillator,
used by the Arduino UNO R4 Minima board currently support by Zephyr.

Signed-off-by: Ian Morris <[email protected]>
The bindings documentation contains a deprecated pixel-format.

Signed-off-by: Joel Guittet <[email protected]>
The GC9X01X driver relies on panel.h instead of gc9x01x.h (doesn't
exist).

Signed-off-by: Joel Guittet <[email protected]>
@AbhinavMir AbhinavMir closed this Feb 5, 2024
@zephyrbot
Copy link
Collaborator

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
hal_nxp zephyrproject-rtos/hal_nxp@ae43870 zephyrproject-rtos/hal_nxp@d45b14c (master) zephyrproject-rtos/[email protected]
hal_silabs zephyrproject-rtos/hal_silabs@2002416 zephyrproject-rtos/hal_silabs@b11b291 (master) zephyrproject-rtos/[email protected]
sof zephyrproject-rtos/sof@7a0ff76 (zephyr_wip) zephyrproject-rtos/sof@0606152 (zephyr) zephyrproject-rtos/[email protected]

Note: This message is automatically posted and updated by the Manifest GitHub Action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

posix: implement putpmsg()