diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-05-03 07:24:35 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-05-03 07:24:35 +0000 |
commit | a9472ba1a1f64e3ba4f56f5140d7839c3b066c25 (patch) | |
tree | 5d1c2d28666b83e9e4a34695bb425abccd750e83 | |
parent | fbe16d0988d5948aeafc93509c819911a8755ee4 (diff) | |
download | ChibiOS-a9472ba1a1f64e3ba4f56f5140d7839c3b066c25.tar.gz ChibiOS-a9472ba1a1f64e3ba4f56f5140d7839c3b066c25.tar.bz2 ChibiOS-a9472ba1a1f64e3ba4f56f5140d7839c3b066c25.zip |
Fixed bug #493.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6906 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/ports/STM32/LLD/OTGv1/usb_lld.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c b/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c index 409fa809a..83997cc18 100644 --- a/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c +++ b/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c @@ -740,10 +740,10 @@ void usb_lld_init(void) { {
void *wsp = USBD1.wa_pump;
_thread_memfill((uint8_t *)wsp,
- (uint8_t *)wsp + sizeof(Thread),
+ (uint8_t *)wsp + sizeof(thread_t),
CH_DBG_THREAD_FILL_VALUE);
- _thread_memfill((uint8_t *)wsp + sizeof(Thread),
- (uint8_t *)wsp + sizeof(USBD1.wa_pump) - sizeof(Thread),
+ _thread_memfill((uint8_t *)wsp + sizeof(thread_t),
+ (uint8_t *)wsp + sizeof(USBD1.wa_pump) - sizeof(thread_t),
CH_DBG_STACK_FILL_VALUE);
}
#endif /* CH_DBG_FILL_THREADS */
@@ -764,10 +764,10 @@ void usb_lld_init(void) { {
void *wsp = USBD2.wa_pump;
_thread_memfill((uint8_t *)wsp,
- (uint8_t *)wsp + sizeof(Thread),
+ (uint8_t *)wsp + sizeof(thread_t),
CH_DBG_THREAD_FILL_VALUE);
- _thread_memfill((uint8_t *)wsp + sizeof(Thread),
- (uint8_t *)wsp + sizeof(USBD2.wa_pump) - sizeof(Thread),
+ _thread_memfill((uint8_t *)wsp + sizeof(thread_t),
+ (uint8_t *)wsp + sizeof(USBD2.wa_pump) - sizeof(thread_t),
CH_DBG_STACK_FILL_VALUE);
}
#endif /* CH_DBG_FILL_THREADS */
|