added prescaler for 16 bit pwm in LPC1347 target
Fork of mbed-dev by
targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/SDK/mps2_ethernet_api.h@147:ba84b7dc41a7, 2016-09-10 (annotated)
- Committer:
- JojoS
- Date:
- Sat Sep 10 15:32:04 2016 +0000
- Revision:
- 147:ba84b7dc41a7
- Parent:
- 80:bdf1132a57cf
added prescaler for 16 bit timers (solution as in LPC11xx), default prescaler 31 for max 28 ms period time
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 80:bdf1132a57cf | 1 | /* mbed Microcontroller Library |
mbed_official | 80:bdf1132a57cf | 2 | * Copyright (c) 2006-2015 ARM Limited |
mbed_official | 80:bdf1132a57cf | 3 | * |
mbed_official | 80:bdf1132a57cf | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
mbed_official | 80:bdf1132a57cf | 5 | * you may not use this file except in compliance with the License. |
mbed_official | 80:bdf1132a57cf | 6 | * You may obtain a copy of the License at |
mbed_official | 80:bdf1132a57cf | 7 | * |
mbed_official | 80:bdf1132a57cf | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
mbed_official | 80:bdf1132a57cf | 9 | * |
mbed_official | 80:bdf1132a57cf | 10 | * Unless required by applicable law or agreed to in writing, software |
mbed_official | 80:bdf1132a57cf | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
mbed_official | 80:bdf1132a57cf | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbed_official | 80:bdf1132a57cf | 13 | * See the License for the specific language governing permissions and |
mbed_official | 80:bdf1132a57cf | 14 | * limitations under the License. |
mbed_official | 80:bdf1132a57cf | 15 | */ |
mbed_official | 80:bdf1132a57cf | 16 | |
mbed_official | 80:bdf1132a57cf | 17 | #ifndef MPS2_ETHERNET_API_H |
mbed_official | 80:bdf1132a57cf | 18 | #define MPS2_ETHERNET_API_H |
mbed_official | 80:bdf1132a57cf | 19 | |
mbed_official | 80:bdf1132a57cf | 20 | #include "device.h" |
mbed_official | 80:bdf1132a57cf | 21 | |
mbed_official | 80:bdf1132a57cf | 22 | #if DEVICE_ETHERNET |
mbed_official | 80:bdf1132a57cf | 23 | |
mbed_official | 80:bdf1132a57cf | 24 | #ifdef __cplusplus |
mbed_official | 80:bdf1132a57cf | 25 | extern "C" { |
mbed_official | 80:bdf1132a57cf | 26 | #endif |
mbed_official | 80:bdf1132a57cf | 27 | |
mbed_official | 80:bdf1132a57cf | 28 | // Connection constants |
mbed_official | 80:bdf1132a57cf | 29 | |
mbed_official | 80:bdf1132a57cf | 30 | // send ethernet write buffer, returning the packet size sent |
mbed_official | 80:bdf1132a57cf | 31 | int ethernet_transmission(unsigned char * pkt, unsigned int length); |
mbed_official | 80:bdf1132a57cf | 32 | |
mbed_official | 80:bdf1132a57cf | 33 | // recieve from ethernet buffer, returning packet size, or 0 if no packet |
mbed_official | 80:bdf1132a57cf | 34 | int ethernet_reception(unsigned int *recvbuf, unsigned int *index); |
mbed_official | 80:bdf1132a57cf | 35 | |
mbed_official | 80:bdf1132a57cf | 36 | // get the ethernet address |
mbed_official | 80:bdf1132a57cf | 37 | int ethernet_mac_address(char *mac); |
mbed_official | 80:bdf1132a57cf | 38 | |
mbed_official | 80:bdf1132a57cf | 39 | unsigned int ethernet_check_ready(void); |
mbed_official | 80:bdf1132a57cf | 40 | |
mbed_official | 80:bdf1132a57cf | 41 | unsigned int ethernet_intf(void); |
mbed_official | 80:bdf1132a57cf | 42 | |
mbed_official | 80:bdf1132a57cf | 43 | int smsc9220_check_id(void); |
mbed_official | 80:bdf1132a57cf | 44 | |
mbed_official | 80:bdf1132a57cf | 45 | int smsc9220_check_macaddress(void); |
mbed_official | 80:bdf1132a57cf | 46 | |
mbed_official | 80:bdf1132a57cf | 47 | void smsc9220_print_mac_registers(void); |
mbed_official | 80:bdf1132a57cf | 48 | void smsc9220_print_phy_registers(void); |
mbed_official | 80:bdf1132a57cf | 49 | |
mbed_official | 80:bdf1132a57cf | 50 | #ifdef __cplusplus |
mbed_official | 80:bdf1132a57cf | 51 | } |
mbed_official | 80:bdf1132a57cf | 52 | #endif |
mbed_official | 80:bdf1132a57cf | 53 | |
mbed_official | 80:bdf1132a57cf | 54 | #endif |
mbed_official | 80:bdf1132a57cf | 55 | |
mbed_official | 80:bdf1132a57cf | 56 | #endif |
mbed_official | 80:bdf1132a57cf | 57 |