Home
last modified time | relevance | path

Searched full:setup (Results 1 – 25 of 994) sorted by relevance

12345678910>>...40

/Zephyr-Core-3.5.0/subsys/usb/device_next/
Dusbd_ch9.c28 static bool reqtype_is_to_host(const struct usb_setup_packet *const setup) in reqtype_is_to_host() argument
30 return setup->wLength && USB_REQTYPE_GET_DIR(setup->bmRequestType); in reqtype_is_to_host()
33 static bool reqtype_is_to_device(const struct usb_setup_packet *const setup) in reqtype_is_to_device() argument
35 return !reqtype_is_to_host(setup); in reqtype_is_to_device()
51 struct usb_setup_packet *setup = usbd_get_setup_pkt(uds_ctx); in set_address_after_status_stage() local
54 ret = udc_set_address(uds_ctx->dev, setup->wValue); in set_address_after_status_stage()
56 LOG_ERR("Failed to set device address 0x%x", setup->wValue); in set_address_after_status_stage()
67 struct usb_setup_packet *setup = usbd_get_setup_pkt(uds_ctx); in sreq_set_address() local
70 if (setup->wValue > 127 || setup->wLength) { in sreq_set_address()
75 if (setup->RequestType.recipient != USB_REQTYPE_RECIPIENT_DEVICE) { in sreq_set_address()
[all …]
/Zephyr-Core-3.5.0/subsys/usb/device/
Dusb_device.c104 /** Setup packet */
105 struct usb_setup_packet setup; member
143 /* Setup packet definition used to read raw data from USB line */
155 * @brief print the contents of a setup packet
157 * @param [in] setup The setup packet
160 static void usb_print_setup(struct usb_setup_packet *setup) in usb_print_setup() argument
163 ARG_UNUSED(setup); in usb_print_setup()
165 LOG_DBG("Setup: " in usb_print_setup()
167 setup->bmRequestType, in usb_print_setup()
168 setup->bRequest, in usb_print_setup()
[all …]
Dos_desc.c17 int usb_handle_os_desc(struct usb_setup_packet *setup, in usb_handle_os_desc() argument
24 if (USB_GET_DESCRIPTOR_TYPE(setup->wValue) == USB_DESC_STRING && in usb_handle_os_desc()
25 USB_GET_DESCRIPTOR_INDEX(setup->wValue) == USB_OSDESC_STRING_DESC_INDEX) { in usb_handle_os_desc()
36 int usb_handle_os_desc_feature(struct usb_setup_packet *setup, in usb_handle_os_desc_feature() argument
39 LOG_DBG("bRequest 0x%x", setup->bRequest); in usb_handle_os_desc_feature()
45 if (setup->bRequest == os_desc->vendor_code) { in usb_handle_os_desc_feature()
46 switch (setup->wIndex) { in usb_handle_os_desc_feature()
/Zephyr-Core-3.5.0/samples/net/sockets/echo_server/
DKconfig18 The value depends on your network setup.
23 The value depends on your network setup.
28 The value depends on your network setup.
42 The value depends on your network setup.
47 The value depends on your network setup.
52 The value depends on your network setup.
67 Use overlay-tunnel.conf to setup the tunnel support.
73 The value depends on your network setup.
/Zephyr-Core-3.5.0/samples/net/gptp/
DKconfig9 # how to do this kind of setup. See also VLAN sample application
10 # for vlan-setup-linux.sh script that can be used to setup the
20 The value depends on your network setup.
25 The value depends on your network setup.
39 The value depends on your network setup.
44 The value depends on your network setup.
/Zephyr-Core-3.5.0/dts/bindings/memory-controllers/
Datmel,sam-smc.yaml27 atmel,smc-setup-timing = <1 1 1 1>;
39 setup, pulse and hold. The setup is used to address the memory. The pulse
41 is66wv51216dbll-55 a minimum setup of 5ns (1 cycle) with at least 45ns
47 cycle-timing (7) = setup (1) + pulse (6) + hold (0)
50 cycle-timing (10) = setup (1) + pulse (6) + hold (3)
101 or NWE setup time.
117 atmel,smc-setup-timing:
121 This value is used to setup memory region (set address). The setup
127 The effective value for each element is: 128 x setup[5] + setup[4:0]
137 cycles. The effective value for each element is: 256 x setup[6] + setup[5:0]
[all …]
/Zephyr-Core-3.5.0/subsys/usb/device/class/hid/
Dcore.c154 struct usb_setup_packet *setup, int32_t *len, in hid_on_get_idle() argument
158 uint8_t report_id = (uint8_t)setup->wValue; in hid_on_get_idle()
187 struct usb_setup_packet *setup, int32_t *len, in hid_on_get_report() argument
198 struct usb_setup_packet *setup, int32_t *len, in hid_on_get_protocol() argument
204 if (setup->wValue) { in hid_on_get_protocol()
220 struct usb_setup_packet *setup, int32_t *len, in hid_on_set_idle() argument
224 uint8_t rate = (uint8_t)(setup->wValue >> 8); in hid_on_set_idle()
225 uint8_t report_id = (uint8_t)setup->wValue; in hid_on_set_idle()
244 dev_data->idle_on = (bool)setup->wValue; in hid_on_set_idle()
253 struct usb_setup_packet *setup, int32_t *len, in hid_on_set_report() argument
[all …]
/Zephyr-Core-3.5.0/soc/arm/atmel_sam/sam4s/
Dsoc.c23 * @brief Setup various clock on SoC at boot time.
25 * Setup the SoC clocks according to section 28.12 in datasheet.
27 * Setup Slow, Main, PLLA, Processor and Master clocks during the device boot.
47 * Setup main external crystal oscillator. in clock_init()
55 * We select maximum setup time. While start up time in clock_init()
102 /* Setup main fast RC oscillator. */ in clock_init()
124 * Setup PLLA in clock_init()
136 /* Setup PLLA. */ in clock_init()
154 * Final setup of the Master Clock in clock_init()
163 /* Setup prescaler - PLLA Clock / Processor Clock (HCLK). */ in clock_init()
[all …]
/Zephyr-Core-3.5.0/soc/arm/atmel_sam/sam4e/
Dsoc.c23 * @brief Setup various clock on SoC at boot time.
25 * Setup the SoC clocks according to section 28.12 in datasheet.
27 * Setup Slow, Main, PLLA, Processor and Master clocks during the device boot.
47 * Setup main external crystal oscillator. in clock_init()
55 * We select maximum setup time. While start up time in clock_init()
102 /* Setup main fast RC oscillator. */ in clock_init()
124 * Setup PLLA in clock_init()
136 /* Setup PLLA. */ in clock_init()
154 * Final setup of the Master Clock in clock_init()
163 /* Setup prescaler - PLLA Clock / Processor Clock (HCLK). */ in clock_init()
[all …]
/Zephyr-Core-3.5.0/soc/arm/arm/beetle/
Dpower.c62 * @brief Setup various clock on SoC in active state.
99 * @brief Setup initial wakeup sources on SoC.
101 * Setup the SoC wakeup sources.
111 * @brief Setup various clocks and wakeup sources in the SoC.
117 /* Setup active state clocks */ in soc_power_init()
120 /* Setup sleep active clocks */ in soc_power_init()
123 /* Setup deepsleep active clocks */ in soc_power_init()
126 /* Setup initial wakeup sources */ in soc_power_init()
/Zephyr-Core-3.5.0/soc/arm/nordic_nrf/nrf53/
Dsync_rtc.c47 * APP: setup PPI connection from IPC_RECEIVE to RTC CAPTURE, enable interrupt
49 * NET: setup RTC CC for arbitrary offset from now, setup PPI from RTC_COMPARE to IPC_SEND
58 * NET: setup PPI from IPC_RECEIVE to RTC CAPTURE
69 /* Setup or clear connection from IPC_RECEIVE to RTC_CAPTURE
72 * @param setup If true connection is setup, else it is cleared.
74 static void ppi_ipc_to_rtc(union rtc_sync_channels channels, bool setup) in ppi_ipc_to_rtc() argument
79 if (setup) { in ppi_ipc_to_rtc()
88 /* Setup or clear connection from RTC_COMPARE to IPC_SEND
91 * @param setup If true connection is setup, else it is cleared.
93 static void ppi_rtc_to_ipc(union rtc_sync_channels channels, bool setup) in ppi_rtc_to_ipc() argument
[all …]
/Zephyr-Core-3.5.0/samples/net/telnet/
DREADME.rst10 This application will setup IPv4/IPv6 addresses on the default
46 [Setup] [INF] main: Starting Telnet sample
47 [Setup] [INF] setup_ipv4: IPv4 address: 192.0.2.1
48 [Setup] [INF] setup_ipv6: IPv6 address: 2001:db8::1
104 shell> [Setup] [INF] main: Starting Telnet sample
105 [Setup] [INF] setup_dhcpv4: Running dhcpv4 client...
106 [Setup] [INF] setup_ipv6: IPv6 address: 2001:db8::1
112 [Setup] [INF] ipv4_addr_add_handler: IPv4 address: 192.168.0.21
113 [Setup] [INF] ipv4_addr_add_handler: Lease time: 86400 seconds
114 [Setup] [INF] ipv4_addr_add_handler: Subnet: 255.255.255.0
[all …]
/Zephyr-Core-3.5.0/subsys/usb/device/class/
Dloopback.c125 static int loopback_vendor_handler(struct usb_setup_packet *setup, in loopback_vendor_handler() argument
129 setup->bRequest, setup->bmRequestType, *len); in loopback_vendor_handler()
131 if (setup->RequestType.recipient != USB_REQTYPE_RECIPIENT_DEVICE) { in loopback_vendor_handler()
135 if (usb_reqtype_is_to_device(setup) && in loopback_vendor_handler()
136 setup->bRequest == 0x5b) { in loopback_vendor_handler()
143 MIN(sizeof(loopback_buf), setup->wLength)); in loopback_vendor_handler()
147 if ((usb_reqtype_is_to_host(setup)) && in loopback_vendor_handler()
148 (setup->bRequest == 0x5c)) { in loopback_vendor_handler()
150 setup->wLength, *data); in loopback_vendor_handler()
152 *len = MIN(sizeof(loopback_buf), setup->wLength); in loopback_vendor_handler()
/Zephyr-Core-3.5.0/soc/arm/atmel_sam/sam3x/
Dsoc.c38 * @brief Setup various clocks on SoC at boot time.
40 * Setup Slow, Main, PLLA, Processor and Master clocks during the device boot.
59 * Setup main external crystal oscillator in clock_init()
66 /* We select maximum setup time. While start up time in clock_init()
114 * Setup main fast RC oscillator in clock_init()
137 * Setup PLLA in clock_init()
149 /* Setup PLLA */ in clock_init()
167 * Final setup of the Master Clock in clock_init()
176 /* Setup prescaler - PLLA Clock / Processor Clock (HCLK) */ in clock_init()
180 /* Wait for Master Clock setup to complete */ in clock_init()
[all …]
/Zephyr-Core-3.5.0/samples/net/virtual/
DKconfig11 The value depends on your network setup.
16 The value depends on your network setup.
28 The value depends on your network setup.
33 The value depends on your network setup.
/Zephyr-Core-3.5.0/samples/net/lldp/
DKconfig17 The value depends on your network setup.
22 The value depends on your network setup.
36 The value depends on your network setup.
41 The value depends on your network setup.
/Zephyr-Core-3.5.0/soc/arm/atmel_sam/same70/
Dsoc.c54 * @brief Setup various clocks on SoC at boot time.
56 * Setup Slow, Main, PLLA, Processor and Master clocks during the device boot.
75 * Setup main external crystal oscillator if not already done in clock_init()
82 /* We select maximum setup time. in clock_init()
152 * Setup PLLA in clock_init()
164 /* Setup PLLA */ in clock_init()
181 /* Setup UPLL */ in clock_init()
190 * Final setup of the Master Clock in clock_init()
199 /* Setup prescaler - PLLA Clock / Processor Clock (HCLK) */ in clock_init()
203 /* Wait for Master Clock setup to complete */ in clock_init()
[all …]
/Zephyr-Core-3.5.0/soc/arm/atmel_sam/samv71/
Dsoc.c54 * @brief Setup various clocks on SoC at boot time.
56 * Setup Slow, Main, PLLA, Processor and Master clocks during the device boot.
75 * Setup main external crystal oscillator if not already done in clock_init()
82 /* We select maximum setup time. in clock_init()
152 * Setup PLLA in clock_init()
164 /* Setup PLLA */ in clock_init()
181 /* Setup UPLL */ in clock_init()
190 * Final setup of the Master Clock in clock_init()
199 /* Setup prescaler - PLLA Clock / Processor Clock (HCLK) */ in clock_init()
203 /* Wait for Master Clock setup to complete */ in clock_init()
[all …]
/Zephyr-Core-3.5.0/dts/bindings/adc/
Dzephyr,adc-emul.yaml21 channel setup with ADC_REF_INTERNAL will fail.
28 channel setup with ADC_REF_VDD_X will fail.
35 channel setup with ADC_REF_EXTERNAL0 will fail.
42 channel setup with ADC_REF_EXTERNAL1 will fail.
/Zephyr-Core-3.5.0/subsys/usb/device/class/dfu/
Dusb_dfu.c461 static int dfu_class_handle_to_host(struct usb_setup_packet *setup, in dfu_class_handle_to_host() argument
468 switch (setup->bRequest) { in dfu_class_handle_to_host()
503 setup->wValue, setup->wLength, dfu_data.state); in dfu_class_handle_to_host()
522 if (!setup->wLength || in dfu_class_handle_to_host()
523 dfu_data.block_nr != setup->wValue) { in dfu_class_handle_to_host()
525 "len %d", setup->wValue, in dfu_class_handle_to_host()
526 dfu_data.block_nr, setup->wLength); in dfu_class_handle_to_host()
535 if (bytes_left < setup->wLength) { in dfu_class_handle_to_host()
538 len = setup->wLength; in dfu_class_handle_to_host()
575 len < setup->wLength) { in dfu_class_handle_to_host()
[all …]
/Zephyr-Core-3.5.0/tests/net/virtual/
DKconfig12 The value depends on your network setup.
18 The value depends on your network setup.
24 The value depends on your network setup.
/Zephyr-Core-3.5.0/samples/drivers/clock_control_litex/src/
Dmain.c65 struct litex_clk_setup setup; in litex_clk_test_getters() local
69 clock_control_subsys_t sub_system = (clock_control_subsys_t)&setup; in litex_clk_test_getters()
73 setup.clkout_nr = i; in litex_clk_test_getters()
76 i, setup.rate, setup.phase, setup.duty); in litex_clk_test_getters()
119 struct litex_clk_setup setup = { in litex_clk_test_freq() local
124 clock_control_subsys_t sub_system = (clock_control_subsys_t)&setup; in litex_clk_test_freq()
132 setup.clkout_nr = LITEX_CLK_TEST_CLK1; in litex_clk_test_freq()
133 setup.rate = i; in litex_clk_test_freq()
134 sub_system = (clock_control_subsys_t)&setup; in litex_clk_test_freq()
151 setup.clkout_nr = LITEX_CLK_TEST_CLK2; in litex_clk_test_freq()
[all …]
/Zephyr-Core-3.5.0/samples/net/sockets/echo_client/
DKconfig11 The value depends on your network setup.
16 The value depends on your network setup.
30 The value depends on your network setup.
35 The value depends on your network setup.
/Zephyr-Core-3.5.0/doc/develop/toolchains/
Dzephyr_sdk.rst33 The installation consists of extracting the file and running the included setup
43 by running the setup script. If you decide not to register the Zephyr SDK in the CMake registry,
95 #. Run the Zephyr SDK bundle setup script:
100 ./setup.sh
106 If you relocate the SDK directory, you need to re-run the setup script.
160 #. Run the Zephyr SDK bundle setup script:
165 ./setup.sh
168 You only need to run the setup script once after extracting the Zephyr SDK bundle.
170 You must rerun the setup script if you relocate the Zephyr SDK bundle directory after
171 the initial setup.
[all …]
/Zephyr-Core-3.5.0/tests/subsys/usb/os_desc/src/
Dusb_osdesc.c91 struct usb_setup_packet setup; in test_handle_os_desc() local
96 setup.wValue = (USB_DESC_STRING & 0xFF) << 8; in test_handle_os_desc()
97 setup.wValue |= USB_OSDESC_STRING_DESC_INDEX; in test_handle_os_desc()
99 ret = usb_handle_os_desc(&setup, &len, &data); in test_handle_os_desc()
111 struct usb_setup_packet setup; in test_handle_os_desc_feature() local
116 setup.bRequest = os_desc.vendor_code; in test_handle_os_desc_feature()
117 setup.wIndex = USB_OSDESC_EXTENDED_COMPAT_ID; in test_handle_os_desc_feature()
119 ret = usb_handle_os_desc_feature(&setup, &len, &data); in test_handle_os_desc_feature()

12345678910>>...40