* Updated GPIO added gpio_toggle() function.
* Fixed ROM to RAM Linker script (libopencm3_lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld).
This commit is contained in:
parent
397af25401
commit
81317c02ab
@ -155,5 +155,6 @@
|
|||||||
|
|
||||||
void gpio_set(u32 gpioport, u32 gpios);
|
void gpio_set(u32 gpioport, u32 gpios);
|
||||||
void gpio_clear(u32 gpioport, u32 gpios);
|
void gpio_clear(u32 gpioport, u32 gpios);
|
||||||
|
void gpio_toggle(u32 gpioport, u32 gpios);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -28,3 +28,8 @@ void gpio_clear(u32 gpioport, u32 gpios)
|
|||||||
{
|
{
|
||||||
GPIO_CLR(gpioport) = gpios;
|
GPIO_CLR(gpioport) = gpios;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void gpio_toggle(u32 gpioport, u32 gpios)
|
||||||
|
{
|
||||||
|
GPIO_NOT(gpioport) = gpios;
|
||||||
|
}
|
@ -36,7 +36,7 @@ SECTIONS
|
|||||||
|
|
||||||
.text : {
|
.text : {
|
||||||
. = ALIGN(0x400);
|
. = ALIGN(0x400);
|
||||||
_text_ram = . + ORIGIN(ram); /* Start of Code in RAM */
|
_text_ram = (. - ORIGIN(rom)) + ORIGIN(ram); /* Start of Code in RAM */
|
||||||
|
|
||||||
*(.vectors) /* Vector table */
|
*(.vectors) /* Vector table */
|
||||||
*(.text*) /* Program code */
|
*(.text*) /* Program code */
|
||||||
@ -53,8 +53,8 @@ SECTIONS
|
|||||||
__exidx_end = .;
|
__exidx_end = .;
|
||||||
|
|
||||||
_etext = .;
|
_etext = .;
|
||||||
_etext_ram = . + ORIGIN(ram);
|
_etext_ram = (. - ORIGIN(rom)) + ORIGIN(ram);
|
||||||
_etext_rom = . + ORIGIN(rom_flash);
|
_etext_rom = (. - ORIGIN(rom)) + ORIGIN(rom_flash);
|
||||||
|
|
||||||
.data : {
|
.data : {
|
||||||
_data = .;
|
_data = .;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user