USB and TLE8888 not working for F4 or F767 #764

This commit is contained in:
rusefi 2019-04-19 13:57:40 -04:00
parent d4137ed1b9
commit e4bb98b779
3 changed files with 13 additions and 7 deletions

View File

@ -34,6 +34,10 @@
#define _CHIBIOS_RT_CONF_
#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
* rusEfi do not override these defaults.
@ -58,12 +62,12 @@
#define EFI_CLOCK_LOCKS FALSE
#endif /* EFI_CLOCK_LOCKS */
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#ifndef __ASSEMBLER__
void firmwareError(obd_code_e code, const char *fmt, ...);
#if EFI_CLOCK_LOCKS
void irqEnterHook(void);
void irqExitHook(void);
@ -806,10 +810,11 @@ void chDbgPanic3(const char *msg, const char * file, int line);
#endif
#define chDbgAssert(c, remark) do { \
#define chDbgAssert(c, remark) do { \
if (CH_DBG_ENABLE_ASSERTS != FALSE) { \
if (!(c)) { \
/*lint -restore*/ \
firmwareError(OBD_PCM_Processor_Fault, "chDbg %s", remark); \
chSysHalt(remark); \
} \
} \

View File

@ -11,12 +11,16 @@
#ifndef 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
extern "C"
{
#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 {
//P0001 Fuel Volume Regulator Control Circuit/Open

View File

@ -12,10 +12,7 @@
#define RUSEFI_ENUMS_H_
#include "efifeatures.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
#include "obd_error_codes.h"
#define HIP_NAME "HIP"
#define TACH_NAME "tach"