aef6f4ae09
The QuickFeather board added as an initial target. These featrues are minimally implemented: * Clock Configuration -- All clocking registers are defined and configuration is used to setup the HSO, M4 Core, and M4 Perif clocks. Additionally some clock debugging is stubbed for bringing out clock paths to IO pins. * UART -- The lowputc as well as the serial driver is implemnted for the single UART device. Currently the configuration is hard coded, but uses the proper interfaces to later fill in. * SysTick -- The system tick timer is implemented and clocking properly. Tickless mode is not yet implemented. * Interrupts -- The interrupt system is implemented and verified using the UART and SysTick systems. * GPIO -- GPIO and IOMUX systems are defined and implemented. This is verified using the UART as well as the Arch LED system. The GPIO interupt system is stubbed out but not implemented. * Arch LEDS -- The blue LED as part of the RGB LED is configured and attached to the Arch LED system. This indicates the device coming online as well as when a hardfault is triggered. Applications and Testing: * There is a nsh configuration implemented that includes debug features as well as the ostest, getprime, and mem test. All of these have been run and verified. Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
43 lines
1.8 KiB
C
43 lines
1.8 KiB
C
/****************************************************************************
|
|
* arch/arm/src/eoss3/chip.h
|
|
*
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
* this work for additional information regarding copyright ownership. The
|
|
* ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
* "License"); you may not use this file except in compliance with the
|
|
* License. You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
* License for the specific language governing permissions and limitations
|
|
* under the License.
|
|
*
|
|
****************************************************************************/
|
|
|
|
#ifndef __ARCH_ARM_INCLUDE_EFM32_CHIP_H
|
|
#define __ARCH_ARM_INCLUDE_EFM32_CHIP_H
|
|
|
|
/****************************************************************************
|
|
* Included Files
|
|
****************************************************************************/
|
|
|
|
#include <nuttx/config.h>
|
|
|
|
/****************************************************************************
|
|
* Pre-processor Definitions
|
|
****************************************************************************/
|
|
|
|
/* EOS S3 Support 8 Levels of priority.
|
|
* May need to revisit the masking here
|
|
*/
|
|
|
|
#define NVIC_SYSH_PRIORITY_MIN 0xe0 /* Bits [7:5] set in min priority */
|
|
#define NVIC_SYSH_PRIORITY_DEFAULT 0x80 /* Midpoint is the default */
|
|
#define NVIC_SYSH_PRIORITY_MAX 0x00 /* Zero is maximum priority */
|
|
#define NVIC_SYSH_PRIORITY_STEP 0x20 /* Three bits of interrupt pri used */
|
|
|
|
#endif /* __ARCH_ARM_INCLUDE_EFM32_CHIP_H */ |