energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
798 stars 671 forks source link

CC1310 pin mapping #1009

Closed vonRaf closed 6 years ago

vonRaf commented 6 years ago

Hi, where can I find pin mapping for CC1310? On Energia site there is missing link on image http://energia.nu/wordpress/wp-content/uploads/2016/11/LaunchPad-CC1310.png I try all combinations with DIO_XX, IO_XX but without success.

THX Goran

rei-vilo commented 6 years ago

See https://embeddedcomputing.weebly.com/launchpad-cc1310-sub-1-ghz.html

launchpads-cc13xx-cc26xx-pins-maps-numbers-cc1310_orig

vonRaf commented 6 years ago

Hi, THX for this, but on this I do not see name of, for example, DIO 15 pin that I can use in digitalWrite().

I try to include #include <ti/devices/cc13x0/driverlib/ioc.h> and then to use IOID_15 and we will see will it work

Goran

rei-vilo commented 6 years ago

Energia uses the pins numbers, e.g. 15, not the pins names.

vonRaf commented 6 years ago

hm, I will try that, I use PD_XX or PA_XX with Energia for Tiva C, so I thought that there is the same principe here THX Goran

rei-vilo commented 6 years ago

From http://energia.nu/pin-maps/

Pin Naming Users are encouraged to use the physical pin numbers (1-20, 1-40, or 1-80 depending on the LaunchPad) of the BoosterPack header pins as identifiers in their software. Because these numbers are consistent between all Launchpads, this help to ensure the portability of the user’s software. Some LaunchPads also support the use of GPIO or Port numbers such as “P1_3”. These names are not recommended for use and will be deprecated in the future. New LaunchPads that are added to Energia will not support pin names based on GPIO or Port numbers.

vonRaf commented 6 years ago

:) you got me, I always forget RFM rule

Sorry and THX Goran

rei-vilo commented 6 years ago

No problem, enjoy Energia!