--- a/maple_mini.h Thu Mar 26 15:13:26 2015 +0000
+++ b/maple_mini.h Thu Mar 26 15:20:54 2015 +0000
@@ -28,19 +28,19 @@
#define GPIO_OUT (0x44444333) /* 0=O/P 1/2=O/P PUSH-PULL O/P 50 MHz */
#define GPIO_IN (0x44444334) /* 0=I/P 1/2=O/P PUSH-PULL O/P 50 MHz */
-inline void
+static inline void
platform_output(void)
{
GPIOA_CRL = GPIO_OUT;
}
-inline void
+static inline void
platform_input(void)
{
GPIOA_CRL = GPIO_IN;
}
-inline void
+static inline void
platform_set_vpp(uint8_t vpp)
{
if (vpp)
@@ -49,7 +49,7 @@
GPIOA_BSRR = (1 << 17);
}
-inline void
+static inline void
platform_set_pgc(uint8_t pgc)
{
if (pgc)
@@ -58,7 +58,7 @@
GPIOA_BSRR = (1 << 18);
}
-inline void
+static inline void
platform_set_pgd(uint8_t pgd)
{
if (pgd)
@@ -67,13 +67,13 @@
GPIOA_BSRR = (1 << 16);
}
-inline uint8_t
+static inline uint8_t
platform_get_pgd(void)
{
return (GPIOA_IDR & 1);
}
-inline void
+static inline void
platform_clock(void)
{
GPIOA_BSRR = (1 << 2);
@@ -85,14 +85,14 @@
__asm__("nop");
}
-inline void
+static inline void
platform_open(void)
{
platform_set_vpp(HIGH); /* RUN */
platform_output();
}
-inline void
+static inline void
platform_close(void)
{
GPIOA_CRL = GPIO_DEFAULT;
--- a/stm32f4-d.h Thu Mar 26 15:13:26 2015 +0000
+++ b/stm32f4-d.h Thu Mar 26 15:20:54 2015 +0000
@@ -29,19 +29,19 @@
#define GPIO_OUT (0x00000015) /* 0=O/P 1/2=O/P */
#define GPIO_IN (0x00000014) /* 0=I/P 1/2=O/P */
-inline void
+static inline void
platform_output(void)
{
GPIOA_MODER = (GPIOA_MODER & GPIO_MASK) | GPIO_OUT;
}
-inline void
+static inline void
platform_input(void)
{
GPIOA_MODER = (GPIOA_MODER & GPIO_MASK) | GPIO_IN;
}
-inline void
+static inline void
platform_set_vpp(uint8_t vpp)
{
if (vpp)
@@ -50,7 +50,7 @@
GPIOA_BSRR = (1 << 17);
}
-inline void
+static inline void
platform_set_pgc(uint8_t pgc)
{
if (pgc)
@@ -59,7 +59,7 @@
GPIOA_BSRR = (1 << 18);
}
-inline void
+static inline void
platform_set_pgd(uint8_t pgd)
{
if (pgd)
@@ -68,13 +68,13 @@
GPIOA_BSRR = (1 << 16);
}
-inline uint8_t
+static inline uint8_t
platform_get_pgd(void)
{
return (GPIOA_IDR & 1);
}
-inline void
+static inline void
platform_clock(void)
{
GPIOA_BSRR = (1 << 2);
@@ -86,7 +86,7 @@
__asm__("nop");
}
-inline void
+static inline void
platform_open(void)
{
platform_set_vpp(HIGH); /* RUN */
@@ -94,7 +94,7 @@
GPIOA_OSPEEDR = (GPIOA_OSPEEDR & GPIO_MASK) | GPIO_SPEED;
}
-inline void
+static inline void
platform_close(void)
{
GPIOA_MODER &= GPIO_MASK;
--- a/vcc-gnd.h Thu Mar 26 15:13:26 2015 +0000
+++ b/vcc-gnd.h Thu Mar 26 15:20:54 2015 +0000
@@ -28,19 +28,19 @@
#define GPIO_OUT (0x44444333) /* 0=O/P 1/2=O/P PUSH-PULL O/P 50 MHz */
#define GPIO_IN (0x44444334) /* 0=I/P 1/2=O/P PUSH-PULL O/P 50 MHz */
-inline void
+static inline void
platform_output(void)
{
GPIOA_CRL = GPIO_OUT;
}
-inline void
+static inline void
platform_input(void)
{
GPIOA_CRL = GPIO_IN;
}
-inline void
+static inline void
platform_set_vpp(uint8_t vpp)
{
if (vpp)
@@ -49,7 +49,7 @@
GPIOA_BSRR = (1 << 17);
}
-inline void
+static inline void
platform_set_pgc(uint8_t pgc)
{
if (pgc)
@@ -58,7 +58,7 @@
GPIOA_BSRR = (1 << 18);
}
-inline void
+static inline void
platform_set_pgd(uint8_t pgd)
{
if (pgd)
@@ -67,13 +67,13 @@
GPIOA_BSRR = (1 << 16);
}
-inline uint8_t
+static inline uint8_t
platform_get_pgd(void)
{
return (GPIOA_IDR & 1);
}
-inline void
+static inline void
platform_clock(void)
{
GPIOA_BSRR = (1 << 2);
@@ -85,14 +85,14 @@
__asm__("nop");
}
-inline void
+static inline void
platform_open(void)
{
platform_set_vpp(HIGH); /* RUN */
platform_output();
}
-inline void
+static inline void
platform_close(void)
{
GPIOA_CRL = GPIO_DEFAULT;