?? tinyos.txt
字號:
[Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/hsu/pic18f4620 .platform, NONE, 1.1 chksum.h, NONE, 1.1 Clock.h, NONE, 1.1 Clock.nc, NONE, 1.1 convert_pic.pl, NONE, 1.1 crc.h, NONE, 1.1 crc8.h, NONE, 1.1 GenericComm.nc, NONE, 1.1 hardware.h, NONE, 1.1 HPLADCC.nc, NONE, 1.1 HPLADCM.nc, NONE, 1.1 HPLInitC.nc, NONE, 1.1 HPLInitM.nc, NONE, 1.1 HPLPowerManagementM.nc, NONE, 1.1 HPLUARTC.nc, NONE, 1.1 HPLUARTM.nc, NONE, 1.1 Main.nc, NONE, 1.1 MainM.nc, NONE, 1.1 pic18f4620_defs.h, NONE, 1.1 PIC18F4620ClockC.nc, NONE, 1.1 pic18f4620hardware.h, NONE, 1.1 PIC18F4620HPLClock.nc, NONE, 1.1 PIC18F4620Interrupt.nc, NONE, 1.1 PIC18F4620InterruptC.nc, NONE, 1.1 PIC18F4620InterruptM.nc, NONE, 1.1 PIC18F4620TimerC.nc, NONE, 1.1 PIC18F4620TimerM.nc, NONE, 1.1 README_CompileInstructions.txt, NONE, 1.1 timers.h, NONE, 1.1
Hans-Joerg Koerber hjkoerber at users.sourceforge.net
Fri Apr 15 03:00:10 PDT 2005
Previous message: [Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/nucleus/tos/lib/NucleusExamples MSP430InterruptCounterC.nc, NONE, 1.1 MSP430InterruptCounterM.nc, NONE, 1.1
Next message: [Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/hsu/apps/PIC18F4620_OscilloscopeRF - New directory
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
--------------------------------------------------------------------------------
Update of /cvsroot/tinyos/tinyos-1.x/contrib/hsu/pic18f4620
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15558
Added Files:
.platform chksum.h Clock.h Clock.nc convert_pic.pl crc.h
crc8.h GenericComm.nc hardware.h HPLADCC.nc HPLADCM.nc
HPLInitC.nc HPLInitM.nc HPLPowerManagementM.nc HPLUARTC.nc
HPLUARTM.nc Main.nc MainM.nc pic18f4620_defs.h
PIC18F4620ClockC.nc pic18f4620hardware.h PIC18F4620HPLClock.nc
PIC18F4620Interrupt.nc PIC18F4620InterruptC.nc
PIC18F4620InterruptM.nc PIC18F4620TimerC.nc
PIC18F4620TimerM.nc README_CompileInstructions.txt timers.h
Log Message:
initial commit
--- NEW FILE: .platform ---
@opts = ("-gcc=avr-gcc",
"-mmcu=atmega128",
"-fnesc-target=avr",
"-fnesc-no-debug");
push @opts, "-mingw-gcc" if $cygwin;
@commonplatforms = ("mica128", "mica", "avrmote");
--- NEW FILE: chksum.h ---
// $Id: chksum.h,v 1.1 2005/04/15 10:00:06 hjkoerber Exp $
/*
* Copyright (c) Helmut-Schmidt-University, Hamburg
* Dpt.of Electrical Measurement Engineering
* All rights reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* - Neither the name of the Helmut-Schmidt-University nor the names
* of its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* @author Housam Wattar
* <wattar at hsu-hh.de>
* (+49)40-6541-2638/2627
*
* $Date: 2005/04/15 10:00:06 $
* $Revision: 1.1 $
*
*/
uint8_t chksum(uint8_t *ptrMsg, uint8_t length)
{
unsigned char data;
data=0;
while(length--)data += *ptrMsg++;
return (data);
}
--- NEW FILE: Clock.h ---
// $Id: Clock.h,v 1.1 2005/04/15 10:00:07 hjkoerber Exp $
/*
* "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."
*
* Copyright (c) 2002-2003 Intel Corporation
* All rights reserved.
*
* This file is distributed under the terms in the attached INTEL-LICENSE
* file. If you do not find these files, copies can be found by writing to
* Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA,
* 94704. Attention: Intel License Inquiry.
*/
/* @author Cory Sharp
* @author Hans-Joerg Koerber
* <hj.koerber at hsu-hh.de>
* (+49)40-6541-2638/2627
*
* $Date: 2005/04/15 10:00:07 $
* $Revision: 1.1 $
*
*/
enum {
DEFAULT_SCALE=0, DEFAULT_INTERVAL=0xffff
};
--- NEW FILE: Clock.nc ---
// $Id: Clock.nc,v 1.1 2005/04/15 10:00:07 hjkoerber Exp $
/*
* "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."
*
* Copyright (c) 2002-2003 Intel Corporation
* All rights reserved.
*
* This file is distributed under the terms in the attached INTEL-LICENSE
* file. If you do not find these files, copies can be found by writing to
* Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA,
* 94704. Attention: Intel License Inquiry.
*/
/*
* The hardware clock interface.
* @author Jason Hill
* @author David Gay
* @author Philip Levis
* @author Nelson Lee
* @author Hans-Joerg Koerber
* <hj.koerber at hsu-hh.de>
* (+49)40-6541-2638/2627
* $Date: 2005/04/15 10:00:07 $
* $Revision: 1.1 $
*
*/
includes Clock;
includes timers;
interface Clock {
async command result_t setRate(uint16_t interval, uint8_t scale);
/**
* Set clock interval
*
* @param value New clock interval
*
* @return none
**/
async command void setInterval(uint16_t value);
/**
* Set clock interval at next clock interrupt time
*
* @param value New clock interval
*
* @return none
**/
async command void setNextInterval(uint16_t value);
/**
* Get clock interval
*
* @return current clock interval
**/
async command uint16_t getInterval();
/**
* Get clock scale
*
* @return current clock scale level
**/
async command uint8_t getScale();
/**
* Set clock scale at next clock interrupt time
*
* @param scale New clock scale
*
* @return none
**/
async command void setNextScale(uint8_t scale);
/**
* Set both clock interval and scale
*
* @param interval New clock interval
*
* @param scale New clock scale
*
* @return SUCCESS or FAILED
**/
async command result_t setIntervalAndScale(uint16_t interval, uint8_t scale);
/**
* Read HW clock counter
*/
async command uint16_t readCounter() ;
/**
* Set HW clock counter to a specified value
*
* @param n Value to write to TMR1
*
* @return None
*/
async command void setCounter(uint16_t n);
/**
* Disable Clock interrupt
*/
async command void intDisable();
/**
* Enable Clock interrupt
*/
async command void intEnable() ;
/**
* An event sent when the clock goes off.
**/
async event result_t fire();
}
--- NEW FILE: convert_pic.pl ---
#!/usr/bin/perl
# $Id: convert_pic.pl,v 1.1 2005/04/15 10:00:07 hjkoerber Exp $
#
# Copyright (c) Helmut-Schmidt-University, Hamburg
# Dpt.of Electrical Measurement Engineering
# All rights reserved
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# - Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# - Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# - Neither the name of the Helmut-Schmidt-University nor the names
# of its contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#/
# @author Hans-Joerg Koerber
# <hj.koerber at hsu-hh.de>
# (+49)40-6541-2638/2627
#
# $Date: 2005/04/15 10:00:07 $
# $Revision: 1.1 $
#
#-------------------------------------------------------------------------------------------------------------#
#
# This script will take the C file produced by nesC and
# make it compatible with the Microchip C18-Compiler
#
#-------------------------------------------------------------------------------------------------------------#
#-------------------------------------------------------------------------------------------------------------#
#
# Command line paramters used when invoking the script
#
# First parameter = source name (app.c)
# Second parameter = output name (app_pic.c)
#
#-------------------------------------------------------------------------------------------------------------#
$source = $ARGV[0];
$output = $ARGV[1];
if ($source eq $output) {
die("perl: source and output cannot be the same");
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -