📄 msp430timer32khzmapc.nc
字号:
/* "Copyright (c) 2000-2003 The Regents of the University of California. * All rights reserved. * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without written agreement * is hereby granted, provided that the above copyright notice, the following * two paragraphs and the author appear in all copies of this software. * * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY * OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS." *//** * Msp430Timer32khzMapC presents as paramaterized interfaces all of the 32khz * hardware timers on the MSP430 that are available for compile time allocation * by "new Alarm32khz16C()", "new AlarmMilli32C()", and so on. * * Platforms based on the MSP430 are encouraged to copy in and override this * file, presenting only the hardware timers that are available for allocation * on that platform. * * @author Cory Sharp <cssharp@eecs.berkeley.edu> */configuration Msp430Timer32khzMapC{ provides interface Msp430Timer[ uint8_t id ]; provides interface Msp430TimerControl[ uint8_t id ]; provides interface Msp430Compare[ uint8_t id ];}implementation{ components Msp430TimerC; Msp430Timer[0] = Msp430TimerC.TimerB; Msp430TimerControl[0] = Msp430TimerC.ControlB0; Msp430Compare[0] = Msp430TimerC.CompareB0; Msp430Timer[1] = Msp430TimerC.TimerB; Msp430TimerControl[1] = Msp430TimerC.ControlB1; Msp430Compare[1] = Msp430TimerC.CompareB1; Msp430Timer[2] = Msp430TimerC.TimerB; Msp430TimerControl[2] = Msp430TimerC.ControlB2; Msp430Compare[2] = Msp430TimerC.CompareB2; Msp430Timer[3] = Msp430TimerC.TimerB; Msp430TimerControl[3] = Msp430TimerC.ControlB3; Msp430Compare[3] = Msp430TimerC.CompareB3; Msp430Timer[4] = Msp430TimerC.TimerB; Msp430TimerControl[4] = Msp430TimerC.ControlB4; Msp430Compare[4] = Msp430TimerC.CompareB4; Msp430Timer[5] = Msp430TimerC.TimerB; Msp430TimerControl[5] = Msp430TimerC.ControlB5; Msp430Compare[5] = Msp430TimerC.CompareB5; /* Timer blok used by GpioCapture32khz32C */ // Msp430Timer[6] = Msp430TimerC.TimerB; // Msp430TimerControl[6] = Msp430TimerC.ControlB6; // Msp430Compare[6] = Msp430TimerC.CompareB6;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -