Speeduino
Loading...
Searching...
No Matches
init.h
Go to the documentation of this file.
1#ifndef INIT_H
2#define INIT_H
3
4void initialiseAll(void);
5void initialiseTriggers(void);
6void setPinMapping(byte boardID);
7void changeHalfToFullSync(void);
8void changeFullToHalfSync(void);
9
10#define VSS_USES_RPM2() ((configPage2.vssMode > 1U) && (pinVSS == pinTrigger2) && !BIT_CHECK(decoderState, BIT_DECODER_HAS_SECONDARY)) // VSS is on the same pin as RPM2 and RPM2 is not used as part of the decoder
11#define FLEX_USES_RPM2() ((configPage2.flexEnabled > 0U) && (pinFlex == pinTrigger2) && !BIT_CHECK(decoderState, BIT_DECODER_HAS_SECONDARY)) // Same as above, but for Flex sensor
12
13#endif
static uint32_t rshift(uint32_t a)
Bitwise right shift - generic, unoptimized, case.
Definition bit_shifts.h:349
void changeFullToHalfSync(void)
Definition init.cpp:3772
void initialiseTriggers(void)
Definition init.cpp:3054
void changeHalfToFullSync(void)
Definition init.cpp:3672
void setPinMapping(byte boardID)
Definition init.cpp:1257
void initialiseAll(void)
Definition init.cpp:97