Ignore:
Timestamp:
Jun 10, 2014, 12:33:23 PM (10 years ago)
Author:
alain
Message:

All drivers have been modified to use only the information
contained in the hard_config.h file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/tty_driver.c

    r315 r320  
    1616// be stored in the context of the task by the boot code.
    1717//
    18 // The seg_tty_base must be defined in giet_vsegs.ld file.
     18// The SEG_TTY_BASE address must be defined in the hard_config.h file.
    1919///////////////////////////////////////////////////////////////////////////////////
    2020// Implementation note:
     
    3131#include <utils.h>
    3232
     33#if !defined(SEG_TTY_BASE)
     34# error: You must define SEG_TTY_BASE in the hard_config.h file
     35#endif
     36
    3337#if !defined(NB_TTY_CHANNELS)
    3438# error: You must define NB_TTY_CHANNELS in the hard_config.h file
     
    6064                                unsigned int index )
    6165{
    62     unsigned int* vaddr = (unsigned int*)&seg_tty_base + channel*TTY_SPAN + index;
     66    unsigned int* vaddr = (unsigned int*)SEG_TTY_BASE + channel*TTY_SPAN + index;
    6367    return _io_extended_read( vaddr );
    6468}
     
    7175                        unsigned int value )
    7276{
    73     unsigned int* vaddr = (unsigned int*)&seg_tty_base + channel*TTY_SPAN + index;
     77    unsigned int* vaddr = (unsigned int*)SEG_TTY_BASE + channel*TTY_SPAN + index;
    7478    _io_extended_write( vaddr, value );
    7579}
Note: See TracChangeset for help on using the changeset viewer.