Skip to content

Conversation

@pirearadu
Copy link

Add rapsberry pi pico PWM driver.

Signed-off-by: Radu Pirea pirea.radu@gmail.com

yonsch and others added 6 commits May 7, 2021 14:14
Signed-off-by: Yonatan Schachter <yonatan.schachter@gmail.com>
Signed-off-by: Yonatan Schachter <yonatan.schachter@gmail.com> Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
Signed-off-by: Yonatan Schachter <yonatan.schachter@gmail.com>
Signed-off-by: Yonatan Schachter <yonatan.schachter@gmail.com>
Signed-off-by: Yonatan Schachter <yonatan.schachter@gmail.com>
Add rapsberry pi pico PWM driver. Signed-off-by: Radu Pirea <pirea.radu@gmail.com>
@pirearadu pirearadu requested a review from yonsch as a code owner June 4, 2021 19:39
yonsch pushed a commit that referenced this pull request Aug 8, 2021
Implement the functions required to calculate the SubEvent 1 and SubEvent n mapped channel indices. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
yonsch pushed a commit that referenced this pull request Aug 8, 2021
Added Bluetooth Specification references to the implementation of Channel Selection algorithm #2 in the Controller. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
@yonsch yonsch force-pushed the support_raspberrypi_pico branch from 0bdba34 to 2f1955d Compare August 21, 2021 21:24
@yonsch yonsch force-pushed the support_raspberrypi_pico branch 7 times, most recently from 1aad670 to f272057 Compare September 23, 2021 16:08
yonsch pushed a commit that referenced this pull request Oct 23, 2021
Remove explicit disable of Channel Selection Algorithm #2 in the mesh tests that use Extended Advertising. Fixes zephyrproject-rtos#39188. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
@yonsch yonsch force-pushed the support_raspberrypi_pico branch from f272057 to a7de8d0 Compare October 23, 2021 21:52
@yonsch yonsch force-pushed the support_raspberrypi_pico branch 4 times, most recently from d7ef07c to fa6a098 Compare December 1, 2021 20:40
@yonsch yonsch force-pushed the support_raspberrypi_pico branch 3 times, most recently from 42b860f to 0fdb49d Compare December 13, 2021 20:49
@yonsch yonsch force-pushed the support_raspberrypi_pico branch from 0fdb49d to 3ed4d59 Compare December 20, 2021 22:53
@yonsch yonsch force-pushed the support_raspberrypi_pico branch 2 times, most recently from 86d7ea3 to 314c4c4 Compare January 10, 2022 19:58
@yonsch yonsch force-pushed the support_raspberrypi_pico branch 4 times, most recently from 2e9c80f to a69989e Compare January 22, 2022 17:53
@yonsch yonsch force-pushed the support_raspberrypi_pico branch 12 times, most recently from e441781 to c93f206 Compare February 2, 2022 11:33
@yonsch yonsch closed this Jul 8, 2022
yonsch pushed a commit that referenced this pull request Dec 8, 2022
This patch reworks how fragments are handled in the net_buf infrastructure. In particular, it removes the union around the node and frags members in the main net_buf structure. This is done so that both can be used at the same time, at a cost of 4 bytes per net_buf instance. This implies that the layout of net_buf instances changes whenever being inserted into a queue (fifo or lifo) or a linked list (slist). Until now, this is what happened when enqueueing a net_buf with frags in a queue or linked list: 1.1 Before enqueueing: +--------+ +--------+ +--------+ |#1 node|\ |#2 node|\ |#3 node|\ | | \ | | \ | | \ | frags |------| frags |------| frags |------NULL +--------+ +--------+ +--------+ net_buf #1 has 2 fragments, net_bufs #2 and #3. Both the node and frags pointers (they are the same, since they are unioned) point to the next fragment. 1.2 After enqueueing: +--------+ +--------+ +--------+ +--------+ +--------+ |q/slist |------|#1 node|------|#2 node|------|#3 node|------|q/slist | |node | | *flag | / | *flag | / | | / |node | | | | frags |/ | frags |/ | frags |/ | | +--------+ +--------+ +--------+ +--------+ +--------+ When enqueing a net_buf (in this case #1) that contains fragments, the current net_buf implementation actually enqueues all the fragments (in this case #2 and #3) as actual queue/slist items, since node and frags are one and the same in memory. This makes the enqueuing operation expensive and it makes it impossible to atomically dequeue. The `*flag` notation here means that the `flags` member has been set to `NET_BUF_FRAGS` in order to be able to reconstruct the frags pointers when dequeuing. After this patch, the layout changes considerably: 2.1 Before enqueueing: +--------+ +--------+ +--------+ |#1 node|--NULL |#2 node|--NULL |#3 node|--NULL | | | | | | | frags |-------| frags |-------| frags |------NULL +--------+ +--------+ +--------+ This is very similar to 1.1, except that now node and frags are different pointers, so node is just set to NULL. 2.2 After enqueueing: +--------+ +--------+ +--------+ |q/slist |-------|#1 node|-------|q/slist | |node | | | |node | | | | frags | | | +--------+ +--------+ +--------+ | +--------+ +--------+ | |#2 node|--NULL |#3 node|--NULL | | | | | +------------| frags |-------| frags |------NULL +--------+ +--------+ When enqueuing net_buf #1, now we only enqueue that very item, instead of enqueing the frags as well, since now node and frags are separate pointers. This simplifies the operation and makes it atomic. Resolves zephyrproject-rtos#52718. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
yonsch pushed a commit that referenced this pull request Mar 25, 2023
Add additional custom LE Channel Selection #2 tests to cover event and subevent mapping. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment