mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-30 21:12:55 +08:00
67567af959
* turn ucg into submodule * update ucg to 1.5.2 * add license note to doc * align docs with esp32 * move ucg hal into platform folder adapt examples
18 lines
344 B
C
18 lines
344 B
C
|
|
#ifndef _UCG_NODEMCU_HAL_H
|
|
#define _UCG_NODEMCU_HAL_H
|
|
|
|
#include "ucg.h"
|
|
|
|
|
|
// extend standard ucg_t struct with info that's needed in the communication callbacks
|
|
typedef struct {
|
|
ucg_t ucg;
|
|
void *hal;
|
|
} ucg_nodemcu_t;
|
|
|
|
|
|
int16_t ucg_com_nodemcu_hw_spi(ucg_t *ucg, int16_t msg, uint16_t arg, uint8_t *data);
|
|
|
|
#endif /* _UCG_NODEMCU_HAL_H */
|