Correct a few missed time values from the tick rate change (#874)

* Pass over all refs to xTaskGetTickCount()

* That wasn't a second 😓

* Update FreeRTOSConfig.h

* Fix warning in usb code; style; fix slow description
This commit is contained in:
Ben V. Brown
2021-03-15 21:01:09 +11:00
committed by GitHub
parent 2796f095af
commit 7fbfde7b33
12 changed files with 35 additions and 28 deletions

View File

@@ -7,7 +7,7 @@
#ifndef BSP_DEFINES_H_
#define BSP_DEFINES_H_
#include "FreeRTOSConfig.h"
enum Orientation { ORIENTATION_LEFT_HAND = 0, ORIENTATION_RIGHT_HAND = 1, ORIENTATION_FLAT = 3 };
// It is assumed that all hardware implements an 8Hz update period at this time

View File

@@ -83,7 +83,9 @@
*----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
/* Section where include file can be added */
#ifdef __cplusplus
extern "C" {
#endif
/* USER CODE END Includes */
/* Ensure stdint is only used by the compiler, and not the assembler. */
@@ -172,5 +174,7 @@ extern uint32_t SystemCoreClock;
#define configTIMER_QUEUE_LENGTH 8
#define configTIMER_TASK_STACK_DEPTH (512 / 4)
#endif
#ifdef __cplusplus
}
#endif
#endif /* FREERTOS_CONFIG_H */

View File

@@ -93,7 +93,8 @@ usb_reqsta usbd_class_request(usb_core_driver *udev, usb_req *req) {
if (USBD_CONFIGURED == udev->dev.cur_status) {
if (BYTE_LOW(req->wIndex) <= USBD_ITF_MAX_NUM) {
/* call device class handle function */
return (usb_reqsta)udev->dev.class_core->req_proc(udev, req);
uint8_t res = udev->dev.class_core->req_proc(udev, req);
return (usb_reqsta)res;
}
}
@@ -426,7 +427,10 @@ static usb_reqsta _usb_std_getdescriptor(usb_core_driver *udev, usb_req *req) {
case USB_RECPTYPE_ITF:
/* get device class special descriptor */
return (usb_reqsta)(udev->dev.class_core->req_proc(udev, req));
{
uint8_t res = udev->dev.class_core->req_proc(udev, req);
return (usb_reqsta)res;
}
case USB_RECPTYPE_EP:
break;

View File

@@ -45,7 +45,6 @@ OF SUCH DAMAGE.
static uint32_t usbh_request_submit(usb_core_driver *pudev, uint8_t pp_num) {
pudev->host.pipe[pp_num].urb_state = URB_IDLE;
pudev->host.pipe[pp_num].xfer_count = 0U;
return usb_pipe_xfer(pudev, pp_num);
}
@@ -63,8 +62,8 @@ usbh_status usbh_ctlsetup_send(usb_core_driver *pudev, uint8_t *buf, uint8_t pp_
pp->DPID = PIPE_DPID_SETUP;
pp->xfer_buf = buf;
pp->xfer_len = USB_SETUP_PACKET_LEN;
return (usbh_status)usbh_request_submit(pudev, pp_num);
uint32_t res = usbh_request_submit(pudev, pp_num);
return (usbh_status)res;
}
/*!