]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/commitdiff
Fixed comments and documentation
authorMichal Horn <hornmich@fel.cvut.cz>
Mon, 13 Oct 2014 14:53:36 +0000 (16:53 +0200)
committerMichal Horn <hornmich@fel.cvut.cz>
Mon, 13 Oct 2014 14:53:36 +0000 (16:53 +0200)
This commit refs #916

rpp/doc/rpp.txt
rpp/include/rpp/rpp.h
rpp/src/rpp/fr.c

index e77c53ca940c990a85e35e628bd52b61cf801712..3148060eb1a8255b49f68462e7a550a9a3ddd10f 100644 (file)
@@ -44,7 +44,11 @@ Library file layout:
 
         To use this library just include this file and this file only. Also,
         before using any library function please call rpp_init() function for
-        hardware initialization.
+        all hardware peripherals initialization.
+        
+        If you want only selected peripherals to be initialized, just include 
+        base.h, RppConfig.h and rpp/<peripheral>.h and call rpp_<peripheral>_init()
+        for each one <peripheral>, you want to initialize.
 
 
     -> include/rpp/RppConfig.h
index e8a2f352d1d78e0f64a82c297d04d374e7427176..ff2f8921be01b4bc13c2da42606336b1bd3c8e08 100644 (file)
@@ -54,7 +54,7 @@
 /**
  * Library initialization function.
  *
- * This is a convenient function, which should be called only if all of the peripherals are going to be used by
+ * This is a convenience function, which should be called only if all of the peripherals are going to be used by
  * the software.
  *
  * To initialize the selected peripherals only, call the rpp_periph_init() function for each one of them instead
index 0469c31a5aa61c85bd30c260d8d85f51100e7170..8e649f4f53e01a514af4cbae69aaf50fca773bb1 100644 (file)
@@ -35,9 +35,9 @@ int8_t rpp_fr_init_driver(const Fr_ConfigType* config_ptr, uint32_t* error) {
        if (rpp_fr_state >= RPP_FR_DRV_INITIALIZED)
                return FAILURE;
 #if rppCONFIG_DRV == 1
-    spi_tms570_init();
+       spi_tms570_init();
 #endif
-    Fr_Init(config_ptr);
+       Fr_Init(config_ptr);
        rpp_fr_state = RPP_FR_DRV_INITIALIZED;
        return SUCCESS;
 }