mirror of
https://jihulab.com/mr-one/openpilot.git
synced 2026-10-27 21:13:42 +08:00
16 lines
596 B
C
16 lines
596 B
C
#pragma once
|
|
|
|
// ******************** Prototypes ********************
|
|
void print(const char *a){ UNUSED(a); }
|
|
void puth(unsigned int i){ UNUSED(i); }
|
|
static void hexdump(const void *a, int l){ UNUSED(a); UNUSED(l); }
|
|
__attribute__((unused)) static void puth4(unsigned int i){ UNUSED(i); }
|
|
typedef struct board board;
|
|
typedef struct harness_configuration harness_configuration;
|
|
void pwm_init(TIM_TypeDef *TIM, uint8_t channel);
|
|
void pwm_set(TIM_TypeDef *TIM, uint8_t channel, uint8_t percentage);
|
|
|
|
// ********************* Globals **********************
|
|
uint8_t hw_type = 0;
|
|
board *current_board;
|