Čeština / English
Login

SVN Repository / Prohlížení

Aktuální adresář: FITkit / trunk / mcu / libfitkit /

fitkitlib.h

   1  /*******************************************************************************
   2     fitkitlib.h:
   3     Copyright (C) 2009 Brno University of Technology,
   4                        Faculty of Information Technology
   5  
   6     LICENSE TERMS
   7  
   8     Redistribution and use in source and binary forms, with or without
   9     modification, are permitted provided that the following conditions
  10     are met:
  11     1. Redistributions of source code must retain the above copyright
  12        notice, this list of conditions and the following disclaimer.
  13     2. Redistributions in binary form must reproduce the above copyright
  14        notice, this list of conditions and the following disclaimer in
  15        the documentation and/or other materials provided with the
  16        distribution.
  17     3. All advertising materials mentioning features or use of this software
  18        or firmware must display the following acknowledgement:
  19  
  20          This product includes software developed by the University of
  21          Technology, Faculty of Information Technology, Brno and its
  22          contributors.
  23  
  24     4. Neither the name of the Company nor the names of its contributors
  25        may be used to endorse or promote products derived from this
  26        software without specific prior written permission.
  27  
  28     This software or firmware is provided ``as is'', and any express or implied
  29     warranties, including, but not limited to, the implied warranties of
  30     merchantability and fitness for a particular purpose are disclaimed.
  31     In no event shall the company or contributors be liable for any
  32     direct, indirect, incidental, special, exemplary, or consequential
  33     damages (including, but not limited to, procurement of substitute
  34     goods or services; loss of use, data, or profits; or business
  35     interruption) however caused and on any theory of liability, whether
  36     in contract, strict liability, or tort (including negligence or
  37     otherwise) arising in any way out of the use of this software, even
  38     if advised of the possibility of such damage.
  39  
  40     $Id$
  41  
  42  *******************************************************************************/
  43  
  44  
  45  #ifndef _FITKITLIB_H_
  46  #define _FITKITLIB_H_
  47  
  48  #include "arch_specific.h"
  49  #include "cmd.h"
  50  #include "define.h"
  51  #include "filetransfer.h"
  52  #include "flash.h"
  53  #include "flash_fpga.h"
  54  #include "fpga.h"
  55  #include "globfun.h"
  56  #include "isr_compat.h"
  57  #include "spi.h"
  58  #include "terminal.h"
  59  #include "timer_b.h"
  60  #include "uart.h"
  61  
  62  /**
  63  
  64   **/
  65  extern unsigned long FPGA_config_length;
  66  
  67  /**
  68  
  69  
  70   **/
  71  int initialize_hardware(void);
  72  
  73  /**
  74  
  75   \param progfpga - je-li 1, provede se naprogramovani FPGA z FLASH
  76  
  77   **/
  78  int initialize_hardware_(char progfpga);
  79  
  80  /**
  81  
  82  
  83   **/
  84  void fpga_initialized();
  85  
  86  /**
  87   \brief Nakonfiguruje FPGA pomoci dat ulozenych ve FLASH pameti
  88   \return 0 - chyba
  89          \n jinak - bez chyby
  90   **/
  91  char fpga_configure_from_flash(void);
  92  
  93  /**
  94   \brief Nakonfiguruje FPGA pomoci dat poslanych pres terminal
  95   \return 0 - chyba
  96          \n jinak - bez chyby
  97   **/
  98  char fpga_configure_from_mcu(void);
  99  
 100  /**
 101  
 102  
 103   **/
 104  void delay_cycle(unsigned int delay);
 105  
 106  /**
 107   \brief Odpojeni SMCLK vedouciho do FPGA
 108  **/
 109  void smclk_stop(void);
 110  
 111  #endif   /* _FITKITLIB_H_ */
 112  
Zobrazeno: 826394x Naposledy: 2.10.2023 03:07:14