Skip to main content
singhd3
Associate
Jan 27, 2014 6:32 PM UTC
Question

Functions and parameters Cosmic C problem

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

    chen
    Associate II
    Jan 28, 2014 12:36 PM UTC
    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.

    singhd3
    singhd3Author
    Associate
    Jan 28, 2014 6:53 PM UTC
    Posted on January 28, 2014 at 19:53

    Thanks a lot.