initial WIP
lots of code copied over, things filled in to hopefully get the LED matrix lighting up. untested.
This commit is contained in:
20
firmware/app/comms/spi_master.h
Normal file
20
firmware/app/comms/spi_master.h
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
*
|
||||
*/
|
||||
|
||||
#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 */
|
||||
Reference in New Issue
Block a user