commit | 4bef3d0dbc56f90607cc2afac049a38f427d1197 | [log] [tgz] |
---|---|---|
author | Timothy Chen <timothytim@google.com> | Fri Sep 13 15:40:54 2019 -0700 |
committer | tjaychen <timothytim@google.com> | Fri Sep 13 16:25:51 2019 -0700 |
tree | 0e245fdaa64624127757521915efce9ed83775e9 | |
parent | cfd79fad02aa08d0c7330f894688ed5d39c951d4 [diff] |
Update usb functions for new reg headers
diff --git a/sw/lib/usbdev.c b/sw/lib/usbdev.c index 96d6b55..8814766 100644 --- a/sw/lib/usbdev.c +++ b/sw/lib/usbdev.c
@@ -41,7 +41,7 @@ } uint32_t *usbdev_buf_idtoaddr(usbdev_ctx_t *ctx, usbbufid_t buf) { - return (uint32_t *)(USBDEV_BUFFER(USBDEV_BASE_ADDR) + (buf * BUF_LENGTH)); + return (uint32_t *)(USBDEV_BUFFER() + (buf * BUF_LENGTH)); } void usbdev_buf_copyto_byid(usbdev_ctx_t *ctx, usbbufid_t buf, const void *from,