i have arduino code for nrf24l01 i want to use this code for my stm32f103 arm?
what should i change in my program?
There are a couple STM32 hardware packages for the Arduino IDE. I think this is the most popular one:
I'd install that and then try out your code to see if it will work unmodified.