pull/1/head
Richard Barry 14 years ago
parent d6290b8e48
commit 218c59e058

@ -88,7 +88,7 @@
#define configTICK_RATE_HZ ( ( portTickType ) 1000 ) #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 ) #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 90 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 90 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 40 * 1024 ) ) #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 30 * 1024 ) )
#define configMAX_TASK_NAME_LEN ( 10 ) #define configMAX_TASK_NAME_LEN ( 10 )
#define configUSE_TRACE_FACILITY 1 #define configUSE_TRACE_FACILITY 1
#define configUSE_16_BIT_TICKS 0 #define configUSE_16_BIT_TICKS 0

@ -51,6 +51,7 @@ typedef struct {
* may be read by receiving its flags field, similarly MAC_configure routine lets * may be read by receiving its flags field, similarly MAC_configure routine lets
* you modify some of these flags. * you modify some of these flags.
*/ */
#include "net/pack_struct_start.h"
typedef struct { typedef struct {
addr_t base_address; /**< Register base address of the driver*/ addr_t base_address; /**< Register base address of the driver*/
uint8_t flags; /**< Configuration of the driver*/ uint8_t flags; /**< Configuration of the driver*/
@ -113,7 +114,8 @@ typedef struct {
uint32_t tx_underflow_error; /**< Number of occurrences of; the FIFO was empty during uint32_t tx_underflow_error; /**< Number of occurrences of; the FIFO was empty during
the frame transmission.*/ the frame transmission.*/
} statistics; } statistics;
} MAC_instance_t __attribute__((packed)); } MAC_instance_t
#include "net/pack_struct_end.h"
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<workspace>
<project>
<path>$WS_DIR$\RTOSDemo_IAR.ewp</path>
</project>
<batchBuild/>
</workspace>

@ -376,3 +376,4 @@ volatile size_t xFreeStackSpace;
reduced accordingly. */ reduced accordingly. */
} }
} }

@ -325,7 +325,7 @@ int main(void)
vStartTimerDemoTask( mainTIMER_TEST_PERIOD ); vStartTimerDemoTask( mainTIMER_TEST_PERIOD );
/* Create the web server task. */ /* Create the web server task. */
// xTaskCreate( vuIP_Task, ( signed char * ) "uIP", mainuIP_STACK_SIZE, NULL, mainuIP_TASK_PRIORITY, NULL ); xTaskCreate( vuIP_Task, ( signed char * ) "uIP", mainuIP_STACK_SIZE, NULL, mainuIP_TASK_PRIORITY, NULL );
/* Start the tasks and timer running. */ /* Start the tasks and timer running. */
vTaskStartScheduler(); vTaskStartScheduler();

@ -283,7 +283,7 @@ int main(void)
/* To keep linker happy. */ /* To keep linker happy. */
int write( int i, char* c, int n) int __write( int i, char* c, int n)
{ {
(void)i; (void)i;
(void)n; (void)n;

@ -383,7 +383,7 @@ const unsigned char ucPHYAddress = 1;
MSS_MAC_init( ucPHYAddress ); MSS_MAC_init( ucPHYAddress );
MSS_MAC_set_callback( prvEMACEventListener ); MSS_MAC_set_callback( ( MSS_MAC_callback_t ) prvEMACEventListener );
/* Setup the EMAC and the NVIC for MAC interrupts. */ /* Setup the EMAC and the NVIC for MAC interrupts. */
NVIC_SetPriority( EthernetMAC_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY ); NVIC_SetPriority( EthernetMAC_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );

Loading…
Cancel
Save