boards changes
This commit is contained in:
20
ChangeLog
20
ChangeLog
@@ -1,5 +1,25 @@
|
|||||||
2012-05-25 Niibe Yutaka <gniibe@fsij.org>
|
2012-05-25 Niibe Yutaka <gniibe@fsij.org>
|
||||||
|
|
||||||
|
* boards/OLIMEX_STM32_H103/board.h (SET_USB_CONDITION)
|
||||||
|
(SET_LED_CONDITION, GPIO_LED, IOPORT_LED, FLASH_PAGE_SIZE): New.
|
||||||
|
* boards/OLIMEX_STM32_H103/board.c (USB_Cable_Config, set_led):
|
||||||
|
Remove.
|
||||||
|
|
||||||
|
* boards/STM32_PRIMER2/board.h (SET_USB_CONDITION)
|
||||||
|
(SET_LED_CONDITION, GPIO_LED, IOPORT_LED, FLASH_PAGE_SIZE): New.
|
||||||
|
* boards/STM32_PRIMER2/board.c (USB_Cable_Config, set_led):
|
||||||
|
Remove.
|
||||||
|
|
||||||
|
* boards/FST_01_00/board.h (SET_USB_CONDITION)
|
||||||
|
(SET_LED_CONDITION, GPIO_LED, IOPORT_LED, FLASH_PAGE_SIZE): New.
|
||||||
|
* boards/FST_01_00/board.c (USB_Cable_Config, set_led): Remove.
|
||||||
|
|
||||||
|
* boards/FST_01/board.h (SET_USB_CONDITION)
|
||||||
|
(SET_LED_CONDITION, GPIO_LED, IOPORT_LED, FLASH_PAGE_SIZE): New.
|
||||||
|
* boards/FST_01/board.c (USB_Cable_Config, set_led): Remove.
|
||||||
|
|
||||||
|
* regnual/sys-stm8s-discovery.h, sys-stbee.h: Remove.
|
||||||
|
|
||||||
* boards/STM8S_DISCOVERY/board.h (SET_USB_CONDITION)
|
* boards/STM8S_DISCOVERY/board.h (SET_USB_CONDITION)
|
||||||
(SET_LED_CONDITION, GPIO_LED, IOPORT_LED, FLASH_PAGE_SIZE): New.
|
(SET_LED_CONDITION, GPIO_LED, IOPORT_LED, FLASH_PAGE_SIZE): New.
|
||||||
* boards/STM8S_DISCOVERY/board.c (USB_Cable_Config, set_led):
|
* boards/STM8S_DISCOVERY/board.c (USB_Cable_Config, set_led):
|
||||||
|
|||||||
@@ -30,6 +30,13 @@
|
|||||||
/*
|
/*
|
||||||
* Setup for the FST-01 board.
|
* Setup for the FST-01 board.
|
||||||
*/
|
*/
|
||||||
|
#define SET_USB_CONDITION(en) en /* To connect USB, call palSetPad */
|
||||||
|
#define SET_LED_CONDITION(on) on /* To emit light, call palSetPad */
|
||||||
|
#define GPIO_USB GPIOA_USB_ENABLE
|
||||||
|
#define IOPORT_USB GPIOA
|
||||||
|
#define GPIO_LED GPIOB_LED
|
||||||
|
#define IOPORT_LED GPIOB
|
||||||
|
#define FLASH_PAGE_SIZE 1024
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Board identifier.
|
* Board identifier.
|
||||||
|
|||||||
@@ -15,22 +15,3 @@ hwinit1 (void)
|
|||||||
{
|
{
|
||||||
hwinit1_common ();
|
hwinit1_common ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
USB_Cable_Config (int NewState)
|
|
||||||
{
|
|
||||||
if (NewState != DISABLE)
|
|
||||||
palSetPad (IOPORT1, GPIOA_USB_ENABLE);
|
|
||||||
else
|
|
||||||
palClearPad (IOPORT1, GPIOA_USB_ENABLE);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
set_led (int value)
|
|
||||||
{
|
|
||||||
if (value)
|
|
||||||
palSetPad (IOPORT1, GPIOA_LED);
|
|
||||||
else
|
|
||||||
palClearPad (IOPORT1, GPIOA_LED);
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -30,6 +30,13 @@
|
|||||||
/*
|
/*
|
||||||
* Setup for the FST-01 board (experimental version 00).
|
* Setup for the FST-01 board (experimental version 00).
|
||||||
*/
|
*/
|
||||||
|
#define SET_USB_CONDITION(en) en /* To connect USB, call palSetPad */
|
||||||
|
#define SET_LED_CONDITION(on) on /* To emit light, call palSetPad */
|
||||||
|
#define GPIO_USB GPIOA_USB_ENABLE
|
||||||
|
#define IOPORT_USB GPIOA
|
||||||
|
#define GPIO_LED GPIOA_LED
|
||||||
|
#define IOPORT_LED GPIOA
|
||||||
|
#define FLASH_PAGE_SIZE 1024
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Board identifier.
|
* Board identifier.
|
||||||
|
|||||||
@@ -15,21 +15,3 @@ hwinit1 (void)
|
|||||||
{
|
{
|
||||||
hwinit1_common ();
|
hwinit1_common ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
USB_Cable_Config (FunctionalState NewState)
|
|
||||||
{
|
|
||||||
if (NewState != DISABLE)
|
|
||||||
palClearPad (IOPORT3, GPIOC_DISC);
|
|
||||||
else
|
|
||||||
palSetPad (IOPORT3, GPIOC_DISC);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
set_led (int value)
|
|
||||||
{
|
|
||||||
if (value)
|
|
||||||
palClearPad (IOPORT3, GPIOC_LED);
|
|
||||||
else
|
|
||||||
palSetPad (IOPORT3, GPIOC_LED);
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -30,6 +30,13 @@
|
|||||||
/*
|
/*
|
||||||
* Setup for the Olimex STM32-H103 proto board.
|
* Setup for the Olimex STM32-H103 proto board.
|
||||||
*/
|
*/
|
||||||
|
#define SET_USB_CONDITION(en) (!en) /* To connect USB, call palClearPad */
|
||||||
|
#define SET_LED_CONDITION(on) (!on) /* To emit light, call palClearPad */
|
||||||
|
#define GPIO_USB GPIOC_DISC
|
||||||
|
#define IOPORT_USB GPIOC
|
||||||
|
#define GPIO_LED GPIOC_LED
|
||||||
|
#define IOPORT_LED GPIOC
|
||||||
|
#define FLASH_PAGE_SIZE 1024
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Board identifier.
|
* Board identifier.
|
||||||
|
|||||||
@@ -21,21 +21,3 @@ hwinit1(void)
|
|||||||
palClearPad (IOPORT5, GPIOE_LED);
|
palClearPad (IOPORT5, GPIOE_LED);
|
||||||
palClearPad (IOPORT3, GPIOC_SHUTDOWN);
|
palClearPad (IOPORT3, GPIOC_SHUTDOWN);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
USB_Cable_Config (FunctionalState NewState)
|
|
||||||
{
|
|
||||||
if (NewState != DISABLE)
|
|
||||||
palClearPad (IOPORT4, GPIOD_DISC);
|
|
||||||
else
|
|
||||||
palSetPad (IOPORT4, GPIOD_DISC);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
set_led (int value)
|
|
||||||
{
|
|
||||||
if (value)
|
|
||||||
palClearPad (IOPORT5, GPIOE_LEDR);
|
|
||||||
else
|
|
||||||
palSetPad (IOPORT5, GPIOE_LEDR);
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -30,6 +30,13 @@
|
|||||||
/*
|
/*
|
||||||
* Setup for the STM32 Primer2.
|
* Setup for the STM32 Primer2.
|
||||||
*/
|
*/
|
||||||
|
#define SET_USB_CONDITION(en) (!en) /* To connect USB, call palClearPad */
|
||||||
|
#define SET_LED_CONDITION(on) (!on) /* To emit light, call palClearPad */
|
||||||
|
#define GPIO_USB GPIOD_DISC
|
||||||
|
#define IOPORT_USB GPIOD
|
||||||
|
#define GPIO_LED GPIOE_LEDR
|
||||||
|
#define IOPORT_LED GPIOE
|
||||||
|
#define FLASH_PAGE_SIZE 2048
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Board identifier.
|
* Board identifier.
|
||||||
|
|||||||
Reference in New Issue
Block a user