The official mbed C/C SDK provides the software platform and libraries to build your applications.
Fork of mbed by
TARGET_RZ_A1H/rza_io_regrw.h@99:7f6c6de930c0, 2015-05-03 (annotated)
- Committer:
- Mikchel
- Date:
- Sun May 03 16:04:42 2015 +0000
- Revision:
- 99:7f6c6de930c0
- Parent:
- 92:4fc01daae5a5
12
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 92:4fc01daae5a5 | 1 | /******************************************************************************* |
bogdanm | 92:4fc01daae5a5 | 2 | * DISCLAIMER |
bogdanm | 92:4fc01daae5a5 | 3 | * This software is supplied by Renesas Electronics Corporation and is only |
bogdanm | 92:4fc01daae5a5 | 4 | * intended for use with Renesas products. No other uses are authorized. This |
bogdanm | 92:4fc01daae5a5 | 5 | * software is owned by Renesas Electronics Corporation and is protected under |
bogdanm | 92:4fc01daae5a5 | 6 | * all applicable laws, including copyright laws. |
bogdanm | 92:4fc01daae5a5 | 7 | * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING |
bogdanm | 92:4fc01daae5a5 | 8 | * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT |
bogdanm | 92:4fc01daae5a5 | 9 | * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE |
bogdanm | 92:4fc01daae5a5 | 10 | * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. |
bogdanm | 92:4fc01daae5a5 | 11 | * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS |
bogdanm | 92:4fc01daae5a5 | 12 | * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE |
bogdanm | 92:4fc01daae5a5 | 13 | * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR |
bogdanm | 92:4fc01daae5a5 | 14 | * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE |
bogdanm | 92:4fc01daae5a5 | 15 | * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
bogdanm | 92:4fc01daae5a5 | 16 | * Renesas reserves the right, without notice, to make changes to this software |
bogdanm | 92:4fc01daae5a5 | 17 | * and to discontinue the availability of this software. By using this software, |
bogdanm | 92:4fc01daae5a5 | 18 | * you agree to the additional terms and conditions found by accessing the |
bogdanm | 92:4fc01daae5a5 | 19 | * following link: |
bogdanm | 92:4fc01daae5a5 | 20 | * http://www.renesas.com/disclaimer |
bogdanm | 92:4fc01daae5a5 | 21 | * Copyright (C) 2012 - 2014 Renesas Electronics Corporation. All rights reserved. |
bogdanm | 92:4fc01daae5a5 | 22 | *******************************************************************************/ |
bogdanm | 92:4fc01daae5a5 | 23 | /******************************************************************************* |
bogdanm | 92:4fc01daae5a5 | 24 | * File Name : rza_io_regrw.h |
bogdanm | 92:4fc01daae5a5 | 25 | * $Rev: 1135 $ |
bogdanm | 92:4fc01daae5a5 | 26 | * $Date:: 2014-08-08 10:11:30 +0900#$ |
bogdanm | 92:4fc01daae5a5 | 27 | * Description : Low level register read/write header |
bogdanm | 92:4fc01daae5a5 | 28 | *******************************************************************************/ |
bogdanm | 92:4fc01daae5a5 | 29 | #ifndef RZA_IO_REGRW_H |
bogdanm | 92:4fc01daae5a5 | 30 | #define RZA_IO_REGRW_H |
bogdanm | 92:4fc01daae5a5 | 31 | |
bogdanm | 92:4fc01daae5a5 | 32 | /****************************************************************************** |
bogdanm | 92:4fc01daae5a5 | 33 | Includes <System Includes> , "Project Includes" |
bogdanm | 92:4fc01daae5a5 | 34 | ******************************************************************************/ |
bogdanm | 92:4fc01daae5a5 | 35 | /* ==== includes each bit mask header ==== */ |
bogdanm | 92:4fc01daae5a5 | 36 | #include "cpg_iobitmask.h" |
bogdanm | 92:4fc01daae5a5 | 37 | #include "intc_iobitmask.h" |
bogdanm | 92:4fc01daae5a5 | 38 | #include "bsc_iobitmask.h" |
bogdanm | 92:4fc01daae5a5 | 39 | #include "dmac_iobitmask.h" |
bogdanm | 92:4fc01daae5a5 | 40 | #include "mtu2_iobitmask.h" |
bogdanm | 92:4fc01daae5a5 | 41 | #include "ostm_iobitmask.h" |
bogdanm | 92:4fc01daae5a5 | 42 | #include "scif_iobitmask.h" |
bogdanm | 92:4fc01daae5a5 | 43 | #include "rspi_iobitmask.h" |
bogdanm | 92:4fc01daae5a5 | 44 | #include "riic_iobitmask.h" |
bogdanm | 92:4fc01daae5a5 | 45 | #include "usb_iobitmask.h" |
bogdanm | 92:4fc01daae5a5 | 46 | #include "gpio_iobitmask.h" |
bogdanm | 92:4fc01daae5a5 | 47 | |
bogdanm | 92:4fc01daae5a5 | 48 | #ifdef __cplusplus |
bogdanm | 92:4fc01daae5a5 | 49 | extern "C" { |
bogdanm | 92:4fc01daae5a5 | 50 | #endif |
bogdanm | 92:4fc01daae5a5 | 51 | |
bogdanm | 92:4fc01daae5a5 | 52 | /****************************************************************************** |
bogdanm | 92:4fc01daae5a5 | 53 | Typedef definitions |
bogdanm | 92:4fc01daae5a5 | 54 | ******************************************************************************/ |
bogdanm | 92:4fc01daae5a5 | 55 | |
bogdanm | 92:4fc01daae5a5 | 56 | |
bogdanm | 92:4fc01daae5a5 | 57 | /****************************************************************************** |
bogdanm | 92:4fc01daae5a5 | 58 | Macro definitions |
bogdanm | 92:4fc01daae5a5 | 59 | ******************************************************************************/ |
bogdanm | 92:4fc01daae5a5 | 60 | |
bogdanm | 92:4fc01daae5a5 | 61 | |
bogdanm | 92:4fc01daae5a5 | 62 | /****************************************************************************** |
bogdanm | 92:4fc01daae5a5 | 63 | Variable Externs |
bogdanm | 92:4fc01daae5a5 | 64 | ******************************************************************************/ |
bogdanm | 92:4fc01daae5a5 | 65 | |
bogdanm | 92:4fc01daae5a5 | 66 | |
bogdanm | 92:4fc01daae5a5 | 67 | /****************************************************************************** |
bogdanm | 92:4fc01daae5a5 | 68 | Functions Prototypes |
bogdanm | 92:4fc01daae5a5 | 69 | ******************************************************************************/ |
bogdanm | 92:4fc01daae5a5 | 70 | void RZA_IO_RegWrite_8 (volatile uint8_t * ioreg, uint8_t write_value, uint8_t shift, uint8_t mask); |
bogdanm | 92:4fc01daae5a5 | 71 | void RZA_IO_RegWrite_16(volatile uint16_t * ioreg, uint16_t write_value, uint16_t shift, uint16_t mask); |
bogdanm | 92:4fc01daae5a5 | 72 | void RZA_IO_RegWrite_32(volatile uint32_t * ioreg, uint32_t write_value, uint32_t shift, uint32_t mask); |
bogdanm | 92:4fc01daae5a5 | 73 | uint8_t RZA_IO_RegRead_8 (volatile uint8_t * ioreg, uint8_t shift, uint8_t mask); |
bogdanm | 92:4fc01daae5a5 | 74 | uint16_t RZA_IO_RegRead_16 (volatile uint16_t * ioreg, uint16_t shift, uint16_t mask); |
bogdanm | 92:4fc01daae5a5 | 75 | uint32_t RZA_IO_RegRead_32 (volatile uint32_t * ioreg, uint32_t shift, uint32_t mask); |
bogdanm | 92:4fc01daae5a5 | 76 | |
bogdanm | 92:4fc01daae5a5 | 77 | #ifdef __cplusplus |
bogdanm | 92:4fc01daae5a5 | 78 | } |
bogdanm | 92:4fc01daae5a5 | 79 | #endif |
bogdanm | 92:4fc01daae5a5 | 80 | |
bogdanm | 92:4fc01daae5a5 | 81 | #endif /* RZA_IO_REGRW_H */ |
bogdanm | 92:4fc01daae5a5 | 82 | |
bogdanm | 92:4fc01daae5a5 | 83 | /* End of File */ |