Commit 360276b3 authored by Bruno Gomes's avatar Bruno Gomes

Configurator: update grcan device options

refs #112663
parent 15122add
......@@ -44,8 +44,6 @@ SPWRTR_PRESCALER = 'Prescaler'
CANBUS_CORE = 'CanCore'
CANBUS_BAUD = 'Baud'
CANBUS_TXD = 'TXD'
CANBUS_RXD = 'RXD'
CANBUS_READS = 'Reads'
CANBUS_CODE = 'Code'
CANBUS_MASK = 'Mask'
......@@ -359,8 +357,6 @@ def phy_grcan(iop_parser, xml, pdevice):
setup = GRCANPhySetup()
setup.can_core = pdevice.minor
setup.baud = xml.parse_attr(CANBUS_BAUD, VALID_READS, True, iop_parser.logger)
setup.txd_count = xml.parse_attr(CANBUS_TXD, VALID_XD, True, iop_parser.logger)
setup.rxd_count = xml.parse_attr(CANBUS_RXD, VALID_XD, True, iop_parser.logger)
setup.code = xml.parse_attr(CANBUS_CODE, VALID_MASK_CODE, True, iop_parser.logger)
setup.mask = xml.parse_attr(CANBUS_MASK, VALID_MASK_CODE, True, iop_parser.logger)
setup.selection = xml.parse_attr(CANBUS_SELECTION, VALID_EN, True, iop_parser.logger)
......
......@@ -14,25 +14,27 @@
* This file was generated by the GMV's Configurator Tool and is part of an I/O
* partition configuration.
* File Purpose: IO Partition user configuration. Contains the configuration
* options for GRCAN driver of CAN devices to be used on the
* gr740 board.
* options for GRCAN driver of CAN devices.
* ============================================================================
*/
#include <iop.h>
#include <grcan.h>
#include <can_support.h>
#define CAN_TX_SIZE 16
#define CAN_RX_SIZE 48
${iop_template.RemotePortList(iop_configuration)}\
/**
*@brief Allocation of the receiver memory
*/
static uint8_t rx_msg_fifo[${device.setup.rxd_count*16*4+1024}];
static uint8_t rx_msg_fifo[CAN_RX_SIZE*16*4+1024];
/**
*@brief Allocation of the transmiter memory
*/
static uint8_t tx_msg_fifo[${device.setup.txd_count*16*4+1024}];
static uint8_t tx_msg_fifo[CAN_TX_SIZE*16*4+1024];
/** @brief GRCAN control structure*/
static grcan_priv grcan_driver = ${'\\'}
......@@ -57,8 +59,8 @@ static grcan_priv grcan_driver = ${'\\'}
.txblock = 0,
.rxblock = 0,
.txbuf_size = ${device.setup.txd_count*16*4},
.rxbuf_size = ${device.setup.rxd_count*16*4},
.txbuf_size = CAN_TX_SIZE*16*4,
.rxbuf_size = CAN_RX_SIZE*16*4,
.config = {
.selection = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment