Internal_Datalogger but with USB support removed (for MAX40108 Demo board), proof of concept that MAX32625 can be used successfully with VDDB(USB) left unpowered, as long as the USB library is not used.

Dependencies:   max32625pico CmdLine

Committer:
whismanoid
Date:
Thu May 12 15:49:35 2022 -0700
Revision:
62:a618b70c4f22
Parent:
19:5ff09c8e9daf
L@ Datalogger_RunActionTable() fully support math channels; rephrase comment text

Who changed what in which revision?

UserRevisionLine numberNew contents of line
whismanoid 19:5ff09c8e9daf 1 /*******************************************************************************
whismanoid 19:5ff09c8e9daf 2 * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
whismanoid 19:5ff09c8e9daf 3 *
whismanoid 19:5ff09c8e9daf 4 * Permission is hereby granted, free of charge, to any person obtaining a
whismanoid 19:5ff09c8e9daf 5 * copy of this software and associated documentation files (the "Software"),
whismanoid 19:5ff09c8e9daf 6 * to deal in the Software without restriction, including without limitation
whismanoid 19:5ff09c8e9daf 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
whismanoid 19:5ff09c8e9daf 8 * and/or sell copies of the Software, and to permit persons to whom the
whismanoid 19:5ff09c8e9daf 9 * Software is furnished to do so, subject to the following conditions:
whismanoid 19:5ff09c8e9daf 10 *
whismanoid 19:5ff09c8e9daf 11 * The above copyright notice and this permission notice shall be included
whismanoid 19:5ff09c8e9daf 12 * in all copies or substantial portions of the Software.
whismanoid 19:5ff09c8e9daf 13 *
whismanoid 19:5ff09c8e9daf 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
whismanoid 19:5ff09c8e9daf 15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
whismanoid 19:5ff09c8e9daf 16 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
whismanoid 19:5ff09c8e9daf 17 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
whismanoid 19:5ff09c8e9daf 18 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
whismanoid 19:5ff09c8e9daf 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
whismanoid 19:5ff09c8e9daf 20 * OTHER DEALINGS IN THE SOFTWARE.
whismanoid 19:5ff09c8e9daf 21 *
whismanoid 19:5ff09c8e9daf 22 * Except as contained in this notice, the name of Maxim Integrated
whismanoid 19:5ff09c8e9daf 23 * Products, Inc. shall not be used except as stated in the Maxim Integrated
whismanoid 19:5ff09c8e9daf 24 * Products, Inc. Branding Policy.
whismanoid 19:5ff09c8e9daf 25 *
whismanoid 19:5ff09c8e9daf 26 * The mere transfer of this software does not imply any licenses
whismanoid 19:5ff09c8e9daf 27 * of trade secrets, proprietary technology, copyrights, patents,
whismanoid 19:5ff09c8e9daf 28 * trademarks, maskwork rights, or any other form of intellectual
whismanoid 19:5ff09c8e9daf 29 * property whatsoever. Maxim Integrated Products, Inc. retains all
whismanoid 19:5ff09c8e9daf 30 * ownership rights.
whismanoid 19:5ff09c8e9daf 31 *******************************************************************************
whismanoid 19:5ff09c8e9daf 32 */
whismanoid 19:5ff09c8e9daf 33
whismanoid 19:5ff09c8e9daf 34 #ifndef MBED_PERIPHERALNAMES_H
whismanoid 19:5ff09c8e9daf 35 #define MBED_PERIPHERALNAMES_H
whismanoid 19:5ff09c8e9daf 36
whismanoid 19:5ff09c8e9daf 37 #include "cmsis.h"
whismanoid 19:5ff09c8e9daf 38
whismanoid 19:5ff09c8e9daf 39 #ifdef __cplusplus
whismanoid 19:5ff09c8e9daf 40 extern "C" {
whismanoid 19:5ff09c8e9daf 41 #endif
whismanoid 19:5ff09c8e9daf 42
whismanoid 19:5ff09c8e9daf 43 typedef enum {
whismanoid 19:5ff09c8e9daf 44 UART_0 = MXC_BASE_UART0,
whismanoid 19:5ff09c8e9daf 45 UART_1 = MXC_BASE_UART1,
whismanoid 19:5ff09c8e9daf 46 UART_2 = MXC_BASE_UART2,
whismanoid 19:5ff09c8e9daf 47 STDIO_UART = UART_1
whismanoid 19:5ff09c8e9daf 48 } UARTName;
whismanoid 19:5ff09c8e9daf 49
whismanoid 19:5ff09c8e9daf 50 typedef enum {
whismanoid 19:5ff09c8e9daf 51 I2C_0 = MXC_BASE_I2CM0,
whismanoid 19:5ff09c8e9daf 52 I2C_1 = MXC_BASE_I2CM1
whismanoid 19:5ff09c8e9daf 53 } I2CName;
whismanoid 19:5ff09c8e9daf 54
whismanoid 19:5ff09c8e9daf 55 typedef enum {
whismanoid 19:5ff09c8e9daf 56 SPI_0 = MXC_BASE_SPIM0,
whismanoid 19:5ff09c8e9daf 57 SPI_1 = MXC_BASE_SPIM1,
whismanoid 19:5ff09c8e9daf 58 SPI_2 = MXC_BASE_SPIM2
whismanoid 19:5ff09c8e9daf 59 } SPIName;
whismanoid 19:5ff09c8e9daf 60
whismanoid 19:5ff09c8e9daf 61 typedef enum {
whismanoid 19:5ff09c8e9daf 62 PWM_0 = MXC_BASE_PT0,
whismanoid 19:5ff09c8e9daf 63 PWM_1 = MXC_BASE_PT1,
whismanoid 19:5ff09c8e9daf 64 PWM_2 = MXC_BASE_PT2,
whismanoid 19:5ff09c8e9daf 65 PWM_3 = MXC_BASE_PT3,
whismanoid 19:5ff09c8e9daf 66 PWM_4 = MXC_BASE_PT4,
whismanoid 19:5ff09c8e9daf 67 PWM_5 = MXC_BASE_PT5,
whismanoid 19:5ff09c8e9daf 68 PWM_6 = MXC_BASE_PT6,
whismanoid 19:5ff09c8e9daf 69 PWM_7 = MXC_BASE_PT7,
whismanoid 19:5ff09c8e9daf 70 PWM_8 = MXC_BASE_PT8,
whismanoid 19:5ff09c8e9daf 71 PWM_9 = MXC_BASE_PT9,
whismanoid 19:5ff09c8e9daf 72 PWM_10 = MXC_BASE_PT10,
whismanoid 19:5ff09c8e9daf 73 PWM_11 = MXC_BASE_PT11,
whismanoid 19:5ff09c8e9daf 74 PWM_12 = MXC_BASE_PT12,
whismanoid 19:5ff09c8e9daf 75 PWM_13 = MXC_BASE_PT13,
whismanoid 19:5ff09c8e9daf 76 PWM_14 = MXC_BASE_PT14,
whismanoid 19:5ff09c8e9daf 77 PWM_15 = MXC_BASE_PT15
whismanoid 19:5ff09c8e9daf 78 } PWMName;
whismanoid 19:5ff09c8e9daf 79
whismanoid 19:5ff09c8e9daf 80 typedef enum {
whismanoid 19:5ff09c8e9daf 81 ADC = MXC_BASE_ADC
whismanoid 19:5ff09c8e9daf 82 } ADCName;
whismanoid 19:5ff09c8e9daf 83
whismanoid 19:5ff09c8e9daf 84 #ifdef __cplusplus
whismanoid 19:5ff09c8e9daf 85 }
whismanoid 19:5ff09c8e9daf 86 #endif
whismanoid 19:5ff09c8e9daf 87
whismanoid 19:5ff09c8e9daf 88 #endif