Loading...
Searching...
No Matches
msp430_regs.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015 Freie Universität Berlin
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
23#ifndef X1XX_MSP430_REGS_H
24#define X1XX_MSP430_REGS_H
25
26#include <stdint.h>
27
28#include "msp430_regs_common.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
37typedef struct {
38 msp430_port_t base;
39 REG8 IFG;
40 REG8 IES;
41 REG8 IE;
42 REG8 SEL;
44
58
70typedef struct {
72 const uint8_t _pad1;
74 const uint8_t _pad2;
77
87#define UXTCTL_SSEL_UCLKI 0
88#define UXTCTL_SSEL_ACLK SSEL0
89#define UXTCTL_SSEL_SMCLK SSEL1
90#define UXTCTL_SSEL_MASK (SSEL0 | SSEL1)
119#ifdef __cplusplus
120}
121#endif
122
123#endif /* X1XX_MSP430_REGS_H */
#define REG8
Register types.
Cortex CMSIS style definition of MSP430 registers.
GPIO Port 1/2 (with interrupt functionality)
Definition msp430_regs.h:63
Common MSP GPIO Port Registers.
USART Special Function Registers (SFR)
Definition msp430_regs.h:70
const uint8_t _pad2
Padding.
Definition msp430_regs.h:74
REG8 IE
USART Interrupt Enable Register.
Definition msp430_regs.h:71
const uint8_t _pad1
Padding.
Definition msp430_regs.h:72
REG8 ME
Module Enable Register.
Definition msp430_regs.h:75
REG8 IFG
USART Interrupt Flag Register.
Definition msp430_regs.h:73
USART (UART, SPI and I2C) Registers.
Definition msp430_regs.h:48
REG8 TCTL
transmit control
Definition msp430_regs.h:50
REG8 RXBUF
receive buffer
Definition msp430_regs.h:55
REG8 CTL
USART control.
Definition msp430_regs.h:49
REG8 BR0
baud rate control 0
Definition msp430_regs.h:53
REG8 TXBUF
transmit buffer
Definition msp430_regs.h:56
REG8 MCTL
modulation control
Definition msp430_regs.h:52
REG8 RCTL
receive control
Definition msp430_regs.h:51
REG8 BR1
baud rate control 1
Definition msp430_regs.h:54
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.