I am a beginner of TI processor. I want to learn the PRU of AM437x .
I do the project as http://processors.wiki.ti.com/index.php/PRU_Training:_Hands-on_Labs#LAB_1:_Toggle_LED_with_PRU_GPO which is based on AM335.
* main.c
*/
#include <stdint.h>
#include <pru_cfg.h>
#include "bsp_led.h"
volatile register uint32_t __R30;
volatile pruCfg CT_CFG __attribute__((cregister ("PRU_CFG",near),peripheral));
int main(void) {
//initalize before config the PINMUX
__R30 = 0x0000;
// CT_CFG.GPCFG0 = 0;
CT_CFG.SYSCFG_bit.STANDBY_INIT = 0;
while(1)
{
__R30 ^= 0x000f;
return 0;
}