cancel
Showing results for 
Search instead for 
Did you mean: 

Functions and parameters Cosmic C problem

singhd3
Associate II
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.

2 REPLIES 2
chen
Associate II
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
Associate II
Posted on January 28, 2014 at 19:53

Thanks a lot.