Download NHK English news podcast automatically. XML Parser "spxml" is used. This application requires mpod mother board. See also http://mbed.org/users/geodenx/notebook/mpod/

Dependencies:   BlinkLed HTTPClient EthernetInterface FatFileSystemCpp MSCFileSystem spxml mbed-rtos mbed

Fork of mpod_nhk_english by Satoshi Togawa

Download NHK English news podcast automatically.
XML Parser "spxml" is used.
This application requires mpod mother board.
See also http://mbed.org/users/geodenx/notebook/mpod/

Committer:
togayan
Date:
Sat Aug 18 16:46:40 2012 +0000
Revision:
2:0da3a4508b46
Parent:
0:1855a008f28e
Child:
3:07562878d3c3
Fixed some bugs.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
togayan 0:1855a008f28e 1 /* BlinkLed.h */
togayan 0:1855a008f28e 2 #ifndef BLINKLED_H_
togayan 0:1855a008f28e 3 #define BLINKLED_H_
togayan 0:1855a008f28e 4
togayan 0:1855a008f28e 5 #include "mbed.h"
togayan 0:1855a008f28e 6 #include "rtos.h"
togayan 0:1855a008f28e 7
togayan 2:0da3a4508b46 8 /** LED which blinks automatically with RTOS
togayan 2:0da3a4508b46 9 */
togayan 0:1855a008f28e 10 class BlinkLed
togayan 0:1855a008f28e 11 {
togayan 0:1855a008f28e 12 public:
togayan 2:0da3a4508b46 13 /** Constructor
togayan 2:0da3a4508b46 14 */
togayan 0:1855a008f28e 15 BlinkLed(PinName pin, uint32_t millisecWait, const char* name = NULL);
togayan 0:1855a008f28e 16
togayan 2:0da3a4508b46 17 /** Destructor
togayan 2:0da3a4508b46 18 */
togayan 0:1855a008f28e 19 ~BlinkLed();
togayan 0:1855a008f28e 20
togayan 2:0da3a4508b46 21 /** Start biinking
togayan 2:0da3a4508b46 22 */
togayan 0:1855a008f28e 23 void startBlink();
togayan 0:1855a008f28e 24
togayan 2:0da3a4508b46 25 /** Finish biinking
togayan 2:0da3a4508b46 26 */
togayan 0:1855a008f28e 27 void finishBlink();
togayan 0:1855a008f28e 28
togayan 0:1855a008f28e 29 private:
togayan 2:0da3a4508b46 30 /** Copy constructor
togayan 2:0da3a4508b46 31 * Disable because it is only declaration
togayan 2:0da3a4508b46 32 */
togayan 2:0da3a4508b46 33 BlinkLed(const BlinkLed&);
togayan 2:0da3a4508b46 34
togayan 2:0da3a4508b46 35 /** Copy assignment operators
togayan 2:0da3a4508b46 36 * Disable because it is only declaration
togayan 2:0da3a4508b46 37 */
togayan 2:0da3a4508b46 38 BlinkLed& operator=(const BlinkLed&);
togayan 2:0da3a4508b46 39
togayan 2:0da3a4508b46 40 /** Function for blinking
togayan 2:0da3a4508b46 41 * This function will be bind to new thread
togayan 2:0da3a4508b46 42 */
togayan 0:1855a008f28e 43 static void blink(void const *argument);
togayan 0:1855a008f28e 44
togayan 2:0da3a4508b46 45 /** Target Led
togayan 2:0da3a4508b46 46 */
togayan 0:1855a008f28e 47 PwmOut led;
togayan 2:0da3a4508b46 48
togayan 2:0da3a4508b46 49 /** Waiting time for making the cycle to change brightness
togayan 2:0da3a4508b46 50 */
togayan 0:1855a008f28e 51 uint32_t millisecWait;
togayan 0:1855a008f28e 52
togayan 2:0da3a4508b46 53 /** Pointer to thread for blinking
togayan 2:0da3a4508b46 54 */
togayan 0:1855a008f28e 55 Thread* thread;
togayan 0:1855a008f28e 56 };
togayan 0:1855a008f28e 57
togayan 0:1855a008f28e 58
togayan 2:0da3a4508b46 59 #endif /* BLINKLED_H_ */