|
關(guān)于Zigbee OASL的相關(guān)資料
- #include "hal_adc.h"
- #include "hal_flash.h"
- #include "hal_lcd.h"
- #include "hal_led.h"
- #include "hal_drivers.h"
- #include "OnBoard.h"
- #include "OSAL.h"
- #include "OSAL_Nv.h"
- #include "ZComDef.h"
- /*********************************************************************
- * LOCAL FUNCTIONS
- */
- /*********************************************************************
- * @fn main
- * @brief First function called after startup.
- * @return don't care
- */
- int main( void )
- {
- // Turn off interrupts
- osal_int_disable( INTS_ALL );
- // Initialization for board related stuff such as LEDs
- HAL_BOARD_INIT();
-
- // Initialize board I/O
- InitBoard( OB_COLD );
- // Initialze HAL drivers
- HalDriverInit();
- // Initialize NV System
- osal_nv_init( NULL );
- // Initialize the operating system
- osal_init_system();
- // Allow interrupts
- osal_int_enable( INTS_ALL );
- // Final board initialization
- InitBoard( OB_READY );
- #ifdef WDT_IN_PM1
- /* If WDT is used, this is a good place to enable it. */
- WatchDogEnable( WDTIMX );
- #endif
- osal_start_system(); // No Return from here
- return 0; // Shouldn't get here.
- } // main()
- /*********************************************************************
- *********************************************************************/
復(fù)制代碼
|
-
-
IARForStm8_jb51.rar
2020-11-25 11:31 上傳
點(diǎn)擊文件名下載附件
下載積分: 黑幣 -5
5.08 KB, 下載次數(shù): 4, 下載積分: 黑幣 -5
-
-
OSAL.zip
2020-11-25 11:32 上傳
點(diǎn)擊文件名下載附件
下載積分: 黑幣 -5
233.36 KB, 下載次數(shù): 2, 下載積分: 黑幣 -5
|