PER Firmware
Loading...
Searching...
No Matches
blinky.c File Reference
#include "g4_testing.h"
#include <stdint.h>
#include "common/rtos/rtos.h"
#include "common/phal_G4/gpio/gpio.h"
#include "common/phal_G4/rcc/rcc.h"
#include "common/utils/countof.h"
#include "main.h"
Include dependency graph for blinky.c:

Functions

void HardFault_Handler ()
 
static void ledblink1 (void)
 
static void ledblink2 (void)
 
static void ledblink3 (void)
 
static void ledblink4 (void)
 
 RTOS_DEFINE_TASK (ledblink1, 250, TASK_PRIORITY_NORMAL, 64)
 
 RTOS_DEFINE_TASK (ledblink2, 300, TASK_PRIORITY_NORMAL, 64)
 
 RTOS_DEFINE_TASK (ledblink3, 500, TASK_PRIORITY_NORMAL, 64)
 
 RTOS_DEFINE_TASK (ledblink4, 1000, TASK_PRIORITY_NORMAL, 64)
 
int main ()
 

Variables

PHAL_GPIO_InitConfig_t gpio_config []
 

Function Documentation

◆ HardFault_Handler()

void HardFault_Handler ( void )
Here is the caller graph for this function:

◆ ledblink1()

static void ledblink1 ( void )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ledblink2()

static void ledblink2 ( void )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ledblink3()

static void ledblink3 ( void )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ledblink4()

static void ledblink4 ( void )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( void )
Here is the call graph for this function:

◆ RTOS_DEFINE_TASK() [1/4]

RTOS_DEFINE_TASK ( ledblink1 ,
250 ,
TASK_PRIORITY_NORMAL ,
64  )

◆ RTOS_DEFINE_TASK() [2/4]

RTOS_DEFINE_TASK ( ledblink2 ,
300 ,
TASK_PRIORITY_NORMAL ,
64  )

◆ RTOS_DEFINE_TASK() [3/4]

RTOS_DEFINE_TASK ( ledblink3 ,
500 ,
TASK_PRIORITY_NORMAL ,
64  )

◆ RTOS_DEFINE_TASK() [4/4]

RTOS_DEFINE_TASK ( ledblink4 ,
1000 ,
TASK_PRIORITY_NORMAL ,
64  )

Variable Documentation

◆ gpio_config

PHAL_GPIO_InitConfig_t gpio_config[]
Initial value:
= {
}
#define LED_GREEN_PIN
Definition main.h:10
#define LED_GREEN_PORT
Definition main.h:9
#define LED_BLUE_PIN
Definition main.h:14
#define LED_RED_PORT
Definition main.h:11
#define LED_ORANGE_PORT
Definition main.h:15
#define LED_RED_PIN
Definition main.h:12
#define LED_ORANGE_PIN
Definition main.h:16
#define LED_BLUE_PORT
Definition main.h:13
@ GPIO_OUTPUT_LOW_SPEED
Definition gpio.h:32
#define PHAL_GPIO_INIT_OUTPUT(gpio_bank, pin_num, ospeed_sel)
Construct PHAL_GPIO_InitConfig_t for an output (push-pull) pin.
Definition gpio.h:154