@@ -40,31 +40,12 @@ packages = ["hal"]
4040
4141[tool .semiwrap ]
4242update_init = []
43+
44+ # NOTE: By default we ignore all HAL APIs, as most of them are exposed in WPILib
45+ # somewhere. If you find something that you need, file a bug and we can add it!
46+
4347scan_headers_ignore = [
44- " wpi/hal/Errors.h" ,
45- " wpi/hal/HAL.h" ,
46- " wpi/hal/IMU.h" ,
47- " wpi/hal/IMUTypes.h" ,
48- " wpi/hal/SystemServer.h" ,
49- " wpi/hal/Types.h" ,
50- " wpi/hal/Value.h" ,
51-
52- " wpi/hal/cpp/fpga_clock.h" ,
53-
54- " wpi/hal/handles/DigitalHandleResource.h" ,
55- " wpi/hal/handles/IndexedClassedHandleResource.h" ,
56- " wpi/hal/handles/IndexedHandleResource.h" ,
57- " wpi/hal/handles/LimitedClassedHandleResource.h" ,
58- " wpi/hal/handles/LimitedHandleResource.h" ,
59- " wpi/hal/handles/UnlimitedHandleResource.h" ,
60-
61- " wpi/hal/proto/*" ,
62-
63- " wpi/hal/simulation/CanData.h" ,
64- " wpi/hal/simulation/I2CData.h" ,
65- " wpi/hal/simulation/NotifyListener.h" ,
66- " wpi/hal/simulation/SimCallbackRegistry.h" ,
67- " wpi/hal/simulation/SimDataValue.h" ,
48+ " wpi/hal/*" ,
6849
6950 # TODO: might want this in the future
7051 " mrc/*" ,
@@ -81,55 +62,19 @@ depends = ["wpiutil", "ntcore"]
8162
8263[tool .semiwrap .extension_modules ."hal ._wpiHal" .headers ]
8364# hal
84- AddressableLED = " wpi/hal/AddressableLED.h"
85- AddressableLEDTypes = " wpi/hal/AddressableLEDTypes.h"
86- AnalogInput = " wpi/hal/AnalogInput.h"
87- CAN = " wpi/hal/CAN.h"
88- CANAPI = " wpi/hal/CANAPI.h"
8965CANAPITypes = " wpi/hal/CANAPITypes.h"
90- CTREPCM = " wpi/hal/CTREPCM.h"
91- Constants = " wpi/hal/Constants.h"
92- Counter = " wpi/hal/Counter.h"
93- DIO = " wpi/hal/DIO.h"
94- # DMA = "hal/DMA.h"
9566DriverStation = " wpi/hal/DriverStation.h"
9667DriverStationTypes = " wpi/hal/DriverStationTypes.h"
97- DutyCycle = " wpi/hal/DutyCycle.h"
98- Encoder = " wpi/hal/Encoder.h"
99- # Errors = "wpi/hal/Errors.h"
10068Extensions = " wpi/hal/Extensions.h"
101- # HAL = "wpi/hal/HAL.h"
10269HALBase = " wpi/hal/HALBase.h"
103- I2C = " wpi/hal/I2C.h"
104- I2CTypes = " wpi/hal/I2CTypes.h"
105- # IMU = "wpi/hal/IMU.h"
106- # IMUTypes = "wpi/hal/IMUTypes.h"
10770Main = " wpi/hal/Main.h"
10871Notifier = " wpi/hal/Notifier.h"
109- PWM = " wpi/hal/PWM.h"
110- Ports = " wpi/hal/Ports.h"
111- Power = " wpi/hal/Power.h"
112- PowerDistribution = " wpi/hal/PowerDistribution.h"
113- REVPH = " wpi/hal/REVPH.h"
114- SerialPort = " wpi/hal/SerialPort.h"
11572SimDevice = " wpi/hal/SimDevice.h"
116- UsageReporting = " wpi/hal/UsageReporting.h"
11773Threads = " wpi/hal/Threads.h"
118- # Types = "wpi/hal/Types.h"
119- # Value = "wpi/hal/Value.h"
74+ UsageReporting = " wpi/hal/UsageReporting.h"
12075
12176# hal/cpp
122- # fpga_clock = "wpi/hal/cpp/fpga_clock.h"
123-
124- # hal/handles
125- # DigitalHandleResource = "wpi/hal/handles/DigitalHandleResource.h"
126- HandlesInternal = " wpi/hal/handles/HandlesInternal.h"
127- # IndexedClassedHandleResource = "wpi/hal/handles/IndexedClassedHandleResource.h"
128- # IndexedHandleResource = "wpi/hal/handles/IndexedHandleResource.h"
129- # LimitedClassedHandleResource = "wpi/hal/handles/LimitedClassedHandleResource.h"
130- # LimitedHandleResource = "wpi/hal/handles/LimitedHandleResource.h"
131- # UnlimitedHandleResource = "wpi/hal/handles/UnlimitedHandleResource.h"
132-
77+ SerialHelper = { header =" wpi/hal/cpp/SerialHelper.h" , enable_if =" platform_machine == 'roborio'" }
13378
13479[tool .semiwrap .extension_modules ."hal .simulation ._simulation" ]
13580name = " hal_simulation"
@@ -138,24 +83,8 @@ depends = ["wpiutil", "ntcore"]
13883yaml_path = " semiwrap/simulation"
13984
14085[tool .semiwrap .extension_modules ."hal .simulation ._simulation" .headers ]
141- AddressableLEDData = " wpi/hal/simulation/AddressableLEDData.h"
142- AnalogInData = " wpi/hal/simulation/AnalogInData.h"
143- CTREPCMData = " wpi/hal/simulation/CTREPCMData.h"
144- # CanData = "wpi/hal/simulation/CanData.h"
145- DIOData = " wpi/hal/simulation/DIOData.h"
146- DigitalPWMData = " wpi/hal/simulation/DigitalPWMData.h"
14786DriverStationData = " wpi/hal/simulation/DriverStationData.h"
148- DutyCycleData = " wpi/hal/simulation/DutyCycleData.h"
149- EncoderData = " wpi/hal/simulation/EncoderData.h"
150- # I2CData = "wpi/hal/simulation/I2CData.h"
15187MockHooks = " wpi/hal/simulation/MockHooks.h"
15288NotifierData = " wpi/hal/simulation/NotifierData.h"
153- # NotifyListener = "wpi/hal/simulation/NotifyListener.h"
154- PWMData = " wpi/hal/simulation/PWMData.h"
155- PowerDistributionData = " wpi/hal/simulation/PowerDistributionData.h"
156- REVPHData = " wpi/hal/simulation/REVPHData.h"
15789Reset = " wpi/hal/simulation/Reset.h"
158- RoboRioData = " wpi/hal/simulation/RoboRioData.h"
159- # SimCallbackRegistry = "wpi/hal/simulation/SimCallbackRegistry.h"
160- # SimDataValue = "wpi/hal/simulation/SimDataValue.h"
16190SimDeviceData = " wpi/hal/simulation/SimDeviceData.h"
0 commit comments