Giter Site home page Giter Site logo

fpm-c's People

Contributors

brianrho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fpm-c's Issues

stm32f10x_conf.h: No such file or directory

I am using stm32 nucleo f411RE with this code. after compilation it gives me the error that "stm32f10x_conf.h: No such file or directory". Is there any file that im missing to add ? Or is it about something else.

why usart1 called in enroll_mainloop ?

Hı Brian Firstly,
I read your code so many times,when I started to create my libraries.I assume Usart1 used as Bluetooth module for serial monitor and Usart6 used for Fingerprint module.After these configurations applied I debug my code and started But code stay always in enroll_mainloop because of this line: " while (uart_avail(&uart1) == 0); "

``

void enroll_mainloop(void)

{
  while (1) 
      {
	USART_Puts(USART1,"parmaginizi okutun lutfen\r\n");
	while (uart_avail(&uart1) == 0);

	USART_Puts(USART1,"parmaginizi kaydetmek icin bos sablon araniyor\r\n");
	int16_t fid;
	if (get_free_id(&fid))
		enroll_finger(fid);
	else
		USART_Puts(USART1,"No free slot in flash library!\r\n");
	while (uart_read_byte(&uart1) != -1);  // clear buffer
   }
  }

//UART_MAX_RX_SIZE =256 uart1->rx_head=0,uart1->rx_tail=0 I received this values

uint16_t uart_avail(uart_t * port)
{

return ((uint16_t)(UART_MAX_RX_SIZE + port->rx_head - port->rx_tail)) % UART_MAX_RX_SIZE;

}

``

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.