nuttx/arch/renesas/src/rx65n/rx65n_cmtw0.h
Anjana fae7e63479 We have ported NuttX on Renesas RX65N Micro-controller. This port includes following interfaces
1. Serial (UART) driver (13 ports)
2. Ethernet driver

This port is provided on two boards
1. RSK RX65N-2MB
2. GR-Rose

The port is built on Cygwin environment.

As part of this port, we have created two documents
1. Readme.txt for each board
2. User manual to provide information about development environment setup
Both these documents are placed under
1. /boards/renesas/rx65n/rx65n-grrose
2. /boards/renesas/rx65n/rx65n-rsk2mb

We have run 'nxstyle' for coding guidelines and 'ostest' for testing NuttX features on test platform.
We have shared the log with no errors as confirmation of valid port.
2019-10-11 23:36:57 +08:00

114 lines
3.8 KiB
C

/****************************************************************************
* arch/renesas/src/rx65n/rx65n_cmtw0.h
*
* Copyright (C) 2008-2019 Gregory Nutt. All rights reserved.
* Author: Surya Prakash <surya.prakash@tataelxsi.co.in>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. 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.
* 3. Neither the name NuttX 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.
*
***************************************************************************/
#ifndef __ARCH_RENESAS_SRC_RX65N_CMTW0_H
#define __ARCH_RENESAS_SRC_RX65N_CMTW0_H
/****************************************************************************
* Included Files
****************************************************************************/
#include "rx65n_cmtw.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Compare Match Constant Register (CMWCOR) */
#define _000000BB_CMTW0_CMWCOR_VALUE (0xfffffffful)
/* Output Compare Registers 0 (CMWOCR0) */
#define _0000000A_CMTW0_CMWOCR0_VALUE (0x0000000aul)
/* Output Compare Registers 1 (CMWOCR1) */
#define _0000000A_CMTW0_CMWOCR1_VALUE (0x0000000aul)
/****************************************************************************
* Public Function Prototypes
***************************************************************************/
/****************************************************************************
* Name: rx65n_cmtw0_create
*
* Description:
* Initializes CMTW0 Timer
*
* Input Parameters:
* None
*
* Returned Value:
* None
*
****************************************************************************/
void rx65n_cmtw0_create(uint32_t txpoll_time, uint32_t txtimeout_time);
/****************************************************************************
* Name: rx65n_cmtw0_start
*
* Description:
* Start CMTW0 Timer
*
* Input Parameters:
* None
*
* Returned Value:
* None
*
****************************************************************************/
void rx65n_cmtw0_start(uint8_t type, uint32_t timeout);
/****************************************************************************
* Name: rx65n_cmtw0_stop
*
* Description:
* Stop CMTW0 Timer
*
* Input Parameters:
* None
*
* Returned Value:
* None
*
****************************************************************************/
void rx65n_cmtw0_stop(uint8_t type);
#endif /* __ARCH_RENESAS_SRC_RX65N_CMTW0_H */