#define RTK_SCAN_ALL_LOG_PORT(__port__) for(__port__ = 0; __port__ < RTK_SWITCH_PORT_NUM; __port__++) if( rtk_switch_logicalPortCheck(__port__) == RT_ERR_OK)
#define RTK_SCAN_ALL_LOG_PORTMASK(__portmask__) for((__portmask__).bits[0] = 0; (__portmask__).bits[0] < 0x7FFFF; (__portmask__).bits[0]++) if( rtk_switch_isPortMaskValid(&__portmask__) == RT_ERR_OK)
-/* Port mask defination */
+/* Port mask definition */
#define RTK_PHY_PORTMASK_ALL (rtk_switch_phyPortMask_get())
-/* Port defination*/
+/* Port definition*/
#define RTK_MAX_LOGICAL_PORT_ID (rtk_switch_maxLogicalPort_get())
/* Function Name:
/* Function Name:
* rtk_switch_portmask_L2P_get
* Description:
- * Get physicl portmask from logical portmask
+ * Get physical portmask from logical portmask
* Input:
* pLogicalPmask - logical port mask
* Output:
/* Function Name:
* rtk_switch_init
* Description:
- * Set chip to default configuration enviroment
+ * Set chip to default configuration environment
* Input:
* None
* Output: