Last change
on this file since 827 was
758,
checked in by cfuguet, 10 years ago
|
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 size:
534 bytes
|
Rev | Line | |
---|
[758] | 1 | /** |
---|
| 2 | * \file reset_sdc.h |
---|
| 3 | * \author Cesar Fuguet |
---|
| 4 | * \date July 23, 2014 |
---|
| 5 | * |
---|
| 6 | * \brief Wrapper for the SD card and SPI drivers |
---|
| 7 | */ |
---|
| 8 | #ifndef RESET_SDC_H |
---|
| 9 | #define RESET_SDC_H |
---|
| 10 | |
---|
| 11 | /** |
---|
| 12 | * \brief this function initializes the SD card device and the SPI controller |
---|
| 13 | */ |
---|
| 14 | int reset_sdc_init(); |
---|
| 15 | |
---|
| 16 | /** |
---|
| 17 | * \brief read a block in the SD card device using the SPI controller |
---|
| 18 | */ |
---|
| 19 | int reset_sdc_read( unsigned int lba, void* buffer, unsigned int count ); |
---|
| 20 | |
---|
| 21 | #endif /* RESET_SDCARD_H */ |
---|
| 22 | |
---|
| 23 | /* |
---|
| 24 | * vim: tabstop=4 : softtabstop=4 : shiftwidth=4 : expandtab |
---|
| 25 | */ |
---|
Note: See
TracBrowser
for help on using the repository browser.