Skip to content

Commit 9d7fb7e

Browse files
committed
initconfig add name
1 parent 32bcb65 commit 9d7fb7e

9 files changed

Lines changed: 14 additions & 8 deletions

File tree

Athena-Driver/BSP/Components/FM25CL64/src/fm25cl64.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void WriteByteToFM25xxx(FM25ObjectType *fram, uint32_t regAddress, uint8_t data)
2929
WriteBytesToFM25xxx(fram, regAddress, &data, 1);
3030
}
3131

32-
/* 设置写使能所存器*/
32+
/* 设置写使能锁存器*/
3333
void SetWriteEnableLatchForFM25xxx(FM25ObjectType *fram) {
3434
uint8_t opCode = FM25_WREN;
3535

@@ -40,15 +40,15 @@ void SetWriteEnableLatchForFM25xxx(FM25ObjectType *fram) {
4040
ReadStatusForFM25xxx(fram);
4141
}
4242

43-
/* 设置写使能所存器*/
43+
/* 设置写使能锁存器*/
4444
void SetWriteEnableForFM25xxx(FM25ObjectType *fram) {
4545
uint8_t opCode = FM25_WREN;
4646
fram->ChipSelect(FM25CS_Enable);
4747
fram->Write(&opCode, 1);
4848
fram->ChipSelect(FM25CS_Disable);
4949
}
5050

51-
/* 复位写使能所存器*/
51+
/* 复位写使能锁存器*/
5252
void ResetWriteEnableLatchForFM25xxx(FM25ObjectType *fram) {
5353
uint8_t opCode = FM25_WRDI;
5454

@@ -197,7 +197,7 @@ void Fm25cxxInitialization(FM25ObjectType *fram, //FM25xxx对象实体
197197

198198
//写允许
199199
SetWriteEnableLatchForFM25xxx(fram);
200-
LL_mDelay(3);
200+
LL_mDelay(1);
201201

202202
}
203203

Athena-Driver/SysDriver/inc/FramXfer/fram_sys_xfer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ typedef struct {
2626
uint8_t* content;
2727
} DataPacket;
2828

29+
void Framinit();
2930
void FramXfertoPerform(uint8_t* data, size_t len);
3031
void XfertoPerformance(DataPacket* packet);
3132
#endif /* SYSDRIVER_INC_FRAMXFER_FRAM_SYS_XFER_H_ */

Core/Inc/main.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ void Error_Handler(void);
7575

7676
typedef struct user_init {
7777
void (*init)();
78+
char name[20];
7879
} UserInit;
7980

8081
/* USER CODE BEGIN EFP */

Core/Src/freertos.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include "spi_drv.h"
3030
#include "spi.h"
3131
#include "usart.h"
32+
#include "debug.h"
3233

3334
//#include "adhocuwb.h"
3435

@@ -71,6 +72,7 @@ void MX_FREERTOS_Init(void) {
7172
initConfig = &_userInit_start;
7273
while(initConfig < &_userInit_stop){
7374
(*initConfig)->init();
75+
//DEBUG_PRINTF("%s is startup!\n", (*initConfig)->name);
7476
initConfig++;
7577
}
7678

Core/Src/syslaunch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ static void uwb_launch_init(){
9393

9494
static const UserInit uwb_launch_struct = {
9595
.init = uwb_launch_init,
96+
.name = "uwb_init",
9697
};
9798

9899
USER_INIT(uwb_launch_struct);

Middlewares/Third_Party/FreeRTOS/Source/tasks.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3663,6 +3663,7 @@ static void prvCheckTasksWaitingTermination( void )
36633663
}
36643664
}
36653665
#endif /* INCLUDE_vTaskDelete */
3666+
36663667
}
36673668
/*-----------------------------------------------------------*/
36683669

STM32L496RGTX_FLASH.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ ENTRY(Reset_Handler)
4040
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
4141

4242
_Min_Heap_Size = 0x200; /* required amount of heap */
43-
_Min_Stack_Size = 0x400; /* required amount of stack */
43+
_Min_Stack_Size = 0x800; /* required amount of stack */
4444

4545
/* Memories definition */
4646
MEMORY

STM32L496RGTX_RAM.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ ENTRY(Reset_Handler)
4040
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
4141

4242
_Min_Heap_Size = 0x200; /* required amount of heap */
43-
_Min_Stack_Size = 0x400; /* required amount of stack */
43+
_Min_Stack_Size = 0x800; /* required amount of stack */
4444

4545
/* Memories definition */
4646
MEMORY

examples/inform_performance/src/inform.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ osThreadId_t informHighPerformanceTaskHandle;
2323

2424
const osThreadAttr_t informHighPerformanceTask_attributes = {
2525
.name = "informHighPerformanceTask",
26-
.stack_size = 128 * 15,
26+
.stack_size = 128 * 10,
2727
.priority = (osPriority_t) osPriorityNormal,
2828
};
2929

@@ -33,6 +33,7 @@ void user_informHighPerformanceTask_init(){
3333

3434
static const UserInit informHighPerformanceTask_init = {
3535
.init = user_informHighPerformanceTask_init,
36+
.name = "informH7",
3637
};
3738

3839
USER_INIT(informHighPerformanceTask_init);
@@ -53,7 +54,6 @@ static void informHighPerformanceTask(void *argument)
5354
}
5455
while(1){
5556
XfertoPerformance(&pk);
56-
int stackWaterMark = uxTaskGetStackHighWaterMark(informHighPerformanceTaskHandle);
5757
LL_GPIO_TogglePin(LED_GPIO_Port, LED_Pin);
5858
osDelay(1000);
5959
}

0 commit comments

Comments
 (0)