From 6852bc65a8694f9f6b7bfe17678d4a1925b78c00 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Fri, 1 May 2020 12:50:24 -0700 Subject: [PATCH] Split JD from generic files --- {src => jd}/acc.c | 0 {src => jd}/btn.c | 0 {src => jd}/crank.c | 0 {src => jd}/crc.c | 0 {src => jd}/ctrl.c | 0 {src => jd}/frame.c | 0 {src => jd}/host.c | 0 {src => jd}/host.h | 0 {src => jd}/jdapp.c | 0 {src => jd}/jdprofile.h | 0 {src => jd}/jdservices.h | 0 {src => jd}/jdsimple.h | 0 {src => jd}/light.c | 0 {src => jd}/main.c | 0 {src => jd}/pwm_light.c | 0 {src => jd}/sensor.c | 0 {src => jd}/services.h | 0 {src => jd}/servo.c | 0 {src => jd}/touch.c | 0 {src => jd}/txq.c | 0 {src => lib}/alloc.c | 0 {src => lib}/blhw.h | 0 {src => lib}/dmesg.c | 0 {src => lib}/dmesg.h | 0 {src => lib}/hw.h | 0 {src => lib}/pwr.c | 0 {src => lib}/qma7981.c | 0 {src => lib}/tinyhw.h | 5 +++++ {src => lib}/utils.c | 0 29 files changed, 5 insertions(+) rename {src => jd}/acc.c (100%) rename {src => jd}/btn.c (100%) rename {src => jd}/crank.c (100%) rename {src => jd}/crc.c (100%) rename {src => jd}/ctrl.c (100%) rename {src => jd}/frame.c (100%) rename {src => jd}/host.c (100%) rename {src => jd}/host.h (100%) rename {src => jd}/jdapp.c (100%) rename {src => jd}/jdprofile.h (100%) rename {src => jd}/jdservices.h (100%) rename {src => jd}/jdsimple.h (100%) rename {src => jd}/light.c (100%) rename {src => jd}/main.c (100%) rename {src => jd}/pwm_light.c (100%) rename {src => jd}/sensor.c (100%) rename {src => jd}/services.h (100%) rename {src => jd}/servo.c (100%) rename {src => jd}/touch.c (100%) rename {src => jd}/txq.c (100%) rename {src => lib}/alloc.c (100%) rename {src => lib}/blhw.h (100%) rename {src => lib}/dmesg.c (100%) rename {src => lib}/dmesg.h (100%) rename {src => lib}/hw.h (100%) rename {src => lib}/pwr.c (100%) rename {src => lib}/qma7981.c (100%) rename {src => lib}/tinyhw.h (94%) rename {src => lib}/utils.c (100%) diff --git a/src/acc.c b/jd/acc.c similarity index 100% rename from src/acc.c rename to jd/acc.c diff --git a/src/btn.c b/jd/btn.c similarity index 100% rename from src/btn.c rename to jd/btn.c diff --git a/src/crank.c b/jd/crank.c similarity index 100% rename from src/crank.c rename to jd/crank.c diff --git a/src/crc.c b/jd/crc.c similarity index 100% rename from src/crc.c rename to jd/crc.c diff --git a/src/ctrl.c b/jd/ctrl.c similarity index 100% rename from src/ctrl.c rename to jd/ctrl.c diff --git a/src/frame.c b/jd/frame.c similarity index 100% rename from src/frame.c rename to jd/frame.c diff --git a/src/host.c b/jd/host.c similarity index 100% rename from src/host.c rename to jd/host.c diff --git a/src/host.h b/jd/host.h similarity index 100% rename from src/host.h rename to jd/host.h diff --git a/src/jdapp.c b/jd/jdapp.c similarity index 100% rename from src/jdapp.c rename to jd/jdapp.c diff --git a/src/jdprofile.h b/jd/jdprofile.h similarity index 100% rename from src/jdprofile.h rename to jd/jdprofile.h diff --git a/src/jdservices.h b/jd/jdservices.h similarity index 100% rename from src/jdservices.h rename to jd/jdservices.h diff --git a/src/jdsimple.h b/jd/jdsimple.h similarity index 100% rename from src/jdsimple.h rename to jd/jdsimple.h diff --git a/src/light.c b/jd/light.c similarity index 100% rename from src/light.c rename to jd/light.c diff --git a/src/main.c b/jd/main.c similarity index 100% rename from src/main.c rename to jd/main.c diff --git a/src/pwm_light.c b/jd/pwm_light.c similarity index 100% rename from src/pwm_light.c rename to jd/pwm_light.c diff --git a/src/sensor.c b/jd/sensor.c similarity index 100% rename from src/sensor.c rename to jd/sensor.c diff --git a/src/services.h b/jd/services.h similarity index 100% rename from src/services.h rename to jd/services.h diff --git a/src/servo.c b/jd/servo.c similarity index 100% rename from src/servo.c rename to jd/servo.c diff --git a/src/touch.c b/jd/touch.c similarity index 100% rename from src/touch.c rename to jd/touch.c diff --git a/src/txq.c b/jd/txq.c similarity index 100% rename from src/txq.c rename to jd/txq.c diff --git a/src/alloc.c b/lib/alloc.c similarity index 100% rename from src/alloc.c rename to lib/alloc.c diff --git a/src/blhw.h b/lib/blhw.h similarity index 100% rename from src/blhw.h rename to lib/blhw.h diff --git a/src/dmesg.c b/lib/dmesg.c similarity index 100% rename from src/dmesg.c rename to lib/dmesg.c diff --git a/src/dmesg.h b/lib/dmesg.h similarity index 100% rename from src/dmesg.h rename to lib/dmesg.h diff --git a/src/hw.h b/lib/hw.h similarity index 100% rename from src/hw.h rename to lib/hw.h diff --git a/src/pwr.c b/lib/pwr.c similarity index 100% rename from src/pwr.c rename to lib/pwr.c diff --git a/src/qma7981.c b/lib/qma7981.c similarity index 100% rename from src/qma7981.c rename to lib/qma7981.c diff --git a/src/tinyhw.h b/lib/tinyhw.h similarity index 94% rename from src/tinyhw.h rename to lib/tinyhw.h index 72be40e..483054d 100644 --- a/src/tinyhw.h +++ b/lib/tinyhw.h @@ -48,6 +48,11 @@ void pwm_enable(uint8_t pwm_id, bool enabled); void bspi_send(const void *src, uint32_t len); void bspi_recv(void *dst, uint32_t len); +// display.c +void disp_show(uint8_t *img); +void disp_refresh(void); +int disp_light_level(void); + // target_utils.c void target_reset(void); RAM_FUNC diff --git a/src/utils.c b/lib/utils.c similarity index 100% rename from src/utils.c rename to lib/utils.c