Board Specific Support Functions: Implementation More...
#include <BoardSupport/inc/stdtypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
#include <inttypes.h>
#include <time.h>
#include <string.h>
#include <Libs/NETlib/net.h>
#include <BoardSupport/inc/BoardSpecific.h>
#include <Common/Common.h>
#include <Common/uartio.h>
#include <Common/timer.h>
#include <Common/CPrintf.h>
Functions | |
void | BoardAppInit (uint32_t dsp_clock) |
board specific initialization More... | |
void | BoardPeripheralInit (void) |
board specific peripheral initialization More... | |
void | BoardPeripheralClose (void) |
close board specific peripherals More... | |
void | BoardInitializeInterrupts (void) |
initialize interrupts More... | |
void | BoardEnableInterrupts (void) |
global enable interrupts More... | |
void | BoardDisableInterrupts (void) |
void | BoardDisableEDMA (void) |
void | link_status (uint8_t mode) |
link status change callback function More... | |
uint16_t | monitor_link_status (tpOutputFunc pLog) |
monitor link status change More... | |
uint16_t | monitor_ip_address (tpOutputFunc pLog) |
monitor IP assignment More... | |
int | InitializeNetwork (uint16_t icmp_size) |
Initialize MAC, sockets and protocols. More... | |
void | LED_init () |
void | LED_off (unsigned int ledNum) |
void | LED_on (unsigned int ledNum) |
void | LED_toggle (unsigned int ledNum) |
uint16_t | LED_state (void) |
void | KEY_init (void) |
int | KEY_pressed (unsigned int keyNum) |
Variables | |
uint32_t | DspClock =UINT32_C(0) |
uint32_t | TimerClock =UINT32_C(0) |
char | module_str [] = {"DM2DM642"} |
char | sym_animate [] = "-\\|/" |
uint8_t | _link_mode = 0xff |
volatile uint16_t | _link = 0 |
SOCKET * | icmp_so |
static unsigned int | ledstate = 0 |
_ _ _ __| | ___(_) ____ _ __ | |_ / _` | / __| |/ _` | '_ \| __| | (_| | _ \__ \ | (_| | | | | |_ \__,_|(_) ___/_|\__, |_| |_|\__| Signalprocessing |___/ Technology
This module contains board specific support functions for LED access, timer initialization, UART access
void BoardAppInit | ( | uint32_t | dsp_clock | ) |
dsp_clock | [Hz] |
Make board specific settings. Store or determine configured clocks. Call further board specific initialization functions for e.g PLL, EMIF, XINTF and prepare interrupts.
void BoardPeripheralInit | ( | void | ) |
void BoardPeripheralClose | ( | void | ) |
- |
void BoardInitializeInterrupts | ( | void | ) |
void BoardEnableInterrupts | ( | void | ) |
void BoardDisableInterrupts | ( | void | ) |
void BoardDisableEDMA | ( | void | ) |
int InitializeNetwork | ( | uint16_t | icmp_size | ) |
icmp_size | - space for ICMP (ping)) |
void LED_init | ( | ) |
void LED_off | ( | unsigned int | ledNum | ) |
void LED_on | ( | unsigned int | ledNum | ) |
void LED_toggle | ( | unsigned int | ledNum | ) |
uint16_t LED_state | ( | void | ) |
void KEY_init | ( | void | ) |
Function KEY_init
int KEY_pressed | ( | unsigned int | keyNum | ) |
char module_str[] = {"DM2DM642"} |
char sym_animate[] = "-\\|/" |
uint8_t _link_mode = 0xff |
use Operation Mode parameter to detect link mode FULL_DUPLEX 0x01 SPEED_100 0x04 SPEED_1000 0x20
_link = 0 |
reflects the link status
Global variable that reflects the current link status:
SOCKET* icmp_so |
|
static |