trunk/src/devices/cpu/arm7/lpc210x.c
r0 | r249967 | |
| 1 | // license:BSD-3-Clause |
| 2 | // copyright-holders:David Haywood |
| 3 | /*************************************************************************** |
| 4 | |
| 5 | NXP (Phillips) LPC2103 series |
| 6 | covering LPC2101, LPC2102, LPC2103* |
| 7 | |
| 8 | *currently only LPC2103 |
| 9 | |
| 10 | these are based on an ARM7TDMI-S CPU |
| 11 | internal flash and integrated peripherals |
| 12 | |
| 13 | ***************************************************************************/ |
| 14 | |
| 15 | #include "lpc210x.h" |
| 16 | |
| 17 | const device_type LPC2103 = &device_creator<lpc210x_device>; |
| 18 | |
| 19 | |
| 20 | lpc210x_device::lpc210x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 21 | : arm7_cpu_device(mconfig, LPC2103, "LPC2103", tag, owner, clock, "lpc2103", __FILE__, 4, eARM_ARCHFLAGS_T, ENDIANNESS_LITTLE) |
| 22 | { |
| 23 | } |
| 24 | |
| 25 | |
| 26 | |
| 27 | //------------------------------------------------- |
| 28 | // device_start - device-specific startup |
| 29 | //------------------------------------------------- |
| 30 | |
| 31 | void lpc210x_device::device_start() |
| 32 | { |
| 33 | arm7_cpu_device::device_start(); |
| 34 | } |
| 35 | |
| 36 | |
| 37 | //------------------------------------------------- |
| 38 | // device_reset - device-specific reset |
| 39 | //------------------------------------------------- |
| 40 | |
| 41 | void lpc210x_device::device_reset() |
| 42 | { |
| 43 | arm7_cpu_device::device_reset(); |
| 44 | } |
| 45 | |
| 46 | |
| 47 | static MACHINE_CONFIG_FRAGMENT( lpc210x ) |
| 48 | MACHINE_CONFIG_END |
| 49 | |
| 50 | machine_config_constructor lpc210x_device::device_mconfig_additions() const |
| 51 | { |
| 52 | return MACHINE_CONFIG_NAME( lpc210x ); |
| 53 | } |
trunk/src/devices/cpu/arm7/lpc210x.h
r0 | r249967 | |
| 1 | // license:BSD-3-Clause |
| 2 | // copyright-holders:David Haywood |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #ifndef __LPC2103__ |
| 7 | #define __LPC2103__ |
| 8 | |
| 9 | #include "emu.h" |
| 10 | #include "arm7.h" |
| 11 | #include "arm7core.h" |
| 12 | |
| 13 | /*************************************************************************** |
| 14 | DEVICE CONFIGURATION MACROS |
| 15 | ***************************************************************************/ |
| 16 | |
| 17 | |
| 18 | /*************************************************************************** |
| 19 | TYPE DEFINITIONS |
| 20 | ***************************************************************************/ |
| 21 | |
| 22 | class lpc210x_device : public arm7_cpu_device |
| 23 | { |
| 24 | public: |
| 25 | lpc210x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32); |
| 26 | |
| 27 | // static configuration helpers |
| 28 | |
| 29 | protected: |
| 30 | // device-level overrides |
| 31 | virtual machine_config_constructor device_mconfig_additions() const; |
| 32 | virtual void device_start(); |
| 33 | virtual void device_reset(); |
| 34 | |
| 35 | |
| 36 | private: |
| 37 | }; |
| 38 | |
| 39 | |
| 40 | // device type definition |
| 41 | extern const device_type LPC2103; |
| 42 | |
| 43 | |
| 44 | #endif /// __LPC2103__ |