I have found some code across the E2E for using PWM to control a motor while variable names and procedure call documentation seems lacking from proper programming standards the main thing that I can find is issues with conflicting pin usage so what I am looking for simple guide for pin usage. I know from working with other microcontrollers there can be issues with pin groups due to timers or priority. So below is my basic setup and I am trying to see if there is something to help the proper pin choice. (sample code would be useful I have been trying to dig through the examples for the that are recommended by the CC2530 documentation but for things like the light switch they reference the hal_led.c that instead of using pin commands for the CC2530 it references the four LEDs on the RF05 board this makes it hard to learn from this code to use it as a base for development it appears all the example code is just to develop the RF05 board but not for the CC2530 itself the example code for example in the hal_led.c should call out a GPIO pin on the CC2530 with how to set it as an ouput, and how to turn it on and off. If this was instead CC253X_led.c where the code is a simple set of instructions SetGPIO(pin, input/output) WriteGPIO(pin, on/off), ReadGPIO(pin, Value) this would be a much more useful example. Similar if there was a PWM set of code that has SetMotorPWM(pin 1, pin 2) WriteMotorPWM(pin 1, pin 2, %dutycycle, direction)
Pin Configuration
Simple RF receive and transmit
UART - receive data messages
single input (min 58 micro second pulse width) to run interrupt scrip
two pins for PWM for motor control using DRV8870 chip
13 pins for simple output control LED or similar