------------------------- Low level interface -- -------------------------
procedure Clear
(This : in out GPIO_Point)
CLK : constant GPIO_Function := RP.Device_Parameters.GPIO_CLK_Func;
RP2350 only
procedure Configure
(This : GPIO_Point;
Mode : GPIO_Config_Mode;
Pull : GPIO_Pull_Mode := Floating;
Func : GPIO_Function := SIO;
Schmitt : Boolean := False;
Slew_Fast : Boolean := False;
Drive : GPIO_Drive := Drive_2mA)
procedure Drive
(Pin : GPIO_Pin;
Current : GPIO_Drive := 1)
Drive_12mA : constant GPIO_Drive := 4;
Drive_2mA : constant GPIO_Drive := 1;
Drive_4mA : constant GPIO_Drive := 2;
Drive_8mA : constant GPIO_Drive := 3;
procedure Func
(Pin : GPIO_Pin;
Func : GPIO_Function)
function Get
(This : GPIO_Point)
return Boolean
procedure Get
(Pin : GPIO_Pin;
High : out Boolean)
Get the input level
type GPIO_Config_Mode is (Input, Output, Analog);
type GPIO_Drive is range 0 .. 4;
type GPIO_Function is range 0 .. 11;
RP2350 only
type GPIO_Pin is range 0 .. RP.Device_Parameters.Pin_Count - 1;
type GPIO_Point is new HAL.GPIO.GPIO_Point with record
Pin : GPIO_Pin;
end record;
type GPIO_Pull_Mode is (Floating, Pull_Up, Pull_Down, Pull_Both);
HI_Z : constant GPIO_Function := 0;
RP2350 only
HSTX : constant GPIO_Function := 0;
RP2350 only
I2C : constant GPIO_Function := 3;
RP2350 only
procedure Input_Enable
(Pin : GPIO_Pin;
Enable : Boolean := True)
Enable the input buffer
procedure Isolate
(Pin : GPIO_Pin;
Isolate : Boolean)
Isolate has no effect on RP2040
function Mode
(This : GPIO_Point)
return HAL.GPIO.GPIO_Mode
Off : constant GPIO_Drive := 0;
procedure Output_Enable
(Pin : GPIO_Pin;
Enable : Boolean := True)
Enable the output buffer
PIO0 : constant GPIO_Function := 6;
RP2350 only
PIO1 : constant GPIO_Function := 7;
RP2350 only
PIO2 : constant GPIO_Function := 8;
RP2350 only
procedure Pull
(Pin : GPIO_Pin;
Up : Boolean := False;
Down : Boolean := False)
Enable pull resistors. Enabling both Up and Down simultaneously sets Bus Keeper Mode (9.6.1)
function Pull_Resistor
(This : GPIO_Point)
return HAL.GPIO.GPIO_Pull_Resistor
PWM : constant GPIO_Function := 4;
RP2350 only
function Set
(This : GPIO_Point)
return Boolean
procedure Set
(Pin : GPIO_Pin;
High : Boolean := True)
Set the output level
procedure Set
(This : in out GPIO_Point)
procedure Set_Mode
(This : in out GPIO_Point;
Mode : HAL.GPIO.GPIO_Config_Mode)
procedure Set_Pull_Resistor
(This : in out GPIO_Point;
Pull : HAL.GPIO.GPIO_Pull_Resistor)
SIO : constant GPIO_Function := 5;
RP2350 only
SPI : constant GPIO_Function := 1;
RP2350 only
function Support
(This : GPIO_Point;
Capa : HAL.GPIO.Capability)
return Boolean
procedure Toggle
(This : in out GPIO_Point)
UART : constant GPIO_Function := 2;
RP2350 only
UARTN : constant GPIO_Function := 11;
RP2350 only
USB : constant GPIO_Function := RP.Device_Parameters.GPIO_USB_Func;
RP2350 only