Mouse code for the MacroRat
mbed-dev/targets/TARGET_RENESAS/TARGET_RZ_A1H/device/dev_drv.h@18:6a4db94011d3, 2017-05-14 (annotated)
- Committer:
- sahilmgandhi
- Date:
- Sun May 14 23:18:57 2017 +0000
- Revision:
- 18:6a4db94011d3
Publishing again
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sahilmgandhi | 18:6a4db94011d3 | 1 | /******************************************************************************* |
sahilmgandhi | 18:6a4db94011d3 | 2 | * DISCLAIMER |
sahilmgandhi | 18:6a4db94011d3 | 3 | * This software is supplied by Renesas Electronics Corporation and is only |
sahilmgandhi | 18:6a4db94011d3 | 4 | * intended for use with Renesas products. No other uses are authorized. This |
sahilmgandhi | 18:6a4db94011d3 | 5 | * software is owned by Renesas Electronics Corporation and is protected under |
sahilmgandhi | 18:6a4db94011d3 | 6 | * all applicable laws, including copyright laws. |
sahilmgandhi | 18:6a4db94011d3 | 7 | * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING |
sahilmgandhi | 18:6a4db94011d3 | 8 | * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT |
sahilmgandhi | 18:6a4db94011d3 | 9 | * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE |
sahilmgandhi | 18:6a4db94011d3 | 10 | * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. |
sahilmgandhi | 18:6a4db94011d3 | 11 | * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS |
sahilmgandhi | 18:6a4db94011d3 | 12 | * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE |
sahilmgandhi | 18:6a4db94011d3 | 13 | * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR |
sahilmgandhi | 18:6a4db94011d3 | 14 | * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE |
sahilmgandhi | 18:6a4db94011d3 | 15 | * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
sahilmgandhi | 18:6a4db94011d3 | 16 | * Renesas reserves the right, without notice, to make changes to this software |
sahilmgandhi | 18:6a4db94011d3 | 17 | * and to discontinue the availability of this software. By using this software, |
sahilmgandhi | 18:6a4db94011d3 | 18 | * you agree to the additional terms and conditions found by accessing the |
sahilmgandhi | 18:6a4db94011d3 | 19 | * following link: |
sahilmgandhi | 18:6a4db94011d3 | 20 | * http://www.renesas.com/disclaimer |
sahilmgandhi | 18:6a4db94011d3 | 21 | * Copyright (C) 2012 - 2014 Renesas Electronics Corporation. All rights reserved. |
sahilmgandhi | 18:6a4db94011d3 | 22 | *******************************************************************************/ |
sahilmgandhi | 18:6a4db94011d3 | 23 | /****************************************************************************** |
sahilmgandhi | 18:6a4db94011d3 | 24 | * File Name : dev_drv.h |
sahilmgandhi | 18:6a4db94011d3 | 25 | * $Rev: 809 $ |
sahilmgandhi | 18:6a4db94011d3 | 26 | * $Date:: 2014-04-09 15:06:36 +0900#$ |
sahilmgandhi | 18:6a4db94011d3 | 27 | * Description : Device driver header |
sahilmgandhi | 18:6a4db94011d3 | 28 | ******************************************************************************/ |
sahilmgandhi | 18:6a4db94011d3 | 29 | #ifndef DEV_DRV_H |
sahilmgandhi | 18:6a4db94011d3 | 30 | #define DEV_DRV_H |
sahilmgandhi | 18:6a4db94011d3 | 31 | |
sahilmgandhi | 18:6a4db94011d3 | 32 | /****************************************************************************** |
sahilmgandhi | 18:6a4db94011d3 | 33 | Includes <System Includes> , "Project Includes" |
sahilmgandhi | 18:6a4db94011d3 | 34 | ******************************************************************************/ |
sahilmgandhi | 18:6a4db94011d3 | 35 | |
sahilmgandhi | 18:6a4db94011d3 | 36 | |
sahilmgandhi | 18:6a4db94011d3 | 37 | /****************************************************************************** |
sahilmgandhi | 18:6a4db94011d3 | 38 | Typedef definitions |
sahilmgandhi | 18:6a4db94011d3 | 39 | ******************************************************************************/ |
sahilmgandhi | 18:6a4db94011d3 | 40 | |
sahilmgandhi | 18:6a4db94011d3 | 41 | |
sahilmgandhi | 18:6a4db94011d3 | 42 | /****************************************************************************** |
sahilmgandhi | 18:6a4db94011d3 | 43 | Macro definitions |
sahilmgandhi | 18:6a4db94011d3 | 44 | ******************************************************************************/ |
sahilmgandhi | 18:6a4db94011d3 | 45 | /* ==== Arguments, Return values ==== */ |
sahilmgandhi | 18:6a4db94011d3 | 46 | #define DEVDRV_SUCCESS (0) /* Success */ |
sahilmgandhi | 18:6a4db94011d3 | 47 | #define DEVDRV_ERROR (-1) /* Failure */ |
sahilmgandhi | 18:6a4db94011d3 | 48 | |
sahilmgandhi | 18:6a4db94011d3 | 49 | /* ==== Flags ==== */ |
sahilmgandhi | 18:6a4db94011d3 | 50 | #define DEVDRV_FLAG_OFF (0) /* Flag OFF */ |
sahilmgandhi | 18:6a4db94011d3 | 51 | #define DEVDRV_FLAG_ON (1) /* Flag ON */ |
sahilmgandhi | 18:6a4db94011d3 | 52 | |
sahilmgandhi | 18:6a4db94011d3 | 53 | /* ==== Channels ==== */ |
sahilmgandhi | 18:6a4db94011d3 | 54 | typedef enum devdrv_ch |
sahilmgandhi | 18:6a4db94011d3 | 55 | { |
sahilmgandhi | 18:6a4db94011d3 | 56 | DEVDRV_CH_0, /* Channel 0 */ |
sahilmgandhi | 18:6a4db94011d3 | 57 | DEVDRV_CH_1, /* Channel 1 */ |
sahilmgandhi | 18:6a4db94011d3 | 58 | DEVDRV_CH_2, /* Channel 2 */ |
sahilmgandhi | 18:6a4db94011d3 | 59 | DEVDRV_CH_3, /* Channel 3 */ |
sahilmgandhi | 18:6a4db94011d3 | 60 | DEVDRV_CH_4, /* Channel 4 */ |
sahilmgandhi | 18:6a4db94011d3 | 61 | DEVDRV_CH_5, /* Channel 5 */ |
sahilmgandhi | 18:6a4db94011d3 | 62 | DEVDRV_CH_6, /* Channel 6 */ |
sahilmgandhi | 18:6a4db94011d3 | 63 | DEVDRV_CH_7, /* Channel 7 */ |
sahilmgandhi | 18:6a4db94011d3 | 64 | DEVDRV_CH_8, /* Channel 8 */ |
sahilmgandhi | 18:6a4db94011d3 | 65 | DEVDRV_CH_9, /* Channel 9 */ |
sahilmgandhi | 18:6a4db94011d3 | 66 | DEVDRV_CH_10, /* Channel 10 */ |
sahilmgandhi | 18:6a4db94011d3 | 67 | DEVDRV_CH_11, /* Channel 11 */ |
sahilmgandhi | 18:6a4db94011d3 | 68 | DEVDRV_CH_12, /* Channel 12 */ |
sahilmgandhi | 18:6a4db94011d3 | 69 | DEVDRV_CH_13, /* Channel 13 */ |
sahilmgandhi | 18:6a4db94011d3 | 70 | DEVDRV_CH_14, /* Channel 14 */ |
sahilmgandhi | 18:6a4db94011d3 | 71 | DEVDRV_CH_15 /* Channel 15 */ |
sahilmgandhi | 18:6a4db94011d3 | 72 | } devdrv_ch_t; |
sahilmgandhi | 18:6a4db94011d3 | 73 | |
sahilmgandhi | 18:6a4db94011d3 | 74 | /****************************************************************************** |
sahilmgandhi | 18:6a4db94011d3 | 75 | Variable Externs |
sahilmgandhi | 18:6a4db94011d3 | 76 | ******************************************************************************/ |
sahilmgandhi | 18:6a4db94011d3 | 77 | |
sahilmgandhi | 18:6a4db94011d3 | 78 | |
sahilmgandhi | 18:6a4db94011d3 | 79 | /****************************************************************************** |
sahilmgandhi | 18:6a4db94011d3 | 80 | Functions Prototypes |
sahilmgandhi | 18:6a4db94011d3 | 81 | ******************************************************************************/ |
sahilmgandhi | 18:6a4db94011d3 | 82 | |
sahilmgandhi | 18:6a4db94011d3 | 83 | #endif /* DEV_DRV_H */ |
sahilmgandhi | 18:6a4db94011d3 | 84 | |
sahilmgandhi | 18:6a4db94011d3 | 85 | /* End of File */ |