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
9#pragma once
10
24
25#include <stdint.h>
26
27#include "msp430_regs_common.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
36typedef struct {
37 msp430_port_t base;
38 REG8 IFG;
39 REG8 IES;
40 REG8 IE;
41 REG8 SEL;
43
57
69typedef struct {
71 const uint8_t _pad1;
73 const uint8_t _pad2;
76
86#define UXTCTL_SSEL_UCLKI 0
87#define UXTCTL_SSEL_ACLK SSEL0
88#define UXTCTL_SSEL_SMCLK SSEL1
89#define UXTCTL_SSEL_MASK (SSEL0 | SSEL1)
91
117
118#ifdef __cplusplus
119}
120#endif
121
#define REG8
Register types.
Cortex CMSIS style definition of MSP430 registers.
GPIO Port 1/2 (with interrupt functionality)
Definition msp430_regs.h:62
Common MSP GPIO Port Registers.
USART Special Function Registers (SFR)
Definition msp430_regs.h:69
const uint8_t _pad2
Padding.
Definition msp430_regs.h:73
REG8 IE
USART Interrupt Enable Register.
Definition msp430_regs.h:70
const uint8_t _pad1
Padding.
Definition msp430_regs.h:71
REG8 ME
Module Enable Register.
Definition msp430_regs.h:74
REG8 IFG
USART Interrupt Flag Register.
Definition msp430_regs.h:72
USART (UART, SPI and I2C) Registers.
Definition msp430_regs.h:47
REG8 TCTL
transmit control
Definition msp430_regs.h:49
REG8 RXBUF
receive buffer
Definition msp430_regs.h:54
REG8 CTL
USART control.
Definition msp430_regs.h:48
REG8 BR0
baud rate control 0
Definition msp430_regs.h:52
REG8 TXBUF
transmit buffer
Definition msp430_regs.h:55
REG8 MCTL
modulation control
Definition msp430_regs.h:51
REG8 RCTL
receive control
Definition msp430_regs.h:50
REG8 BR1
baud rate control 1
Definition msp430_regs.h:53
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.