projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hx8347 lcd driver: missing BV() in PMC enable setting (ouch!)
[bertos.git]
/
boards
/
sam3x-ek
/
hw
/
hw_hx8347.h
diff --git
a/boards/sam3x-ek/hw/hw_hx8347.h
b/boards/sam3x-ek/hw/hw_hx8347.h
index 541f284926cfed89ff86354cfa48c09eca1626a0..72ff0154740f8db2023ca45e8ad98bd9b9c62874 100644
(file)
--- a/
boards/sam3x-ek/hw/hw_hx8347.h
+++ b/
boards/sam3x-ek/hw/hw_hx8347.h
@@
-46,6
+46,7
@@
#include "cfg/macros.h"
#include <io/sam3.h>
#include "cfg/macros.h"
#include <io/sam3.h>
+#include <drv/timer.h>
/*
/*
@@
-137,7
+138,7
@@
INLINE void hx8347_busInit(void)
PIO_PERIPH_SEL(LCD_RS_PORT, LCD_RS_PIN, LCD_RS_PERIPH);
// Enable peripheral clock
PIO_PERIPH_SEL(LCD_RS_PORT, LCD_RS_PIN, LCD_RS_PERIPH);
// Enable peripheral clock
- PMC_PCER =
SMC_SDRAMC_ID
;
+ PMC_PCER =
BV(SMC_SDRAMC_ID)
;
// Static memory controller configuration
SMC_SETUP2 =
// Static memory controller configuration
SMC_SETUP2 =