Added IPTraceMacro.h
Added READ-COM3.ps1 Added READ-COM8.ps1
This commit is contained in:
parent
c978b544dc
commit
ae004dd01c
|
|
@ -0,0 +1,80 @@
|
|||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Target 1",
|
||||
"includePath": [
|
||||
"d:\\Users\\right\\Documents\\Keil\\Projects\\Test_project_for_GD32107C-EVAL\\FreeRTOS\\source\\portable\\NetworkInterface\\include",
|
||||
"d:\\Users\\right\\Documents\\Keil\\Projects\\Test_project_for_GD32107C-EVAL\\FreeRTOS\\source\\include",
|
||||
"d:\\Users\\right\\Documents\\Keil\\Projects\\Test_project_for_GD32107C-EVAL\\FreeRTOS\\source\\portable\\Compiler\\Keil",
|
||||
"d:\\Users\\right\\Documents\\Keil\\Projects\\Test_project_for_GD32107C-EVAL\\DemoTasks\\include",
|
||||
"d:\\Users\\right\\Documents\\Keil\\Projects\\GigaDevice_test",
|
||||
"d:\\Users\\right\\Documents\\Keil\\Projects\\Test_project_for_GD32107C-EVAL\\include",
|
||||
"d:\\Users\\right\\Documents\\Keil\\Projects\\Test_project_for_GD32107C-EVAL\\PHY",
|
||||
"d:\\Users\\right\\Documents\\Keil\\Projects\\Test_project_for_GD32107C-EVAL",
|
||||
"d:\\Users\\right\\Documents\\Keil\\Projects\\Test_project_for_GD32107C-EVAL\\DemoTasks",
|
||||
"d:\\Users\\right\\Documents\\Keil\\Projects\\Test_project_for_GD32107C-EVAL\\FreeRTOS\\source\\portable\\NetworkInterface\\Common",
|
||||
"d:\\Users\\right\\Documents\\Keil\\Projects\\Test_project_for_GD32107C-EVAL\\FreeRTOS\\source",
|
||||
"d:\\Users\\right\\Documents\\Keil\\Projects\\Test_project_for_GD32107C-EVAL\\FreeRTOS\\source\\portable\\NetworkInterface\\board_family",
|
||||
"d:\\Users\\right\\Documents\\Keil\\Projects\\Test_project_for_GD32107C-EVAL\\FreeRTOS\\source\\portable\\BufferManagement"
|
||||
],
|
||||
"defines": [
|
||||
"__alignof__(x)=",
|
||||
"__asm(x)=",
|
||||
"__asm__(x)=",
|
||||
"__forceinline=",
|
||||
"__restrict=",
|
||||
"__volatile__=",
|
||||
"__inline=",
|
||||
"__inline__=",
|
||||
"__declspec(x)=",
|
||||
"__attribute__(x)=",
|
||||
"__nonnull__(x)=",
|
||||
"__unaligned=",
|
||||
"__promise(x)=",
|
||||
"__irq=",
|
||||
"__swi=",
|
||||
"__weak=",
|
||||
"__register=",
|
||||
"__pure=",
|
||||
"__value_in_regs=",
|
||||
"__breakpoint(x)=",
|
||||
"__current_pc()=0U",
|
||||
"__current_sp()=0U",
|
||||
"__disable_fiq()=",
|
||||
"__disable_irq()=",
|
||||
"__enable_fiq()=",
|
||||
"__enable_irq()=",
|
||||
"__force_stores()=",
|
||||
"__memory_changed()=",
|
||||
"__schedule_barrier()=",
|
||||
"__semihost(x,y)=0",
|
||||
"__vfp_status(x,y)=0",
|
||||
"__builtin_arm_nop()=",
|
||||
"__builtin_arm_wfi()=",
|
||||
"__builtin_arm_wfe()=",
|
||||
"__builtin_arm_sev()=",
|
||||
"__builtin_arm_sevl()=",
|
||||
"__builtin_arm_yield()=",
|
||||
"__builtin_arm_isb(x)=",
|
||||
"__builtin_arm_dsb(x)=",
|
||||
"__builtin_arm_dmb(x)=",
|
||||
"__builtin_bswap32(x)=0U",
|
||||
"__builtin_bswap16(x)=0U",
|
||||
"__builtin_arm_rbit(x)=0U",
|
||||
"__builtin_clz(x)=0U",
|
||||
"__builtin_arm_ldrex(x)=0U",
|
||||
"__builtin_arm_strex(x,y)=0U",
|
||||
"__builtin_arm_clrex()=",
|
||||
"__builtin_arm_ssat(x,y)=0U",
|
||||
"__builtin_arm_usat(x,y)=0U",
|
||||
"__builtin_arm_ldaex(x)=0U",
|
||||
"__builtin_arm_stlex(x,y)=0U",
|
||||
"__GNUC__=4",
|
||||
"__GNUC_MINOR__=2",
|
||||
"__GNUC_PATCHLEVEL__=1"
|
||||
],
|
||||
"intelliSenseMode": "${default}"
|
||||
}
|
||||
],
|
||||
"version": 4
|
||||
}
|
||||
|
|
@ -215,7 +215,7 @@ const BaseType_t xBacklog = 20;
|
|||
size_t FreeHeapSize = xPortGetFreeHeapSize();
|
||||
if(FreeHeapSize < 25032)//45520)
|
||||
{
|
||||
FreeRTOS_printf(("FreeHeapSize = %d\n", FreeHeapSize));
|
||||
FreeRTOS_printf(("[LISTEN_TASK] FreeHeapSize = %d\n", FreeHeapSize));
|
||||
}
|
||||
#endif
|
||||
/* Spawn a task to handle the connection. */
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
function read-com {
|
||||
$port= new-Object System.IO.Ports.SerialPort COM3,115200,None,8,one
|
||||
$port.Open()
|
||||
do {
|
||||
$line = $port.ReadLine()
|
||||
Write-Host $line # Do stuff here
|
||||
}
|
||||
while ($port.IsOpen)
|
||||
}
|
||||
read-com
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
function read-com {
|
||||
$port= new-Object System.IO.Ports.SerialPort COM8,115200,None,8,one
|
||||
$port.Open()
|
||||
do {
|
||||
$line = $port.ReadLine()
|
||||
Write-Host $line # Do stuff here
|
||||
}
|
||||
while ($port.IsOpen)
|
||||
}
|
||||
read-com
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
#ifndef IP_TRACE_MACRO_H
|
||||
#define IP_TRACE_MACRO_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define iptraceNETWORK_DOWN() FreeRTOS_debug_printf(("[IPTRACE] Network down\nFreeHeapSize = %d\n", xPortGetFreeHeapSize()));
|
||||
|
||||
|
||||
#define iptraceSENDING_DNS_REQUEST() FreeRTOS_debug_printf(("[IPTRACE] Sending DNS request\nFreeHeapSize = %d\n", xPortGetFreeHeapSize()));
|
||||
|
||||
|
||||
#define iptraceSENDING_DHCP_DISCOVER() FreeRTOS_debug_printf(("[IPTRACE] Sending DHCP discover\nFreeHeapSize = %d\n", xPortGetFreeHeapSize()));
|
||||
|
||||
|
||||
#define iptraceSENDING_DHCP_REQUEST() FreeRTOS_debug_printf(("[IPTRACE] Sending DHCP request\nFreeHeapSize = %d\n", xPortGetFreeHeapSize()));
|
||||
|
||||
|
||||
#define iptraceETHERNET_RX_EVENT_LOST() FreeRTOS_debug_printf(("[IPTRACE] Ethernet rx event lost\nFreeHeapSize = %d\n", xPortGetFreeHeapSize()));
|
||||
|
||||
|
||||
#define iptraceFAILED_TO_OBTAIN_NETWORK_BUFFER() FreeRTOS_debug_printf(("[IPTRACE] Failed to obtain network buffer\nFreeHeapSize = %d\n", xPortGetFreeHeapSize()));
|
||||
|
||||
|
||||
#define iptraceDHCP_REQUESTS_FAILED_USING_DEFAULT_IP_ADDRESS( ulIPAddress )\
|
||||
FreeRTOS_debug_printf(("[IPTRACE] DHCP requests failed, using default IP: 0x%X\nFreeHeapSize = %d\n", ulIPAddress, xPortGetFreeHeapSize()));
|
||||
|
||||
//#define iptraceNETWORK_EVENT_RECEIVED( eEvent )\
|
||||
FreeRTOS_debug_printf(("[IPTRACE] Network Event received %d\nFreeHeapSize = %d\n", eEvent, xPortGetFreeHeapSize()));
|
||||
|
||||
#endif
|
||||
|
|
@ -620,7 +620,7 @@ BaseType_t xNetworkInterfaceInitialise( void )
|
|||
static ARM_ETH_LINK_INFO info;
|
||||
if (NULL == receiveHandler)
|
||||
{
|
||||
xTaskCreate( receiveHandlerTask, "receiveHandlerTask", 1000, NULL, ipconfigIP_TASK_PRIORITY-1, &receiveHandler );
|
||||
xTaskCreate( receiveHandlerTask, "receiveHandlerTask", 1000, NULL, tskIDLE_PRIORITY + 1, &receiveHandler );
|
||||
}
|
||||
|
||||
if(macIntialise() == ARM_DRIVER_OK && phyIntialise() ==ARM_DRIVER_OK){
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
4
main.c
4
main.c
|
|
@ -367,8 +367,8 @@ int main(void)
|
|||
vInitMCU();
|
||||
vRFSwitchInit(&rfSwitchConfig, RF_SWITCH_PORT, RF_SWITCH_PIN_A, RF_SWITCH_PORT, RF_SWITCH_PIN_B, RF_SWITCH_PORT, RF_SWITCH_PIN_C, RF_SWITCH_PORT, RF_SWITCH_PIN_EN);
|
||||
prvMiscInitialisation();
|
||||
xTaskCreate( vTaskToggleLed, "ToggleLed", configMINIMAL_STACK_SIZE, NULL, ipconfigIP_TASK_PRIORITY-2, &vTaskToggleLed_Handle);
|
||||
xTaskCreate( vTaskHelloWorld, "HelloWorld", configMINIMAL_STACK_SIZE, NULL, ipconfigIP_TASK_PRIORITY-2, &vTaskHelloWorld_Handle);
|
||||
xTaskCreate( vTaskToggleLed, "ToggleLed", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 1, &vTaskToggleLed_Handle);
|
||||
xTaskCreate( vTaskHelloWorld, "HelloWorld", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 1, &vTaskHelloWorld_Handle);
|
||||
FreeRTOS_IPInit( ucIPAddress, ucNetMask, ucGatewayAddress, ucDNSServerAddress, ucMACAddress );
|
||||
|
||||
vTaskStartScheduler();
|
||||
|
|
|
|||
Loading…
Reference in New Issue