Skip to main content
Visitor II
January 27, 2014
Question

Functions and parameters Cosmic C problem

  • January 27, 2014
  • 2 replies
  • 680 views
Posted on January 27, 2014 at 19:32

I am new to programming in C after years of using Basic on PICs. I would like to know where should I look for functions associated with a peripherals like GPIO ADC etc and what parameters they can accept. I am using Cosmic compiler and trying to program STM8S discovery board.

Thanks in advance.

    This topic has been closed for replies.

    2 replies

    Visitor II
    January 28, 2014
    Posted on January 28, 2014 at 13:36

    Hi

    Welcome.

    '' I would like to know where should I look for functions associated with a peripherals like GPIO ADC etc''

    The best I can do is point you here :

    http://www.st.com/stonline/stappl/productcatalog/app?page=partNumberSearchPage&levelid=SC1244&parentid=1754&resourcetype=SW

    You will have to find the ''Standard Peripheral Library'' for your family of STM8

    You do not have to use the library code, you can directly access the peripherals through their control/status registers. You can find out about these from the datasheet/reference manual for your processor.

    singhd3Author
    Visitor II
    January 28, 2014
    Posted on January 28, 2014 at 19:53

    Thanks a lot.