Dear ____
I tried to integrate TI's PWM Driver code into AS1b code.
I don't have latest AS1b board so I used board with information:
ASM2d_C (upper part) and ASM2c_B(lower part).
TI's PWM driver code, I downloaded from here:
https://e2e.ti.com/support/wireless_connectivity/bluetooth_low_energy/f/538/p/474000/1849959#pi320098=1
I also attached downloaded PWM Driver code via this email, file
name is 4760.gptimer_pwm_cc26xx_cc13xx.zip
After integrating, I can compile and execute the AS1b code with
PWM driver code.
However, PWM still can't be activated on GPIO_PIN_3 (Blue LED) so
the Blue LED intensity is still high and very bright.
Here are my steps to integrate PWM Driver code into AS1b code.
Could you please take a look and let me know if any, many
thanks.
Step 1: Copied 6 Driver files into usercode folder
1. GPTimerCC26XX.c
2. GPTimerCC26XX.h
3. PWM2.c
4. PWM2.h
5. PWMCC26XX.c
6. PWMCC26XX.h
Step 2: Include all necessary PWM header files on top
of apr.c file
Step 3: Defined all related PWM global variables
Step 4: Define and implement PWM function
Define function
Implement function
Step 5: Added PWM function into apr_inz() and apr_drv()
Step 6: Added PWM typedef enum and GPIO_PIN in board.h
Step 7: Added PWM information into board.c
Those are 7 steps I did to integrate PWM Driver into AS1b code.
After integrating, I debug and PWM can be opened and started ok.
hPWM is not NULL (0x00007DFC)
これらは、私がPWMドライバをAS1bコードに統合するために行った7つのステップです。
統合後、私はデバッグとPWMを開いて起動することができます。
hPWMがNULLでない(0x00007DFC)
But Blue LED light is still strong.
Best Regards,
_________