Ignore:
Timestamp:
Jul 24, 2014, 3:19:18 PM (10 years ago)
Author:
cfuguet
Message:

tsar_boot: improving configuration infrastructure

  • Using hard_config.h which respects the same sintax that the hard_config.h file of all TSAR platforms. This file can be then generated by the GIET-VM genmap tool or written manually.
  • All peripheral drivers have been moved to a drivers directory and they are compiled as a static library. This allows GCC to only include in the final .ELF the object files of used peripherals and not all of them.
  • Example hard_config.h and ldscripts have been introduced in the conf directory.
  • Improving comments in all files
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/include/reset_ioc.h

    r653 r758  
     1/**
     2 * \file   reset_ioc.h
     3 * \date   December 14, 2013
     4 * \author Cesar Fuguet
     5 *
     6 * \brief  API for accessing the disk controller
     7 *
     8 * \note   These functions call the specific disk controller driver depending
     9 *         on the USE_IOC_BDV, USE_IOC_SPI or USE_RAMDISK constants
     10 */
    111#ifndef RESET_IOC_H
    212#define RESET_IOC_H
    313
    4 #if USE_SPI
    5 #include <sdcard.h>
    6 #include <spi.h>
    7 #endif /* USE_SPI */
     14int reset_ioc_init();
    815
    9 #if USE_BDV
    10 #include <block_device.h>
    11 #include <mcc.h>
    12 #endif /* USE_BDV */
    13 
    14 #include <defs.h>
    15 #include <reset_tty.h>
    16 #include <io.h>
    17 #include <reset_utils.h>
    18 
    19 #if USE_SPI
    20 extern int reset_ioc_init();
    21 #endif /* USE_SPI */
    22 
    23 extern int reset_ioc_read( unsigned int lba,
    24                            void*        buffer,
    25                            unsigned int count );
     16int reset_ioc_read( unsigned int lba, void* buffer, unsigned int count );
    2617
    2718#endif /* RESET_IOC_H */
    2819
    2920/*
    30  * vim: tabstop=4 : shiftwidth=4 : expandtab
     21 * vim: tabstop=4 : softtabstop=4 : shiftwidth=4 : expandtab
    3122 */
Note: See TracChangeset for help on using the changeset viewer.