MCPcopy Create free account
hub / github.com/PolySync/oscc / init_devices

Function init_devices

firmware/throttle/src/init.cpp:28–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27
28void init_devices( void )
29{
30 pinMode( PIN_DAC_CHIP_SELECT, OUTPUT );
31 pinMode( PIN_ACCELERATOR_POSITION_SENSOR_HIGH, INPUT );
32 pinMode( PIN_ACCELERATOR_POSITION_SENSOR_LOW, INPUT );
33 pinMode( PIN_ACCELERATOR_POSITION_SPOOF_HIGH, INPUT );
34 pinMode( PIN_ACCELERATOR_POSITION_SPOOF_LOW, INPUT );
35 pinMode( PIN_SPOOF_ENABLE, OUTPUT );
36
37 cli();
38 digitalWrite( PIN_DAC_CHIP_SELECT, HIGH );
39 digitalWrite( PIN_SPOOF_ENABLE, LOW );
40 sei();
41}
42
43
44void init_communication_interfaces( void )

Callers 1

mainFunction · 0.70

Calls 4

pinModeFunction · 0.85
cliFunction · 0.85
digitalWriteFunction · 0.85
seiFunction · 0.85

Tested by

no test coverage detected