IntPrioritySet lm3s

 IntPrioritySet(INT_TIMER1A,     0x00);    // Set the priorities of the interrupts used by the application.
 IntPrioritySet(INT_GPIOB,       0x20);
 IntPrioritySet(INT_GPIOD,       0x20);
 IntPrioritySet(INT_TIMER0A,     0x20);
 IntPrioritySet(INT_WATCHDOG,    0x40);
 IntPrioritySet(INT_ADC0SS0,     0x60);
 IntPrioritySet(INT_PWM0,        0x80);
 IntPrioritySet(INT_PWM1,        0xa0);
 IntPrioritySet(INT_PWM2,        0xc0);
 IntPrioritySet(FAULT_SYSTICK,   0xc0);
 IntPrioritySet(INT_UART0, 0xe0);

 UART_Init(); 
 
 PWMInit();       // Initialize the PWM driver.
 ADCInit();       // Initialize the ADC.
 HallInit();       // Initialize the Hall Sensor control routines.
 UIInit();       // Initialize the user interface.
// ENET_Init();       // Initialize the Ethernet
 MainClearFaults();      // Clear any fault conditions that may have erroneously triggered as the ADC started acquiring readings

 UIRunLEDBlink(200, 25);      // Indicate that the motor drive is stopped.

 IntEnable(INT_WATCHDOG);     // Initialize the Watchdog timer for a 100ms timeout.
 WatchdogReloadSet(WATCHDOG0_BASE, WATCHDOG_RELOAD_VALUE);
 WatchdogResetEnable(WATCHDOG0_BASE);
 WatchdogEnable(WATCHDOG0_BASE);
 
 TimerConfigure(TIMER0_BASE, TIMER_CFG_32_BIT_OS);
 TimerIntEnable(TIMER0_BASE, TIMER_TIMA_TIMEOUT);
 IntEnable(INT_TIMER0A);

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值