ether2ser 0.1.0
Ethernet <-> synchronous V.24 bridge firmware for RP2040 + W5500
Loading...
Searching...
No Matches
blink.h File Reference
#include <stdio.h>
#include "hardware/gpio.h"
#include "hardware/pio.h"
#include "pico/stdio.h"
#include "pico/time.h"
#include "pico/types.h"
#include "led_blink.pio.h"
Include dependency graph for blink.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void start_pio_led_blink (PIO pio, uint sm, uint pin)
 Start PIO-driven LED blink on a GPIO.
 
void start_cpu_led_blink (uint pin)
 Start CPU-driven LED blink on a GPIO.
 

Function Documentation

◆ start_cpu_led_blink()

void start_cpu_led_blink ( uint  pin)

Start CPU-driven LED blink on a GPIO.

Parameters
pinGPIO number to blink.

Definition at line 26 of file blink_cpu.c.

Referenced by main().

Here is the caller graph for this function:

◆ start_pio_led_blink()

void start_pio_led_blink ( PIO  pio,
uint  sm,
uint  pin 
)

Start PIO-driven LED blink on a GPIO.

Parameters
pioPIO instance to use (e.g. pio0).
smState machine index within the PIO.
pinGPIO number to blink.

Definition at line 23 of file blink_pio.c.

Referenced by main().

Here is the caller graph for this function: