always break rule (#154)
This commit is contained in:
@@ -55,14 +55,16 @@
|
||||
/* USER CODE END FunctionPrototypes */
|
||||
|
||||
/* GetIdleTaskMemory prototype (linked to static allocation support) */
|
||||
void vApplicationGetIdleTaskMemory(StaticTask_t** ppxIdleTaskTCBBuffer,
|
||||
StackType_t** ppxIdleTaskStackBuffer,
|
||||
uint32_t* pulIdleTaskStackSize);
|
||||
void vApplicationGetIdleTaskMemory(
|
||||
StaticTask_t** ppxIdleTaskTCBBuffer,
|
||||
StackType_t** ppxIdleTaskStackBuffer,
|
||||
uint32_t* pulIdleTaskStackSize);
|
||||
|
||||
/* GetTimerTaskMemory prototype (linked to static allocation support) */
|
||||
void vApplicationGetTimerTaskMemory(StaticTask_t** ppxTimerTaskTCBBuffer,
|
||||
StackType_t** ppxTimerTaskStackBuffer,
|
||||
uint32_t* pulTimerTaskStackSize);
|
||||
void vApplicationGetTimerTaskMemory(
|
||||
StaticTask_t** ppxTimerTaskTCBBuffer,
|
||||
StackType_t** ppxTimerTaskStackBuffer,
|
||||
uint32_t* pulTimerTaskStackSize);
|
||||
|
||||
/* Hook prototypes */
|
||||
void vApplicationIdleHook(void);
|
||||
@@ -85,9 +87,10 @@ __weak void vApplicationIdleHook(void) {
|
||||
static StaticTask_t xIdleTaskTCBBuffer;
|
||||
static StackType_t xIdleStack[configMINIMAL_STACK_SIZE];
|
||||
|
||||
void vApplicationGetIdleTaskMemory(StaticTask_t** ppxIdleTaskTCBBuffer,
|
||||
StackType_t** ppxIdleTaskStackBuffer,
|
||||
uint32_t* pulIdleTaskStackSize) {
|
||||
void vApplicationGetIdleTaskMemory(
|
||||
StaticTask_t** ppxIdleTaskTCBBuffer,
|
||||
StackType_t** ppxIdleTaskStackBuffer,
|
||||
uint32_t* pulIdleTaskStackSize) {
|
||||
*ppxIdleTaskTCBBuffer = &xIdleTaskTCBBuffer;
|
||||
*ppxIdleTaskStackBuffer = &xIdleStack[0];
|
||||
*pulIdleTaskStackSize = configMINIMAL_STACK_SIZE;
|
||||
@@ -99,9 +102,10 @@ void vApplicationGetIdleTaskMemory(StaticTask_t** ppxIdleTaskTCBBuffer,
|
||||
static StaticTask_t xTimerTaskTCBBuffer;
|
||||
static StackType_t xTimerStack[configTIMER_TASK_STACK_DEPTH];
|
||||
|
||||
void vApplicationGetTimerTaskMemory(StaticTask_t** ppxTimerTaskTCBBuffer,
|
||||
StackType_t** ppxTimerTaskStackBuffer,
|
||||
uint32_t* pulTimerTaskStackSize) {
|
||||
void vApplicationGetTimerTaskMemory(
|
||||
StaticTask_t** ppxTimerTaskTCBBuffer,
|
||||
StackType_t** ppxTimerTaskStackBuffer,
|
||||
uint32_t* pulTimerTaskStackSize) {
|
||||
*ppxTimerTaskTCBBuffer = &xTimerTaskTCBBuffer;
|
||||
*ppxTimerTaskStackBuffer = &xTimerStack[0];
|
||||
*pulTimerTaskStackSize = configTIMER_TASK_STACK_DEPTH;
|
||||
|
@@ -156,18 +156,19 @@ uint32_t SystemCoreClock = 4000000U;
|
||||
|
||||
const uint8_t AHBPrescTable[16] = {0U, 0U, 0U, 0U, 0U, 0U, 0U, 0U, 1U, 2U, 3U, 4U, 6U, 7U, 8U, 9U};
|
||||
const uint8_t APBPrescTable[8] = {0U, 0U, 0U, 0U, 1U, 2U, 3U, 4U};
|
||||
const uint32_t MSIRangeTable[12] = {100000U,
|
||||
200000U,
|
||||
400000U,
|
||||
800000U,
|
||||
1000000U,
|
||||
2000000U,
|
||||
4000000U,
|
||||
8000000U,
|
||||
16000000U,
|
||||
24000000U,
|
||||
32000000U,
|
||||
48000000U};
|
||||
const uint32_t MSIRangeTable[12] = {
|
||||
100000U,
|
||||
200000U,
|
||||
400000U,
|
||||
800000U,
|
||||
1000000U,
|
||||
2000000U,
|
||||
4000000U,
|
||||
8000000U,
|
||||
16000000U,
|
||||
24000000U,
|
||||
32000000U,
|
||||
48000000U};
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@@ -139,10 +139,8 @@ static int8_t CDC_Receive_FS(uint8_t* pbuf, uint32_t* Len);
|
||||
* @}
|
||||
*/
|
||||
|
||||
USBD_CDC_ItfTypeDef USBD_Interface_fops_FS = {CDC_Init_FS,
|
||||
CDC_DeInit_FS,
|
||||
CDC_Control_FS,
|
||||
CDC_Receive_FS};
|
||||
USBD_CDC_ItfTypeDef USBD_Interface_fops_FS =
|
||||
{CDC_Init_FS, CDC_DeInit_FS, CDC_Control_FS, CDC_Receive_FS};
|
||||
|
||||
/* Private functions ---------------------------------------------------------*/
|
||||
/**
|
||||
|
@@ -135,16 +135,17 @@ uint8_t* USBD_FS_USR_BOSDescriptor(USBD_SpeedTypeDef speed, uint16_t* length);
|
||||
* @{
|
||||
*/
|
||||
|
||||
USBD_DescriptorsTypeDef FS_Desc = {USBD_FS_DeviceDescriptor,
|
||||
USBD_FS_LangIDStrDescriptor,
|
||||
USBD_FS_ManufacturerStrDescriptor,
|
||||
USBD_FS_ProductStrDescriptor,
|
||||
USBD_FS_SerialStrDescriptor,
|
||||
USBD_FS_ConfigStrDescriptor,
|
||||
USBD_FS_InterfaceStrDescriptor
|
||||
USBD_DescriptorsTypeDef FS_Desc = {
|
||||
USBD_FS_DeviceDescriptor,
|
||||
USBD_FS_LangIDStrDescriptor,
|
||||
USBD_FS_ManufacturerStrDescriptor,
|
||||
USBD_FS_ProductStrDescriptor,
|
||||
USBD_FS_SerialStrDescriptor,
|
||||
USBD_FS_ConfigStrDescriptor,
|
||||
USBD_FS_InterfaceStrDescriptor
|
||||
#if(USBD_LPM_ENABLED == 1)
|
||||
,
|
||||
USBD_FS_USR_BOSDescriptor
|
||||
,
|
||||
USBD_FS_USR_BOSDescriptor
|
||||
#endif /* (USBD_LPM_ENABLED == 1) */
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user