ON Semiconductor / mbed-os

Dependents:   mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510

Committer:
jacobjohnson
Date:
Mon Feb 27 17:45:05 2017 +0000
Revision:
1:f30bdcd2b33b
Parent:
0:098463de4c5d
changed the inputscale from 1 to 7 in analogin_api.c.  This will need to be changed later, and accessed from the main level, but for now this allows the  adc to read a value from 0 to 3.7V, instead of just up to 1V.;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
group-onsemi 0:098463de4c5d 1 /* EthernetInterface.h */
group-onsemi 0:098463de4c5d 2 /* Copyright (C) 2012 mbed.org, MIT License
group-onsemi 0:098463de4c5d 3 *
group-onsemi 0:098463de4c5d 4 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
group-onsemi 0:098463de4c5d 5 * and associated documentation files (the "Software"), to deal in the Software without restriction,
group-onsemi 0:098463de4c5d 6 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
group-onsemi 0:098463de4c5d 7 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
group-onsemi 0:098463de4c5d 8 * furnished to do so, subject to the following conditions:
group-onsemi 0:098463de4c5d 9 *
group-onsemi 0:098463de4c5d 10 * The above copyright notice and this permission notice shall be included in all copies or
group-onsemi 0:098463de4c5d 11 * substantial portions of the Software.
group-onsemi 0:098463de4c5d 12 *
group-onsemi 0:098463de4c5d 13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
group-onsemi 0:098463de4c5d 14 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
group-onsemi 0:098463de4c5d 15 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
group-onsemi 0:098463de4c5d 16 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
group-onsemi 0:098463de4c5d 17 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
group-onsemi 0:098463de4c5d 18 */
group-onsemi 0:098463de4c5d 19
group-onsemi 0:098463de4c5d 20 // Architecture specific Ethernet interface
group-onsemi 0:098463de4c5d 21 // Must be implemented by each target
group-onsemi 0:098463de4c5d 22
group-onsemi 0:098463de4c5d 23 #ifndef ETHARCH_H_
group-onsemi 0:098463de4c5d 24 #define ETHARCH_H_
group-onsemi 0:098463de4c5d 25
group-onsemi 0:098463de4c5d 26 #include "lwip/netif.h"
group-onsemi 0:098463de4c5d 27
group-onsemi 0:098463de4c5d 28 #ifdef __cplusplus
group-onsemi 0:098463de4c5d 29 extern "C" {
group-onsemi 0:098463de4c5d 30 #endif
group-onsemi 0:098463de4c5d 31
group-onsemi 0:098463de4c5d 32 #if DEVICE_EMAC
group-onsemi 0:098463de4c5d 33 err_t emac_lwip_if_init(struct netif *netif);
group-onsemi 0:098463de4c5d 34
group-onsemi 0:098463de4c5d 35 #else /* DEVICE_EMAC */
group-onsemi 0:098463de4c5d 36 void eth_arch_enable_interrupts(void);
group-onsemi 0:098463de4c5d 37 void eth_arch_disable_interrupts(void);
group-onsemi 0:098463de4c5d 38 err_t eth_arch_enetif_init(struct netif *netif);
group-onsemi 0:098463de4c5d 39 #endif
group-onsemi 0:098463de4c5d 40
group-onsemi 0:098463de4c5d 41 #ifdef __cplusplus
group-onsemi 0:098463de4c5d 42 }
group-onsemi 0:098463de4c5d 43 #endif
group-onsemi 0:098463de4c5d 44
group-onsemi 0:098463de4c5d 45 #endif // #ifndef ETHARCHINTERFACE_H_