Skip to content

Commit 33ee23d

Browse files
committed
Update hal for 2027
1 parent c1f8862 commit 33ee23d

23 files changed

+35
-378
lines changed

subprojects/robotpy-hal/pyproject.toml

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ scan_headers_ignore = [
4343
"hal/DMA.h",
4444
"hal/Errors.h",
4545
"hal/HAL.h",
46+
"hal/IMU.h",
47+
"hal/IMUTypes.h",
48+
"hal/SystemServer.h",
4649
"hal/UsageReporting.h",
4750
"hal/Types.h",
4851
"hal/Value.h",
@@ -58,6 +61,8 @@ scan_headers_ignore = [
5861
"hal/handles/LimitedHandleResource.h",
5962
"hal/handles/UnlimitedHandleResource.h",
6063

64+
"hal/proto/*",
65+
6166
"hal/roborio/HMB.h",
6267
"hal/roborio/InterruptManager.h",
6368

@@ -75,23 +80,17 @@ scan_headers_ignore = [
7580
[tool.semiwrap.extension_modules."hal._wpiHal"]
7681
name = "wpihal"
7782
wraps = ["robotpy-native-wpihal"]
78-
depends = ["wpiutil"]
83+
depends = ["wpiutil", "ntcore"]
7984

8085
[tool.semiwrap.extension_modules."hal._wpiHal".headers]
8186
# hal
82-
Accelerometer = "hal/Accelerometer.h"
8387
AddressableLED = "hal/AddressableLED.h"
8488
AddressableLEDTypes = "hal/AddressableLEDTypes.h"
85-
AnalogAccumulator = "hal/AnalogAccumulator.h"
86-
AnalogGyro = "hal/AnalogGyro.h"
8789
AnalogInput = "hal/AnalogInput.h"
88-
AnalogOutput = "hal/AnalogOutput.h"
89-
AnalogTrigger = "hal/AnalogTrigger.h"
9090
CAN = "hal/CAN.h"
9191
CANAPI = "hal/CANAPI.h"
9292
CANAPITypes = "hal/CANAPITypes.h"
9393
CTREPCM = "hal/CTREPCM.h"
94-
# ChipObject = "hal/ChipObject.h"
9594
Constants = "hal/Constants.h"
9695
Counter = "hal/Counter.h"
9796
DIO = "hal/DIO.h"
@@ -102,32 +101,26 @@ DutyCycle = "hal/DutyCycle.h"
102101
Encoder = "hal/Encoder.h"
103102
# Errors = "hal/Errors.h"
104103
Extensions = "hal/Extensions.h"
105-
FRCUsageReporting = "hal/FRCUsageReporting.h"
106104
# HAL = "hal/HAL.h"
107105
HALBase = "hal/HALBase.h"
108106
I2C = "hal/I2C.h"
109107
I2CTypes = "hal/I2CTypes.h"
110-
Interrupts = "hal/Interrupts.h"
111-
LEDs = "hal/LEDs.h"
108+
# IMU = "hal/IMU.h"
109+
# IMUTypes = "hal/IMUTypes.h"
112110
Main = "hal/Main.h"
113111
Notifier = "hal/Notifier.h"
114112
PWM = "hal/PWM.h"
115113
Ports = "hal/Ports.h"
116114
Power = "hal/Power.h"
117115
PowerDistribution = "hal/PowerDistribution.h"
118116
REVPH = "hal/REVPH.h"
119-
Relay = "hal/Relay.h"
120-
SPI = "hal/SPI.h"
121-
SPITypes = "hal/SPITypes.h"
122117
SerialPort = "hal/SerialPort.h"
123118
SimDevice = "hal/SimDevice.h"
124119
Threads = "hal/Threads.h"
125120
# Types = "hal/Types.h"
126121
# Value = "hal/Value.h"
127122

128123
# hal/cpp
129-
SerialHelper = { header="hal/cpp/SerialHelper.h", enable_if="platform_machine == 'roborio'" }
130-
# UnsafeDIO = "hal/cpp/UnsafeDIO.h"
131124
# fpga_clock = "hal/cpp/fpga_clock.h"
132125

133126
# hal/handles
@@ -139,24 +132,16 @@ HandlesInternal = "hal/handles/HandlesInternal.h"
139132
# LimitedHandleResource = "hal/handles/LimitedHandleResource.h"
140133
# UnlimitedHandleResource = "hal/handles/UnlimitedHandleResource.h"
141134

142-
# hal/roborio
143-
# HMB = "hal/roborio/HMB.h"
144-
# InterruptManager = "hal/roborio/InterruptManager.h"
145-
146135

147136
[tool.semiwrap.extension_modules."hal.simulation._simulation"]
148137
name = "hal_simulation"
149138
wraps = ["robotpy-native-wpihal"]
150-
depends = ["wpiutil"]
139+
depends = ["wpiutil", "ntcore"]
151140
yaml_path = "semiwrap/simulation"
152141

153142
[tool.semiwrap.extension_modules."hal.simulation._simulation".headers]
154-
AccelerometerData = "hal/simulation/AccelerometerData.h"
155143
AddressableLEDData = "hal/simulation/AddressableLEDData.h"
156-
AnalogGyroData = "hal/simulation/AnalogGyroData.h"
157144
AnalogInData = "hal/simulation/AnalogInData.h"
158-
AnalogOutData = "hal/simulation/AnalogOutData.h"
159-
AnalogTriggerData = "hal/simulation/AnalogTriggerData.h"
160145
CTREPCMData = "hal/simulation/CTREPCMData.h"
161146
# CanData = "hal/simulation/CanData.h"
162147
DIOData = "hal/simulation/DIOData.h"
@@ -171,11 +156,8 @@ NotifierData = "hal/simulation/NotifierData.h"
171156
PWMData = "hal/simulation/PWMData.h"
172157
PowerDistributionData = "hal/simulation/PowerDistributionData.h"
173158
REVPHData = "hal/simulation/REVPHData.h"
174-
RelayData = "hal/simulation/RelayData.h"
175159
Reset = "hal/simulation/Reset.h"
176160
RoboRioData = "hal/simulation/RoboRioData.h"
177-
SPIAccelerometerData = "hal/simulation/SPIAccelerometerData.h"
178-
# SPIData = "hal/simulation/SPIData.h"
179161
# SimCallbackRegistry = "hal/simulation/SimCallbackRegistry.h"
180162
# SimDataValue = "hal/simulation/SimDataValue.h"
181163
SimDeviceData = "hal/simulation/SimDeviceData.h"

subprojects/robotpy-hal/semiwrap/Accelerometer.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

subprojects/robotpy-hal/semiwrap/AnalogGyro.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

subprojects/robotpy-hal/semiwrap/AnalogOutput.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

subprojects/robotpy-hal/semiwrap/AnalogTrigger.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

subprojects/robotpy-hal/semiwrap/CAN.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ strip_prefixes:
55

66
functions:
77
HAL_CAN_SendMessage:
8-
buffers:
9-
- { type: IN, src: data, len: dataSize }
108
HAL_CAN_ReceiveMessage:
11-
buffers:
12-
- { type: OUT, src: data, len: dataSize, minsz: 8 }
139
HAL_CAN_OpenStreamSession:
1410
HAL_CAN_CloseStreamSession:
1511
HAL_CAN_ReadStreamSession:
@@ -18,7 +14,6 @@ functions:
1814
classes:
1915
HAL_CANStreamMessage:
2016
attributes:
21-
messageID:
17+
messageId:
2218
timeStamp:
23-
data:
24-
dataSize:
19+
message:

subprojects/robotpy-hal/semiwrap/CANAPI.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,9 @@ functions:
88
HAL_InitializeCAN:
99
HAL_CleanCAN:
1010
HAL_WriteCANPacket:
11-
buffers:
12-
- { type: IN, src: data, len: length }
1311
HAL_WriteCANPacketRepeating:
14-
buffers:
15-
- { type: IN, src: data, len: length }
1612
HAL_WriteCANRTRFrame:
1713
HAL_StopCANPacketRepeating:
1814
HAL_ReadCANPacketNew:
19-
buffers:
20-
- { type: OUT, src: data, len: length, minsz: 8 }
2115
HAL_ReadCANPacketLatest:
22-
buffers:
23-
- { type: OUT, src: data, len: length, minsz: 8 }
2416
HAL_ReadCANPacketTimeout:
25-
buffers:
26-
- { type: OUT, src: data, len: length, minsz: 8 }

subprojects/robotpy-hal/semiwrap/CANAPITypes.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,14 @@ enums:
77
HAL_CANDeviceType:
88
value_prefix: HAL_CAN_Dev
99
HAL_CANManufacturer:
10-
value_prefix: HAL_CAN_Man
10+
value_prefix: HAL_CAN_Man
11+
classes:
12+
HAL_CANMessage:
13+
attributes:
14+
flags:
15+
dataSize:
16+
data:
17+
HAL_CANReceiveMessage:
18+
attributes:
19+
timeStamp:
20+
message:

subprojects/robotpy-hal/semiwrap/FRCUsageReporting.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

subprojects/robotpy-hal/semiwrap/Interrupts.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)