1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/cpu/msp430/ldscripts/msp430_common.ld
Marian Buschsieweke 7044699388
cpu/msp430: improve periph_timer
- add support for multiple timers
- add support for selecting clock source in the board's `periph_conf.h`
- add support for the prescaler
- implement `periph_timer_query_freqs`
- add a second timer to all MSP430 boards
    - the first timer is fast ticking, high-power
    - the second is slow ticking, low-power
2023-12-10 09:11:23 +01:00

39 lines
1.0 KiB
Plaintext

/*
* Copyright (C) 2021 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
SECTIONS
{
/* Populate information about rom size */
_srom = ORIGIN(ROM);
_erom = ORIGIN(ROM) + LENGTH(ROM);
.flash_writable (NOLOAD) : {
KEEP(*(SORT(.flash_writable.*)))
} > ROM
.end_fw (NOLOAD) : ALIGN(4) {
_end_fw = . ;
} > ROM
}
/* provide address for register maps by taking the address of the first
* register (as provided by the vendor files) */
PROVIDE(PORT_1 = P1IN);
PROVIDE(PORT_2 = P2IN);
PROVIDE(PORT_3 = P3IN);
PROVIDE(PORT_3 = P3IN);
PROVIDE(PORT_4 = P4IN);
PROVIDE(PORT_5 = P5IN);
PROVIDE(PORT_6 = P6IN);
PROVIDE(TIMER_A = TACTL);
PROVIDE(TIMER_B = TBCTL);
PROVIDE(TIMER_A_IRQFLAGS = TAIV);
PROVIDE(TIMER_B_IRQFLAGS = TBIV);