USB and TLE8888 not working for F4 or F767 #764
This commit is contained in:
parent
ccf52ec21a
commit
dcff861918
|
@ -34,6 +34,10 @@
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_5_1_
|
#define _CHIBIOS_RT_CONF_VER_5_1_
|
||||||
|
|
||||||
|
#if !defined(_FROM_ASM_)
|
||||||
|
#include "obd_error_codes.h"
|
||||||
|
#endif /* _FROM_ASM_ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* __process_stack_size__ and __process_stack_size__ defaults are each hard-coded as 0x400 in ChibiOS rules.mk files
|
* __process_stack_size__ and __process_stack_size__ defaults are each hard-coded as 0x400 in ChibiOS rules.mk files
|
||||||
* rusEfi do not override these defaults.
|
* rusEfi do not override these defaults.
|
||||||
|
@ -58,12 +62,12 @@
|
||||||
#define EFI_CLOCK_LOCKS FALSE
|
#define EFI_CLOCK_LOCKS FALSE
|
||||||
#endif /* EFI_CLOCK_LOCKS */
|
#endif /* EFI_CLOCK_LOCKS */
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
#ifndef __ASSEMBLER__
|
#ifndef __ASSEMBLER__
|
||||||
|
void firmwareError(obd_code_e code, const char *fmt, ...);
|
||||||
#if EFI_CLOCK_LOCKS
|
#if EFI_CLOCK_LOCKS
|
||||||
void irqEnterHook(void);
|
void irqEnterHook(void);
|
||||||
void irqExitHook(void);
|
void irqExitHook(void);
|
||||||
|
@ -810,6 +814,7 @@ void chDbgPanic3(const char *msg, const char * file, int line);
|
||||||
if (CH_DBG_ENABLE_ASSERTS != FALSE) { \
|
if (CH_DBG_ENABLE_ASSERTS != FALSE) { \
|
||||||
if (!(c)) { \
|
if (!(c)) { \
|
||||||
/*lint -restore*/ \
|
/*lint -restore*/ \
|
||||||
|
firmwareError(OBD_PCM_Processor_Fault, "chDbg %s", remark); \
|
||||||
chSysHalt(remark); \
|
chSysHalt(remark); \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
|
|
|
@ -11,12 +11,16 @@
|
||||||
#ifndef OBD_ERROR_CODES_H_
|
#ifndef OBD_ERROR_CODES_H_
|
||||||
#define OBD_ERROR_CODES_H_
|
#define OBD_ERROR_CODES_H_
|
||||||
|
|
||||||
|
// this header should not depend on anything - actually chconf.h usually depends on this header
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#include "rusefi_enums.h"
|
// for now I want most enums to be 32 bit integers. At some point maybe we will make the one-byte
|
||||||
|
// this is about offsets and sizes in TunerStudio
|
||||||
|
#define ENUM_32_BITS 2000000000
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
//P0001 Fuel Volume Regulator Control Circuit/Open
|
//P0001 Fuel Volume Regulator Control Circuit/Open
|
||||||
|
|
|
@ -12,10 +12,7 @@
|
||||||
#define RUSEFI_ENUMS_H_
|
#define RUSEFI_ENUMS_H_
|
||||||
|
|
||||||
#include "efifeatures.h"
|
#include "efifeatures.h"
|
||||||
|
#include "obd_error_codes.h"
|
||||||
// for now I want most enums to be 32 bit integers. At some point maybe we will make the one-byte
|
|
||||||
// this is about offsets and sizes in TunerStudio
|
|
||||||
#define ENUM_32_BITS 2000000000
|
|
||||||
|
|
||||||
#define HIP_NAME "HIP"
|
#define HIP_NAME "HIP"
|
||||||
#define TACH_NAME "tach"
|
#define TACH_NAME "tach"
|
||||||
|
|
Loading…
Reference in New Issue