Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
fwatch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
fwatch
Commits
009d1cae
Commit
009d1cae
authored
Sep 27, 2014
by
Matthieu Cattin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: Make altimeter test work with dma lcd.
parent
3016fb9b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
6 deletions
+20
-6
Makefile
sw/alti_test/Makefile
+7
-3
main.c
sw/alti_test/main.c
+11
-3
lcd.h
sw/common/drivers/lcd.h
+2
-0
No files found.
sw/alti_test/Makefile
View file @
009d1cae
...
...
@@ -133,7 +133,7 @@ INCLUDEPATHS += \
-I../common/Device/EnergyMicro/EFM32GG/Include
\
-I../common/emlib/inc
\
-I../common/drivers
\
-I../common/g
lib
\
-I../common/g
fx
\
-I../common
####################################################################
...
...
@@ -142,9 +142,12 @@ INCLUDEPATHS += \
C_SRC
+=
\
../common/Device/EnergyMicro/EFM32GG/Source/system_efm32gg.c
\
../common/drivers/dmactrl.c
\
../common/drivers/lcd.c
\
../common/drivers/lcd_dma.c
\
../common/emlib/src/em_assert.c
\
../common/emlib/src/em_cmu.c
\
../common/emlib/src/em_dma.c
\
../common/emlib/src/em_emu.c
\
../common/emlib/src/em_gpio.c
\
../common/emlib/src/em_i2c.c
\
...
...
@@ -152,17 +155,18 @@ C_SRC += \
../common/emlib/src/em_system.c
\
../common/emlib/src/em_rtc.c
\
../common/emlib/src/em_usart.c
\
../common/emlib/src/em_timer.c
\
../common/gfx/graphics.c
\
../common/gfx/font_helv11.c
\
../common/gfx/font_helv17.c
\
../common/gfx/font_helv17b.c
\
../common/gfx/font_xm4x5.c
\
../common/gfx/font_xm4x6.c
\
../common/udelay.c
\
../common/delay.c
\
../common/drivers/i2cdrv.c
\
../common/drivers/altimeter.c
\
main.c
main.c
\
#../common/udelay.c
\
#../common/drivers/display.c
\
#../common/drivers/displayls013b7dh03.c
\
#../common/drivers/displaypalemlib.c
\
...
...
sw/alti_test/main.c
View file @
009d1cae
...
...
@@ -28,6 +28,7 @@
#include <math.h>
#include <delay.h>
#include <i2cdrv.h>
#include <em_chip.h>
#include <em_device.h>
#include <em_cmu.h>
#include <em_gpio.h>
...
...
@@ -54,6 +55,12 @@ int main(void)
/* Setup SysTick Timer for 1 msec interrupts */
if
(
SysTick_Config
(
CMU_ClockFreqGet
(
cmuClock_CORE
)
/
1000
))
while
(
1
);
// Just in case something goes wrong
Delay
(
200
);
// Chip errata
CHIP_Init
();
CMU_ClockEnable
(
cmuClock_HFPER
,
true
);
CMU_ClockEnable
(
cmuClock_GPIO
,
true
);
...
...
@@ -62,6 +69,7 @@ int main(void)
GPIO_PinModeSet
(
gpioPortE
,
12
,
gpioModePushPull
,
0
);
lcd_init
();
lcd_clear
();
I2CDRV_Init
(
&
i2cInit
);
...
...
@@ -86,9 +94,9 @@ int main(void)
//sprintf(str, "err: 0x%02x", err);
//text(&font_helv11, 5, 50, str);
lcd_update
();
//
Delay(1000);
box
(
5
,
10
,
128
,
50
,
0
);
//
lcd_clear();
Delay
(
1000
);
//
box(5, 10, 128, 50, 0);
lcd_clear
();
}
...
...
sw/common/drivers/lcd.h
View file @
009d1cae
...
...
@@ -38,6 +38,8 @@
extern
xSemaphoreHandle
lcd_sem
;
#endif
/* FREERTOS */
//#define LCD_NODMA
// Dimensions
#define LCD_HEIGHT 128
#define LCD_WIDTH 128
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment