RZ/A1H CMSIS-RTOS RTX BSP for GR-PEACH.

Dependents:   GR-PEACH_Azure_Speech ImageZoomInout_Sample ImageRotaion_Sample ImageScroll_Sample ... more

Fork of R_BSP by Daiki Kato

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers R_BSP_mbed_fns.h Source File

R_BSP_mbed_fns.h

00001 /*******************************************************************************
00002 * DISCLAIMER
00003 * This software is supplied by Renesas Electronics Corporation and is only
00004 * intended for use with Renesas products. No other uses are authorized. This
00005 * software is owned by Renesas Electronics Corporation and is protected under
00006 * all applicable laws, including copyright laws.
00007 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
00008 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
00009 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
00010 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
00011 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
00012 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
00013 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
00014 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
00015 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
00016 * Renesas reserves the right, without notice, to make changes to this software
00017 * and to discontinue the availability of this software. By using this software,
00018 * you agree to the additional terms and conditions found by accessing the
00019 * following link:
00020 * http://www.renesas.com/disclaimer*
00021 * Copyright (C) 2015 Renesas Electronics Corporation. All rights reserved.
00022 *******************************************************************************/
00023 
00024 
00025 #ifndef R_BSP_MBED_FNS_H
00026 #define R_BSP_MBED_FNS_H
00027 
00028 /******************************************************************************
00029 Includes <System Includes> , "Project Includes"
00030 ******************************************************************************/
00031 #include "r_typedefs.h"
00032 #include "ioif_aio.h"
00033 
00034 #ifdef __cplusplus
00035 extern "C"
00036 {
00037 #endif /* __cplusplus */
00038 
00039 typedef struct {
00040     void *(*initialise_one)(const int_t channel, const void* const config_data, int32_t* const p_errno);
00041     int_t (*uninitialise_one)(const int_t channel, const void* const driver_instance, int32_t* const p_errno);
00042     int_t (*open)(void *driver_instance, const char_t *pathname, int_t flags, int_t mode, int32_t* p_errno);
00043     int_t (*close)(void *fd, int32_t* p_errno);
00044     int_t (*ioctl)(void *fd, int_t request, void *buf, int32_t* p_errno);
00045     int_t (*read_a)(void *fd, struct aiocb *p_aio, int32_t* p_errno);
00046     int_t (*write_a)(void *fd, struct aiocb *p_aio, int32_t* p_errno);
00047     int_t (*cancel)(void *fd, struct aiocb *p_aio, int32_t* p_errno);
00048 } RBSP_MBED_FNS;
00049 
00050 #ifdef __cplusplus
00051 }
00052 #endif /* __cplusplus */
00053 
00054 #endif /* R_BSP_MBED_FNS_H */