summaryrefslogtreecommitdiff
path: root/demos/host/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-07-19 12:08:04 +0700
committerhathach <[email protected]>2013-07-19 12:08:04 +0700
commitd3e83bc802c010c8272b0a54625489914f693515 (patch)
tree764dd6aa43c89f28348032f53e421496596b0dba /demos/host/src
parent23f4d7356f822692471f6341791940678a75d6d2 (diff)
print out mac address
Diffstat (limited to 'demos/host/src')
-rw-r--r--demos/host/src/rndis_app.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/demos/host/src/rndis_app.c b/demos/host/src/rndis_app.c
index 1479c2284..f91bb050e 100644
--- a/demos/host/src/rndis_app.c
+++ b/demos/host/src/rndis_app.c
@@ -48,10 +48,15 @@
// MACRO CONSTANT TYPEDEF
//--------------------------------------------------------------------+
void tusbh_cdc_rndis_mounted_cb(uint8_t dev_addr)
-{
- // application set-up
+{ // application set-up
+ uint8_t mac_address[6];
printf("a RNDIS device is mounted\n");
+ tusbh_cdc_rndis_get_mac_addr(dev_addr, mac_address);
+
+ printf("MAC Address ");
+ for(uint8_t i=0; i<6; i++) printf("%X ", mac_address[i]);
+ printf("\n");
}
void tusbh_cdc_rndis_unmounted_isr(uint8_t dev_addr)