Clipped from sys_main.c in source folder of PacSat_Turn_On_LEDs ... /* USER CODE BEGIN (0) */ /* USER CODE END */ /* Include Files */ #include "sys_common.h" #include "system.h" #include "het.h" #include "reg_het.h" #include "gio.h" #include "reg_gio.h" #include "errata_SSWF021_45.h" /* USER CODE BEGIN (1) */ /* N5BRG 240107 * This program is used to pulse on the three LEDs on PacSat Dev board. Leds will pulse and cycle. */ /* USER CODE END */ /** @fn void main(void) * @brief Application main function * @note This function is empty by default. * * This function is called after startup. * The user can use this function to implement the application. */ /* USER CODE BEGIN (2) */ /* USER CODE END */ int main(void) { /* USER CODE BEGIN (3) */ // WDTCTL = WDTPW | WDTHOLD // stop watchdog timer in TMS570 //gioSetDirection(hetPORT1, 0xFFFFFFFF); //Set LEDS high // gio(SetBit(hetPORT1, 0, 0)) // gio(SetBit(hetPORT1, 1, 1)) // gio(SetBit(hetPORT1, 2, 0)) //HET1.0 |= 0x01; // configure HET1-0 as output //HET1.1 |= 0x01; // configure HET1-1 as output //HET1.2 |= 0x01; // configure HET1-2 as output int temp,temp2,delay,delay2; /** Delay Parameter */ delay = 0x200000; delay2 = 0x8; /* Set HET port pins to output */ gioSetDirection(hetPORT1, 0xFFFFFFFF); while(1) { /* Set HET port pin 1 high */ gioSetBit(hetPORT1, 0, 1); gioSetBit(hetPORT1, 1, 0); gioSetBit(hetPORT1, 2, 1); /** - Simple Delay */ for(temp2=0;temp2