From 959b7714e21cfac5c396ca4cb26942eb1bbbc30f Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Sun, 9 Jul 2023 20:38:31 +0100 Subject: [PATCH] usb_device.rst: Improve REG_HALT description --- source/SpinalHDL/Libraries/Com/usb_device.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/SpinalHDL/Libraries/Com/usb_device.rst b/source/SpinalHDL/Libraries/Com/usb_device.rst index 7dab52ec073..5cc04e06849 100644 --- a/source/SpinalHDL/Libraries/Com/usb_device.rst +++ b/source/SpinalHDL/Libraries/Com/usb_device.rst @@ -104,14 +104,14 @@ HALT (0xFF0C) ********************** This register allows placement of a single endpoint into a dormant state in order to ensure atomicity of CPU operations, allowing to do things as read/modify/write on the endpoint registers and descriptors. -The peripheral will return NAK if the given endpoint is addressed by the usb host. +The peripheral will return NAK if the given endpoint is addressed by the usb host while halt is enabled and the endpoint is enabled. +-------------------------+------+-----------+------------------------------------------------------------------+ | Name | Type | Bits | Description | +=========================+======+===========+==================================================================+ | endpointId | WO | 3-0 | The endpoint you want to put in sleep | +-------------------------+------+-----------+------------------------------------------------------------------+ -| enable | WO | 4 | | +| enable | WO | 4 | When set halt is active, when clear endpoint is unhalted. | +-------------------------+------+-----------+------------------------------------------------------------------+ | effective | RO | 5 | After setting the enable, you need to wait for this bit to be | | enable | | | set by the hardware itself to ensure atomicity |