2016-10-28 12:08:37 +00:00
|
|
|
# Component makefile for extras/ssd1306
|
|
|
|
|
|
|
|
# expected anyone using ssd1306 driver includes it as 'ssd1306/ssd1306.h'
|
|
|
|
INC_DIRS += $(ssd1306_ROOT)..
|
|
|
|
|
2016-11-28 22:57:22 +00:00
|
|
|
# I2C support is on by default
|
|
|
|
SSD1306_I2C_SUPPORT ?= 1
|
|
|
|
# SPI4 support is on by default
|
|
|
|
SSD1306_SPI4_SUPPORT ?= 1
|
2018-06-05 20:17:26 +00:00
|
|
|
# SPI3 support is on by default
|
|
|
|
SSD1306_SPI3_SUPPORT ?= 1
|
2016-11-28 22:57:22 +00:00
|
|
|
|
2016-10-28 12:08:37 +00:00
|
|
|
# args for passing into compile rule generation
|
2016-11-28 22:57:22 +00:00
|
|
|
ssd1306_SRC_DIR = $(ssd1306_ROOT)
|
|
|
|
|
2018-06-05 20:17:26 +00:00
|
|
|
ssd1306_CFLAGS = -DSSD1306_I2C_SUPPORT=${SSD1306_I2C_SUPPORT} -DSSD1306_SPI4_SUPPORT=${SSD1306_SPI4_SUPPORT} -DSSD1306_SPI3_SUPPORT=${SSD1306_SPI3_SUPPORT} $(CFLAGS)
|
2016-11-28 22:57:22 +00:00
|
|
|
|
2016-10-28 12:08:37 +00:00
|
|
|
|
|
|
|
$(eval $(call component_compile_rules,ssd1306))
|