thunder 2.0.0.0

Topics

 MikroBUS
 
 Error Code
 
 Possible device addresses
 
 Register addresses
 
 Options for Config 0 register
 
 Options for Config 1 register
 
 Options for Config 2 register
 
 Options for Config 3 register
 
 Options for Interrupt pin (IRQ) config register
 
 Reset and RCO calibrate commands
 

Macros

#define THUNDER_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define THUNDER_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.

Macro Definition Documentation

◆ THUNDER_SET_DATA_SAMPLE_EDGE

#define THUNDER_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE

Data sample selection.

This macro sets data samples for SPI modules.

Note
Available only on Microchip PIC family devices. This macro will set data sampling for all SPI modules on MCU. Can be overwritten with thunder_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ THUNDER_SET_DATA_SAMPLE_MIDDLE

#define THUNDER_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE