Download rcX - Hilscher Knowledge Base
Transcript
Introduction 2/94 Table of Contents 1 Introduction.............................................................................................................................................4 1.1 About this Document......................................................................................................................4 1.2 List of Revisions .............................................................................................................................4 1.3 Legal Notes ....................................................................................................................................5 1.3.1 1.3.2 1.3.3 1.3.4 Copyright ........................................................................................................................................... 5 Important Notes................................................................................................................................. 5 Exclusion of Liability .......................................................................................................................... 6 Export ................................................................................................................................................ 6 2 Configuring rcX ......................................................................................................................................7 2.1 A Single Source Code-File (Config.c) for the Configuration ..........................................................7 2.2 List of configurable Resources and Peripherals ............................................................................7 2.3 The Behavior after a System Reset ...............................................................................................8 2.4 The Application-Entry Code .........................................................................................................10 2.5 The Location of the main() Function to Enter the Kernel .............................................................11 3 System Configuration Data Structure ................................................................................................13 3.1 Configure Drivers using RX_DRIVER_PERIPHERAL_CONFIG_T.............................................15 3.2 3.1.1 The RX_DRIVER_PERIPHERAL_CONFIG_T Structure Reference ............................................... 15 Loading Middleware Modules using tMiddleware ........................................................................17 3.2.1 The RX_MIDDLEWARE_CONFIG_T Structure Reference ............................................................. 17 4 Defining the Application-Tasks...........................................................................................................18 4.1 The RX_STATIC_TASK_T Structure Reference .........................................................................18 5 Configuring the Hardware Platform and the Resources ..................................................................22 5.1 The Peripheral Configuration Table in General ...........................................................................22 5.2 Default Resource Configuration ...................................................................................................23 5.3 Defining the Hardware in Peripheral Objects...............................................................................24 5.4 5.5 5.6 5.7 5.8 5.9 5.3.1 The RX_PERIPHERAL_HEADER_T Peripheral Object Header Structure...................................... 25 Configuring the Trace Memory Pool ............................................................................................27 5.4.1 The RX_TRACE_SET_T Trace Memory Object Structure Reference............................................. 28 Configuring the Hardware Interrupts............................................................................................29 5.5.1 The RX_INTERRUPT_SET_T Interrupt Object Structure Reference .............................................. 29 Configuring Hardware Timers and Counters ...............................................................................33 5.6.1 The RX_HWTIMER_SET_T Hardware Timer/Counter Object Structure Reference ....................... 34 Configuring the UARTs ................................................................................................................36 5.7.1 The RX_UART_SET_T UART Object Structure Reference ............................................................ 37 Configuring the SRAM Bus ..........................................................................................................41 5.8.1 The RX_SRAMBUS_SET_T SRAM Bus Configuration Structure Reference................................. 42 Configuring Parallel FLASH .........................................................................................................44 5.9.1 The RX_PARALLELFLASH_SET_T Parallel FLASH Object Structure Reference......................... 45 5.10 Configuring Serial Peripheral Interface (SPI)...............................................................................48 5.10.1 The RX_SPISLAVE_SET_T SPI Object Structure Reference........................................................ 49 5.11 Configuring Serial FLASH ............................................................................................................51 5.11.1 The RX_SERIALFLASH_SET_T Serial Flash Object Structure Reference.................................... 52 5.12 Configuring the Ethernet PHY Transceivers ................................................................................56 5.12.1 The RX_PHY_SET_T Ethernet PHY Transceiver Object Structure Reference ............................... 57 5.13 Configuring the General-Purpose I/Os (GPIOs) ..........................................................................59 5.13.1 The RX_GPIO_SET_T General Purpose I/O Object Structure Reference ..................................... 60 5.14 Configuring the Programmable I/Os (PIOs) .................................................................................63 5.14.1 The RX_PIO_SET_T Programmable I/O Object Structure Reference ........................................... 63 5.15 Configuring the HIF Programmable Input/Output pins.................................................................66 5.15.1 The RX_HIFPIO_SET_T Host Interface PIO Object Structure Reference....................................... 66 5.16 Configuring the General I/Os (IOs) ..............................................................................................68 5.16.1 The RX_IO_SET_T General I/O Object Structure Reference......................................................... 68 5.17 Configuring the Extended Fieldbus Controllers (xC) ...................................................................69 5.17.1 The RX_XC_SET_T Extended Controller Object Structure Reference .......................................... 70 5.18 Configuring the Media Volumes...................................................................................................72 5.18.1 The RX_VOLUME_SET_T Volume Object Structure Reference..................................................... 72 5.19 Configuring the Host Interface .....................................................................................................75 5.19.1 The RX_HIF_SET_T Host Interface Object Structure Reference.................................................... 76 5.20 Configuring the FIFO Channels ...................................................................................................81 rcX - Realtime Communication System for netX | Configuration of rcX DOC050601OS08EN | Revision 8 | English | 2013-06 | Released | Public © Hilscher, 2005-2013