Loading...
Searching...
No Matches
msp430_regs.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
21
22#include <stdint.h>
23
24#include "msp430_regs_common.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
33typedef struct {
34 msp430_port_t base;
35 REG8 IFG;
36 REG8 IES;
37 REG8 IE;
38 REG8 SEL;
40
54
66typedef struct {
68 const uint8_t _pad1;
70 const uint8_t _pad2;
73
83#define UXTCTL_SSEL_UCLKI 0
84#define UXTCTL_SSEL_ACLK SSEL0
85#define UXTCTL_SSEL_SMCLK SSEL1
86#define UXTCTL_SSEL_MASK (SSEL0 | SSEL1)
88
114
115#ifdef __cplusplus
116}
117#endif
118
#define REG8
Register types.
Cortex CMSIS style definition of MSP430 registers.
GPIO Port 1/2 (with interrupt functionality)
Definition msp430_regs.h:59
Common MSP GPIO Port Registers.
USART Special Function Registers (SFR)
Definition msp430_regs.h:66
const uint8_t _pad2
Padding.
Definition msp430_regs.h:70
REG8 IE
USART Interrupt Enable Register.
Definition msp430_regs.h:67
const uint8_t _pad1
Padding.
Definition msp430_regs.h:68
REG8 ME
Module Enable Register.
Definition msp430_regs.h:71
REG8 IFG
USART Interrupt Flag Register.
Definition msp430_regs.h:69
USART (UART, SPI and I2C) Registers.
Definition msp430_regs.h:44
REG8 TCTL
transmit control
Definition msp430_regs.h:46
REG8 RXBUF
receive buffer
Definition msp430_regs.h:51
REG8 CTL
USART control.
Definition msp430_regs.h:45
REG8 BR0
baud rate control 0
Definition msp430_regs.h:49
REG8 TXBUF
transmit buffer
Definition msp430_regs.h:52
REG8 MCTL
modulation control
Definition msp430_regs.h:48
REG8 RCTL
receive control
Definition msp430_regs.h:47
REG8 BR1
baud rate control 1
Definition msp430_regs.h:50
msp430_usart_sfr_t USART_1_SFR
USART 1 SFR register map.
msp430_usart_t USART_1
USART 1 register map.
msp430_usart_t USART_0
USART 0 register map.
msp430_usart_sfr_t USART_0_SFR
USART 0 SFR register map.