aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-05-14 09:50:43 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-05-14 09:50:43 +0000
commit0b24320bdd04312d7bbf1d0d464dbc18c46d6244 (patch)
tree7e4e867f9e71e30208bcade5cb4587f541766343
parent7c31ee40a8643ce4df4bb3e86cb5aa995544abb1 (diff)
downloadChibiOS-0b24320bdd04312d7bbf1d0d464dbc18c46d6244.tar.gz
ChibiOS-0b24320bdd04312d7bbf1d0d464dbc18c46d6244.tar.bz2
ChibiOS-0b24320bdd04312d7bbf1d0d464dbc18c46d6244.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1922 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/hal/platforms/STM32/hal_lld.c2
-rw-r--r--os/hal/platforms/STM32/pal_lld.c2
-rw-r--r--os/hal/platforms/STM32/pal_lld.h6
-rw-r--r--readme.txt3
4 files changed, 8 insertions, 5 deletions
diff --git a/os/hal/platforms/STM32/hal_lld.c b/os/hal/platforms/STM32/hal_lld.c
index 25d4b4d57..2a22fcd0b 100644
--- a/os/hal/platforms/STM32/hal_lld.c
+++ b/os/hal/platforms/STM32/hal_lld.c
@@ -42,7 +42,7 @@
* @brief PAL setup.
* @details Digital I/O ports static configuration as defined in @p board.h.
*/
-const STM32GPIOConfig pal_default_config =
+const PALConfig pal_default_config =
{
{VAL_GPIOAODR, VAL_GPIOACRL, VAL_GPIOACRH},
{VAL_GPIOBODR, VAL_GPIOBCRL, VAL_GPIOBCRH},
diff --git a/os/hal/platforms/STM32/pal_lld.c b/os/hal/platforms/STM32/pal_lld.c
index 69bd3ecab..4ddb13359 100644
--- a/os/hal/platforms/STM32/pal_lld.c
+++ b/os/hal/platforms/STM32/pal_lld.c
@@ -82,7 +82,7 @@
*
* @param[in] config the STM32 ports configuration
*/
-void _pal_lld_init(const STM32GPIOConfig *config) {
+void _pal_lld_init(const PALConfig *config) {
/*
* Enables the GPIO related clocks.
diff --git a/os/hal/platforms/STM32/pal_lld.h b/os/hal/platforms/STM32/pal_lld.h
index fb276877d..a299bce70 100644
--- a/os/hal/platforms/STM32/pal_lld.h
+++ b/os/hal/platforms/STM32/pal_lld.h
@@ -86,7 +86,7 @@ typedef struct {
/** @brief Port G setup data.*/
stm32_gpio_setup_t PGData;
#endif
-} STM32GPIOConfig;
+} PALConfig;
/**
* @brief Width, in bits, of an I/O port.
@@ -289,12 +289,12 @@ typedef GPIO_TypeDef * ioportid_t;
*/
#define pal_lld_writepad(port, pad, bit) pal_lld_writegroup(port, 1, pad, bit)
-extern const STM32GPIOConfig pal_default_config;
+extern const PALConfig pal_default_config;
#ifdef __cplusplus
extern "C" {
#endif
- void _pal_lld_init(const STM32GPIOConfig *config);
+ void _pal_lld_init(const PALConfig *config);
void _pal_lld_setgroupmode(ioportid_t port,
ioportmask_t mask,
uint_fast8_t mode);
diff --git a/readme.txt b/readme.txt
index 754e53dfd..0691c8588 100644
--- a/readme.txt
+++ b/readme.txt
@@ -70,6 +70,9 @@
in the board.h file, there is no more the need to put -DSTM32F10X_xx into
the makefile.
- NEW: Added the palSetBusMode() capability to the STM8 PAL driver.
+- CHANGE: Renamed the STM32 and STM8 PAL configuration structures to
+ PALConfig, it is better to have the same name for this structure in
+ all ports.
- Tested the STM8 port with the latest RKit-STM8_2.28.10.0092. It works but
the new compiler shows a general performance regression except in one
test case.