lots of code copied over, things filled in to hopefully get the LED matrix lighting up. untested.
20 lines
301 B
C
20 lines
301 B
C
/*
|
|
*
|
|
*/
|
|
|
|
#ifndef __APP_COMMS_SPI_MASTER_H
|
|
#define __APP_COMMS_SPI_MASTER_H
|
|
|
|
|
|
#include "ch32x035_conf.h"
|
|
|
|
|
|
|
|
void spim_init();
|
|
|
|
void spim_write_reg8(uint8_t reg, const uint8_t *data, uint16_t len);
|
|
void spim_read_reg8(uint8_t reg, uint8_t *data, uint16_t len);
|
|
|
|
|
|
|
|
#endif /* __APP_COMMS_SPI_MASTER_H */ |